//ÇÃ·¡½Ã ¸Þ´º url
//sub_010000 = new Array("Å¸ÄÏ","°æ·Î","ÀÌ¸§");
/*
sub_010000 = new Array("","/sub_0101.html",""); 
sub_010100 = new Array("","/sub_0101.html",""); 
sub_010200 = new Array("","/sub_0102.html",""); 
sub_010300 = new Array("","/sub_0103.html",""); 
*/


sub_000000 = new Array("","http://leespat.com/new/eng/index.html","HOME"); 



sub_010000 = new Array("","http://leespat.com/new/eng/sub_0101.html","Æ¯Çã»ç¹«¼Ò ¼Ò°³                          ");  
sub_010100 = new Array("","http://leespat.com/new/eng/sub_0101.html","»ç¹«¼Ò ¼Ò°³                              "); 
sub_010200 = new Array("","http://leespat.com/new/eng/sub_0102.html","Ã£¾Æ¿À½Ã´Â±æ                             ");
sub_010300 = new Array("","http://leespat.com/new/eng/sub_010301.html","»ç¹«¼Ò ¼Ò°³                              "); 
sub_010301 = new Array("","http://leespat.com/new/eng/sub_010301.html","Ã£¾Æ¿À½Ã´Â±æ                             ");
sub_010302 = new Array("","http://leespat.com/new/eng/sub_010302.html","Ã£¾Æ¿À½Ã´Â±æ                             ");


sub_020000 = new Array("","http://leespat.com/new/eng/sub_0201.html","¾÷¹«ºÐ¾ß                                ");  
sub_020100 = new Array("","http://leespat.com/new/eng/sub_0201.html","ÁöÀû Àç»ê±Ç µî·Ï                         ");  
sub_020200 = new Array("","http://leespat.com/new/eng/sub_0202.html","ÁöÀû Àç»ê±Ç Çà»ç                         ");  


sub_030000 = new Array("","http://leespat.com/new/eng/sub_0301.html","±¸¼º¿ø                                          ");  
sub_030100 = new Array("","http://leespat.com/new/eng/sub_0301.html","¸®Áî¾ØÄÚ º¯¸®»ç ¼Ò°³                            ");  
sub_030200 = new Array("","http://leespat.com/new/eng/sub_0302.html","ÀÌÈÆ º¯¸®»ç                                     ");  
sub_030300 = new Array("","http://leespat.com/new/eng/sub_0303.html","ÀÌµÎÈñ º¯¸®»ç                                   ");  
sub_030400 = new Array("","http://leespat.com/new/eng/sub_0304.html","³ªµ¿±Ô º¯¸®»ç                                   ");  
sub_030500 = new Array("","http://leespat.com/new/eng/sub_0305.html","Àü¼öÁø º¯¸®»ç                                   ");  
sub_030600 = new Array("","http://leespat.com/new/eng/sub_0306.html","À±Á¤È£ º¯¸®»ç                                   ");  
sub_030700 = new Array("","http://leespat.com/new/eng/sub_0307.html","ÀÌÁ¤ÀÏ º¯¸®»ç                                    ");

sub_040000 = new Array("","http://leespat.com/new/board.php?board=newse","´º½º                                    ");
sub_040100 = new Array("","http://leespat.com/new/board.php?board=newse","´º½º                                   ");


sub_070000 = new Array("","http://leespat.com/new/index.html","±¹¹®                         ");  
sub_080000 = new Array("","http://leespat.com/new/jpn/index.html","ÀÏ¹®                            ");  



function favor(){ 
  window.external.AddFavorite('', ''); 
}


//<a href = "javascript:menu_link('sub_100100')"  >¸µÅ© </a>
function gotoUrl(name) {
//alert(name);
   name = 'sub_'+ name.substring(2, 8);
//alert(name);
	if (eval(name)[1] =="") {                    alert("ÁØºñÁßÀÔ´Ï´Ù."); return;
    } else {
        if (eval(name)[0] == "") {               location.href = eval(name)[1];
        } else {
            if(eval(name)[0] == "nolink"){       alert('¾ÆÁ÷ ÆäÀÌÁö ¾øÀ½');
            }else if(eval(name)[0] == "pop")  {  window.open(eval(name)[1],"mini","windth=800,height=600");
            }else if(eval(name)[0] == "full") {  window.open(eval(name)[1],"full","windth=1024,height=768");
            }else if(eval(name)[0] == "top")  {  top.location.href = eval(name)[1];
            }else if(eval(name)[0] == "blank"){  window.open(eval(name)[1], "_blank");
            }
        }
    }
}


//<a href = "javascript:menu_link('sub_100100')"  >¸µÅ© </a>
function menu_link(name) {

//ÀÚ¸®¼ö È®ÀÎÇÏ±â
	sub_cnt = name.length;
	if(sub_cnt <10){
// ÀÚ¸®¼ö°¡ ¸ðÀß¶ó¼­ ´Ã¸²
		name = 'sub_'+ name.substring(4, 8)+'00'
	}

	if (eval(name)[1] =="") {                    alert("ÁØºñÁßÀÔ´Ï´Ù."); return;
    } else {
        if (eval(name)[0] == "") {               location.href = eval(name)[1];
        } else {
            if(eval(name)[0] == "nolink"){       alert('¾ÆÁ÷ ÆäÀÌÁö ¾øÀ½');
            }else if(eval(name)[0] == "pop")  {  window.open(eval(name)[1],"mini","windth=800,height=600");
            }else if(eval(name)[0] == "full") {  window.open(eval(name)[1],"full","windth=1024,height=768");
            }else if(eval(name)[0] == "top")  {  top.location.href = eval(name)[1];
            }else if(eval(name)[0] == "blank"){  window.open(eval(name)[1], "_blank");
            }
        }
    }
}

