
/*==========================================*
   1depth ¸Þ´º ¸µÅ©
*==========================================*/
function goMenu(num){
	if (num=='m01'){
		document.location.href='/Shopping/product/new_product.jsp';
	} else if (num=='m02'){
		document.location.href='/Shopping/product/product_list.jsp?category1=9';
	} else if (num=='m03'){
		document.location.href='/Shopping/event/event_list.jsp';
	} else if (num=='m04'){
		document.location.href='/Shopping/customercenter/News.jsp';

	}
}

function goMenur(num){
	if (num=='mr01'){
		document.location.href='/Shopping/product/product_list.jsp?category1=1';
	} else if (num=='mr02'){
		document.location.href='/Shopping/product/product_list.jsp?category1=2';
	} else if (num=='mr03'){
		document.location.href='/Shopping/product/product_list.jsp?category1=3';
	} else if (num=='mr04'){
		document.location.href='/Shopping/product/product_list.jsp?category1=4';
	} else if (num=='mr05'){
		document.location.href='/Shopping/product/product_list.jsp?category1=4&order=&category2=145';
 	} else if (num=='mr06'){
		document.location.href='/Shopping/product/product_list.jsp?category1=6';
	} else if (num=='mr07'){
		document.location.href='/Shopping/product/product_list.jsp?category1=7';

	}
}

/*==========================================*
   utility ¸Þ´º ¸µÅ©
*==========================================*/


function goUtil(num){
  
  if (location.host.indexOf("localhost") >= 0) {
	  useUrlSSL = ""
	  useUrlNOR = ""
  } else {
    useUrlNOR = "http://www.wellife.co.kr"
    useUrlSSL = "https://www.wellife.co.kr"    
  }
  
	if (num=='util_login'){
	  
    window.open(useUrlSSL + "/Branding/Member/Login.jsp","Well","width=440,height=370,scrollbars=no");
    		
	} else if (num=='util_logout'){
		document.location.href='/Shopping/member/logout.jsp';
	} else if (num=='util_memberjoin'){
		document.location.href='/Shopping/member/NameCheckFrm.jsp';
	} else if (num=='util_mypage'){
		document.location.href= '/Shopping/mypage/Mypage.jsp';				
	} else if (num=='util_cart'){
		document.location.href='/Shopping/order/cart.jsp';
	} else if (num=='util_search'){
		document.location.href='/Shopping/customercenter/login_search.jsp'; //ºñÈ¸¿øÁÖ¹®¹è¼ÛÁ¶È¸
	} else if (num=='util_ordmem'){
		document.location.href='/Shopping/mypage/order_list.jsp';		//È¸¿øÁÖ¹®¹è¼ÛÁ¶È¸
	} else if (num=='util_brand'){
		window.open("/Branding/");
	}
}

/*==========================================*
   Left ¸Þ´º ¸µÅ©
*==========================================*/


//¸ÞÀÎ¸Þ´º


function goMainMenu(num){
	if (num=='m_L01'){
		document.location.href='/Shopping/product/product_list.jsp?category1=1';
	} else if (num=='m_L02'){
		document.location.href='/Shopping/product/product_list.jsp?category1=2';
	} else if (num=='m_L03'){
		document.location.href='/Shopping/product/product_list.jsp?category1=3';
	} else if (num=='m_L04'){
		document.location.href='/Shopping/product/product_list.jsp?category1=4';
	} else if (num=='m_L05'){
		document.location.href='/Shopping/product/product_list.jsp?category1=4&order=&category2=145';
	} else if (num=='m_L06'){
		document.location.href='/Shopping/product/product_list.jsp?category1=6';
	} else if (num=='m_L07'){
		document.location.href='/Shopping/product/product_list.jsp?category1=7';
	} 
}



//ÀÌº¥Æ®


function goEventMenu(num){
	if (num=='m_01'){
		document.location.href='/Shopping/event/event_list.jsp';
	} else if (num=='m_02'){
		document.location.href='/Shopping/event/arcade_room.jsp';
	} else if (num=='m_03'){
		document.location.href='/Shopping/event/coupon.jsp';
	}
}




