//<script type="text/javascript">
// Flexible Image Slideshow- By JavaScriptKit.com (http://www.javascriptkit.com)
// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
// This notice must stay intact for use

// MODFIED by Tobias Franoszek, Concept! Miami, Inc (http://www.concept-miami.com): 
// 		random code replaced
// 		support for captions
// 		image fades for IE added

var ultimateshow=new Array()

//ultimateshow[x]=["path to image", "OPTIONAL link for image", "OPTIONAL link target", CAPTION]

ultimateshow[0]=['http://www.hollyinthekeys.com/img/listings/th/listing_2.jpg', 'ocean-lane.asp', '', '<br>Featured Property<br>Ocean Lane']
ultimateshow[1]=['http://www.hollyinthekeys.com/img/listings/th/listing_4.jpg', 'blackwater_lane.asp', '', '<br>Featured Property<br>Blackwater Lane']
ultimateshow[2]=['http://www.hollyinthekeys.com/img/listings/th/listing_6.jpg', 'grouper.asp', '', '<br>Featured Property<br>Grouper']
ultimateshow[3]=['http://www.hollyinthekeys.com/img/listings/th/listing_7.jpg', 'ocean-pointe1.asp', '', '<br>Featured Property<br>Ocean Pointe']
ultimateshow[4]=['http://www.hollyinthekeys.com/img/listings/th/listing_9.jpg', 'overseas-highway.asp', '', '<br>Featured Property<br>Overseas Highway']
ultimateshow[5]=['http://www.hollyinthekeys.com/img/listings/th/listing_10.jpg', '49-blackwater_lane.asp', '', '<br>Featured Property<br>49 Blackwater Lane']
ultimateshow[6]=['http://www.hollyinthekeys.com/img/listings/th/listing_1.jpg', 'sailfish-trail.asp', '', '<br>Featured Property<br>Sailfish Trail']
ultimateshow[7]=['http://www.hollyinthekeys.com/img/listings/th/listing_3.jpg', 'marina.asp', '', '<br>Featured Property<br>Marina']
ultimateshow[8]=['http://www.hollyinthekeys.com/img/listings/th/listing_5.jpg', '111-mangrove.asp', '', '<br>Featured Property<br>Mangrove Lane']
ultimateshow[9]=['http://www.hollyinthekeys.com/img/listings/th/listing_8.jpg', 'coconut-palm.asp', '', '<br>Featured Property<br>Coconut Palm']


//configure the below 3 variables to set the dimension/background color of the slideshow
var slidewidth="116px" //set to width of LARGEST image in your slideshow
var slideheight="158px" //set to height of LARGEST iamge in your slideshow
var slidecycles="continous" //number of cycles before slideshow stops (ie: "2" or "continous")
var randomorder="yes" //randomize the order in which images are displayed? "yes" or "no"
var preloadimages="yes" //preload images? "yes" or "no"
var slidebgcolor=''	// background color

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=6000

////Do not edit past this line////////////////
var ie=document.all
var dom=document.getElementById
var curcycle=0

if (preloadimages=="yes"){
	for (i=0;i<ultimateshow.length;i++){
		var cacheimage=new Image()
		cacheimage.src=ultimateshow[i][0]
	}
}

var currentslide=0

function fisherYatesShuffle ( myArray ) {
  var i = myArray.length;
  if ( i == 0 ) return false;
  while ( --i ) {
     var j = Math.floor( Math.random() * ( i + 1 ) );
     var tempi = myArray[i];
     var tempj = myArray[j];
     myArray[i] = tempj;
     myArray[j] = tempi;
   }
}

if (randomorder=="yes") fisherYatesShuffle(ultimateshow);

function rotateimages(){
curcycle=(currentslide==0)? curcycle+1 : curcycle
ultcontainer='<center>'
if (ultimateshow[currentslide][1]!="")
	ultcontainer+='<a href="'+ultimateshow[currentslide][1]+'" class="content" target="'+ultimateshow[currentslide][2]+'">'
	ultcontainer+='<img src="'+ultimateshow[currentslide][0]+'" border="0">'
	// add caption
	ultcontainer+='<br>'+ultimateshow[currentslide][3]
if (ultimateshow[currentslide][1]!="")
	ultcontainer+='</a>'
	ultcontainer+='</center>'
if (ie||dom) {
	if (crossrotateobj.filters) crossrotateobj.filters[0].apply();	// IE only
	crossrotateobj.innerHTML = ultcontainer;
	if (crossrotateobj.filters) crossrotateobj.filters[0].play();		// IE only
}

if (currentslide==ultimateshow.length-1) currentslide=0
else currentslide++
if (curcycle==parseInt(slidecycles) && currentslide==0)
return
setTimeout("rotateimages()",slidedelay)
}

//if (ie||dom)
//document.write('<div id="FeaturedProperty" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'; filter:blendTrans(duration=1);"></div>')

function start_slider(){
	crossrotateobj=dom? document.getElementById("FeaturedProperty") : document.all.FeaturedProperty
	rotateimages()
}

//if (ie||dom)
//window.onload=start_slider
//</script>



