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


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

/////////////////////////////
function sub0101(){window.document.location.href="/sub01/01_01.php?chk_on=m11";}
function sub0102(){window.document.location.href="/sub01/01_02.php?chk_on=m12";}
function sub0103(){window.document.location.href="/sub01/01_03.php?chk_on=m13";}



//////////////////////////////
function sub0201(){window.document.location.href="/sub02/02_01.php?chk_on=m21";}
  function sub020101(){window.document.location.href="/goods/index.htm?cate_code=AH&chk_on=m212";}
  function sub020102(){window.document.location.href="/goods/index.htm?cate_code=AHAF&chk_on=m212";}
  function sub020103(){window.document.location.href="/goods/index.htm?cate_code=AHAE&chk_on=m212";}
  function sub020104(){window.document.location.href="/goods/index.htm?cate_code=AHAD&chk_on=m212";}
  function sub020105(){window.document.location.href="/goods/index.htm?cate_code=AHAC&chk_on=m212";}
  function sub020106(){window.document.location.href="/goods/index.htm?cate_code=AHAB&chk_on=m212";}
  function sub020107(){window.document.location.href="/goods/index.htm?cate_code=AHAA&chk_on=m212";}


 function sub020201(){window.document.location.href="/goods/index.htm?cate_code=AG&chk_on=m222";}
 function sub020202(){window.document.location.href="/goods/index.htm?cate_code=AGAE&chk_on=m222";}
 function sub020203(){window.document.location.href="/goods/index.htm?cate_code=AGAD&chk_on=m222";}
 function sub020204(){window.document.location.href="/goods/index.htm?cate_code=AGAC&chk_on=m222";}
 function sub020205(){window.document.location.href="/goods/index.htm?cate_code=AGAB&chk_on=m222";}
 function sub020206(){window.document.location.href="/goods/index.htm?cate_code=AGAA&chk_on=m222";}
 function sub020207(){window.document.location.href="/goods/index.htm?cate_code=AGAF&chk_on=m222";}

 function sub020301(){window.document.location.href="/goods/index.htm?cate_code=AF&chk_on=m233";}
 function sub020302(){window.document.location.href="/goods/index.htm?cate_code=AFAD&chk_on=m233";}
 function sub020303(){window.document.location.href="/goods/index.htm?cate_code=AFAC&chk_on=m233";}
 function sub020304(){window.document.location.href="/goods/index.htm?cate_code=AFAB&chk_on=m233";}
 function sub020305(){window.document.location.href="/goods/index.htm?cate_code=AFAA&chk_on=m233";}


 function sub020401(){window.document.location.href="/goods/index.htm?cate_code=AE&chk_on=m244";}
 function sub020402(){window.document.location.href="/goods/index.htm?cate_code=AEAH&chk_on=m244";}
 function sub020403(){window.document.location.href="/goods/index.htm?cate_code=AEAG&chk_on=m244";}
 function sub020404(){window.document.location.href="/goods/index.htm?cate_code=AEAF&chk_on=m244";}
 function sub020405(){window.document.location.href="/goods/index.htm?cate_code=AEAE&chk_on=m244";}
 function sub020406(){window.document.location.href="/goods/index.htm?cate_code=AEAD&chk_on=m244";}
 function sub020407(){window.document.location.href="/goods/index.htm?cate_code=AEAC&chk_on=m244";}
 function sub020408(){window.document.location.href="/goods/index.htm?cate_code=AEAB&chk_on=m244";}
 function sub020409(){window.document.location.href="/goods/index.htm?cate_code=AEAA&chk_on=m244";}

 
 function sub020501(){window.document.location.href="/goods/index.htm?cate_code=AD&chk_on=m255";}
 function sub020502(){window.document.location.href="/goods/index.htm?cate_code=ADAO&chk_on=m255";}
 function sub020503(){window.document.location.href="/goods/index.htm?cate_code=ADAN&chk_on=m255";}
 function sub020504(){window.document.location.href="/goods/index.htm?cate_code=ADAM&chk_on=m255";}
 function sub020505(){window.document.location.href="/goods/index.htm?cate_code=ADAL&chk_on=m255";}
 function sub020506(){window.document.location.href="/goods/index.htm?cate_code=ADAK&chk_on=m255";}
 function sub020507(){window.document.location.href="/goods/index.htm?cate_code=ADAJ&chk_on=m255";}
 function sub020508(){window.document.location.href="/goods/index.htm?cate_code=ADAI&chk_on=m255";}
 function sub020509(){window.document.location.href="/goods/index.htm?cate_code=ADAH&chk_on=m255";}
 function sub0205010(){window.document.location.href="/goods/index.htm?cate_code=ADAG&chk_on=m255";}
 function sub0205011(){window.document.location.href="/goods/index.htm?cate_code=ADAF&chk_on=m255";}
 function sub0205012(){window.document.location.href="/goods/index.htm?cate_code=ADAE&chk_on=m255";}
 function sub0205013(){window.document.location.href="/goods/index.htm?cate_code=ADAD&chk_on=m255";}
 function sub0205014(){window.document.location.href="/goods/index.htm?cate_code=ADAC&chk_on=m255";}
 function sub0205015(){window.document.location.href="/goods/index.htm?cate_code=ADAB&chk_on=m255";}
 function sub0205016(){window.document.location.href="/goods/index.htm?cate_code=ADAA&chk_on=m255";}

 
 function sub020601(){window.document.location.href="/goods/index.htm?cate_code=AC&chk_on=m266";}
 function sub020602(){window.document.location.href="/goods/index.htm?cate_code=ACAC&chk_on=m266";}
 function sub020603(){window.document.location.href="/goods/index.htm?cate_code=ACAB&chk_on=m266";}
 function sub020604(){window.document.location.href="/goods/index.htm?cate_code=ACAA&chk_on=m266";}

