// JavaScript Document
      
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
 
/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var about=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
about[0]=["Images/About/1.jpg", "", ""] //plain image syntax
about[1]=["Images/About/2.jpg", ""] //image with link syntax
about[2]=["Images/About/3.jpg", "", ""] //plain image syntax

var about2=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
about2[0]=["Images/About/4.jpg", "", ""] //plain image syntax
about2[1]=["Images/About/5.jpg", "", ""] //plain image syntax

var fleet=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fleet[0]=["Images/Fleet/1.jpg", "", ""] //plain image syntax
fleet[1]=["Images/Fleet/2.jpg", ""] //image with link syntax
fleet[2]=["Images/Fleet/3.jpg", "", ""] //plain image syntax
fleet[3]=["Images/Fleet/4.jpg", "", ""] //plain image syntax

var eight=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
eight[0]=["Images/Fleet/8seaters/Thumbs/1.jpg", "", ""] //plain image syntax
eight[1]=["Images/Fleet/8seaters/Thumbs/2.jpg", ""] //image with link syntax

var eightb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
eightb[0]=["Images/Fleet/8seaters/1.jpg", "", ""] //plain image syntax
eightb[1]=["Images/Fleet/8seaters/2.jpg", ""] //image with link syntax

var sixteen=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
sixteen[0]=["Images/Fleet/16seaters/1.jpg", "", ""] //plain image syntax
sixteen[2]=["Images/Fleet/16seaters/3.jpg", "", ""] //plain image syntax
sixteen[1]=["Images/Fleet/16seaters/2.jpg", ""] //image with link syntax
sixteen[3]=["Images/Fleet/16seaters/4.jpg", ""] //image with link syntax
sixteen[0]=["Images/Fleet/16seaters/1.jpg", "", ""] //plain image syntax
sixteen[4]=["Images/Fleet/16seaters/5.jpg", "", ""] //plain image syntax

var sixteenb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
sixteenb[0]=["Images/Fleet/16seaters/Thumbs/1.jpg", "", ""] //plain image syntax
sixteenb[1]=["Images/Fleet/16seaters/Thumbs/2.jpg", ""] //image with link syntax
sixteenb[2]=["Images/Fleet/16seaters/Thumbs/3.jpg", "", ""] //plain image syntax
sixteenb[3]=["Images/Fleet/16seaters/Thumbs/4.jpg", "", ""] //plain image syntax

var twentyfourthirtythree=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
twentyfourthirtythree[0]=["Images/Fleet/2433seaters/thumbs/1.jpg", "", ""] //plain image syntax
twentyfourthirtythree[1]=["Images/Fleet/2433seaters/thumbs/2.jpg", ""] //image with link syntax
twentyfourthirtythree[2]=["Images/Fleet/2433seaters/thumbs/3.jpg", ""] //image with link syntax
twentyfourthirtythree[3]=["Images/Fleet/2433seaters/thumbs/4.jpg", "", ""] //plain image syntax
twentyfourthirtythree[4]=["Images/Fleet/2433seaters/thumbs/5.jpg", "", ""] //plain image syntax
twentyfourthirtythree[5]=["Images/Fleet/2433seaters/thumbs/7.jpg", ""] //image with link syntax
twentyfourthirtythree[6]=["Images/Fleet/2433seaters/thumbs/8.jpg", "", ""] //plain image syntax

var twentyfourthirtythreeb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
twentyfourthirtythreeb[0]=["Images/Fleet/2433seaters/1a.jpg", "", ""] //plain image syntax
twentyfourthirtythreeb[1]=["Images/Fleet/2433seaters/2a.jpg", ""] //image with link syntax
twentyfourthirtythreeb[2]=["Images/Fleet/2433seaters/3a.jpg", "", ""] //plain image syntax
twentyfourthirtythreeb[3]=["Images/Fleet/2433seaters/4a.jpg", ""] //image with link syntax

