window.thumbnails = {};
															thumbnails[5628705] = clik.newPhoto({"id":5628705,"src":"Sample5GuitarPhotoA_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Guitar Photo","height":96});
															thumbnails[5619040] = clik.newPhoto({"id":5619040,"src":"PaintingCardSample3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Greetings Cards (Paintings)","height":126});
															thumbnails[6862757] = clik.newPhoto({"id":6862757,"src":"PaintingPostcardSample3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Postcards (Paintings)","height":126});
															thumbnails[5619007] = clik.newPhoto({"id":5619007,"src":"PhotoCardSample3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Greeting Cards (Photos)","height":126});
															thumbnails[6862763] = clik.newPhoto({"id":6862763,"src":"PhotoPostcardSample3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Postcards (Photos)","height":126});
															thumbnails[6864020] = clik.newPhoto({"id":6864020,"src":"PaintingCardSample3Closeup_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Greetings Cards (Paintings) Close-Up","height":101});
															thumbnails[6864022] = clik.newPhoto({"id":6864022,"src":"PaintingPostcardSample3Closeup2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Postcards (Paintings) Close-Up","height":97});
															thumbnails[6864078] = clik.newPhoto({"id":6864078,"src":"PhotoCardSample3Closeup_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Greetings Cards (Photos) Close-up","height":101});
															thumbnails[6864085] = clik.newPhoto({"id":6864085,"src":"PhotoPostcardSample3Closeup_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Postcards (Photos) Close-Up","height":97});
															thumbnails[5628569] = clik.newPhoto({"id":5628569,"src":"Sample8FramedPhotPrinta_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Framed Prints","height":96});
															thumbnails[7115013] = clik.newPhoto({"id":7115013,"src":"Sample9UnframedPhotoPrinta_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Unframed Photo Prints","height":96});
															thumbnails[5617782] = clik.newPhoto({"id":5617782,"src":"UntitledNo42_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617782.html","width":130,"caption":" Untitled No.42 ","height":86});
															thumbnails[5617917] = clik.newPhoto({"id":5617917,"src":"Cornwall2PenzanceBeach_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5617917.html","width":130,"caption":"Penzance Beach","height":76});
															thumbnails[5619107] = clik.newPhoto({"id":5619107,"src":"HideandSee_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619107.html","width":130,"caption":"Hide and See ","height":168});
															thumbnails[5620041] = clik.newPhoto({"id":5620041,"src":"Sample4CDCover_thumb.jpg","galleries_id":318542,"server_id":32,"link":"photo_5620041.html","width":130,"caption":"Inner Landscapes","height":130});
															thumbnails[5842419] = clik.newPhoto({"id":5842419,"src":"SoloShowINNERWORLDS38a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842419.html","width":130,"caption":"Inner Worlds","height":97});
															thumbnails[5617802] = clik.newPhoto({"id":5617802,"src":"UntitledNo44_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617802.html","width":130,"caption":"Untitled No.44 ","height":85});
															thumbnails[5617926] = clik.newPhoto({"id":5617926,"src":"Cornwall3PebblesatPenzanceBeach_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5617926.html","width":130,"caption":"Water Outlet by Penzance Beach","height":79});
															thumbnails[5619111] = clik.newPhoto({"id":5619111,"src":"FrameofReference_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619111.html","width":130,"caption":"Frame of Reference ","height":157});
															thumbnails[5632035] = clik.newPhoto({"id":5632035,"src":"SoloShow1_thumb.jpg","galleries_id":318542,"server_id":32,"link":"photo_5632035.html","width":130,"caption":"A Sense of Space","height":98});
															thumbnails[5842451] = clik.newPhoto({"id":5842451,"src":"SoloShowINNERWORLDS37a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842451.html","width":130,"caption":"Inner Worlds","height":97});
															thumbnails[5617805] = clik.newPhoto({"id":5617805,"src":"UntitledNo56_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617805.html","width":130,"caption":"Untitled No.56 ","height":85});
															thumbnails[5617930] = clik.newPhoto({"id":5617930,"src":"Cornwall5MouseholeBeach_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5617930.html","width":130,"caption":"Mousehole Beach ","height":75});
															thumbnails[5619120] = clik.newPhoto({"id":5619120,"src":"TrainofThought_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619120.html","width":130,"caption":"Train of Thought ","height":95});
															thumbnails[5632037] = clik.newPhoto({"id":5632037,"src":"SoloShow2_thumb.jpg","galleries_id":318542,"server_id":32,"link":"photo_5632037.html","width":130,"caption":" A Sense of Space","height":98});
															thumbnails[5842474] = clik.newPhoto({"id":5842474,"src":"SoloShowINNERWORLDS36a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842474.html","width":130,"caption":"Inner Worlds","height":97});
															thumbnails[5617808] = clik.newPhoto({"id":5617808,"src":"UntitledNo57_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617808.html","width":130,"caption":"Untitled No.57 ","height":85});
															thumbnails[5617934] = clik.newPhoto({"id":5617934,"src":"Cornwall6MorrabGardens_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5617934.html","width":130,"caption":"Morrab Gardens, Penzance","height":88});
															thumbnails[5619128] = clik.newPhoto({"id":5619128,"src":"GatesofPerception_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619128.html","width":130,"caption":"Gates of Perception ","height":163});
															thumbnails[5632038] = clik.newPhoto({"id":5632038,"src":"SoloShow3_thumb.jpg","galleries_id":318542,"server_id":32,"link":"photo_5632038.html","width":130,"caption":" A Sense of Space","height":98});
															thumbnails[5885674] = clik.newPhoto({"id":5885674,"src":"THEARTOFABSTRACTIONANDTOURISM2_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5885674.html","width":130,"caption":"The Art of Abstraction and Tourism","height":105});
															thumbnails[5617811] = clik.newPhoto({"id":5617811,"src":"UntitledNo60_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617811.html","width":130,"caption":"Untitled No.60 ","height":85});
															thumbnails[5617937] = clik.newPhoto({"id":5617937,"src":"Cornwall9GulloverMousehole_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5617937.html","width":130,"caption":" Gull over Mousehole","height":102});
															thumbnails[5842494] = clik.newPhoto({"id":5842494,"src":"THEARTOFABSTRACTIONANDTOURISM4a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842494.html","width":130,"caption":"The Art of Abstraction and Tourism","height":97});
															thumbnails[6848576] = clik.newPhoto({"id":6848576,"src":"SeaFairing_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_6848576.html","width":130,"caption":"Sea-Fairing","height":175});
															thumbnails[5617813] = clik.newPhoto({"id":5617813,"src":"UntitledNo68_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617813.html","width":130,"caption":"Untitled No.68","height":90});
															thumbnails[5619138] = clik.newPhoto({"id":5619138,"src":"TreeHouse_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619138.html","width":130,"caption":"Tree-House ","height":175});
															thumbnails[5688550] = clik.newPhoto({"id":5688550,"src":"Cornwall10PenzanceBeachatLowTide_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5688550.html","width":130,"caption":"Penzace Beach at Low Tide","height":86});
															thumbnails[5842506] = clik.newPhoto({"id":5842506,"src":"THEARTOFABSTRACTIONANDTOURISM5a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842506.html","width":130,"caption":"The Art of Abstraction and Tourism","height":97});
															thumbnails[5617829] = clik.newPhoto({"id":5617829,"src":"UntitledNo70_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617829.html","width":130,"caption":"Untitled No.70 ","height":102});
															thumbnails[5618840] = clik.newPhoto({"id":5618840,"src":"Cornwall17LizardPoint_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618840.html","width":130,"caption":"Lizard Point","height":93});
															thumbnails[5842545] = clik.newPhoto({"id":5842545,"src":"THEARTOFABSTRACTIONANDTOURISM7a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842545.html","width":130,"caption":"The Art of Abstraction and Tourism","height":97});
															thumbnails[6848581] = clik.newPhoto({"id":6848581,"src":"DrawingRoom_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_6848581.html","width":130,"caption":"Drawing Room","height":183});
															thumbnails[5617833] = clik.newPhoto({"id":5617833,"src":"UntitledNo71_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617833.html","width":130,"caption":"Untitled No.71","height":103});
															thumbnails[5618841] = clik.newPhoto({"id":5618841,"src":"Cornwall18LizardPoint_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618841.html","width":130,"caption":"Lizard Point  ","height":90});
															thumbnails[5619146] = clik.newPhoto({"id":5619146,"src":"EndoftheTunnel_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619146.html","width":130,"caption":"End of the Tunnel ","height":151});
															thumbnails[5842552] = clik.newPhoto({"id":5842552,"src":"THEARTOFABSTRACTIONANDTOURISM11a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842552.html","width":130,"caption":"The Art of Abstraction and Tourism","height":97});
															thumbnails[5617841] = clik.newPhoto({"id":5617841,"src":"UntitledNo77_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617841.html","width":130,"caption":"Untitled No.77 ","height":107});
															thumbnails[5618849] = clik.newPhoto({"id":5618849,"src":"Cornwall19LizardPoint_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618849.html","width":130,"caption":"Lizard Point","height":90});
															thumbnails[5619150] = clik.newPhoto({"id":5619150,"src":"WinterInn_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619150.html","width":130,"caption":"Winter Inn ","height":95});
															thumbnails[5845643] = clik.newPhoto({"id":5845643,"src":"THEARTOFABSTRACTIONANDTOURISM13a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5845643.html","width":130,"caption":"The Art of Abstraction and Tourism","height":112});
															thumbnails[5617852] = clik.newPhoto({"id":5617852,"src":"UntitledNo78_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617852.html","width":130,"caption":"Untitled No.78 ","height":108});
															thumbnails[5618851] = clik.newPhoto({"id":5618851,"src":"Cornwall20By_LizardPoint_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618851.html","width":130,"caption":"By Lizard Point ","height":87});
															thumbnails[5619154] = clik.newPhoto({"id":5619154,"src":"Tranquillity2a_thumb.jpg","galleries_id":318428,"server_id":32,"link":"photo_5619154.html","width":130,"caption":"Tranquillity ","height":162});
															thumbnails[5842571] = clik.newPhoto({"id":5842571,"src":"WHATWILLYOUSEE5a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842571.html","width":130,"caption":"What Will You See?","height":97});
															thumbnails[5617859] = clik.newPhoto({"id":5617859,"src":"UntitledNo80_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617859.html","width":130,"caption":"Untitled No.80 ","height":100});
															thumbnails[5618854] = clik.newPhoto({"id":5618854,"src":"Cornwall21BuoyatFalmouthHarbour_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618854.html","width":130,"caption":"Buoy at Falmouth Harbour","height":90});
															thumbnails[5842576] = clik.newPhoto({"id":5842576,"src":"WHATWILLYOUSEE6a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842576.html","width":130,"caption":"What Will You See?","height":97});
															thumbnails[5617863] = clik.newPhoto({"id":5617863,"src":"UntitledNo82_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617863.html","width":130,"caption":"Untitled No.82 ","height":102});
															thumbnails[5618898] = clik.newPhoto({"id":5618898,"src":"Cornwall22FalmouthHarbour_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618898.html","width":130,"caption":"Falmouth Harbour","height":91});
															thumbnails[5842585] = clik.newPhoto({"id":5842585,"src":"WHATWILLYOUSEE8a_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_5842585.html","width":130,"caption":"What Will You See?","height":97});
															thumbnails[5617866] = clik.newPhoto({"id":5617866,"src":"UntitledNo83_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617866.html","width":130,"caption":"Untitled No.83 ","height":104});
															thumbnails[6643732] = clik.newPhoto({"id":6643732,"src":"RipleySummerShow3_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_6643732.html","width":130,"caption":"Ripley Summer Exhibition","height":98});
															thumbnails[8179351] = clik.newPhoto({"id":8179351,"src":"Cornwall30BoatsatPortIsaacBay_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_8179351.html","width":130,"caption":"Boats at Port Isaac Bay","height":104});
															thumbnails[5617871] = clik.newPhoto({"id":5617871,"src":"UntitledNo84_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617871.html","width":130,"caption":"Untitled No.84 ","height":103});
															thumbnails[6643698] = clik.newPhoto({"id":6643698,"src":"RipleySummerShow1_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_6643698.html","width":130,"caption":"Ripley Summer Exhibition 2010","height":98});
															thumbnails[8179353] = clik.newPhoto({"id":8179353,"src":"Cornwall31PadstowBeach_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_8179353.html","width":130,"caption":"Padstow Beach","height":104});
															thumbnails[5617876] = clik.newPhoto({"id":5617876,"src":"UntitledNo88_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617876.html","width":130,"caption":"Untitled No.88 ","height":107});
															thumbnails[6643731] = clik.newPhoto({"id":6643731,"src":"RipleySummerShow2_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_6643731.html","width":130,"caption":"Ripley Summer Exhibition 2010","height":98});
															thumbnails[8179354] = clik.newPhoto({"id":8179354,"src":"Cornwall34TowanBeachNewquay_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_8179354.html","width":130,"caption":"Towan Beach, Newquay","height":104});
															thumbnails[5617883] = clik.newPhoto({"id":5617883,"src":"UntitledNo90_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617883.html","width":130,"caption":"Untitled No.90 ","height":107});
															thumbnails[6643933] = clik.newPhoto({"id":6643933,"src":"RipleySummerShow4_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_6643933.html","width":130,"caption":"Ripley Summer Exhibition","height":98});
															thumbnails[8179369] = clik.newPhoto({"id":8179369,"src":"Cornwall36PostBoxnearStMinver_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_8179369.html","width":130,"caption":"Postbox near St. Minver","height":104});
															thumbnails[5617886] = clik.newPhoto({"id":5617886,"src":"UntitledNo91_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617886.html","width":130,"caption":"Untitled No.91 ","height":109});
															thumbnails[5618859] = clik.newPhoto({"id":5618859,"src":"Pompeii2ArchesbytheViaDellAbbondanzaPompeii_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618859.html","width":130,"caption":"Arches by the Via Dell’Abbondanza ","height":98});
															thumbnails[8178560] = clik.newPhoto({"id":8178560,"src":"INNER_AND_OUTER_TRAVELS_3_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8178560.html","width":130,"caption":"Inner and Outer Travels","height":137});
															thumbnails[5617890] = clik.newPhoto({"id":5617890,"src":"UntitledNo92_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617890.html","width":130,"caption":"Untitled No.92 ","height":106});
															thumbnails[5618906] = clik.newPhoto({"id":5618906,"src":"Pompeii4MosaicattheHouseoftheFaunPompeii_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618906.html","width":130,"caption":"Mosaic at the House of the Faun","height":94});
															thumbnails[8178568] = clik.newPhoto({"id":8178568,"src":"INNER_AND_OUTER_TRAVELS_11_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8178568.html","width":130,"caption":"Inner and Outer Travels","height":108});
															thumbnails[5617894] = clik.newPhoto({"id":5617894,"src":"UntitledNo93_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617894.html","width":130,"caption":"Untitled No.93 ","height":108});
															thumbnails[5618909] = clik.newPhoto({"id":5618909,"src":"Pompeii5TempleofApolloPompeii_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618909.html","width":130,"caption":"Temple of Apollo ","height":92});
															thumbnails[8178618] = clik.newPhoto({"id":8178618,"src":"INNER_TRAVELS_1_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8178618.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[5617897] = clik.newPhoto({"id":5617897,"src":"UntitledNo95_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_5617897.html","width":130,"caption":"Untitled No.95 ","height":107});
															thumbnails[5618963] = clik.newPhoto({"id":5618963,"src":"Pompeii7ThermopoliumSnack_Bar_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618963.html","width":130,"caption":"Thermopolium (Snack Bar) ","height":98});
															thumbnails[8178620] = clik.newPhoto({"id":8178620,"src":"INNER_TRAVELS_5_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8178620.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[5618965] = clik.newPhoto({"id":5618965,"src":"Pompeii8TheSmallTheatre_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618965.html","width":130,"caption":"The Small Theatre ","height":100});
															thumbnails[8178154] = clik.newPhoto({"id":8178154,"src":"UntitledNo97_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_8178154.html","width":130,"caption":"Untitled No.97","height":104});
															thumbnails[8179029] = clik.newPhoto({"id":8179029,"src":"INNER_TRAVELS_10_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8179029.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[5618978] = clik.newPhoto({"id":5618978,"src":"Rome2TheColosseumDetail_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618978.html","width":130,"caption":"The Colosseum (Detail)","height":85});
															thumbnails[8178189] = clik.newPhoto({"id":8178189,"src":"UntitledNo99_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_8178189.html","width":130,"caption":"Untitled No.99","height":99});
															thumbnails[8179133] = clik.newPhoto({"id":8179133,"src":"INNER_TRAVELS_12_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8179133.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[5618981] = clik.newPhoto({"id":5618981,"src":"Rome3TheColosseum_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618981.html","width":130,"caption":"The Colosseum","height":98});
															thumbnails[8178190] = clik.newPhoto({"id":8178190,"src":"UntitledNo101_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_8178190.html","width":130,"caption":"Untitled No.101","height":104});
															thumbnails[8179235] = clik.newPhoto({"id":8179235,"src":"OUTER_TRAVELS_1_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8179235.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[5618988] = clik.newPhoto({"id":5618988,"src":"Rome4TheTreviFountain_thumb.jpg","galleries_id":318426,"server_id":32,"link":"photo_5618988.html","width":130,"caption":"The Trevi Fountain","height":100});
															thumbnails[8179243] = clik.newPhoto({"id":8179243,"src":"OUTER_TRAVELS_2_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8179243.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[9082458] = clik.newPhoto({"id":9082458,"src":"Untitled_No.102_resize_thumb.jpg","galleries_id":318425,"server_id":32,"link":"photo_9082458.html","width":130,"caption":"Untitled No.102","height":104});
															thumbnails[8179303] = clik.newPhoto({"id":8179303,"src":"OUTER_TRAVELS_4_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8179303.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[8179311] = clik.newPhoto({"id":8179311,"src":"OUTER_TRAVELS_5_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8179311.html","width":130,"caption":"Inner and Outer Travels","height":98});
															thumbnails[8417928] = clik.newPhoto({"id":8417928,"src":"RipleySummerShow20113_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8417928.html","width":130,"caption":"Ripley Summer Exhibition 2011","height":148});
															thumbnails[8417935] = clik.newPhoto({"id":8417935,"src":"RipleySummerShow201151_thumb.jpg","galleries_id":330565,"server_id":32,"link":"photo_8417935.html","width":130,"caption":"Ripley Summer Exhibition 2011","height":134});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[318425] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Paintings","link":"gallery_318425.html","maxRecords":0.0,"photoIDs":[5617782.0,5617802.0,5617805.0,5617808.0,5617811.0,5617813.0,5617829.0,5617833.0,5617841.0,5617852.0,5617859.0,5617863.0,5617866.0,5617871.0,5617876.0,5617883.0,5617886.0,5617890.0,5617894.0,5617897.0,8178154.0,8178189.0,8178190.0,9082458.0],"skipIndex":0,"section_code":"gallery","featured_images":5617829.0,"id":318425,"singleSection":false});				  						galleries[318426] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photographs","link":"gallery_318426.html","maxRecords":0.0,"photoIDs":[5617917.0,5617926.0,5617930.0,5617934.0,5617937.0,5688550.0,5618840.0,5618841.0,5618849.0,5618851.0,5618854.0,5618898.0,8179351.0,8179353.0,8179354.0,8179369.0,5618859.0,5618906.0,5618909.0,5618963.0,5618965.0,5618978.0,5618981.0,5618988.0],"skipIndex":0,"section_code":"gallery","featured_images":5618851.0,"id":318426,"singleSection":false});				  						galleries[318428] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Illustrations","link":"gallery_318428.html","maxRecords":0.0,"photoIDs":[5619107.0,5619111.0,5619120.0,5619128.0,6848576.0,5619138.0,6848581.0,5619146.0,5619150.0,5619154.0],"skipIndex":0,"section_code":"gallery","featured_images":5619146.0,"id":318428,"singleSection":false});				  						galleries[330565] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions","link":"gallery_330565.html","maxRecords":0.0,"photoIDs":[5842419.0,5842451.0,5842474.0,5885674.0,5842494.0,5842506.0,5842545.0,5842552.0,5845643.0,5842571.0,5842576.0,5842585.0,6643732.0,6643698.0,6643731.0,6643933.0,8178560.0,8178568.0,8178618.0,8178620.0,8179029.0,8179133.0,8179235.0,8179243.0,8179303.0,8179311.0,8417928.0,8417935.0],"skipIndex":0,"section_code":"gallery","featured_images":8178560.0,"id":330565,"singleSection":false});				  						galleries[318542] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Musical Activities","link":"gallery_318542.html","maxRecords":0.0,"photoIDs":[5620041.0,5632035.0,5632037.0,5632038.0],"skipIndex":0,"section_code":"gallery","featured_images":5620041.0,"id":318542,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '5617917,5617782,5617926,5617802,5617930,5617805,5617934,5617808,5617937,5617811,5618840,5617829,5618841,5617833,5618851,5617852,8179351,8179353,8179354,8179369,5617883,5618859,5617886,5618906,5618909,5617894,5618963,5617897,8178154,8178189,8178190,9082458';
imageSets[2] = '5620041,5617829,5619146,5618851,8178560';
imageSets[3] = '9082458,8417935,8417928,8179369,8179354,8179353,8179351,8179311,8179303,8179243,8179235,8179133,8179029,8178620,8178618,8178568,8178560,8178190,8178189,8178154,7115013,6864085,6864078,6864022,6864020,6862763,6862757,6848581,6848576,6643933,6643732,6643731,6643698,5885674,5845643,5842585,5842576,5842571,5842552,5842545,5842506,5842494,5842474,5842451,5842419,5688550,5632038,5632037,5632035,5628705';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/artabstraction/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/artabstraction/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 = 'Cliff Orsi Artworks: ' + 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>Available to buy online as the following:</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="ARTABSTRACTION">';
			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;
	}
}

			

