
function getFlashSet(id,nPos){
	if(id=="mainFlash"){
		url="/eng/images/swf/top_main.swf?nPos="+nPos;
		w='960';h='433px';t="transparent";bg="none";
	}else if(id=="topNavi"){
		url="/eng/images/swf/top_sub.swf?nPos="+nPos;
		w='960px';h='245px';t="transparent";bg="none";
	}
	getFlash(id,url,w,h,t,bg);
}

//ÇÃ·¡½ÃÃâ·Â
function getFlash(id,url,w,h,t,bg){
	var flashOut='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width='+w+' height='+h+' id='+id+'>';
	flashOut+='<param name="movie" value='+url+' />';
	flashOut+='<param name="wmode" value='+t+' />';
	flashOut+='<param name="bgcolor" value='+bg+' />';
	flashOut+='<param name="allowScriptAccess" value="sameDomain" />';
	flashOut+='<param name="quality" value="high" />';
	flashOut+='<param name="menu" value="false" />';
	flashOut+='<embed src='+url+' width='+w+' height='+h+' name='+id+' wmode='+t+' bgcolor='+bg+' swLiveConnect="true" allowScriptAccess="sameDomain" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flashOut+='</embed>';
	flashOut+='</object>';

	document.write(flashOut);
}

//ÇÃ·¡½ÃÃâ·Â
function quickFlash(){
	var flashOut='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="50" height="17" id="contsquick">';
	flashOut+='<param name="movie" value="../images/swf/quick.swf" />';
	flashOut+='<param name="wmode" value="transparent" />';
	flashOut+='<param name="bgcolor" value="none" />';
	flashOut+='<param name="allowScriptAccess" value="sameDomain" />';
	flashOut+='<param name="quality" value="high" />';
	flashOut+='<param name="menu" value="false" />';
	flashOut+='<embed src="../images/swf/quick.swf" width="50" height="17" name="contsquick" wmode="transparent" bgcolor="none" swLiveConnect="true" allowScriptAccess="sameDomain" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flashOut+='</embed>';
	flashOut+='</object>';

	document.write(flashOut);
}

//·¹ÀÌ¾î ¿Â¿ÀÇÁ
function layerOnOff(obj){
	var obj=document.getElementById(obj);
	if(obj.style.display=='none'){
		obj.style.display='block';
	}else if(obj.style.display=='block'){
		obj.style.display='none';
	}
}

