/* Title */
document.title="LS Industrial Systems";

document.write("<script type='text/javascript' src='/ev-info/js/global_url.js'></script>");


function Swf_View(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick
{
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode" />');
    }
	document.write('			<param name="allowScriptAccess" value="always"/> ');
	document.write('			<param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
	 if ( Flag == null || Flag != 'N' )
    {
        document.write('       		wmode="transparent" ');
    }
    document.write('           		type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />');
    document.write('            </embed></object>');
	if ( Frm == 'Y' ) { // form ÅÂ±× µé¾î°¡´Â ÆäÀÌÁö¿¡ Àû¿ë
		eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
	}
}

// NAVIGATION---------
var depth1="0",depth2="0",depth3="0",depth4="0",globalId="0",flaFarm="0";
function Mnav(){
	try{
		var Depth = arguments.length;
		var DepthName = new Array("depth1","depth2","depth3","depth4");
		for(i=0;i<Depth;i++){
			if(i==0) depth1 =  arguments[i];if(i==1) depth2 =  arguments[i];if(i==2) depth3 =  arguments[i];if(i==3) depth4 =  arguments[i];
			globalId = (i==0) ? arguments[i] : globalId+"_"+arguments[i] ;
			flaFarm = (i==0) ?  DepthName[i]+"="+arguments[i] : flaFarm+"&"+DepthName[i]+"="+arguments[i] ;
		}
	}catch(e){}
}

function link(){
	var url = "";
	var depth = arguments.length;
	try {
		if(depth==0) return;
		else if(depth==1) url = eval("u"+arguments[0]+"[0]");
		else if(depth==2) url = eval("u"+arguments[0]+"_"+arguments[1]+"[0]");
		else if(depth==3) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"[0]");
		else if(depth==4) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"[0]");
		else if(depth==5) url = eval("u"+arguments[0]+"_"+arguments[1]+"_"+arguments[2]+"_"+arguments[3]+"_"+arguments[4]+"[0]");
		if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù!");
		else location.href = url;
	}catch(e) { alert("ÁØºñÁßÀÔ´Ï´Ù!"); }
}

// LINEMAP---------
function setString(node){
	var spStr = "" , last="";
	try{
		var url  = eval(node+"[0]");
		var name = eval(node+"[1]");
	}
	catch(e){
		document.write("The id does not exist : " + node);
	}
	var nodeId  = node;
	var spStr = " > ";
	if(node.lastIndexOf('_') != -1) setString(node.substring(0,node.lastIndexOf('_')));
	else lineMapStr += "<a href='"+eval("u0[0]")+"'>"+ eval("u0[1]")+"</a>" + spStr;
	if(currentPath != nodeId)
		lineMapStr += "<a href='"+url+"'>"+ name+"</a>" + spStr;
	else
		lineMapStr += "<span class='last'>"+name+"</span>";
}

function Path(){
	try{
		lineMapStr = "";		
		index = 0;
		currentPath="u"+globalId;
		setString("u"+globalId);
		document.write("<a href='/ev-info/index.html'>Home</a> "+lineMapStr);
	}catch(e){
		document.write("Exception handling occurrence : " +  e);
	}
}

/***** Blur *******************************************************************************************/

//¸µÅ© ÁÖº¯ Á¡¼± ¾ø¾Ö±â
var myAnchors=document.all.tags("A");
function allblur() {
	for (i=0;i<myAnchors.length;i++) {
		myAnchors[i].onfocus=new Function("blur()");
	}
}

allblur();

function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;



/* RollOver */
function ImageOver(imgEL){
	imgEL.src = imgEL.src.replace(".jpg", "_on.jpg");
}
function ImageOut(imgEL){
	imgEL.src = imgEL.src.replace("_on.jpg", ".jpg");
}

/* Top */
function OnTop(){
	scrollTo(0,0);
}

/* Popup */
function pop(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=auto') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½)
function pops(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=yes') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)
function popr(url,name,w,h){ window.open(url,name,'width='+w+',height='+h+',scrollbars=auto,resizable=1') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½)
function popL(url,name,w,h,t,l){ window.open(url,name,'top='+t+',left='+l+',width='+w+',height='+h+',scrollbars=auto') } //Popup(½ºÅ©·Ñ¹Ù¾øÀ½), À§Ä¡ÁöÁ¤
function popsL(url,name,w,h,t,l){ window.open(url,name,'top='+t+',left='+l+',width='+w+',height='+h+',scrollbars=yes') } //Popup(½ºÅ©·Ñ¹ÙÀÖÀ½), À§Ä¡ÁöÁ¤
function newwin(url,w,h){ window.open(url,'new','width='+w+',height='+h+',location=1,directories=1,resizable=1,status=1,toolbar=1,menubar=1,scrollbars=1') } //NewPopup(½ºÅ©·Ñ¹Ù¾øÀ½)

function popF1(){ window.open('http://203.247.133.200:8000','','width=642 ,height=508 ,scrollbars=auto') } //ÇªÅÍ ÆË¾÷
function popF2(){ window.open('/krs/util/email.asp','','width=460 ,height=388 ,scrollbars=auto') } //ÇªÅÍ ÆË¾÷

function popG1(){ window.open('/krs/html/guide/pop_trailmap.html','','width=666 ,height=650 ,scrollbars=yes') } //°¡ÀÌµå¸Ê, Æ®·¹ÀÏÆË¾÷
function popG2(){ window.open('/krs/html/main/pop_charge.html','','width=650 ,height=510 ,scrollbars=no') } //Main, ½ºÅ°¿ä±Ý


/* °æ·Î°¨Ãß±â */
function Frameset(page) { 
	framecode = "<frameset rows='1*'>" 
	+ "<frame name=main src='" + page + "'>" 
	+ "</frameset>"; 

	document.write(framecode); 
	document.close(); 

} 
