
// ÀÌ¹ÌÁö ¿Â ¿À¹ö 
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; 
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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 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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//»õÃ¢ ÇÔ¼ö
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

//========================================================================== url, ÆË¾÷Ã¢ÀÇ width, height°ªÀ» ¹Þ¾Æ À©µµ¿ìÃ¢À» ¶ç¿î´Ù.
function setSizeWinOpen(winURL, name_url, popWidth){
	window.open(winURL, name_url, popWidth + ",scrollbars=no,menubar=no,status=no");
}

//========================================================================== ÀÏ¹ÝÀûÀÎ ÇÃ·¡½Ã ÆÄÀÏ
function generalFlash(fPath, fWidth, fHeight, fVersion, fId){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+fVersion+'" width="'+fWidth+'" height="'+fHeight+'" id="'+fId+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+fPath+'" />');
	document.write('<param name="loop" value="false" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="'+fPath+'" loop="false" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="'+fWidth+'" height="'+fHeight+'" name="'+fId+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

//========================================================================== Åõ¸í ÇÃ·¡½Ã ÆÄÀÏ
function transparentFlash(fPath, fWidth, fHeight, fVersion, fId){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+fVersion+'" width="'+fWidth+'" height="'+fHeight+'" id="'+fId+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+fPath+'" />');
	document.write('<param name="loop" value="false" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+fPath+'" loop="false" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="'+fWidth+'" height="'+fHeight+'" name="'+fId+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function flash_left(str){	 //¸ÞÀÎ ¸µÅ©
	
//  alert(str);
//	alert("ÀÛ¾÷ÁøÇàÁß ÀÔ´Ï´Ù.");


		if(str == "1")
		{
			location.href = "/";
		} else if(str == "2"){
			location.href = "/7_sitemap/sub_7_1.asp";
		} else if(str == "3"){
			alert("¸ÞÀÏÁÖ¼Ò ÀÔ·Â");
			//location.href = "mailto:";
						
		} else if(str == "11"){
			location.href = "/1_company/intro001_bbs.asp";
		} else if(str == "12"){
			location.href = "/1_company/intro001_bbs.asp";
		} else if(str == "13"){
			location.href = "/1_company/intro002_bbs.asp";
		} else if(str == "14"){
			location.href = "/1_company/intro003_bbs.asp";
			
		} else if(str == "21"){
			location.href = "/2_result/result_list.asp";
		} else if(str == "22"){
			location.href = "/2_result/result_list.asp";
		} else if(str == "23"){
			location.href = "/2_result/sub_2_2.asp";
		} else if(str == "24"){
			location.href = "/2_result/sub_2_3.asp";
			
		} else if(str == "31"){
			location.href = "/3_album/intro015_bbs.asp";
			
		} else if(str == "41"){
			location.href = "/4_woodhouse/sub_4_1.asp";
		} else if(str == "42"){
			location.href = "/4_woodhouse/sub_4_2_1.asp";
		} else if(str == "43"){
			location.href = "/4_woodhouse/sub_4_3.asp";
		} else if(str == "44"){
			location.href = "/4_woodhouse/sub_4_4.asp";
		} else if(str == "45"){
			location.href = "/4_woodhouse/sub_4_5.asp";
		} else if(str == "46"){
			location.href = "/4_woodhouse/sub_4_2_5.asp";
		} else if(str == "47"){
			location.href = "/4_woodhouse/sub_4_6.asp";
		} else if(str == "48"){
			location.href = "/4_woodhouse/sub_4_7.asp";		
		
		} else if(str == "51"){
			location.href = "/5_imformation/consultation.asp";
		
		} else if(str == "61"){
			location.href = "/6_comm/news036_bbs.asp";
		} else if(str == "52"){
			location.href = "/6_comm/user021_bbs.asp";
		} else if(str == "53"){
			location.href = "/6_comm/news036_bbs.asp";
		} else if(str == "54"){
			location.href = "/6_comm/sub_6_3.asp";
		}
}
