/* { Url } onClick="menu2_1();" / javascript:history.back() / javascript:topmenu1() */

/* -------------------------------------------------------------------------------------------------------------------
    TOP FLASH MENU
------------------------------------------------------------------------------------------------------------------- */
function topmenu0(){location.href="/";}                                             // È¨

/* -------------------------------------------------------------------------------------------------------------------
    TOP MENU
------------------------------------------------------------------------------------------------------------------- */
function topmenu1(){location.href="/module/login/login.asp";}                            // ·Î±×ÀÎ
function topmenu1_1(){location.href="http://theskinfood.com/module/member/agreement.asp";}                     // È¸¿ø°¡ÀÔ
function topmenu1_2(){location.href="/module/login/logout.asp";}                         // ·Î±×¾Æ¿ô
function topmenu1_3(){location.href="/module/mypage/my_page.asp";}                       // ¸¶ÀÌÆäÀÌÁö
function topmenu1_4(){location.href="/module/customer/skinfood_faq.asp";}                // °í°´¼¾ÅÍ
function topmenu1_5(){location.href="/module/sitemap/sitemap.asp";}                         // »çÀÌÆ®¸Ê

/* -------------------------------------------------------------------------------------------------------------------
    ·Î±×ÀÎ
------------------------------------------------------------------------------------------------------------------- */
function topmenu2(){location.href="/module/member/search_idpw_check.asp";}               // ¾ÆÀÌµð/ÆÐ½º¿öµå Ã£±â

/* -------------------------------------------------------------------------------------------------------------------
    FOOTER
------------------------------------------------------------------------------------------------------------------- */
function topmenu3(){location.href="/module/login/login.asp";}                            // °³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
function topmenu3_1(){location.href="/module/member/agreement.asp";}                     // ÀÌ¿ë¾à°ü
//function topmenu3_2(){location.href="/module/member/logout.asp";}                        // ¼îÇÎ¸ôÀÌ¿ë¾È³»

/* -------------------------------------------------------------------------------------------------------------------
    SKINFOOD
------------------------------------------------------------------------------------------------------------------- */
function topmenu5(){location.href="/module/skinfood/brand_tv.asp?mov_type=0";}           // TV¼Ó½ºÅ²ÇªÆ® > TV-CF º¸±â
function topmenu5_1(){location.href="/module/skinfood/brand_tv.asp?mov_type=1";}         // TV¼Ó½ºÅ²ÇªÆ® > ¸ÞÀÌÅ·ÇÊ¸§ º¸±â
function topmenu5_2(){location.href="/module/skinfood/brand.asp";}                       // ºê·£µå ½ºÅä¸®
function topmenu5_3(){location.href="/module/skinfood/brand_tv.asp";}                    // TV¼Ó½ºÅ²ÇªÆ®
function topmenu5_4(){location.href="/module/skinfood/brand_world_store.asp";}           // ±Û·Î¹ú ½ºÅ²Çªµå
function topmenu5_5(){location.href="/module/skinfood/magazine_list.asp";}	             // ¸Å°ÅÁø¼Ó ½ºÅ²Çªµå

/* -------------------------------------------------------------------------------------------------------------------
    EVENT & NEWS
------------------------------------------------------------------------------------------------------------------- */
function topmenu4(){location.href="/module/communityt/news_list.asp";}                    // NEWS&NOTIC ÀüÃ¼º¸±â ¹Ù·Î°¡±â
function topmenu4_1(Page){location.href="/module/communityt/news_list.asp?CurPage="+Page;}// NEWS ¸®½ºÆ® ¹Ù·Î°¡±â
function topmenu4_2(){location.href="/module/communityt/edm_list.asp";}                    // EMD ¸®½ºÆ® ¹Ù·Î°¡±â
function topmenu6(){location.href="/module/communityt/experience_events.asp";}           // ÀÌº¥Æ® > ÁøÇàÁßÀÎ Ã¼ÇèÀÌº¥Æ®
function topmenu6_1(){location.href="/module/communityt/experience_events_close.asp";}   // ÀÌº¥Æ® < Áö³­Ã¼ÇèÀÌº¥Æ®
function topmenu6_2(){location.href="/module/communityt/experience_events_review.asp";}  // ÀÌº¥Æ® < Ã¼ÇèÀÌº¥Æ® ÈÄ±â
function topmenu6_2_1(){location.href="/module/communityt/experience_events_reviews.asp";}  // ÀÌº¥Æ® < Ã¼ÇèÀÌº¥Æ® ÈÄ±â
function topmenu6_3(){location.href="/module/communityt/Winners_Announced.asp";}         // ÀÌº¥Æ® < ´çÃ·ÀÚ¹ßÇ¥
function topmenu6_4(){location.href="/module/communityt/enmain.asp";}                     // ÀÌº¥Æ® < ÀÌº¥Æ®¸ÞÀÎ
function topmenu6_5(){location.href="/module/communityt/event_open.asp";}                // ÀÌº¥Æ® < ÁøÇàÁßÀÌº¥Æ®
function topmenu6_6(){location.href="/module/communityt/event_close.asp";}               // ÀÌº¥Æ® < Áö³­ÀÌº¥Æ®

