function change(picurl) {
document.t0.src = picurl;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
var slideCache = new Array();

var nextimage;
var futureImages
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
  var imageSeparator = imageFiles.indexOf(";");
  
  if (imageSeparator != -1){
  nextImage = imageFiles.substring(0,imageSeparator);
  if (document.all)
  {
    document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
    document.getElementById(pictureName).filters.blendTrans.Apply();
  }
  if (document.getElementById('button1').value == 'Start') document.getElementById(pictureName).src = nextImage;
  if (document.all) document.getElementById(pictureName).filters.blendTrans.Play();
  if (document.getElementById('button1').value == 'Start') futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)+ ';' + nextImage;
  setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
    displaySecs*600);
  if (document.getElementById('button1').value == "Start")
  {
  // Cache the next image to improve performance.
  imageSeparator = futureImages.indexOf(";");
  nextImage = futureImages.substring(0,imageSeparator);
  if (slideCache[nextImage] == null) {
    slideCache[nextImage] = new Image;
    slideCache[nextImage].src = nextImage;
  }
  }
  }
}

function button1press() {
	copyspeed=1
}
function button2press() {
	copyspeed=0
}











