function sitemap_shop(id){
   var left = (screen.width-220)
   window.open(id,'sitemap','width=220,height=450,top=30,left='+left+',location=no,menubar=no,resizable=no,toolbar=no,status=no,fullscreen=no,scrollbars=1')
}

function sitemap(id){
   var left = (screen.width-180)
   window.open(id,'sitemap','width=180,height=300,top=30,left='+left+',location=no,menubar=no,resizable=no,toolbar=no,status=no,fullscreen=no,scrollbars=1')
}

function setCookie (cookieName, cookieValue, expires, path, domain, secure) {
   document.cookie = escape(cookieName) + '=' + escape(cookieValue) 
      + (expires ? '; EXPIRES=' + expires.toGMTString() : '')
      + (path ? '; PATH=' + path : '')
      + (domain ? '; DOMAIN=' + domain : '')
      + (secure ? '; SECURE' : '');
}
function getCookie (cookieName) {
   var cookieValue = null;
   var posName = document.cookie.indexOf(escape(cookieName) + '=');
   if (posName != -1) {
      var posValue = posName + (escape(cookieName) + '=').length;
      var endPos = document.cookie.indexOf(';', posValue);
      if (endPos != -1) cookieValue = unescape(document.cookie.substring(posValue, endPos));
      else cookieValue = unescape(document.cookie.substring(posValue));
   }
   return cookieValue;
}
var win=0
function OpenPopUp(id,params){
   win=(win&&!win.closed)?win:window.open(id,"win",params)
}
function WM_netscapeCssFix() {
   if (document.WM.WM_netscapeCssFix.initWindowwidth != window.innerwidth || document.WM.WM_netscapeCssFix.initWindowheight != window.innerheight) {
      document.location = document.location;
   }
}
function WM_netscapeCssFixCheckIn() {
   if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
      if (typeof document.WM == 'undefined') {
         document.WM = new Object;
      }
      if (typeof document.WM.WM_scaleFont == 'undefined') {
         document.WM.WM_netscapeCssFix = new Object;
         document.WM.WM_netscapeCssFix.initWindowwidth = window.innerwidth;
         document.WM.WM_netscapeCssFix.initWindowheight = window.innerheight;
      }
      window.onresize = WM_netscapeCssFix;
   }
}
WM_netscapeCssFixCheckIn()

// EventHandler OnLoad
function RegHandler(name,myevent) {
   this.name = name
   this.myevent = myevent   
}
var RegColl=new Array()
function ev_add(name,myevent) {
   RegColl[RegColl.length]=new RegHandler(name,myevent)
}
function init() {
   for(var i=0;i<RegColl.length;i++) {
      if(RegColl[i].myevent=="onload") eval(RegColl[i].name)
   }
}
window.onload=init