window.thumbnails = {};
															thumbnails[5542938] = clik.newPhoto({"id":5542938,"src":"A6_Small_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5542939] = clik.newPhoto({"id":5542939,"src":"A22_Small_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":87});
															thumbnails[5543910] = clik.newPhoto({"id":5543910,"src":"BOOK_PICTURE_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":92});
															thumbnails[5544512] = clik.newPhoto({"id":5544512,"src":"1-1_Small_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":118});
															thumbnails[5508252] = clik.newPhoto({"id":5508252,"src":"29th_Birthday_036_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5508252.html","width":130,"caption":"Twin Santas","height":98});
															thumbnails[5508255] = clik.newPhoto({"id":5508255,"src":"Image_003-2_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5508255.html","width":130,"caption":"A Wing and Flair","height":191});
															thumbnails[5508265] = clik.newPhoto({"id":5508265,"src":"Image_039-2_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5508265.html","width":130,"caption":"Golden Kiss","height":87});
															thumbnails[5519005] = clik.newPhoto({"id":5519005,"src":"Image_136-1_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519005.html","width":130,"caption":"One Hour","height":195});
															thumbnails[5519011] = clik.newPhoto({"id":5519011,"src":"Image_311-1_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519011.html","width":130,"caption":"Esme","height":195});
															thumbnails[5519021] = clik.newPhoto({"id":5519021,"src":"Image_337_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519021.html","width":130,"caption":"Fazed","height":130});
															thumbnails[5519025] = clik.newPhoto({"id":5519025,"src":"3-4-05--91-2_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519025.html","width":130,"caption":"Dare To Be Different","height":196});
															thumbnails[5519029] = clik.newPhoto({"id":5519029,"src":"A5_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519029.html","width":130,"caption":"Editing of a copyright free image","height":87});
															thumbnails[5519031] = clik.newPhoto({"id":5519031,"src":"A20itled-1_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519031.html","width":130,"caption":"Editing of a copyright-free image","height":87});
															thumbnails[5519035] = clik.newPhoto({"id":5519035,"src":"Image_011-1_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519035.html","width":130,"caption":"A Palm of Petals","height":87});
															thumbnails[5519041] = clik.newPhoto({"id":5519041,"src":"Portfolio_062-2sky_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519041.html","width":130,"caption":"The Penshaw Princess","height":87});
															thumbnails[5519047] = clik.newPhoto({"id":5519047,"src":"PORTFOLIO_051-3_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519047.html","width":130,"caption":"Neigh and Bouquet","height":130});
															thumbnails[5519056] = clik.newPhoto({"id":5519056,"src":"montage_19_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519056.html","width":130,"caption":"Every Man's Dream","height":163});
															thumbnails[5519059] = clik.newPhoto({"id":5519059,"src":"montage_8_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519059.html","width":130,"caption":"Flower Reflection","height":184});
															thumbnails[5519061] = clik.newPhoto({"id":5519061,"src":"montage_5_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519061.html","width":130,"caption":"A Bodice Montage","height":195});
															thumbnails[5519065] = clik.newPhoto({"id":5519065,"src":"Image_329-4_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519065.html","width":130,"caption":"A Paris Wedding","height":195});
															thumbnails[5519070] = clik.newPhoto({"id":5519070,"src":"Image_297_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519070.html","width":130,"caption":"Art with a Heart","height":87});
															thumbnails[5519076] = clik.newPhoto({"id":5519076,"src":"Image_212-4_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519076.html","width":130,"caption":"Caerlaverock Castle","height":87});
															thumbnails[5519153] = clik.newPhoto({"id":5519153,"src":"Image_159-1_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519153.html","width":130,"caption":"Lover's Ruin","height":196});
															thumbnails[5519155] = clik.newPhoto({"id":5519155,"src":"Image_142-1_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519155.html","width":130,"caption":"Skirt Swish","height":195});
															thumbnails[5519159] = clik.newPhoto({"id":5519159,"src":"Image_135_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519159.html","width":130,"caption":"The Bubble Bride","height":195});
															thumbnails[5519163] = clik.newPhoto({"id":5519163,"src":"Image_128-2_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519163.html","width":130,"caption":"Arched Art","height":195});
															thumbnails[5519167] = clik.newPhoto({"id":5519167,"src":"Image_125_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519167.html","width":130,"caption":"The Perfect Day","height":196});
															thumbnails[5519169] = clik.newPhoto({"id":5519169,"src":"Image_117-2_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519169.html","width":130,"caption":"Catch the Bouquet...ooh, Ball!","height":87});
															thumbnails[5519171] = clik.newPhoto({"id":5519171,"src":"Image_089_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519171.html","width":130,"caption":"Open Door Visage","height":195});
															thumbnails[5519173] = clik.newPhoto({"id":5519173,"src":"Image_058-1_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519173.html","width":130,"caption":"Zak","height":130});
															thumbnails[5519176] = clik.newPhoto({"id":5519176,"src":"Image_038-2_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519176.html","width":130,"caption":"Petals in Curls","height":130});
															thumbnails[5519183] = clik.newPhoto({"id":5519183,"src":"Image_037_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519183.html","width":130,"caption":"Lover's Lament","height":87});
															thumbnails[5519186] = clik.newPhoto({"id":5519186,"src":"Image_022_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519186.html","width":130,"caption":"Tight Squeeze","height":70});
															thumbnails[5519194] = clik.newPhoto({"id":5519194,"src":"Image_022-1_Small_thumb.jpg","galleries_id":310222,"server_id":5,"link":"photo_5519194.html","width":130,"caption":"Champagne Quaffing!","height":130});
															thumbnails[5519246] = clik.newPhoto({"id":5519246,"src":"Untitled-18_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519246.html","width":130,"caption":"Paris Postcard","height":87});
															thumbnails[5519253] = clik.newPhoto({"id":5519253,"src":"Picture_286-2_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519253.html","width":130,"caption":"Mark of Genius","height":196});
															thumbnails[5519266] = clik.newPhoto({"id":5519266,"src":"Live_8_093-As_Darkness_Falls_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519266.html","width":130,"caption":"Live 8 Lines","height":87});
															thumbnails[5519274] = clik.newPhoto({"id":5519274,"src":"Picture_050-BW_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519274.html","width":130,"caption":"The Gorgeous Emma","height":196});
															thumbnails[5519865] = clik.newPhoto({"id":5519865,"src":"wraith_001_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519865.html","width":130,"caption":"Floral Esme","height":87});
															thumbnails[5519869] = clik.newPhoto({"id":5519869,"src":"wraith_003_Small_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5519869.html","width":130,"caption":"Jack Attack","height":195});
															thumbnails[5544633] = clik.newPhoto({"id":5544633,"src":"dreamboat_thumb.jpg","galleries_id":310223,"server_id":5,"link":"photo_5544633.html","width":130,"caption":"Dream Boat","height":87});
															thumbnails[5529049] = clik.newPhoto({"id":5529049,"src":"Lens_Cover_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529049.html","width":130,"caption":"","height":171});
															thumbnails[5529052] = clik.newPhoto({"id":5529052,"src":"prom_mag_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529052.html","width":130,"caption":"","height":171});
															thumbnails[5529055] = clik.newPhoto({"id":5529055,"src":"esme_mag_cover_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529055.html","width":130,"caption":"","height":171});
															thumbnails[5529057] = clik.newPhoto({"id":5529057,"src":"Jack_Esme_Mag_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529057.html","width":130,"caption":"","height":171});
															thumbnails[5529061] = clik.newPhoto({"id":5529061,"src":"Crazy_Stunts_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529061.html","width":130,"caption":"","height":171});
															thumbnails[5529062] = clik.newPhoto({"id":5529062,"src":"Dirty_Tricks_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529062.html","width":130,"caption":"","height":171});
															thumbnails[5529068] = clik.newPhoto({"id":5529068,"src":"christening_mag_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529068.html","width":130,"caption":"","height":171});
															thumbnails[5529072] = clik.newPhoto({"id":5529072,"src":"qk_mag_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529072.html","width":130,"caption":"","height":171});
															thumbnails[5529076] = clik.newPhoto({"id":5529076,"src":"Golf_Magazine_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529076.html","width":130,"caption":"","height":171});
															thumbnails[5529097] = clik.newPhoto({"id":5529097,"src":"My_Child_Mag_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529097.html","width":130,"caption":"","height":171});
															thumbnails[5529119] = clik.newPhoto({"id":5529119,"src":"Woman_Magazine_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529119.html","width":130,"caption":"","height":171});
															thumbnails[5529125] = clik.newPhoto({"id":5529125,"src":"Bride_Small_thumb.jpg","galleries_id":313250,"server_id":5,"link":"photo_5529125.html","width":130,"caption":"","height":171});
															thumbnails[5484220] = clik.newPhoto({"id":5484220,"src":"Image_003-5_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5484220.html","width":130,"caption":"Tyne Bomb","height":86});
															thumbnails[5484221] = clik.newPhoto({"id":5484221,"src":"Image_043-2_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5484221.html","width":130,"caption":"Stripped Pride","height":86});
															thumbnails[5508267] = clik.newPhoto({"id":5508267,"src":"Image_056_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5508267.html","width":130,"caption":"Captivated","height":87});
															thumbnails[5519197] = clik.newPhoto({"id":5519197,"src":"Copy_2_of_DSC_0154-2_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519197.html","width":130,"caption":"Sun set Little Pet","height":87});
															thumbnails[5519200] = clik.newPhoto({"id":5519200,"src":"Copy_of_DSC_0163-7_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519200.html","width":130,"caption":"The Big Feel","height":87});
															thumbnails[5519202] = clik.newPhoto({"id":5519202,"src":"DSC_0162-2_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519202.html","width":130,"caption":"Sunset Seaside","height":87});
															thumbnails[5519204] = clik.newPhoto({"id":5519204,"src":"Image_004-4_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519204.html","width":130,"caption":"The Rust Range","height":87});
															thumbnails[5519222] = clik.newPhoto({"id":5519222,"src":"Image_090-2_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519222.html","width":130,"caption":"Warped Witton","height":87});
															thumbnails[5519223] = clik.newPhoto({"id":5519223,"src":"Image_222-3_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519223.html","width":130,"caption":"Saltburn Sidecar","height":87});
															thumbnails[5519226] = clik.newPhoto({"id":5519226,"src":"Image_228-1_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519226.html","width":130,"caption":"Victorian Visions","height":195});
															thumbnails[5519230] = clik.newPhoto({"id":5519230,"src":"Image_363_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519230.html","width":130,"caption":"Looking Out to Sea","height":87});
															thumbnails[5519233] = clik.newPhoto({"id":5519233,"src":"Image_412-7_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519233.html","width":130,"caption":"A Sky's Nest","height":87});
															thumbnails[5519235] = clik.newPhoto({"id":5519235,"src":"Image_413-5_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519235.html","width":130,"caption":"Snow Rigging","height":195});
															thumbnails[5519237] = clik.newPhoto({"id":5519237,"src":"Image_470-8_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519237.html","width":130,"caption":"Blue Ice","height":87});
															thumbnails[5519239] = clik.newPhoto({"id":5519239,"src":"Untitled-8_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519239.html","width":130,"caption":"Branson Mansion?","height":87});
															thumbnails[5519243] = clik.newPhoto({"id":5519243,"src":"DSC_0157-6_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519243.html","width":130,"caption":"Hard Cloud","height":87});
															thumbnails[5519244] = clik.newPhoto({"id":5519244,"src":"Image_307-1_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519244.html","width":130,"caption":"Paris on Champagne!","height":195});
															thumbnails[5519248] = clik.newPhoto({"id":5519248,"src":"Image_027_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519248.html","width":130,"caption":"Floating Fish","height":87});
															thumbnails[5519249] = clik.newPhoto({"id":5519249,"src":"Image_096-2_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519249.html","width":130,"caption":"Whitby Sole","height":87});
															thumbnails[5519876] = clik.newPhoto({"id":5519876,"src":"wraith_008_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519876.html","width":130,"caption":"Pretty Pasta","height":130});
															thumbnails[5519877] = clik.newPhoto({"id":5519877,"src":"wraith_007_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519877.html","width":130,"caption":"Cruise Views","height":195});
															thumbnails[5519881] = clik.newPhoto({"id":5519881,"src":"wraith_009_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519881.html","width":130,"caption":"A Venice Vision","height":168});
															thumbnails[5519891] = clik.newPhoto({"id":5519891,"src":"wraith_014-1_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519891.html","width":130,"caption":"The Trifle Tower","height":195});
															thumbnails[5519893] = clik.newPhoto({"id":5519893,"src":"wraith_016_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519893.html","width":130,"caption":"Cheryl Cole's Hole","height":82});
															thumbnails[5519896] = clik.newPhoto({"id":5519896,"src":"wraith_017_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519896.html","width":130,"caption":"Sage Rage","height":87});
															thumbnails[5519898] = clik.newPhoto({"id":5519898,"src":"wraith_018_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519898.html","width":130,"caption":"Pastel Passway","height":87});
															thumbnails[5519901] = clik.newPhoto({"id":5519901,"src":"wraith_019_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519901.html","width":130,"caption":"Evening Shopping","height":87});
															thumbnails[5519905] = clik.newPhoto({"id":5519905,"src":"wraith_020_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519905.html","width":130,"caption":"It Does Mean Something","height":87});
															thumbnails[5519907] = clik.newPhoto({"id":5519907,"src":"wraith_021_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519907.html","width":130,"caption":"Millenium Squint","height":87});
															thumbnails[5519910] = clik.newPhoto({"id":5519910,"src":"wraith_022_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519910.html","width":130,"caption":"Flour Power","height":87});
															thumbnails[5519915] = clik.newPhoto({"id":5519915,"src":"wraith_026_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519915.html","width":130,"caption":"The Bay Lights","height":87});
															thumbnails[5519921] = clik.newPhoto({"id":5519921,"src":"wraith_024-1_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519921.html","width":130,"caption":"On a Clear Day","height":87});
															thumbnails[5519923] = clik.newPhoto({"id":5519923,"src":"wraith_025-4_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519923.html","width":130,"caption":"Magenta Grey","height":196});
															thumbnails[5519927] = clik.newPhoto({"id":5519927,"src":"wraith_004_Small_thumb.jpg","galleries_id":312628,"server_id":5,"link":"photo_5519927.html","width":130,"caption":"Lady in a Flap","height":195});
															thumbnails[5529014] = clik.newPhoto({"id":5529014,"src":"angel_cleaning_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529014.html","width":130,"caption":"Angel Dusting","height":84});
															thumbnails[5529025] = clik.newPhoto({"id":5529025,"src":"baltic_workmen_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529025.html","width":130,"caption":"Baltic Backs","height":110});
															thumbnails[5529026] = clik.newPhoto({"id":5529026,"src":"baltic_burning-1_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529026.html","width":130,"caption":"The Baltic Burn","height":111});
															thumbnails[5529030] = clik.newPhoto({"id":5529030,"src":"Graffiti_Emma_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529030.html","width":130,"caption":"Urban Emma","height":90});
															thumbnails[5529033] = clik.newPhoto({"id":5529033,"src":"Tyne_Bomb-1_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529033.html","width":130,"caption":"Tyne Bomb Block","height":94});
															thumbnails[5529036] = clik.newPhoto({"id":5529036,"src":"washing_the_bridge-2_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529036.html","width":130,"caption":"Slog on the Tyne","height":98});
															thumbnails[5529039] = clik.newPhoto({"id":5529039,"src":"view_of_a_bridge-1_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529039.html","width":130,"caption":"Bridge Block","height":94});
															thumbnails[5529041] = clik.newPhoto({"id":5529041,"src":"cinema_darren_helen_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529041.html","width":130,"caption":"Promotion Potion-<br>\r\nEmail your image to appear on the billboard","height":89});
															thumbnails[5529046] = clik.newPhoto({"id":5529046,"src":"tyne_trio-1_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529046.html","width":130,"caption":"Tritanic","height":87});
															thumbnails[5529065] = clik.newPhoto({"id":5529065,"src":"rain-1_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529065.html","width":130,"caption":"The Umbrella Fella","height":101});
															thumbnails[5529087] = clik.newPhoto({"id":5529087,"src":"jo_wanted_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529087.html","width":130,"caption":"Personalize a Wanted Poster<br>\r\n-Email your image","height":103});
															thumbnails[5529179] = clik.newPhoto({"id":5529179,"src":"whitby_goth-2_thumb.jpg","galleries_id":313251,"server_id":5,"link":"photo_5529179.html","width":130,"caption":"Whitby Goth Weekend -<br>\r\nEmail your own image to appear here","height":98});
															thumbnails[5981697] = clik.newPhoto({"id":5981697,"src":"Image_132-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981697.html","width":130,"caption":"","height":87});
															thumbnails[5981698] = clik.newPhoto({"id":5981698,"src":"Image_084-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981698.html","width":130,"caption":"","height":98});
															thumbnails[5981699] = clik.newPhoto({"id":5981699,"src":"A26_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981699.html","width":130,"caption":"","height":87});
															thumbnails[5981701] = clik.newPhoto({"id":5981701,"src":"Image_012_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981701.html","width":130,"caption":"","height":130});
															thumbnails[5981702] = clik.newPhoto({"id":5981702,"src":"Image_015-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981702.html","width":130,"caption":"","height":196});
															thumbnails[5981703] = clik.newPhoto({"id":5981703,"src":"Image_031-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981703.html","width":130,"caption":"","height":195});
															thumbnails[5981706] = clik.newPhoto({"id":5981706,"src":"Image_045-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981706.html","width":130,"caption":"","height":130});
															thumbnails[5981707] = clik.newPhoto({"id":5981707,"src":"Image_046-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981707.html","width":130,"caption":"","height":130});
															thumbnails[5981708] = clik.newPhoto({"id":5981708,"src":"Image_094-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981708.html","width":130,"caption":"","height":87});
															thumbnails[5981709] = clik.newPhoto({"id":5981709,"src":"Image_122-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981709.html","width":130,"caption":"","height":87});
															thumbnails[5981710] = clik.newPhoto({"id":5981710,"src":"Image_114_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981710.html","width":130,"caption":"","height":195});
															thumbnails[5981712] = clik.newPhoto({"id":5981712,"src":"Image_139_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981712.html","width":130,"caption":"","height":195});
															thumbnails[5981713] = clik.newPhoto({"id":5981713,"src":"Image_160-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981713.html","width":130,"caption":"","height":172});
															thumbnails[5981715] = clik.newPhoto({"id":5981715,"src":"Image_164-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981715.html","width":130,"caption":"","height":130});
															thumbnails[5981716] = clik.newPhoto({"id":5981716,"src":"Image_181-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981716.html","width":130,"caption":"","height":195});
															thumbnails[5981717] = clik.newPhoto({"id":5981717,"src":"Image_185-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981717.html","width":130,"caption":"","height":130});
															thumbnails[5981729] = clik.newPhoto({"id":5981729,"src":"Image_264-4_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981729.html","width":130,"caption":"","height":161});
															thumbnails[5981730] = clik.newPhoto({"id":5981730,"src":"Image_364-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981730.html","width":130,"caption":"","height":87});
															thumbnails[5981740] = clik.newPhoto({"id":5981740,"src":"Picture_001-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981740.html","width":130,"caption":"","height":196});
															thumbnails[5981742] = clik.newPhoto({"id":5981742,"src":"Picture_221-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981742.html","width":130,"caption":"","height":87});
															thumbnails[5981743] = clik.newPhoto({"id":5981743,"src":"Picture_203-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981743.html","width":130,"caption":"","height":130});
															thumbnails[5981745] = clik.newPhoto({"id":5981745,"src":"Image_039-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981745.html","width":130,"caption":"","height":197});
															thumbnails[5981746] = clik.newPhoto({"id":5981746,"src":"Image_192-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981746.html","width":130,"caption":"","height":195});
															thumbnails[5981748] = clik.newPhoto({"id":5981748,"src":"Montage_1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981748.html","width":130,"caption":"","height":184});
															thumbnails[5981751] = clik.newPhoto({"id":5981751,"src":"montage_34_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981751.html","width":130,"caption":"","height":163});
															thumbnails[5981755] = clik.newPhoto({"id":5981755,"src":"A11_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981755.html","width":130,"caption":"","height":87});
															thumbnails[5981756] = clik.newPhoto({"id":5981756,"src":"Image_328-4_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981756.html","width":130,"caption":"","height":195});
															thumbnails[5981757] = clik.newPhoto({"id":5981757,"src":"Image_251-4_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981757.html","width":130,"caption":"","height":87});
															thumbnails[5981762] = clik.newPhoto({"id":5981762,"src":"Picture_289-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981762.html","width":130,"caption":"","height":87});
															thumbnails[5981766] = clik.newPhoto({"id":5981766,"src":"Image_126-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981766.html","width":130,"caption":"","height":195});
															thumbnails[5981767] = clik.newPhoto({"id":5981767,"src":"Montage2_3_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981767.html","width":130,"caption":"","height":87});
															thumbnails[5981769] = clik.newPhoto({"id":5981769,"src":"montage_5_Small_AB1E575B-24E8-5EC4-4F8445DC3DF979E8_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981769.html","width":130,"caption":"","height":195});
															thumbnails[5981825] = clik.newPhoto({"id":5981825,"src":"A9_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981825.html","width":130,"caption":"","height":87});
															thumbnails[5981827] = clik.newPhoto({"id":5981827,"src":"A5_Small_AB1F8ADC-24E8-5EC4-4F76D26AD3AAC5CA_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981827.html","width":130,"caption":"","height":87});
															thumbnails[5981828] = clik.newPhoto({"id":5981828,"src":"Image_183_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981828.html","width":130,"caption":"","height":198});
															thumbnails[5981830] = clik.newPhoto({"id":5981830,"src":"Image_142-1_Small_AB20E127-24E8-5EC4-4F3AC4FC5BBC6E5A_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981830.html","width":130,"caption":"","height":195});
															thumbnails[5981833] = clik.newPhoto({"id":5981833,"src":"Image_233-3_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981833.html","width":130,"caption":"","height":87});
															thumbnails[5981834] = clik.newPhoto({"id":5981834,"src":"Image_16_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981834.html","width":130,"caption":"","height":130});
															thumbnails[5981837] = clik.newPhoto({"id":5981837,"src":"Image_298_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981837.html","width":130,"caption":"","height":87});
															thumbnails[5981839] = clik.newPhoto({"id":5981839,"src":"Image_011-1_Small_AB23AD3B-24E8-5EC4-4F231C4F107F608E_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981839.html","width":130,"caption":"","height":87});
															thumbnails[5981841] = clik.newPhoto({"id":5981841,"src":"Image_148-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981841.html","width":130,"caption":"","height":87});
															thumbnails[5981842] = clik.newPhoto({"id":5981842,"src":"Image_212-4_Small_AB24FE55-24E8-5EC4-4FCB7A908D6D9B4C_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981842.html","width":130,"caption":"","height":87});
															thumbnails[5981843] = clik.newPhoto({"id":5981843,"src":"Image_13_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981843.html","width":130,"caption":"","height":87});
															thumbnails[5981845] = clik.newPhoto({"id":5981845,"src":"Image_303_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981845.html","width":130,"caption":"","height":130});
															thumbnails[5981847] = clik.newPhoto({"id":5981847,"src":"Image_352-2_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981847.html","width":130,"caption":"","height":195});
															thumbnails[5981859] = clik.newPhoto({"id":5981859,"src":"A6_Small_AB27D815-24E8-5EC4-4F1B2E261C05735A_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5981859.html","width":130,"caption":"","height":87});
															thumbnails[5982229] = clik.newPhoto({"id":5982229,"src":"Image_251-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5982229.html","width":130,"caption":"","height":195});
															thumbnails[5982231] = clik.newPhoto({"id":5982231,"src":"Image_003_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5982231.html","width":130,"caption":"","height":130});
															thumbnails[5982232] = clik.newPhoto({"id":5982232,"src":"A4-1_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5982232.html","width":130,"caption":"","height":87});
															thumbnails[5982588] = clik.newPhoto({"id":5982588,"src":"Image_329-3_Small_thumb.jpg","galleries_id":337162,"server_id":5,"link":"photo_5982588.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[313250] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Magazine Covers","link":"section375338.html","maxRecords":0.0,"photoIDs":[5529049.0,5529052.0,5529055.0,5529057.0,5529061.0,5529062.0,5529068.0,5529072.0,5529076.0,5529097.0,5529119.0,5529125.0],"skipIndex":0,"section_code":"section375338","featured_images":5529125.0,"id":313250,"singleSection":true});				  						galleries[337162] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings","link":"section403314.html","maxRecords":0.0,"photoIDs":[5981697.0,5981698.0,5981699.0,5981701.0,5981702.0,5981703.0,5981706.0,5981707.0,5981708.0,5981709.0,5981710.0,5981712.0,5981713.0,5981715.0,5981716.0,5981717.0,5981729.0,5981730.0,5981740.0,5981742.0,5981743.0,5981745.0,5981746.0,5981748.0,5981751.0,5981755.0,5981756.0,5981757.0,5981762.0,5981766.0,5981767.0,5981769.0,5981825.0,5981827.0,5981828.0,5981830.0,5981833.0,5981834.0,5981837.0,5981839.0,5981841.0,5981842.0,5981843.0,5981845.0,5981847.0,5981859.0,5982229.0,5982231.0,5982232.0,5982588.0],"skipIndex":0,"section_code":"section403314","featured_images":"5982588,5982232,5982231,5982229,5981859,5981847,5981845,5981843,5981842,5981841","id":337162,"singleSection":true});				  						galleries[312628] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Prints Store 1","link":"section375339_312628.html","maxRecords":0.0,"photoIDs":[5484220.0,5484221.0,5508267.0,5519197.0,5519200.0,5519202.0,5519204.0,5519222.0,5519223.0,5519226.0,5519230.0,5519233.0,5519235.0,5519237.0,5519239.0,5519243.0,5519244.0,5519248.0,5519249.0,5519876.0,5519877.0,5519881.0,5519891.0,5519893.0,5519896.0,5519898.0,5519901.0,5519905.0,5519907.0,5519910.0,5519915.0,5519921.0,5519923.0,5519927.0],"skipIndex":0,"section_code":"section375339","featured_images":"5519921,5484221","id":312628,"singleSection":false});				  						galleries[310222] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding Gallery","link":"gallery_310222.html","maxRecords":0.0,"photoIDs":[5519025.0,5519029.0,5519031.0,5519035.0,5519041.0,5519047.0,5519056.0,5519059.0,5519061.0,5519065.0,5519070.0,5519076.0,5519153.0,5519155.0,5519159.0,5519163.0,5519167.0,5519169.0,5519171.0,5519176.0,5519183.0,5519186.0,5519194.0],"skipIndex":0,"section_code":"gallery","featured_images":5519076.0,"id":310222,"singleSection":false});				  						galleries[310223] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People & Places","link":"gallery_310223.html","maxRecords":0.0,"photoIDs":[5508252.0,5508255.0,5508265.0,5519005.0,5519011.0,5519021.0,5519173.0,5519246.0,5519253.0,5519266.0,5519274.0,5519865.0,5519869.0,5544633.0],"skipIndex":0,"section_code":"gallery","featured_images":5519865.0,"id":310223,"singleSection":false});				  						galleries[313251] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Print Store 2","link":"section375339_313251.html","maxRecords":0.0,"photoIDs":[5529014.0,5529025.0,5529026.0,5529030.0,5529033.0,5529036.0,5529039.0,5529041.0,5529046.0,5529065.0,5529087.0,5529179.0],"skipIndex":0,"section_code":"section375339","featured_images":5529036.0,"id":313251,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5529036';
imageSets[2] = '5529125,5529036,5519921,5519865,5519076,5484221';
imageSets[3] = '5982588,5982232,5982231,5982229,5981859,5981847,5981845,5981843,5981842,5981841,5981839,5981837,5981834,5981833,5981830,5981828,5981827,5981825,5981769,5981767,5981766,5981762,5981757,5981756,5981755,5981751,5981748,5981746,5981745,5981743,5981742,5981740,5981730,5981729,5981717,5981716,5981715,5981713,5981712,5981710,5981709,5981708,5981707,5981706,5981703,5981702,5981701,5981699,5981698,5981697';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/linseyw/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/linseyw/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/linseyw/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/linseyw/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/linseyw/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/linseyw/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/linseyw/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 && backgrounds[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 = 'Linsey Wraith Photography: ' + 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="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		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">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="LINSEYW">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

