
/*
Conveyor belt slideshow script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions,
100's more DHTML scripts, and Terms Of
Use, visit dynamicdrive.com
*/


//Specify the slider's width (in pixels)
var sliderwidth=480
//Specify the slider's height (in pixels, pertains only to NS)
var sliderheight=145
//Specify the slider's scroll speed (larger is faster)
var slidespeed=5

//Specify the slider's images
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="jrnl_wint99.html" target="Main"><img src="./Mastershow/Holding Leo.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[1]='<a href="jrnl_wint99.html" target="Main"><img src="./Mastershow/Kris.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[2]='<a href="jrnl_spr00.html"TARGET="Main"><img src="./Mastershow/Jeff.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[3]='<a href="jrnl_sum00.html"TARGET="Main"><img src="./Mastershow/Doors Open.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[4]='<a href="./Fall00/Fall00.html"TARGET="Main"><img src="./Mastershow/Review.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[5]='<a href="./Winter00/Winter00.html"TARGET="Main"><img src="./Mastershow/Study.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[6]='<a href="./Spring01/Spring01.html"TARGET="Main"><img src="./Mastershow/Review3.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[7]='<a href="./Winter01/Winter01.html"TARGET="Main"><img src="./Mastershow/Review2.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[8]='<a href="jrnl_wint99.html" target="Main"><img src="./Mastershow/Tables.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[9]='<a href="jrnl_wint99.html" target="Main"><img src="./Mastershow/Tables2.jpg" WIDTH="450" HEIGHT="300" border=0></a>'
leftrightslide[10]='<a href="jrnl_wint99.html" target="Main"><img src="./Mastershow/Ted and Others.jpg" WIDTH="450" HEIGHT="300" border=0></a>'

///////do NOT edit pass this line////////////////////////////////////

var copyspeed=slidespeed
//copy contents of leftrightslide into one variable
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide[i]+"&nbsp;&nbsp;"


if (document.all){
//dynamically write out the marquee tag
document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
//stop marquee when mouse is over it
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
//re-enable marquee when mouse is out
ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=slidespeed")
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide()
}
if (document.all)
ieslider.scrollAmount=slidespeed
}

//NS specific function for initializing slider upon page load
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02.document.write('<nobr>'+finalslide+'</nobr>')
document. ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01.document.ns_slider02.document.width
scrollslide()
}

//NS specific function for sliding slideshow
function scrollslide(){
if (document.ns_slider01.document.ns_slider02.left>=thelength*(-1)){
document.ns_slider01.document.ns_slider02.left-=slidespeed
setTimeout("scrollslide()",100)
}
else{
document.ns_slider01.document.ns_slider02.left=sliderwidth
scrollslide()
}
}
window.onload=regenerate2

