/*<head><meta http-equiv="Last-Modified" content="Mon, 19 Jan 2004 16:51:50 GMT"></head>*/

/* this is disabled all !!! browser width only used for placing of icon, which is done by javascript in-place */

  function cookies_init() {
  // top.onresize=setSizeCookie;
  // setSizeCookie();
  };

  function getCookie(position) {
  position = position+"=";
  if (document.cookie.indexOf(position)<0) return "";
  var last = document.cookie.indexOf(";", position);
  if (last<0) last = document.cookie.length;
  var cook = document.cookie.substring(position,last);
  return unescape(cook.substring(position.length,cook.length));
  };

  function getWindowWidth(nam) {
  ns4=(document.layers)?true:false;
  ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false;
  ns=ns4|ns6;
  ie4=(document.all)?true:false;
  av=navigator.appVersion.toLowerCase()
  ie3=(av.indexOf("msie")<0 | av.indexOf("3.")<0)?false:true;
  ie=ie3|ie4;
  if (ns) {
  return innerWidth;
  } else if (ie4) {
  frw = (top.document.all[nam])?top.document.all[nam]:document;
  return frw.clientWidth;
  } else {
  return -1;
  };
  };

  function setSizeCookie() {
  var bw = ""+getCookie("browser_width").toLowerCase();
  var ww = ""+getWindowWidth("fr_main");
  if ((bw=="") || (bw=="undefined") || (bw!=ww)) setResizeCookie();
  };

  function setResizeCookie() {
  ns4=(document.layers)?true:false;
  ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false;
  ns=ns4|ns6;
  ie4=(document.all)?true:false;
  av=navigator.appVersion.toLowerCase()
  ie3=(av.indexOf("msie")<0 | av.indexOf("3.")<0)?false:true;
  rel=false;

  if (ns) {
  br_width = innerWidth;
  document.cookie = "browser_width="+br_width;
  top.window.frames["fr_top"].location.reload();
  top.window.frames["fr_main"].location.reload();
  //top.window.frames["fr_top"].location.go(0);
  //top.window.frames["fr_main"].location.go(0);
  } else if (ie4) {
  frw = (top.document.all["fr_main"])?top.document.all["fr_main"]:document;
  br_width = frw.clientWidth;
  document.cookie = "browser_width="+br_width;
  top.document.frames["fr_top"].document.location.reload();
  top.document.frames["fr_main"].document.location.reload();
  //top.document.frames["fr_top"].document.location.go(0);
  //top.document.frames["fr_main"].document.location.go(0);
  };
  //document.cookie = "browser_width=*;expires=Monday, 01-Jan-1990 00:00:00 GMT";
  };

