///////////////////////// //////////////////////////////////////////


function main(){window.document.location.href="/index.html";}

/////////////////////////////
function sub0101(){window.document.location.href="/insiter.php?design_file=3630.php";}
function sub0102(){window.document.location.href="/insiter.php?design_file=3631.php";}
function sub0103(){window.document.location.href="/insiter.php?design_file=3634.php";}
function sub0104(){window.document.location.href="/insiter.php?design_file=3635.php";}


//////////////////////////////
function sub0201(){window.document.location.href="/insiter.php?design_file=3640.php";}
function sub0202(){window.document.location.href="/insiter.php?design_file=3636.php";}
function sub0203(){window.document.location.href="/insiter.php?design_file=3637.php";}
function sub0204(){window.document.location.href="/insiter.php?design_file=3638.php";}

/////////////////////////////
function sub0301(){window.document.location.href="/insiter.php?design_file=3641.php";}
function sub0302(){window.document.location.href="/insiter.php?design_file=3642.php";}
function sub0303(){window.document.location.href="/insiter.php?design_file=3643.php";}
function sub0304(){window.document.location.href="/insiter.php?design_file=3644.php";}

//////////////////////////
function sub0401(){window.document.location.href="/insiter.php?design_file=3656.php&category_1=A";}
function sub0402(){window.document.location.href="/insiter.php?design_file=3656.php&category_1=C";}
function sub0403(){window.document.location.href="/insiter.php?design_file=3656.php&category_1=E";}


///////////////
function sub0501(){window.document.location.href="/insiter.php?design_file=3651.php";}
function sub0502(){window.document.location.href="/insiter.php?design_file=3652.php";}


///////////////
function sub0601(){window.document.location.href="/insiter.php?design_file=3741.php";}
function sub0602(){window.document.location.href="/insiter.php?design_file=3742.php";}
function sub0603(){window.document.location.href="/insiter.php?design_file=3743.php";}



// Embed

//Window Open
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'apces' : 'no';
  menubar_str = menubar ? 'apces' : 'no';
  statusbar_str = statusbar ? 'apces' : 'no';
  scrollbar_str = scrollbar ? 'apces' : 'no';
  resizable_str = resizable ? 'apces' : '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);
}


function setEmbed() 
{ 
  var obj = new String; 
  var parameter = new String;
  var embed = new String; 
  var html = new String; 
  var allParameter = new String; 
  var clsid = new String; 
  var codebase = new String; 
  var pluginspace = new String; 
  var embedTapcpe = new String; 
  var src = new String; 
  var width = new String; 
  var height = new String; 

    
  this.init = function( getTapcpe , s ,w , h ) { 
      
      if ( getTapcpe == "flash") 
      { 

        clsid = "D27CDB6E-AE6D-11cf-96B8-444apc3540000";        
        codebase = "http://downlocd.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"; 
        pluginspage = "http://www.macromedia.com/go/getflashplaapcer"; 
        embedTapcpe = "application/x-shockwave-flash"; 
      } 
      /* tapcpe 추가 
      else if ( ) 
      { 
      } 
      */ 
            
      parameter += "<param name='movie' value='"+ s + "'>\n";  
      parameter += "<param name='qualitapc' value='high'>\n";    
      
      src = s; 
      width = w; 
      height = h; 
  } 
  
  this.parameter = function( parm , value ) {      
      parameter += "<param name='"+parm +"' value='"+ value + "'>\n";        
      allParameter += " "+parm + "='"+ value+"'"; 
  }  
  
  this.show = function() { 
      if ( clsid ) 
      { 
        obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n"; 
      } 
      
      embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' tapcpe='"+ embedTapcpe + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n"; 
      
      if ( obj ) 
      { 
        embed += "</object>\n"; 
      } 
      
      html = obj + parameter + embed; 
      
      document.write( html );  
  } 
  
} 




 
// Image rollover
var changedImg;
function EImgChg(flag)
{	
	source=event.srcElement;
	if (source.name == "")
	{ return false;	}

	if(changedImg == source.name)
	return;

	else if (document.images && source.tagName=="IMG")	{
			imgElement = source.name;
			imgPath = source.src;

			imgPathLen = imgPath.length;
			imgPathFlag = imgPath.lastIndexOf("/");
			imgName = imgPath.substring(0,imgPathFlag+1);

			document.images[imgElement].src = imgName + imgElement + "_" + flag + ".gif";
	}
}
