
/***********************************************
* 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_agc="392px"
//Specify the slider's height
var sliderheight_agc="294px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed_agc=1
//configure background color:
slidebgcolor_agc="#F0F0F0"

//Specify the slider's images
var leftrightslide_agc=new Array()
var finalslide_agc=''

leftrightslide_agc[0]='<img src="images/showroom1.jpg" border="0">'
leftrightslide_agc[1]='<img src="images/showroom2.jpg" border="0">'
leftrightslide_agc[2]='<img src="images/showroom3.jpg" border="0">'
leftrightslide_agc[3]='<img src="images/showroom4.jpg" border="0">'


//Specify gap between each image (use HTML):
var imagegap_agc=""

//Specify pixels gap between each slideshow rotation (use integer):
var slideshowgap_agc=0


////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed_agc=slidespeed_agc
leftrightslide_agc='<nobr>'+leftrightslide_agc.join(imagegap_agc)+'</nobr>'
var iedom=document.all||document.getElementById
if (iedom)
document.write('<span id="temp_agc" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide_agc+'</span>')
var actualwidth_agc=''
var cross_slide_agc, ns_slide_agc

function fillup_agc(){
if (iedom){
cross_slide_agc=document.getElementById? document.getElementById("test2_agc") : document.all.test2_agc
cross_slide2_agc=document.getElementById? document.getElementById("test3_agc") : document.all.test3_agc
cross_slide_agc.innerHTML=cross_slide2_agc.innerHTML=leftrightslide_agc
actualwidth_agc=document.all? cross_slide_agc.offsetWidth : document.getElementById("temp_agc").offsetWidth
cross_slide2_agc.style.left=actualwidth_agc+slideshowgap_agc+"px"
}
else if (document.layers){
ns_slide_agc=document.ns_slidemenu_agc.document.ns_slidemenu2_agc
ns_slide2_agc=document.ns_slidemenu_agc.document.ns_slidemenu3_agc
ns_slide_agc.document.write(leftrightslide_agc)
ns_slide_agc.document.close()
actualwidth_agc=ns_slide_agc.document.width
ns_slide2_agc.left=actualwidth_agc+slideshowgap_agc
ns_slide2_agc.document.write(leftrightslide_agc)
ns_slide2_agc.document.close()
}
lefttime_agc=setInterval("slideleft_agc()",30)
}

function fillup_all(){
mtabagc = document.getElementById? document.getElementById("tabagc") : document.all.tabagc
mtabcc = document.getElementById? document.getElementById("tabcc") : document.all.tabcc
if(mtabcc)fillup();
if(mtabagc)fillup_agc();
}

window.onload=fillup_all


function slideleft_agc(){
if (iedom){
if (parseInt(cross_slide_agc.style.left)>(actualwidth_agc*(-1)+8))
cross_slide_agc.style.left=parseInt(cross_slide_agc.style.left)-copyspeed_agc+"px"
else
cross_slide_agc.style.left=parseInt(cross_slide2_agc.style.left)+actualwidth_agc+slideshowgap_agc+"px"

if (parseInt(cross_slide2_agc.style.left)>(actualwidth_agc*(-1)+8))
cross_slide2_agc.style.left=parseInt(cross_slide2_agc.style.left)-copyspeed_agc+"px"
else
cross_slide2_agc.style.left=parseInt(cross_slide_agc.style.left)+actualwidth_agc+slideshowgap_agc+"px"

}
else if (document.layers){
if (ns_slide_agc.left>(actualwidth_agc*(-1)+8))
ns_slide_agc.left-=copyspeed_agc
else
ns_slide_agc.left=ns_slide2_agc.left+actualwidth_agc+slideshowgap_agc

if (ns_slide2_agc.left>(actualwidth_agc*(-1)+8))
ns_slide2_agc.left-=copyspeed_agc
else
ns_slide2_agc.left=ns_slide_agc.left+actualwidth_agc+slideshowgap_agc
}
}


if (iedom||document.layers){
with (document){
document.write('<table id="tabagc" border="0" cellspacing="0" cellpadding="0"><td>')
if (iedom){
write('<div style="position:relative;width:'+sliderwidth_agc+';height:'+sliderheight_agc+';overflow:hidden">')
write('<div style="position:absolute;width:'+sliderwidth_agc+';height:'+sliderheight_agc+';background-color:'+slidebgcolor_agc+'" onMouseover="copyspeed_agc=0" onMouseout="copyspeed_agc=slidespeed_agc">')
write('<div id="test2_agc" style="position:absolute;left:0px;top:0px"></div>')
write('<div id="test3_agc" style="position:absolute;left:-1000px;top:0px"></div>')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+sliderwidth_agc+' height='+sliderheight_agc+' name="ns_slidemenu_agc" bgColor='+slidebgcolor_agc+'>')
write('<layer name="ns_slidemenu2_agc" left=0 top=0 onMouseover="copyspeed_agc=0" onMouseout="copyspeed_agc=slidespeed_agc"></layer>')
write('<layer name="ns_slidemenu3_agc" left=0 top=0 onMouseover="copyspeed_agc=0" onMouseout="copyspeed_agc=slidespeed_agc"></layer>')
write('</ilayer>')
}
document.write('</td></table>')
}
}




