      var isNS=(document.layers);
      var isDOM=(document.getElementById);   // NS6 or IE6 and above
      
      var _all=(isNS)? '' : ( (isDOM)?'getElementById("':'all.' );
      var _style=(isNS)? '' : ((isDOM)?'").style':'.style') ;
      var _visible=(isNS)? 'show' : 'visible';
      var w_x, w_y, item, okscroll=false, godown;

      function init()
      {
        item=eval('document.'+_all+'item'+_style);
        getwindowsize();
        item.visibility=_visible;
        scrollpage();
      }

      function getwindowsize()
      {
        w_x=(isNS)? window.innerWidth-5 : document.body.clientWidth;
        //w_y= 100;//(isNS)? window.innerHeight : document.body.clientHeight;
        (isNS)? item.clip.width=36: item.width=36;
        (isNS)? item.clip.height=20 : item.height=20;
        moveitem();
      }

      function resizeNS()
      {
        setTimeout('document.location.reload()',400);
      }

      function moveitem()
      {
        if (isNS)
        {
          item.moveTo((pageXOffset+w_x-52),(pageYOffset+5))
        }
        else
          if (isDOM)
          {
            item.left=document.body.scrollLeft+w_x-52;
            item.top=document.body.scrollTop+5
          }
          else
          {
            item.pixelLeft=document.body.scrollLeft+w_x-52;
            item.pixelTop=document.body.scrollTop+5;
          }
      }

      window.onload=init;

      (isNS) ? window.onresize=resizeNS : window.onresize=getwindowsize ;

      function scrollpage()
      {
        status = '';
       /* if (okscroll)
        {
          if (godown)
          {
            (isNS)? window.scrollBy(0,4) : window.scrollBy(0,4) ;
          }
          else
          {
            (isNS)? window.scrollBy(0,-4) : window.scrollBy(0,-4) ;
          }
        }*/
        moveitem();
        setTimeout('scrollpage()', 40);
      }