var thirtysixfortynine=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
thirtysixfortynine[0]=["Images/Fleet/3649seaters/Thumbs/1.jpg", "", ""] //plain image syntax
thirtysixfortynine[1]=["Images/Fleet/3649seaters/Thumbs/2.jpg", ""] //image with link syntax
thirtysixfortynine[2]=["Images/Fleet/3649seaters/Thumbs/3.jpg", "", ""] //plain image syntax
thirtysixfortynine[3]=["Images/Fleet/3649seaters/Thumbs/4.jpg", ""] //image with link syntax
thirtysixfortynine[4]=["Images/Fleet/3649seaters/Thumbs/5.jpg", "", ""] //plain image syntax

var thirtysixfortynineb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
thirtysixfortynineb[0]=["Images/Fleet/3649seaters/1.jpg", "", ""] //plain image syntax
thirtysixfortynineb[1]=["Images/Fleet/3649seaters/2.jpg", ""] //image with link syntax
thirtysixfortynineb[2]=["Images/Fleet/3649seaters/3.jpg", ""] //image with link syntax
thirtysixfortynineb[3]=["Images/Fleet/3649seaters/4.jpg", "", ""] //plain image syntax
thirtysixfortynineb[4]=["Images/Fleet/3649seaters/5.jpg", ""] //image with link syntax
thirtysixfortynineb[5]=["Images/Fleet/3649seaters/6.jpg", ""] //image with link syntax

var fiftyonefiftythreeb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fiftyonefiftythreeb[0]=["Images/Fleet/5153seaters/1.jpg", "", ""] //plain image syntax
fiftyonefiftythreeb[1]=["Images/Fleet/5153seaters/2.jpg", ""] //image with link syntax
fiftyonefiftythreeb[2]=["Images/Fleet/5153seaters/3.jpg", ""] //image with link syntax
fiftyonefiftythreeb[3]=["Images/Fleet/5153seaters/4.jpg", ""] //image with link syntax
 
var fiftyonefiftythree=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fiftyonefiftythree[0]=["Images/Fleet/5153seaters/Thumbs/1.jpg", "", ""] //plain image syntax
fiftyonefiftythree[1]=["Images/Fleet/5153seaters/Thumbs/2.jpg", ""] //image with link syntax
fiftyonefiftythree[2]=["Images/Fleet/5153seaters/Thumbs/3.jpg", ""] //image with link syntax
fiftyonefiftythree[3]=["Images/Fleet/5153seaters/Thumbs/4.jpg", "", ""] //plain image syntax
fiftyonefiftythree[4]=["Images/Fleet/5153seaters/Thumbs/5.jpg", ""] //image with link syntax
fiftyonefiftythree[5]=["Images/Fleet/5153seaters/Thumbs/6.jpg", ""] //image with link syntax
fiftyonefiftythree[6]=["Images/Fleet/5153seaters/Thumbs/7.jpg", "", ""] //plain image syntax

var fiftysevenb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fiftysevenb[0]=["Images/Fleet/57seaters/1.jpg", "", ""] //plain image syntax
fiftysevenb[1]=["Images/Fleet/57seaters/3.jpg", ""] //image with link syntax
fiftysevenb[2]=["Images/Fleet/57seaters/2.jpg", "", ""] //plain image syntax
fiftysevenb[3]=["Images/Fleet/57seaters/4.jpg", ""] //image with link syntax

var fiftyseven=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
fiftyseven[0]=["Images/Fleet/57seaters/Thumbs/1.jpg", "", ""] //plain image syntax
fiftyseven[1]=["Images/Fleet/57seaters/Thumbs/2.jpg", ""] //image with link syntax

var seventyb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
seventyb[0]=["Images/Fleet/70seaters/1.jpg", "", ""] //plain image syntax
seventyb[1]=["Images/Fleet/70seaters/3.jpg", ""] //image with link syntax
seventyb[2]=["Images/Fleet/70seaters/2.jpg", "", ""] //plain image syntax
seventyb[3]=["Images/Fleet/70seaters/4.jpg", ""] //image with link syntax
seventyb[4]=["Images/Fleet/70seaters/1.jpg", "", ""] //plain image syntax
seventyb[5]=["Images/Fleet/70seaters/5.jpg", "", ""] //plain image syntax

