

    // Flexible Image Slideshow- By JavaScriptKit.com (http://www.javascriptkit.com)
    // For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/
    // This notice must stay intact for use
    
    // ------------- FIRST SLIDE SHOW ---------------- 
    
    var ultimateshow=new Array()

    //ultimateshow[x]=["path to image", "OPTIONAL link for image", "OPTIONAL link target", "text"]
    ultimateshow[0]=['images/tucson/earthday003.jpg', '', '', '']
    ultimateshow[1]=['images/tucson/earthday004.jpg', '', '', '']    
    ultimateshow[2]=['images/tucson/earthday005.jpg', '', '', '']    
    ultimateshow[3]=['images/tucson/earthday006.jpg', '', '', '']
    ultimateshow[4]=['images/tucson/earthday007.jpg', '', '', '']
    ultimateshow[5]=['images/tucson/earthday008.jpg', '', '', '']
    ultimateshow[6]=['images/tucson/earthday009.jpg', '', '', '']
    ultimateshow[7]=['images/tucson/earthday010.jpg', '', '', '']

    //configure the below 3 variables to set the dimension/background color of the slideshow

    //var slidewidth="193px" //set to width of LARGEST image in your slideshow
    //var slideheight="147px" //set to height of LARGEST iamge in your slideshow
    var slidewidth="450" //set to width of LARGEST image in your slideshow
    var slideheight="450" //set to height of LARGEST iamge in your slideshow
    var slidecycles="continuous" //number of cycles before slideshow stops (ie: "2" or "continous")
    var randomorder="no" //randomize the order in which images are displayed? "yes" or "no"
    var preloadimages="yes" //preload images? "yes" or "no"
    //var slidebgcolor='#562810'
    var slidebgcolor='#fffccf'
   // var slidebgcolor='#005600'
//---------------------------------------------------------------------------------------//
    //configure the below variable to determine the delay between image rotations (in miliseconds)
  //  var slidedelay=6000
    var slidedelay=10000
    
    ////Do not edit pass this line////////////////

    var ie=document.all
    var dom=document.getElementById
    var curcycle=0
    var curcycle2=0

    if (preloadimages=="yes"){
      for (i=0;i<ultimateshow.length;i++){
        var cacheimage=new Image()
        cacheimage.src=ultimateshow[i][0]
      }
    }

    var currentslide=0

//    function randomize(targetarray){
//      ultimateshowCopy=new Array()
//      var the_one
//      var z=0
//      while (z<targetarray.length){
//         the_one=Math.floor(Math.random()*targetarray.length)
//         if (targetarray[the_one]!="_selected!"){
//            ultimateshowCopy[z]=targetarray[the_one]
//            targetarray[the_one]="_selected!"
//            z++
//         }
//      }
//    }

//    if (randomorder=="yes")
//      randomize(ultimateshow)
//    else

    ultimateshowCopy=ultimateshow
    
 // ------------- FIRST SLIDE SHOW ---------------- // 
    function rotateimages(){
      curcycle=(currentslide==0)? curcycle+1 : curcycle
      ultcontainer='<center>'
      if (ultimateshowCopy[currentslide][1]!="")
         ultcontainer+='<br><a class="small" valign="middle" href="'+ultimateshowCopy[currentslide][1]+'" target="'+ultimateshowCopy[currentslide][2]+'">'
      ultcontainer+='<img src="'+ultimateshowCopy[currentslide][0]+'" border="0" align="middle"><br>'+ultimateshowCopy[currentslide][3]
      if (ultimateshowCopy[currentslide][1]!="")
         ultcontainer+='</a>'
      ultcontainer+='</center>'
      if (ie||dom)
         crossrotateobj.innerHTML=ultcontainer
      if (currentslide==ultimateshow.length-1) currentslide=0
      else currentslide++
      if (curcycle==parseInt(slidecycles) && currentslide==0)
         return
      setTimeout("rotateimages()",slidedelay)
    }

// --------------- CODE TO PLACE IN BODY OF HTML - FIRST SLIDE SHOW ---------------- //
//  if (ie||dom)
//     document.write('<td id="slidedom" class="smalltext" style="width:'+slidewidth+';height:'+slideheight+'; background-color:'+slidebgcolor+'; vertical-align: middle; text-align: center"></td>')

//    function start_slider(){
//       crossrotateobj=dom? document.getElementById("slidedom") : document.all.slidedom
//       rotateimages()
//    }

//    if (ie||dom)
//       window.onload=start_slider

