<!--
/***********************************************
* Translucent 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
***********************************************/

var trans_width1='124px' //slideshow width
var trans_height1='134px' //slideshow height
var pause1=5000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)
var degree1=7 //animation speed. Greater is faster.

var slideshowcontent1=new Array()
//Define slideshow contents: [image URL, OPTIONAL LINK, OPTIONAL LINK TARGET]
slideshowcontent1[0]=["images/basin01_300.jpg", "", ""]
slideshowcontent1[1]=["images/providenceri.jpg", "", ""]
slideshowcontent1[2]=["images/providence_ri3.jpg", "", ""]


////NO need to edit beyond here/////////////

var bgcolor1='#570707'//#EABC58

var imageholder1=new Array()
for (i=0;i<slideshowcontent1.length;i++){
imageholder1[i]=new Image()
imageholder1[i].src=slideshowcontent1[i][0]
}

var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

if (ie4||dom)
document.write('<div style="position:relative;width:'+trans_width1+';height:'+trans_height1+';overflow:hidden"><div id="canvas7" style="position:absolute;background-color:'+bgcolor1+';width:'+trans_width1+';height:'+trans_height1+';left:-'+trans_width1+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div><div id="canvas8" style="position:absolute;background-color:'+bgcolor1+';width:'+trans_width1+';height:'+trans_height1+';left:-'+trans_width1+';filter:alpha(opacity=20);-moz-opacity:0.2;"></div></div>')
else if (document.layers){
document.write('<ilayer id=tickernsmain1 visibility=hide width='+trans_width1+' height='+trans_height1+' bgcolor1='+bgcolor1+'><layer id=tickernssub1 width='+trans_width1+' height='+trans_height1+' left=0 top=0>'+'<img src="'+slideshowcontent1[0][0]+'"></layer></ilayer>')
}

var curpos1=trans_width1*(-1)
var curcanvas1="canvas7"
var curindex1=0
var nextindex1=1

function getslidehtml1(theslide1){
var slidehtml1=""
if (theslide1[1]!="")
slidehtml1='<a href="'+theslide1[1]+'" target="'+theslide1[2]+'">'
slidehtml1+='<p style="margin-top:7px;margin-left:5px;margin-right:5px;"><img src="'+theslide1[0]+'" border="0" height="120" width="110"></p>'
if (theslide1[1]!="")
slidehtml1+='</a>'
return slidehtml1
}

function moveslide1(){
if (curpos1<0){
curpos1=Math.min(curpos1+degree1,0)
tempobj1.style.left=curpos1+"px"
}
else{
clearInterval(dropslide1)
if (crossobj1.filters)
crossobj1.filters.alpha.opacity=100
else if (crossobj1.style.MozOpacity)
crossobj1.style.MozOpacity=1
nextcanvas=(curcanvas1=="canvas7")? "canvas7" : "canvas8"
tempobj1=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
tempobj1.innerHTML=getslidehtml1(slideshowcontent1[curindex1])
nextindex1=(nextindex1<slideshowcontent1.length-1)? nextindex1+1 : 0
setTimeout("rotateslide1()",pause1)
}
}

function rotateslide1(){
if (ie4||dom){
resetit1(curcanvas1)
crossobj1=tempobj1=ie4? eval("document.all."+curcanvas1) : document.getElementById(curcanvas1)
crossobj1.style.zIndex++
if (crossobj1.filters)
document.all.canvas7.filters.alpha.opacity=document.all.canvas8.filters.alpha.opacity=20
else if (crossobj1.style.MozOpacity)
document.getElementById("canvas7").style.MozOpacity=document.getElementById("canvas8").style.MozOpacity=0.2
var temp='setInterval("moveslide1()",50)'
dropslide1=eval(temp)
curcanvas1=(curcanvas1=="canvas7")? "canvas8" : "canvas7"
}
else if (document.layers){
crossobj1.document.write(getslidehtml1(slideshowcontent1[curindex1]))
crossobj1.document.close()
}
curindex1=(curindex1<slideshowcontent1.length-1)? curindex1+1 : 0
}

function jumptoslide1(which){
curindex1=which
rotateslide1()
}

function resetit1(what){
curpos1=parseInt(trans_width1)*(-1)
var crossobj1=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj1.style.left=curpos1+"px"
}

function startit1(){
crossobj1=ie4? eval("document.all."+curcanvas1) : dom? document.getElementById(curcanvas1) : document.tickernsmain1.document.tickernsmain1
if (ie4||dom){
crossobj1.innerHTML=getslidehtml1(slideshowcontent1[curindex1])
rotateslide1()
}
else{
document.tickernsmain1.visibility='show'
curindex1++
setInterval("rotateslide1()",pause1)
}
}

if (window.addEventListener)
window.addEventListener("load", startit1, false)
else if (window.attachEvent)
window.attachEvent("onload", startit1)
else if (ie4||dom||document.layers)
window.onload=startit1
//-->