/*****[[ ÀÌº¥Æ® > Ã¼Çè¿©ÇàÀÌº¥Æ® °ü·Ã ÇÔ¼öµé ]]*****/
function TabMenu_Tour_ing()	{location.href="/module/communityt/ExperienceTour_Events.asp";}				// ÀÌº¥Æ® > ÁøÇàÁßÀÎ Ã¼Çè¿©Çà ÀÌº¥Æ®
function TabMenu_Tour_end()	{location.href="/module/communityt/ExperienceTour_Events_Close.asp";}		// ÀÌº¥Æ® < Áö³­ Ã¼Çè¿©Çà ÀÌº¥Æ®
function TabMenu_Tour_aft()	{location.href="/module/communityt/ExperienceTour_Events_Review.asp";}		// ÀÌº¥Æ® < Ã¼Çè¿©Çà ÀÌº¥Æ® ÈÄ±â
function TabMenu_Tour_poll()	{location.href="/module/communityt/ExperienceTour_Events_Poll.asp";}			// ÀÌº¥Æ® < Ã¼Çè¿©Çà ÀÌº¥Æ® ¼³¹®
/* -------------------------------------------------------------------------------------------------------------------
    ¸¶ÀÌÆäÀÌÁö
------------------------------------------------------------------------------------------------------------------- */
function topmenu7(){location.href="/module/mypage/my_buy_list.asp";}                     // ³»ÃÖ±ÙÁÖ¹®³»¿ª
function topmenu7_1(){location.href="/module/mypage/my_member_modify.asp";}              // È¸¿øÁ¤º¸
function topmenu7_2(){location.href="/module/mypage/my_order.asp";}                      // ÁÖ¹®/¹è¼ÛÁ¶È¸
function topmenu7_3(){location.href="/module/mypage/my_wish_list.asp";}                  // À§½Ã¸®½ºÆ®
function topmenu7_4(){location.href="/module/mypage/my_point.asp";}                      // Æ÷ÀÎÆ®/¸¶ÀÏ¸®Áö Á¶È¸
function topmenu7_5(){location.href="/module/mypage/my_qna.asp";}                        // 1:1»ó´ã³»¿ª
function topmenu7_6(){popup('/module/mypage/my_secession.asp','455','800','auto','auto','0','0','0');}  // È¸¿øÅ»Åð


/* -------------------------------------------------------------------------------------------------------------------
    SHOP INFO
------------------------------------------------------------------------------------------------------------------- */
function topmenu8(){location.href="/module/shopinfo/Store.asp";}                         // ¸ÅÀåÃ£±â
function topmenu8_1(){location.href="/module/shopinfo/mileage.asp";}                     // ¸¶ÀÏ¸®Áö¾È³»

/* -------------------------------------------------------------------------------------------------------------------
    PRODUCTS
------------------------------------------------------------------------------------------------------------------- */
function topmenu9(){location.href="/module/products/new_product_list.asp";}              // ½ÅÁ¦Ç°¼Ò°³
function topmenu9_1(){location.href="/module/products/customize_product_list.asp";}      // ¸ÂÃãÁ¦Ç°¾È³»

