/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


//Specify the slider's width (in pixels)
var sliderwidth="975px"
//Specify the slider's height
var sliderheight="85px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor="#ffffff"

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''

leftrightslide[1]='<a href="http://www.acura.com" target="_new"><img src="../images/Logos_small/logo_acura2.png" width="81" height="80" alt="Acura" hspace="10"></a>'
leftrightslide[2]='<a href="http://www.audiusa.com" target="_new"><img src="../images/Logos_small/logo_audi.png" width="70" height="80" alt="Audi" hspace="15"></a>'
leftrightslide[3]='<a href="http://www.bmw.com" target="_new"><img src="../images/Logos_small/logo_bmw.png" width="46" height="80" alt="BMW" hspace="20"></a>'
leftrightslide[4]='<a href="http://www.buick.com" target="_new"><img src="../images/Logos_small/logo_buick.png" width="40" height="80" alt="Buick" hspace="20"></a>'
leftrightslide[5]='<a href="http://www.cadillac.com" target="_new"><img src="../images/Logos_small/logo_cadillac.png" width="49" height="80" alt="Cadillac" hspace="20"></a>'
leftrightslide[6]='<a href="http://www.chevrolet.com" target="_new"><img src="../images/Logos_small/logo_chevy.png" width="74" height="80" alt="Chevrolet" hspace="10"></a>'
leftrightslide[7]='<a href="http://www.chrysler.com" target="_new"><img src="../images/Logos_small/logo_chrysler2.png" width="100" height="80" alt="Chrysler" hspace="20"></a>'
leftrightslide[8]='<a href="http://www.dodge.com" target="_new"><img src="../images/Logos_small/logo_dodge2.png" width="39" height="80" alt="Dodge" hspace="15"></a>'
leftrightslide[9]='<a href="http://www.ferrari.com" target="_new"><img src="../images/Logos_small/logo_ferrari.png" width="29" height="80" alt="Ferrari" hspace="20"></a>'
leftrightslide[10]='<a href="http://www.ford.com" target="_new"><img src="../images/Logos_small/logo_ford.png" width="82" height="80" alt="Ford" hspace="15"></a>'
leftrightslide[11]='<a href="http://www.gmc.com" target="_new"><img src="../images/Logos_small/logo_gmc.png" width="76" height="80" alt="GMC" hspace="20"></a>'
leftrightslide[12]='<a href="http://www.honda.com" target="_new"><img src="../images/Logos_small/logo_honda.png" width="69" height="80" alt="Honda" hspace="13"></a>'
leftrightslide[13]='<a href="http://www.hummer.com" target="_new"><img src="../images/Logos_small/logo_hummer2.png" width="100" height="80" alt="Hummer" hspace="15"></a>'
leftrightslide[14]='<a href="http://www.hyundai.com" target="_new"><img src="../images/Logos_small/logo_hyundai2.png" width="60" height="80" alt="Hyundai" hspace="20"></a>'
leftrightslide[15]='<a href="http://www.infiniti.com" target="_new"><img src="../images/Logos_small/logo_infiniti2.png" width="82" height="80" alt="Infiniti" hspace="15"></a>'
leftrightslide[16]='<a href="http://www.isuzu.com" target="_new"><img src="../images/Logos_small/logo_isuzu.png" width="82" height="80" alt="Isuzu" hspace="15"></a>'
leftrightslide[17]='<a href="http://www.jaguar.com" target="_new"><img src="../images/Logos_small/logo_jaguar.png" width="84" height="80" alt="Jaguar" hspace="12"></a>'
leftrightslide[18]='<a href="http://www.jeep.com" target="_new"><img src="../images/Logos_small/logo_jeep2.png" width="75" height="80" alt="Jeep" hspace="15"></a>'
leftrightslide[19]='<a href="http://www.kia.com" target="_new"><img src="../images/Logos_small/logo_kia.png" width="82" height="80" alt="Kia" hspace="14"></a>'
leftrightslide[20]='<a href="http://www.lamborghini.com" target="_new"><img src="../images/Logos_small/logo_lamborghini.png" width="42" height="80" alt="Lamborghini" hspace="14"></a>'
leftrightslide[21]='<a href="http://www.landrover.com" target="_new"><img src="../images/Logos_small/logo_landRover.png" width="81" height="80" alt="Land Rover" hspace="14"></a>'
leftrightslide[22]='<a href="http://www.lexus.com" target="_new"><img src="../images/Logos_small/logo_lexus2.png" width="100" height="80" alt="Lexus" hspace="15"></a>'
leftrightslide[23]='<a href="http://www.lincoln.com" target="_new"><img src="../images/Logos_small/logo_lincoln2.png" width="59" height="80" alt="Lincoln" hspace="20"></a>'
leftrightslide[24]='<a href="http://www.lotuscars.com" target="_new"><img src="../images/Logos_small/logo_lotus.png" width="40" height="80" alt="Lotus" hspace="20"></a>'
leftrightslide[25]='<a href="http://www.mazda.com" target="_new"><img src="../images/Logos_small/logo_mazda.png" width="38" height="80" alt="Mazda" hspace="20"></a>'
leftrightslide[26]='<a href="http://www.mercedes.com" target="_new"><img src="../images/Logos_small/logo_mercedes2.png" width="60" height="80" alt="Mercedes" hspace="20"></a>'
leftrightslide[27]='<a href="http://www.mercury.com" target="_new"><img src="../images/Logos_small/logo_mercury2.png" width="43" height="80" alt="Mercury" hspace="20"></a>'
leftrightslide[28]='<a href="http://www.miniusa.com" target="_new"><img src="../images/Logos_small/logo_mini.png" width="100" height="80" alt="Mini" hspace="10"></a>'
leftrightslide[29]='<a href="http://www.mitsubishicars.com" target="_new"><img src="../images/Logos_small/logo_mitsubishi.png" width="45" height="80" alt="Mitsubishi" hspace="20"></a>'
leftrightslide[30]='<a href="http://www.nissanusa.com" target="_new"><img src="../images/Logos_small/logo_nissan.png" width="46" height="80" alt="Nissan" hspace="20"></a>'
leftrightslide[31]='<a href="http://www.peugeot.com" target="_new"><img src="../images/Logos_small/logo_peugeot.png" width="40" height="80" alt="Peugeot" hspace="20"></a>'
leftrightslide[32]='<a href="http://www.pontiac.com" target="_new"><img src="../images/Logos_small/logo_pontiac2.png" width="37" height="80" alt="Pontiac" hspace="22"></a>'
leftrightslide[33]='<a href="http://www.porsche.com" target="_new"><img src="../images/Logos_small/logo_porsche2.png" width="33" height="80" alt="Porsche" hspace="22"></a>'
leftrightslide[34]='<a href="http://www.saab.com" target="_new"><img src="../images/Logos_small/logo_saab.png" width="41" height="80" alt="Saab" hspace="22"></a>'
leftrightslide[35]='<a href="http://www.saturn.com" target="_new"><img src="../images/Logos_small/logo_saturn2.png" width="35" height="80" alt="Saturn" hspace="20"></a>'
leftrightslide[36]='<a href="http://www.scion.com" target="_new"><img src="../images/Logos_small/logo_scion.png" width="57" height="80" alt="Scion" hspace="20"></a>'
leftrightslide[37]='<a href="http://www.subaru.com" target="_new"><img src="../images/Logos_small/logo_subaru2.png" width="62" height="80" alt="Subaru" hspace="17"></a>'
leftrightslide[38]='<a href="http://www.suzuki.com" target="_new"><img src="../images/Logos_small/logo_suzuki.png" width="41" height="80" alt="Suzuki" hspace="20"></a>'
leftrightslide[39]='<a href="http://www.toyota.com" target="_new"><img src="../images/Logos_small/logo_toyota2.png" width="51" height="80" alt="Toyota" hspace="15"></a>'
leftrightslide[40]='<a href="http://www.volvo.com" target="_new"><img src="../images/Logos_small/logo_volvo.png" width="40" height="80" alt="Volvo" hspace="22"></a>'
leftrightslide[41]='<a href="http://www.vw.com" target="_new"><img src="../images/Logos_small/logo_vw.png" width="39" height="80" alt="Volkswagen" hspace="22"></a>'

//Specify gap between each image (use HTML):
var imagegap="</td><td valign=top align=center style='font-size: 10px;'>"

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap=0


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=slidespeed
leftrightslide='<table><tr><td align=center valign=top>'+leftrightslide.join(imagegap)+'</td></tr></table>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>')
var actualwidth=''
var cross_slide, ns_slide

function fillup(){
if (iedom){
cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2
cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3
cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide
actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(leftrightslide)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(leftrightslide)
ns_slide2.document.close()
}
lefttime=setInterval("slideleft()",30)
}
window.onload=fillup

function slideleft(){
if (iedom){
if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8))
cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px"
else
cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px"

if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8))
cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px"
else
cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px"

}
else if (document.layers){
if (ns_slide.left>(actualwidth*(-1)+8))
ns_slide.left-=copyspeed
else
ns_slide.left=ns_slide2.left+actualwidth+slideshowgap

if (ns_slide2.left>(actualwidth*(-1)+8))
ns_slide2.left-=copyspeed
else
ns_slide2.left=ns_slide.left+actualwidth+slideshowgap
}
}


if (iedom||document.layers){
with (document){
document.write('<table border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>')
write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}