


var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

////NO need to edit beyond here/////////////

var ie4=document.all
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1


var curpos=250*(1)
var degree=10
var curcanvas="canvas0"


function moveslide(){
//problem in here moves through this function twice without a noticable change the second time
//seems as if it moving a slide that does not exist...??
var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
if (curpos>0){
curpos=Math.max(curpos-degree,0)
crossobj.style.top=curpos+"px"
}
else{

clearInterval(dropslide)
if (crossobj.filters)
crossobj.filters.alpha.opacity=100
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=1



}
}

function rotateslide(){
if (ie4||dom){

resetit(curcanvas)

var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
if (crossobj.filters){
document.all.canvas0.filters.alpha.opacity=20
}else if (crossobj.style.MozOpacity){
document.getElementById("canvas0").style.MozOpacity=0.2
} 
var temp='setInterval("moveslide()",50)'
dropslide=eval(temp)

}
}

function resetit(what){

curpos=parseInt(250)*(1)
var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
crossobj.style.top=curpos+"px"

}




