//scroller width
var swidth=140;

//scroller height
var sheight=140;

//background color
//var sbcolor='EEE8AA';

//scroller's speed
var sspeed=2;

var msg='';
//Your messages go below:

//End of your messages
//-- end Parameters-->

//-- begin: Scroller's Algorithm -->

var resumesspeed=sspeed;

  function start()
  {
    if (document.all) iemarquee(scrolldiv);
    else if (document.getElementById) ns6marquee(document.getElementById('scrolldiv'));
  }

  function iemarquee(whichdiv)
  {
   iediv=eval(whichdiv);
   iediv.style.pixelTop=sheight;
   iediv.innerHTML=msg;
   sizeup=iediv.offsetHeight;
   ieslide();
  }
        
  function ieslide()
  {
   if (iediv.style.pixelTop>=sizeup*(-1))
   {
    iediv.style.pixelTop-=sspeed;
    setTimeout("ieslide()",100);
   }
   else
   {
    iediv.style.pixelTop=sheight;
    ieslide();
   }
  }

  function ns4slide()
  {
   if (ns4layer.top>=sizeup*(-1))
   {
    ns4layer.top-=sspeed;
    setTimeout("ns4slide()",100);
   }
   else
   {
    ns4layer.top=sheight;
    ns4slide();
   }
  }

  function ns6marquee(whichdiv)
  {
   ns6div=eval(whichdiv);
   ns6div.style.top=sheight;
   ns6div.innerHTML=msg;
   sizeup=ns6div.offsetHeight;
   ns6slide();
  }

  function ns6slide(){
    if (parseInt(ns6div.style.top)>=sizeup*(-1))
    {
      ns6div.style.top=parseInt(ns6div.style.top)-sspeed;
      setTimeout("ns6slide()",100);
    }
    else
    {
      ns6div.style.top=sheight;
      ns6slide();
    }
  }
  
  
  function bigView(relPath)
  {
   popup = window.open("popup","showroom.php","width=820, height=700");
  }