// made by sm(www.kawa2.com)
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openwin(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

var EmbedStr = "";

function GetFlash(url,x,y) { 
	EmbedStr = "<object id='flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
	EmbedStr += "<param name='allowScriptAccess' value='sameDomain' />";
	EmbedStr += "<param name='movie' value='" + url + "' />";
	EmbedStr += "<param name='quality' value='high' />";
	EmbedStr += "<param name='bgcolor' value='#ffffff' />";
	EmbedStr += "<param name='wmode' value='transparent' />";
	EmbedStr += "<embed src='" + url + "' quality='high' wmode='transparent' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	EmbedStr += "</object>";
	
	document.write(EmbedStr);
	return;
}

function zoom(File,Width,Height)
{
	if(!Width || !Height){
		alert("ÀÌ¹ÌÁö°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÀÌ¹ÌÁö Å©±âÁ¤º¸°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");
	}else{
		window.open("zoom.php?img="+File,"","scrollbars=no,width="+Width+",height="+Height+",top=200,left=200");
	}
}


function setPng24(obj) {
   obj.width=obj.height=1;
   obj.className=obj.className.replace(/\bpng24\b/i,'');

   obj.style.filter =

   "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
   obj.src=''; 
   return '';
}

function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tageName=="IMG")document.body.focus();
}
document.onfocusin=bluring;


function mms_open_window(name, url, left, top, width, height)
{
  width = width + 20;
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=no');
}

// vod_play	
	function vod_play1(elm, play_url, width, Height) { // Media player version 9
		var	str = "<object id=\""+elm+"\" width="+width+" height="+Height+" viewastext style=\"z-index:1\" classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" "
				+ "codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" type=\"application/x-oleobject\">"
				+ "<param name=\"Filename\" value=\""+play_url+"\">"
				+ "<param name=\"TransparentAtStart\" value=\"1\">" //¹öÆÛ¸µ½Ã Åõ¸íÇÏ°Ô, Áï ¹é±×¶ó¿îµåÀÌ¹ÌÁö¸¦ º¸¿©ÁÖ°Ô 1
				+ "<param name=\"AnimationAtStart\" value=\"0\">" //¹öÆÛ¸µ½Ã ¹Ìµð¾î·Î°í ¾Èº¸¿©ÁÖ±â 0
				+ "<param name=\"Enabled\" value=\"true\">" //±â´É´ÜÃß »ç¿ë°¡´É 1
				+ "<param name=\"ShowControls\" value=\"0\">" //Àç»ý, Á¤Áö ´ÜÃß°¡ ÀÖ´Â ÄÁÆ®·Ñ·¯ Ç¥½Ã
				+ "<param name=\"background\" value=\"#ffffff\">" //ÀÚµ¿Àç»ý1
				+ "<param name=\"AutoStart\" value=\"0\">" //ÀÚµ¿Àç»ý1
				+ "<param name=\"ShowDisplay\" value=\"0\">" //ÀúÀÛ±Ç, ¸¸µçÀÌ µî Ç¥½Ã 1
				+ "<param name=\"ShowStatusBar\" value=\"0\">" //ÄÁÆ®·Ñ·¯ ¾ÆÇØ¿¡ »óÅÂ Ç¥½ÃÁÙ Ç¥½Ã1
				+ "<param name=\"ShowCaptioning\" value=\"0\">" //Ä¸¼ÇÃ¢ Ç¥½Ã 1
				+ "<param name=\"Uimode\" value=\"FULL\">" // ¹Ìµð¾îÇÃ·¹ÀÌ¾î°¡ À¥ÆäÀÌÁö¿¡ º¸¿©Áö´Â »ç¿ëÀÚ ÀÎÅÍÆäÀÌ½º ¾ç½ÄÀ» °áÁ¤ÇÏ´Â ¼Ó¼º
				+ "<param name=\"EnableContextMenu\" value=\"0\">" //¸¶¿ì½º ¿À¸¥ÂÊ ´ÜÃß¸¦ Å¬¸¯ÇØ ¹Ù·Î °¡±â ¸Þ´º »ç¿ë °¡´É 1
				+ "</object>";
		document.write(str);
	}
	
	function toPlay(elm) {
		if (elm.PlayState != 2) 
			elm.play();
	}
	
	function toPause(elm) {
		if (elm.PlayState == 2) 
			elm.pause();
	}
	
	function toStop(elm) {
		elm.stop();
	}

// »çÀÌÆ®¸Ê °ü·Ã ½ºÅ©¸³Æ®
function f_view_sitemap(){
 
	sitemap.style.filter="blendTrans(duration=0.7)";
	sitemap.filters.blendTrans.apply();
	sitemap.style.visibility="visible";
	sitemap.filters.blendTrans.play();
	document.all.sitemap.style.display="block";

 }
 function f_view_close(){
  document.all.sitemap.style.display="none";
 }


 function loading() {
}

// ÀÌ¹ÌÁöÈ®´ëº¸±â(ÀÌ¹ÌÁö »çÀÌÁî¿¡ ¸Â°Ô ¸®»çÀÌÂ¡) ½ºÅ©¸³Æ®
function showPicture(src) {
  var imgObj = new Image();
  imgObj.src = src;
  var wopt = "scrollbars=no,status=no,resizable=no";
  wopt += ",width=" + imgObj.width;
  wopt += ",height=" + imgObj.height;
  var wbody = "<head><title>(ÁÖ)´ëÇÑÄÜ¼³ÅºÆ®</title>";
  wbody += "<script language='javascript'>";
  wbody += "function finalResize(){";
  wbody += "  var oBody=document.body;";
  wbody += "  var oImg=document.images[0];";
  wbody += "  var xdiff=oImg.width-oBody.clientWidth;";
  wbody += "  var ydiff=oImg.height-oBody.clientHeight;";
  wbody += "  window.resizeBy(xdiff,ydiff);";
  wbody += "}";
  wbody += "</"+"script>";
  wbody += "</head>";
  wbody += "<body onLoad='finalResize()' style='margin:0'>";
  wbody += "<a href='javascript:self.close();'><img src='" + src + "' border=0></a>";
  wbody += "</body>";
  winResult = window.open("about:blank","",wopt);
  winResult.document.open("text/html", "replace");
  winResult.document.write(wbody);
  winResult.document.close();
  return;
}

