window.thumbnails = new Object();
												thumbnails[1526391] = new thumbnail(1526391,'104746','Agapanthus','Agapanthus CP_thumb.jpg',130, 131,1,'																			photo_1526391.html');
												thumbnails[1526394] = new thumbnail(1526394,'104746','Bryher Sunset','Bryher Sunset CP_thumb.jpg',130, 92,1,'																			photo_1526394.html');
												thumbnails[1526396] = new thumbnail(1526396,'104715','Caine','Caine CP1_thumb.jpg',130, 131,1,'																			photo_1526396.html');
												thumbnails[1526414] = new thumbnail(1526414,'104715','Archie Gemmill','Archie Gemmill CP1_thumb.jpg',130, 131,1,'																			photo_1526414.html');
												thumbnails[1526416] = new thumbnail(1526416,'104744','Butler Family','Butler Portrait CP1_thumb.jpg',130, 128,1,'																			photo_1526416.html');
												thumbnails[1526418] = new thumbnail(1526418,'104715','Clint Eastwood','Clint Eastwood CP1_thumb.jpg',130, 130,1,'																			photo_1526418.html');
												thumbnails[1526422] = new thumbnail(1526422,'104744','Spaniel','Dog CP1_thumb.jpg',130, 103,1,'																			photo_1526422.html');
												thumbnails[1526426] = new thumbnail(1526426,'104746','Agapanthus Sunset','Agapanthus Sunset CP_thumb.jpg',130, 130,1,'																			photo_1526426.html');
												thumbnails[1526555] = new thumbnail(1526555,'104746','Aqua Flower','Aqua Flower CP_thumb.jpg',130, 130,1,'																			photo_1526555.html');
												thumbnails[1526557] = new thumbnail(1526557,'104746','Aqua Star','Aqua Star CP_thumb.jpg',130, 121,1,'																			photo_1526557.html');
												thumbnails[1526559] = new thumbnail(1526559,'104715','Johnny Depp','Depp CP_thumb.jpg',130, 51,1,'																			photo_1526559.html');
												thumbnails[1526564] = new thumbnail(1526564,'104715','Hendrix','Hendrix 1 CP_thumb.jpg',130, 132,1,'																			photo_1526564.html');
												thumbnails[1526567] = new thumbnail(1526567,'104715','Hendrix 2','Hendrix 2 CP_thumb.jpg',130, 195,1,'																			photo_1526567.html');
												thumbnails[1526572] = new thumbnail(1526572,'104715','Joe Satriani','Joe Satriani CP_thumb.jpg',130, 128,1,'																			photo_1526572.html');
												thumbnails[1526578] = new thumbnail(1526578,'104715','John Lennon','John Lennon CP_thumb.jpg',130, 130,1,'																			photo_1526578.html');
												thumbnails[1526584] = new thumbnail(1526584,'104715','John Wayne','John Wayne CP_thumb.jpg',130, 129,1,'																			photo_1526584.html');
												thumbnails[1526591] = new thumbnail(1526591,'104746','Koi','Koi CP_thumb.jpg',130, 131,1,'																			photo_1526591.html');
												thumbnails[1526595] = new thumbnail(1526595,'104715','Kylie','Kylie CP_thumb.jpg',130, 85,1,'																			photo_1526595.html');
												thumbnails[1526599] = new thumbnail(1526599,'104715','Lennon & McCartney','Lennon & McCartney CP_thumb.jpg',130, 131,1,'																			photo_1526599.html');
												thumbnails[1526602] = new thumbnail(1526602,'104744','Louali Portrait','Louali Portrait CP_thumb.jpg',130, 103,1,'																			photo_1526602.html');
												thumbnails[1526607] = new thumbnail(1526607,'104715','Monroe 2','Monroe 2 CP_thumb.jpg',130, 132,1,'																			photo_1526607.html');
												thumbnails[1526609] = new thumbnail(1526609,'104744','Munday Children Portrait','Munday Children CP_thumb.jpg',130, 131,1,'																			photo_1526609.html');
												thumbnails[1526611] = new thumbnail(1526611,'104744','Nguyen Portrait','Ngyen CP_thumb.jpg',130, 86,1,'																			photo_1526611.html');
												thumbnails[1526613] = new thumbnail(1526613,'104715','Oasis 1','Oasis CP_thumb.jpg',130, 130,1,'																			photo_1526613.html');
												thumbnails[1526615] = new thumbnail(1526615,'104715','Pulp Fiction','Pulp Fiction CP_thumb.jpg',130, 105,1,'																			photo_1526615.html');
												thumbnails[1526617] = new thumbnail(1526617,'104715','Robbie Willaims','Robbie Williams CP_thumb.jpg',130, 84,1,'																			photo_1526617.html');
												thumbnails[1526618] = new thumbnail(1526618,'104715','Scarface 1','Scarface 1 CP_thumb.jpg',130, 176,1,'																			photo_1526618.html');
												thumbnails[1526624] = new thumbnail(1526624,'104744','Selby Fingerprint Portrait','Selby Fingerprint Portrait CP_thumb.jpg',130, 197,1,'																			photo_1526624.html');
												thumbnails[1526626] = new thumbnail(1526626,'104715','Silly Walks','Silly Walks CP_thumb.jpg',130, 105,1,'																			photo_1526626.html');
												thumbnails[1526629] = new thumbnail(1526629,'104715','Sinatra 1','Sinatra 1 CP_thumb.jpg',130, 133,1,'																			photo_1526629.html');
												thumbnails[1526632] = new thumbnail(1526632,'104744','Bruce Family','The Bruce Family CP_thumb.jpg',130, 184,1,'																			photo_1526632.html');
												thumbnails[1526638] = new thumbnail(1526638,'104746','Tiger','Tiger CP_thumb.jpg',130, 163,1,'																			photo_1526638.html');
												thumbnails[1526749] = new thumbnail(1526749,'104746','Tresco Evening','Tresco Evening CP_thumb.jpg',130, 167,1,'																			photo_1526749.html');
												thumbnails[1526751] = new thumbnail(1526751,'104746','Tresco Sailboat','Tresco Sailboat CP_thumb.jpg',130, 308,1,'																			photo_1526751.html');
												thumbnails[1526753] = new thumbnail(1526753,'104746','Tresco Sails','Tresco Sails_thumb.jpg',130, 131,1,'																			photo_1526753.html');
												thumbnails[1526755] = new thumbnail(1526755,'104715','Ziggy Stardust','Ziggy Stardust CP_thumb.jpg',130, 133,1,'																			photo_1526755.html');
												thumbnails[1534182] = new thumbnail(1534182,'104746','American Moonshot','American moonshot CP_thumb.jpg',130, 182,1,'																			photo_1534182.html');
												thumbnails[1534186] = new thumbnail(1534186,'104746','Ocean','Ocean CP_thumb.jpg',130, 164,1,'																			photo_1534186.html');
												thumbnails[1534189] = new thumbnail(1534189,'104746','The Plough','The plough CP_thumb.jpg',130, 163,1,'																			photo_1534189.html');
												thumbnails[1537113] = new thumbnail(1537113,'104744','Four Dogs','Four Dogs CP_thumb.jpg',130, 52,1,'																			photo_1537113.html');
												thumbnails[1554471] = new thumbnail(1554471,'104715','John Lennon 2','John Lennon 2 CP1_thumb.jpg',130, 130,1,'																			photo_1554471.html');
												thumbnails[1554473] = new thumbnail(1554473,'104715','Oasis 2','Oasis 2 CP1_thumb.jpg',130, 129,1,'																			photo_1554473.html');
												thumbnails[1554475] = new thumbnail(1554475,'104715','Scarface 3 Canvas','Scarface Triptych CP1_thumb.jpg',130, 52,1,'																			photo_1554475.html');
												thumbnails[1554476] = new thumbnail(1554476,'104715','Sinatra 2','Sinatra 2 CP1_thumb.jpg',130, 131,1,'																			photo_1554476.html');
												thumbnails[1554482] = new thumbnail(1554482,'122926','Dayseye','Dayseye CP1_thumb.jpg',130, 87,1,'																			photo_1554482.html');
												thumbnails[1592097] = new thumbnail(1592097,'104715','Caine 2','Get Carter CP1_thumb.jpg',130, 190,1,'																			photo_1592097.html');
												thumbnails[1828613] = new thumbnail(1828613,'122926','Agapanthus <br>\r\n','Clikpic agapanthus_thumb.jpg',130, 86,1,'																			photo_1828613.html');
												thumbnails[1828620] = new thumbnail(1828620,'122926','Appletree Beach','Clikpic appletree beach_thumb.jpg',130, 102,1,'																			photo_1828620.html');
												thumbnails[1828623] = new thumbnail(1828623,'122926','Blue Bryher','Clikpic blue bryher1_thumb.jpg',130, 198,1,'																			photo_1828623.html');
												thumbnails[1828626] = new thumbnail(1828626,'122926','Bryher Rocks','Clikpic bryher rocks_thumb.jpg',130, 86,1,'																			photo_1828626.html');
												thumbnails[1828630] = new thumbnail(1828630,'122926','Gig Practice','Clikpic gig practice_thumb.jpg',130, 86,1,'																			photo_1828630.html');
												thumbnails[1828632] = new thumbnail(1828632,'122926','Limpet','Clikpic limpet_thumb.jpg',130, 197,1,'																			photo_1828632.html');
												thumbnails[1828633] = new thumbnail(1828633,'122926','Limpet & Jellyfish','Clikpic Limpet & Jellyfish_thumb.jpg',130, 270,1,'																			photo_1828633.html');
												thumbnails[1828635] = new thumbnail(1828635,'122926','Mezzers','Clikpic Mezzers_thumb.jpg',130, 176,1,'																			photo_1828635.html');
												thumbnails[1828667] = new thumbnail(1828667,'122926','Mooring','Clikpic Mooring 2_thumb.jpg',130, 174,1,'																			photo_1828667.html');
												thumbnails[1828672] = new thumbnail(1828672,'122926','New Grimsby<br>\r\n','Clikpic New Grimsby_thumb.jpg',130, 199,1,'																			photo_1828672.html');
												thumbnails[1828674] = new thumbnail(1828674,'122926','Orange Bryher','Clikpic Orange Bryher_thumb.jpg',130, 86,1,'																			photo_1828674.html');
												thumbnails[1828677] = new thumbnail(1828677,'122926','Pentle Bench','Clikpic Pentle Bench 2_thumb.jpg',130, 86,1,'																			photo_1828677.html');
												thumbnails[1828678] = new thumbnail(1828678,'122926','Purple Bryher','Clikpic Purple Bryher_thumb.jpg',130, 87,1,'																			photo_1828678.html');
												thumbnails[1828679] = new thumbnail(1828679,'122926','Scilly Boat','Clikpic Scilly Boat_thumb.jpg',130, 198,1,'																			photo_1828679.html');
												thumbnails[1828680] = new thumbnail(1828680,'122926','Shell','Clikpic Shell 2_thumb.jpg',130, 197,1,'																			photo_1828680.html');
												thumbnails[1828683] = new thumbnail(1828683,'122926','Tideline','Clikpic Tideline 2_thumb.jpg',130, 272,1,'																			photo_1828683.html');
												thumbnails[1828686] = new thumbnail(1828686,'122926','Two Boats','Clikpic Two Boats 2_thumb.jpg',130, 87,1,'																			photo_1828686.html');
												thumbnails[1828688] = new thumbnail(1828688,'104715','Audrey Hepburn','Clikpic hepburn1_thumb.jpg',130, 200,1,'																			photo_1828688.html');
												thumbnails[1828690] = new thumbnail(1828690,'104715','Phil Lynott','Clikpic lynott_thumb.jpg',130, 129,1,'																			photo_1828690.html');
												thumbnails[1828693] = new thumbnail(1828693,'104715','Bruce Springsteen','Clikpic springsteen_thumb.jpg',130, 159,1,'																			photo_1828693.html');
												thumbnails[1828697] = new thumbnail(1828697,'104715','Bob Marley-2Pac-Stevie Wonder','Triptych black fill_thumb.jpg',130, 52,1,'																			photo_1828697.html');
												thumbnails[1920633] = new thumbnail(1920633,'104715','Paul Weller','Paul Weller CP_thumb.jpg',130, 168,1,'																			photo_1920633.html');
												thumbnails[1920635] = new thumbnail(1920635,'104744','Yarrow 1','yarrow 1 cp_thumb.jpg',130, 130,1,'																			photo_1920635.html');
												thumbnails[1920637] = new thumbnail(1920637,'104744','Yarrow 2','yarrow 2 cp_thumb.jpg',130, 129,1,'																			photo_1920637.html');
												thumbnails[2025413] = new thumbnail(2025413,'104715','Le Tissier','Le Tissier  CP_thumb.jpg',130, 196,1,'																			photo_2025413.html');
												thumbnails[2025417] = new thumbnail(2025417,'104715','Pete Townsend','Pete Townsend CP_thumb.jpg',130, 103,1,'																			photo_2025417.html');
												thumbnails[2025425] = new thumbnail(2025425,'104715','Scarface 3 Colour','Scarface 3 Colour CP_thumb.jpg',130, 95,1,'																			photo_2025425.html');
												thumbnails[2025432] = new thumbnail(2025432,'104715','John Wayne \" The Duke\"','The Duke CP_thumb.jpg',130, 130,1,'																			photo_2025432.html');
												thumbnails[2025436] = new thumbnail(2025436,'104715','The Who','Who CP_thumb.jpg',130, 168,1,'																			photo_2025436.html');
												thumbnails[2025440] = new thumbnail(2025440,'104715','Ziggy','Ziggy CP_thumb.jpg',130, 129,1,'																			photo_2025440.html');
												thumbnails[2122606] = new thumbnail(2122606,'104744','Archie','Archie CP_thumb.jpg',130, 163,1,'																			photo_2122606.html');
												thumbnails[2122607] = new thumbnail(2122607,'104715','Gretsch','Gretsch CP_thumb.jpg',130, 196,1,'																			photo_2122607.html');
												thumbnails[2122608] = new thumbnail(2122608,'104715','Lambretta','Lambretta CP_thumb.jpg',130, 197,1,'																			photo_2122608.html');
												thumbnails[2122609] = new thumbnail(2122609,'104715','Small Faces','small faces CP_thumb.jpg',130, 51,1,'																			photo_2122609.html');
												thumbnails[2128663] = new thumbnail(2128663,'104715','Twiggy','Twiggy CP_thumb.jpg',130, 198,1,'																			photo_2128663.html');
												thumbnails[2163119] = new thumbnail(2163119,'104715','Scarface Cigar','Scarface cigarCP_thumb.jpg',130, 130,1,'																			photo_2163119.html');
												thumbnails[2163120] = new thumbnail(2163120,'104715','Elvis 2','elvis2CP_thumb.jpg',130, 131,1,'																			photo_2163120.html');
												thumbnails[2295839] = new thumbnail(2295839,'104715','E-Type','E-Type CP_thumb.jpg',130, 103,1,'																			photo_2295839.html');
												thumbnails[2295840] = new thumbnail(2295840,'104715','Steve McQueen','McQueen CP_thumb.jpg',130, 97,1,'																			photo_2295840.html');
												thumbnails[2295841] = new thumbnail(2295841,'104715','Oasis (Sepia Tones)','Oasis Sepia CP_thumb.jpg',130, 130,1,'																			photo_2295841.html');
												thumbnails[2295844] = new thumbnail(2295844,'104715','The Who 2','WHO 1 CP_thumb.jpg',130, 198,1,'																			photo_2295844.html');
												thumbnails[2295846] = new thumbnail(2295846,'104744','Stacey & Anthony','S&A 2  CP_thumb.jpg',130, 86,1,'																			photo_2295846.html');
												thumbnails[2295851] = new thumbnail(2295851,'104715','Quadrophenia','Quad 1 CP_thumb.jpg',130, 98,1,'																			photo_2295851.html');
												thumbnails[2488185] = new thumbnail(2488185,'104744','Guitar Man <br>\r\nCommissioned Portrait','Guitar Man CP_thumb.jpg',130, 199,1,'																			photo_2488185.html');
												thumbnails[2488187] = new thumbnail(2488187,'104715','Scarface Cigar 2','Scarface Cigar 2 CP_thumb.jpg',130, 131,1,'																			photo_2488187.html');
												thumbnails[2488188] = new thumbnail(2488188,'104744','Read<br>\r\nCommissioned Portrait','Read CP_thumb.jpg',130, 86,1,'																			photo_2488188.html');
												thumbnails[2553012] = new thumbnail(2553012,'104715','The Clash<br>\r\n','Clash CP_thumb.jpg',130, 130,1,'																			photo_2553012.html');
												thumbnails[2553020] = new thumbnail(2553020,'104715','Lambretta II<br>\r\n','Lambretta2CP_thumb.jpg',130, 197,1,'																			photo_2553020.html');
												thumbnails[2553027] = new thumbnail(2553027,'104715','Monroe III','Monroe III CP_thumb.jpg',130, 130,1,'																			photo_2553027.html');
												thumbnails[2619530] = new thumbnail(2619530,'104715','Steve McQueen Bullitt','Steve McQueen Bullitt_thumb.jpg',130, 198,1,'																			photo_2619530.html');
												thumbnails[2731863] = new thumbnail(2731863,'104715','Rocky','rocky2CP_thumb.jpg',130, 175,1,'																			photo_2731863.html');
												thumbnails[2874118] = new thumbnail(2874118,'104746','Tenby Harbour','Tenby Harbour CP_thumb.jpg',129, 85,1,'																			photo_2874118.html');
												thumbnails[2874137] = new thumbnail(2874137,'104744','Coco','Coco CP1_thumb.jpg',129, 128,1,'																			photo_2874137.html');
												thumbnails[2874148] = new thumbnail(2874148,'104744','Ben & Katie','ben kate cp replace_thumb.jpg',130, 176,1,'																			photo_2874148.html');
												thumbnails[2874163] = new thumbnail(2874163,'104746','Black Flowers on Red','Black flowers CP1_thumb.jpg',129, 130,1,'																			photo_2874163.html');
												thumbnails[3008785] = new thumbnail(3008785,'104715','Bullitt 2','Bullitt 2 CP_thumb.jpg',130, 104,1,'																			photo_3008785.html');
												thumbnails[3008786] = new thumbnail(3008786,'104744','Children','Children CP_thumb.jpg',130, 108,1,'																			photo_3008786.html');
												thumbnails[3008790] = new thumbnail(3008790,'104715','Hendrix 4','Hendrix 4 CP_thumb.jpg',130, 130,1,'																			photo_3008790.html');
												thumbnails[3064833] = new thumbnail(3064833,'104744','Cleary - Portrait','Cleary CP2_thumb.jpg',130, 130,1,'																			photo_3064833.html');
												thumbnails[3105698] = new thumbnail(3105698,'104744','Haynes Portrait','Haynes CP_thumb.jpg',130, 105,1,'																			photo_3105698.html');
												thumbnails[3105702] = new thumbnail(3105702,'104744','Meg Portrait','Meg CP_thumb.jpg',130, 157,1,'																			photo_3105702.html');
												thumbnails[3105704] = new thumbnail(3105704,'104744','Marchment Portrait','Marchment CP_thumb.jpg',130, 129,1,'																			photo_3105704.html');
												thumbnails[3169514] = new thumbnail(3169514,'104715','Gabriel Byrne','Gabriel Byrne CP_thumb.jpg',130, 197,1,'																			photo_3169514.html');
												thumbnails[3192397] = new thumbnail(3192397,'104715','Led Zeppelin','Led Zep CP_thumb.jpg',130, 96,1,'																			photo_3192397.html');
												thumbnails[3257894] = new thumbnail(3257894,'198652','No 1','Spin No1 CP_thumb.jpg',130, 128,1,'																			photo_3257894.html');
												thumbnails[3257905] = new thumbnail(3257905,'198652','No 2','Spin No2 CP_thumb.jpg',130, 86,1,'																			photo_3257905.html');
												thumbnails[3257911] = new thumbnail(3257911,'198652','No 3   \"Hendrix\"','Spin No3 Hendrix CP_thumb.jpg',130, 130,1,'																			photo_3257911.html');
												thumbnails[3257917] = new thumbnail(3257917,'104744','Glenister Portrait','Glenister CP_thumb.jpg',130, 87,1,'																			photo_3257917.html');
												thumbnails[3257958] = new thumbnail(3257958,'198652','No 0','Spin No 0 CP_thumb.jpg',130, 102,1,'																			photo_3257958.html');
												thumbnails[3374359] = new thumbnail(3374359,'104744','Cleary Portrait 2','Cleary 2 CP_thumb.jpg',130, 130,1,'																			photo_3374359.html');
												thumbnails[3374364] = new thumbnail(3374364,'104746','Mezzers 2','Mezzers 2 CP_thumb.jpg',130, 98,1,'																			photo_3374364.html');
												thumbnails[3464119] = new thumbnail(3464119,'198652','No 4','Spin No 4 CP1_thumb.jpg',130, 129,1,'																			photo_3464119.html');
												thumbnails[3464122] = new thumbnail(3464122,'198652','No 5','Spin No 5 CP1_thumb.jpg',130, 131,1,'																			photo_3464122.html');
												thumbnails[3496848] = new thumbnail(3496848,'104744','Jake','Jake CP_thumb.jpg',130, 163,1,'																			photo_3496848.html');
												thumbnails[3530550] = new thumbnail(3530550,'104744','Gibbs - Portrait','Gibbs Portrait CP_thumb.jpg',130, 104,1,'																			photo_3530550.html');
												thumbnails[3538364] = new thumbnail(3538364,'198652','No 6','No_6_CP_thumb.jpg',130, 131,1,'																			photo_3538364.html');
												thumbnails[3538367] = new thumbnail(3538367,'198652','No 7','No_7_CP_thumb.jpg',130, 130,1,'																			photo_3538367.html');
												thumbnails[3566527] = new thumbnail(3566527,'104715','Bob Dylan','Bob_Dylan_CP_thumb.jpg',130, 131,1,'																			photo_3566527.html');
												thumbnails[3604658] = new thumbnail(3604658,'104715','Ali','Ali_CP_thumb.jpg',130, 130,1,'																			photo_3604658.html');
												thumbnails[3775729] = new thumbnail(3775729,'104715','Goodfellas','Goodfellas_CP_thumb.jpg',130, 86,1,'																			photo_3775729.html');
												thumbnails[3775731] = new thumbnail(3775731,'104744','Laycock Portrait','Laycock_CP_thumb.jpg',130, 130,1,'																			photo_3775731.html');
												thumbnails[3812738] = new thumbnail(3812738,'104715','Mick Jagger','Jagger_CP_thumb.jpg',130, 131,1,'																			photo_3812738.html');
												thumbnails[3812742] = new thumbnail(3812742,'104715','ZAPPA','Zappa_CP_thumb.jpg',130, 130,1,'																			photo_3812742.html');
												thumbnails[4164283] = new thumbnail(4164283,'104744','Klug - Portrait','Klug_Portrait_CP_thumb.jpg',130, 129,1,'																			photo_4164283.html');
												thumbnails[4164287] = new thumbnail(4164287,'104715','Roger Moore - 007','Roger_Moore_Bond_CP_thumb.jpg',130, 130,1,'																			photo_4164287.html');
												thumbnails[4164288] = new thumbnail(4164288,'104715','Scarface 6','Scarface_6_CP_thumb.jpg',130, 129,1,'																			photo_4164288.html');
												thumbnails[4572292] = new thumbnail(4572292,'104715','Hendrix Stencil','Hendrix_Stencil_CP_thumb.jpg',130, 130,1,'																			photo_4572292.html');
												thumbnails[4572293] = new thumbnail(4572293,'104715','Hendrix Stencil 2','Hendrix_Stencil_2_CP_thumb.jpg',130, 131,1,'																			photo_4572293.html');
												thumbnails[4572295] = new thumbnail(4572295,'104715','Hendrix Stencil 3','Hendrix_Stencil_3_CP_thumb.jpg',130, 130,1,'																			photo_4572295.html');
												thumbnails[4572298] = new thumbnail(4572298,'104715','Mod Icons - Tryptich','Mod_Icons_CP_thumb.jpg',130, 41,1,'																			photo_4572298.html');
												thumbnails[4601133] = new thumbnail(4601133,'104744','Florian 1','Florian_1_CP_thumb.jpg',130, 86,1,'																			photo_4601133.html');
												thumbnails[4601134] = new thumbnail(4601134,'104744','Florian 2','Florian_2_CP_thumb.jpg',130, 85,1,'																			photo_4601134.html');
												thumbnails[4601137] = new thumbnail(4601137,'104715','Monroe Stencil 1','Monroe_Stencil_1_CP_thumb.jpg',130, 158,1,'																			photo_4601137.html');
												thumbnails[4601139] = new thumbnail(4601139,'104715','Monroe Stencil 2','Monroe_Stencil_2_CP_thumb.jpg',130, 156,1,'																			photo_4601139.html');
												thumbnails[4601140] = new thumbnail(4601140,'104746','Skull Stencil','Skull_Stencil_CP_thumb.jpg',130, 156,1,'																			photo_4601140.html');
												thumbnails[4688164] = new thumbnail(4688164,'104744','Julie & Olive Portrait','Gibson_Portrait_CP_thumb.jpg',130, 155,1,'																			photo_4688164.html');
												thumbnails[4688165] = new thumbnail(4688165,'104715','Paul weller 2','Paul_Weller_2_CP_thumb.jpg',130, 155,1,'																			photo_4688165.html');
												thumbnails[4954375] = new thumbnail(4954375,'104715','Beatles Quad','Beatles_Quad_CP_thumb.jpg',130, 173,1,'																			photo_4954375.html');
												thumbnails[4954379] = new thumbnail(4954379,'104715','Audrey Hepburn Mono','Audrey_Mono_CP_thumb.jpg',130, 174,1,'																			photo_4954379.html');
												thumbnails[4954383] = new thumbnail(4954383,'104715','Bobby Moore 66','Bobby_Moore_66_CP_thumb.jpg',130, 156,1,'																			photo_4954383.html');
												thumbnails[4954387] = new thumbnail(4954387,'104715','Italian Job','Italian_Job_CP_thumb.jpg',130, 130,1,'																			photo_4954387.html');
												thumbnails[4954390] = new thumbnail(4954390,'104715','Monroe Baby Pink','Monroe_Pink_CP_thumb.jpg',130, 108,1,'																			photo_4954390.html');
												thumbnails[4954393] = new thumbnail(4954393,'104715','Quadrophenia Ride','Quadrophenia_Ride_CP_thumb.jpg',130, 156,1,'																			photo_4954393.html');
												thumbnails[4954396] = new thumbnail(4954396,'104746','Tattoo Skull','Tattoo_Skull_CP_thumb.jpg',130, 156,1,'																			photo_4954396.html');
												thumbnails[4954400] = new thumbnail(4954400,'104715','Scarface Mono','Scarface_Mono_CP_thumb.jpg',130, 108,1,'																			photo_4954400.html');
												thumbnails[4954403] = new thumbnail(4954403,'104715','Hendrix Tattoo Roses','Hendrix_Tattoo_Roses_CP_thumb.jpg',130, 130,1,'																			photo_4954403.html');
												thumbnails[5253958] = new thumbnail(5253958,'104715','Elvis 68 Blue Guitar','Elvis_Blue_Guitar_CP_thumb.jpg',130, 130,1,'																			photo_5253958.html');
												thumbnails[5253966] = new thumbnail(5253966,'104715','George Best','George_Best_CP_thumb.jpg',130, 130,1,'																			photo_5253966.html');
												thumbnails[5253971] = new thumbnail(5253971,'104744','Self','Self_CP_thumb.jpg',130, 173,1,'																			photo_5253971.html');
												thumbnails[5836346] = new thumbnail(5836346,'104746','Landscape 1','Landscape_1_CP_thumb.jpg',130, 104,1,'																			photo_5836346.html');
												thumbnails[5836348] = new thumbnail(5836348,'104746','Landscape 2','Landscape_2_CP_thumb.jpg',130, 87,1,'																			photo_5836348.html');
												thumbnails[5836350] = new thumbnail(5836350,'104746','Landscape 3','Lanscape_3_CP_thumb.jpg',130, 46,1,'																			photo_5836350.html');
												thumbnails[5836351] = new thumbnail(5836351,'104746','Landscape 4','Landscape_4_CP_thumb.jpg',130, 173,1,'																			photo_5836351.html');
												thumbnails[5836353] = new thumbnail(5836353,'104744','Bernard Portrait','Bernhard_Portrait_CP_thumb.jpg',130, 87,1,'																			photo_5836353.html');
												thumbnails[5836357] = new thumbnail(5836357,'104744','Sophia Portrait','Sophia_Portrait_CP_thumb.jpg',130, 130,1,'																			photo_5836357.html');
												thumbnails[5836366] = new thumbnail(5836366,'104744','Tobin - Helicopter Man','tobin_1_the_one_CP_thumb.jpg',130, 42,1,'																			photo_5836366.html');
												thumbnails[6331200] = new thumbnail(6331200,'104746','Cherry Blossom','Cherry_Blossom_CP_thumb.jpg',130, 130,1,'																			photo_6331200.html');
												thumbnails[6331204] = new thumbnail(6331204,'104746','Foxgloves','Foxgloves_CP_thumb.jpg',130, 156,1,'																			photo_6331204.html');
												thumbnails[6331207] = new thumbnail(6331207,'104746','KOI 2','KOI_2_CP_thumb.jpg',130, 97,1,'																			photo_6331207.html');
												thumbnails[6331210] = new thumbnail(6331210,'104715','Garbo','Garbo_CP_thumb.jpg',130, 125,1,'																			photo_6331210.html');
												thumbnails[1526562] = new thumbnail(1526562,'104715','Getaway','Getaway CP_thumb.jpg',130, 85,1,'																			photo_1526562.html');
												thumbnails[1526636] = new thumbnail(1526636,'104715','The Rat Pack','The Rat Pack CP_thumb.jpg',130, 85,1,'																			photo_1526636.html');
												thumbnails[1526386] = new thumbnail(1526386,'104715','Jim Morrison','Jim Morrison CP_thumb.jpg',130, 130,1,'																			photo_1526386.html');
												thumbnails[1526587] = new thumbnail(1526587,'104715','Kill Bill','Kill Bill CP_thumb.jpg',130, 91,1,'																			photo_1526587.html');
												thumbnails[1526606] = new thumbnail(1526606,'104715','Monroe 1','Monroe 1 CP_thumb.jpg',130, 130,1,'																			photo_1526606.html');
												thumbnails[1526620] = new thumbnail(1526620,'104715','Scarface 2','Scarface 2 CP_thumb.jpg',130, 96,1,'																			photo_1526620.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[198652] = new gallery(198652,'3464122','Centrifugal Abstract','gallery',[3257894,3257905,3257911,3257958,3464119,3464122,3538364,3538367],0, 0, '', '																																																																																																							gallery_198652.html',0,0);
				  					galleries[104715] = new gallery(104715,'2619530,2553020,2488187,2128663,2122608,2025417,1526755,1526636,1526620,1526562','Icons','gallery',[1526396,1526414,1526418,1526559,1526564,1526567,1526572,1526578,1526584,1526595,1526599,1526607,1526613,1526615,1526617,1526618,1526626,1526629,1526755,1554471,1554473,1554475,1554476,1592097,1828688,1828690,1828693,1828697,1920633,2025413,2025417,2025425,2025432,2025436,2025440,2122607,2122608,2122609,2128663,2163119,2163120,2295839,2295840,2295841,2295844,2295851,2488187,2553012,2553020,2553027,2619530,2731863,3008785,3008790,3169514,3192397,3566527,3604658,3775729,3812738,3812742,4164287,4164288,4572292,4572293,4572295,4572298,4601137,4601139,4688165,4954375,4954379,4954383,4954387,4954390,4954393,4954400,4954403,5253958,5253966,6331210,1526562,1526636,1526386,1526587,1526606,1526620],0, 0, '', '																																																																																																							gallery_104715.html',0,0);
				  					galleries[104744] = new gallery(104744,'3064833,2488188','Portraits','gallery',[1526416,1526422,1526602,1526609,1526611,1526624,1526632,1537113,1920635,1920637,2122606,2295846,2488185,2488188,2874137,2874148,3008786,3064833,3105698,3105702,3105704,3257917,3374359,3496848,3530550,3775731,4164283,4601133,4601134,4688164,5253971,5836353,5836357,5836366],0, 0, '', '																																																																																																							gallery_104744.html',0,0);
				  					galleries[104746] = new gallery(104746,'1526753,1526391','Other Work & Landscapes','gallery',[1526391,1526394,1526426,1526555,1526557,1526591,1526638,1526749,1526751,1526753,1534182,1534186,1534189,2874118,2874163,3374364,4601140,4954396,5836346,5836348,5836350,5836351,6331200,6331204,6331207],0, 0, '', '																																																																																																							gallery_104746.html',0,0);
				  					galleries[122926] = new gallery(122926,'1828680,1828679,1828613','Western Approaches','gallery',[1554482,1828613,1828620,1828623,1828626,1828630,1828632,1828633,1828635,1828667,1828672,1828674,1828677,1828678,1828679,1828680,1828683,1828686],0, 0, '', '																																																																																																							gallery_122926.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '3538367,2488187,2295841,2295840,2295839,2025417';
imageSets[2] = '3464122,3064833,2619530,2553020,2488188,2488187,2128663,2122608,2025417,1828680,1828679,1828613,1526755,1526753,1526636,1526620,1526562,1526391';
imageSets[3] = '6331210,6331207,6331204,6331200,5836366,5836357,5836353,5836351,5836350,5836348,5836346,5253971,5253966,5253958,4954403,4954400,4954396,4954393,4954390,4954387,4954383,4954379,4954375,4688165,4688164,4601140,4601139,4601137,4601134,4601133,4572298,4572295,4572293,4572292,4164288,4164287,4164283,3812742,3812738,3775731,3775729,3604658,3566527,3538367,3538364,3530550,3496848,3464122,3464119,3374364';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/adamsart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/adamsart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/adamsart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/adamsart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/adamsart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/adamsart/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:'',
                    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 (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    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.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Andrew Adams - Contemporary Paintings: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			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').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp = temp + '<p>Order this print:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> 							' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy this print online:</p>';
				temp = temp + '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp = temp + '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
				
		temp = temp + getPaymentOptions(this.payment_groups_id);
		temp = temp + '</select>';
		temp = 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 = 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({            href: thumbnails[imageID].fnGalleryLink(gallery_id),            title: galleries[gallery_id].title          });
        }
							}
										}
}

/***************************************************************************
* 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 + ' | ';
				}
				temp = temp + '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
			}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

