//<script>

if (self.location != top.location) top.location = self.location;


picwidth=800;
var pic1L = 0;
var pic2L = picwidth;
var speed = 40;
var step=1;
 
function imgScroll() {
     document.getElementById("pic1").style.left = pic1L + "px";
     document.getElementById("pic2").style.left = pic2L + "px";
     pic1L-=step; if (pic1L < -(picwidth-1)) pic1L=picwidth;
	 pic2L-=step; if (pic2L < -(picwidth-1)) pic2L=picwidth;
     scroller=setTimeout("imgScroll()",speed);
}


var scroller=setTimeout("imgScroll()",1000); 



function nextpicb(divid,imglist,counter){
counter++;
imglist=imglist.split(",");
if (counter==imglist.length) counter=0;
if (document.all && document.getElementById(divid).filters) document.getElementById(divid).filters[0].apply();
document.getElementById(divid).style.backgroundImage = "url(alt/" + imglist[counter] + ".jpg)";
if (document.all && document.getElementById(divid).filters) document.getElementById(divid).filters[0].play();
return counter;
}


function preload(imglist) {
imglist=imglist.split(",");
document.write('<div style="display:none;">');
for (var i=0; i<imglist.length; i++) {document.write('<img src="alt/'+imglist[i]+'.jpg" width=480 height=256>');}
document.write('</div>');
}