var seventy=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
seventy[0]=["Images/Fleet/70seaters/Thumbs/1.jpg", "", ""] //plain image syntax
seventy[1]=["Images/Fleet/70seaters/Thumbs/2.jpg", ""] //image with link syntax
seventy[2]=["Images/Fleet/70seaters/Thumbs/3.jpg", "", ""] //plain image syntax
seventy[3]=["Images/Fleet/70seaters/Thumbs/4.jpg", ""] //image with link syntax
seventy[4]=["Images/Fleet/70seaters/Thumbs/5.jpg", "", ""] //plain image syntax

var execb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
execb[0]=["Images/Fleet/exec/1.jpg", "", ""] //plain image syntax
execb[1]=["Images/Fleet/exec/2.jpg", ""] //image with link syntax

var exec=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
exec[0]=["Images/Fleet/exec/Thumbs/1.jpg", "", ""] //plain image syntax
exec[1]=["Images/Fleet/exec/Thumbs/2.jpg", ""] //image with link syntax

var doubleb=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
doubleb[0]=["Images/Fleet/double/1.jpg", "", ""] //plain image syntax
doubleb[1]=["Images/Fleet/double/2.jpg", ""] //image with link syntax
doubleb[2]=["Images/Fleet/double/3.jpg", "", ""] //plain image syntax
doubleb[3]=["Images/Fleet/double/4.jpg", ""] //image with link syntax

var vintage=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
vintage[0]=["Images/Fleet/vintage/1.jpg", "", ""] //plain image syntax
vintage[1]=["Images/Fleet/vintage/2.jpg", ""] //image with link syntax
vintage[2]=["Images/Fleet/vintage/3.jpg", "", ""] //plain image syntax
vintage[3]=["Images/Fleet/vintage/4.jpg", "", ""] //plain image syntax
vintage[4]=["Images/Fleet/vintage/5.jpg", ""] //image with link syntax
vintage[5]=["Images/Fleet/vintage/6.jpg", "", ""] //plain image syntax
vintage[6]=["Images/Fleet/vintage/7.jpg", "", ""] //plain image syntax
vintage[7]=["Images/Fleet/vintage/8.jpg", ""] //image with link syntax
vintage[8]=["Images/Fleet/vintage/9.jpg", "", ""] //plain image syntax
vintage[9]=["Images/Fleet/vintage/10.jpg", "", ""] //plain image syntax
vintage[10]=["Images/Fleet/vintage/11.jpg", "", ""] //plain image syntax
vintage[11]=["Images/Fleet/vintage/12.jpg", ""] //image with link syntax
vintage[12]=["Images/Fleet/vintage/13.jpg", "", ""] //plain image syntax
vintage[13]=["Images/Fleet/vintage/14.jpg", "", ""] //plain image syntax

var disabled=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
disabled[0]=["Images/Fleet/disabled/1.jpg", "", ""] //plain image syntax
disabled[1]=["Images/Fleet/disabled/2.jpg", ""] //image with link syntax

var sof=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
sof[0]=["Images/sof/1.jpg", "", ""] //plain image syntax
sof[1]=["Images/sof/2.jpg", ""] //image with link syntax
sof[2]=["Images/sof/3.jpg", "", ""] //plain image syntax
sof[3]=["Images/sof/4.jpg", ""] //image with link syntax
sof[4]=["Images/sof/5.jpg", "", ""] //plain image syntax
sof[5]=["Images/sof/6.jpg", "", ""] //plain image syntax
sof[6]=["Images/sof/7.jpg", ""] //image with link syntax

