window.thumbnails = {};
															thumbnails[7272440] = clik.newPhoto({"id":7272440,"src":"Picture_457-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7272440.html","width":130,"caption":"Landscape #457, Empty Horizon (2010)","height":130});
															thumbnails[7272441] = clik.newPhoto({"id":7272441,"src":"Picture_453-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7272441.html","width":130,"caption":"Landscape #453, Cypress Hill (2010)","height":130});
															thumbnails[7272504] = clik.newPhoto({"id":7272504,"src":"Picture_159-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7272504.html","width":130,"caption":"Woodscape #159 (2010)","height":130});
															thumbnails[7272507] = clik.newPhoto({"id":7272507,"src":"Picture_134-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7272507.html","width":130,"caption":"Woodscape #134 (2010)","height":130});
															thumbnails[7272509] = clik.newPhoto({"id":7272509,"src":"Picture_147-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7272509.html","width":130,"caption":"Landscape #147, Lac de Carcès (2010)","height":130});
															thumbnails[7272511] = clik.newPhoto({"id":7272511,"src":"Picture_014-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7272511.html","width":130,"caption":"Townscape #014 (2010)","height":130});
															thumbnails[7272775] = clik.newPhoto({"id":7272775,"src":"Picture_010-2web_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7272775.html","width":130,"caption":"Rainy Day (England, 2007)","height":130});
															thumbnails[7272776] = clik.newPhoto({"id":7272776,"src":"_S3W7595-4S_1_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7272776.html","width":130,"caption":"The Jazz Trumpeter (England, 2010)","height":130});
															thumbnails[7272778] = clik.newPhoto({"id":7272778,"src":"IMG_0053-3web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_7272778.html","width":130,"caption":"Getting Together (England, 2007)","height":98});
															thumbnails[7272790] = clik.newPhoto({"id":7272790,"src":"PC290789-2-2web_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7272790.html","width":130,"caption":"Split Second (England, 2011)","height":130});
															thumbnails[7272793] = clik.newPhoto({"id":7272793,"src":"Photo0550-2-2web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_7272793.html","width":130,"caption":"Escalators (England, 2010)","height":130});
															thumbnails[7272795] = clik.newPhoto({"id":7272795,"src":"Photo0543-2web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_7272795.html","width":98,"caption":"Empty Coffee Shop (England, 2010)","height":130});
															thumbnails[7272796] = clik.newPhoto({"id":7272796,"src":"IMG_0262-2web_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7272796.html","width":98,"caption":"Spilled Some ... (Studio, 2007)","height":130});
															thumbnails[7272852] = clik.newPhoto({"id":7272852,"src":"Picture_037-3web_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7272852.html","width":96,"caption":"High Level Bridge (England, 2008)","height":130});
															thumbnails[7272859] = clik.newPhoto({"id":7272859,"src":"IMG_1224-3web_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7272859.html","width":98,"caption":"Durham Cathedral (England, 2006)","height":130});
															thumbnails[7274238] = clik.newPhoto({"id":7274238,"src":"IMG_0806-2new2orp_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7274238.html","width":98,"caption":"All Saints Church (England, 2007)","height":130});
															thumbnails[7274248] = clik.newPhoto({"id":7274248,"src":"IMG_0874-3web_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7274248.html","width":130,"caption":"Scaffolding (England, 2007)","height":98});
															thumbnails[7274293] = clik.newPhoto({"id":7274293,"src":"Picture_099-3web_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7274293.html","width":130,"caption":"Gateshead Millennium Bridge (England, 2008)","height":130});
															thumbnails[7274305] = clik.newPhoto({"id":7274305,"src":"Photo0077web_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7274305.html","width":130,"caption":"Agave Attenuata (France, 2009)","height":130});
															thumbnails[7274338] = clik.newPhoto({"id":7274338,"src":"Picture_058web_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7274338.html","width":130,"caption":"Still Life With Fly (Studio, 2010)","height":130});
															thumbnails[7275082] = clik.newPhoto({"id":7275082,"src":"IMG_7750-2web_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7275082.html","width":130,"caption":"St Abb's Head (Scotland, 2010)","height":87});
															thumbnails[7275083] = clik.newPhoto({"id":7275083,"src":"Picture_103-2-3web_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7275083.html","width":130,"caption":"Carqueiranne (France, 2009)","height":130});
															thumbnails[7275084] = clik.newPhoto({"id":7275084,"src":"Picture_037-3newORP_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7275084.html","width":130,"caption":"Cap Garonne (France, 2008)","height":130});
															thumbnails[7275133] = clik.newPhoto({"id":7275133,"src":"Picture_124-3-2web_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7275133.html","width":130,"caption":"Grand Turk (England, 2008)","height":130});
															thumbnails[7275921] = clik.newPhoto({"id":7275921,"src":"P1010822-2-2web_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7275921.html","width":130,"caption":"January Landscape (England, 2011)","height":130});
															thumbnails[7278014] = clik.newPhoto({"id":7278014,"src":"Picture_166-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7278014.html","width":130,"caption":"Landscape #166, Vineyard (2010)","height":130});
															thumbnails[7278065] = clik.newPhoto({"id":7278065,"src":"Picture_060-2-2_thumb.jpg","galleries_id":352740,"server_id":1,"link":"photo_7278065.html","width":130,"caption":"Woodscape #060 (2010)","height":130});
															thumbnails[7282653] = clik.newPhoto({"id":7282653,"src":"Picture_092-2-3web_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7282653.html","width":130,"caption":"Prebends Bridge (England, 2008)","height":130});
															thumbnails[7287145] = clik.newPhoto({"id":7287145,"src":"Picture_179-3-2web_thumb.jpg","galleries_id":394082,"server_id":1,"link":"photo_7287145.html","width":130,"caption":"Procession Route (England, 2007)","height":130});
															thumbnails[7287174] = clik.newPhoto({"id":7287174,"src":"Picture_228-3-2web_thumb.jpg","galleries_id":394082,"server_id":1,"link":"photo_7287174.html","width":130,"caption":"Angel & Ivy (England, 2007)","height":130});
															thumbnails[7287176] = clik.newPhoto({"id":7287176,"src":"Picture_093-3-2web_thumb.jpg","galleries_id":394082,"server_id":1,"link":"photo_7287176.html","width":130,"caption":"Urn (England, 2007)","height":130});
															thumbnails[7401082] = clik.newPhoto({"id":7401082,"src":"P1010193-3Sorp_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7401082.html","width":130,"caption":"Out Of The Dark (Studio, 2011)","height":130});
															thumbnails[7401085] = clik.newPhoto({"id":7401085,"src":"P1010261-3Sorp_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7401085.html","width":130,"caption":"Cracking Stuff (Studio, 2011)","height":130});
															thumbnails[7436339] = clik.newPhoto({"id":7436339,"src":"P1010558-3Sorp_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7436339.html","width":130,"caption":"Pear & Apple (Studio, 2011)","height":130});
															thumbnails[7489907] = clik.newPhoto({"id":7489907,"src":"2011-03-06-07-34-56-506-3orp_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_7489907.html","width":130,"caption":"Jug & Bowl (Studio, 2011)","height":130});
															thumbnails[7544803] = clik.newPhoto({"id":7544803,"src":"2011-03-01-15-27-29-590-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_7544803.html","width":106,"caption":"Down The Plughole","height":130});
															thumbnails[7544807] = clik.newPhoto({"id":7544807,"src":"2011-03-03-08-48-27-941-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_7544807.html","width":106,"caption":"Cooking With Sunshine","height":130});
															thumbnails[7544819] = clik.newPhoto({"id":7544819,"src":"2011-03-03-09-49-03-182-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_7544819.html","width":106,"caption":"Condensation Problem","height":130});
															thumbnails[7544834] = clik.newPhoto({"id":7544834,"src":"2011-03-03-16-24-42-535-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_7544834.html","width":106,"caption":"Roll Up!","height":130});
															thumbnails[7545082] = clik.newPhoto({"id":7545082,"src":"P1010994-2web_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7545082.html","width":130,"caption":"Mitford Castle (England, 2011)","height":130});
															thumbnails[7560631] = clik.newPhoto({"id":7560631,"src":"P1020027-3S_1_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_7560631.html","width":130,"caption":"Warkworth Castle #2 (England, 2011)","height":65});
															thumbnails[7560633] = clik.newPhoto({"id":7560633,"src":"P1020071-3web-al1_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7560633.html","width":130,"caption":"Silent Companions (England, 2011)","height":130});
															thumbnails[7683980] = clik.newPhoto({"id":7683980,"src":"P1020338-3orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_7683980.html","width":130,"caption":"\"A Moi De Jouer!\" (France, 2011)","height":130});
															thumbnails[7684058] = clik.newPhoto({"id":7684058,"src":"P1020909-3orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_7684058.html","width":130,"caption":"Deux Vieux Amis (France, 2011)","height":130});
															thumbnails[7684101] = clik.newPhoto({"id":7684101,"src":"P1030017-3orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_7684101.html","width":130,"caption":"Old Woman On A Balcony (France, 2011)","height":130});
															thumbnails[7688278] = clik.newPhoto({"id":7688278,"src":"IMG_7374-2web-al_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_7688278.html","width":91,"caption":"Visbeker Bräutigam (Germany, 2009)","height":130});
															thumbnails[8031422] = clik.newPhoto({"id":8031422,"src":"IMG_0003-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_8031422.html","width":106,"caption":"Under The Knife","height":130});
															thumbnails[8031458] = clik.newPhoto({"id":8031458,"src":"2011-06-20-14-27-40-826-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_8031458.html","width":106,"caption":"Hearth And Home","height":130});
															thumbnails[8031544] = clik.newPhoto({"id":8031544,"src":"2011-03-03-09-38-53-294-2S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_8031544.html","width":106,"caption":"Forgotten","height":130});
															thumbnails[8033240] = clik.newPhoto({"id":8033240,"src":"mags_treble1S_thumb.jpg","galleries_id":409078,"server_id":1,"link":"photo_8033240.html","width":130,"caption":"Mags And More (Triptych)","height":55});
															thumbnails[8068402] = clik.newPhoto({"id":8068402,"src":"IMG_0006-2orp2_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8068402.html","width":130,"caption":"Non-smoker (England, 2011)","height":130});
															thumbnails[8105833] = clik.newPhoto({"id":8105833,"src":"P1020879-3orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8105833.html","width":130,"caption":"L'abbaye Du Vieux Beausset (France, 2011)","height":130});
															thumbnails[8129835] = clik.newPhoto({"id":8129835,"src":"Untitled-1-3orp_thumb.jpg","galleries_id":434837,"server_id":1,"link":"photo_8129835.html","width":130,"caption":"David Coverdale smoking (1997)","height":130});
															thumbnails[8129836] = clik.newPhoto({"id":8129836,"src":"Untitled-2-3orp_thumb.jpg","galleries_id":434837,"server_id":1,"link":"photo_8129836.html","width":130,"caption":"David Coverdale signing autograph #1 (1997)","height":130});
															thumbnails[8129837] = clik.newPhoto({"id":8129837,"src":"Untitled-3-2orp_thumb.jpg","galleries_id":434837,"server_id":1,"link":"photo_8129837.html","width":91,"caption":"David Coverdale signing autograph #2 (1997)","height":130});
															thumbnails[8129838] = clik.newPhoto({"id":8129838,"src":"Untitled-4-3orp_thumb.jpg","galleries_id":434837,"server_id":1,"link":"photo_8129838.html","width":130,"caption":"David Coverdale with an unknown fan (1997)","height":130});
															thumbnails[8141128] = clik.newPhoto({"id":8141128,"src":"Picture_015-2orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8141128.html","width":130,"caption":"Backstreet Symphony (England, 2007)","height":130});
															thumbnails[8141140] = clik.newPhoto({"id":8141140,"src":"Picture_428-3-3orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8141140.html","width":130,"caption":"Waiting For The Tide (Germany, 2007)","height":130});
															thumbnails[8141147] = clik.newPhoto({"id":8141147,"src":"Picture_395-4orp_1_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_8141147.html","width":130,"caption":"High Stakes (Germany, 2007)","height":130});
															thumbnails[8141167] = clik.newPhoto({"id":8141167,"src":"Picture_484-2orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8141167.html","width":130,"caption":"Untitled 10-2007-02 (Germany, 2007)","height":130});
															thumbnails[8141168] = clik.newPhoto({"id":8141168,"src":"Picture_487-2orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8141168.html","width":130,"caption":"Untitled 10-2007-01 (Germany, 2007)","height":130});
															thumbnails[8141170] = clik.newPhoto({"id":8141170,"src":"Picture_502-3orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8141170.html","width":130,"caption":"Union Pier (Germany, 2007)","height":130});
															thumbnails[8141172] = clik.newPhoto({"id":8141172,"src":"Picture_506-3orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8141172.html","width":130,"caption":"Midgard Pier (Germany, 2007)","height":130});
															thumbnails[8141177] = clik.newPhoto({"id":8141177,"src":"IMG_0105-4orp_1_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_8141177.html","width":130,"caption":"Footprints In The Sand (England, 2006)","height":130});
															thumbnails[8141191] = clik.newPhoto({"id":8141191,"src":"Picture_013-2orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8141191.html","width":130,"caption":"In The Horse's Eye (England, 2007)","height":130});
															thumbnails[8141204] = clik.newPhoto({"id":8141204,"src":"Picture_015-2orp1_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8141204.html","width":130,"caption":"Not A Banksy ... (England, 2007)","height":130});
															thumbnails[8141212] = clik.newPhoto({"id":8141212,"src":"Picture_031-2orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8141212.html","width":130,"caption":"Relic (England, 2007)","height":130});
															thumbnails[8141384] = clik.newPhoto({"id":8141384,"src":"Picture_079-2orp_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_8141384.html","width":130,"caption":"Unfinished (England, 2007)","height":130});
															thumbnails[8149142] = clik.newPhoto({"id":8149142,"src":"Picture_189-3-2orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8149142.html","width":130,"caption":"Robin Hood's Bay (England, 2008)","height":130});
															thumbnails[8149537] = clik.newPhoto({"id":8149537,"src":"Picture_100newSQorp_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_8149537.html","width":130,"caption":"Wind In Her Hair (2007)","height":130});
															thumbnails[8149541] = clik.newPhoto({"id":8149541,"src":"Picture_140newSQorp_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_8149541.html","width":130,"caption":"Far Away (2007)","height":130});
															thumbnails[8215246] = clik.newPhoto({"id":8215246,"src":"PC290728-2-2web_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8215246.html","width":130,"caption":"Mist On The Wear (England, 2010)","height":130});
															thumbnails[8215438] = clik.newPhoto({"id":8215438,"src":"Picture_005-3web_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_8215438.html","width":130,"caption":"Newcastle upon Tyne Civic Centre (England, 2008)","height":130});
															thumbnails[8260775] = clik.newPhoto({"id":8260775,"src":"2011-04-05-14-11-44-837-2orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8260775.html","width":130,"caption":"Through The Fence (France, 2011)","height":130});
															thumbnails[8376281] = clik.newPhoto({"id":8376281,"src":"P1030807-2orp_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_8376281.html","width":130,"caption":"Peeling Prawns (Germany, 2011)","height":130});
															thumbnails[8509915] = clik.newPhoto({"id":8509915,"src":"IMG_0034-3orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8509915.html","width":130,"caption":"Table & Chairs (France, 2011)","height":130});
															thumbnails[8618602] = clik.newPhoto({"id":8618602,"src":"P1030868-2orp_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_8618602.html","width":130,"caption":"Untitled 08-2011-01 (Germany, 2011)","height":130});
															thumbnails[8641982] = clik.newPhoto({"id":8641982,"src":"P1040075-2_trix400_orp_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_8641982.html","width":130,"caption":"Puss In Boots (Studio, 2011)","height":130});
															thumbnails[8641986] = clik.newPhoto({"id":8641986,"src":"P1040088-4orp_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_8641986.html","width":130,"caption":"In Tatters (Studio, 2011)","height":130});
															thumbnails[8773906] = clik.newPhoto({"id":8773906,"src":"Picture_290-4orp_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_8773906.html","width":87,"caption":"","height":130});
															thumbnails[8774081] = clik.newPhoto({"id":8774081,"src":"PC290754-3orp_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_8774081.html","width":130,"caption":"Durham Cathedral In The Mist (England, 2010)","height":130});
															thumbnails[8969230] = clik.newPhoto({"id":8969230,"src":"IMG_0008b2orp_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_8969230.html","width":130,"caption":"The Others (England, 2011)","height":130});
															thumbnails[9000297] = clik.newPhoto({"id":9000297,"src":"P1040861-3web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9000297.html","width":130,"caption":"Go As You Please (England, 2011)","height":98});
															thumbnails[9000301] = clik.newPhoto({"id":9000301,"src":"P1070884-3web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9000301.html","width":130,"caption":"Scooter Club (England, 2011)","height":101});
															thumbnails[9000322] = clik.newPhoto({"id":9000322,"src":"Picture_119-3web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9000322.html","width":82,"caption":"Clear Instructions (France, 2009)","height":130});
															thumbnails[9000337] = clik.newPhoto({"id":9000337,"src":"Picture_024-3web_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9000337.html","width":130,"caption":"Afternoon At The Baltic (England, 2008)","height":98});
															thumbnails[9051809] = clik.newPhoto({"id":9051809,"src":"cork1996-1-3_negscan_S_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9051809.html","width":130,"caption":"Cork Street (Cork, Ireland, 1996)","height":130});
															thumbnails[9051815] = clik.newPhoto({"id":9051815,"src":"edinbcast1997-1-4_negscan_S_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_9051815.html","width":130,"caption":"Edinburgh Castle (Edinburgh, Scotland, 1997)","height":130});
															thumbnails[9051820] = clik.newPhoto({"id":9051820,"src":"scarbcast1996-1-3_negscan_S_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_9051820.html","width":130,"caption":"Scarborough Castle (Scarborough, England, 1996)","height":130});
															thumbnails[9051831] = clik.newPhoto({"id":9051831,"src":"shrewsb1996-1-3_negscan_S_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9051831.html","width":130,"caption":"Above Shrewsbury (Shrewsbury, England, 1997)","height":86});
															thumbnails[9051836] = clik.newPhoto({"id":9051836,"src":"whitbyabbey1996-1-3_negscan_S_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_9051836.html","width":130,"caption":"Whitby Abbey (Whitby, England, 1996)","height":130});
															thumbnails[9091328] = clik.newPhoto({"id":9091328,"src":"012012img116-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091328.html","width":130,"caption":"Abstract #1","height":130});
															thumbnails[9091330] = clik.newPhoto({"id":9091330,"src":"012012img117-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091330.html","width":130,"caption":"Abstract #2","height":130});
															thumbnails[9091331] = clik.newPhoto({"id":9091331,"src":"012012img118-2-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091331.html","width":130,"caption":"Abstract #3","height":130});
															thumbnails[9091332] = clik.newPhoto({"id":9091332,"src":"012012img119-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091332.html","width":130,"caption":"Abstract #4","height":130});
															thumbnails[9091333] = clik.newPhoto({"id":9091333,"src":"012012img121-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091333.html","width":130,"caption":"Abstract #5","height":130});
															thumbnails[9091334] = clik.newPhoto({"id":9091334,"src":"012012img124-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091334.html","width":130,"caption":"Abstract #6","height":130});
															thumbnails[9091335] = clik.newPhoto({"id":9091335,"src":"012012img125-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091335.html","width":130,"caption":"Abstract #7","height":130});
															thumbnails[9091336] = clik.newPhoto({"id":9091336,"src":"012012img126-2S_1_thumb.jpg","galleries_id":479684,"server_id":1,"link":"photo_9091336.html","width":130,"caption":"Abstract #8","height":130});
															thumbnails[9096599] = clik.newPhoto({"id":9096599,"src":"012012img011S_1_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_9096599.html","width":130,"caption":"Lineage #1 (England, 2012)","height":82});
															thumbnails[9096602] = clik.newPhoto({"id":9096602,"src":"012012img059S_1_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_9096602.html","width":130,"caption":"Frame Within A Frame #1 (England, 2012)","height":83});
															thumbnails[9096604] = clik.newPhoto({"id":9096604,"src":"012012img085-2S_1_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_9096604.html","width":79,"caption":"Frame Within A Frame #2 (England, 2012)","height":130});
															thumbnails[9096606] = clik.newPhoto({"id":9096606,"src":"012012img102-2S_1_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9096606.html","width":130,"caption":"To Bin Or Not To Bin (England, 2012)","height":82});
															thumbnails[9096616] = clik.newPhoto({"id":9096616,"src":"012012img076-2S_1_thumb.jpg","galleries_id":332770,"server_id":1,"link":"photo_9096616.html","width":130,"caption":"Lifebelt On Dune (England, 2012)","height":80});
															thumbnails[9096620] = clik.newPhoto({"id":9096620,"src":"012012img050-2S_1_thumb.jpg","galleries_id":474021,"server_id":1,"link":"photo_9096620.html","width":78,"caption":"Fly Paper (England, 2012)","height":130});
															thumbnails[9096855] = clik.newPhoto({"id":9096855,"src":"IMG_0012-2fb_1_thumb.jpg","galleries_id":332771,"server_id":1,"link":"photo_9096855.html","width":130,"caption":"Vermont Hotel (England, 2011)","height":130});
															thumbnails[9112523] = clik.newPhoto({"id":9112523,"src":"Picture_418-4orp_1_thumb.jpg","galleries_id":332773,"server_id":1,"link":"photo_9112523.html","width":130,"caption":"Untitled 10-2007-03 (Germany, 2007)","height":130});
															thumbnails[5882358] = clik.newPhoto({"id":5882358,"src":"Picture_170-2_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_5882358.html","width":130,"caption":"","height":183});
															thumbnails[6942057] = clik.newPhoto({"id":6942057,"src":"Picture_297-3S_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_6942057.html","width":85,"caption":"","height":130});
															thumbnails[5882411] = clik.newPhoto({"id":5882411,"src":"IMG_7520enh1_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_5882411.html","width":130,"caption":"","height":195});
															thumbnails[7297525] = clik.newPhoto({"id":7297525,"src":"IMG_7491-2web_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_7297525.html","width":87,"caption":"","height":130});
															thumbnails[7073357] = clik.newPhoto({"id":7073357,"src":"Picture_303-3Sorp_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_7073357.html","width":87,"caption":"","height":130});
															thumbnails[8413800] = clik.newPhoto({"id":8413800,"src":"P1030779-3-2orp1_thumb.jpg","galleries_id":332696,"server_id":1,"link":"photo_8413800.html","width":98,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[479684] = clik.newGallery({"parentGallery":394087,"usePopups":true,"title":"Film Abstracts (2012)","link":"gallery_479684.html","maxRecords":0.0,"photoIDs":[9091328.0,9091330.0,9091331.0,9091332.0,9091333.0,9091334.0,9091335.0,9091336.0],"skipIndex":0,"section_code":"gallery","featured_images":"9091336,9091335,9091334,9091333,9091332,9091331,9091330,9091328","id":479684,"singleSection":false});				  						galleries[409078] = clik.newGallery({"parentGallery":394087,"usePopups":true,"title":"Around The House (2011)","link":"gallery_409078.html","maxRecords":0.0,"photoIDs":[7544803.0,7544807.0,7544819.0,7544834.0,8031422.0,8031458.0,8031544.0,8033240.0],"skipIndex":0,"section_code":"gallery","featured_images":"8033240,8031544,8031458,8031422,7544834,7544819,7544807,7544803","id":409078,"singleSection":false});				  						galleries[332773] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Still Life & Abstract ","link":"gallery_332773.html","maxRecords":0.0,"photoIDs":[7272775.0,7272776.0,7272790.0,7272796.0,7274338.0,7275133.0,7401082.0,7401085.0,7436339.0,7489907.0,8141147.0,8141177.0,8376281.0,8641982.0,9096599.0,9112523.0],"skipIndex":0,"section_code":"gallery","featured_images":"9112523,9096599,8641982,8376281,8141177,8141147,7489907,7436339,7401085,7401082","id":332773,"singleSection":false});				  						galleries[332770] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Landscape & Nature","link":"gallery_332770.html","maxRecords":0.0,"photoIDs":[7274305.0,7275082.0,7275083.0,7275084.0,7275921.0,7545082.0,7560633.0,7688278.0,8105833.0,8141140.0,8141170.0,8141172.0,8141191.0,8149142.0,8215246.0,8618602.0,9051815.0,9051820.0,9051836.0,9096602.0,9096604.0,9096616.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096616,9096604,9096602,9051836,9051820,9051815,8618602,8215246,8149142,8141191","id":332770,"singleSection":false});				  						galleries[352740] = clik.newGallery({"parentGallery":394087,"usePopups":true,"title":"Provence: An Impressionistic Journey (2010-2011)","link":"gallery_352740.html","maxRecords":0.0,"photoIDs":[7272440.0,7272441.0,7272504.0,7272507.0,7272509.0,7272511.0,7278014.0,7278065.0],"skipIndex":0,"section_code":"gallery","featured_images":"7278065,7278014,7272511,7272509,7272507,7272504,7272441,7272440","id":352740,"singleSection":false});				  						galleries[332771] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Architecture","link":"gallery_332771.html","maxRecords":0.0,"photoIDs":[7272852.0,7272859.0,7274238.0,7274248.0,7274293.0,7282653.0,7560631.0,8141384.0,8215438.0,8774081.0,9096855.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096855,8774081,8215438,8141384,7560631,7282653,7274293,7274248,7274238,7272859","id":332771,"singleSection":false});				  						galleries[394082] = clik.newGallery({"parentGallery":394087,"usePopups":true,"title":"Totenacker (2007)","link":"gallery_394082.html","maxRecords":0.0,"photoIDs":[7287145.0,7287174.0,7287176.0],"skipIndex":0,"section_code":"gallery","featured_images":"7287176,7287174,7287145","id":394082,"singleSection":false});				  						galleries[434837] = clik.newGallery({"parentGallery":394087,"usePopups":true,"title":"David Coverdale 1997","link":"gallery_434837.html","maxRecords":0.0,"photoIDs":[8129835.0,8129836.0,8129837.0,8129838.0],"skipIndex":0,"section_code":"gallery","featured_images":"8129838,8129837,8129836,8129835","id":434837,"singleSection":false});				  						galleries[474021] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Street Photography","link":"gallery_474021.html","maxRecords":0.0,"photoIDs":[7272778.0,7272793.0,7272795.0,7683980.0,7684058.0,7684101.0,8068402.0,8141128.0,8141167.0,8141168.0,8141204.0,8141212.0,8260775.0,8509915.0,8969230.0,9000297.0,9000301.0,9000322.0,9000337.0,9051809.0,9051831.0,9096606.0,9096620.0],"skipIndex":0,"section_code":"gallery","featured_images":"9096620,9096606,9051831,9051809,9000337,9000322,9000301,9000297,8969230,8509915","id":474021,"singleSection":false});				  						galleries[332696] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Portraiture","link":"gallery_332696.html","maxRecords":0.0,"photoIDs":[8149537.0,8149541.0,8641986.0,8773906.0,5882358.0,6942057.0,5882411.0,7297525.0,7073357.0,8413800.0],"skipIndex":0,"section_code":"gallery","featured_images":6942057.0,"id":332696,"singleSection":false});				  						galleries[394087] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Series","link":"gallery_394087.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"9091336,9091335,9091334,9091333,9091332,9091331,9091330,9091328,8129838,8129837","id":394087,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9112523,9096855,9096620,9096616,9096606,9096604,9096602,9096599,9091336,9091335,9091334,9091333,9091332,9091331,9091330,9091328,9051836,9051831,9051820,9051815,9051809,9000337,9000322,9000301,9000297,8969230,8774081,8773906,8641986,8641982,8618602,8509915,8413800,8376281,8260775,8215438,8215246,8149541,8149537,8149142,8141384,8141212,8141204,8141191,8141177,8141172,8141170,8141168,8141167,8141147';
imageSets[2] = '6942057';
imageSets[3] = '9112523,9096855,9096620,9096616,9096606,9096604,9096602,9096599,9091336,9091335,9091334,9091333,9091332,9091331,9091330,9091328,9051836,9051831,9051820,9051815,9051809,9000337,9000322,9000301,9000297,8969230,8774081,8773906,8641986,8641982,8618602,8509915,8413800,8376281,8260775,8215438,8215246,8149541,8149537,8149142,8141384,8141212,8141204,8141191,8141177,8141172,8141170,8141168,8141167,8141147';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/orauer/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/orauer/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/orauer/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/orauer/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/orauer/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/orauer/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/orauer/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/orauer/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 = 'OLIVER RAUER: ' + 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="orauer@web.de">';
					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="orauer@web.de">';
				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;
	}
}

			

