
function swf_include(swfUrl,swfWidth,swfHeight,bgColor,swfName,access,flashVars){
 // ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
 var flashStr=
 "<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='"+swfWidth+"' height='"+swfHeight+"' id='"+swfName+"' align='middle' />"+
 "<param name='allowScriptAccess' value='"+access+"' />"+
 "<param name='movie' value='"+swfUrl+"' />"+
 "<param name='FlashVars' value='"+flashVars+"' />"+
 "<param name='loop' value='false' />"+
 "<param name='menu' value='true' />"+
 "<param name='wmode' value='transparent' />"+
 "<param name='quality' value='high' />"+
 "<param name='scale' value='noscale' />"+
 "<param name='bgcolor' value='"+bgColor+"' />"+
 "<embed src='"+swfUrl+"' FlashVars='"+flashVars+"'  quality='best' bgcolor='#262626' width='"+swfWidth+"' height='"+swfHeight+"' name='"+swfName+"' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
 "</object>";
 // ÇÃ·¡½Ã ÄÚµå Ãâ·Â
 document.write(flashStr);
};

function show1(){ 
  document.getElementById("layer_1").style.visibility = 'visible'; 
} 
// °Ô½ÃÆÇ ¼û±â±â
function hide1(){ 
  document.getElementById("layer_1").style.visibility = 'hidden'; 
}

function show2(){ 
  document.getElementById("layer_2").style.visibility = 'visible'; 
} 
// °Ô½ÃÆÇ ¼û±â±â
function hide2(){ 
  document.getElementById("layer_2").style.visibility = 'hidden'; 
}

function show3(){ 
  document.getElementById("layer_3").style.visibility = 'visible'; 
} 
// °Ô½ÃÆÇ ¼û±â±â
function hide3(){ 
  document.getElementById("layer_3").style.visibility = 'hidden'; 
}

function show4(){ 
  document.getElementById("layer_4").style.visibility = 'visible'; 
} 
// °Ô½ÃÆÇ ¼û±â±â
function hide4(){ 
  document.getElementById("layer_4").style.visibility = 'hidden'; 
}

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';

  cookie_str = document.cookie;
  cookie_str.toString();

  pos_start  = cookie_str.indexOf(name);
  pos_end    = cookie_str.indexOf('=', pos_start);

  cookie_name = cookie_str.substring(pos_start, pos_end);

  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);
  if (cookie_name == name && cookie_val  == "done")
    return;

  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);
}
