// JavaScript Document



/***********************************************
* Flexi Slideshow- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var variableslide=new Array()

//variableslide[x]=['path to image', 'OPTIONAL link for image', 'OPTIONAL text description (supports HTML tags)']

variableslide[0]=['../images/slideshow/slide20.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_4/index.php#c', ''] //, 'Geographical Information Systems']
variableslide[1]=['../images/slideshow/slide19.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_1/priority_2.php#c', ''] //, 'NARCCAP']
variableslide[2]=['../images/slideshow/slide2.gif', 'http://www.nar.ucar.edu/2008/ESSL/catalog/tiimes/guenther.php', ''] //, 'BEACHON-SRM: Pinebark Beetle']
variableslide[3]=['../images/slideshow/slide3.gif', 'http://www.tiimes.ucar.edu/beachon/srm/', ''] //, 'BEACHON-SRM']
variableslide[4]=['../images/slideshow/slide7.gif', 'http://www.nar.ucar.edu/2008/ESSL/catalog/tiimes/karl.php', ''] //, 'Plant Painkillers']
variableslide[5]=['../images/slideshow/slide8.gif',  'http://www.tiimes.ucar.edu/bgs/', ''] //, 'BGS']
variableslide[6]=['../images/slideshow/slide14.gif', 'http://www.nar.ucar.edu/2008/ESSL/catalog/tiimes/stephens.php', ''] //, 'HIPPO']
variableslide[7]=['../images/slideshow/slide12.gif', 'http://www.nar.ucar.edu/2008/ESSL/sp2/#03', ''] //, 'Global & Regional Water Cycle']
variableslide[8]=['../images/slideshow/slide28.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_1.php#f', ''] //, 'SWANS']
variableslide[9]=['../images/slideshow/slide10.gif', 'http://www.nar.ucar.edu/2008/ESSL/sp2/#22', ''] //, 'Fine Mesh Land Model']
variableslide[10]=['../images/slideshow/slide9.gif', 'http://www.nar.ucar.edu/2008/ESSL/catalog/tiimes/kleypas.php', ''] //, 'Coral Reef Studies']
variableslide[11]=['../images/slideshow/slide21.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_1.php#c', ''] //,'Marine Fisheries Vulnerability & Adaptations']
variableslide[12]=['../images/slideshow/slide22.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_2.php#p', ''] //, 'Extreme Precipitation Events']
variableslide[13]=['../images/slideshow/slide23.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_3/index.php#a', ''] //, 'Coastal Hazards & Sustainability']
variableslide[14]=['../images/slideshow/slide11.gif', 'http://www.nar.ucar.edu/2008/ESSL/sp1/#04', ''] //, 'UTLS']
variableslide[15]=['../images/slideshow/slide13.gif', 'http://utls.tiimes.ucar.edu/science/dc3.html', ''] //, 'DC3']
variableslide[16]=['../images/slideshow/slide15.gif', 'http://www.tiimes.ucar.edu/new-fy09.html#kenya', ''] //, 'Science & Education in Kenya']
variableslide[17]=['../images/slideshow/slide16.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_3/index.php#b', ''] //, 'WAS*IS']
variableslide[18]=['../images/slideshow/slide17.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_1.php#e', ''] //, 'Societal Impacts Program']
variableslide[19]=['../images/slideshow/slide27.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_4/index.php#d', ''] //, 'Impact Assessment']
variableslide[20]=['../images/slideshow/slide18.gif', 'http://www.isse.ucar.edu/risa/', ''] //, 'RISA']
variableslide[21]=['../images/slideshow/slide24.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_1.php#a', ''] //, 'Climate & Health']
variableslide[22]=['../images/slideshow/slide25.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_1.php#g', ''] //, 'Weather & Climate Impacts Assessment']
variableslide[23]=['../images/slideshow/slide26.gif', 'http://www.nar.ucar.edu/2008/RAL/goal_2/priority_1.php#d', ''] //, 'Climate-Relevant Information']



//configure the below 3 variables to set the dimension/background color of the slideshow

var slidewidth='340px' //set to width of LARGEST image in your slideshow
var slideheight='175px' //set to height of LARGEST image in your slideshow, plus any text description
var slidebgcolor='#E6F7E4'   //was #FFFFFF E6F7E4


//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=6000






////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">'
/*
contentcontainer+='<a href="../scripts/'+variableslide[currentslide][1]+'">'
contentcontainer+='<img src="../scripts/'+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

