//Open PopUP
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//Image Filter
function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 


//Swap Image
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_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}


//ÇÃ·¡½Ã »ðÀÔ ÀÚ¹Ù½ºÅ©¸³Æ®-¾×Æ¼ºê¿¢½ºÆÐÄ¡´ëºñ

function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




//¸Þ´º
function gomenu(num)
{
	

	//html/html/sub01
	if (num == 11)	{location.href="product/hdd.html";}
	if (num == 12)	{location.href="product/shaft.html";}
	if (num == 13)	{location.href="product/connector.html";}
	if (num == 14)	{location.href="product/hinge.html";}
	if (num == 15)	{location.href="product/other.html";}

	//html/html/sub02
	if (num == 21)	{location.href="html/sub02.html";}
	if (num == 22)	{location.href="html/sub02_02.html";}
	if (num == 23)	{location.href="html/sub02_03.html";}

	//html/html/sub03
	if (num == 31)	{location.href="html/sub03.html";}
	if (num == 32)	{location.href="html/sub03_02.html";}
	if (num == 33)	{location.href="html/sub03_03.html";}
	
	//html/html/sub04
	if (num == 41)	{location.href="html/sub04.html";}


	//html/html/sub05
	if (num == 51)	{location.href="html/sub05.html";}
	if (num == 52)	{location.href="html/sub05_02.html";}
	if (num == 53)	{location.href="html/sub05_03.html";}
	if (num == 54)	{location.href="html/sub05_04.html";}

	//html/html/sub06
	if (num == 61)	{location.href="html/sub06.html";}
	if (num == 62)	{location.href="html/sub06_02.html";}
	if (num == 63)	{location.href="html/sub06_03.html";}
	
	//html/html/sub02/ÀÌµ¿Åë½ÅÁß°è±â
	if (num == 71)	{location.href="html/sub02.html";}
	if (num == 72)	{location.href="html/sub02_d02.html";}
	if (num == 73)	{location.href="html/sub02_d03.html";}
	if (num == 74)	{location.href="html/sub02_d04.html";}
	if (num == 75)	{location.href="html/sub02_d05.html";}
	
	//html/html/sub02/TRS³×Æ®¿öÅ©
	if (num == 81)	{location.href="html/sub02_02.html";}
	if (num == 82)	{location.href="html/sub02_02_d02.html";}
	if (num == 83)	{location.href="html/sub02_02_d03.html";}
	if (num == 84)	{location.href="html/sub02_02_d04.html";}
	if (num == 85)	{location.href="html/sub02_02_d05.html";}
	if (num == 86)	{location.href="html/sub02_02_d06.html";}

	//html/html/sub02/U-IT
	if (num == 91)	{location.href="html/sub02_03.html";}
	if (num == 92)	{location.href="html/sub02_03_d02.html";}
	if (num == 93)	{location.href="html/sub02_03_d03.html";}
	if (num == 94)	{location.href="html/sub02_03_d04.html";}


}	
	
//Äü¸Þ´º
function Timer()
{
 setInterval( MenuScrolling, 100 );
}

function MenuScrolling()
{
 var fm = document.MyForm;

 var rtmu= document.getElementById('RightMenu');
 rtmu.style.pixelTop = document.body.scrollTop+230;
}
