<!--

function GoPage(code) {
	if ( !code )						{	window.location = "/index.php";	}
	else if ( code == "main" )			{	window.location = "/index.php";		}
	
	
	//1. ÇÏ´Ãºû³óÀå¼Ò°³
	else if ( code == "info01" )		{	window.location = "/doc/intro.html?part=1"; }  //ÇÏ´Ãºû³óÀåÀº
	else if ( code == "info02" )		{	window.location = "/doc/intro_greeting.html?part=2"; }  //ÀÎ»ç¸»
	else if ( code == "info03" )		{	window.location = "/doc/intro_map.html?part=3"; }  //ÇÏ´Ãºû³óÀåÀ¸·Î¿À½Ã´Â±æ

	

	//2 .  »ç°úÀÌ¾ß±â
	else if ( code == "pro01" )		{	window.location =  "/doc/story_system.html?part=1"; } //Àç¹è¹ý
	else if ( code == "pro02" )		{	window.location =  "/doc/story_process.html?part=2"; } //»ý»ê°úÁ¤
	else if ( code == "pro04" )		{	window.location =  "/doc/diary.html?part=4"; } //¿µ³óÀÏ±â


	
	//3. »ç°úºÐ¾ç
	else if ( code == "sell01" )		{	window.location = "/doc/guide_apple.html?part=1"; } // ºÐ¾ç»ç°ú
	else if ( code == "sell02" )		{	window.location = "/doc/mytree_management.html?part=2"; } // ³ªÀÇºÐ¾ç»ç°ú»çÁø
	else if ( code == "sell03" )		{	window.location = "/doc/list.html?part=3&menu_cd=30&class_cd=32"; } // Ã¼ÇèÀÌº¥Æ®

	
	
	//4. ÆÇ¸ÅÇ°¸ñ
	else if ( code == "shop01" )		{	window.location = "/doc/product_list.html?part=1&category=111000"; }  //»ç°ú
	else if ( code == "shop02" )		{	window.location = "/doc/product_list.html?part=2&category=112000"; }  //ÀÚµÎ
	else if ( code == "shop03" )		{	window.location = "/doc/product_list.html?part=3&category=113000"; }  //º¹¼þ¾Æ
	else if ( code == "shop04" )		{	window.location = "/doc/product_list.html?part=4&category=114000"; }  //½Ò

	//5.³óÀåÁÖ ÁÖº¯ÀÌ¾ß±â
	else if ( code == "pro03" )		{	window.location =  "/doc/list.html?part=3&menu_cd=20&class_cd=20"; } //³óÀå»çÁø°¶·¯¸®
	else if ( code == "farm01" )		{	window.location = "/doc/list.html?part=1&menu_cd=20&class_cd=21"; }  //³óÀåÁÖ ÁÖº¯ÀÌ¾ß±â
	else if ( code == "farm02" )		{	window.location = "/doc/list.html?part=1&menu_cd=40&class_cd=41"; }  //µ¿¿µ»ó °¶·¯¸®
	
	//6. °í°´¼¾ÅÍ
	else if ( code == "cus01" )		{	window.location = "/doc/list.html?part=1&menu_cd=10&class_cd=10"; }  //°øÁö»çÇ×
	else if ( code == "cus02" )		{	window.location = "/doc/list.html?part=2&menu_cd=30&class_cd=30"; }  //ÀÚÀ¯°Ô½ÃÆÇ
	
	//7. ÁÖº¯°ü±¤Áö
	else if ( code == "tour01" )		{	window.location = "/doc/tour01.html?part=1"; }  //³óÀåÁÖº¯°ü±¤Â¡


	//8. ¸â¹ö½±
	else if ( code == "mem01" )		{	window.open('/mypage/login_form.htm?part=1','popup1','location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,width=480,height=300,left=200,top=200,scrollbars=0'); }	//·Î±×ÀÎ
	else if ( code == "mem02" )		{	window.location = "/member/register.html?part=2"; }  //È¸¿ø°¡ÀÔ
	else if ( code == "mem03" )		{	window.location = "/mypage/edit_member.htm?part=3"; }  //Á¤º¸¼öÁ¤
	else if ( code == "mem04" )		{	window.location = "/mypage/member_leave.htm?part=4"; }  //È¸¿øÅ»Åð


	//9.¼îÇÎ¸¶ÀÌÆäÀÌÁö
	else if ( code == "order01" )		{	window.location = "/shopping_cart/shopping_cart.htm?part=1"; }  //Àå¹Ù±¸´Ï
	else if ( code == "order02" )		{	window.location = "/mypage/buying_list.php?part=1"; }  //ÁÖ¹®¹è¼ÛÁ¶È¸
    else if ( code == "order03" )		{	window.location = "/doc/buying_cancel.html?part=1"; }  //ÁÖ¹®Ãë¼Ò
	


	 //etc
    else if ( code == "mail" )			{	window.location = "mailto:mail@hanmail.net"; }
	else if ( code == "sitemap" )		{	window.location = "/doc/sitemap.html?part=1";  }

	else if ( code == "etc01" )		{	window.location = "/doc/etc01.html?part=1";  } //°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
	else if ( code == "etc02" )		{	window.location = "/doc/etc02.html?part=2";  } //ÀÌ¿ë¾à°ü

	else if ( code == "certi" )		{	window.open('/doc/pop_certi.html','certi1','location=0,directories=0,resizable=0,status=0,toolbar=0,menubar=0,width=505,height=685,left=0,top=0,scrollbars=0');  } //Ä£È¯°æÀÎÁõ
	

}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function open_win(val, wname, wopt, menu) {
	var newopt = "", wHeight = 0, wWidth = 0;
	if (wopt != undefined) {
		var woptlist = wopt.replace(/ /g, "").split(",");
		for (var i in woptlist) {
			if (woptlist[i].match(/^height=/i)) {
				wHeight = parseInt(woptlist[i].substr(7),10);
				if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
			}
			if (woptlist[i].match(/^width=/i)) {
				wWidth = parseInt(woptlist[i].substr(6),10);
				if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
			}
		}
	}

	url = val + "?" + menu;
	window.open(url, wname, newopt + wopt); 
} 

// ·¹ÀÌ¾î ½ºÅ©·Ñ µÇ´Â ¼Ò½º
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { 
                yMenuFrom   = document["divMenu"].top;
                yMenuTo     = top.pageYOffset + 62;
        }
        else if ( bExplorer4plus ) {
                yMenuFrom   = parseInt (divMenu.style.top, 10);
                yMenuTo     = document.body.scrollTop + 256;//·¹ÀÌ¾îÀÇ top°ªÀº ÆäÀÌÁö ¿­¾úÀ»¶§ ½½¶óÀÌµù ½ÃÀÛÁ¡ÀÌ°í ¿©±â ¿·¿¡ ¼ýÀÚ´Â ÃÖÁ¾ÀûÀ¸·Î Å¾À¸·ÎºÎÅÍ µµÂøÇÏ´Â °÷
        }

        timeoutNextCheck = 0;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }

        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divMenu"].top += yOffset;
                else if ( bExplorer4plus )
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
        var y;
        if ( top.frames.length )
        if ( bNetscape4plus ) {
                document["divMenu"].top = top.pageYOffset + 50;//À¥¿¡ ¶ç¿üÀ»¶§ ½ÃÀÛÁ¡
                document["divMenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                divMenu.style.top = document.body.scrollTop + 250;//À¥¿¡ ¶ç¿üÀ»¶§ ½ÃÀÛÁ¡
                divMenu.style.visibility = "visible";
        }
        CheckUIElements();
        return true;
}

//-->

//ÆË¾÷
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
