/***********************************************
* Scrollable Menu Links- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//***********************************************
// here Liz commented out all the global variables since they are all being created in the first instance of scroller
// and are referenced to all other instances.
//***********************************************
//configure path for left and right arrows
//var goleftimage='images/back_gold.gif'
//var gorightimage='images/forward_gold.gif'
//configure menu width (in px):
//var menuwidth=410
//configure menu height (in px):
//var menuheight=100
//Specify scroll buttons directions ("normal" or "reverse"):
//var scrolldir="normal"
//configure scroll speed (1-10), where larger is faster
//var scrollspeed=6
//specify menu content
//var menucontents2='<nobr><a href="images/11-22-2007-006.jpg" rel="lightbox"><img border="0" src="images/11-22-2007-006_thumb.jpg" align="left" width="150" height="101"></a><a href="images/11-22-2007-057.jpg" rel="lightbox"><img border="0" src="images/11-22-2007-057_thumb.jpg" align="left" width="150" height="101"></a><a href="images/11-22-2007-084.jpg" rel="lightbox"><img border="0" src="images/11-22-2007-084_thumb.jpg" align="left" width="150" height="101"></a><a href="images/OriginalBackLot.GIF"><img border="0" src="images/OriginalBackLot_thumb.GIF" width="170" height="91"></a><a href="images/Cheetah25.GIF" rel="lightbox"><img border="0" src="images/Cheetah25_thumb.GIF" align="left" width="150" height="88"></a></nobr>'


////NO NEED TO EDIT BELOW THIS LINE////////////

var iedom=document.all||document.getElementById

//***********************************************
// here Liz created unique variables for leftdircode & rightdircode which call the unique
// moveleft2 & moveright2 functions in this instance of scroller.
//***********************************************
var leftdircode2='onMouseover="moveleft2()" onMouseout="clearTimeout(lefttime)"'
var rightdircode2='onMouseover="moveright2()" onMouseout="clearTimeout(righttime)"'
//if (scrolldir=="reverse"){
//var tempswap=leftdircode
//leftdircode=rightdircode
//rightdircode=tempswap
//}
if (iedom)

//***********************************************
//here Liz changed temp to temp2 & menucontents to menucontents2 which both are created in the first instance of scroller.
//the names have to be unique for each instance of scroller.
//Also, Liz commented out global variables and the fillup function since those are all being done in the first
//instance of scroller.
//***********************************************
document.write('<span id="temp2" style="visibility:hidden;position:absolute;top:-100;left:-5000">'+menucontents2+'</span>')
//var actualwidth=''
//var cross_scroll2, ns_scroll
//var loadedyes=0
//function fillup(){
//if (iedom){
//cross_scroll2=document.getElementById? document.getElementById("test3") : document.all.test3
//cross_scroll2.innerHTML=menucontents2
//actualwidth=document.all? cross_scroll.offsetWidth : document.getElementById("temp").offsetWidth
//}
//else if (document.layers){
//ns_scroll=document.ns_scrollmenu.document.ns_scrollmenu2
//ns_scroll.document.write(menucontents2)
//ns_scroll.document.close()
//actualwidth=ns_scroll.document.width
//}
//loadedyes=1
//}
//window.onload=fillup

//***********************************************
//here Liz created a unique function moveleft2 which uses the cross_scroll2
//& ns_scroll2 which are created in the first instance of scroller
//***********************************************

function moveleft2(){
if (loadedyes){
if (iedom&&parseInt(cross_scroll2.style.left)>(menuwidth-actualwidth)){
cross_scroll2.style.left=parseInt(cross_scroll2.style.left)-scrollspeed+"px"
}
else if (document.layers&&ns_scroll2.left>(menuwidth-actualwidth))
ns_scroll2.left-=scrollspeed
}
lefttime=setTimeout("moveleft2()",50)
}

//***********************************************
//here Liz created a unique function moveright2 which uses the cross_scroll2
//& ns_scroll2 which are created in the first instance of scroller
//***********************************************

function moveright2(){
if (loadedyes){
if (iedom&&parseInt(cross_scroll2.style.left)<0)
cross_scroll2.style.left=parseInt(cross_scroll2.style.left)+scrollspeed+"px"
else if (document.layers&&ns_scroll2.left<0)
ns_scroll2.left+=scrollspeed
}
righttime=setTimeout("moveright2()",50)
}


if (iedom||document.layers){
//***********************************************
//here Liz changed the names of leftdircode2, goleftimage2, test3, rightdircode2, & gorightimage2 to the 
//unique names for this instance of scroller which are all created in the first instance of scroller.
//***********************************************
with (document){
write('<table border="0" cellspacing="0" cellpadding="2">')
write('<td valign="middle"><a href="#" '+leftdircode2+'><img src="'+goleftimage2+'"border=0></a> </td>')
write('<td width="'+menuwidth+'px" valign="top">')
if (iedom){
write('<div style="position:relative;width:'+menuwidth+'px;height:'+menuheight+'px;overflow:hidden;">')
write('<div id="test3" style="position:absolute;left:0;top:0">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+menuwidth+' height='+menuheight+' name="ns_scrollmenu">')
write('<layer name="ns_scrollmenu2" left=0 top=0></layer></ilayer>')
}
write('</td>')
write('<td valign="middle"> <a href="#" '+rightdircode2+'>')
write('<img src="'+gorightimage2+'"border=0></a>')
write('</td></table>')
}
}