var mech=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
mech[0]=["Images/mechanical/1.jpg", "", ""] //plain image syntax
mech[1]=["Images/mechanical/2.jpg", ""] //image with link syntax
mech[2]=["Images/mechanical/3.jpg", "", ""] //plain image syntax
mech[3]=["Images/mechanical/4.jpg", ""] //image with link syntax
mech[4]=["Images/mechanical/5.jpg", "", ""] //plain image syntax
mech[5]=["Images/mechanical/6.jpg", ""] //image with link syntax

var mechmore=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
mechmore[0]=["Images/mechanicalmore/1.jpg", "", ""] //plain image syntax
mechmore[1]=["Images/mechanicalmore/2.jpg", ""] //image with link syntax
mechmore[2]=["Images/mechanicalmore/3.jpg", "", ""] //plain image syntax
mechmore[3]=["Images/mechanicalmore/4.jpg", ""] //image with link syntax

var mechrally=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
mechrally[0]=["Images/mechanicalrally/1.jpg", "", ""] //plain image syntax
mechrally[1]=["Images/mechanicalrally/2.jpg", "", ""] //plain image syntax
mechrally[2]=["Images/mechanicalrally/3.jpg", "", ""] //plain image syntax
mechrally[3]=["Images/mechanicalrally/4.jpg", "", ""] //plain image syntax
mechrally[4]=["Images/mechanicalrally/5.jpg", "", ""] //plain image syntax
mechrally[5]=["Images/mechanicalrally/6.jpg", "", ""] //plain image syntax
mechrally[6]=["Images/mechanicalrally/7.jpg", "", ""] //plain image syntax
mechrally[7]=["Images/mechanicalrally/8.jpg", "", ""] //plain image syntax
mechrally[8]=["Images/mechanicalrally/9.jpg", "", ""] //plain image syntax
mechrally[9]=["Images/mechanicalrally/10.jpg", "", ""] //plain image syntax
mechrally[10]=["Images/mechanicalrally/11.jpg", "", ""] //plain image syntax
mechrally[11]=["Images/mechanicalrally/12.jpg", "", ""] //plain image syntax
mechrally[12]=["Images/mechanicalrally/13.jpg", "", ""] //plain image syntax
mechrally[13]=["Images/mechanicalrally/14.jpg", "", ""] //plain image syntax
mechrally[14]=["Images/mechanicalrally/15.jpg", "", ""] //plain image syntax
mechrally[15]=["Images/mechanicalrally/16.jpg", "", ""] //plain image syntax
mechrally[16]=["Images/mechanicalrally/17.jpg", "", ""] //plain image syntax
mechrally[17]=["Images/mechanicalrally/18.jpg", "", ""] //plain image syntax
mechrally[18]=["Images/mechanicalrally/19.jpg", "", ""] //plain image syntax
mechrally[19]=["Images/mechanicalrally/20.jpg", "", ""] //plain image syntax
mechrally[20]=["Images/mechanicalrally/21.jpg", "", ""] //plain image syntax
mechrally[21]=["Images/mechanicalrally/22.jpg", "", ""] //plain image syntax
mechrally[22]=["Images/mechanicalrally/23.jpg", "", ""] //plain image syntax
mechrally[23]=["Images/mechanicalrally/24.jpg", "", ""] //plain image syntax
mechrally[24]=["Images/mechanicalrally/25.jpg", "", ""] //plain image syntax
mechrally[25]=["Images/mechanicalrally/26.jpg", "", ""] //plain image syntax
mechrally[26]=["Images/mechanicalrally/27.jpg", "", ""] //plain image syntax
mechrally[27]=["Images/mechanicalrally/28.jpg", "", ""] //plain image syntax
mechrally[28]=["Images/mechanicalrally/29.jpg", "", ""] //plain image syntax
mechrally[29]=["Images/mechanicalrally/30.jpg", "", ""] //plain image syntax
mechrally[30]=["Images/mechanicalrally/31.jpg", "", ""] //plain image syntax
mechrally[31]=["Images/mechanicalrally/32.jpg", "", ""] //plain image syntax
mechrally[32]=["Images/mechanicalrally/33.jpg", "", ""] //plain image syntax
mechrally[33]=["Images/mechanicalrally/34.jpg", "", ""] //plain image syntax
mechrally[34]=["Images/mechanicalrally/35.jpg", "", ""] //plain image syntax

