/***********************************************
* Flexi Slideshow- (C) Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
// images 200 x 133

var variableslide=new Array()

//variableslide[x]=["path to image", "OPTIONAL link for image", "OPTIONAL text description (supports HTML tags)"]

variableslide[0]=['img/hh/patio3s.jpg', '', '<br\/><em>Heritage Hall</em> deck and patio.']
variableslide[1]=['img/event/BoFoster-T.jpg', 'rentals/occasion01.html', '<br\/>Gen. M.Y. "Bo" Foster receives <em><a href="rentals/occasion01.html">French Legion of Merit Award</a></em>']
variableslide[2]=['img/hh/tea2.jpg', '', '<br\/><em>Heritage Hall</em> event:<br />The Ladies\' Tea Guild.']
variableslide[3]=['img/hh/tea1.jpg', '', '<br\/><em>Heritage Hall</em> event:<br />Victorian Christmas Tea.']
variableslide[4]=['img/hh/wedding.jpg', 'rentals/tour.shtml', '<br\/><a href="rentals/tour.shtml"><em>Heritage Hall</em></a> set up for another wedding party.']
variableslide[5]=['img/hh/lincoln.jpg', 'rentals/occasion02.html', '<br\/>Heritage Hall was the site for <a href="rentals/occasion02.html">Harry Fritz as Lincoln</a>.']
variableslide[6]=['img/postcards/teepeesMslaT.jpg', 'oldphotos/', '<br\/>A fascinating sample of the state wide historic photos in the <a href="oldphotos/">Svoboda Montana Picture Postcard Collection</a>.']
variableslide[7]=['img/construction/ch.jpg', 'rentals/available.html', '<br\/><span class="notice"><a href="rentals/available.html">Current listing</a></span> of renovated Carriage Houses and other rentals available for affordable versatile work space.']
variableslide[8]=['img/construction/studio05.jpg', 'rentals/adjunct.html', '<br\/>Affordable <a href="rentals/adjunct.html">versatile studios, workshops and storage</a> spaces in carriage houses & lower levels.']
variableslide[9]=['img/treesT.jpg', 'funding/treememorials.html', '<br\/>Honor someone with a <a href="funding/treememorials.html">tree memorial</a> to help rejuvenate the Fort\'s elegant tree-lined streets']
variableslide[10]=['img/watertower.jpg', 'rentals/watertower.html', '<br\/>The historic <a href="rentals/watertower.html">Water Tower</a> enters the information age as a microwave signal broadcaster. Available for lease.']
variableslide[11]=['img/MBPprint.jpg', 'funding/PercivalPrint.html', '<br\/>Mary Beth Percival <a href="funding/PercivalPrint.html">signed and numbered print</a> of Officers\' Row available.']
variableslide[12]=['img/paradeAerialT.jpg', 'campus/parade.html', '<br\/>Explore an <a href="campus/parade.html">aerial view of the campus</a>.']
variableslide[13]=['img/map-T.gif', 'contact', '<br\/>Find the NRHC campus on this detailed <a href="contact/">map of Fort Missoula</a>.']


//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='200px' //set to width of LARGEST image in your slideshow
var slideheight='230px' //set to height of LARGEST iamge in your slideshow, plus any text description
var slidebgcolor='#eee8e0;'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=11000

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById

for (i=0;i<variableslide.length;i++){
var cacheimage=new Image()
cacheimage.src=variableslide[i][0]
}

var currentslide=0

function rotateimages(){
contentcontainer='<center>'
if (variableslide[currentslide][1]!="")
contentcontainer+='<a href="'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="'+variableslide[currentslide][0]+'" border="0" vspace="3">'
if (variableslide[currentslide][1]!="")
contentcontainer+='</a>'
contentcontainer+='</center>'
if (variableslide[currentslide][2]!="")
contentcontainer+=variableslide[currentslide][2]

if (document.layers){
crossrotateobj.document.write(contentcontainer)
crossrotateobj.document.close()
}
else if (ie||dom)
crossrotateobj.innerHTML=contentcontainer
if (currentslide==variableslide.length-1) currentslide=0
else currentslide++
setTimeout("rotateimages()",slidedelay)
}

if (ie||dom)
document.write('<div id="slidedom" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'"></div>')

function start_slider(){
crossrotateobj=dom? document.getElementById("slidedom") : ie? document.all.slidedom : document.slidensmain.document.slidenssub
if (document.layers)
document.slidensmain.visibility="show"
rotateimages()
}

if (ie||dom)
start_slider()
else if (document.layers)
window.onload=start_slider