//°í°´¼¾ÅÍ


function goCustomerMenu(num){
	if (num=='m_01'){
		document.location.href='/Shopping/customercenter/Welfy.jsp';
	} else if (num=='m_02'){
		document.location.href='/Shopping/customercenter/News.jsp';
	} else if (num=='m_03'){
		document.location.href='/Shopping/customercenter/PointInfo.jsp';
	} else if (num=='m_04'){
		document.location.href='/Shopping/customercenter/Faq.jsp';
	} else if (num=='m_05'){
		document.location.href='/Shopping/customercenter/consult.jsp';
	} else if (num=='m_06'){
		document.location.href='/Shopping/customercenter/ProductComment.jsp';
	} else if (num=='m_07'){
		document.location.href='/Shopping/customercenter/CustomInfo.jsp';
	} else if (num=='m_08'){
		document.location.href='/Shopping/customercenter/FindPay.jsp';
	}
}




//¸¶ÀÌÆäÀÌÁö


function goMypageMenu(num){
  
  if (location.host.indexOf("localhost") >= 0) {
	  useUrlSSL = ""
	  useUrlNOR = ""
  } else {
    useUrlNOR = "http://www.wellife.co.kr"
    useUrlSSL = "https://www.wellife.co.kr"    
  }
  
	if (num=='m_01'){
		document.location.href='/Shopping/mypage/Mypage.jsp';
	} else if (num=='m_02'){
		document.location.href='/Shopping/mypage/Point.jsp';
	} else if (num=='m_03'){
		document.location.href='/Shopping/mypage/order_list.jsp';
	} else if (num=='m_04'){
		document.location.href='/Shopping/mypage/Mem_out.jsp';
	} else if (num=='m_05'){
		document.location.href='/Shopping/mypage/MyEvent_list.jsp';
	}
}



// ÃßÃµÁ¦Ç°

function goHitMenu(num){
	if (num=='m_01'){
		document.location.href="javascript:showHideLayer('1')";
	} else if (num=='m_02'){
		document.location.href="javascript:showHideLayer('2')";
	} else if (num=='m_03'){
		document.location.href="javascript:showHideLayer('3')";
	} else if (num=='m_04'){
		document.location.href="javascript:showHideLayer('4')";
	} else if (num=='m_05'){
		document.location.href="javascript:showHideLayer('5')";
	} else if (num=='m_06'){
		document.location.href="javascript:showHideLayer('6')";
	} else if (num=='m_07'){
		document.location.href="javascript:showHideLayer('7')";
	}
}



/*==========================================*
   ¸ÞÀÎºñÁÖ¾ó ¸Þ´º ¸µÅ©
*==========================================*/
function goPro(num){
	if (num=='m2'){
		document.location.href='/Shopping/product/product_detail_view.jsp?p_idx=141&category1=7&category1=10';
	} else if (num=='m1'){
		document.location.href='/Shopping/product/product_detail_view.jsp?p_idx=56';
	} else if (num=='m3'){
		document.location.href='/Shopping/product/product_detail_view.jsp?p_idx=66';
	} else if (num=='m4'){
		document.location.href='/Shopping/product/product_detail_view.jsp?p_idx=140';
	} else if (num=='m5'){
		document.location.href='/Shopping/product/product_detail_view.jsp?p_idx=138';

	}
}


/*==========================================*
   ¸ÞÀÎÀÌº¥Æ® ¸µÅ©
*==========================================*/
function goEvent(num){
	if (num=='m1'){
		document.location.href='/Shopping/event/event_view.jsp?ev_idx=27&ev_category=event&page=1&searchkey=&searchvalue=&pageNum=6&sub=1&defNum=1';
	} else if (num=='m2'){
		document.location.href='/Shopping/event/event_view.jsp?ev_idx=26&ev_category=event&page=1&searchkey=&searchvalue=&pageNum=6&sub=1&defNum=1';
	} else if (num=='m3'){
		document.location.href='/Shopping/event/event_view.jsp?ev_category=event&ev_idx=24&page=1&searchkey=&searchvalue=&pageNum=6&sub=1&defNum=1';
	}
}