var fadebgcolor="white"

////NO need to edit beyond here/////////////
 
var fadearray=new Array() //array to cache fadeshow instances
var fadeclear=new Array() //array to cache corresponding clearinterval pointers
 
var dom=(document.getElementById) //modern dom browsers
var iebrowser=document.all
 
function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, displayorder){
this.pausecheck=pause
this.mouseovercheck=0
this.delay=delay
this.degree=10 //initial opacity degree (10%)
this.curimageindex=0
this.nextimageindex=1
fadearray[fadearray.length]=this
this.slideshowid=fadearray.length-1
this.canvasbase="canvas"+this.slideshowid
this.curcanvas=this.canvasbase+"_0"
if (typeof displayorder!="undefined")
theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)
this.theimages=theimages
this.imageborder=parseInt(borderwidth)
this.postimages=new Array() //preload images
for (p=0;p<theimages.length;p++){
this.postimages[p]=new Image()
this.postimages[p].src=theimages[p][0]
}
 
var fadewidth=fadewidth+this.imageborder*2
var fadeheight=fadeheight+this.imageborder*2
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)
document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')
else
document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')
 
if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox
this.startit()
else{
this.curimageindex++
setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)
}
}

function fadepic(obj){
if (obj.degree<100){
obj.degree+=10
if (obj.tempobj.filters&&obj.tempobj.filters[0]){
if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+
obj.tempobj.filters[0].opacity=obj.degree
else //else if IE5.5-
obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"
}
else if (obj.tempobj.style.MozOpacity)
obj.tempobj.style.MozOpacity=obj.degree/101
else if (obj.tempobj.style.KhtmlOpacity)
obj.tempobj.style.KhtmlOpacity=obj.degree/100
else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)
obj.tempobj.style.opacity=obj.degree/101
}
else{
clearInterval(fadeclear[obj.slideshowid])
obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"
obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)
obj.populateslide(obj.tempobj, obj.nextimageindex)
obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0
setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)
}
}
 
fadeshow.prototype.populateslide=function(picobj, picindex){
var slideHTML=""
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'
slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'
if (this.theimages[picindex][1]!="") //if associated link exists for image
slideHTML+='</a>'
picobj.innerHTML=slideHTML
}
 
 
fadeshow.prototype.rotateimage=function(){
if (this.pausecheck==1) //if pause onMouseover enabled, cache object
var cacheobj=this
if (this.mouseovercheck==1)
setTimeout(function(){cacheobj.rotateimage()}, 100)
else if (iebrowser&&dom||dom){
this.resetit()
var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
crossobj.style.zIndex++
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"
}
else{
var ns4imgobj=document.images['defaultslide'+this.slideshowid]
ns4imgobj.src=this.postimages[this.curimageindex].src
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0
}
 
fadeshow.prototype.resetit=function(){
this.degree=10
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
if (crossobj.filters&&crossobj.filters[0]){
if (typeof crossobj.filters[0].opacity=="number") //if IE6+
crossobj.filters(0).opacity=this.degree
else //else if IE5.5-
crossobj.style.filter="alpha(opacity="+this.degree+")"
}
else if (crossobj.style.MozOpacity)
crossobj.style.MozOpacity=this.degree/101
else if (crossobj.style.KhtmlOpacity)
crossobj.style.KhtmlOpacity=this.degree/100
else if (crossobj.style.opacity&&!crossobj.filters)
crossobj.style.opacity=this.degree/101
}
 
 
fadeshow.prototype.startit=function(){
var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)
this.populateslide(crossobj, this.curimageindex)
if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER
var cacheobj=this
var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)
crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}
crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}
}
this.rotateimage()
}
