function OpenContactSubpage() {

	window.open('Surf787ContactUs.html','ContactUs','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenContactsSubpage() {

	window.open('Surf787ContactUs.html','ContactUs','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenOurWavesSubpage() {

	window.open('Surf787OurWaves.html','OurWaves','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenOurBeachesSubpage() {

	window.open("Surf787OurBeaches.html",'OurBeaches','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenBiographySubpage() {

	window.open("Surf787Biography.html",'Biography','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenDailyActivitiesResortSubpage() {

	window.open("Surf787DailyActivitiesResort.html",'Daily','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenOptionalActivitiesResortSubpage() {

	window.open("Surf787OptionalActivitiesResort.html",'OptionResort','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenDailyActivitiesCampSubpage() {

	window.open("Surf787DailyActivitiesCamp.html",'DailyActivities','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenOptionalActivitiesCampSubpage() {

	window.open("Surf787OptionalActivitiesCamp.html",'OptionKids','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenResortRatesReserveSubpage() {

	window.open("Surf787ResortRatesReserve.html",'ResortRatesandReservations','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}

function OpenInclusiveRatesReserveSubpage() {

	window.open("Surf787InclusiveRatesReserve.html",'InclusiveRatesandReservations','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenCampRatesReserveSubpage() {

	window.open("Surf787CampRatesReserve.html",'KidsCampRatesandReservations','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}

function OpenDayCampRatesReserveSubpage() {

	window.open("Surf787CampRatesReserve.html#dayCamp",'KidsCampRatesandReservations','toolbar=no,status=no,scrollbars=yes,menubar=no,directories=no,width=556,height=565');

}

function OpenEntireVillaRatesReserveSubpage() {

	window.open("Surf787ResortRatesReserve.html#entireVilla",'ResortRatesandReservations','toolbar=no,status=no,scrollbars=yes,menubar=no,directories=no,width=556,height=565');

}



function OpenPhotosSubpage() {

	window.open('Surf787Photos.html','PhotoGallery','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenDirectionsSubpage() {

	window.open("Surf787Directions.html",'Directions','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenCuisineSubpage() {

	window.open("Surf787Cuisine.html",'OurCuisine','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenInstructionSubpage() {

	window.open("Surf787Instruction.html",'SurfInstruction','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function OpenFAQSubpage() {

	window.open("Surf787FAQ.html",'FrequentlyAskedQuestions','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=556,height=565');

}



function newImage(arg) {

	if (document.images) {

		rslt = new Image();

		rslt.src = arg;

		return rslt;

	}

}



function changeImages() {

	if (document.images && (preloadFlag == true)) {

		for (var i=0; i<changeImages.arguments.length; i+=2) {

			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];

		}

	}

}



//integrated from common.js used by alpha of Nuwiki

/* toggle an element's display */

function toggle(obj) {

  var el = document.getElementById(obj);

  if ( el.style.display != 'none' ) {

    el.style.display = 'none';

  }

  else {

    el.style.display = '';

  }

}



var preloadFlag = false;

function preloadImages() {

	if (document.images) {

		Surf787RevisedVILLA_Villa = newImage("images/Surf787REVISED-Green_07GL.gif");

		Surf787RevisedVILLA_SurfSchool = newImage("images/Surf787REVISED-Green_22GL.gif");

		Surf787RevisedVILLA_Kidscamp = newImage("images/Surf787REVISED-Green_24GL.gif");

		Surf787RevisedVILLA_My_Surf1 = newImage("images/Surf787REVISED-Green_26GL.gif");

		Surf787RevisedVILLA_My_Surf2 = newImage("images/Surf787REVISED-Green_04GL.gif");

		preloadFlag = true;

	}

}



// (C) 2002 www.CodeLifter.com

// http://www.codelifter.com

// Free for all users, but leave in this header.



// ==============================

// Set the following variables...

// ==============================



// Set the slideshow speed (in milliseconds)

var SlideShowSpeed = 3000;



// Set the duration of crossfade (in seconds)

var CrossFadeDuration = 3;



var Picture = new Array(); // don't change this

var Caption = new Array(); // don't change this



// Specify the image files...

// To add more images, just continue

// the pattern, adding to the array below.

// To use fewer images, remove lines

// starting at the end of the Picture array.

// Caution: The number of Pictures *must*

// equal the number of Captions!



Picture[1]  = 'images/Gallery/image1.jpg';

Picture[2]  = 'images/Gallery/image2.jpg';

Picture[3]  = 'images/Gallery/image3.jpg';

Picture[4]  = 'images/Gallery/image4.jpg';

Picture[5]  = 'images/Gallery/image5.jpg';

Picture[6]  = 'images/Gallery/image6.jpg';

Picture[7]  = 'images/Gallery/image7.jpg';

Picture[8]  = 'images/Gallery/image8.jpg';

Picture[9]  = 'images/Gallery/image9.jpg';

Picture[10] = 'images/Gallery/image10.jpg';

Picture[11] = 'images/Gallery/image11.jpg';

Picture[12] = 'images/Gallery/image12.jpg';



// Specify the Captions...

// To add more captions, just continue

// the pattern, adding to the array below.

// To use fewer captions, remove lines

// starting at the end of the Caption array.

// Caution: The number of Captions *must*

// equal the number of Pictures!



Caption[1]  = "The Villa";

Caption[2]  = "View from the hammock";

Caption[3]  = "Afternoon by the pool";

Caption[4]  = "Tres Palmas";

Caption[5]  = "Relaxing on the beach";

Caption[6]  = "Bridges Beach";

Caption[7]  = "Domes Beach";

Caption[8]  = "View from the Villa";

Caption[9]  = "Sunset from the Villa";

Caption[10] = "Sun Rays from the Villa";

Caption[11] = "Waterfalls";

Caption[12] = "On top of the world";



// =====================================

// Do not edit anything below this line!

// =====================================



var tss;

var iss;

var jss = 1;

var pss = Picture.length-1;



var preLoad = new Array();

for (iss = 1; iss < pss+1; iss++){

preLoad[iss] = new Image();

preLoad[iss].src = Picture[iss];}



function runSlideShow(){

if (document.all){

document.images.PictureBox.style.filter="blendTrans(duration=2)";

document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";

document.images.PictureBox.filters.blendTrans.Apply();}

document.images.PictureBox.src = preLoad[jss].src;

if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];

if (document.all) document.images.PictureBox.filters.blendTrans.Play();

jss = jss + 1;

if (jss > (pss)) jss=1;

tss = setTimeout('runSlideShow()', SlideShowSpeed);

}







