//specify interval between slide (in mili seconds)
var slidespeed=3000
//specify images
var slideimages=new Array("data/head_01.jpg","data/head_02.jpg","data/head_03.jpg","data/head_04.jpg","data/head_05.jpg")
//specify corresponding links
var slidelinks=new Array("http://www.aguasmansas.com","http://aguasmansas.com","http://www.aguasmansas.com","http://www.aguasmansas.com")
var newwindow=0 //open links in new window? 1=yes, 0=no
var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++){
imageholder[i]=new Image()
imageholder[i].src=slideimages[i]
}

function gotoshow(){
if (newwindow)
window.open(slidelinks[whichlink])
else
window.location=slidelinks[whichlink]
}

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}