// Inicio Funciones generales de manejo de imagenes

function MM_preloadImages() {
  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];}}
}
function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// Fin Funciones generales de manejo de imagenes

//Inicio funciones imagenes del SlideShow

/* function next(){ // Boton adelante una posición (imagen)
if(document.form1.slide[current+1]){
document.images.show.src = document.form1.slide[current+1].value;
document.form1.slide.selectedIndex = ++current;}
else{first();}
}

function previous(){ // Boton regresar una posición (imagen)
if((current-1) >= 0){
document.images.show.src = document.form1.slide[current-1].value;
document.form1.slide.selectedIndex= --current;}
else{last();}
}

function first(){ // Para boton de primera posición (imagen)
current=0;
document.images.show.src = document.form1.slide[0].value;
document.form1.slide.selectedIndex=0;
}

function last(){ // Para boton de última posición (imagen)
current=(document.form1.slide.length-1);
document.images.show.src = document.form1.slide[current].value;
document.form1.slide.selectedIndex=current;
}

function ap(text){ // Esto controla el boton auto-play y/o auto-stop
document.form1.slidebutton.value=(text == "Stop") ? "Start" : "Stop";
rotate();
} */

function change(){ // Esto es para el menú desplegable
current=document.form1.slide.selectedIndex;
document.images.show.src = document.form1.slide[current].value;}

/* function rotate() {
if (document.form1.slidebutton.value == "Stop") {
current = (current == document.form1.slide.length-1) ? 0 : current+1;
document.images.show.src = document.form1.slide[current].value;
document.form1.slide.selectedIndex = current;
window.setTimeout("rotate()", 6000);}}
*/
//Fin funciones cambio imagenes del SlideShow

//Inicio funciones cambio itexto del SlideShow

var thetext1=new Array()
thetext1[0]="Los pisos de azulejo y los baños brindan un toque de lujo. Las habitaciones se mantienen frescas y silenciosas debido a la construcción de concreto, techos a 10 pies de altura, y pocos rayos de sol directos."
thetext1[1]="In addition to the above these offer hammocks and direct paths to the beach, pool & main house. Use of wood throughout the cabinas give a sense of warmth yet the open-air style allows the cooling effect of the ocean breezes to waft though the cabinas."
thetext1[2]="The master suite is larger than the normal rooms and it's located on the main deck with great views and hammocks in front overlooking the Pacific Ocean. The huge cement tub with shower and 2 sinks, along with netting over the bed, fan & lights, makes is a wonderful option for honeymooners."
thetext1[3]="Surrounded by orchids, flowers, banana and fruit trees, and giant Joba trees full of Iguanas and scarlet macaws, these open air A-Frame Tiki Huts are 10 feet off the ground, giving you a tree house feeling. Each hut has a queen bed, table and chairs, fan, lights and bed netting.  There is a walkway that winds down through the hilly garden to the beach and passes a hammock and chair platform high above, a perfect place for yoga or just wait for that 'Kodak moment'. The two Tiki huts are separate private cabins out of view from each other but with a central bathhouse in the middle. This wild bathhouse is very private for guests but exposed to the animal kingdom with the open front facing the ocean and the jungle life making it the greatest shower you'll take."
thetext1[4]="In the middle of a tropical jungle paradise bursting with exotic plants and unique wildlife and just 70 meters from the Pacific Ocean is the oceanfront beach house."

function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex];
}

/* 
La linea inferior es opcional para ejecutar la funcion de cambio de texto; puede ir en la página, ejecutandose con algun comportamiento o aquí en el script...Dependiendo de como se necesite usar. Pero no puede estar activa o ejecutarse en la página y en el script al mismo tiempo o producirá un error.
*/

// displaydesc(document.form1.slide, thetext1, 'textcontainer1');

// Fin funciones cambio itexto del SlideShow
