/***********************************************
* Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
***********************************************/


//Specify the slider's width (in pixels)
var sliderwidth="700px"
//Specify the slider's height
var sliderheight="300px"
//Specify the slider's slide speed (larger is faster 1-10)
var slidespeed=2
//configure background color:
slidebgcolor=""

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

leftrightslide[0]='<a href="gallery/CityPlace.jpg"><img src="gallery/slider0.jpg" border=0 alt="Hanley Station North Garage"></a><br><br>Hanley Station North Garage'
leftrightslide[1]='<a href="gallery/CommonStDev.jpg"><img src="gallery/slider1.jpg" border=0 alt="Common Street Development"></a><br><br>Common Street Development'
leftrightslide[2]='<a href="gallery/EchostarRegionalUplinkCntr..jpg"><img src="gallery/slider2.jpg" border=0 alt="Echostar Regional Uplink Center"></a><br><br>Echostar Regional Uplink Center'
leftrightslide[3]='<a href="gallery/HanleyStationSouthPS.jpg"><img src="gallery/slider3.jpg" border=0 alt="Hanley Station South Garage"></a><br><br>Hanley Station South Garage'
leftrightslide[4]='<a href="gallery/HoustonOrthopedicProfessional Building.jpg"><img src="gallery/slider4.jpg" border=0 alt="Houston Orthopedic Office"></a><br><br>Houston Orthopedic Office'
leftrightslide[5]='<a href="gallery/HoustonOrthopedPS.jpg"><img src="gallery/slider5.jpg" border=0 alt="Houston Orthopedic Garage"></a><br><br>Houston Orthopedic Garage'
leftrightslide[6]='<a href="gallery/MathisISDFootballStadium.jpg"><img src="gallery/slider6.jpg" border=0 alt="Mathis ISD Football Stadium"></a><br><br>Mathis ISD Football Stadium'
leftrightslide[7]='<a href="gallery/MHH.jpg"><img src="gallery/slider7.jpg" border=0 alt="Memorial Hermann Heart & Vascular Hosp."></a><br><br>Memorial Hermann Heart & Vascular Hosp.'
leftrightslide[8]='<a href="gallery/PioneerHi-BredFeedResearchFacility.jpg"><img src="gallery/slider8.jpg" border=0 alt="Pioneer Hi-Bred Research Facility"></a><br><br>Pioneer Hi-Bred Research Facility'
leftrightslide[9]='<a href="gallery/Tri-CountyRetailCntr.jpg"><img src="gallery/slider9.jpg" border=0 alt="Tri-County Retail Center"></a><br><br>Tri-County Retail Center'
leftrightslide[10]='<a href="gallery/WinonaHealthPS.jpg"><img src="gallery/slider10.jpg" border=0 alt="Winona Health Garage"></a><br><br>Winona Health Garage'

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

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

//NS4 font:
var ns_font='sans-serif'

//NS4 font size in pts (use integer):
var ns_fsize=2

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

var copyspeed=slidespeed
var actualwidth=''
var iedom=document.all||document.getElementById
var cross_slide, ns_slide

if (iedom){
document.write('<style type="text/css">'+
'.cvy {'+
'margin-right:'+imagegap+'px;'+
'float:left;'+
'height:'+sliderheight+';'+
'}'+
'<\/style>')

var tempar=[];
for (var i_tem = 0; i_tem < leftrightslide.length; i_tem++)
tempar[i_tem]=leftrightslide[i_tem].replace(/.*?(<[iI][mM][gG][^>]*>).*/, '$1');
document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px;"><nobr>'+tempar.join('')+'</nobr></span>')
}

function fillup(){
if (iedom){
actualwidth=document.all? document.all['temp'].offsetWidth : document.getElementById("temp").offsetWidth;
actualwidth+=leftrightslide.length*imagegap;
leftrightslide='<div style="height:'+sliderheight+';width:'+actualwidth+'px;"><div class="cvy">'+leftrightslide.join('</div><div class="cvy">')+'</div></div><div style="clear:left;"></div>'
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
cross_slide2.style.left=actualwidth+slideshowgap+"px"
}
else if (document.layers){
var nssl='<table height='+sliderheight+' cellpadding=0 cellspacing=0 border=0><tr>'
for (var i_tem = 0; i_tem < leftrightslide.length; i_tem++)
nssl+='<td valign="middle" align="center"><font face="'+ns_font+'" size="'+ns_fsize+'">'+leftrightslide[i_tem].replace(/margin|padding/g, '')+'</font></td><td width='+imagegap+'></td>'
nssl+='</tr></table>'
ns_slide=document.ns_slidemenu.document.ns_slidemenu2
ns_slide2=document.ns_slidemenu.document.ns_slidemenu3
ns_slide.document.write(nssl)
ns_slide.document.close()
actualwidth=ns_slide.document.width
ns_slide2.left=actualwidth+slideshowgap
ns_slide2.document.write(nssl)
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-slidespeed+"px"
cross_slide.style.zIndex=1;
}

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"
cross_slide.style.zIndex=0;
}

}
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><div id="test3" style="position:absolute;left:-1000px;top:0px"></div></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>')
}
}