/* -------------------------------------------------------------------------------------------------------------------
    °í°´¼¾ÅÍ
------------------------------------------------------------------------------------------------------------------- */
function topmenu10(){location.href="/module/customer/skinfood_faq.asp";}                 // FAQ
function topmenu10_1(){location.href="/module/customer/one_contact.asp";}                // 1:1¹®ÀÇ
function topmenu10_2(){location.href="/module/customer/shop_information.asp";}           // ¼îÇÎ¸ôÀÌ¿ë¾È³»

/* -------------------------------------------------------------------------------------------------------------------
    ·Î±×ÀÎ
------------------------------------------------------------------------------------------------------------------- */
function topmenu11(){location.href="/module/login/login.asp";}                           // ·Î±×ÀÎ
function topmenu11_1(){location.href="/module/member/agreement.asp";}                    // È¸¿ø°¡ÀÔ
function topmenu11_2(){location.href="/module/member/search_idpw_check.asp";}            // ¾ÆÀÌµð/ºñ¹Ð¹øÈ£Ã£±â

/* -------------------------------------------------------------------------------------------------------------------
    ¼îÇÎ¸ô
------------------------------------------------------------------------------------------------------------------- */
function topmenu12(){location.href="/module/shopping/shop_product_all.asp";}             // ALL PRODUCTS
function topmenu12_1(){location.href="/module/shopping/shop_new_hit.asp";}               // NEW&HIT
function topmenu12_2(){location.href="/module/shopping/shop_best.asp";}                  // BEST·©Å·
function topmenu12_3(){location.href="/module/shopping/shop_plan.asp";}                  // ¼îÇÎ ±âÈ¹Àü
function topmenu12_4(){location.href="/module/shopping/shop_cart_comm.asp";}             // Àå¹Ù±¸´Ï °ø°¨
function topmenu12_5(){location.href="/module/shopping/shop_my_point_zone.asp";}         // MY POINT ZONE
function topmenu12_6(){location.href="/module/shopping/shop_main.asp";}         // ¼îÇÎ¸ô¸ÞÀÎ






/* -------------------------------------------------------------------------------------------------------------------
    ±âÅ¸¸µÅ©
------------------------------------------------------------------------------------------------------------------- */
function LoginForm(strUrl)
{
    location.href='/module/login/login.asp?ProgID='+strUrl
}

function NewsLink(strCode)
{
    location.href='/module/communityt/News_View.asp?strCode='+strCode+'&Page=1'
}

function eM_view1(Step,SName,SCode) 
{
    // [ ÁøÇàÁß ÀÌº¥Æ® ]
    location.href='/module/communityt/Event_Open_View.asp?Step='+Step+'&Name='+SName+'&SCode='+SCode
}

function eM_view2() 
{
    // [ ÁøÇà Ã¼Çè ÀÌº¥Æ® ]
    location.href='/module/communityt/Experience_Events.asp'
}

function eM_view3()
{
    // [ Ã¼ÇèÀÌº¥Æ® ÈÄ±â ]
    location.href='/module/communityt/Experience_Events_Review.asp'
}

function eM_view3_1(Step,SName,SCode,SPage)
{
    // [ Ã¼ÇèÀÌº¥Æ® ÈÄ±â ]
    location.href='/module/communityt/Experience_Events_Review.asp?Step='+Step+'&Name='+SName+'&SCode='+SCode+'&SPage='+SPage
}


function eM_view(Step,SName,SCode,SPage) 
{
    location.href='/module/communityt/Experience_Events_View.asp?Step='+Step+'&Name='+SName+'&SCode='+SCode+'&SPage='+SPage
}

function eM_view_Ex(Step,SName,SCode,SPage) 
{
    location.href='/module/communityt/Event_Open_View.asp?Step='+Step+'&Name='+SName+'&SCode='+SCode+'&SPage='+SPage
}

function eM_view_ExTour(Step,SName,SCode,SPage) {
    location.href='/module/communityt/ExperienceTour_Events_View.asp?Step='+Step+'&Name='+SName+'&SCode='+SCode+'&SPage='+SPage
}

function eM_view_Event(Step,SName,SCode,SPage) 
{
    location.href='/module/communityt/Event_Open_View.asp?Step='+Step+'&Name='+SName+'&SCode='+SCode+'&SPage='+SPage
}

