<!--
 SiteUrl = '';
//


url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()


// ÇÃ·¹½ÃÆÄÀÏ¿¡¼­ ¸µÅ©°É¶§¿¡´Â
// javascript:go_site(1);
// ÀÌ·±½ÄÀ¸·Î ¸µÅ©°É¸é µË´Ï´Ù.
// ¹øÈ£´Â url_list[¹øÈ£]°ªÀ» ³ÖÀ¸¸é µË´Ï´Ù.
 
url_list[100] = '/';                                                                     // ¸ÞÀÎÆäÀÌÁö

url_list[101] = '/shop/bonsa_shop.htm?type=eventmall&product_loc=1';                     //ÀÎ±â»óÇ°
url_list[102] = '/shop/bonsa_shop.htm?type=eventmall&product_loc=2';                     //º£½ºÆ®»óÇ°
url_list[103] = '/shop/bonsa_shop.htm?type=eventmall&product_loc=3';                     //ÃßÃµ»óÇ°
url_list[104] = '/shop/bonsa_shop.htm?type=product_list&brandcode=013003000000000000';   //ÇØ¿Ü¸íÇ°¶õÁ¦¸®
url_list[105] = '/shop/bonsa_shop.htm?type=product_list&brandcode=013001000000000000';   //¼½½ÃÄÚ½ºÇÁ·¹ ¹Ì±¹Á÷¼öÀÔ
url_list[106] = '/shop/bonsa_shop.htm?type=product_list&brandcode=013002000000000000';   //¼½½Ã¾ð´õ¿þ¾î

//[1]
url_list[111] = '/shop/etc_page.htm?type=company';                                       //È¸»ç¼Ò°³
url_list[112] = '/shop/etc_page.htm?type=info';                                          //ÀÌ¿ë¾È³»
url_list[113] = '/shop/shop.htm?type=basket';                                            //Àå¹Ù±¸´Ï
url_list[114] = '/member/member.htm?type=baesong_search';                                //¹è¼ÛÁ¶È¸
url_list[115] = '/shop/etc_page.htm?type=center';                                        //°í°´¼¾ÅÍ
url_list[116] = '/member/member.htm?type=wish_list';                                     //Âò¸ñ·Ï
url_list[117] = '/community/community.htm';                                              //Ä¿¹Â´ÏÆ¼
url_list[118] = '/member/member.htm?type=privacy';                                      //°³ÀÎº¸È£Á¤Ã¥
url_list[119] = '/shop/shop.htm?type=eventmall&product_loc=2';                           //ÀÌº¥Æ®¸ô                                                               //Á¦ÈÞ¹®ÀÇ

//[2]
url_list[211] = '/bbs/bbs.htm?code=notice';                      //°øÁö»çÇ×
url_list[212] = '/bbs/bbs.htm?code=qna';                         //Áú¹®°ú´äº¯
url_list[213] = '/shop/faq_bbs.htm?code=center_faq&type=list';   //ÀÚÁÖÇÏ´ÂÁú¹®

//[3]
url_list[311] = '/member/member.htm?type=join';       //È¸¿ø°¡ÀÔ
url_list[312] = '/member/member.htm?type=login';      //·Î±×ÀÎ
url_list[313] = '/member/insert.htm?type=logout';     //·Î±×¾Æ¿ô
url_list[314] = '/member/member.htm?type=modify';     //Á¤º¸¼öÁ¤
url_list[315] = '/member/member.htm?type=idsearch';   //IDPWÃ£±â
url_list[316] = '/member/member.htm?type=mypage';     //¸¶ÀÌÆäÀÌÁö

// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[16] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//  window_list[56] = 'width=780 height=600 resizable=no';






//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'



//##############################   ÆäÀÌÁö Á¤ÀÇ   ###############################










// »õÃ¢ÀÎ ¸Þ´º
//newwin_list[101] = 'true';



// À©µµ¿ì·Î ¿­¸®´Â°æ¿ì
//window_list[101] = 'width=450 height=350 resizable=no';
//window_list[102] = 'width=615 height=700 resizable=no scrollbars=yes';
//window_list[331] = 'width=620 height=520 resizable=no scrollbars=no';
//window_list[512] = 'width=685 height=560 resizable=no scrollbars=no';

//ÀüÃ¼È­¸éÀÎ ¸Þ´º
//fullwin_list[10] = 'true'





