// image roll
function menuOver() {
	this.src = this.src.replace(".gif", "_on.gif");
}
function menuOut() {
	this.src = this.src.replace("_on.gif", ".gif");
}

function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}


// ÆË¾÷
function open_popup(url, wid, hei, scroll, winName)
{
	var url = url;
	var posi = "width="+ wid +",height="+hei+",toolbar=no,location=no,status=no,menubar=no,top=10,left=50,scrollbars=" + scroll +",resizable=no" ;
	if (winName == "")
	{
		winName = popup;
	}
	window.open(url,winName,posi);
}


//¸ñ·Ï»óÀÚ ¸µÅ©
function selectGo(dropdownName){
	var page = document.all[dropdownName].value;
	if(page !="") window.open(page);
}


//¸µÅ© ÁÖº¯ Á¡¼± ¾ø¾Ö±â
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; 


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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(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_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 BdoverColor(td){
td.style.backgroundColor="#FAFBFB";//¸¶¿ì½º°¡ ¿Ã¶ó°¬À»¶§ÀÇ »ö»ó ¼³Á¤
}

function BdoutColor(td){
td.style.backgroundColor="#ffffff";//¸¶¿ì½º°¡ ³»·Á¿ÔÀ»¶§ÀÇ »ö»ó ¼³Á¤
}
function onChangeUrl(obj)
{
var destURL = obj.options[obj.selectedIndex].value;
document.location.href = destURL;
}

// °øÀåÁöµµÆË¾÷
function popimage(imagesrc,winwidth,winheight){
    var look='width=580,height=599'
        popwin=window.open("","popImg",look)
        popwin.document.open()
		 popwin.document.write("<html>");
		 popwin.document.write("<body style='margin:0;'>");
		 popwin.document.write("<div><img src='" + imagesrc + "' border=0 width=580></div>");
		 popwin.document.write("<div style='text-align:center;background:url(../images/company/bg_pop_factory.gif) repeat-y;'><input type='image' src='../images/button/btn_print.gif' onClick='javascript:window.print()' alt='ÇÁ¸°Æ®ÇÏ±â' /></div>");
		 popwin.document.write("<div style='background:url(../images/company/bg_pop_factory_close.gif) no-repeat;height:65px;padding:40px 0 0 518px;'><input type='image' src='../images/button/btn_close.gif' onClick='javascript:window.close()' alt='´Ý±â' /></div>");
		 popwin.document.write("</body>");
		 popwin.document.write("</html>");
        popwin.document.close()
}


// ¿øÇÏ´Â ºÎºÐ¸¸ ÀÎ¼âÇÏ±â
var initBody 
 function beforePrint(){ 
  initBody = document.body.innerHTML; 
  document.body.innerHTML = contentarea.innerHTML; 
 } 
 function afterPrint(){ 
  document.body.innerHTML = initBody; 
 } 
 function printArea() { 
  window.print(); 
 } 
 window.onbeforeprint = beforePrint; 
 window.onafterprint = afterPrint; 
 
 
 
// ¼ö»ó°æ·Â(ÆË¾÷) ÅÇ
function QualityTab(val) 
{
	for (i=1; i<=2; i++) { 
		if (i == val)
			eval("PQT_0"+i+".style.display='';");
		else
			eval("PQT_0"+i+".style.display='none';");
	}
}

// ¸ÞÀÎ ÇÃ·¡½Ã
function Main()
{
 document.writeln("<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=\"850\" height=\"470\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=wmode value=transparent>");
 document.writeln("<param name=\"movie\" value=\"/eng/lib/swf/visua_engl.swf?basic_path=/eng/lib/swf/\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/eng/lib/swf/visua_engl.swf?basic_path=/eng/lib/swf/\" quality=\"high\" bgcolor=\"#ffffff\" width=\"850\" height=\"470\" name=\"titBull_01\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
// Á¦Ç°¼Ò°³ ÇÃ·¡½Ã
function ProCon01()
{
 document.writeln("<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=\"660\" height=\"280\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=wmode value=transparent>");
 document.writeln("<param name=\"movie\" value=\"/eng/lib/swf/pro_con1.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/lib/swf/pro_con1.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"660\" height=\"280\" name=\"titBull_01\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
function ProCon02()
{
 document.writeln("<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=\"660\" height=\"280\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=wmode value=transparent>");
 document.writeln("<param name=\"movie\" value=\"/eng/lib/swf/pro_con2.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/lib/swf/pro_con2.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"660\" height=\"280\" name=\"titBull_01\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
function ProCon03()
{
 document.writeln("<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=\"660\" height=\"280\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=wmode value=transparent>");
 document.writeln("<param name=\"movie\" value=\"/eng/lib/swf/pro_con3.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/lib/swf/pro_con3.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"660\" height=\"280\" name=\"titBull_01\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
function counSel()
{
 document.writeln("<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=\"297\" height=\"73\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=wmode value=transparent>");
 document.writeln("<param name=\"movie\" value=\"/eng/lib/swf/main_banner_01.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/eng/lib/swf/main_banner_01.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"297\" height=\"73\" name=\"titBull_01\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
function eBrochure()
{
 document.writeln("<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=\"901\" height=\"640\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=\"movie\" value=\"/eng/lib/swf/ebrochure.swf?basic_path=/eng/lib/swf/\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/eng/lib/swf/ebrochure.swf?basic_path=/eng/lib/swf/\" quality=\"high\" bgcolor=\"#ffffff\" width=\"901\" height=\"640\" name=\"ebrochure\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
function cyberTour()
{
 document.writeln("<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=\"860\" height=\"595\" id=\"titBull_01\" align=\"middle\">");
 document.writeln("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
 document.writeln("<param name=\"movie\" value=\"/lib/swf/cybertour/tour.swf?basic_path=/lib/swf/cybertour/\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"/lib/swf/cybertour/tour.swf?basic_path=/lib/swf/cybertour/\" quality=\"high\" bgcolor=\"#ffffff\" width=\"860\" height=\"595\" name=\"ebrochure\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />");
 document.writeln("</object>");
}
// ÀÌ¹ÌÁö ¸µÅ©½Ã Á¡¼± ¾ø¾Ö±â
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;




// ¸ÞÀÎ Á¦Ç° ½ºÅ©·Ñ
var downLayerId;
var dropDegree = 10; //½ºÅ©·Ñ ¼Óµµ
var doDirect;
var DirectTerm = 4000; //½ºÅ©·Ñ Áö¿¬½Ã°£
var curDropIdx = 0;
	
function DirectDown()
{
	clearInterval(doDirect);
	clearInterval(downLayerId);
	
	for(i = curDropIdx ;i < document.all["DropHit"].length + curDropIdx;i++){
		document.all["DropHit"][i%document.all["DropHit"].length].style.posLeft = document.all["DropHit"][i%document.all["DropHit"].length].style.posWidth * (-1*((i-curDropIdx)%document.all["DropHit"].length));
	}
	var temp = 'setInterval("DownLayer()",20)';
	downLayerId = eval(temp);
	direction = "down";
}
function DownLayer()
{
	if(document.all["DropHit"][curDropIdx].style.posLeft < document.all["DropHit"][curDropIdx].style.posWidth){
		for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++){
			document.all["DropHit"][j%document.all["DropHit"].length].style.posLeft += dropDegree;
		}
	}else{
		clearInterval(downLayerId);
		for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++){
			document.all["DropHit"][j%document.all["DropHit"].length].style.posLeft = document.all["DropHit"][j%document.all["DropHit"].length].style.posWidth *((-1*((j-curDropIdx)%document.all["DropHit"].length))+1);
		}
		curDropIdx = (curDropIdx + 1) ;
		curDropIdx = curDropIdx > document.all["DropHit"].length-1 ? curDropIdx%document.all["DropHit"].length:curDropIdx;
		var temp = 'setInterval("DirectDown()",DirectTerm)';
		doDirect = eval(temp);
	}
}
function DirectUp()
{
	clearInterval(doDirect);
	clearInterval(downLayerId);
	var tempIdx = 0;
	for(i = 0;i<document.all["DropHit"].length;i++){
		tempIdx = (document.all["DropHit"].length + curDropIdx - i) %document.all["DropHit"].length;
		document.all["DropHit"][tempIdx].style.posLeft = i*document.all["DropHit"][tempIdx].style.posWidth;
	}
	var temp = 'setInterval("UpLayer()",20)';
	downLayerId = eval(temp);
	direction = "up";
}
function UpLayer()
{
	var tempIdx = 0;
	if(document.all["DropHit"][curDropIdx].style.posLeft < document.all["DropHit"][curDropIdx].style.posWidth && document.all["DropHit"][curDropIdx].style.posLeft > document.all["DropHit"][curDropIdx].style.posWidth * (-1)){
		for(j = 0 ;j < document.all["DropHit"].length;j++){
			tempIdx = (document.all["DropHit"].length + curDropIdx - j) %document.all["DropHit"].length;
			document.all["DropHit"][tempIdx].style.posLeft -= dropDegree;
		}
	}else{
		clearInterval(downLayerId);
		for(j = 0;j<document.all["DropHit"].length;j++){
			tempIdx = (document.all["DropHit"].length + curDropIdx - j) % document.all["DropHit"].length;
			document.all["DropHit"][tempIdx].style.posLeft = (j-1)*(document.all["DropHit"][tempIdx].style.posWidth);
		}
		curDropIdx = (curDropIdx - 1) ;
		curDropIdx = curDropIdx < 0 ? document.all["DropHit"].length-1:curDropIdx;
		var temp = 'setInterval("DirectUp()",DirectTerm)';
		doDirect = eval(temp);
	}
}