/*==========================================*
 MS ÀÍ½ºÇÃ·¯ ÄÁÆ®·Ñ Á¦¾î
*==========================================*/
//swf
function objectlaunchSwf(width, height, url){
	document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=" + width + " height=" + height + ">");
	document.write("<param name=movie value=" + url + ">");
	document.write("<param name=wmode value=transparent>");
	document.write("<param name=quality value=high>");
	document.write("<embed src=" + url + " quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=" + width + " height=" + height + "></embed>");
	document.write("</object>");
}

//player
function objectlaunchPlayer(width, height, url){
	document.write("<OBJECT id=mediaPlayer classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 type=application/x-oleobject width=" + width + " height=" + height + " space=0 hspace=0 align=middle style=left:0px; top:0px;>");
	document.write("<param name=AllowChangeDisplaySize value=false>");
	document.write("<param name=AllowScan value=true>");
	document.write("<param name=AnimationAtStart value=false>");
	document.write("<param name=AudioStream value=-1>");
	document.write("<param name=AutoRewind value=true>");
	document.write("<param name=AutoSize value=false>");
	document.write("<param name=AutoStart value=true>");
	document.write("<param name=Balance value=0>");
	document.write("<param name=BufferingTime value=5>");
	document.write("<param name=ClickToPlay value=true>");
	document.write("<param name=CurrentMarker value=-1>");
	document.write("<param name=CurrentPosition value=-1>");
	document.write("<param name=CursorType value=0>");
	document.write("<param name=DisplayBackColor value=0>");
	document.write("<param name=DisplayForeColor value=16777215>");
	document.write("<param name=DisplayMode value=0>");
	document.write("<param name=DisplaySize value=0>");
	document.write("<param name=EnableContextMenu value=false>");
	document.write("<param name=Enabled value=true>");
	document.write("<param name=EnableFullScreenControls value=false>");
	document.write("<param name=EnablePositionControls value=true>");
	document.write("<param name=EnableTracker value=true>");
	document.write("<param name=InvokeURLs value=true>");
	document.write("<param name=Language value=-1>");
	document.write("<param name=Mute value=false>");
	document.write("<param name=PlayCount value=1>");
	document.write("<param name=PreviewMode value=false>");
	document.write("<param name=Rate value=1>");
	document.write("<param name=SelectionEnd value=-1>");
	document.write("<param name=SelectionStart value=-1>");
	document.write("<param name=SendErrorEvents value=true>");
	document.write("<param name=SendKeyboardEvents value=false>");
	document.write("<param name=SendMouseClickEvents value=false>");
	document.write("<param name=SendMouseMoveEvents value=false>");
	document.write("<param name=SendOpenStateChangeEvents value=true>");
	document.write("<param name=SendPlayStateChangeEvents value=true>");
	document.write("<param name=SendWarningEvents value=true>");
	document.write("<param name=ShowAudioControls value=false>");
	document.write("<param name=ShowCaptioning value=false>");
	document.write("<param name=ShowControls value=false>");
	document.write("<param name=ShowDisplay value=false>");
	document.write("<param name=ShowGotoBar value=false>");
	document.write("<param name=ShowPositionControls value=false>");
	document.write("<param name=ShowStatusBar value=false>");
	document.write("<param name=ShowTracker value=false>");
	document.write("<param name=TransparentAtStart value=false>");
	document.write("<param name=VideoBorder3D value=true>");
	document.write("<param name=VideoBorderColor value=0>");
	document.write("<param name=VideoBorderWidth value=0>");
	document.write("<param name=Volume value=-400>");
	document.write("<param name=WindowlessVideo value=-1>");
	document.write("<param name=Filename value=" + url + ">");
	document.write("<embed src=" + url + " type=application/x-mplayer2 width=" + width + " height=" + height + " id=mediaPlayer></embed>");
	document.write("</OBJECT>");
}

//ÀÏ¹Ý
function objectlaunch(val){
	document.write(val);
}