function go_site(num)
{
  if(url_list[num])
  {
// º»Ã¢À¸·Î ÀÌµ¿ÇÏ´Â °æ¿ì
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// À©µµ¿ì Ã¢À¸·Î ¿­¸®´Â°æ¿ì
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// ÀüÃ¼Ã¢À¸·Î ¿­¸®´Â °æ¿ì
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// »õÃ¢À¸·Î ¿­¸®´Â°æ¿ì
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


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 getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}

/*var scrollerHeight = 88;
var puaseBetweenImages = 3000;
var imageIdx = 0;

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 58;   // À§ÂÊ À§Ä¡
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 58; // À§ÂÊ À§Ä¡
	}
	timeoutNextCheck = 253;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom)
			yOffset = -yOffset;
		if (isNS4)
			divMenu.top += yOffset;
		else if (isDOM)
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
			timeoutNextCheck = 10;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}
*/

//********************************
//E-mail Ã¼Å©
//********************************
	function isEmail(str){ 
	  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	  var supported = 0;
		  if (window.RegExp) {
			var tempStr = "a";
			var tempReg = new RegExp(tempStr);
			    if (tempReg.test(tempStr)) supported = 1;
		  }
		  if (!supported) 
			return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
			var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
			var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			return (!r1.test(str) && r2.test(str));
	}

//********************************
//ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å©
//********************************
	function Jumin_chk(resident){ 
		IDtot =0;
		IDAdd = "234567892345";
		for(i=0; i<12; i++)
			IDtot = IDtot + parseInt(resident.substring(i, i+1)) * parseInt(IDAdd.substring(i, i+1));
			IDtot = 11 - (IDtot%11);
			if (IDtot == 10) 
				IDtot = 0;
			else if (IDtot == 11) 
				IDtot =1;
					  
			if(parseInt(resident.substring(12, 13)) != IDtot) {
				return false;
			}
			return true;
	}

//************************************
//»ç¾÷ÀÚ¹øÈ£ Ã¼Å©
//************************************
function checkBizID( bizID ){
	// bizID´Â ¼ýÀÚ¸¸ 10ÀÚ¸®·Î ÇØ¼­ ¹®ÀÚ¿­·Î ³Ñ±ä´Ù.
	var checkID = new Array(1, 3, 7, 1, 3, 7, 1, 3, 5, 1);
	var tmpBizID, i, chkSum=0, c2, remander;

	for (i=0; i<=7; i++) chkSum += checkID[i] * bizID.charAt(i);

	c2 = "0" + (checkID[8] * bizID.charAt(8));
	c2 = c2.substring(c2.length - 2, c2.length);

	chkSum += Math.floor(c2.charAt(0)) + Math.floor(c2.charAt(1));

	remander = (10 - (chkSum % 10)) % 10 ;

	if (Math.floor(bizID.charAt(9)) == remander) return true; // OK!
	return false;
}

//**************************************
//ÇÃ·¡½Ã ÆÐÄ¡ 
//**************************************
function _ws_(id) 
{ 
        var _object = id.innerHTML; 
        _object = _object.replace("<!--", ""); 
        _object = _object.replace("-->" , ""); 
        document.write(_object); id.id=""; 
}

function _showflash(str, wid, hei) {

	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='"+wid+"' height='"+hei+"'>")
	document.write("<param name='movie' value='"+str+"'>")
	document.write("<param name='wmode' value='transparent'>")
	document.write("<param name='quality' value='high'>")
	document.write(" <embed src='"+str+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed></object>")

}


//**************************************
//¾ÆÀÌµð Áßº¹È®ÀÎ Ã¢ ¿ÀÇÂ   
//**************************************


function ID_NAME() {
	f = document.form_login;
	f.userid.style.background="#FFFFFF";
}

function PASS_NAME() {
	f = document.form_login;
	f.pass.style.background="#FFFFFF";
}



//-->
//****************************************
//¸µÅ© Å×µÎ¸® ¾ø¾Ö±â
//****************************************
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
//-->

//****************************************
//Äü¹è³Ê
//****************************************
var stmnLEFT = 800; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡. ÇÊ¿ä ¾øÀ» °æ¿ì »èÁ¦ 
var stmnGAP1 = 43; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é (ÀÌº¸´Ù À§·Î´Â ¿Ã¶ó°¡Áö ¾ÊÀ½) 
var stmnGAP2 = 43; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ 
var stmnBASE = 100; // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½) 
var stmnActivateSpeed = 200; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²) 
var stmnScrollSpeed = 10; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ) 

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 (ANIMATE.checked) { // ÀÌµ¿ÇÏ±â ¹öÆ°ÀÌ Ã¼Å©µÇ¾ú´Ù¸é 

				clearTimeout(stmnTimer); // ÀÌµ¿¿ë Å¸ÀÌ¸Ó ÇØÁ¦ 
				STATICMENU.style.top = stmnGAP1; // ¸Þ´ºÀÇ À§Ä¡¸¦ »ó´ÜÀ¸·Î ¿Å±ä´Ù. 
				SaveCookie("ANIMATE", "false", 300); // ÀÌµ¿»óÅÂ°¡ "OFF" ÀÓ 
				
		} 
		else { // ¾Æ´Ï¶ó¸é... (ÀÌµ¿ÇÏ±â ¹öÆ°ÀÌ Ã¼Å©µÇ¾î ÀÖÁö ¾ÊÀ¸¸é)
		
				RefreshStaticMenu(); // ¸Þ´ºÀ§Ä¡¸¦ ´Ù½Ã Á¶Á¤ 
				SaveCookie("ANIMATE", "true", 300); // ÀÌµ¿ÀÌ ON »óÅÂ¶ó°í ÄíÅ°¸¦ ¼³Á¤ 
				
		} 
} 

// ¸Þ´º ÃÊ±âÈ­ 
function InitializeStaticMenu() 
{ 
		if (ReadCookie("ANIMATE") == "true") { // ÀÌµ¿»óÅÂ°¡ off »óÅÂ¶ó¸é 
				ANIMATE.checked = false; // Ã¼Å©Ç¥½Ã¸¦ Áö¿ì°í 
				STATICMENU.style.top = document.body.scrollTop + stmnGAP1; // ¸Ç À§¿¡ µé·¯ ºÙ´Â´Ù. 
				RefreshStaticMenu(); // ½ºÅ©¸³Æ® °¡µ¿ 
		} 
		else { // ÀÌµ¿ on »óÅÂ¶ó¸é 
				ANIMATE.checked = true; // Ã¼Å©Ç¥½Ã¸¦ ÇÏ°í 
				STATICMENU.style.top = document.body.scrollTop + stmnBASE; // ±âº»À§Ä¡·Î ÀÌµ¿ÇÑ´Ù. 
				
		} 

		//STATICMENU.style.left = (document.body.clientWidth/2)+402; // ¸Þ´º ¿ÞÂÊ À§Ä¡ ÃÊ±âÈ­. ÇÊ¿ä¾øÀ» °æ¿ì »èÁ¦ 
}