  var margin_pageTop=380;
  var margin_pageBottom=30;
  var margin_windowTop=10+20+110;
  var obj_element, current_windowTop, scroll_top;
  function init_move(id)
  {
    obj_element = document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : document.layers ? new Layer(1) : 0;
    if(!obj_element || navigator.userAgent.indexOf("OmniWeb")!=-1) return;
    if(obj_element.style) obj_element.style.position = 'absolute';
    reset_move();
    do_move();
  }
  function reset_move()
  {
    scroll_top = document.body ? (document.body.scrollTop ? document.body.scrollTop : 0) : document.documentElement ? (document.documentElement.scrollTop ? document.documentElement.scrollTop : 0) : window.pageYOffset ? window.pageYOffset : 0;
    current_windowTop = (margin_windowTop>scroll_top) ? margin_windowTop : 0;
  }
  function do_move()
  {
    var window_height = document.body ? (document.body.clientHeight ? document.body.clientHeight : 0) : document.documentElement ? (document.documentElement.clientHeight ? document.documentElement.clientHeight : 0) : innerHeight ? innerHeight : 0;
    if(navigator.userAgent.indexOf("Safari",0)!=-1) window_height=innerHeight;
    if(document.layers) obj_element.offsetHeight = obj_element.clip.height;
    var dest_y = scroll_top+window_height-obj_element.offsetHeight-margin_pageBottom;
    if(dest_y<margin_pageTop) dest_y = margin_pageTop;
    if(dest_y != current_windowTop)
    {
      var delta_y = Math.round( (dest_y-current_windowTop)/20 );
      current_windowTop = current_windowTop+delta_y;
      if(document.layers) obj_element.moveTo(27,current_windowTop);
      else obj_element.style.top = current_windowTop + 'px';
    }
    setTimeout('do_move()', 15);
  }
  function swap_image(img_id, img_src, img_width, img_height)
  {
    if(document.layers)
    {
      obj_element.document.open("text/html");
      obj_element.document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0' WIDTH='275'><TR>");
      obj_element.document.write("<TD WIDTH='70'><IMG SRC='../image/pixel.gif' WIDTH='70' HEIGHT='250' BORDER='0' ALT=' '></TD>");
      obj_element.document.write("<TD WIDTH='205' ALIGN='CENTER' VALIGN='BOTTOM'><IMG SRC='"+img_src+"' LOWSRC='../image/pixel.gif' WIDTH='"+img_width+"' HEIGHT='"+img_height+"' BORDER='0' ALT=' ' NAME='img_bottle'></TD></TR></TABLE>");
      obj_element.document.close();
      obj_element.visibility = "show";
    }else{
      if(img_width ) document.images[img_id].width=img_width;
      if(img_height) document.images[img_id].height=img_height;
      document.images[img_id].src=img_src;
    }
  }
  var navigator_width, navigator_height;
  function navigator_reload(set_wh)
  {
    if(set_wh==1)
    {
      navigator_width=innerWidth;
      navigator_height=innerHeight;
      onresize=navigator_reload;
    }
    if(innerWidth==navigator_width && innerHeight==navigator_height) return;
    location.reload();
  }
  if(document.layers) navigator_reload(1);
