/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var fam_variableslide=new Array()

//fam_variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

fam_variableslide[0]=['ads/family/ad1.jpg', '#', '']
fam_variableslide[1]=['ads/family/ad2.jpg', '#', '']
fam_variableslide[2]=['ads/family/ad3.jpg', '#', '']

//configure the below 3 variables to set the dimension/background color of the slideshow

var fam_slidewidth='170px' //set to width of LARGEST image in your slideshow
var fam_slideheight='170px' //set to height of LARGEST iamge in your slideshow, plus any text description
var fam_slidebgcolor='#FFFCF3'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var fam_slidedelay=3000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<fam_variableslide.length;i++){
var fam_cacheimage=new Image()
fam_cacheimage.src=fam_variableslide[i][0]
}

var fam_currentslide=0

function fam_rotateimages(){
fam_contentcontainer='<center>'
if (fam_variableslide[fam_currentslide][1]!="")
fam_contentcontainer+='<a href="'+fam_variableslide[fam_currentslide][1]+'">'
fam_contentcontainer+='<img src="'+fam_variableslide[fam_currentslide][0]+'" border="0" vspace="3">'
if (fam_variableslide[fam_currentslide][1]!="")
fam_contentcontainer+='</a>'
fam_contentcontainer+='</center>'
if (fam_variableslide[fam_currentslide][2]!="")
fam_contentcontainer+=fam_variableslide[fam_currentslide][2]

if (document.layers){
fam_crossrotateobj.document.write(fam_contentcontainer)
fam_crossrotateobj.document.close()
}
else if (ie||dom)
fam_crossrotateobj.innerHTML=fam_contentcontainer
if (fam_currentslide==fam_variableslide.length-1) fam_currentslide=0
else fam_currentslide++
setTimeout("fam_rotateimages()",fam_slidedelay)
}

if (ie||dom)
document.write('<div id="fam_slidedom" style="width:'+fam_slidewidth+';height:'+fam_slideheight+'; background-color:'+fam_slidebgcolor+'"></div>')

function start_slider_fam(){
fam_crossrotateobj=dom? document.getElementById("fam_slidedom") : ie? document.all.fam_slidedom : document.fam_slidensmain.document.fam_slidenssub
if (document.layers)
document.fam_slidensmain.visibility="show"
fam_rotateimages()
}

if (ie||dom)
start_slider_fam()
else if (document.layers)
window.onload=start_slider_fam

/*
</script>

<ilayer id="fam_slidensmain" width=&{fam_slidewidth}; height=&{fam_slideheight}; bgColor=&{fam_slidebgcolor}; visibility=hide><layer id="fam_slidenssub" width=&{fam_slidewidth}; left=0 top=0></layer></ilayer>

<p align="center"><font face="Arial" size="-2">Free DHTML scripts provided by<br>
<a href="http://www.dynamicdrive.com">Dynamic Drive</a></font></p>
*/