var stop;

function move(){
	var winW = (window.innerWidth)? window.innerWidth-10 : document.body.offsetWidth-18;
	var element=document.getElementById("all");
	element.style.left=(winW-780)/2+"px";
	stop = setTimeout("move()", 10);
}
function print(){
     clearTimeout(stop);
	var element=document.getElementById("all");
	element.style.left="0"+"px";
	element.style.width="650px";
	var element=document.getElementById("title");
	element.style.visibility="hidden";
	var element=document.getElementById("print");
	element.style.visibility="hidden";
}

function newSite(){
   window.location="http://www.wolseylodges.com";
}


function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

//###############   Slideshow    ##################

<!-- configurable script -->


theimage = new Array();


// The dimensions of ALL the images should be the same or some of them may look stretched or reduced in Netscape 4.
// Format: theimage[...]=[image URL, link URL, name/description]

theimage[1]=["/imagesL/1579-1.jpg", "", ""];
theimage[2]=["/imagesL/1580-1.jpg", "", ""];
theimage[3]=["/imagesL/2962-1.jpg", "", ""];
theimage[4]=["/imagesL/2963-1.jpg", "", ""];
theimage[5]=["/imagesL/3967-1.jpg", "", ""];
theimage[6]=["/imagesL/3968-1.jpg", "", ""];
theimage[7]=["/imagesL/3978-1.jpg", "", ""];
theimage[8]=["/imagesL/4693-1.jpg", "", ""];
theimage[9]=["/imagesL/4988-1.jpg", "", ""];
theimage[10]=["/imagesL/5946-1.jpg", "", ""];
theimage[11]=["/imagesL/5953-1.jpg", "", ""];
theimage[12]=["/imagesL/8950-1.jpg", "", ""];
theimage[13]=["/imagesL/8951-1.jpg", "", ""];
theimage[14]=["/imagesL/8952-1.jpg", "", ""];
theimage[15]=["/imagesL/8953-1.jpg", "", ""];
theimage[16]=["/imagesL/9919-1.jpg", "", ""];
theimage[17]=["/imagesL/9920-1.jpg", "", ""];



///// Plugin variables

playspeed=3000;// The playspeed determines the delay for the "Play" button in ms
//#####
//key that holds where in the array currently are
i=0;


// -------------------------------------------------------
//if random
function SetRandom() {
	tempimage = new Array();
	for(p=0; p<theimage.length; p++){
		for(p1=0; p1>-1; p1) {
			tempNum = Math.floor(Math.random()*theimage.length)
			if(!tempimage[tempNum]){
				tempimage[tempNum]=theimage[p];
				break;
			}
		}
	}
	for(p=0;p<theimage.length;p++)theimage[p]=tempimage[p];
}

//if random order
SetRandom()


//-------------------------------------------------------
window.onload=function(){

	//set the first slide
	SetSlide(0);

	//autoplay
	PlaySlide();
}

//-----------------------------------------------------------
function SetSlide(num) {
	//too big
	i=num%theimage.length;
	//too small
	if(i<0)i=theimage.length-1;

	//switch the image
	document.images.imgslide.src=theimage[i][0];

	//if they want name of current slide
	document.getElementById('slidebox').innerHTML=theimage[i][2];

}


//-----------------------------------------------------------------
function PlaySlide() {
	if (!window.playing) {
		PlayingSlide(i+1);
		if(document.slideshow.play){
			document.slideshow.play.value="   Stop   ";
		}
	}
	else {
		playing=clearTimeout(playing);
		if(document.slideshow.play){
			document.slideshow.play.value="   Play   ";
		}
	}
	// if you have to change the image for the "playing" slide
	if(document.images.imgPlay){
		setTimeout('document.images.imgPlay.src="'+imgStop+'"',1);
		imgStop=document.images.imgPlay.src
	}
}


//-----------------------------------------------------------------------
function PlayingSlide(num) {
	playing=setTimeout('PlayingSlide(i+1);SetSlide(i+1);', playspeed);
}

//#########################################################################
