main="/shop/main/index.php";
meun1="/shop/main/index.php?category=001";
meun2="/shop/main/index.php?category=002";
meun3="/shop/main/index.php?category=003";

rock="/shop/goods/goods_list.php?category=001001";

function bookmarksite(title,url){ 
	if (window.sidebar) {	// firefox 
		window.sidebar.addPanel(title, url, ""); 
	} else if(window.opera && window.print){	// opera 
		var elem = document.createElement('a'); 
		elem.setAttribute('href',url); 
		elem.setAttribute('title',title); 
		elem.setAttribute('rel','sidebar'); 
		elem.click(); 
	} else if(document.all) {	// ie 
		window.external.AddFavorite(url, title); 
	}
} 

function URLEncode (clearString) {
  var output = '';
  var x = 0;
  clearString = clearString.toString();
  var regex = /(^[a-zA-Z0-9_.]*)/;
  while (x < clearString.length) {
    var match = regex.exec(clearString.substr(x));
    if (match != null && match.length > 1 && match[1] != '') {
    	output += match[1];
      x += match[1].length;
    } else {
      if (clearString[x] == ' ')
        output += '+';
      else {
        var charCode = clearString.charCodeAt(x);
        var hexVal = charCode.toString(16);
        output += '%' + ( hexVal.length < 2 ? '0' : '' ) + hexVal.toUpperCase();
      }
      x++;
    }
  }
  return output;
}


member="/shop/member/join.php";
login="/shop/member/login.php?returnUrl="+URLEncode(location.href);
logout="/shop/member/logout.php";
mypage="/shop/main/html.php?htmid=mypage/mypage.htm"
sitemap="";
service="";
oderlist="/shop/mypage/mypage_orderlist.php"
costomer="/shop/service/customer.php"
faq="/shop/service/faq.php"
qna="/shop/mypage/mypage_qna.php"
free="/shop/board/list.php?id=free"


function  goURL(name) {
	if(name == "bookmark") {
		bookmarksite("µ¶Æ¯ÇÑµðÀÚÀÎ¼ÒÇ° Áø¹Ù½º","http://www.jinvas.com");
	} else {
		document.location.href = eval(name);
	}
}