//ÆË¾÷ È­¸é Áß¾Ó¿¡ ¶ç¿ì±â
function Win_pop(newwin,w,h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
if(w=='100%') w=window.availWidth;
winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=no,scrollbars=no,toolbars=no,status=no,menu=no';
win = window.open(newwin, null, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function pop_catalog() {
            pop = window.open("/product/catalog.html", "win", "scrollbars=0 ,left=50, top=100, width=900, height=700" );
}

//ÅÇ
function tabchange(img,divid){
	var tabarea=img.parentNode;
	var imgs=tabarea.getElementsByTagName('img');
	var setimgsrc,setimgcheck,imgtype,newname,obj;

	//off image set
	for(var i=0; i<imgs.length; i++){
		setimgsrc=imgs[i].src.split("/");
		setimgcheck=setimgsrc[setimgsrc.length-1].split(".");
		imgcheck=setimgcheck[0];
		obj=eval(document.getElementById(divid+(i+1)));
		if(img==imgs[i]){
			if(imgcheck.indexOf('on')==-1){
				img.src=img.src.replace(imgcheck,imgcheck+'on');
			}
			obj.style.display='block';
		}else{
			if(imgcheck.indexOf('on')!=-1){
				newname=imgcheck.replace('on','');
				imgs[i].src=imgs[i].src.replace(newname+'on',newname);
			}
			obj.style.display='none';
		}
	}

}

//** ¿À¸¥ÂÊ Äü¸Þ´º (¸¶¿ì½º ½ºÅ©·Ñ)
function scrollMenu(objid,starttop,bottommargin){
	var obj=document.getElementById(objid);
	var ny=starttop+document.body.scrollTop;
	var mosttop=(document.body.clientHeight+document.body.scrollTop)-(bottommargin+obj.offsetHeight);
	var speed=10;
	if(mosttop<=starttop){
		mosttop=starttop;
		obj.style.top=(obj.offsetTop+((mosttop-obj.offsetTop)/speed))+'px';
	}else if(mosttop>starttop){
		if(document.body.clientHeight<document.body.scrollTop){
			obj.style.top=(obj.offsetTop+((mosttop-obj.offsetTop)/speed))+'px';
		}else{
			obj.style.top=(obj.offsetTop+((ny-obj.offsetTop)/speed))+'px';
		}
	}
	setTimeout("scrollMenu('"+objid+"',"+starttop+","+bottommargin+")",10);
}

//**À§·Î ¿Ã¶ó°¡±â
function goTop(){
     document.body.scrollTop=0;
}


//** global menu
function globalMenu()
{
document.write("<div id='global_top'>");
document.write("<table cellspacing='0' cellpadding='0' border='0'>");
document.write("<tr>");
document.write("<td><a href='/eng/main/main.html'><img src='../images/common/top01.gif'></a></td>");
document.write("<td width='18'></td>");
document.write("<td><a href='/eng/sitemap/sitemap.html'><img src='../images/common/top02.gif'></a></td>");
document.write("<td width='18'></td>");
document.write("<td><a href='/eng/community/customer_write.html'><img src='../images/common/top03.gif'></a></td>");
document.write("<td width='18'></td>");
document.write("<td><a href='/main/main.html'><img src='../images/common/top_kor.gif'></a></td>");
document.write("<td width='18'></td>");
document.write("<td><a href='/cn/main/main.html'><img src='../../images/common/top_chn.gif'></a></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
}

//** global menu
function copyright()
{
document.write("<!-- copyright -->");
document.write("<div id='footer_sub'>");
document.write("</div>");
document.write("<!-- copyright //-->");
}



//** ÀÛÀºÀÌ¹ÌÁö »õÃ¢ ¶ç¿ì±â
 function view(x,y,z){
  newin=window.open('',y,z);
  newin.document.write("<head><title> View Image</title></head><body background='"+x+"' onclick='self.close()' style='cursor:hand'>");
 }

function setPic( objid, w, h ) {

	var objimg	= document.getElementById(objid);
	var ww=0,hh=0;

//	alert( objimg.id );
//	alert( w +','+ h);
	ww= objimg.width;
	hh= objimg.height;
	if (ww >= w ) {  
		objimg.width = w;
	   }

	setTimeout("setPic2('"+ objid +"',"+ w +","+ h +")","300");

	/*if (objimg.height > h)	{  
		objimg.height = h;
	   }
	*/

	/*for( i=0; i<document.images.length; i++){
		if(document.images[i].id == objid &&  document.images[i].width > w){
			document.images[i].width = w ; 
			break;
		}
	}*/
	//alert( objimg.width +','+ objimg.height);
}

function setPic2( objid, w, h ) {

	var objimg	= document.getElementById(objid);
	var ww=0,hh=0;

	ww= objimg.width;
	hh= objimg.height;
	if (ww >= w ) {  
		objimg.width = w;
	   }

	/*if (objimg.height > h)	{  
		objimg.height = h;
	   }
	*/
	//objimg.width = w;
	//alert( objimg.width +','+ objimg.height);
}

function _dwiLoad(){
	var _dwiScript = document.createElement("script");
	_dwiScript.src = "http://log.inside.daum.net/dwi_log/js/dwi.js";
	_dwiScript.type = 'text/javascript';
	_dwiScript.defer = true;
	_dwiScript.id="dwi";
	_dwiScript.onreadystatechange= function () {
		if (this.readyState == 'complete') {
		_dwiPID = "d-7FD-193"; 
		_dwiCatch();
		}
	}
	_dwiScript.onload=function(){
	_dwiPID = "d-7FD-193";
	_dwiCatch();
	}
	document.getElementsByTagName('head')[0].appendChild(_dwiScript);
}
_dwiLoad();



function menu1(name, total){
	

	for (i=1; total+1>i; i++){
		old =eval("submenu_1"+i+".style");
		old.display='none';
	}

	document.all["submenu_1"+name].style.display='block';
}

function menu2(name, total){
	

	for (i=1; total+1>i; i++){
		old =eval("submenu_2"+i+".style");
		old.display='none';
	}

	document.all["submenu_2"+name].style.display='block';
}

function flashWrite(url,w,h,id,bg,vars,win){
	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);

}

