window.thumbnails = {};
															thumbnails[1090537] = clik.newPhoto({"id":1090537,"src":"Yoshikeiweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"<b>Winter 2007, Yosemite National Park<\/b>","height":188});
															thumbnails[7245408] = clik.newPhoto({"id":7245408,"src":"pleinairVCity_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":126,"caption":"","height":130});
															thumbnails[7246083] = clik.newPhoto({"id":7246083,"src":"fluidtwoheader2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":47});
															thumbnails[7823239] = clik.newPhoto({"id":7823239,"src":"headcloseBWweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":130});
															thumbnails[7823325] = clik.newPhoto({"id":7823325,"src":"stillife2_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":120,"caption":"","height":130});
															thumbnails[7823602] = clik.newPhoto({"id":7823602,"src":"orchardheader1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":47});
															thumbnails[8056142] = clik.newPhoto({"id":8056142,"src":"BrandyCreekhome_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":129,"caption":"","height":130});
															thumbnails[8109356] = clik.newPhoto({"id":8109356,"src":"limantourheader1_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":47});
															thumbnails[8845854] = clik.newPhoto({"id":8845854,"src":"Bridalveilweb_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":127,"caption":"","height":130});
															thumbnails[8845850] = clik.newPhoto({"id":8845850,"src":"TroutNFweb_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8845850.html","width":126,"caption":"Trout Stream","height":130});
															thumbnails[8845851] = clik.newPhoto({"id":8845851,"src":"BridalveilNFweb_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8845851.html","width":126,"caption":"Bridalveil","height":130});
															thumbnails[8320676] = clik.newPhoto({"id":8320676,"src":"Limantour1web_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8320676.html","width":130,"caption":"Limantour Marsh","height":130});
															thumbnails[8320686] = clik.newPhoto({"id":8320686,"src":"Limantour2web_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8320686.html","width":130,"caption":"Limantour (two)","height":130});
															thumbnails[8026821] = clik.newPhoto({"id":8026821,"src":"Waterways1web_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8026821.html","width":130,"caption":"Water View One","height":128});
															thumbnails[8056139] = clik.newPhoto({"id":8056139,"src":"BrandyCreekweb_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8056139.html","width":129,"caption":"Brandy Creek","height":130});
															thumbnails[8300765] = clik.newPhoto({"id":8300765,"src":"goldhill1web_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8300765.html","width":130,"caption":"Gold Hill","height":130});
															thumbnails[8300766] = clik.newPhoto({"id":8300766,"src":"goldhill2web_thumb.jpg","galleries_id":431040,"server_id":1,"link":"photo_8300766.html","width":130,"caption":"Gold Hill (two)","height":129});
															thumbnails[8995248] = clik.newPhoto({"id":8995248,"src":"winterbouquetweb1_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_8995248.html","width":130,"caption":"Red and Copper, oil on panel, 16\" x 20\"","height":109});
															thumbnails[4425000] = clik.newPhoto({"id":4425000,"src":"copperandpinkweb_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_4425000.html","width":130,"caption":"Copper and Pink, private collection, oil","height":99});
															thumbnails[8125096] = clik.newPhoto({"id":8125096,"src":"Limantourweb1_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_8125096.html","width":130,"caption":"Limantour Beach, Pt. Reyes, 24","height":103});
															thumbnails[2777881] = clik.newPhoto({"id":2777881,"src":"Shasta1_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_2777881.html","width":130,"caption":"Shasta Bally, oil, 9 x 12","height":97});
															thumbnails[3377035] = clik.newPhoto({"id":3377035,"src":"SeptAgainweb_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_3377035.html","width":130,"caption":"September Again, oil ","height":160});
															thumbnails[314783] = clik.newPhoto({"id":314783,"src":"orchidseason_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_314783.html","width":130,"caption":"Orchid Season, acrylic on paper","height":163});
															thumbnails[8125155] = clik.newPhoto({"id":8125155,"src":"ShastaBallytwo_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_8125155.html","width":130,"caption":"Shasta Bally (Two), oil, 24","height":103});
															thumbnails[7447539] = clik.newPhoto({"id":7447539,"src":"ChinoCanyonweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_7447539.html","width":130,"caption":"Chino Canyon, oil, 12 x 16","height":105});
															thumbnails[8026660] = clik.newPhoto({"id":8026660,"src":"Mauistudyweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_8026660.html","width":130,"caption":"Color Study of Maui, 9x12, ","height":101});
															thumbnails[590240] = clik.newPhoto({"id":590240,"src":"RosesOct30_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_590240.html","width":130,"caption":"Roses, Oct. 30, acrylic","height":197});
															thumbnails[7568552] = clik.newPhoto({"id":7568552,"src":"Morning-Star_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_7568552.html","width":130,"caption":"Morning Star, oil on panel,         12 x 16","height":101});
															thumbnails[7823056] = clik.newPhoto({"id":7823056,"src":"orchardaprilweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_7823056.html","width":130,"caption":"One Moment in April, oil on panel, 12","height":97});
															thumbnails[590247] = clik.newPhoto({"id":590247,"src":"littlefallbunch_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_590247.html","width":130,"caption":"Little Fall Bunch SOLD, acrylic on paper","height":95});
															thumbnails[590252] = clik.newPhoto({"id":590252,"src":"SeptSun1_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_590252.html","width":130,"caption":"September Sun SOLD, Oil on canvas","height":167});
															thumbnails[949233] = clik.newPhoto({"id":949233,"src":"Bokay_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_949233.html","width":130,"caption":"Flore en Fuchsia SOLD, acrylic on paper","height":189});
															thumbnails[1496751] = clik.newPhoto({"id":1496751,"src":"07medEml_thumb.jpg","galleries_id":26798,"server_id":1,"link":"photo_1496751.html","width":130,"caption":"SOLD Silent Exuberance, prints on paper available","height":187});
															thumbnails[8552700] = clik.newPhoto({"id":8552700,"src":"9_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_8552700.html","width":99,"caption":"Summer Flows Along, 6.5' x 5', oil on canvas","height":130});
															thumbnails[5643704] = clik.newPhoto({"id":5643704,"src":"summerforestweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_5643704.html","width":130,"caption":"Summer Forest, oil on panel,  11 x 14","height":100});
															thumbnails[6478189] = clik.newPhoto({"id":6478189,"src":"rippleweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6478189.html","width":130,"caption":"Fluid Dynamics (one),","height":155});
															thumbnails[1338442] = clik.newPhoto({"id":1338442,"src":"PathtoRiver_thumb2.jpg","galleries_id":26796,"server_id":1,"link":"photo_1338442.html","width":130,"caption":"Path to the River, oil, 16 x 12","height":170});
															thumbnails[1575309] = clik.newPhoto({"id":1575309,"src":"AfternoonTCooksweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_1575309.html","width":130,"caption":"Inner Courtyard, Summer Afternoon, oil on panel, 9 x 12","height":101});
															thumbnails[5473172] = clik.newPhoto({"id":5473172,"src":"SoShoreweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_5473172.html","width":130,"caption":"South Shore, Whiskeytown Lake, oil , 12 x 12","height":128});
															thumbnails[314670] = clik.newPhoto({"id":314670,"src":"cottonwoodranch1_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_314670.html","width":130,"caption":"Cottonwood Ranch oil 24 x 20","height":94});
															thumbnails[2252351] = clik.newPhoto({"id":2252351,"src":"CamdenHseweb_1_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_2252351.html","width":130,"caption":"Camden House,  oil, 16 x 20","height":103});
															thumbnails[6481036] = clik.newPhoto({"id":6481036,"src":"FluidTwoweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6481036.html","width":130,"caption":"Fluid Dynamics (two)","height":162});
															thumbnails[314675] = clik.newPhoto({"id":314675,"src":"elriog_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_314675.html","width":130,"caption":"El Rio, oil, 18 x 24","height":176});
															thumbnails[6516659] = clik.newPhoto({"id":6516659,"src":"FluidThree_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6516659.html","width":130,"caption":"Fluid Dynamics (three)","height":164});
															thumbnails[949234] = clik.newPhoto({"id":949234,"src":"widepond_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_949234.html","width":130,"caption":"Domain of the Frog -  SOLD,  Acrylic,  15 x 22","height":88});
															thumbnails[5500673] = clik.newPhoto({"id":5500673,"src":"MySanJacintos_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_5500673.html","width":130,"caption":"San Jacintos,  oil, 5 x 7, SOLD","height":86});
															thumbnails[7506275] = clik.newPhoto({"id":7506275,"src":"FluidFourweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_7506275.html","width":89,"caption":"Fluid Dynamics (four)","height":130});
															thumbnails[314680] = clik.newPhoto({"id":314680,"src":"willowreflections_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_314680.html","width":130,"caption":"Reflections and Beach Willows - SOLD,  oil, 20 x 16","height":163});
															thumbnails[6499210] = clik.newPhoto({"id":6499210,"src":"FluidStudyweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6499210.html","width":130,"caption":"Fluid Study","height":160});
															thumbnails[6886715] = clik.newPhoto({"id":6886715,"src":"MercedSpringweb_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_6886715.html","width":130,"caption":"Spring Rush, oil on canvas, 14 x 18, SOLD","height":106});
															thumbnails[314685] = clik.newPhoto({"id":314685,"src":"vangogrove_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_314685.html","width":130,"caption":"Van Gogh's Grove SOLD, PRINTS AVAIL , 12 X 16","height":96});
															thumbnails[1337933] = clik.newPhoto({"id":1337933,"src":"WhiskLakeDaybreakmed_thumb.jpg","galleries_id":26796,"server_id":1,"link":"photo_1337933.html","width":130,"caption":"Daybreak, Whiskeytown Lake SOLD, oil, 12 x 12","height":130});
															thumbnails[6552294] = clik.newPhoto({"id":6552294,"src":"AquaticLife_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6552294.html","width":130,"caption":"Aquatic Life","height":171});
															thumbnails[7032512] = clik.newPhoto({"id":7032512,"src":"islandlifeweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_7032512.html","width":130,"caption":"Island Life","height":167});
															thumbnails[6552209] = clik.newPhoto({"id":6552209,"src":"RiparianEdges_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6552209.html","width":130,"caption":"River Side","height":155});
															thumbnails[6998624] = clik.newPhoto({"id":6998624,"src":"CentralCoastweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6998624.html","width":130,"caption":"Central Coast","height":174});
															thumbnails[6552384] = clik.newPhoto({"id":6552384,"src":"CityviewTwoweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6552384.html","width":130,"caption":"CityView (two)","height":129});
															thumbnails[6552202] = clik.newPhoto({"id":6552202,"src":"treesweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6552202.html","width":130,"caption":"Light through Trees","height":131});
															thumbnails[6998574] = clik.newPhoto({"id":6998574,"src":"Nympheaoneweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6998574.html","width":130,"caption":"Nymphea (one),","height":186});
															thumbnails[6998575] = clik.newPhoto({"id":6998575,"src":"Nympheatwoweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6998575.html","width":130,"caption":"Nymphea (two)","height":186});
															thumbnails[7245974] = clik.newPhoto({"id":7245974,"src":"SpacerOne_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_7245974.html","width":130,"caption":"","height":130});
															thumbnails[8300814] = clik.newPhoto({"id":8300814,"src":"SpacerOne_CA856701-1EC9-D45B-1C56FC4997E030B8_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_8300814.html","width":130,"caption":"","height":130});
															thumbnails[7032327] = clik.newPhoto({"id":7032327,"src":"SeaIslandweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_7032327.html","width":130,"caption":"Sea Island, Summer Visit,","height":98});
															thumbnails[7032430] = clik.newPhoto({"id":7032430,"src":"ForestTransitionweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_7032430.html","width":130,"caption":"Forest Transitions","height":98});
															thumbnails[8932632] = clik.newPhoto({"id":8932632,"src":"ThePassweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932632.html","width":102,"caption":"The Pass, oil on canvas","height":130});
															thumbnails[8125113] = clik.newPhoto({"id":8125113,"src":"wetlands2011web_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_8125113.html","width":130,"caption":"Wetlands 2011","height":96});
															thumbnails[8932635] = clik.newPhoto({"id":8932635,"src":"AndreasCnynWinterweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932635.html","width":130,"caption":"Andreas Canyon in Winter, oil","height":106});
															thumbnails[8932653] = clik.newPhoto({"id":8932653,"src":"IntheSanBernardinosweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932653.html","width":130,"caption":"In the San Bernardinos, oil","height":102});
															thumbnails[8932656] = clik.newPhoto({"id":8932656,"src":"doshermanasweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932656.html","width":104,"caption":"Dos Hermanas, oil","height":130});
															thumbnails[7679371] = clik.newPhoto({"id":7679371,"src":"Andreaswebunframed_39E1D8C3-1EC9-DFB6-0959A0F8BA680BDF_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_7679371.html","width":128,"caption":"Andreas Canyon, oil on panel","height":130});
															thumbnails[7325278] = clik.newPhoto({"id":7325278,"src":"ThousPalmsOasisweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_7325278.html","width":130,"caption":"Thousand Palms Oasis, oil","height":126});
															thumbnails[6869860] = clik.newPhoto({"id":6869860,"src":"CanyonnearGeigerSummitweb_3A9F395C-1EC9-DFB6-09643E8F7C39EF0D_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_6869860.html","width":130,"caption":"Canyon near Geiger Summit, oil","height":104});
															thumbnails[6869866] = clik.newPhoto({"id":6869866,"src":"ComstockMiningIncweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_6869866.html","width":130,"caption":"Donovan Site, oil on panel","height":104});
															thumbnails[7746558] = clik.newPhoto({"id":7746558,"src":"freesiaweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_7746558.html","width":130,"caption":"Freesia, oil on panel","height":129});
															thumbnails[6998644] = clik.newPhoto({"id":6998644,"src":"Inthepresenceweb1_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6998644.html","width":130,"caption":"In the Presence, SOLD","height":97});
															thumbnails[8932613] = clik.newPhoto({"id":8932613,"src":"primaveraweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932613.html","width":101,"caption":"Primavera, oil on panel","height":130});
															thumbnails[6787993] = clik.newPhoto({"id":6787993,"src":"Bayviewframed1_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6787993.html","width":130,"caption":"Bayview, SOLD","height":130});
															thumbnails[8932518] = clik.newPhoto({"id":8932518,"src":"rosesenpleinairweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932518.html","width":130,"caption":"Roses en Plein Air, oil on panel","height":103});
															thumbnails[6552372] = clik.newPhoto({"id":6552372,"src":"CityViewOneweb_thumb.jpg","galleries_id":356906,"server_id":1,"link":"photo_6552372.html","width":130,"caption":"CityView (one) SOLD","height":133});
															thumbnails[8932514] = clik.newPhoto({"id":8932514,"src":"CalifbldgBalboaPark_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932514.html","width":99,"caption":"California Building (Balboa Park), oil on canvas, 16\" x 12\"","height":130});
															thumbnails[6853662] = clik.newPhoto({"id":6853662,"src":"MtDiabloOct10web_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_6853662.html","width":130,"caption":"Mt. Diablo, Oct. 2010, oil on panel","height":102});
															thumbnails[6854181] = clik.newPhoto({"id":6854181,"src":"Canalwatersweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_6854181.html","width":130,"caption":"Canal Waters, oil on panel","height":131});
															thumbnails[4429395] = clik.newPhoto({"id":4429395,"src":"ShadowofWillowsweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_4429395.html","width":130,"caption":"Shadow of the Willows,oil on panel","height":97});
															thumbnails[4784674] = clik.newPhoto({"id":4784674,"src":"MolokaifromNapililg_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_4784674.html","width":130,"caption":"Molokai from Napili, oil","height":94});
															thumbnails[5729231] = clik.newPhoto({"id":5729231,"src":"ElmiraOrchardMarchweb2_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_5729231.html","width":130,"caption":"Elmira Next Exit, oil on panel","height":63});
															thumbnails[5944414] = clik.newPhoto({"id":5944414,"src":"bruinranchpondweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_5944414.html","width":130,"caption":"Rocky Hillside, Bruin Ranch, oil,10x8","height":165});
															thumbnails[5473372] = clik.newPhoto({"id":5473372,"src":"BenMarBridges_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_5473372.html","width":130,"caption":"Ben Mar Bridgeoil on panel, 10x20","height":64});
															thumbnails[1496764] = clik.newPhoto({"id":1496764,"src":"YoloWillowsweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_1496764.html","width":130,"caption":"Yolo Bypass Willows,oil on panel,9x12","height":97});
															thumbnails[758434] = clik.newPhoto({"id":758434,"src":"CnnlHuichicaweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_758434.html","width":130,"caption":"Channel at Huichica, oil on panel, 12x9","height":178});
															thumbnails[1090208] = clik.newPhoto({"id":1090208,"src":"TriniMtnVista1_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_1090208.html","width":130,"caption":"Trinity Mountains Vista, oil on panel, 12x9","height":163});
															thumbnails[3014695] = clik.newPhoto({"id":3014695,"src":"CrystalCreekFallsweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_3014695.html","width":130,"caption":"Crystal Creek Falls, oil, 16x12","height":176});
															thumbnails[314704] = clik.newPhoto({"id":314704,"src":"morninggrove_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_314704.html","width":130,"caption":"Morning at the Grove,oil,11x14","height":163});
															thumbnails[359700] = clik.newPhoto({"id":359700,"src":"Chesapeake_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_359700.html","width":130,"caption":"SOLD: Chesapeake Bay, Tilghman Island","height":97});
															thumbnails[758455] = clik.newPhoto({"id":758455,"src":"Huichicaweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_758455.html","width":130,"caption":"SOLD: Huichica Creek ","height":129});
															thumbnails[314710] = clik.newPhoto({"id":314710,"src":"creeksunday_3A042F6C-1EC9-DFB6-091D18BEDD745837_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_314710.html","width":102,"caption":"SOLD: Creek Sunday","height":130});
															thumbnails[1096039] = clik.newPhoto({"id":1096039,"src":"LowerClrCrkweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_1096039.html","width":130,"caption":"Collection: The National Park Service, Lower Clear Creek, Stormy Afternoon","height":97});
															thumbnails[8932521] = clik.newPhoto({"id":8932521,"src":"sepiatonestudyweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_8932521.html","width":98,"caption":"SOLD: Sepia Study ","height":130});
															thumbnails[1926520] = clik.newPhoto({"id":1926520,"src":"Yubareflectweb_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_1926520.html","width":130,"caption":"Private Collection: Reflecting along the Yuba River","height":178});
															thumbnails[314697] = clik.newPhoto({"id":314697,"src":"diablofrombeniciavu_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_314697.html","width":130,"caption":"Private Collection:  Diablo from Benicia","height":103});
															thumbnails[314708] = clik.newPhoto({"id":314708,"src":"sloughranch_thumb.jpg","galleries_id":26797,"server_id":1,"link":"photo_314708.html","width":130,"caption":"Slough House Ranch, oil, 11","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[26797] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Plein Air Paintings","link":"gallery_26797.html","maxRecords":0.0,"photoIDs":[8932632.0,8932635.0,8932653.0,8932656.0,7679371.0,7325278.0,6869860.0,6869866.0,7746558.0,8932613.0,8932518.0,8932514.0,6853662.0,6854181.0,4429395.0,4784674.0,5729231.0,5944414.0,5473372.0,1496764.0,758434.0,1090208.0,3014695.0,314704.0,359700.0,758455.0,314710.0,1096039.0,8932521.0,1926520.0,314697.0,314708.0],"skipIndex":0,"section_code":"gallery","featured_images":758455.0,"id":26797,"singleSection":false});				  						galleries[26796] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Landscapes","link":"gallery_26796.html","maxRecords":0.0,"photoIDs":[8125096.0,2777881.0,8125155.0,7447539.0,8026660.0,7568552.0,7823056.0,5643704.0,1338442.0,1575309.0,5473172.0,314670.0,2252351.0,314675.0,949234.0,5500673.0,314680.0,6886715.0,314685.0,1337933.0],"skipIndex":0,"section_code":"gallery","featured_images":7447539.0,"id":26796,"singleSection":false});				  						galleries[431040] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Small Works","link":"gallery_431040.html","maxRecords":0.0,"photoIDs":[8845850.0,8845851.0,8320676.0,8320686.0,8026821.0,8056139.0,8300765.0,8300766.0],"skipIndex":0,"section_code":"gallery","featured_images":8845850.0,"id":431040,"singleSection":false});				  						galleries[356906] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Abstractions from Life","link":"gallery_356906.html","maxRecords":0.0,"photoIDs":[8552700.0,6478189.0,6481036.0,6516659.0,7506275.0,6499210.0,6552294.0,7032512.0,6552209.0,6998624.0,6552384.0,6552202.0,6998574.0,6998575.0,7245974.0,8300814.0,7032327.0,7032430.0,8125113.0,6998644.0,6787993.0,6552372.0],"skipIndex":0,"section_code":"gallery","featured_images":6552372.0,"id":356906,"singleSection":false});				  						galleries[26798] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Still-life and Floral Subjects","link":"gallery_26798.html","maxRecords":0.0,"photoIDs":[8995248.0,4425000.0,3377035.0,314783.0,590240.0,590247.0,590252.0,949233.0,1496751.0],"skipIndex":0,"section_code":"gallery","featured_images":590240.0,"id":26798,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8932632';
imageSets[2] = '8845850,7447539,590240,6552372,758455';
imageSets[3] = '8109356';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/lynnezart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/lynnezart/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = (backgrounds || photos || {})[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Lynne Cunningham, Artist: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

