window.thumbnails = new Object();
												thumbnails[1485068] = new thumbnail(1485068,'','','theboywhofelltoearth1_thumb.jpg',130, 130,18,'#');
												thumbnails[7178430] = new thumbnail(7178430,'','','colourflowerFINALcopy_thumb.jpg',130, 130,18,'#');
												thumbnails[7560113] = new thumbnail(7560113,'','','Polapool-Tuscany-Italy-20_thumb.jpg',130, 108,18,'#');
												thumbnails[1188889] = new thumbnail(1188889,'','','polaroidclikpic copy_thumb.jpg',130, 130,18,'#');
												thumbnails[2572500] = new thumbnail(2572500,'','','finnineplus3flickr_thumb.jpg',130, 159,18,'#');
												thumbnails[780893] = new thumbnail(780893,'','','monumentvalley1_thumb.jpg',130, 130,18,'#');
												thumbnails[1188904] = new thumbnail(1188904,'','','polaroidx5 copy_thumb.jpg',130, 130,18,'#');
												thumbnails[2572871] = new thumbnail(2572871,'','','albers copy_thumb.jpg',130, 157,18,'#');
												thumbnails[781136] = new thumbnail(781136,'','','surf3_thumb.jpg',130, 130,18,'#');
												thumbnails[855273] = new thumbnail(855273,'','','surffeet copy_thumb.jpg',130, 130,18,'#');
												thumbnails[1189817] = new thumbnail(1189817,'','','volkswagenx5clikpic_thumb.jpg',130, 130,18,'#');
												thumbnails[1920294] = new thumbnail(1920294,'','','99cclikpic_thumb.jpg',130, 130,18,'#');
												thumbnails[2572885] = new thumbnail(2572885,'','','cooker_thumb.jpg',130, 156,18,'#');
												thumbnails[2573007] = new thumbnail(2573007,'','','karmann_thumb.jpg',130, 157,18,'#');
												thumbnails[2909705] = new thumbnail(2909705,'','','fragilesurf(etsysamba_thumb.jpg',130, 130,18,'#');
												thumbnails[782507] = new thumbnail(782507,'','','ruby\'s_thumb.jpg',130, 85,18,'#');
												thumbnails[928419] = new thumbnail(928419,'','','vaportrail!_thumb.jpg',130, 130,18,'#');
												thumbnails[1502644] = new thumbnail(1502644,'','','soysaucefinal2_thumb.jpg',130, 90,18,'#');
												thumbnails[4239117] = new thumbnail(4239117,'','','surferholgaweb_thumb.jpg',130, 130,18,'#');
												thumbnails[780924] = new thumbnail(780924,'','','poolholga_thumb.jpg',130, 130,18,'#');
												thumbnails[857100] = new thumbnail(857100,'','','bookpagescopy_thumb.jpg',130, 129,18,'#');
												thumbnails[2573147] = new thumbnail(2573147,'','','omega2_thumb.jpg',130, 157,18,'#');
												thumbnails[856448] = new thumbnail(856448,'','','bloss copy_thumb.jpg',130, 130,18,'#');
												thumbnails[928418] = new thumbnail(928418,'','','typ_thumb.jpg',130, 129,18,'#');
												thumbnails[1502988] = new thumbnail(1502988,'','','road copy1_thumb.jpg',130, 130,18,'#');
												thumbnails[2573163] = new thumbnail(2573163,'','','saab (1)_thumb.jpg',130, 157,18,'#');
												thumbnails[857621] = new thumbnail(857621,'','','fragile copy_thumb.jpg',130, 130,18,'#');
												thumbnails[2573180] = new thumbnail(2573180,'','','stipes_thumb.jpg',130, 157,18,'#');
												thumbnails[928435] = new thumbnail(928435,'','','dice_thumb.jpg',130, 130,18,'#');
												thumbnails[2573183] = new thumbnail(2573183,'','','stairsflickr_thumb.jpg',130, 157,18,'#');
												thumbnails[856532] = new thumbnail(856532,'','','samba copy_thumb.jpg',130, 130,18,'#');
												thumbnails[2573211] = new thumbnail(2573211,'','','splittyflickr_thumb.jpg',130, 157,18,'#');
												thumbnails[928462] = new thumbnail(928462,'','','straws_thumb.jpg',130, 130,18,'#');
												thumbnails[860681] = new thumbnail(860681,'','','springcopy_thumb.jpg',130, 130,18,'#');
												thumbnails[928469] = new thumbnail(928469,'','','redesspresso_thumb.jpg',130, 130,18,'#');
												thumbnails[1986617] = new thumbnail(1986617,'','','pontiactoy1_thumb.jpg',130, 87,18,'#');
												thumbnails[787382] = new thumbnail(787382,'','','sohofood_thumb.jpg',130, 86,18,'#');
												thumbnails[789999] = new thumbnail(789999,'','','balloons_thumb.jpg',130, 130,18,'#');
												thumbnails[860693] = new thumbnail(860693,'','','2halfs_thumb.jpg',130, 130,18,'#');
												thumbnails[928461] = new thumbnail(928461,'','','sheets_thumb.jpg',130, 130,18,'#');
												thumbnails[2050429] = new thumbnail(2050429,'','','diceclikpicy_thumb.jpg',130, 157,18,'#');
												thumbnails[3310437] = new thumbnail(3310437,'','','pickles_thumb.jpg',130, 88,18,'#');
												thumbnails[3362722] = new thumbnail(3362722,'','','lomogreasyspoon_thumb.jpg',130, 87,18,'#');
												thumbnails[2573203] = new thumbnail(2573203,'','','splittyflickr2_thumb.jpg',130, 157,18,'#');
												thumbnails[780907] = new thumbnail(780907,'','','motelcup_thumb.jpg',130, 130,18,'#');
												thumbnails[2985896] = new thumbnail(2985896,'','','holgaeahesedgclikpic_thumb.jpg',130, 132,18,'#');
												thumbnails[4280559] = new thumbnail(4280559,'','','polasurfertransfer_copy_thumb.jpg',130, 92,18,'#');
												thumbnails[4280585] = new thumbnail(4280585,'','','surferpolaroidadjusted_thumb.jpg',130, 106,18,'#');
												thumbnails[1500555] = new thumbnail(1500555,'','','balloons1_thumb.jpg',130, 130,18,'#');
												thumbnails[782471] = new thumbnail(782471,'60851','','colaboylfi_thumb.jpg',130, 91,18,'photo_782471.html');
												thumbnails[806214] = new thumbnail(806214,'62505','','volkswagen2_thumb.jpg',130, 130,18,'photo_806214.html');
												thumbnails[1191698] = new thumbnail(1191698,'85577','','orangeplateweb600_thumb.jpg',130, 87,18,'photo_1191698.html');
												thumbnails[1982756] = new thumbnail(1982756,'286377','','england2_copy1_thumb.jpg',130, 87,18,'photo_1982756.html');
												thumbnails[2050413] = new thumbnail(2050413,'128801','','finnineplus3flickr2_thumb.jpg',130, 159,18,'photo_2050413.html');
												thumbnails[782747] = new thumbnail(782747,'60851','','whitecutainweb600_thumb.jpg',130, 89,18,'photo_782747.html');
												thumbnails[806215] = new thumbnail(806215,'62505','','dolor_thumb.jpg',130, 130,18,'photo_806215.html');
												thumbnails[1191705] = new thumbnail(1191705,'85577','','venicebeachweb600_thumb.jpg',130, 89,18,'photo_1191705.html');
												thumbnails[1920699] = new thumbnail(1920699,'128801','','waveoceanclikpic_thumb.jpg',130, 156,18,'photo_1920699.html');
												thumbnails[5074257] = new thumbnail(5074257,'286377','','nowserving_copy_thumb.jpg',130, 87,18,'photo_5074257.html');
												thumbnails[784014] = new thumbnail(784014,'60851','','rubysbWweb_thumb.jpg',130, 92,18,'photo_784014.html');
												thumbnails[806216] = new thumbnail(806216,'62505','','allysurf_thumb.jpg',130, 130,18,'photo_806216.html');
												thumbnails[1191712] = new thumbnail(1191712,'85577','','trycycleboyweb600_thumb.jpg',130, 84,18,'photo_1191712.html');
												thumbnails[2573115] = new thumbnail(2573115,'128801','','offshoreflickr_thumb.jpg',130, 157,18,'photo_2573115.html');
												thumbnails[5074599] = new thumbnail(5074599,'286377','','outsidein_copy_thumb.jpg',130, 87,18,'photo_5074599.html');
												thumbnails[784707] = new thumbnail(784707,'60851','','sunlight_copy_thumb.jpg',130, 89,18,'photo_784707.html');
												thumbnails[806219] = new thumbnail(806219,'62505','','cokebottle_thumb.jpg',130, 130,18,'photo_806219.html');
												thumbnails[1194725] = new thumbnail(1194725,'85577','','delrayautosweb600_thumb.jpg',130, 89,18,'photo_1194725.html');
												thumbnails[1873322] = new thumbnail(1873322,'286377','','chipshopweb600_thumb.jpg',130, 87,18,'photo_1873322.html');
												thumbnails[1920727] = new thumbnail(1920727,'128801','','ghiasurfclikpic_thumb.jpg',130, 156,18,'photo_1920727.html');
												thumbnails[806220] = new thumbnail(806220,'62505','','ristorante_thumb.jpg',130, 130,18,'photo_806220.html');
												thumbnails[1072532] = new thumbnail(1072532,'60851','','hand_copy1_thumb.jpg',130, 94,18,'photo_1072532.html');
												thumbnails[1920530] = new thumbnail(1920530,'286377','','sandyshoesglossy600_thumb.jpg',130, 87,18,'photo_1920530.html');
												thumbnails[4240150] = new thumbnail(4240150,'128801','','2surfers_thumb.jpg',130, 156,18,'photo_4240150.html');
												thumbnails[806221] = new thumbnail(806221,'62505','','greenphone_thumb.jpg',130, 130,18,'photo_806221.html');
												thumbnails[1986384] = new thumbnail(1986384,'128801','','vansclikpic_thumb.jpg',130, 157,18,'photo_1986384.html');
												thumbnails[5086513] = new thumbnail(5086513,'286377','','truro2_copy_thumb.jpg',130, 87,18,'photo_5086513.html');
												thumbnails[787679] = new thumbnail(787679,'60851','','tapasweb600_thumb.jpg',130, 89,18,'photo_787679.html');
												thumbnails[806232] = new thumbnail(806232,'62505','','drink_thumb.jpg',130, 130,18,'photo_806232.html');
												thumbnails[1502601] = new thumbnail(1502601,'85577','','soysaucefinalweb600_thumb.jpg',130, 90,18,'photo_1502601.html');
												thumbnails[1989896] = new thumbnail(1989896,'128801','','drinkclikpic_thumb.jpg',130, 157,18,'photo_1989896.html');
												thumbnails[5146328] = new thumbnail(5146328,'286377','','legs_copy_thumb.jpg',130, 87,18,'photo_5146328.html');
												thumbnails[788472] = new thumbnail(788472,'60851','','allycamper copy 2_thumb.jpg',130, 86,18,'photo_788472.html');
												thumbnails[806233] = new thumbnail(806233,'62505','','blossum_thumb.jpg',130, 130,18,'photo_806233.html');
												thumbnails[4248514] = new thumbnail(4248514,'128801','','Allysurftif_1_thumb.jpg',130, 158,18,'photo_4248514.html');
												thumbnails[5153686] = new thumbnail(5153686,'286377','','fluffydog_copy_thumb.jpg',130, 87,18,'photo_5153686.html');
												thumbnails[806864] = new thumbnail(806864,'62505','','yellow2_thumb.jpg',130, 130,18,'photo_806864.html');
												thumbnails[1974936] = new thumbnail(1974936,'85577','','monvalleyally600_thumb.jpg',130, 88,18,'photo_1974936.html');
												thumbnails[1990367] = new thumbnail(1990367,'128801','','shadow_thumb.jpg',130, 156,18,'photo_1990367.html');
												thumbnails[806866] = new thumbnail(806866,'62505','','surf2_thumb.jpg',130, 130,18,'photo_806866.html');
												thumbnails[806868] = new thumbnail(806868,'62505','','surf_thumb.jpg',130, 130,18,'photo_806868.html');
												thumbnails[1981008] = new thumbnail(1981008,'85577','','99cweb600_thumb.jpg',130, 86,18,'photo_1981008.html');
												thumbnails[4250647] = new thumbnail(4250647,'128801','','polasurferweb_thumb.jpg',130, 158,18,'photo_4250647.html');
												thumbnails[5146311] = new thumbnail(5146311,'286377','','window_thumb.jpg',130, 87,18,'photo_5146311.html');
												thumbnails[1070544] = new thumbnail(1070544,'60851','','polandman_copy_thumb.jpg',130, 89,18,'photo_1070544.html');
												thumbnails[1920681] = new thumbnail(1920681,'128801','','allybackclikpic_thumb.jpg',130, 157,18,'photo_1920681.html');
												thumbnails[1981400] = new thumbnail(1981400,'85577','','usasomelikeithoclikpic_thumb.jpg',130, 86,18,'photo_1981400.html');
												thumbnails[807616] = new thumbnail(807616,'62505','','shoes 2_thumb.jpg',130, 130,18,'photo_807616.html');
												thumbnails[1981447] = new thumbnail(1981447,'85577','','diceweb600_thumb.jpg',130, 83,18,'photo_1981447.html');
												thumbnails[4248480] = new thumbnail(4248480,'128801','','wavesflickr_thumb.jpg',130, 157,18,'photo_4248480.html');
												thumbnails[808329] = new thumbnail(808329,'62505','','leafred_thumb.jpg',130, 130,18,'photo_808329.html');
												thumbnails[1072873] = new thumbnail(1072873,'60851','','shadowdog_thumb.jpg',130, 90,18,'photo_1072873.html');
												thumbnails[4250797] = new thumbnail(4250797,'128801','','surftext_copy_thumb.jpg',130, 158,18,'photo_4250797.html');
												thumbnails[5034482] = new thumbnail(5034482,'60851','','allylongbeachweb600_thumb.jpg',130, 86,18,'photo_5034482.html');
												thumbnails[808341] = new thumbnail(808341,'62505','','126_thumb.jpg',130, 130,18,'photo_808341.html');
												thumbnails[1921076] = new thumbnail(1921076,'60851','','telephonelomoweb600_thumb.jpg',130, 86,18,'photo_1921076.html');
												thumbnails[2050450] = new thumbnail(2050450,'128801','','allylegs copy_thumb.jpg',130, 157,18,'photo_2050450.html');
												thumbnails[808342] = new thumbnail(808342,'62505','','half2_thumb.jpg',130, 130,18,'photo_808342.html');
												thumbnails[4248779] = new thumbnail(4248779,'128801','','surfwallbottle_thumb.jpg',130, 157,18,'photo_4248779.html');
												thumbnails[808343] = new thumbnail(808343,'62505','','mikey2_thumb.jpg',130, 130,18,'photo_808343.html');
												thumbnails[1920711] = new thumbnail(1920711,'128801','','bmwclikpic_thumb.jpg',130, 158,18,'photo_1920711.html');
												thumbnails[2911938] = new thumbnail(2911938,'60851','','salt&pepperclickpic_thumb.jpg',130, 87,18,'photo_2911938.html');
												thumbnails[3310387] = new thumbnail(3310387,'286377','','blankets copy_thumb.jpg',130, 87,18,'photo_3310387.html');
												thumbnails[5152700] = new thumbnail(5152700,'286377','','starbucks_copy_thumb.jpg',130, 87,18,'photo_5152700.html');
												thumbnails[855270] = new thumbnail(855270,'62505','','mustangblackpolaclikpiccopy_thumb.jpg',130, 130,18,'photo_855270.html');
												thumbnails[2913234] = new thumbnail(2913234,'85577','','littlegreencarclickpic_thumb.jpg',130, 86,18,'photo_2913234.html');
												thumbnails[3322500] = new thumbnail(3322500,'85577','','santamonicafreeway_thumb.jpeg',130, 86,18,'photo_3322500.html');
												thumbnails[4248458] = new thumbnail(4248458,'128801','','saab_1_thumb.jpg',130, 157,18,'photo_4248458.html');
												thumbnails[855824] = new thumbnail(855824,'62505','','eames3 copy_thumb.jpg',130, 130,18,'photo_855824.html');
												thumbnails[2573142] = new thumbnail(2573142,'128801','','life_thumb.jpg',130, 157,18,'photo_2573142.html');
												thumbnails[3319379] = new thumbnail(3319379,'286377','','surfbus copy_thumb.jpg',130, 86,18,'photo_3319379.html');
												thumbnails[5061324] = new thumbnail(5061324,'60851','','sandweb600_thumb.jpg',130, 86,18,'photo_5061324.html');
												thumbnails[5158977] = new thumbnail(5158977,'286377','','ghiaseati_copy1_thumb.jpg',130, 86,18,'photo_5158977.html');
												thumbnails[928398] = new thumbnail(928398,'62505','','merc copy1_thumb.jpg',130, 130,18,'photo_928398.html');
												thumbnails[1986620] = new thumbnail(1986620,'286377','','fan1_thumb.jpg',130, 87,18,'photo_1986620.html');
												thumbnails[1988050] = new thumbnail(1988050,'128801','','poolorangeclikpic_thumb.jpg',130, 157,18,'photo_1988050.html');
												thumbnails[3345286] = new thumbnail(3345286,'60851','',' conveying_thumb.jpg',130, 86,2,'photo_3345286.html');
												thumbnails[928417] = new thumbnail(928417,'62505','','BREAKFAST copy_thumb.jpg',130, 130,18,'photo_928417.html');
												thumbnails[3338939] = new thumbnail(3338939,'85577','','drink copy_thumb.jpg',130, 86,18,'photo_3338939.html');
												thumbnails[4248499] = new thumbnail(4248499,'128801','','offshore_thumb.jpg',130, 157,18,'photo_4248499.html');
												thumbnails[5083383] = new thumbnail(5083383,'60851','','mantreepoland0251_copy_thumb.jpg',130, 86,18,'photo_5083383.html');
												thumbnails[5086495] = new thumbnail(5086495,'60851','','beachbeer_copy_thumb.jpg',130, 85,18,'photo_5086495.html');
												thumbnails[856141] = new thumbnail(856141,'62505','','126-2 copy_thumb.jpg',130, 130,18,'photo_856141.html');
												thumbnails[4248918] = new thumbnail(4248918,'128801','','surfdecal_thumb.jpg',130, 156,18,'photo_4248918.html');
												thumbnails[856455] = new thumbnail(856455,'62505','','hanger2 copy_thumb.jpg',130, 130,18,'photo_856455.html');
												thumbnails[4248965] = new thumbnail(4248965,'128801','','vansflickr_1_thumb.jpg',130, 156,18,'photo_4248965.html');
												thumbnails[5027281] = new thumbnail(5027281,'85577','','pontiacweb600_thumb.jpg',130, 84,18,'photo_5027281.html');
												thumbnails[856460] = new thumbnail(856460,'62505','','allybeach copy_thumb.jpg',130, 130,18,'photo_856460.html');
												thumbnails[1990459] = new thumbnail(1990459,'128801','','breakwater_thumb.jpg',130, 157,18,'photo_1990459.html');
												thumbnails[5027303] = new thumbnail(5027303,'85577','','monumentvalleywed600_thumb.jpg',130, 89,18,'photo_5027303.html');
												thumbnails[928443] = new thumbnail(928443,'62505','','coat_thumb.jpg',130, 130,18,'photo_928443.html');
												thumbnails[4265202] = new thumbnail(4265202,'128801','','lowlightwave_thumb.jpg',130, 156,18,'photo_4265202.html');
												thumbnails[5034372] = new thumbnail(5034372,'85577','','yardsaleweb_thumb.jpg',130, 92,18,'photo_5034372.html');
												thumbnails[856494] = new thumbnail(856494,'62505','','happy2s copy_thumb.jpg',130, 130,18,'photo_856494.html');
												thumbnails[4258453] = new thumbnail(4258453,'128801','','bewareofsurfers_thumb.jpg',130, 157,18,'photo_4258453.html');
												thumbnails[5061085] = new thumbnail(5061085,'85577','','redbikeweb600_thumb.jpg',130, 86,18,'photo_5061085.html');
												thumbnails[780876] = new thumbnail(780876,'85577','','theboywhofelltoearth_thumb.jpg',130, 130,18,'photo_780876.html');
												thumbnails[857101] = new thumbnail(857101,'62505','','bookpagescopy1_thumb.jpg',130, 129,18,'photo_857101.html');
												thumbnails[4258449] = new thumbnail(4258449,'128801','','nineplusghia_thumb.jpg',130, 158,18,'photo_4258449.html');
												thumbnails[5135677] = new thumbnail(5135677,'60851','','thinkbw_copy_thumb.jpg',130, 86,18,'photo_5135677.html');
												thumbnails[928453] = new thumbnail(928453,'62505','','fragileedgecopy1_thumb.jpg',130, 130,18,'photo_928453.html');
												thumbnails[2985895] = new thumbnail(2985895,'85577','','holgapoolclickpic_thumb.jpg',130, 130,18,'photo_2985895.html');
												thumbnails[4265146] = new thumbnail(4265146,'128801','','rustbus_thumb.jpg',130, 157,18,'photo_4265146.html');
												thumbnails[5135683] = new thumbnail(5135683,'60851','','allybeachlegs_copy_thumb.jpg',130, 86,18,'photo_5135683.html');
												thumbnails[789998] = new thumbnail(789998,'85577','','road copy_thumb.jpg',130, 130,18,'photo_789998.html');
												thumbnails[856507] = new thumbnail(856507,'62505','','plug copy_thumb.jpg',130, 130,18,'photo_856507.html');
												thumbnails[4265157] = new thumbnail(4265157,'128801','','footprint_thumb.jpg',130, 157,18,'photo_4265157.html');
												thumbnails[5135848] = new thumbnail(5135848,'60851','','poland3_copy_thumb.jpg',130, 88,18,'photo_5135848.html');
												thumbnails[4239326] = new thumbnail(4239326,'85577','','surferholgaweb1_thumb.jpg',130, 130,18,'photo_4239326.html');
												thumbnails[4248725] = new thumbnail(4248725,'128801','','coldwaveweb_thumb.jpg',130, 130,18,'photo_4248725.html');
												thumbnails[5154576] = new thumbnail(5154576,'60851','','chips_thumb.jpg',130, 81,18,'photo_5154576.html');
												thumbnails[4305779] = new thumbnail(4305779,'128801','','sk8diptych_copy_thumb.jpg',130, 130,18,'photo_4305779.html');
												thumbnails[4269117] = new thumbnail(4269117,'128801','','wavex3_thumb.jpg',130, 130,18,'photo_4269117.html');
												thumbnails[4269336] = new thumbnail(4269336,'128801','','splittyx3layers_copy_thumb.jpg',130, 130,18,'photo_4269336.html');
												thumbnails[4269363] = new thumbnail(4269363,'128801','','surfx3offshoreweb_thumb.jpg',130, 130,18,'photo_4269363.html');
												thumbnails[4491813] = new thumbnail(4491813,'128801','','ghiatz3_thumb.jpg',130, 130,18,'photo_4491813.html');
												thumbnails[4269386] = new thumbnail(4269386,'128801','','fragilesurflayerswaveweb_thumb.jpg',130, 62,18,'photo_4269386.html');
												thumbnails[7570890] = new thumbnail(7570890,'128801','','lifeiswebclickpic_thumb.jpg',130, 62,18,'photo_7570890.html');
												thumbnails[6400119] = new thumbnail(6400119,'353677','','analogue72dpi_thumb.jpg',130, 130,18,'photo_6400119.html');
												thumbnails[6400129] = new thumbnail(6400129,'353677','','hello72dpi_thumb.jpg',130, 130,18,'photo_6400129.html');
												thumbnails[6416815] = new thumbnail(6416815,'354363','','cars72dpi_thumb.jpg',130, 130,18,'photo_6416815.html');
												thumbnails[6400143] = new thumbnail(6400143,'353677','','ontheroad72dpi_thumb.jpg',130, 130,18,'photo_6400143.html');
												thumbnails[6416776] = new thumbnail(6416776,'354363','','hand72dpi_thumb.jpg',130, 130,18,'photo_6416776.html');
												thumbnails[6405281] = new thumbnail(6405281,'353677','','pressplay72dpi_thumb.jpg',130, 130,18,'photo_6405281.html');
												thumbnails[6416623] = new thumbnail(6416623,'354363','','blacktree72dpi_thumb.jpg',130, 130,18,'photo_6416623.html');
												thumbnails[6612595] = new thumbnail(6612595,'354363','','fishbowlweb_thumb.jpg',130, 130,18,'photo_6612595.html');
												thumbnails[6405399] = new thumbnail(6405399,'353677','','ny72dpi_thumb.jpg',130, 130,18,'photo_6405399.html');
												thumbnails[6615816] = new thumbnail(6615816,'354363','','3treesweb_thumb.jpg',130, 130,18,'photo_6615816.html');
												thumbnails[6405442] = new thumbnail(6405442,'353677','','surflife072dpi_thumb.jpg',130, 130,18,'photo_6405442.html');
												thumbnails[6615888] = new thumbnail(6615888,'354363','','fragileheartweb_thumb.jpg',130, 130,18,'photo_6615888.html');
												thumbnails[6416280] = new thumbnail(6416280,'353677','','italia72dpi_thumb.jpg',130, 130,18,'photo_6416280.html');
												thumbnails[6648736] = new thumbnail(6648736,'354363','','carrotweb_thumb.jpg',130, 130,18,'photo_6648736.html');
												thumbnails[6416282] = new thumbnail(6416282,'353677','','gt072dpi_thumb.jpg',130, 130,18,'photo_6416282.html');
												thumbnails[6689964] = new thumbnail(6689964,'354363','','cars3letterpresscmyk_copy_thumb.jpg',130, 130,18,'photo_6689964.html');
												thumbnails[6689999] = new thumbnail(6689999,'354363','','browntreeweb_thumb.jpg',130, 130,18,'photo_6689999.html');
												thumbnails[6692817] = new thumbnail(6692817,'354363','','sausagedogweb_thumb.jpg',130, 130,18,'photo_6692817.html');
												thumbnails[6692849] = new thumbnail(6692849,'354363','','pressiefinalweb_thumb.jpg',130, 130,18,'photo_6692849.html');
												thumbnails[7178416] = new thumbnail(7178416,'354363','','colourflowerFINAL_copy_thumb.jpg',130, 130,18,'photo_7178416.html');
												thumbnails[7504813] = new thumbnail(7504813,'354363','','POSTFINALweb_thumb.jpg',130, 130,18,'photo_7504813.html');
												thumbnails[7531860] = new thumbnail(7531860,'354363','','bbqkingweb_thumb.jpg',130, 130,18,'photo_7531860.html');
												thumbnails[7555062] = new thumbnail(7555062,'354363','','PERFUMEweb_thumb.jpg',130, 130,18,'photo_7555062.html');
												thumbnails[7555086] = new thumbnail(7555086,'354363','','busweb_thumb.jpg',130, 130,18,'photo_7555086.html');
												thumbnails[2756559] = new thumbnail(2756559,'103255','','eamesframed copy_thumb.jpg',130, 130,18,'photo_2756559.html');
												thumbnails[2756580] = new thumbnail(2756580,'103255','','framepool copy_thumb.jpg',130, 130,18,'photo_2756580.html');
												thumbnails[2756601] = new thumbnail(2756601,'103255','','modoframed copy_thumb.jpg',130, 130,18,'photo_2756601.html');
												thumbnails[2904848] = new thumbnail(2904848,'173076','','mercoriginal_thumb.jpg',129, 157,18,'photo_2904848.html');
												thumbnails[2757892] = new thumbnail(2757892,'173076','','ally_thumb.jpg',130, 157,18,'photo_2757892.html');
												thumbnails[2760841] = new thumbnail(2760841,'173076','','oceanflickr_thumb.jpg',130, 157,18,'photo_2760841.html');
												thumbnails[2760868] = new thumbnail(2760868,'173076','','bmw_thumb.jpg',130, 158,18,'photo_2760868.html');
												thumbnails[2904779] = new thumbnail(2904779,'173076','','polapool_thumb.jpg',129, 156,18,'photo_2904779.html');
												thumbnails[2904794] = new thumbnail(2904794,'173076','','beachsurf_thumb.jpg',129, 156,18,'photo_2904794.html');
												thumbnails[2904829] = new thumbnail(2904829,'173076','','redeameschairs_thumb.jpg',129, 156,18,'photo_2904829.html');
												thumbnails[2904835] = new thumbnail(2904835,'173076','','diceA323original_thumb.jpg',130, 156,18,'photo_2904835.html');
												thumbnails[2904842] = new thumbnail(2904842,'173076','','original_thumb.jpg',129, 158,18,'photo_2904842.html');
												thumbnails[2904853] = new thumbnail(2904853,'173076','','pontiac_1_thumb.jpg',130, 156,18,'photo_2904853.html');
												thumbnails[2904854] = new thumbnail(2904854,'173076','','phoneclikpic_thumb.jpg',129, 157,18,'photo_2904854.html');
												thumbnails[2904859] = new thumbnail(2904859,'173076','','fiat50023original(1)_thumb.jpg',129, 157,18,'photo_2904859.html');
												thumbnails[2904893] = new thumbnail(2904893,'173076','','ketchuporiginal)_thumb.jpg',129, 155,18,'photo_2904893.html');
												thumbnails[2904895] = new thumbnail(2904895,'173076','','mickey23_thumb.jpg',130, 157,18,'photo_2904895.html');
												thumbnails[2904897] = new thumbnail(2904897,'173076','','breakwater1_thumb.jpg',130, 157,18,'photo_2904897.html');
												thumbnails[2904898] = new thumbnail(2904898,'173076','','drinkclikpic1_thumb.jpg',130, 156,18,'photo_2904898.html');
												thumbnails[2909022] = new thumbnail(2909022,'173076','','cokecurvesflikr copy_thumb.jpg',130, 157,18,'photo_2909022.html');
												thumbnails[2909027] = new thumbnail(2909027,'173076','','finnineplus3flickr1_thumb.jpg',130, 158,18,'photo_2909027.html');
												thumbnails[2909031] = new thumbnail(2909031,'173076','','albers copy1_thumb.jpg',130, 157,18,'photo_2909031.html');
												thumbnails[2909033] = new thumbnail(2909033,'173076','','vansflickr_thumb.jpg',130, 156,18,'photo_2909033.html');
												thumbnails[2909161] = new thumbnail(2909161,'173076','','sambaheadflikr_thumb.jpg',130, 156,18,'photo_2909161.html');
												thumbnails[2909163] = new thumbnail(2909163,'173076','','ghiasurf_thumb.jpg',130, 155,18,'photo_2909163.html');
												thumbnails[2909171] = new thumbnail(2909171,'173076','','Allysurftif_thumb.jpg',130, 157,18,'photo_2909171.html');
												thumbnails[2909175] = new thumbnail(2909175,'173076','','touristradio_thumb.jpg',130, 157,18,'photo_2909175.html');
												thumbnails[2909177] = new thumbnail(2909177,'173076','','vansclikpic1_thumb.jpg',130, 157,18,'photo_2909177.html');
												thumbnails[2909212] = new thumbnail(2909212,'173076','','mustangclikpic_thumb.jpg',130, 157,18,'photo_2909212.html');
												thumbnails[2909218] = new thumbnail(2909218,'173076','','type_thumb.jpg',130, 156,18,'photo_2909218.html');
												thumbnails[2909229] = new thumbnail(2909229,'173076','','happyclickpic_thumb.jpg',130, 157,18,'photo_2909229.html');
												thumbnails[2909562] = new thumbnail(2909562,'173076','','modo(etsy) copy1_thumb.jpg',130, 130,18,'photo_2909562.html');
												thumbnails[2909390] = new thumbnail(2909390,'173076','','epoch(etsy)600_thumb.jpg',130, 130,18,'photo_2909390.html');
												thumbnails[2909392] = new thumbnail(2909392,'173076','','theroadblackborder600_thumb.jpg',130, 130,18,'photo_2909392.html');
												thumbnails[2909391] = new thumbnail(2909391,'173076','','fragilesurfclikpic_thumb.jpg',130, 130,18,'photo_2909391.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[353677] = new gallery(353677,'6416282,6416280,6405442,6405399,6405281,6400143,6400129,6400119','illustration ','section421910',[6400119,6400129,6400143,6405281,6405399,6405442,6416280,6416282],0, 0, '', 'section421910_353677.html',0,0);
				  					galleries[354363] = new gallery(354363,'6689964','illustration 2','section421910',[6416815,6416776,6416623,6612595,6615816,6615888,6648736,6689964,6689999,6692817,6692849,7178416,7504813,7531860,7555062,7555086],0, 0, '', 'section421910_354363.html',0,0);
				  					galleries[173076] = new gallery(173076,'2757892','polaroid print sales 1','section216185',[2904848,2757892,2760841,2760868,2904779,2904794,2904829,2904835,2904842,2904853,2904854,2904859,2904893,2904895,2904897,2904898,2909022,2909027,2909031,2909033,2909161,2909163,2909171,2909175,2909177,2909212,2909218,2909229,2909562,2909390,2909392,2909391],0, 0, '', 'section216185.html',0,1);
				  					galleries[60851] = new gallery(60851,'1072873','Monochrome','gallery',[782471,782747,784014,784707,1072532,787679,788472,1070544,1072873,5034482,1921076,2911938,5061324,3345286,5083383,5086495,5135677,5135683,5135848,5154576],0, 0, '', 'gallery_60851.html',0,0);
				  					galleries[85577] = new gallery(85577,'1191698','wanderings','gallery',[1191698,1191705,1191712,1194725,1502601,1974936,1981008,1981400,1981447,2913234,3322500,3338939,5027281,5027303,5034372,5061085,780876,2985895,789998,4239326],0, 0, '', 'gallery_85577.html',0,0);
				  					galleries[286377] = new gallery(286377,'1982756','Kernow','gallery',[1982756,5074257,5074599,1873322,1920530,5086513,5146328,5153686,5146311,3310387,5152700,3319379,5158977,1986620],0, 0, '', 'gallery_286377.html',0,0);
				  					galleries[62505] = new gallery(62505,'856494,806233,806214','polaroid ','gallery',[806214,806215,806216,806219,806220,806221,806232,806233,806864,806866,806868,807616,808329,808341,808342,808343,855270,855824,928398,928417,856141,856455,856460,928443,856494,857101,928453,856507],0, 0, '', 'gallery_62505.html',0,0);
				  					galleries[128801] = new gallery(128801,'4250797,2050413,1920681','polaroid surf','gallery',[2050413,1920699,2573115,1920727,4240150,1986384,1989896,4248514,1990367,4250647,1920681,4248480,4250797,2050450,4248779,1920711,4248458,2573142,1988050,4248499,4248918,4248965,1990459,4265202,4258453,4258449,4265146,4265157,4248725,4305779,4269117,4269336,4269363,4491813,4269386,7570890],0, 0, '', 'gallery_128801.html',0,0);
				  					galleries[103255] = new gallery(103255,'2756580,2756559','polaroid print sales','section136496',[2756559,2756580,2756601],0, 0, '', 'section136496.html',0,1);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7560113';
imageSets[2] = '6689964,4250797,2757892,2756580,2756559,2572871,2050413,1982756,1920681,1502644,1485068,1191698,1188889,1072873,856494,806233,806214';
imageSets[3] = '6400119';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/iso100/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/iso100/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/iso100/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/iso100/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/iso100/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/iso100/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 = ': ' + 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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
				
		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">';
	temp = temp + '	<input type="hidden" name="item_option" value="' + item_option + '">';
	temp = temp + '	<input type="hidden" name="site" value="ISO100">';
		temp = temp + '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp = temp + '	<input type="hidden" name="quantity" value="1">';
								temp = temp + '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
			temp = 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 = temp + '</form>';
		temp = temp + '<div class="clearing">&nbsp;</div>';
	temp = temp + '<div id="confirmContainer">';
	temp = temp + '<div id="paymentConfirm">Item added to cart</div>';
	temp = temp + '</div>';
			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;
	}
}

		

