        var stmnGAP1 = 370; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é (ÀÌº¸´Ù À§·Î´Â ¿Ã¶ó°¡Áö ¾ÊÀ½) 
        var stmnGAP2 = 100; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ 
        var stmnBASE = 370; // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½) 
        var stmnActivateSpeed = 1; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²) 
        var stmnScrollSpeed = 1; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ) 

        var stmnTimer; 

        // ÄíÅ° ÀÐ±â 
        function ReadCookie(name) 
        { 
                var label = name + "="; 
                var labelLen = label.length; 
                var cLen = document.cookie.length; 
                var i = 0; 

                while (i < cLen) { 
                        var j = i + labelLen; 

                        if (document.cookie.substring(i, j) == label) { 
                                var cEnd = document.cookie.indexOf(";", j); 
                                if (cEnd == -1) cEnd = document.cookie.length; 

                                return unescape(document.cookie.substring(j, cEnd)); 
                        } 
         
                        i++; 
                } 

                return ""; 
        } 

        // ÄíÅ° ÀúÀå 
        function SaveCookie(name, value, expire) 
        { 
                var eDate = new Date(); 
                eDate.setDate(eDate.getDate() + expire); 
                document.cookie = name + "=" + value + "; expires=" +  eDate.toGMTString()+ "; path=/"; 
        } 

        // ½ºÅ©·Ñ ¸Þ´ºÀÇ À§Ä¡ °»½Å 
        function RefreshStaticMenu() 
        { 
                var stmnStartPoint, stmnEndPoint, stmnRefreshTimer; 

                stmnStartPoint = parseInt(STATICMENU.style.top, 10); 
                stmnEndPoint = document.body.scrollTop + stmnGAP2; 
                if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1; 

                stmnRefreshTimer = stmnActivateSpeed; 

                if ( stmnStartPoint != stmnEndPoint ) { 
                        stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 ); 
                        STATICMENU.style.top = parseInt(STATICMENU.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount ); 
                        stmnRefreshTimer = stmnScrollSpeed; 
                } 

                stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer); 
        } 

        // ¸Þ´º ON/OFF ÇÏ±â 
        function ToggleAnimate() 
        { 
                //if (document.all.ANIMATE.checked) { // ÀÌµ¿ÇÏ±â ¹öÆ°ÀÌ Ã¼Å©µÇ¾ú´Ù¸é 
                        RefreshStaticMenu(); // ¸Þ´ºÀ§Ä¡¸¦ ´Ù½Ã Á¶Á¤ 
                        //SaveCookie("ANIMATE", "true", 300); // ÀÌµ¿ÀÌ ON »óÅÂ¶ó°í ÄíÅ°¸¦ ¼³Á¤ 
               // } 
               // else { // ¾Æ´Ï¶ó¸é... (ÀÌµ¿ÇÏ±â ¹öÆ°ÀÌ Ã¼Å©µÇ¾î ÀÖÁö ¾ÊÀ¸¸é) 
               //         clearTimeout(stmnTimer); // ÀÌµ¿¿ë Å¸ÀÌ¸Ó ÇØÁ¦ 
               //         STATICMENU.style.top = stmnGAP1; // ¸Þ´ºÀÇ À§Ä¡¸¦ »ó´ÜÀ¸·Î ¿Å±ä´Ù. 
               //         //SaveCookie("ANIMATE", "false", 300); // ÀÌµ¿»óÅÂ°¡ "OFF" ÀÓ 
               // } 
        } 

        // ¸Þ´º ÃÊ±âÈ­ 
        function InitializeStaticMenu() 
        { 
               // if (ReadCookie("ANIMATE") == "false") { // ÀÌµ¿»óÅÂ°¡ off »óÅÂ¶ó¸é 
               //         document.all.ANIMATE.checked = false; // Ã¼Å©Ç¥½Ã¸¦ Áö¿ì°í 
               //         STATICMENU.style.top = document.body.scrollTop + stmnGAP1; // ¸Ç À§¿¡ µé·¯ ºÙ´Â´Ù. 
               // } 
               // else { // ÀÌµ¿ on »óÅÂ¶ó¸é 
               //         document.all.ANIMATE.checked = true; // Ã¼Å©Ç¥½Ã¸¦ ÇÏ°í 

			   /*
			   //@@abraxas : 20081212 : ¿ÀÇÂ½Ã ÁÖ¼® Ç®°Í ½ÃÀÛ
			   */
                //      STATICMENU.style.top = document.body.scrollTop + stmnBASE; // ±âº»À§Ä¡·Î ÀÌµ¿ÇÑ´Ù. 
                //     RefreshStaticMenu(); // ½ºÅ©¸³Æ® °¡µ¿ 
			   /*
			   ¿ÀÇÂ½Ã ÁÖ¼® Ç®°Í ³¡
			   */
                //} 


        } 

	function webzine_open(url, w, h, serial, x, y) 
	{
		window.open(url,serial,"toolbar=no,location=no,status=no,manubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h+",top="+y+",left="+x);
	}

	function news_open(url) 
	{
		window.open(url);
	}

	function goQuick(num) {

		if(num == 1) location.href = "http://haustory2.midashelp.com/information/Tuning.asp";
		else if(num == 2) location.href = "http://haustory2.midashelp.com/site/remodeling.asp";
		else if(num == 3) location.href = "http://haustory2.midashelp.com/haustory/Event.asp";
		else if(num == 4) webzine_open("http://www.haustory.co.kr/webzine/200805/index.asp",963,638);
		else if(num == 5) location.href = "http://haustory2.midashelp.com/haustory/NSolution.asp";
		else if(num == 6) window.open("https://www.namkwang.co.kr/");
	}

	function goFooter(num) 
	{
		if(num == 1) window.open("https://www.namkwang.co.kr/");
		else if(num == 2) location.href = "http://haustory2.midashelp.com/member/Default.asp?mode=5";
		else if(num == 3) location.href = "http://haustory2.midashelp.com/member/Default.asp?mode=6";
		else if(num == 4) location.href = "http://haustory2.midashelp.com/member/sitemap.asp";
	}

	function noticeGo() {
		location.href = "http://haustory2.midashelp.com/haustory/";
	}

//À¥Áø ¿· , ÀÔÁÖ°í°´,ºÐ¾ç°í°´,Á¶ÇÕ°í°´...
	function goCustomer(num) {
		var url = "";
		if(num == 1) url = "http://haustory2.midashelp.com/member/Default.asp?nowPage=/mypage/Default.asp?mode=1";
				else if(num == 2) url = "http://haustory2.midashelp.com/member/Default.asp?nowPage=/mypage/Default.asp?mode=1";
				else if(num == 3) url = "http://haustory2.midashelp.com/member/Default.asp?nowPage=/mypage/Default.asp?mode=1";
				else if(num == 4) url = "http://haustory2.midashelp.com/member/Default.asp?nowPage=/mypage/Default.asp?mode=1";
					
					///

			if(url) location.href = url;
		
	}

	function goMap(num) {
		var url = "";
		if(num > 0 && num < 5 ) url = "http://haustory2.midashelp.com/haustory/NSolution.asp?mode=5";
		else if(num > 4 && num < 9 ) url = "http://haustory2.midashelp.com/haustory/NSolution.asp?mode=6";
		else if(num > 8 && num < 12 ) url = "http://haustory2.midashelp.com/haustory/NSolution.asp?mode=7";
		else if(num > 11 && num < 16 ) url = "http://haustory2.midashelp.com/haustory/NSolution.asp?mode=3";
		else if(num > 15 && num < 20 ) url = "http://haustory2.midashelp.com/haustory/NSolution.asp?mode=1";

		location.href = url;
	}

	function goGnb(num) {
		if(num == 1) location.href = "http://haustory2.midashelp.com/Default.asp?isMode=main";
		else if(num == 2) location.href = "http://haustory2.midashelp.com/member/";
		else if(num == 3) location.href = "http://haustory2.midashelp.com/mypage/";
		else if(num == 4) location.href = "http://haustory2.midashelp.com/member/Default.asp?mode=2";
	}

	function goGnbLogin(num) {
		if(num == 1) location.href = "http://haustory2.midashelp.com/Default.asp?isMode=main";
		else if(num == 2) location.href = "http://haustory2.midashelp.com/member/LogOut.asp";
		else if(num == 3) location.href = "http://haustory2.midashelp.com/mypage/";
		else if(num == 4) location.href = "http://haustory2.midashelp.com/member/Default.asp?mode=2";
	}

	function goInfo(num) {
		if(num == 1) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=62";
		else if(num == 2) location.href =  "http://haustory2.midashelp.com/sale/Main.asp?pCode=98";
		else if(num == 3) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=99";
		else if(num == 4) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=69";
		else if(num == 5) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=66";
		else if(num == 6) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=60";
		else if(num == 7) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=58";
		else if(num == 8) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=56";
		else if(num == 9) location.href = "http://haustory2.midashelp.com/sale/Main.asp?pCode=55";
		else if(num == 10) location.href =  "http://haustory2.midashelp.com/sale/Main.asp?pCode=54";
		else if(num == 11) location.href =  "http://haustory2.midashelp.com/sale/Main.asp?pCode=46";
		else if(num == 12) location.href =  "http://haustory2.midashelp.com/sale/Main.asp?pCode=64";

	}

	function goTapPage(num) {
		if(num == 1) location.href = "http://haustory2.midashelp.com/information/Tuning.asp";
		else if(num == 2) location.href = "http://haustory2.midashelp.com/site/remodeling.asp";
	}

var bStart="F";
function Check_User_Browser() {
	var sBrowser, iVersion;
	var temp = window.navigator.userAgent.split(" ");
	sBrowser = temp[2];
	temp = temp[3].split(";");
	iVersion = parseInt(temp[0]);
	
	if(sBrowser == "MSIE"){
		if(iVersion >= 5.5)
		bStart = "T";
		else
		alert("Microsoft Internet Explorer 5.5 ÀÌ»ó¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
	}
	else
		alert("Microsoft Internet Explorer 5.5 ÀÌ»ó¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.");
}

function OpenEBook(argURL) {
	bStart="F";
	Check_User_Browser();
	if(bStart=="T") {
		//var url = "http://smartbook.180design.co.kr/script_v1/open" + bid + ".html";
		var url = argURL;
		window.open(url,"normal","fullscreen");
	}
}
