// sidescrollmenu by rod morelos (rod@dhtmlcentral.com) www20.brinkster.com/viewsrc 
// keep these two lines and you're free to use this code

// variables to set:
var scrollstep=30; // the speed of the timeout between each scroll
var scrollables=1; // number of scrollable content

// variables not to set:
var scrolltimer=0; // variable for setTimeout

// horizontal scroll
function hscroll(num,speed)
{
if (isloaded)
{
if ((speed>0&&ocontent[num].x>-ocontent[num].w+ocontainer[num].w)||(speed<0&&ocontent[num].x<0)) ocontent[num].moveby(-speed,0);
scrolltimer=setTimeout('hscroll('+num+','+speed+')',scrollstep);
}
}

// disable scroll
function noscroll() { clearTimeout(scrolltimer); }

// initialise function
var isloaded=false;
function init()
{
ocontainer=new Array();
ocontent=new Array();
for (var i=1;i<=scrollables;i++)
{
ocontainer[i]=new dhtmlobject('divcontainer'+i);
ocontent[i]=new dhtmlobject('divcontent'+i,'divcontainer'+i);
if (bw.ns6) ocontent[i].css.position='relative'; // scrollbar hack for ns6
ocontent[i].update(); // i dont know why ns6/moz needs this, if you remove this it wont scroll.
ocontent[i].moveto(0,0);
ocontainer[i].setv(1);
ocontent[i].css.visibility = "visible";
}
isloaded=true;
}

// initiate script on page load
onload=init;