﻿/* POPUP */
function OpenWindow(url,winName,intWidth,intHeight,intScrollbars) { 
window.open(url,winName,"width="+intWidth+",height="+intHeight+",scrollbars="+intScrollbars+"") ;
}



/* ShowHideLayers */
function MM_showHideLayers() { //v3.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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}


/* select로 메뉴이동 */
function go_page(url) {
    if(url != "") window.open(url, "_self", "");
    
}



/* FLASH */
function swf(url_root, w, h){
   	  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' \n"
      +" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' \n"
      +" width='"+w+"' Height='"+h+"'> \n"
      +"<param name='movie' value='"+url_root+"'>\n"
      +"<param name='quality' value='high'>\n"
      +"<param name='allowScriptAccess' value='always' />"
      +"<param name='wmode' value='transparent'>\n"
      +"<embed src='"+url_root+"' "
      +" wmode='transparent' quality='high' width='"+w+"' height='"+h+"' "
      +" type='application/x-shockwave-flash'  allowScriptAccess='always' "
      +" pluginspage='http://www.macromedia.com/shockwav/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>\n"
      +"</embed></object>\n");
}




/* Topmenu  ***********************************************************************************************/
function topmenu(v1, v2){
	html = "";
	html += "<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='890' height='162'>\n";
	html += "<param name='movie' value='../swf/topmenu.swf?oneDepth="+v1+"&twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/topmenu.swf?oneDepth="+v1+"&twoDepth="+v2+"' width='890' height='162' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

/* Leftmenu */
function leftmenu01(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu01.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu01.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu02(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu02.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu02.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu03(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu03.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu03.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu04(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu04.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu04.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu05(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu05.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu05.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu06(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu06.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu06.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu07(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu07.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu07.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}

function leftmenu08(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu08.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu08.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}


function leftmenu09(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu09.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu09.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}


function leftmenu10(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu10.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu10.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}


function leftmenu11(v2){
	html = "";
	html += "<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='200' height='250'>\n";
	html += "<param name='movie' value='../swf/leftmenu11.swf?twoDepth="+v2+"'>\n";
	html += "<param name='allowScriptAccess' value='always'/>\n";
	html += "<param name='quality' value='high'>\n";
	html += "<param name='wmode' value='transparent'>\n";
	html += "<embed src='../swf/leftmenu11.swf?&twoDepth="+v2+"' width='200' height='250' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'><\/embed>\n";
	html += "<\/object>\n";
	document.write(html);
}
