//alert("¼­¹ö ÀÌÀüÀÛ¾÷ÁßÀÔ´Ï´Ù.");
//top.location.href = "/ready.php";

function chk_member_infor(){
	location.href="/member/member_info.php";
}
function msg_member_join(){
	//alert("È¸¿øÀü¿ë ¼­ºñ½ºÀÔ´Ï´Ù.");
	location.href="/join/login.php";
}
function new_member_join(chk_url){
	//alert("È¸¿øÀü¿ë ¼­ºñ½ºÀÔ´Ï´Ù");
	location.href="/join/login.php?url="+chk_url;
}
function sch_data(){
	var fn=document.f_search;
	if(fn.sch_content.value==""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		fn.sch_content.focus();
		return false;
	}
	fn.action="/shop/product_search.php";
	fn.submit();
	fn.sch_content.value="";
}
function sch_data2(){
	var fn=document.f_search2;
	if(fn.sch_content.value==""){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		fn.sch_content.focus();
		return false;
	}
	fn.action="/shop/product_search.php";
	fn.submit();
	fn.sch_content.value="";
}

//µû¶ó´Ù´Ï´Â ¹è³Ê
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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);
var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function moveRightEdge() {
	//if(document.body.scrollTop<100) div_top=150;
	//if(document.body.scrollTop>=100 && document.body.scrollTop<300) div_top=200;
	//else if(document.body.scrollTop>=300) div_top=200;
	div_top=81;
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isDOM) {
			yMenuFrom   = parseInt (link_book.style.top, 10);
			yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + div_top; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 500;

	if (yMenuFrom != yMenuTo) {
			yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
			if (yMenuTo < yMenuFrom)
					yOffset = -yOffset;
			if (isNS4)
					link_book.top += yOffset;
			else if (isDOM)
					link_book.style.top = parseInt (link_book.style.top, 10) + yOffset;
					timeoutNextCheck = 10;
	}
	setTimeout ('moveRightEdge()', timeoutNextCheck);
}

function banner_url(tag_url){
	switch(tag_url){
		case "new" : location.href="/shop/product_sectionlist.php?section=new";
		break;
		case "best" : location.href="/shop/product_sectionlist.php?section=best";
		break;
		case "romancia" : location.href="/shop/product_themelist.php?section="+tag_url;
		break;
		case "nobility" : location.href="/shop/product_themelist.php?section="+tag_url;
		break;
		case "evillady" : location.href="/shop/product_themelist.php?section="+tag_url;
		break;
		case "oriental" : location.href="/shop/product_themelist.php?section="+tag_url;
		break;
	}
}