function sub0207(){window.document.location.href="/goods/index.htm?cate_code=AB&chk_on=m277";}

function sub0208(){window.document.location.href="/goods/index.htm?cate_code=AA&chk_on=m288";}


/////////////////////////////
function sub0301(){window.document.location.href="/sub03/index.htm?cate_code=AH&chk_on=m31";}
function sub0302(){window.document.location.href="/sub03/index.htm?cate_code=AG&chk_on=m32";}
function sub0303(){window.document.location.href="/sub03/index.htm?cate_code=AF&chk_on=m33";}
function sub0304(){window.document.location.href="/sub03/index.htm?cate_code=AE&chk_on=m34";}
function sub0305(){window.document.location.href="/sub03/index.htm?cate_code=AD&chk_on=m35";}
function sub0306(){window.document.location.href="/sub03/index.htm?cate_code=AC&chk_on=m36";}


//////////////////////////
function sub0401(){window.document.location.href="/sub04/index.htm?cate_code=AH&chk_on=m41";}
function sub0402(){window.document.location.href="/sub04/index.htm?cate_code=AG&chk_on=m42";}
function sub0403(){window.document.location.href="/sub04/index.htm?cate_code=AF&chk_on=m43";}
function sub0404(){window.document.location.href="/sub04/index.htm?cate_code=AE&chk_on=m44";}
function sub0405(){window.document.location.href="/sub04/index.htm?cate_code=AD&chk_on=m45";}
function sub0406(){window.document.location.href="/sub04/index.htm?cate_code=AC&chk_on=m46";}

///////////////////////
function sub0501(){window.document.location.href="/sub05/05_01.php?chk_on=m51";}
function sub0502(){window.open("http://www.webhard.co.kr");}

/////////////////////
function sub0601(){window.document.location.href="/sub06/06_01.php?chk_on=m61";}
function sub0602(){window.document.location.href="/sub06/06_02.php?chk_on=m62";}
function sub0603(){window.document.location.href="/sub06/06_03.php?chk_on=m63";}


 /////////////////////
function sub0701(){window.document.location.href="/sub07/07_01.php?chk_on=m71";}

// Embed

//Window Open
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);
}


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 embedType = new String; 
  var src = new String; 
  var width = new String; 
  var height = new String; 

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

        clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";        
        codebase = "http://downlocd.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"; 
        pluginspage = "http://www.macromedia.com/go/getflashplayer"; 
        embedType = "application/x-shockwave-flash"; 
      } 
      /* type Ãß°¡ 
      else if ( ) 
      { 
      } 
      */ 
            
      parameter += "<param name='movie' value='"+ s + "'>\n";  
      parameter += "<param name='quality' 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 + "' type='"+ embedType + "' 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";
	}
}
//ÆîÄ§¸Þ´º
function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if ((frameobj = eval(targetstr)) != null)
       frameobj.location = sel.options[index].value;
     }
  }
}



//left menu show/hide
var old_sublayer = '';
var p_maximum = '1';


function setLayer(sublayer){

	if( old_sublayer != sublayer ) { 
			if( old_sublayer !='' ) { 
				old_sublayer.style.display = 'none'; 
			} 

			sublayer.style.display = 'block'; 
			old_sublayer = sublayer; 

	} else { 
			sublayer.style.display = 'none'; 
			old_sublayer = ''; 
	} 
}

//Æ¯Á¤ºÎºÐÃâ·Â
function printDiv () { 
  if (document.all && window.print) {
    window.onbeforeprint = beforeDivs;
    window.onafterprint = afterDivs;
    window.print();
  }
}
function beforeDivs () {
  if (document.all) {
    objContents.style.display = 'none';
    objSelection.innerHTML = document.all['d1'].innerHTML;
  }
}
function afterDivs () {
  if (document.all) {
    objContents.style.display = 'block';
    objSelection.innerHTML = "";
  }
}
