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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




function link_menu( code )
{


	var URL = "http://myssada.com/";


	if( code == "login" )
	{
		location.href = URL + "sgn_member/login.php";
	}
	else if( code == "mbr_order" )
	{
		location.href = URL + "product_order/product_view.php";
	}
	else if( code == "get_order" )
	{
		location.href = URL + "sgn_member/login.php?ptn=get_order";
	}
	else if( code == "cart" )
	{
		location.href = URL + "product_cart/product_cart.php";
	}
	else if( code == "notice" )
	{
		location.href = URL + "ery_board/brd_noevlist.php?code=notice";
	}
	else if( code == "event" )
	{
		location.href = URL + "ery_board/brd_noevlist.php?code=event";
	}
	else if( code == "consul" )
	{
		location.href = URL + "ery_board/brd_consul.php";
	}
	else if( code == "company" )
	{
		location.href = URL + "ery_board/myssada.php";
	}
	else if( code == "private" )
	{
		location.href = URL + "ery_board/private.php";
	}
	else if( code == "provision" )
	{
		location.href = URL + "ery_board/provision.php";
	}
	else if( code == "shop_helper" )
	{
		location.href = URL + "ery_board/shop_helper.php";
	}
	else if( code == "mypage" )
	{
		location.href = URL + "product_order/product_mypage.php";
	}
	else if( code == "databox" )
	{
		location.href = URL + "ery_board/brd_databoxlist.php?code=0000";
	}
	else if( code == "gallery" )
	{
		location.href = URL + "ery_board/brd_gallerylist.php?code=00";
	}
	else if( code == "customer" )
	{
		location.href = URL + "ery_board/brd_cuslist.php";
	}
	else if( code == "local" )
	{
		location.href = URL + "ery_board/brd_local.php";
	}
	else if( code == "stockmall" )
	{
		location.href = URL + "ery_board/brd_fndlist.php";
	}
	else if( code == "faq" )
	{
		location.href = URL + "ery_board/brd_faqlist.php?code=00";
	}
	else if( code == "site" )
	{
		location.href = URL + "ery_board/brd_site.php";
	}
	else if( code == "recly" )
	{
		location.href = URL + "ery_board/recly.php";
	}
	//else if( code == "bankbook" )
	//{
	//	window.open( URL + "ery_board/bankbook.php" , "" , "top=0, left=0, width=350, height=350,scrollbars=yes" );
	//}
	else if( code == "color" )
	{
		window.open( URL + "ery_board/color.php" , "" , "top=0, left=0, width=400, height=230" );
	}
	else if( code == "standard" )
	{
		window.open( URL + "ery_board/standard.php" , "" , "top=0, left=0, width=416, height=650, resizable=no, scrollbars=yes" );
	}
	else if( code == "pnt" )
	{
		location.href = URL + "product_order/pnt.php";
	}
	else if( code == "poll" )
	{
		location.href = URL + "ery_board/brd_pollread.php";
	}




	else if( code == "logout" )
	{
		location.href = URL + "sgn_member/check_login.php?prn=logout";
	}
	else if( code == "mbr_agree" )
	{
		location.href = URL + "sgn_member/sgn_agree.php";
	}
	else if( code == "sign_up" )
	{
		location.href = URL + "sgn_member/sgn_member.php";
	}
	else if( code == "mbr_modify" )
	{
		location.href = URL + "sgn_member/sgn_member.php";
	}
	else if( code == "idpass" )
	{
		window.open( URL + "sgn_member/idpass.php","","top=60,left=200,width=400,height=200");
	}
	else if( code == "mbr_regi" )
	{
		window.open( URL + "sgn_member/sgn_register.php","","top=0,left=0,width=400,height=180");
	}
	else if( code == "unregi" )
	{
		window.open( URL + "sgn_member/id_unregi.php","","top=0,left=0,width=400,height=150");
	}
	else if( code == "bankbook" )
	{
		window.open( URL + "ery_board/bankbook.php" , "" , "top=0, left=0, width=334, height=500" );
	}


	else if( code == "err" )
	{
		alert (" ·Î±×ÀÎ ÇÏ½Å ÈÄ ÀÌ¿ëÇÏ¼¼¿ä. ");
		document.login.id.focus();
		return;
	}
	else if( code == "errmybox" )
	{
		alert (" ·Î±×ÀÎ ÇÏ½Å ÈÄ ÀÌ¿ëÇÏ¼¼¿ä. ");
		document.login.id.focus();
		document.login.npg.value = "../product_order/product_mybox.php";
		return;
	}
	else if( code == "mdf_err" )
	{
		alert (" ·Î±×ÀÎ ÇÏ½ÅÈÄ ÀÌ¿ë ÇÏ¼¼¿ä. ");
		document.login.ptn.value = "member";
		document.login.id.focus();
	}
	else if( code == "mpg_err" )
	{
		alert (" ·Î±×ÀÎ ÇÏ½Å ÈÄ ÀÌ¿ëÇÏ¼¼¿ä. ");
		document.login.ptn.value = "mypage";
		document.login.id.focus();
		return;
	}


}