function prepareSlideshow() {

// Make sure the elements exist
  if (!document.getElementById("preview")) return false;
  if (!document.getElementById("total")) return false;
// Apply styles to the preview image
  var total = document.getElementById("total");  
 total.style.position = "relative";

  
//tir barra de rolagem pelo javascript
	var preview = document.getElementById("preview");
	preview.style.overflow = "hidden";

// Get all the links in the list 
  var largura = total.offsetWidth;  
 
  //var final = 0 - largura;//o safari naum entende esta conta
   //alert(final);
  total.style.left = "0px";
  total.style.top = "0px"; 
 var oldonload = window.onload;

// Attach the animation behavior to the mouseover event	   
		moveElement("total","-"+ largura,0,16);

		
  
  }
    
addLoadEvent(prepareSlideshow);