var ultimateshow=new Array()

//ultimateshow[x]=["path to image", "OPTIONAL link for image", "OPTIONAL link target"]

ultimateshow[0]=['/scott_lenhart__commercial_fishing_boat_dickey_byrd_out_of_half_moon_bay__BW__SSL_9365.jpg', '/portfolio.htm', '_self']
ultimateshow[1]=['/scott_lenhart__manzanita_fractals_1__SSL_9597.jpg', '/portfolio.htm', '_self']
ultimateshow[2]=['/scott_lenhart__aerial_photography__super_custom_home__02_edited__SSL_1044.jpg', '/portfolio.htm', '_self']
ultimateshow[3]=['/scott_lenhart__quiet_night_on_bourbon_street__new_orleans__SSL_2418.jpg', '/portfolio.htm', '_self']
ultimateshow[4]=['/scott_lenhart__serpentine_pine_and_sentinal_dome_overlooking_yosemite_falls__SSL_8484.jpg', '/portfolio.htm', '_self']
ultimateshow[5]=['/scott_lenhart__high_performance_vehicles_in_the_wild__SSL_0112.jpg', '/portfolio.htm', '_self']
ultimateshow[6]=['/scott_lenhart__custom_home_in_carmel_california__SSL_1467.jpg', '/portfolio.htm', '_self']
ultimateshow[7]=['/scott_lenhart__super_custom_homes__hillsborough_estate__SSL_1002.jpg', '/portfolio.htm', '_self']
ultimateshow[8]=['/scott_lenhart__dalmatian_with_beach_bubbles__SSL_5305.jpg', '/portfolio.htm', '_self']
ultimateshow[9]=['/scott_lenhart__portrait_of_a_billionare__virgin_empire_builder_sir_richard_branson__head_shot__SSL_8437.jpg', '/portfolio.htm', '_self']
ultimateshow[10]=['/scott_lenhart__crab_boat_dropping_and_pulling_their_pots__SSL_3708.jpg', '/portfolio.htm', '_self']
ultimateshow[11]=['/scott_lenhart__barack_obama__SSL_5223.jpg', '/portfolio.htm', '_self']
ultimateshow[12]=['/scott_lenhart__death-defying_ride_on_a_surfboard__SSL_2013.jpg', '/portfolio.htm', '_self']
ultimateshow[13]=['/scott_lenhart__full_moon_after_forest_fire__SSL_4829.jpg', '/portfolio.htm', '_self']
ultimateshow[14]=['/scott_lenhart__black_tie_affair__SSL_3110.jpg', '/portfolio.htm', '_self']
ultimateshow[15]=['/scott_lenhart__black_bear_peering_through_the_forest__SSL_8504.jpg', '/portfolio.htm', '_self']
ultimateshow[16]=['/scott_lenhart__jazz_man_david_hardiman_on_the_trumpet__SSL_1117.jpg', '/portfolio.htm', '_self']
ultimateshow[17]=['/scott_lenhart__container_ships_evening_departure_from_san_francisco_bay__SSL_6314.jpg', '/portfolio.htm', '_self']
ultimateshow[18]=['/scott_lenhart__last_few_feet_of_the_new_oakland_bay_bridge__SSL_3577.jpg', '/portfolio.htm', '_self']
ultimateshow[19]=['/scott_lenhart__burlingame_criterium_bike_riders__SSL_9345.jpg', '/portfolio.htm', '_self']
ultimateshow[20]=['/scott_lenhart__r_and_b_great_aaron_neville__SSL_8035.jpg', '/portfolio.htm', '_self']
ultimateshow[21]=['/scott_lenhart__great_arch_on_the_farallon_islands__SSL_8038.jpg', '/portfolio.htm', '_self']
ultimateshow[22]=['/scott_lenhart__earth_meets_the_sea__SSL_9021.jpg', '/portfolio.htm', '_self']
ultimateshow[23]=['/scott_lenhart__a_curlew_races_the_rising_tide__SSL_2416.jpg', '/portfolio.htm', '_self']
ultimateshow[24]=['/scott_lenhart__deer_framed_by_the_moon_on_a_monterey_hillside_SSL_3810.jpg', '/portfolio.htm', '_self']
ultimateshow[25]=['/scott_lenhart__many_layers_of_yosemite__SSL_2354.jpg', '/portfolio.htm', '_self']
ultimateshow[26]=['/scott_lenhart__snowy_banks_of_the_merced_river_in_yosemite_valley__SSL_0148.jpg', '/portfolio.htm', '_self']
ultimateshow[27]=['/scott_lenhart__julianne_hough__SSL_3718.jpg', '/portfolio.htm', '_self']
ultimateshow[28]=['/scott_lenhart__surf_fishing_on_a_late_summer_evening__SSL_4909.jpg', '/portfolio.htm', '_self']
ultimateshow[29]=['/scott_lenhart__oracle_ceo_larry_ellison_head_shot__SSL_5668.jpg', '/portfolio.htm', '_self']
ultimateshow[30]=['/scott_lenhart__fallen_trees_frozen_on_the_bank_of_the_truckee_river__SSL_6511.jpg', '/portfolio.htm', '_self']

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

var slidewidth="969px" //set to width of LARGEST image in your slideshow
var slideheight="644px" //set to height of LARGEST iamge in your slideshow
var slidecycles="continuous" //number of cycles before slideshow stops (ie: "2" or "continous")
var randomorder="yes" //randomize the order in which images are displayed? "yes" or "no"
var preloadimages="yes" //preload images? "yes" or "no"
var slidebgcolor='d0d0d0'

//configure the below variable to determine the delay between image rotations (in miliseconds)
var slidedelay=9696

////Do not edit pass this line////////////////

var ie=document.all
var dom=document.getElementById
var curcycle=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

function rotateimages(){
curcycle=(currentslide==0)? curcycle+1 : curcycle
ultcontainer='<center>'
if (ultimateshowCopy[currentslide][1]!="")
ultcontainer+='<a href="http://www.scottlenhart.com'+ultimateshowCopy[currentslide][1]+'" target="'+ultimateshowCopy[currentslide][2]+'">'
ultcontainer+='<img src="../assets'+ultimateshowCopy[currentslide][0]+'" border="0">'
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)
}

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") : document.all.slidedom
rotateimages()
}

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