window.thumbnails = new Object();
												thumbnails[6765427] = new thumbnail(6765427,'','','_DSC6447_thumb.jpg',130, 87,18,'#');
												thumbnails[1239560] = new thumbnail(1239560,'421619','Templemore','Border_Polaroid_A copySML_thumb.jpg',130, 195,18,'photo_1239560.html');
												thumbnails[1239577] = new thumbnail(1239577,'88647','Giants Ring','GiantsRingSML_thumb.jpg',130, 195,18,'photo_1239577.html');
												thumbnails[1247799] = new thumbnail(1247799,'88647','Ashness Bridge','AshnessSML_thumb.jpg',130, 195,18,'photo_1247799.html');
												thumbnails[1247819] = new thumbnail(1247819,'88649','Honister Tower','HonisterTowerSML_thumb.jpg',130, 87,18,'photo_1247819.html');
												thumbnails[1247829] = new thumbnail(1247829,'88649','Forgotten Memorandum','ForgottenMemorandumSML_thumb.jpg',130, 87,18,'photo_1247829.html');
												thumbnails[1247866] = new thumbnail(1247866,'88649','Moored II','MooredIISML_thumb.jpg',130, 195,18,'photo_1247866.html');
												thumbnails[1247906] = new thumbnail(1247906,'88649','Water Obscura','WaterObscuraSML_thumb.jpg',130, 195,18,'photo_1247906.html');
												thumbnails[1247913] = new thumbnail(1247913,'88649','Forest Light','ForestLightSML_thumb.jpg',130, 195,18,'photo_1247913.html');
												thumbnails[1247923] = new thumbnail(1247923,'88647','Windermere Sunset','WindermereSunsetSML_thumb.jpg',130, 67,18,'photo_1247923.html');
												thumbnails[1247926] = new thumbnail(1247926,'88647','The \"Grail\"','TheGrailSML_thumb.jpg',130, 195,18,'photo_1247926.html');
												thumbnails[1247930] = new thumbnail(1247930,'88649','The Weight of Water','WeightOfWaterSML_thumb.jpg',130, 86,18,'photo_1247930.html');
												thumbnails[1247935] = new thumbnail(1247935,'88647','Giants Causeway','CausewaySML_thumb.jpg',130, 195,18,'photo_1247935.html');
												thumbnails[1248228] = new thumbnail(1248228,'88649','Mountstewart Still Life II','MountstewartStilllLifeSML_thumb.jpg',130, 195,18,'photo_1248228.html');
												thumbnails[1248289] = new thumbnail(1248289,'88649','Mountstewart Still Life I','MountstewartStillLifeISML_thumb.jpg',130, 87,18,'photo_1248289.html');
												thumbnails[1248333] = new thumbnail(1248333,'88647','Castlerigg','CastleriggSML3_thumb.jpg',130, 22,18,'photo_1248333.html');
												thumbnails[1248367] = new thumbnail(1248367,'88647','Eillan Donan','EillanDonan2SML_thumb.jpg',130, 43,18,'photo_1248367.html');
												thumbnails[1248387] = new thumbnail(1248387,'88647','Mussenden Temple','MussendenirVgSML_thumb.jpg',130, 195,18,'photo_1248387.html');
												thumbnails[1248391] = new thumbnail(1248391,'88647','Nendrum','NendrumBWSML_thumb.jpg',130, 41,18,'photo_1248391.html');
												thumbnails[1248409] = new thumbnail(1248409,'88649','Broken','BrokenSML_thumb.jpg',130, 86,18,'photo_1248409.html');
												thumbnails[1248414] = new thumbnail(1248414,'88649','Rusted Door','RustedDooorSML_thumb.jpg',130, 86,18,'photo_1248414.html');
												thumbnails[1248426] = new thumbnail(1248426,'88647','Dunlewy Church','DunlewyChurchSML_thumb.jpg',130, 86,18,'photo_1248426.html');
												thumbnails[1248437] = new thumbnail(1248437,'88649','Silent Tower','SilentTowerSML_thumb.jpg',130, 86,18,'photo_1248437.html');
												thumbnails[1248442] = new thumbnail(1248442,'421619','No One Home II','NobodyHomeIISML_thumb.jpg',130, 195,18,'photo_1248442.html');
												thumbnails[1248470] = new thumbnail(1248470,'88649','No One Home III','NObodyHomeIIISML_thumb.jpg',130, 86,18,'photo_1248470.html');
												thumbnails[1248501] = new thumbnail(1248501,'88647','Desolation','DesolationSML_thumb.jpg',130, 195,18,'photo_1248501.html');
												thumbnails[1248572] = new thumbnail(1248572,'88649','Guarded','GuardedSML_thumb.jpg',130, 87,18,'photo_1248572.html');
												thumbnails[1284090] = new thumbnail(1284090,'88648','Gothika','BekLongSML_thumb.jpg',130, 39,18,'photo_1284090.html');
												thumbnails[1288414] = new thumbnail(1288414,'88648','Tired','DSC_9897SML_thumb.jpg',130, 86,18,'photo_1288414.html');
												thumbnails[1305460] = new thumbnail(1305460,'88649','Antediluvian Still Life I','DSC1283SML_thumb.jpg',130, 86,18,'photo_1305460.html');
												thumbnails[1327442] = new thumbnail(1327442,'88649','History From Glass','DSC_1369betterSML_thumb.jpg',130, 195,18,'photo_1327442.html');
												thumbnails[1327443] = new thumbnail(1327443,'88649','Memorial Door','MemorialDoor_thumb.jpg',130, 89,18,'photo_1327443.html');
												thumbnails[1327752] = new thumbnail(1327752,'88649','Up or Down?','UpOrDownSML_thumb.jpg',130, 103,18,'photo_1327752.html');
												thumbnails[1358713] = new thumbnail(1358713,'88649','Warm, Dry','WarmDrySmall_thumb.jpg',130, 195,18,'photo_1358713.html');
												thumbnails[1444161] = new thumbnail(1444161,'88648','Amiee','DSC_1654 copySML_thumb.jpg',130, 112,18,'photo_1444161.html');
												thumbnails[1478479] = new thumbnail(1478479,'88649','St Ann\'s Light Study I','StAnnsLightISML_thumb.jpg',130, 78,18,'photo_1478479.html');
												thumbnails[1478480] = new thumbnail(1478480,'88649','St Ann\'s Light Study II','StAnnsLightIISML_thumb.jpg',130, 87,18,'photo_1478480.html');
												thumbnails[1551842] = new thumbnail(1551842,'88647','Mountains of Mourne','Pano1cropBWSML_thumb.jpg',130, 30,18,'photo_1551842.html');
												thumbnails[1606380] = new thumbnail(1606380,'88647','Dark Hedges','DSC_2138 bwBESTsml_thumb.jpg',130, 87,18,'photo_1606380.html');
												thumbnails[1606397] = new thumbnail(1606397,'421619','Window in Disrepair','DSC_2104SML_thumb.jpg',130, 195,18,'photo_1606397.html');
												thumbnails[2204775] = new thumbnail(2204775,'88648','Crawler','DSC_2916longSML_thumb.jpg',130, 75,18,'photo_2204775.html');
												thumbnails[2204836] = new thumbnail(2204836,'88647','Layd to Rest','DSC_3038 copy_thumb.jpg',130, 87,18,'photo_2204836.html');
												thumbnails[2205160] = new thumbnail(2205160,'421619','Abandoned','DSC_2557 copySML_thumb.jpg',130, 195,18,'photo_2205160.html');
												thumbnails[2205254] = new thumbnail(2205254,'88648','sk8r','Sk8erSML_thumb.jpg',130, 195,18,'photo_2205254.html');
												thumbnails[2241452] = new thumbnail(2241452,'88647','Tree in Ancient Site','DSC_3017 copySML_thumb.jpg',130, 195,18,'photo_2241452.html');
												thumbnails[2261797] = new thumbnail(2261797,'88648','Mini Dude','DSC_3400SML_thumb.jpg',130, 87,18,'photo_2261797.html');
												thumbnails[2361537] = new thumbnail(2361537,'88648','Cherished','DSC_3993 _24x20SML_thumb.jpg',130, 156,18,'photo_2361537.html');
												thumbnails[2404497] = new thumbnail(2404497,'88648','Little Drummer Boy','DSC_3597rs copySML_thumb.jpg',130, 156,18,'photo_2404497.html');
												thumbnails[2587749] = new thumbnail(2587749,'88647','Inch Abbey','DSC_4734 SML_thumb.jpg',130, 87,18,'photo_2587749.html');
												thumbnails[2735622] = new thumbnail(2735622,'88648','Glamour and Decay','DSC_5175 72dpi_thumb.jpg',130, 195,18,'photo_2735622.html');
												thumbnails[2758523] = new thumbnail(2758523,'88648','Tatu','DSC_5125 crossprocessed72dpi_thumb.jpg',130, 87,18,'photo_2758523.html');
												thumbnails[3253280] = new thumbnail(3253280,'88648','Geetar Man','3878sml_thumb.jpg',130, 130,18,'photo_3253280.html');
												thumbnails[3253375] = new thumbnail(3253375,'88648','Father and daughter','DSC_6149sml_thumb.jpg',130, 87,18,'photo_3253375.html');
												thumbnails[3253396] = new thumbnail(3253396,'88648','Love is Sweet!','RayKelsey-7327sml_thumb.jpg',130, 87,18,'photo_3253396.html');
												thumbnails[3253457] = new thumbnail(3253457,'88648','Adored','DSC_5437sml_thumb.jpg',130, 94,18,'photo_3253457.html');
												thumbnails[3253463] = new thumbnail(3253463,'88648','The Hand-Off','DSC_5515sml_thumb.jpg',130, 89,18,'photo_3253463.html');
												thumbnails[3253467] = new thumbnail(3253467,'88648','Family Portrait','DSC_6304bwhk sml_thumb.jpg',130, 85,18,'photo_3253467.html');
												thumbnails[3253477] = new thumbnail(3253477,'88648','Every Dog Has It\'s day','DSC_6330sml_thumb.jpg',130, 186,18,'photo_3253477.html');
												thumbnails[3253507] = new thumbnail(3253507,'88648','Fi II','DSC_6354b sml_thumb.jpg',130, 102,18,'photo_3253507.html');
												thumbnails[3253512] = new thumbnail(3253512,'88648','Baby Study','DSC_6387 sml_thumb.jpg',130, 130,18,'photo_3253512.html');
												thumbnails[3438203] = new thumbnail(3438203,'88648','Hepburn','Hepburn bwSml_thumb.jpg',130, 87,18,'photo_3438203.html');
												thumbnails[3438209] = new thumbnail(3438209,'88648','Mother and Daughter','Mother daughter Sml_thumb.jpg',130, 130,18,'photo_3438209.html');
												thumbnails[3510711] = new thumbnail(3510711,'88648','Against the wall I','_DSC0162sml_thumb.jpg',130, 104,18,'photo_3510711.html');
												thumbnails[3611221] = new thumbnail(3611221,'421619','Fled','_DSC0218sml_thumb.jpg',130, 127,18,'photo_3611221.html');
												thumbnails[3611226] = new thumbnail(3611226,'88648','Rambo','Lister-7803sml_thumb.jpg',130, 173,18,'photo_3611226.html');
												thumbnails[3611296] = new thumbnail(3611296,'88648','I Know! - I\'m cool!','McDonnell-0375_8x8sml_thumb.jpg',130, 130,18,'photo_3611296.html');
												thumbnails[3611297] = new thumbnail(3611297,'88648','Pile-On!!!!!!!!!!','McDonnell-0405sml_thumb.jpg',130, 156,18,'photo_3611297.html');
												thumbnails[3611300] = new thumbnail(3611300,'88648','Trio','McDonnell-0425sml_thumb.jpg',130, 102,18,'photo_3611300.html');
												thumbnails[3611304] = new thumbnail(3611304,'88648','Bright eyes','Lister-7765conSML_thumb.jpg',130, 130,18,'photo_3611304.html');
												thumbnails[3611354] = new thumbnail(3611354,'88648','Downside-Up!','McDonnell-Boys_TriptychSML_thumb.jpg',130, 53,18,'photo_3611354.html');
												thumbnails[4413624] = new thumbnail(4413624,'234928','','_6275782bw_thumb.jpg',130, 130,18,'photo_4413624.html');
												thumbnails[4413627] = new thumbnail(4413627,'234928','','_DSC2996bw_thumb.jpg',130, 130,18,'photo_4413627.html');
												thumbnails[4413628] = new thumbnail(4413628,'234928','','_DSC3096bw_thumb.jpg',130, 130,18,'photo_4413628.html');
												thumbnails[4413631] = new thumbnail(4413631,'234928','','_DSC3210hist_thumb.jpg',130, 130,18,'photo_4413631.html');
												thumbnails[4413633] = new thumbnail(4413633,'234928','','_DSC33041_thumb.jpg',130, 130,18,'photo_4413633.html');
												thumbnails[4413637] = new thumbnail(4413637,'234928','','_DSC3308_thumb.jpg',130, 130,18,'photo_4413637.html');
												thumbnails[4413638] = new thumbnail(4413638,'234928','','_DSC3311_thumb.jpg',130, 130,18,'photo_4413638.html');
												thumbnails[4413639] = new thumbnail(4413639,'234928','','_DSC3314desat_thumb.jpg',130, 130,18,'photo_4413639.html');
												thumbnails[4413642] = new thumbnail(4413642,'234928','','_DSC3328lomo_thumb.jpg',130, 130,18,'photo_4413642.html');
												thumbnails[4660246] = new thumbnail(4660246,'88648','Fields of Gold','_DSC1640aSml_thumb.jpg',130, 87,18,'photo_4660246.html');
												thumbnails[5326717] = new thumbnail(5326717,'88648','Glamour and Decay III','_DSC5776evilsml_thumb.jpg',130, 163,18,'photo_5326717.html');
												thumbnails[5326721] = new thumbnail(5326721,'88648','Glamour and Decay IV','_DSC5761cropsml_thumb.jpg',130, 104,18,'photo_5326721.html');
												thumbnails[5326734] = new thumbnail(5326734,'88648','','_DSC5172bwx_thumb.jpg',130, 130,18,'photo_5326734.html');
												thumbnails[5326735] = new thumbnail(5326735,'88648','','_DSC5179_thumb.jpg',130, 163,18,'photo_5326735.html');
												thumbnails[5326739] = new thumbnail(5326739,'88648','','_DSC5075hi_thumb.jpg',130, 163,18,'photo_5326739.html');
												thumbnails[5326745] = new thumbnail(5326745,'88648','Dogs Days!','_DSC5257lo_thumb.jpg',130, 163,18,'photo_5326745.html');
												thumbnails[5326748] = new thumbnail(5326748,'88648','Blue Eyes','_DSC5219hdr_thumb.jpg',130, 104,18,'photo_5326748.html');
												thumbnails[5326752] = new thumbnail(5326752,'88648','','_DSC5394_thumb.jpg',130, 163,18,'photo_5326752.html');
												thumbnails[5377286] = new thumbnail(5377286,'303260','Cherub','CherubBWSml_thumb.jpg',130, 196,18,'photo_5377286.html');
												thumbnails[5377293] = new thumbnail(5377293,'303260','Owl','owlSml_thumb.jpg',130, 87,18,'photo_5377293.html');
												thumbnails[5377378] = new thumbnail(5377378,'303260','False God','StatueBWSml_thumb.jpg',130, 196,18,'photo_5377378.html');
												thumbnails[5377388] = new thumbnail(5377388,'303260','Stone on Sand','StoneBWSml_thumb.jpg',130, 87,18,'photo_5377388.html');
												thumbnails[5377398] = new thumbnail(5377398,'303260','Forest','TreesSml_thumb.jpg',130, 196,18,'photo_5377398.html');
												thumbnails[5377402] = new thumbnail(5377402,'303260','Sheepish','RamSml_thumb.jpg',130, 196,18,'photo_5377402.html');
												thumbnails[5377419] = new thumbnail(5377419,'303260','Haunted?','HousBWSml_thumb.jpg',130, 87,18,'photo_5377419.html');
												thumbnails[5377427] = new thumbnail(5377427,'303260','Gazing','MumBWSml_thumb.jpg',130, 104,18,'photo_5377427.html');
												thumbnails[5464048] = new thumbnail(5464048,'88648','Aphrodite','_DSC5471tat2crop2sml_thumb.jpg',130, 163,18,'photo_5464048.html');
												thumbnails[5464054] = new thumbnail(5464054,'88648','The Mad Hatter','_DSC5990glamsml_thumb.jpg',130, 163,18,'photo_5464054.html');
												thumbnails[5464100] = new thumbnail(5464100,'88647','Causeway II','_DSC2748final2sml_thumb.jpg',130, 81,18,'photo_5464100.html');
												thumbnails[5606030] = new thumbnail(5606030,'303260','','DSC_8936bwsml_thumb.jpg',130, 87,18,'photo_5606030.html');
												thumbnails[5606031] = new thumbnail(5606031,'303260','','DSC_8930sml_thumb.jpg',130, 87,18,'photo_5606031.html');
												thumbnails[5606035] = new thumbnail(5606035,'303260','','DSC_8948lomosml_thumb.jpg',130, 196,18,'photo_5606035.html');
												thumbnails[5606038] = new thumbnail(5606038,'303260','','DSC_9015lomosml_thumb.jpg',130, 196,18,'photo_5606038.html');
												thumbnails[5606041] = new thumbnail(5606041,'303260','','DSC_9014sml_thumb.jpg',130, 196,18,'photo_5606041.html');
												thumbnails[5837694] = new thumbnail(5837694,'88647','Shipwrecked','DSC_9505sml_thumb.jpg',130, 195,18,'photo_5837694.html');
												thumbnails[5837699] = new thumbnail(5837699,'421619','Corpus Christi','_DSC3680sml_thumb.jpg',130, 196,18,'photo_5837699.html');
												thumbnails[5837703] = new thumbnail(5837703,'88647','Moored III','DSC_1126sml_thumb.jpg',130, 202,18,'photo_5837703.html');
												thumbnails[5837707] = new thumbnail(5837707,'88648','','_DSC6672hihdrSml_thumb.jpg',130, 130,18,'photo_5837707.html');
												thumbnails[5837714] = new thumbnail(5837714,'88648','','_DSC6691glamcropSml_thumb.jpg',130, 104,18,'photo_5837714.html');
												thumbnails[5837718] = new thumbnail(5837718,'88648','','_PortraitCompositeBurnSML_thumb.jpg',130, 33,18,'photo_5837718.html');
												thumbnails[6076981] = new thumbnail(6076981,'88649','10 year Geocaching Event','_DSC8813_thumb.jpg',130, 87,18,'photo_6076981.html');
												thumbnails[6765322] = new thumbnail(6765322,'234928','','_DSC9749hdr_resize_thumb.jpg',130, 163,18,'photo_6765322.html');
												thumbnails[6765324] = new thumbnail(6765324,'234928','','_DSC9830_resize_thumb.jpg',130, 130,18,'photo_6765324.html');
												thumbnails[6765325] = new thumbnail(6765325,'234928','','_DSC9847bwcrop_resize_thumb.jpg',130, 49,18,'photo_6765325.html');
												thumbnails[6765326] = new thumbnail(6765326,'234928','','_DSC9955bw_resize_thumb.jpg',130, 87,18,'photo_6765326.html');
												thumbnails[6765327] = new thumbnail(6765327,'234928','','DSC_1935_resize_thumb.jpg',130, 195,18,'photo_6765327.html');
												thumbnails[6765338] = new thumbnail(6765338,'234928','','_DSC0068_resize_thumb.jpg',130, 104,18,'photo_6765338.html');
												thumbnails[6765339] = new thumbnail(6765339,'234928','','_DSC0116bw_resize_thumb.jpg',130, 70,18,'photo_6765339.html');
												thumbnails[6765341] = new thumbnail(6765341,'234928','','_DSC0131hdrCorrected_resize_thumb.jpg',130, 86,18,'photo_6765341.html');
												thumbnails[6765342] = new thumbnail(6765342,'234928','','_DSC0161old_resize_thumb.jpg',130, 70,18,'photo_6765342.html');
												thumbnails[6765343] = new thumbnail(6765343,'234928','','_DSC0261_resize_thumb.jpg',130, 195,18,'photo_6765343.html');
												thumbnails[6765344] = new thumbnail(6765344,'234928','','_DSC0415bw_resize_thumb.jpg',130, 87,18,'photo_6765344.html');
												thumbnails[6765346] = new thumbnail(6765346,'234928','','_DSC3442_resize_thumb.jpg',130, 195,18,'photo_6765346.html');
												thumbnails[6765347] = new thumbnail(6765347,'234928','','_DSC3460_resize_thumb.jpg',130, 104,18,'photo_6765347.html');
												thumbnails[6765348] = new thumbnail(6765348,'234928','','_DSC3548_resize_thumb.jpg',130, 95,18,'photo_6765348.html');
												thumbnails[6765349] = new thumbnail(6765349,'234928','','_DSC3671_resize_thumb.jpg',130, 87,18,'photo_6765349.html');
												thumbnails[6765350] = new thumbnail(6765350,'234928','','_DSC3663bw_resize_thumb.jpg',130, 61,18,'photo_6765350.html');
												thumbnails[6765353] = new thumbnail(6765353,'421619','','_DSC2572_thumb.jpg',130, 196,18,'photo_6765353.html');
												thumbnails[6765354] = new thumbnail(6765354,'421619','','_DSC2606_7_8_lomo_thumb.jpg',130, 104,18,'photo_6765354.html');
												thumbnails[6765358] = new thumbnail(6765358,'421619','','_DSC2645bw_thumb.jpg',130, 84,18,'photo_6765358.html');
												thumbnails[6765420] = new thumbnail(6765420,'421619','','_DSC2720_1_2_tonemappedevil_thumb.jpg',130, 86,18,'photo_6765420.html');
												thumbnails[6765424] = new thumbnail(6765424,'421619','','_DSC9508_thumb.jpg',130, 196,18,'photo_6765424.html');
												thumbnails[6765425] = new thumbnail(6765425,'421619','','_DSC9596bw_thumb.jpg',130, 87,18,'photo_6765425.html');
												thumbnails[6765426] = new thumbnail(6765426,'421619','','_DSC6418bw_thumb.jpg',130, 87,18,'photo_6765426.html');
												thumbnails[6765433] = new thumbnail(6765433,'88648','','_DSC8842bw_thumb.jpg',130, 87,18,'photo_6765433.html');
												thumbnails[6765434] = new thumbnail(6765434,'421619','','_DSC6951sml_thumb.jpg',130, 87,18,'photo_6765434.html');
												thumbnails[6765435] = new thumbnail(6765435,'88649','','_DSC7045sml_thumb.jpg',130, 196,18,'photo_6765435.html');
												thumbnails[6765436] = new thumbnail(6765436,'421619','','_DSC1454_thumb.jpg',130, 196,18,'photo_6765436.html');
												thumbnails[6765438] = new thumbnail(6765438,'421619','','_DSC7445sml_thumb.jpg',130, 196,18,'photo_6765438.html');
												thumbnails[6765439] = new thumbnail(6765439,'421619','','_DSC1473_thumb.jpg',130, 196,18,'photo_6765439.html');
												thumbnails[6765440] = new thumbnail(6765440,'421619','','_DSC1485bw_thumb.jpg',130, 87,18,'photo_6765440.html');
												thumbnails[6765449] = new thumbnail(6765449,'421619','','_DSC8453bw_thumb.jpg',130, 196,18,'photo_6765449.html');
												thumbnails[6765451] = new thumbnail(6765451,'421619','','DSC_6878_thumb.jpg',130, 87,18,'photo_6765451.html');
												thumbnails[6765452] = new thumbnail(6765452,'421619','','DSC_6973_thumb.jpg',130, 196,18,'photo_6765452.html');
												thumbnails[6765453] = new thumbnail(6765453,'88649','','DSC_7156_resize_thumb.jpg',130, 87,18,'photo_6765453.html');
												thumbnails[6765454] = new thumbnail(6765454,'421619','','DSC_7170bw_resize_thumb.jpg',130, 82,18,'photo_6765454.html');
												thumbnails[6765455] = new thumbnail(6765455,'421619','','DSC_7177_resize_thumb.jpg',130, 87,18,'photo_6765455.html');
												thumbnails[6905864] = new thumbnail(6905864,'421619','','_DSC1458bw_-_Copy_thumb.jpg',130, 204,18,'photo_6905864.html');
												thumbnails[6905865] = new thumbnail(6905865,'421619','','_DSC1485bw_B7393723-24E8-5EC4-4F4EBC0DBE8836DC_thumb.jpg',130, 87,18,'photo_6905865.html');
												thumbnails[6905866] = new thumbnail(6905866,'88649','','_DSC2627lomo_thumb.jpg',130, 87,18,'photo_6905866.html');
												thumbnails[6953141] = new thumbnail(6953141,'88648','','_DSC3089bwSml_thumb.jpg',130, 163,18,'photo_6953141.html');
												thumbnails[6953144] = new thumbnail(6953144,'88648','','_DSC3280hdrSml_thumb.jpg',130, 196,18,'photo_6953144.html');
												thumbnails[6953162] = new thumbnail(6953162,'88648','','_DSC3239hdrSMl_thumb.jpg',130, 80,18,'photo_6953162.html');
												thumbnails[3611318] = new thumbnail(3611318,'88648','Glamour and Decay II','Gill_Hilltown-5163liq72dpi_thumb.jpg',130, 87,18,'photo_3611318.html');
												thumbnails[3862360] = new thumbnail(3862360,'234928','','_DSC0968_thumb.jpg',130, 157,18,'photo_3862360.html');
												thumbnails[3862363] = new thumbnail(3862363,'234928','','_DSC0981bw_thumb.jpg',130, 68,18,'photo_3862363.html');
												thumbnails[3862365] = new thumbnail(3862365,'234928','','_DSC0985_thumb.jpg',130, 93,18,'photo_3862365.html');
												thumbnails[3862372] = new thumbnail(3862372,'234928','','_DSC0987bw_thumb.jpg',130, 108,18,'photo_3862372.html');
												thumbnails[3862399] = new thumbnail(3862399,'234928','','_DSC1036bw_thumb.jpg',130, 103,18,'photo_3862399.html');
												thumbnails[3862409] = new thumbnail(3862409,'234928','','_DSC1177_thumb.jpg',130, 195,18,'photo_3862409.html');
												thumbnails[3862412] = new thumbnail(3862412,'234928','','_DSC1235_thumb.jpg',130, 331,18,'photo_3862412.html');
												thumbnails[3862476] = new thumbnail(3862476,'234928','','_DSC1288_thumb.jpg',130, 48,18,'photo_3862476.html');
												thumbnails[3862492] = new thumbnail(3862492,'234928','','_DSC1315bw_thumb.jpg',130, 171,18,'photo_3862492.html');
												thumbnails[3862494] = new thumbnail(3862494,'234928','','_DSC1326bw_thumb.jpg',130, 203,18,'photo_3862494.html');
												thumbnails[3862497] = new thumbnail(3862497,'234928','','_DSC1366bw_thumb.jpg',130, 68,18,'photo_3862497.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[88600] = new gallery(88600,'5377388,3862363,3253512,2361537,1247926,1247866','Gallery','gallery',[],0, 0, '', 'gallery_88600.html',0,1);
				  					galleries[88648] = new gallery(88648,'3253512,2361537','Portrait','gallery',[1284090,1288414,1444161,2204775,2205254,2261797,2361537,2404497,2735622,2758523,3253280,3253375,3253396,3253457,3253463,3253467,3253477,3253507,3253512,3438203,3438209,3510711,3611226,3611296,3611297,3611300,3611304,3611354,4660246,5326717,5326721,5326734,5326735,5326739,5326745,5326748,5326752,5464048,5464054,5837707,5837714,5837718,6765433,6953141,6953144,6953162,3611318],0, 0, '88600', 'gallery_88648.html',0,1);
				  					galleries[234928] = new gallery(234928,'3862363','Weddings','gallery',[4413624,4413627,4413628,4413631,4413633,4413637,4413638,4413639,4413642,6765322,6765324,6765325,6765326,6765327,6765338,6765339,6765341,6765342,6765343,6765344,6765346,6765347,6765348,6765349,6765350,3862360,3862363,3862365,3862372,3862399,3862409,3862412,3862476,3862492,3862494,3862497],0, 0, '88600', 'gallery_234928.html',0,1);
				  					galleries[88649] = new gallery(88649,'1247866','Fine Art','gallery',[1247819,1247829,1247866,1247906,1247913,1247930,1248228,1248289,1248409,1248414,1248437,1248470,1248572,1305460,1327442,1327443,1327752,1358713,1478479,1478480,6076981,6765435,6765453,6905866],0, 0, '88600', 'gallery_88649.html',0,1);
				  					galleries[88647] = new gallery(88647,'1247926','Landscape','gallery',[1239577,1247799,1247923,1247926,1247935,1248333,1248367,1248387,1248391,1248426,1248501,1551842,1606380,2204836,2241452,2587749,5464100,5837694,5837703],0, 0, '88600', 'gallery_88647.html',0,1);
				  					galleries[421619] = new gallery(421619,'6905865,6905864,6765455,6765454,6765452,6765451,6765449,6765440,6765439,6765438','UrbEx','gallery',[1239560,1248442,1606397,2205160,3611221,5837699,6765353,6765354,6765358,6765420,6765424,6765425,6765426,6765434,6765436,6765438,6765439,6765440,6765449,6765451,6765452,6765454,6765455,6905864,6905865],0, 0, '88600', 'gallery_421619.html',0,1);
				  					galleries[303260] = new gallery(303260,'5377388','Alex: Portfolio','gallery',[5377286,5377293,5377378,5377388,5377398,5377402,5377419,5377427,5606030,5606031,5606035,5606038,5606041],0, 0, '88600', 'gallery_303260.html',0,1);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5464048,4413642,4413639,4413637,4413633,3862497,3862372,3862365,3862363,3611226,3438203,3253512,3253507,3253467,3253396,2758523,2735622,2361537,2261797,1284090';
imageSets[2] = '5377388,3862363,3253512,2361537,1247926,1247866';
imageSets[3] = '6953162,6953144,6953141,6905866,6905865,6905864,6765455,6765454,6765453,6765452,6765451,6765449,6765440,6765439,6765438,6765436,6765435,6765434,6765433,6765427,6765426,6765425,6765424,6765420,6765358,6765354,6765353,6765350,6765349,6765348,6765347,6765346,6765344,6765343,6765342,6765341,6765339,6765338,6765327,6765326,6765325,6765324,6765322,6076981,5837718,5837714,5837707,5837703,5837699,5837694';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/simontclarke/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/simontclarke/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));		  $('body').trigger('clikUpdate');		}, 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 = 'jags-images | photography: ' + 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));      $('body').trigger('clikUpdate');    }        
    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>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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 + '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = 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 = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="simont.clarke@ntlworld.com">';
	temp = temp + '<input type="hidden" name="currency_code" value="GBP">';
	temp = temp + '<input type="hidden" name="add" value="1">';
					temp = temp + '<input type="hidden" name="amount" value="'+amount+'">';
	temp = temp + '<input type="hidden" name="item_number" value="'+ref+'">';
					temp = temp + '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
									temp = temp + '</form>';
								temp = temp + '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
	temp = temp + '<input type="hidden" name="cmd" value="_cart">';
	temp = temp + '<input type="hidden" name="business" value="simont.clarke@ntlworld.com">';
	temp = temp + '<input type="hidden" name="display" value="1">';
	temp = temp + '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
	temp = temp + '</form>';
							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;
	}
}

			

