function dispswf(swf,w,h,bg,id,tit){
 document.write('<object id="'+id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" align="middle" title="'+tit+'">');
 document.write('<param name="allowScriptAccess" value="sameDomain" />');
 document.write('<param name="movie" value="'+swf+'" />');
 document.write('<param name="quality" value="high" />');
 if(bg == ""){
  document.write('<param name="wmode" value="transparent" />');
  document.write('<embed name="'+id+'" src="'+swf+'" quality="high" wmode="transparent" width="'+w+'" height="'+h+'"  align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  
 }else{
  document.write('<param name="bgcolor" value="'+bg+'" />');
  document.write('<embed name="'+id+'" src="'+swf+'" quality="high" bgcolor="'+bg+'" width="'+w+'" height="'+h+'"  align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 }
 document.write('</object>');
}

//¸µÅ© Å¬¸¯½Ã Á¡¼±Ç¥½Ã ¾È³ªÅ¸³ª°Ô ¸¸µé±â
function autoBlur(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
  document.body.focus(); 
} 
  document.onfocusin=autoBlur;
  
  
//left
  
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName == 'Netscape') ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName == 'Netscape') ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}

//ÅÇ¼Ò½º
function toggleLayers(showIds, hideIds)
{
    for(var i in hideIds)
        document.getElementById(hideIds[i]).style.display = 'none';
    for(var i in showIds)
        document.getElementById(showIds[i]).style.display = 'block';
}

// ÇÃ·¡½¬  -----------------------------------------------------------------------
function flash(c,d,e,f,g,h) {
 var flash_tag = "";
 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
 flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >'; 
 flash_tag +='<param name="movie" value="'+e+'">';
 flash_tag +='<param name="quality" value="high">';
 flash_tag +='<param name="FlashVars" VALUE="pageNum='+f+'&subNum='+g+'&subNum1='+h+'">';
 flash_tag +='<param name="wmode" value="transparent">';
 flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'
 document.write(flash_tag);
}

//Ç®½ºÅ©¸° ÇÔ¼ö
function f_full()
{
   // ÇöÀçurl
   var ls_url = "/html/catalog/samjo_ko.htm"; //document.URL;

   // ÇöÀçÀ©µµ¿ìÀÇ ÀÌ¸§ÀÌ win_fullÀÌ¸é
   // ÇöÀçÀ©µµ¿ì¸¦ ´Ý°í »õ·Î¿îÀ©µµ¿ì¸¦ ¿¬´Ù.
   if(window.name == "win_full")
   {
      window.opener=self;
      window.close();
      window.open(ls_url); 
   }
   // ±×¹ÜÀÇ °æ¿ì´Â fullscreenÇüÅÂ·Î ¿¬´Ù.
   else
   {      
      window.opener=self;
      window.close();

      var li_width  = window.screen.width - 10;
      var li_height = window.screen.height - 60;
      window.open(ls_url,"win_full","width=" + li_width + ",height=" + li_height+",top=0,left=0");
   }
}