function prepareSlideshow() {
// Make sure the browser understands the DOM methods
  if (!document.getElementsByTagName) return false;
  if (!document.getElementById) return false;
// Make sure the elements exist
  if (!document.getElementById("linklistOnde")) return false;
  if (!document.getElementById("totalOnde")) return false;
// Apply styles to the preview image
  var total = document.getElementById("totalOnde");  
  total.style.position = "relative";
  total.style.left = "0";
  total.style.top = "0"; 
//tira barra de rolagem pelo javascript
	var preview = document.getElementById("previewOnde");
	preview.style.overflow = "hidden";
// Get all the links in the list
  var list = document.getElementById("linklistOnde");
  var links = list.getElementsByTagName("a");  
	var altura = total.offsetHeight;
	//alert (altura);
	var alturaTotal = (altura-180)*-1; // tiro 200 para descontar a altura da div, que na verdade eh 221
  
 	
// Attach the animation behavior to the mouseover event
  links[0].onmouseover = function() {
    moveElement("totalOnde",0,alturaTotal,30);
  }
  links[0].onmouseout = function() {
    var ypos = parseInt(total.style.top);
	moveElement("totalOnde",0,ypos,30);
	
  }
  links[1].onmouseover = function() {
    moveElement("totalOnde",0,0,30);
  }
  links[1].onmouseout = function() {
	  var ypos = parseInt(total.style.top);
    moveElement("totalOnde",0,ypos,30);
  }
  }
    
addLoadEvent(prepareSlideshow);