window.thumbnails = {};
															thumbnails[8930516] = clik.newPhoto({"id":8930516,"src":"-1250_copy_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":168});
															thumbnails[1994182] = clik.newPhoto({"id":1994182,"src":"STONEHENGE_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1994182.html","width":130,"caption":"STONEHENGE","height":65});
															thumbnails[1994744] = clik.newPhoto({"id":1994744,"src":"-1250 copy1_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1994744.html","width":130,"caption":"CANDLELIGHT","height":168});
															thumbnails[1994831] = clik.newPhoto({"id":1994831,"src":"AUTUMN SEA_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1994831.html","width":130,"caption":"AUTUMN SEA","height":87});
															thumbnails[1994849] = clik.newPhoto({"id":1994849,"src":"5  stones-1527_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1994849.html","width":130,"caption":"PEBBLES","height":130});
															thumbnails[1994862] = clik.newPhoto({"id":1994862,"src":"Calla Lilies_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1994862.html","width":130,"caption":"CALLA LILIES","height":164});
															thumbnails[1994866] = clik.newPhoto({"id":1994866,"src":"EBBING LIGHT_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1994866.html","width":130,"caption":"EBBING LIGHT","height":155});
															thumbnails[1994872] = clik.newPhoto({"id":1994872,"src":"Hadrian's Wall_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_1994872.html","width":130,"caption":"HADRIAN'S WALL","height":157});
															thumbnails[1995233] = clik.newPhoto({"id":1995233,"src":"IMG_0259 beach_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1995233.html","width":130,"caption":"BEACH","height":87});
															thumbnails[1995238] = clik.newPhoto({"id":1995238,"src":"_MG_0623 01_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1995238.html","width":130,"caption":"SPINAKER TOWER","height":185});
															thumbnails[1995239] = clik.newPhoto({"id":1995239,"src":"-1358 11_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_1995239.html","width":130,"caption":"NYMANS HOUSE","height":85});
															thumbnails[1995240] = clik.newPhoto({"id":1995240,"src":"Castlerigg Stone Circle_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_1995240.html","width":130,"caption":"CASTLERIGG STONE CIRCLE","height":87});
															thumbnails[1995243] = clik.newPhoto({"id":1995243,"src":"BOULOGNE'S CATHEDRAL OF NOTRE-DAME, VIEWED FROM THE RUE DE LILLE_thumb..jpg","galleries_id":133682,"server_id":32,"link":"photo_1995243.html","width":130,"caption":"BOULOGNES CATHEDRAL OF NOTRE DAME VIEWED FROM THE 'RUE DE LILLE'","height":184});
															thumbnails[1995246] = clik.newPhoto({"id":1995246,"src":"DOG GONE_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1995246.html","width":130,"caption":"DOGGONE","height":87});
															thumbnails[1995252] = clik.newPhoto({"id":1995252,"src":"IMG_0011 B-W_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_1995252.html","width":130,"caption":"CANARY WHARF","height":195});
															thumbnails[1995256] = clik.newPhoto({"id":1995256,"src":"The Hyacinth_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1995256.html","width":130,"caption":"BLUE STAR HYACINTH ","height":195});
															thumbnails[1995262] = clik.newPhoto({"id":1995262,"src":"orchid 1-68 1_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1995262.html","width":130,"caption":"ORCHIDS","height":195});
															thumbnails[1995271] = clik.newPhoto({"id":1995271,"src":"IMG_1063_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_1995271.html","width":130,"caption":"WINCHESTER CATHEDRAL SLYPE","height":195});
															thumbnails[1995272] = clik.newPhoto({"id":1995272,"src":"FRAGILE FLOWERS_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1995272.html","width":130,"caption":"FRAGILE FLOWERS","height":201});
															thumbnails[1995274] = clik.newPhoto({"id":1995274,"src":"Picture 056_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_1995274.html","width":130,"caption":"DICED,SLICED OR GRATED","height":176});
															thumbnails[1995476] = clik.newPhoto({"id":1995476,"src":"LORNA DOONE BRIDGE_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1995476.html","width":130,"caption":"LORNA DOONE BRIDGE","height":221});
															thumbnails[1995490] = clik.newPhoto({"id":1995490,"src":"SEASCAPE(000)_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_1995490.html","width":130,"caption":"SEASCAPE","height":30});
															thumbnails[1995517] = clik.newPhoto({"id":1995517,"src":"p a new-_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_1995517.html","width":130,"caption":"PRAYING","height":222});
															thumbnails[2016225] = clik.newPhoto({"id":2016225,"src":"Capsicum Splash_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_2016225.html","width":130,"caption":"CAPSICUM SPLASH","height":199});
															thumbnails[2016226] = clik.newPhoto({"id":2016226,"src":"Water Glass_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_2016226.html","width":130,"caption":"WATER GLASS","height":196});
															thumbnails[3205254] = clik.newPhoto({"id":3205254,"src":"IMG_0095_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_3205254.html","width":130,"caption":"EGYPT-UPON BRIGHTON","height":203});
															thumbnails[3205257] = clik.newPhoto({"id":3205257,"src":"Pansy pattern_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_3205257.html","width":130,"caption":"PANSY PATTERN","height":130});
															thumbnails[3205261] = clik.newPhoto({"id":3205261,"src":"LORNA DOONE BRIDGE (1)_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_3205261.html","width":130,"caption":"LORNA DOONE BRIDGE","height":222});
															thumbnails[3205265] = clik.newPhoto({"id":3205265,"src":"-1564_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_3205265.html","width":130,"caption":"SPINAKER TOWER< PORTSMOUTH","height":193});
															thumbnails[3205268] = clik.newPhoto({"id":3205268,"src":"church 3_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_3205268.html","width":130,"caption":"St. Marys Church, Walberton, West Sussex","height":94});
															thumbnails[3205271] = clik.newPhoto({"id":3205271,"src":"-1718_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_3205271.html","width":130,"caption":"EL BALCON, SPANE","height":85});
															thumbnails[3205274] = clik.newPhoto({"id":3205274,"src":"-1281_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_3205274.html","width":130,"caption":"FIRE AND ICE","height":171});
															thumbnails[3205279] = clik.newPhoto({"id":3205279,"src":"IMG_0057ll_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_3205279.html","width":130,"caption":"CUTAWAY","height":149});
															thumbnails[3205286] = clik.newPhoto({"id":3205286,"src":"gallery_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_3205286.html","width":130,"caption":"GALLERY","height":92});
															thumbnails[5027492] = clik.newPhoto({"id":5027492,"src":"IMG_2950_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_5027492.html","width":130,"caption":"OYSTERS","height":83});
															thumbnails[5028018] = clik.newPhoto({"id":5028018,"src":"-2254-2_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_5028018.html","width":130,"caption":"WINTER MEADOW","height":70});
															thumbnails[5028043] = clik.newPhoto({"id":5028043,"src":"apple_pod_copy_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_5028043.html","width":130,"caption":"APPLE POD","height":88});
															thumbnails[5029756] = clik.newPhoto({"id":5029756,"src":"cat_-_2-2193_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_5029756.html","width":130,"caption":"GLASS LIGHT","height":195});
															thumbnails[5029794] = clik.newPhoto({"id":5029794,"src":"red__light-2205_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_5029794.html","width":130,"caption":"SPLASH OF RED","height":195});
															thumbnails[5029803] = clik.newPhoto({"id":5029803,"src":"-20741_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_5029803.html","width":130,"caption":"SCAREDY CAT","height":170});
															thumbnails[5029814] = clik.newPhoto({"id":5029814,"src":"IMG_0014_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_5029814.html","width":130,"caption":"E14THE SOUTH COLONNADE E14","height":195});
															thumbnails[5029827] = clik.newPhoto({"id":5029827,"src":"IMG_3031_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_5029827.html","width":130,"caption":"MEG","height":175});
															thumbnails[5029828] = clik.newPhoto({"id":5029828,"src":"IMG_2652-2_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_5029828.html","width":130,"caption":"De la Warr Pavilion, Bexhill, Sussex","height":193});
															thumbnails[5029835] = clik.newPhoto({"id":5029835,"src":"IMG_3094print_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_5029835.html","width":130,"caption":"ROBO-DAUGHTER","height":140});
															thumbnails[5029961] = clik.newPhoto({"id":5029961,"src":"-2244_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_5029961.html","width":130,"caption":"CAUTION CYCLISTS","height":82});
															thumbnails[5029986] = clik.newPhoto({"id":5029986,"src":"cat_-_2-2282-21_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_5029986.html","width":130,"caption":"BARBED","height":179});
															thumbnails[5570573] = clik.newPhoto({"id":5570573,"src":"new_time_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_5570573.html","width":130,"caption":"TIME","height":92});
															thumbnails[5570582] = clik.newPhoto({"id":5570582,"src":"VAL-HALA_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_5570582.html","width":130,"caption":"VAL-HALA","height":67});
															thumbnails[5570843] = clik.newPhoto({"id":5570843,"src":"pyromania_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_5570843.html","width":130,"caption":"PYROMANIA","height":176});
															thumbnails[5570854] = clik.newPhoto({"id":5570854,"src":"_easy_peel_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_5570854.html","width":130,"caption":"EASY PEEL","height":195});
															thumbnails[5570867] = clik.newPhoto({"id":5570867,"src":"ledgers_lane_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_5570867.html","width":130,"caption":"LESDGERS LANE","height":87});
															thumbnails[5571004] = clik.newPhoto({"id":5571004,"src":"beach_and_groyns_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_5571004.html","width":130,"caption":"BEACH AND GROYNS","height":85});
															thumbnails[5571006] = clik.newPhoto({"id":5571006,"src":"groyns_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_5571006.html","width":130,"caption":"GROYNS","height":87});
															thumbnails[6907829] = clik.newPhoto({"id":6907829,"src":"Secret_Intelligence_Service_building_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_6907829.html","width":130,"caption":"Secret Intelligence Service Building","height":87});
															thumbnails[6907844] = clik.newPhoto({"id":6907844,"src":"IMG_4153_tonemapped_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_6907844.html","width":130,"caption":"Lloyd’s Of London","height":177});
															thumbnails[6907856] = clik.newPhoto({"id":6907856,"src":"City_Hall_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_6907856.html","width":130,"caption":"City Hall","height":195});
															thumbnails[6907898] = clik.newPhoto({"id":6907898,"src":"Wobble_Bridge_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_6907898.html","width":130,"caption":"The Not So Wobble Bridge","height":87});
															thumbnails[6907912] = clik.newPhoto({"id":6907912,"src":"IMG_4239_B9E7043E-1D09-001F-99DE338204E85C5C_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_6907912.html","width":130,"caption":"Oops","height":195});
															thumbnails[8598158] = clik.newPhoto({"id":8598158,"src":"one-1_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8598158.html","width":130,"caption":"","height":184});
															thumbnails[8598195] = clik.newPhoto({"id":8598195,"src":"two-1_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8598195.html","width":130,"caption":"","height":92});
															thumbnails[8598196] = clik.newPhoto({"id":8598196,"src":"three-1_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8598196.html","width":130,"caption":"","height":184});
															thumbnails[8598197] = clik.newPhoto({"id":8598197,"src":"four-1_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8598197.html","width":130,"caption":"","height":92});
															thumbnails[8598200] = clik.newPhoto({"id":8598200,"src":"five-1_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8598200.html","width":130,"caption":"","height":92});
															thumbnails[8598203] = clik.newPhoto({"id":8598203,"src":"YVANIA_FINAL_1_copy_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8598203.html","width":130,"caption":"THE FAMOUS FLOATING MOUNTAINS OF YVANIA","height":92});
															thumbnails[8598264] = clik.newPhoto({"id":8598264,"src":"This_Kinddom_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_8598264.html","width":130,"caption":"THIS KINGDOM'S UNDER SIEGE","height":92});
															thumbnails[8598299] = clik.newPhoto({"id":8598299,"src":"IMG_6045_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_8598299.html","width":130,"caption":"WATT'S INVENTION","height":195});
															thumbnails[8598300] = clik.newPhoto({"id":8598300,"src":"In_Remberance_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_8598300.html","width":130,"caption":"IN REMEMBERANCE","height":74});
															thumbnails[8930067] = clik.newPhoto({"id":8930067,"src":"JUST_COLOURS_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_8930067.html","width":130,"caption":"ON THE LINE","height":93});
															thumbnails[8930070] = clik.newPhoto({"id":8930070,"src":"clock_n_drapes_copy_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_8930070.html","width":130,"caption":"TPRRENT OF TIME","height":184});
															thumbnails[8930071] = clik.newPhoto({"id":8930071,"src":"Raggedy_Paper_-4_thumb.jpg","galleries_id":454703,"server_id":32,"link":"photo_8930071.html","width":130,"caption":"","height":98});
															thumbnails[8930084] = clik.newPhoto({"id":8930084,"src":"IMG_4137__2_1_thumb_09E9057D-24E8-5EC4-4F1F302534661607.jpg","galleries_id":133682,"server_id":32,"link":"photo_8930084.html","width":130,"caption":"LONDON 2010","height":196});
															thumbnails[8930136] = clik.newPhoto({"id":8930136,"src":"A_Still_Life_thumb.jpg","galleries_id":133706,"server_id":32,"link":"photo_8930136.html","width":130,"caption":"A STILL LIFE","height":92});
															thumbnails[8930427] = clik.newPhoto({"id":8930427,"src":"IMG_5419_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_8930427.html","width":130,"caption":"JUICY SWEET AND LIGHT","height":195});
															thumbnails[8930429] = clik.newPhoto({"id":8930429,"src":"LONDON_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_8930429.html","width":130,"caption":"REFLECT UPON REFLECTION","height":43});
															thumbnails[8930478] = clik.newPhoto({"id":8930478,"src":"IMG_6045_5_thumb.jpg","galleries_id":133713,"server_id":32,"link":"photo_8930478.html","width":130,"caption":"WATT'S INVENTION b\/w","height":195});
															thumbnails[8930518] = clik.newPhoto({"id":8930518,"src":"The_Cortyard_thumb.jpg","galleries_id":133682,"server_id":32,"link":"photo_8930518.html","width":130,"caption":"THE CORTYARD","height":200});
															thumbnails[1995242] = clik.newPhoto({"id":1995242,"src":"egg timer_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_1995242.html","width":130,"caption":"SANDS OF TIME","height":195});
															thumbnails[1995507] = clik.newPhoto({"id":1995507,"src":"woodland wonderland copy(000)_thumb.jpg","galleries_id":326845,"server_id":32,"link":"photo_1995507.html","width":130,"caption":"WOODLAND WONDERLAND","height":235});
															thumbnails[2007133] = clik.newPhoto({"id":2007133,"src":"01 jan08 artvert1_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007133.html","width":130,"caption":"","height":184});
															thumbnails[1995461] = clik.newPhoto({"id":1995461,"src":"The Grean Band_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_1995461.html","width":130,"caption":"THE GREEN BAND","height":195});
															thumbnails[2007135] = clik.newPhoto({"id":2007135,"src":"02 feb08 horiz1_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007135.html","width":130,"caption":"","height":184});
															thumbnails[1995235] = clik.newPhoto({"id":1995235,"src":"-1432_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_1995235.html","width":130,"caption":"INFINITY","height":78});
															thumbnails[2007257] = clik.newPhoto({"id":2007257,"src":"03 mar08 horiz1_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007257.html","width":130,"caption":"","height":184});
															thumbnails[1995370] = clik.newPhoto({"id":1995370,"src":"Untitled-1_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_1995370.html","width":130,"caption":"UNFINISHED","height":169});
															thumbnails[2007136] = clik.newPhoto({"id":2007136,"src":"04 apr08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007136.html","width":130,"caption":"","height":184});
															thumbnails[2007141] = clik.newPhoto({"id":2007141,"src":"05 may08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007141.html","width":130,"caption":"","height":184});
															thumbnails[2007438] = clik.newPhoto({"id":2007438,"src":"tri frame 05_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_2007438.html","width":130,"caption":"SMOKING","height":92});
															thumbnails[1995253] = clik.newPhoto({"id":1995253,"src":"The Sharp Cut_thumb.jpg","galleries_id":133905,"server_id":32,"link":"photo_1995253.html","width":130,"caption":"PAPER CUT","height":39});
															thumbnails[2007143] = clik.newPhoto({"id":2007143,"src":"06 jun08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007143.html","width":130,"caption":"","height":184});
															thumbnails[2007144] = clik.newPhoto({"id":2007144,"src":"07 jul08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007144.html","width":130,"caption":"","height":184});
															thumbnails[2007149] = clik.newPhoto({"id":2007149,"src":"08 aug08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007149.html","width":130,"caption":"","height":184});
															thumbnails[2007195] = clik.newPhoto({"id":2007195,"src":"09 sep08 arthoriz1_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007195.html","width":130,"caption":"","height":184});
															thumbnails[2007196] = clik.newPhoto({"id":2007196,"src":"10 oct08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007196.html","width":130,"caption":"","height":184});
															thumbnails[2007198] = clik.newPhoto({"id":2007198,"src":"11 nov08 arthoriz_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007198.html","width":130,"caption":"","height":184});
															thumbnails[2007200] = clik.newPhoto({"id":2007200,"src":"12 dec08 artvert_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007200.html","width":130,"caption":"","height":184});
															thumbnails[2007116] = clik.newPhoto({"id":2007116,"src":"00 cover artvert1_thumb.jpg","galleries_id":134507,"server_id":32,"link":"photo_2007116.html","width":130,"caption":"","height":184});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[133905] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"ABSTRACT","link":"gallery_133905.html","maxRecords":0.0,"photoIDs":[5029803.0,5029828.0,8930067.0,1995242.0,1995461.0,1995235.0,1995370.0,2007438.0,1995253.0],"skipIndex":0,"section_code":"gallery","featured_images":"8930067,5029828,5029803,2007438,1995461,1995370,1995253,1995242,1995235","id":133905,"singleSection":false});				  						galleries[326845] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"FANTASY","link":"gallery_326845.html","maxRecords":0.0,"photoIDs":[3205274.0,3205286.0,5029835.0,5570573.0,5570582.0,8598264.0,8598300.0,8930070.0,8930427.0,1995507.0],"skipIndex":0,"section_code":"gallery","featured_images":"8930427,8930070,8598300,8598264,5570582,5570573,5029835,3205286,3205274,1995507","id":326845,"singleSection":false});				  						galleries[133713] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Monochrome","link":"gallery_133713.html","maxRecords":0.0,"photoIDs":[1994872.0,1995239.0,1995240.0,1995252.0,1995271.0,1995517.0,3205254.0,3205261.0,3205265.0,3205268.0,5029756.0,5029814.0,5029827.0,5571004.0,5571006.0,6907829.0,6907844.0,8930478.0],"skipIndex":0,"section_code":"gallery","featured_images":"8930478,6907844,6907829,5571006,5571004,5029827,5029814,5029756,3205268,3205265","id":133713,"singleSection":false});				  						galleries[133706] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Life","link":"gallery_133706.html","maxRecords":0.0,"photoIDs":[1994744.0,1994849.0,1994862.0,1995256.0,1995262.0,1995272.0,1995274.0,2016225.0,2016226.0,3205257.0,3205279.0,5027492.0,5028043.0,5029794.0,5570843.0,5570854.0,6907912.0,8598299.0,8930136.0],"skipIndex":0,"section_code":"gallery","featured_images":"8930136,8598299,6907912,5570854,5570843,5029794,5028043,5027492,3205279,3205257","id":133706,"singleSection":false});				  						galleries[454703] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"YVANIA","link":"gallery_454703.html","maxRecords":0.0,"photoIDs":[8598158.0,8598195.0,8598196.0,8598197.0,8598200.0,8598203.0,8930071.0],"skipIndex":0,"section_code":"gallery","featured_images":8598203,"id":454703,"singleSection":false});				  						galleries[133682] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape","link":"gallery_133682.html","maxRecords":0.0,"photoIDs":[1994182.0,1994831.0,1994866.0,1995233.0,1995238.0,1995243.0,1995246.0,1995476.0,1995490.0,3205271.0,5028018.0,5029961.0,5029986.0,5570867.0,6907856.0,6907898.0,8930084.0,8930429.0,8930518.0],"skipIndex":0,"section_code":"gallery","featured_images":"8930518,8930429,8930084,6907898,6907856,5570867,5029986,5029961,5028018,3205271","id":133682,"singleSection":false});				  						galleries[134507] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CALENDAR","link":"gallery_134507.html","maxRecords":0.0,"photoIDs":[2007133.0,2007135.0,2007257.0,2007136.0,2007141.0,2007143.0,2007144.0,2007149.0,2007195.0,2007196.0,2007198.0,2007200.0,2007116.0],"skipIndex":0,"section_code":"gallery","featured_images":"2007257,2007200,2007198,2007196,2007195,2007149,2007144,2007143,2007141,2007136","id":134507,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '3205286,2016226,2016225,1995274,1995246,1995243,1995240,1995239,1995238,1995233,1994866,1994862,1994849,1994831,1994744,1995235,2007438,1995253';
imageSets[3] = '8930518,8930516,8930478,8930429,8930427,8930136,8930084,8930071,8930070,8930067,8598300,8598299,8598264,8598203,8598200,8598197,8598196,8598195,8598158,6907912,6907898,6907856,6907844,6907829,5571006,5571004,5570867,5570854,5570843,5570582,5570573,5029986,5029961,5029835,5029828,5029827,5029814,5029803,5029794,5029756,5028043,5028018,5027492,3205286,3205279,3205274,3205271,3205268,3205265,3205261';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/daveybaby/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/daveybaby/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 = ' DAVID REES-PESKETT: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
																		temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="reespeskett@btinternet.com">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="reespeskett@btinternet.com">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

