/***********************************************
* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var wedding=new Array()
wedding[00]=["Images/Wedding000.jpg", "Wedding-All.htm", ""]
wedding[01]=["Images/Wedding001.jpg", "Wedding-All.htm", ""]
wedding[02]=["Images/Wedding002.jpg", "Wedding-All.htm", ""]
wedding[03]=["Images/Wedding003.jpg", "Wedding-All.htm", ""]
wedding[04]=["Images/Wedding004.jpg", "Wedding-All.htm", ""]
wedding[05]=["Images/Wedding005.jpg", "Wedding-All.htm", ""]
wedding[06]=["Images/Wedding006.jpg", "Wedding-All.htm", ""]
wedding[07]=["Images/Wedding007.jpg", "Wedding-All.htm", ""]
wedding[08]=["Images/Wedding008.jpg", "Wedding-All.htm", ""]
wedding[09]=["Images/Wedding009.jpg", "Wedding-All.htm", ""]
wedding[10]=["Images/Wedding010.jpg", "Wedding-All.htm", ""]
wedding[11]=["Images/Wedding011.jpg", "Wedding-All.htm", ""]
wedding[12]=["Images/Wedding012.jpg", "Wedding-All.htm", ""]
wedding[13]=["Images/Wedding013.jpg", "Wedding-All.htm", ""]
wedding[14]=["Images/Wedding014.jpg", "Wedding-All.htm", ""]
wedding[15]=["Images/Wedding015.jpg", "Wedding-All.htm", ""]
wedding[16]=["Images/Wedding016.jpg", "Wedding-All.htm", ""]
wedding[17]=["Images/Wedding017.jpg", "Wedding-All.htm", ""]
wedding[18]=["Images/Wedding018.jpg", "Wedding-All.htm", ""]
wedding[19]=["Images/Wedding019.jpg", "Wedding-All.htm", ""]
wedding[20]=["Images/Wedding020.jpg", "Wedding-All.htm", ""]
wedding[21]=["Images/Wedding021.jpg", "Wedding-All.htm", ""]
wedding[22]=["Images/Wedding022.jpg", "Wedding-All.htm", ""]
wedding[23]=["Images/Wedding023.jpg", "Wedding-All.htm", ""]
wedding[24]=["Images/Wedding024.jpg", "Wedding-All.htm", ""]
wedding[25]=["Images/Wedding025.jpg", "Wedding-All.htm", ""]
wedding[26]=["Images/Wedding026.jpg", "Wedding-All.htm", ""]
wedding[27]=["Images/Wedding027.jpg", "Wedding-All.htm", ""]
wedding[28]=["Images/Wedding028.jpg", "Wedding-All.htm", ""]
wedding[29]=["Images/Wedding029.jpg", "Wedding-All.htm", ""]
wedding[30]=["Images/Wedding030.jpg", "Wedding-All.htm", ""]
wedding[31]=["Images/Wedding031.jpg", "Wedding-All.htm", ""]
wedding[32]=["Images/Wedding032.jpg", "Wedding-All.htm", ""]
wedding[33]=["Images/Wedding033.jpg", "Wedding-All.htm", ""]
wedding[34]=["Images/Wedding034.jpg", "Wedding-All.htm", ""]
wedding[35]=["Images/Wedding035.jpg", "Wedding-All.htm", ""]
wedding[36]=["Images/Wedding036.jpg", "Wedding-All.htm", ""]
wedding[37]=["Images/Wedding037.jpg", "Wedding-All.htm", ""]
wedding[38]=["Images/Wedding038.jpg", "Wedding-All.htm", ""]
wedding[39]=["Images/Wedding039.jpg", "Wedding-All.htm", ""]
wedding[40]=["Images/Wedding040.jpg", "Wedding-All.htm", ""]
wedding[41]=["Images/Wedding041.jpg", "Wedding-All.htm", ""]
wedding[42]=["Images/Wedding042.jpg", "Wedding-All.htm", ""]
wedding[43]=["Images/Wedding043.jpg", "Wedding-All.htm", ""]
wedding[44]=["Images/Wedding044.jpg", "Wedding-All.htm", ""]
wedding[45]=["Images/Wedding045.jpg", "Wedding-All.htm", ""]
wedding[46]=["Images/Wedding046.jpg", "Wedding-All.htm", ""]
wedding[47]=["Images/Wedding047.jpg", "Wedding-All.htm", ""]
wedding[48]=["Images/Wedding048.jpg", "Wedding-All.htm", ""]
wedding[49]=["Images/Wedding049.jpg", "Wedding-All.htm", ""]
wedding[50]=["Images/Wedding050.jpg", "Wedding-All.htm", ""]
wedding[51]=["Images/Wedding051.jpg", "Wedding-All.htm", ""]
wedding[52]=["Images/Wedding052.jpg", "Wedding-All.htm", ""]
wedding[53]=["Images/Wedding053.jpg", "Wedding-All.htm", ""]
wedding[54]=["Images/Wedding054.jpg", "Wedding-All.htm", ""]
wedding[55]=["Images/Wedding055.jpg", "Wedding-All.htm", ""]
wedding[56]=["Images/Wedding056.jpg", "Wedding-All.htm", ""]
wedding[57]=["Images/Wedding057.jpg", "Wedding-All.htm", ""]
wedding[58]=["Images/Wedding058.jpg", "Wedding-All.htm", ""]
wedding[59]=["Images/Wedding059.jpg", "Wedding-All.htm", ""]
wedding[60]=["Images/Wedding060.jpg", "Wedding-All.htm", ""]
wedding[61]=["Images/Wedding061.jpg", "Wedding-All.htm", ""]
wedding[62]=["Images/Wedding062.jpg", "Wedding-All.htm", ""]
wedding[63]=["Images/Wedding063.jpg", "Wedding-All.htm", ""]
wedding[64]=["Images/Wedding064.jpg", "Wedding-All.htm", ""]
wedding[65]=["Images/Wedding065.jpg", "Wedding-All.htm", ""]
wedding[66]=["Images/Wedding066.jpg", "Wedding-All.htm", ""]
wedding[67]=["Images/Wedding067.jpg", "Wedding-All.htm", ""]
wedding[68]=["Images/Wedding068.jpg", "Wedding-All.htm", ""]
wedding[69]=["Images/Wedding069.jpg", "Wedding-All.htm", ""]
wedding[70]=["Images/Wedding070.jpg", "Wedding-All.htm", ""]
wedding[71]=["Images/Wedding071.jpg", "Wedding-All.htm", ""]
wedding[72]=["Images/Wedding072.jpg", "Wedding-All.htm", ""]
wedding[73]=["Images/Wedding073.jpg", "Wedding-All.htm", ""]
wedding[74]=["Images/Wedding074.jpg", "Wedding-All.htm", ""]
wedding[75]=["Images/Wedding075.jpg", "Wedding-All.htm", ""]
wedding[76]=["Images/Wedding076.jpg", "Wedding-All.htm", ""]
wedding[77]=["Images/Wedding077.jpg", "Wedding-All.htm", ""]
wedding[78]=["Images/Wedding078.jpg", "Wedding-All.htm", ""]
wedding[79]=["Images/Wedding079.jpg", "Wedding-All.htm", ""]
wedding[80]=["Images/Wedding080.jpg", "Wedding-All.htm", ""]
wedding[81]=["Images/Wedding081.jpg", "Wedding-All.htm", ""]
wedding[82]=["Images/Wedding082.jpg", "Wedding-All.htm", ""]
wedding[83]=["Images/Wedding083.jpg", "Wedding-All.htm", ""]
wedding[84]=["Images/Wedding084.jpg", "Wedding-All.htm", ""]
wedding[85]=["Images/Wedding085.jpg", "Wedding-All.htm", ""]
wedding[86]=["Images/Wedding086.jpg", "Wedding-All.htm", ""]
wedding[87]=["Images/Wedding087.jpg", "Wedding-All.htm", ""]
wedding[88]=["Images/Wedding088.jpg", "Wedding-All.htm", ""]
wedding[89]=["Images/Wedding089.jpg", "Wedding-All.htm", ""]
wedding[90]=["Images/Wedding090.jpg", "Wedding-All.htm", ""]
wedding[91]=["Images/Wedding091.jpg", "Wedding-All.htm", ""]
wedding[92]=["Images/Wedding092.jpg", "Wedding-All.htm", ""]
wedding[93]=["Images/Wedding093.jpg", "Wedding-All.htm", ""]
wedding[94]=["Images/Wedding094.jpg", "Wedding-All.htm", ""]
wedding[95]=["Images/Wedding095.jpg", "Wedding-All.htm", ""]
wedding[96]=["Images/Wedding096.jpg", "Wedding-All.htm", ""]
wedding[96]=["Images/Wedding097.jpg", "Wedding-All.htm", ""]
wedding[96]=["Images/Wedding098.jpg", "Wedding-All.htm", ""]
wedding[96]=["Images/Wedding099.jpg", "Wedding-All.htm", ""]

var potraits=new Array()
potraits[00]=["Images/Portrait00.jpg", "", ""]
potraits[01]=["Images/Portrait01.jpg", "", ""]
potraits[02]=["Images/Portrait02.jpg", "", ""]
potraits[03]=["Images/Portrait03.jpg", "", ""]
potraits[04]=["Images/Portrait04.jpg", "", ""]
potraits[05]=["Images/Portrait05.jpg", "", ""]
potraits[06]=["Images/Portrait06.jpg", "", ""]
potraits[07]=["Images/Portrait07.jpg", "", ""]
potraits[08]=["Images/Portrait08.jpg", "", ""]
potraits[09]=["Images/Portrait09.jpg", "", ""]
potraits[10]=["Images/Portrait10.jpg", "", ""]
potraits[11]=["Images/Portrait11.jpg", "", ""]
potraits[12]=["Images/Portrait12.jpg", "", ""]
potraits[13]=["Images/Portrait13.jpg", "", ""]
potraits[14]=["Images/Portrait14.jpg", "", ""]
potraits[15]=["Images/Portrait15.jpg", "", ""]
potraits[16]=["Images/Portrait16.jpg", "", ""]
potraits[17]=["Images/Portrait17.jpg", "", ""]
potraits[18]=["Images/Portrait18.jpg", "", ""]
potraits[19]=["Images/Portrait19.jpg", "", ""]
potraits[20]=["Images/Portrait20.jpg", "", ""]
potraits[21]=["Images/Portrait21.jpg", "", ""]
potraits[22]=["Images/Portrait22.jpg", "", ""]
potraits[23]=["Images/Portrait23.jpg", "", ""]
potraits[24]=["Images/Portrait24.jpg", "", ""]

var boudoir=new Array()
boudoir[00]=["Images/Boudoir/Naomi01.jpg", "", ""]
boudoir[01]=["Images/Boudoir/Naomi02.jpg", "", ""]
boudoir[02]=["Images/Boudoir/Naomi03.jpg", "", ""]
boudoir[03]=["Images/Boudoir/Naomi04.jpg", "", ""]
boudoir[04]=["Images/Boudoir/Naomi05.jpg", "", ""]
boudoir[05]=["Images/Boudoir/Naomi06.jpg", "", ""]
boudoir[06]=["Images/Boudoir/Naomi07.jpg", "", ""]
boudoir[07]=["Images/Boudoir/Naomi08.jpg", "", ""]
boudoir[08]=["Images/Boudoir/Naomi09.jpg", "", ""]
boudoir[09]=["Images/Boudoir/Naomi10.jpg", "", ""]
boudoir[10]=["Images/Boudoir/Naomi11.jpg", "", ""]
boudoir[11]=["Images/Boudoir/Naomi12.jpg", "", ""]
boudoir[12]=["Images/Boudoir/Naomi13.jpg", "", ""]
boudoir[13]=["Images/Boudoir/Naomi14.jpg", "", ""]
boudoir[14]=["Images/Boudoir/Naomi15.jpg", "", ""]

var fadebgcolor="Black"

////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()
}