// <script>subInfo('sub¸í')</script>
/*¸Ê ¸µÅ©*/
function subInfo(str){
//ÀÚ¸®¼ö È®ÀÎÇÏ±â
sub_cnt = str.length;
if(sub_cnt <10){
// ÀÚ¸®¼ö°¡ ¸ðÀß¶ó¼­ ´Ã¸²
	str = 'sub_'+ str.substring(4, 8)+'00'
}

//str =name[1];
	if(str!="" ){

		menuVal = eval('sub_'+ '000000');
		var full_menu_str =" "+menuVal[2]+" ";

		/*È¨ÀÌ ¾Æ´Ï¸é */ 
	   menuVal = eval('sub_'+ str.substring(4, 6)+'0000');  
		if(str.substring(6,8)=="00"){

			if(str.substring(8,10) =="00"){				
				full_menu_str +=" > "+"<strong class='104076_11'>"+menuVal[2]+"</strong>"; 			 
			}
			else{
				full_menu_str +=" > "+menuVal[2];
			}
		}else{
			full_menu_str +=" > "+menuVal[2];	
			menuVal = eval('sub_'+ str.substring(4, 8)+'00');
			if(str.substring(8,10) =="00"){				
				full_menu_str +=" > "+"<strong class='104076_11'>"+menuVal[2]+"</strong>"; 			 
			}else{	  
			 full_menu_str +=" > "+"<span class='104076_11'>"+menuVal[2]+"</span>";
			 menuVal = eval('sub_'+ str.substring(4, 10));
			 full_menu_str +=" > "+"<strong class='104076_11'>"+menuVal[2]+"</strong>";
		   }
		}
	}
	DocumentWrite(full_menu_str);
}

 
function DocumentWrite(src)
{
    document.write(src);
}


// <script> flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, 'transparent', º¯¼ö) </script>
function flash(url,width,height,id,wmode,otherParam){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id=ShockwaveFlash1>'
+'<param name="movie" value="'+url+'">'
+'<param name="quality" value="high">'
+'<param name="wmode" value="'+wmode+'">'
+'<param name="allowScriptAccess" value="always">'
+'<param name="FlashVars" value="'+otherParam+'">'
+'<embed src="'+url+'" quality="high"  wmode="'+wmode+'" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash"></embed>'
+'</object>');
}

// »ç¿ë¹ý / JavaScript:newwin('¶ç¿ì°íÀÚÇÏ´ÂÆäÀÌÁö','Å¸°Ù','Æø','³ôÀÌ','¸®»çÀÌÁî','½ºÅ©·Ñ','¸Þ´º¹Ù');
// »ç¿ë¹ý / href="JavaScript:newwin('today_view.htm','','610','370','0','0','0');"
 function newwin(w_url,w_title,w_width,w_height,w_resizable,w_scrollbars,w_menubar)
  {
    var option = "alwaysRaised,toolbar=0,status=0";
    var w_left = (screen.width)?(screen.width-w_width)/2:100;
    var w_top = (screen.height)?(screen.height-w_height)/2:100;
    
    //width ¿Í height °¡ ÀÖÀ»¶§¸¸ È­¸éÀÇ °¡¿îµ¥¿¡ Ç¥½ÃÇÑ´Ù
    if (w_width) option = option + ",width=" + w_width + ",left=" + w_left;
    if (w_height) option = option + ",height=" + w_height + ",top=" + w_top;
    //Ã¢Å©±â Á¶Àý°¡´É°ú ½ºÅ©·Ñ¹Ù Ç¥½Ã´Â ±âº»ÀûÀ¸·Î º¸ÀÌÁö ¾ÊÀ¸¸ç, ÁöÁ¤ÇÒ¶§¸¸ º¸ÀÎ´Ù
    if (w_resizable == true) option = option + ",resizable=1";
    if (w_scrollbars == true) option = option + ",scrollbars=1";
    if (w_menubar == true) option = option + ",menubar=1";

    var new_instance = window.open(w_url,w_title,option,"");
    new_instance.focus();
  //	window.open(w_url,w_title,option,"");
  }

function scrollpopup(url,id,w,h,sc,addvar,other){

    var ref = url;
    if(addvar){
        addvar= eval("document.joinform."+addvar+".value");
        ref = url +"?fid="+addvar+"&mb="+other;
    }

    var window_left = (screen.width-640)/2;
    var window_top = (screen.height-480)/2;
   //showModalDialog
    window.open(ref,id,'width=' + w + ',height=' + h + ',status=no,scrollbars='+ sc +',menubar=no,top=' + window_top + ',left=' + window_left + '');
}




function addLoadEvent(func){	
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {	 
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
 
}
 /*
 window.onload=function(){
fillup(); //½ÇÇàµÉ ÇÔ¼ö1
popup(); //½ÇÇàµÉ ÇÔ¼ö2
}

 */