function eM_view_Win(SName,SCode) 
{
    // ´çÃ·ÀÚ »ó¼¼º¸±â
	if(SCode=="18"){
		location.href='/module/Communityt/winInsam_Result.asp'
	}else{
	    location.href='/module/communityt/Winners_Announced_View.asp?Page='+SName+'&SCode='+SCode
	}
}

function eM_view_Win_List(Page) 
{
    // ´çÃ·ÀÚ ¸ñ·Ï
    location.href='/module/communityt/Winners_Announced.asp?CurPage='+Page;
}

function eM_OneList() 
{
    // ÁøÇàÁß ÀÌº¥Æ®
    location.href='/module/communityt/event_open.asp';
}

function eM_EndList() 
{
    // Áö³­ ÀÌº¥Æ®
    location.href='/module/communityt/event_close.asp';
}


/* -------------------------------------------------------------------------------------------------------------------
    ÆË¾÷À©µµ¿ì, ½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡, ´ÙÁß ¿ÀÇÂ ¹æÁö 
    popup('/module/mypage/my_secession.asp','455','550','auto','auto','0','0','0');
------------------------------------------------------------------------------------------------------------------- */
var winname_1;
var openF = 0;
function popup(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus){
        today = new Date();
        winName = today.getTime();

        var fileName, intWidth, intHeight;
        var screenWidth = screen.availWidth;
        var screenHeight = screen.availHeight;

        if(intWidth >= screenWidth)
        { //½ºÅ©¸° »óÅÂ¿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã
                intWidth = screenWidth - 40;
                vScrollbars = 1;
        }
        if(intHeight >= screenHeight)
        { //½ºÅ©¸° »óÅÂ¿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã
                intHeight = screenHeight - 40;
                intWidth = intWidth + 20;
                vScrollbars = 1;
        }
        if(intLeft == 'auto' || intTop == 'auto')
        { //½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡ ½ÃÅ°±â
                var intLeft = (screenWidth - intWidth) / 2;
                var intTop = (screenHeight - intHeight) / 2;
        }
        var features = eval("'width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",scrollbars=" + vScrollbars + ",resizable=" + vResizable + ",status=" + vStatus + "'");
        if(openF == 1){
                if(winname_1.closed){
                        winname_1 = window.open(fileName,winName,features);
                }else{
                        winname_1.close();
                        winname_1 = window.open(fileName,winName,features);
                }
        }else{
                winname_1 = window.open(fileName,winName,features);
                openF = 1;
        }
        winname_1.focus();
}


/* -------------------------------------------------------------------------------------------------------------------
    ·¹ÀÌ¾î ÆË¾÷ ½ºÅ©¸³Æ®
    javascript:popupLayer('BoardInfo.asp?strBoardID=123',720,220);
------------------------------------------------------------------------------------------------------------------- */
function _ID(obj){return document.getElementById(obj)}
function popupLayer(s,w,h)
{
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 3;
	var titleHeight = 12;
	w += pixelBorder * 2;
	h += pixelBorder * 2 + titleHeight;

	var bodyW = document.body.clientWidth;
	var bodyH = document.body.clientHeight;

	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 0;
		top = 0;
		width = "100%";
		height = document.body.scrollHeight;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=50)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = posX + document.body.scrollLeft;
		top = posY + document.body.scrollTop;
		width = w;
		height = h;
		backgroundColor = "#FFFFFF";
		border = "3px solid #000000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

	var bottom = document.createElement("div");
	with (bottom.style){
		position = "absolute";
		width = w - pixelBorder * 2;
		height = titleHeight;
		left = 0;
		top = h - titleHeight - pixelBorder * 3;
		padding = "2px 0 0 0";
		textAlign = "right";
		backgroundColor = "#000000";
		color = "#ffffff";
		font = "bold 11px tahoma";
	}
	bottom.innerHTML = "<a href='javascript:closeLayer()'><font color='#FFFFFF'>Ã¢´Ý±â</font></a>&nbsp;&nbsp;&nbsp;";
	obj.appendChild(bottom);

	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w - 6;
		height = h - pixelBorder * 2 - titleHeight - 3;
	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	obj.appendChild(ifrm);
}

function closeLayer()
{
	_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );
	_ID('objPopupLayerBg').parentNode.removeChild( _ID('objPopupLayerBg') );
}
