
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpMenuGo(objId,targ,restore){ //v9.0
  var selObj = null;  with (document) { 
  if (getElementById) selObj = getElementById(objId);
  if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0; }
}

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 MM_effectSlide(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}

function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  if (theURL == ""){
	return;
  }else{
	window.open(theURL,winName,features);
  }  
}


function menuMouseOver(idx){	

	for(i=1 ; i<=6 ; i++){
		var objImage = document.getElementById("gnbImage"+i);
		var objLayer = document.getElementById("sMenu0"+i);
		if(i == idx){
			objImage.src = objImage.src.replace(i+"n.", i+"n_on.");
			objLayer.style.display = "block";
		}else{
			objImage.src = objImage.src.replace(i+"n_on.", i+"n.");
			objLayer.style.display = "none";
		}
	}
}

function subMenuMouseOver(idx, subIdx){  
	var objImage = document.getElementById("gnbSubImage"+idx+""+subIdx);
	objImage.src = objImage.src.replace("f"+idx+"_s"+subIdx+"_off.", "f"+idx+"_s"+subIdx+"_on.");
}  

function subMenuMouseOut(idx, subIdx){ 
	objImage = document.getElementById("gnbSubImage"+idx+""+subIdx);
	objImage.src = objImage.src.replace("f"+idx+"_s"+subIdx+"_on.", "f"+idx+"_s"+subIdx+"_off.");
} 

// tab¸Þ´º ÀÌ¹ÌÁö on/off
function tab(tabMenu_name, tabLayer_name, idx){	
	for(i=1 ; i<=15 ; i++){
		objImage = document.getElementById(tabMenu_name+i);
		objLayer = document.getElementById(tabLayer_name+i);
		
		try{
			if(i == idx){
				objImage.src = objImage.src.replace(i+".gif", i+"_on.gif");
				objLayer.style.display = "block";
			}else{
				objImage.src = objImage.src.replace(i+"_on.gif", i+".gif");  
				objLayer.style.display = "none";
			}
		}catch(e){ }
	}
} 


function MenuClose(obj){
	obj.style.display = "none";
}

function MenuCloseAll(){	

	for(i=1 ; i<=7 ; i++){	
		var objLayer = document.getElementById("sMenu0"+i);	
		objLayer.style.display = "none";
	}
}



var nowZoom = 100; // ÇöÀçºñÀ² 
var maxZoom = 500; // ÃÖ´ëºñÀ²(500À¸·ÎÇÏ¸é 5¹è Ä¿Áø´Ù) 
var minZoom = 80; // ÃÖ¼ÒºñÀ² 

//È­¸é Å°¿î´Ù. 
function zoomIn() 
{ 
    if (nowZoom < maxZoom) 
    { 
        nowZoom += 10; //25%¾¿ Ä¿Áø´Ù. 
    } 
    else 
    { 
        return; 
    } 
    document.body.style.zoom = nowZoom + "%"; 
} 


//È­¸é ÁÙÀÎ´Ù. 
function zoomOut() 
{ 
    if (nowZoom > minZoom) 
    { 
        nowZoom -= 10; //25%¾¿ ÀÛ¾ÆÁø´Ù. 
    } 
    else 
    { 
        return; 
    } 
    document.body.style.zoom = nowZoom + "%"; 
} 

//È­¸é ¿ø·¡´ë·Î 
function zoomDefault() 
{ 
    nowZoom = 100; 
    document.body.style.zoom = nowZoom + "%"; 
} 



/*
IE Flash ActiveContent Activation Script
Author: Faisal Iqbal (chall3ng3r)
Blog: http://www.orison.biz/blog/chall3ng3r/

Feel free to modify or distribute.
*/
 
/*
Method: FlashObject
 Param1: SWF path
 Param2: Movie width
 Param3: Movie height
 Param4: BGColor
 Param5: Flashvars (Optional)
*/
function FlashObject(swf, width, height, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
		{
			strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
			strFlashTag += 'codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" width="' + width + '" height="' + height + '">';
			strFlashTag += '<param name="movie" value="' + swf + '"/>';        
			strFlashTag += '<param name="FlashVars" value="' + flashvars + '"/>';
			strFlashTag += '<param name="quality" value="best"/>';
			//strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
			strFlashTag += '<param name="menu" value="false"/>';
			strFlashTag += '<param name="salign" value="LT"/>';
			strFlashTag += '<param name="scale" value="noscale"/>';
			strFlashTag += '<param name="wmode" value="transparent"/>';
			strFlashTag += '<param name="wmode" value="opaque"/>';
			//strFlashTag += '<param name="base" value="."/>';
			strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
			strFlashTag += '</object>';
		}
		  else
		{
			strFlashTag += '<embed src="' + swf + '" ';
			strFlashTag += 'quality="best" ';
			//strFlashTag += 'bgcolor="' + bgcolor + '" ';
			strFlashTag += 'width="' + width + '" ';
			strFlashTag += 'height="' + height + '" ';
			strFlashTag += 'menu="false" ';
			strFlashTag += 'scale="noscale" ';
			strFlashTag += 'salign="LT" ';
			strFlashTag += 'wmode="transparent" ';
			strFlashTag += 'wmode="opque" ';
			//strFlashTag += 'base="." ';
			strFlashTag += 'allowScriptAccess="sameDomain" ';
			strFlashTag += '<param name="FlashVars" value="' + flashvars + '"';
			strFlashTag += 'type="application/x-shockwave-flash" ';
			strFlashTag += 'pluginspage="https://www.macromedia.com/go/getflashplayer">';
			strFlashTag += '</embed>';
		}

 document.write(strFlashTag);
}


