/*******************************************************************************
Copyright (c) 2001 Gerald Emerson (www.imagine-graphics.com)

*******************************************************************************/
//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
var bw=new checkBrowser()

//Ie var
var explorerev=''
/*
//script by Jerry Emerson
*/

var photos=new Array()
var text=new Array()
var link=new Array()
var which=0 //which photo to display
var what=0 //what text to display in text title box
var where = 0 //where the link leads when the image is clicked

//URLS to image files. May load as many images as needed
photos[0]="images/penthouse/start.gif"
photos[1]="images/penthouse/01.gif"
photos[2]="images/penthouse/02.gif"
photos[3]="images/penthouse/03.gif"
photos[4]="images/penthouse/04.gif"
photos[5]="images/penthouse/05.gif"
photos[6]="images/penthouse/06.gif"
//photos[7]="images/penthouse/07.gif"
//photos[8]="images/penthouse/08.gif"
//photos[9]="images/penthouse/09.gif"
//photos[10]="images/penthouse/10.gif"
//photos[11]="images/11.gif"



//change title or description here for each image
text[0]="   Penthouse Slideshow"
text[1]="1. Living Room"
text[2]="2. Kitchen"
text[3]="3. King BR"
text[4]="4. Queen BR"
text[5]="5. Dining"
text[6]="6. Penthouse View"
//text[7]="7. "
//text[8]="8. "
//text[9]="9. "
//text[10]="10. "
//text[11]="11. Ocean View"



//link[0] = "0"
//link[1] = "1"
//link[2] = "2"
//link[3] = "3"
//link[4] = "4"
//link[6] = "5"
//link[7] = "7"
//link[8] = "8"
//link[9] = "9"
//link[10] = "10"
//link[11] = "11"

//loads the link to larger images when mouse is clicked on small images
function getURL()
{
if(document.rotater.link1.value ==0)
{window.location="large/0.html";}
if(document.rotater.link1.value ==1)
{window.location="large/1.html";}
if(document.rotater.link1.value ==2)
{window.location="large/2.html";}
if(document.rotater.link1.value ==3)
{window.location="large/3.html";}
if(document.rotater.link1.value ==4)
{window.location="large/4.html";}
if(document.rotater.link1.value ==5)
{window.location="large/5.html";}
if(document.rotater.link1.value ==6)
{window.location="large/6.html";}
if(document.rotater.link1.value ==7)
{window.location="large/7.html";}
if(document.rotater.link1.value ==8)
{window.location="large/8.html";}
if(document.rotater.link1.value ==9)
{window.location="large/9.html";}
if(document.rotater.link1.value ==10)
{window.location="large/10.html";}

}

function firstImage() //instantly return to first image

{

which=2;what=2;where=2;backward();
}

function lastImage() //instantly go to last image

{

which=6;what=6; where=6;document.images.photoslider.src=photos[which];
document.rotater.description.value=text[what];
document.rotater.link1.value=link[where];
}
 
 
// deactivated window.onload=new Function("document.rotater.description.value=text[0]")

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which];
what--
document.rotater.description.value=text[what];

where--
document.rotater.link1.value=link[where];
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which];
what++
document.rotater.description.value=text[what];
where++
document.rotater.link1.value=link[where];
}
else window.status='End of gallery'
}

function type()
	{
	alert("This textbox will only display default comments")
	}

/*********************************************************************************************
END Menu script
*********************************************************************************************/ 	
