window.thumbnails = new Object();
												thumbnails[5342820] = new thumbnail(5342820,'300816','','ab1m_thumb.jpg',130, 194,5,'																			photo_5342820.html');
												thumbnails[5343265] = new thumbnail(5343265,'300845','','view1m_thumb.jpg',130, 87,5,'																			photo_5343265.html');
												thumbnails[5355609] = new thumbnail(5355609,'301634','','flow1m_thumb.jpg',130, 194,5,'																			photo_5355609.html');
												thumbnails[5360361] = new thumbnail(5360361,'302000','','arch1_thumb.jpg',130, 87,5,'																			photo_5360361.html');
												thumbnails[5360480] = new thumbnail(5360480,'302008','','cas1_thumb.jpg',130, 130,5,'																			photo_5360480.html');
												thumbnails[5360553] = new thumbnail(5360553,'302017','','people1_thumb.jpg',130, 130,5,'																			photo_5360553.html');
												thumbnails[5360889] = new thumbnail(5360889,'302029','','car1_thumb.jpg',130, 194,5,'																			photo_5360889.html');
												thumbnails[5394380] = new thumbnail(5394380,'304465','','boatcrew_thumb.jpg',130, 88,5,'																			photo_5394380.html');
												thumbnails[5343266] = new thumbnail(5343266,'300845','','view2m_thumb.jpg',130, 87,5,'																			photo_5343266.html');
												thumbnails[5355612] = new thumbnail(5355612,'301634','','flow2m_thumb.jpg',130, 194,5,'																			photo_5355612.html');
												thumbnails[5360367] = new thumbnail(5360367,'302000','','arch2_thumb.jpg',130, 87,5,'																			photo_5360367.html');
												thumbnails[5360483] = new thumbnail(5360483,'302008','','land2_thumb.jpg',130, 87,5,'																			photo_5360483.html');
												thumbnails[5360555] = new thumbnail(5360555,'302017','','people2_thumb.jpg',130, 130,5,'																			photo_5360555.html');
												thumbnails[5360892] = new thumbnail(5360892,'302029','','car2_thumb.jpg',130, 194,5,'																			photo_5360892.html');
												thumbnails[5364412] = new thumbnail(5364412,'300816','','popskel_thumb.jpg',130, 194,5,'																			photo_5364412.html');
												thumbnails[5394385] = new thumbnail(5394385,'304465','','lymeregis_thumb.jpg',130, 86,5,'																			photo_5394385.html');
												thumbnails[5342824] = new thumbnail(5342824,'300816','','ab3m_thumb.jpg',130, 194,5,'																			photo_5342824.html');
												thumbnails[5343272] = new thumbnail(5343272,'300845','','view3m_thumb.jpg',130, 87,5,'																			photo_5343272.html');
												thumbnails[5355615] = new thumbnail(5355615,'301634','','flow3m_thumb.jpg',130, 194,5,'																			photo_5355615.html');
												thumbnails[5360369] = new thumbnail(5360369,'302000','','arch3_thumb.jpg',130, 87,5,'																			photo_5360369.html');
												thumbnails[5360495] = new thumbnail(5360495,'302008','','jetty-16x16_thumb.jpg',130, 130,5,'																			photo_5360495.html');
												thumbnails[5360557] = new thumbnail(5360557,'302017','','people3_thumb.jpg',130, 87,5,'																			photo_5360557.html');
												thumbnails[5360893] = new thumbnail(5360893,'302029','','_isaac_jag-xk120-bw_thumb.jpg',130, 130,5,'																			photo_5360893.html');
												thumbnails[5394394] = new thumbnail(5394394,'304465','','bikerace_thumb.jpg',130, 86,5,'																			photo_5394394.html');
												thumbnails[5342825] = new thumbnail(5342825,'300816','','ab4m_thumb.jpg',130, 194,5,'																			photo_5342825.html');
												thumbnails[5343273] = new thumbnail(5343273,'300845','','view4m_thumb.jpg',130, 87,5,'																			photo_5343273.html');
												thumbnails[5355617] = new thumbnail(5355617,'301634','','flow4m_thumb.jpg',130, 194,5,'																			photo_5355617.html');
												thumbnails[5360372] = new thumbnail(5360372,'302000','','arch4_thumb.jpg',130, 87,5,'																			photo_5360372.html');
												thumbnails[5360487] = new thumbnail(5360487,'302008','','land4_thumb.jpg',130, 87,5,'																			photo_5360487.html');
												thumbnails[5360563] = new thumbnail(5360563,'302017','','people4_thumb.jpg',130, 87,5,'																			photo_5360563.html');
												thumbnails[5360896] = new thumbnail(5360896,'302029','','image-black-jag-sunset_thumb.jpg',130, 130,5,'																			photo_5360896.html');
												thumbnails[5394395] = new thumbnail(5394395,'304465','','gold_thumb.jpg',130, 86,5,'																			photo_5394395.html');
												thumbnails[5342827] = new thumbnail(5342827,'300816','','ab5m_thumb.jpg',130, 194,5,'																			photo_5342827.html');
												thumbnails[5343275] = new thumbnail(5343275,'300845','','view5m_thumb.jpg',130, 87,5,'																			photo_5343275.html');
												thumbnails[5355620] = new thumbnail(5355620,'301634','','flow5m_thumb.jpg',130, 194,5,'																			photo_5355620.html');
												thumbnails[5360377] = new thumbnail(5360377,'302000','','arch5_thumb.jpg',130, 87,5,'																			photo_5360377.html');
												thumbnails[5360502] = new thumbnail(5360502,'302008','','chapel_thumb.jpg',130, 130,5,'																			photo_5360502.html');
												thumbnails[5360566] = new thumbnail(5360566,'302017','','people5_thumb.jpg',130, 87,5,'																			photo_5360566.html');
												thumbnails[5360903] = new thumbnail(5360903,'302029','','car5_thumb.jpg',130, 87,5,'																			photo_5360903.html');
												thumbnails[5394373] = new thumbnail(5394373,'304465','','2blokes1_thumb.jpg',130, 88,5,'																			photo_5394373.html');
												thumbnails[5342853] = new thumbnail(5342853,'300816','','ab6m_thumb.jpg',130, 87,5,'																			photo_5342853.html');
												thumbnails[5343277] = new thumbnail(5343277,'300845','','view6m_thumb.jpg',130, 194,5,'																			photo_5343277.html');
												thumbnails[5355621] = new thumbnail(5355621,'301634','','flow6m_thumb.jpg',130, 87,5,'																			photo_5355621.html');
												thumbnails[5360380] = new thumbnail(5360380,'302000','','arch6_thumb.jpg',130, 194,5,'																			photo_5360380.html');
												thumbnails[5360506] = new thumbnail(5360506,'302008','','land6_thumb.jpg',130, 87,5,'																			photo_5360506.html');
												thumbnails[5360848] = new thumbnail(5360848,'302017','','george-_thumb.jpg',130, 154,5,'																			photo_5360848.html');
												thumbnails[5360927] = new thumbnail(5360927,'302029','','car6_thumb.jpg',130, 95,5,'																			photo_5360927.html');
												thumbnails[5394399] = new thumbnail(5394399,'304465','','cascombe_thumb.jpg',130, 130,5,'																			photo_5394399.html');
												thumbnails[5342854] = new thumbnail(5342854,'300816','','ab7m_thumb.jpg',130, 87,5,'																			photo_5342854.html');
												thumbnails[5355622] = new thumbnail(5355622,'301634','','flow7m_thumb.jpg',130, 87,5,'																			photo_5355622.html');
												thumbnails[5360386] = new thumbnail(5360386,'302000','','arch7_thumb.jpg',130, 194,5,'																			photo_5360386.html');
												thumbnails[5360508] = new thumbnail(5360508,'302008','','land7_thumb.jpg',130, 87,5,'																			photo_5360508.html');
												thumbnails[5360569] = new thumbnail(5360569,'302017','','people7_thumb.jpg',130, 194,5,'																			photo_5360569.html');
												thumbnails[5360928] = new thumbnail(5360928,'302029','','car7_thumb.jpg',130, 96,5,'																			photo_5360928.html');
												thumbnails[5394400] = new thumbnail(5394400,'304465','','Isaac_redlight_thumb.jpg',130, 130,5,'																			photo_5394400.html');
												thumbnails[5431592] = new thumbnail(5431592,'300845','','hanham123_thumb.jpg',130, 194,5,'																			photo_5431592.html');
												thumbnails[5342857] = new thumbnail(5342857,'300816','','ab8m_thumb.jpg',130, 87,5,'																			photo_5342857.html');
												thumbnails[5355623] = new thumbnail(5355623,'301634','','flow8m_thumb.jpg',130, 87,5,'																			photo_5355623.html');
												thumbnails[5360391] = new thumbnail(5360391,'302000','','arch8_thumb.jpg',130, 194,5,'																			photo_5360391.html');
												thumbnails[5360516] = new thumbnail(5360516,'302008','','land8_thumb.jpg',130, 87,5,'																			photo_5360516.html');
												thumbnails[5360571] = new thumbnail(5360571,'302017','','people8_thumb.jpg',130, 87,5,'																			photo_5360571.html');
												thumbnails[5360929] = new thumbnail(5360929,'302029','','car8_thumb.jpg',130, 90,5,'																			photo_5360929.html');
												thumbnails[5394404] = new thumbnail(5394404,'304465','','gothic_thumb.jpg',130, 130,5,'																			photo_5394404.html');
												thumbnails[5342860] = new thumbnail(5342860,'300816','','ab9m_thumb.jpg',130, 87,5,'																			photo_5342860.html');
												thumbnails[5343285] = new thumbnail(5343285,'300845','','view9m_thumb.jpg',130, 194,5,'																			photo_5343285.html');
												thumbnails[5355624] = new thumbnail(5355624,'301634','','flow9m_thumb.jpg',130, 87,5,'																			photo_5355624.html');
												thumbnails[5360394] = new thumbnail(5360394,'302000','','arch9_thumb.jpg',130, 194,5,'																			photo_5360394.html');
												thumbnails[5360517] = new thumbnail(5360517,'302008','','land9_thumb.jpg',130, 87,5,'																			photo_5360517.html');
												thumbnails[5360930] = new thumbnail(5360930,'302029','','car9_thumb.jpg',130, 100,5,'																			photo_5360930.html');
												thumbnails[5361127] = new thumbnail(5361127,'302017','','olivers15_thumb.jpg',130, 163,5,'																			photo_5361127.html');
												thumbnails[5394408] = new thumbnail(5394408,'304465','','buxusfinal-copy_thumb.jpg',130, 130,5,'																			photo_5394408.html');
												thumbnails[5431599] = new thumbnail(5431599,'300845','','dors34_thumb.jpg',130, 194,5,'																			photo_5431599.html');
												thumbnails[5342863] = new thumbnail(5342863,'300816','','ab10m_thumb.jpg',130, 87,5,'																			photo_5342863.html');
												thumbnails[5343288] = new thumbnail(5343288,'300845','','view10m_thumb.jpg',130, 194,5,'																			photo_5343288.html');
												thumbnails[5355625] = new thumbnail(5355625,'301634','','flow10m_thumb.jpg',130, 87,5,'																			photo_5355625.html');
												thumbnails[5360397] = new thumbnail(5360397,'302000','','arch10_thumb.jpg',130, 194,5,'																			photo_5360397.html');
												thumbnails[5360533] = new thumbnail(5360533,'302008','','land10_thumb.jpg',130, 87,5,'																			photo_5360533.html');
												thumbnails[5360880] = new thumbnail(5360880,'302017','','terry-bw_thumb.jpg',130, 152,5,'																			photo_5360880.html');
												thumbnails[5360931] = new thumbnail(5360931,'302029','','car10_thumb.jpg',130, 103,5,'																			photo_5360931.html');
												thumbnails[5394415] = new thumbnail(5394415,'304465','','beach_thumb.jpg',130, 130,5,'																			photo_5394415.html');
												thumbnails[5343284] = new thumbnail(5343284,'300845','','barrows_thumb.jpg',130, 130,5,'																			photo_5343284.html');
												thumbnails[5342864] = new thumbnail(5342864,'300816','','ab11m_thumb.jpg',130, 87,5,'																			photo_5342864.html');
												thumbnails[5343307] = new thumbnail(5343307,'300845','','steps_thumb.jpg',130, 130,5,'																			photo_5343307.html');
												thumbnails[5355626] = new thumbnail(5355626,'301634','','flow11m_thumb.jpg',130, 87,5,'																			photo_5355626.html');
												thumbnails[5360401] = new thumbnail(5360401,'302000','','vic1_thumb.jpg',130, 130,5,'																			photo_5360401.html');
												thumbnails[5360534] = new thumbnail(5360534,'302008','','land11_thumb.jpg',130, 194,5,'																			photo_5360534.html');
												thumbnails[5360577] = new thumbnail(5360577,'302017','','people11_thumb.jpg',130, 87,5,'																			photo_5360577.html');
												thumbnails[5360932] = new thumbnail(5360932,'302029','','morgan-racer_thumb.jpg',130, 130,5,'																			photo_5360932.html');
												thumbnails[5394418] = new thumbnail(5394418,'304465','','Isaac_bathsnow_thumb.jpg',130, 130,5,'																			photo_5394418.html');
												thumbnails[5342872] = new thumbnail(5342872,'300816','','ab12m_thumb.jpg',130, 87,5,'																			photo_5342872.html');
												thumbnails[5343316] = new thumbnail(5343316,'300845','','Isaac_Old-gate-print_thumb.jpg',130, 130,5,'																			photo_5343316.html');
												thumbnails[5360405] = new thumbnail(5360405,'302000','','arch12_thumb.jpg',130, 87,5,'																			photo_5360405.html');
												thumbnails[5360535] = new thumbnail(5360535,'302008','','land12_thumb.jpg',130, 87,5,'																			photo_5360535.html');
												thumbnails[5360578] = new thumbnail(5360578,'302017','','people12_thumb.jpg',130, 87,5,'																			photo_5360578.html');
												thumbnails[5360933] = new thumbnail(5360933,'302029','','car12_thumb.jpg',130, 99,5,'																			photo_5360933.html');
												thumbnails[5394420] = new thumbnail(5394420,'304465','','bike22x22_thumb.jpg',130, 130,5,'																			photo_5394420.html');
												thumbnails[5424414] = new thumbnail(5424414,'301634','','astrantia_thumb.jpg',130, 87,5,'																			photo_5424414.html');
												thumbnails[5342874] = new thumbnail(5342874,'300816','','ab13m_thumb.jpg',130, 87,5,'																			photo_5342874.html');
												thumbnails[5343317] = new thumbnail(5343317,'300845','','view13m_thumb.jpg',130, 87,5,'																			photo_5343317.html');
												thumbnails[5355628] = new thumbnail(5355628,'301634','','flow13m_thumb.jpg',130, 87,5,'																			photo_5355628.html');
												thumbnails[5360409] = new thumbnail(5360409,'302000','','arch13_thumb.jpg',130, 87,5,'																			photo_5360409.html');
												thumbnails[5360537] = new thumbnail(5360537,'302008','','land13_thumb.jpg',130, 87,5,'																			photo_5360537.html');
												thumbnails[5360580] = new thumbnail(5360580,'302017','','people13_thumb.jpg',130, 87,5,'																			photo_5360580.html');
												thumbnails[5360936] = new thumbnail(5360936,'302029','','car13_thumb.jpg',130, 95,5,'																			photo_5360936.html');
												thumbnails[5394423] = new thumbnail(5394423,'304465','','misc13_thumb.jpg',130, 195,5,'																			photo_5394423.html');
												thumbnails[5343326] = new thumbnail(5343326,'300845','','view16m_thumb.jpg',130, 87,5,'																			photo_5343326.html');
												thumbnails[5342875] = new thumbnail(5342875,'300816','','ab14m_thumb.jpg',130, 87,5,'																			photo_5342875.html');
												thumbnails[5343319] = new thumbnail(5343319,'300845','','view14m_thumb.jpg',130, 87,5,'																			photo_5343319.html');
												thumbnails[5355629] = new thumbnail(5355629,'301634','','iris_thumb.jpg',130, 87,5,'																			photo_5355629.html');
												thumbnails[5360411] = new thumbnail(5360411,'302000','','arch14_thumb.jpg',130, 87,5,'																			photo_5360411.html');
												thumbnails[5360538] = new thumbnail(5360538,'302008','','land14_thumb.jpg',130, 87,5,'																			photo_5360538.html');
												thumbnails[5360606] = new thumbnail(5360606,'302017','','people14_thumb.jpg',130, 87,5,'																			photo_5360606.html');
												thumbnails[5360938] = new thumbnail(5360938,'302029','','vw1_thumb.jpg',130, 130,5,'																			photo_5360938.html');
												thumbnails[5394427] = new thumbnail(5394427,'304465','','art-tulip-un_thumb.jpg',130, 130,5,'																			photo_5394427.html');
												thumbnails[5342877] = new thumbnail(5342877,'300816','','ab15m_thumb.jpg',130, 87,5,'																			photo_5342877.html');
												thumbnails[5343323] = new thumbnail(5343323,'300845','','view15m_thumb.jpg',130, 87,5,'																			photo_5343323.html');
												thumbnails[5355630] = new thumbnail(5355630,'301634','','flow15m_thumb.jpg',130, 87,5,'																			photo_5355630.html');
												thumbnails[5360414] = new thumbnail(5360414,'302000','','arch15_thumb.jpg',130, 194,5,'																			photo_5360414.html');
												thumbnails[5360540] = new thumbnail(5360540,'302008','','land15_thumb.jpg',130, 194,5,'																			photo_5360540.html');
												thumbnails[5360607] = new thumbnail(5360607,'302017','','people15_thumb.jpg',130, 87,5,'																			photo_5360607.html');
												thumbnails[5360939] = new thumbnail(5360939,'302029','','VW2_thumb.jpg',130, 130,5,'																			photo_5360939.html');
												thumbnails[5394433] = new thumbnail(5394433,'304465','','surfer-1-copy_thumb.jpg',130, 130,5,'																			photo_5394433.html');
												thumbnails[5342878] = new thumbnail(5342878,'300816','','ab16m_thumb.jpg',130, 87,5,'																			photo_5342878.html');
												thumbnails[5355631] = new thumbnail(5355631,'301634','','flow16m_thumb.jpg',130, 87,5,'																			photo_5355631.html');
												thumbnails[5360419] = new thumbnail(5360419,'302000','','Millbank-1_thumb.jpg',130, 130,5,'																			photo_5360419.html');
												thumbnails[5360541] = new thumbnail(5360541,'302008','','land16_thumb.jpg',130, 87,5,'																			photo_5360541.html');
												thumbnails[5360609] = new thumbnail(5360609,'302017','','people16_thumb.jpg',130, 87,5,'																			photo_5360609.html');
												thumbnails[5360941] = new thumbnail(5360941,'302029','','stag1_thumb.jpg',130, 130,5,'																			photo_5360941.html');
												thumbnails[5394436] = new thumbnail(5394436,'304465','','bathview_thumb.jpg',130, 86,5,'																			photo_5394436.html');
												thumbnails[5342879] = new thumbnail(5342879,'300816','','ab17m_thumb.jpg',130, 87,5,'																			photo_5342879.html');
												thumbnails[5343327] = new thumbnail(5343327,'300845','','view17m_thumb.jpg',130, 87,5,'																			photo_5343327.html');
												thumbnails[5355633] = new thumbnail(5355633,'301634','','flow17m_thumb.jpg',130, 87,5,'																			photo_5355633.html');
												thumbnails[5360422] = new thumbnail(5360422,'302000','','arch17_thumb.jpg',130, 87,5,'																			photo_5360422.html');
												thumbnails[5360542] = new thumbnail(5360542,'302008','','land17_thumb.jpg',130, 87,5,'																			photo_5360542.html');
												thumbnails[5360610] = new thumbnail(5360610,'302017','','people17_thumb.jpg',130, 87,5,'																			photo_5360610.html');
												thumbnails[5360943] = new thumbnail(5360943,'302029','','car17_thumb.jpg',130, 87,5,'																			photo_5360943.html');
												thumbnails[5394438] = new thumbnail(5394438,'304465','','fishbar_thumb.jpg',130, 86,5,'																			photo_5394438.html');
												thumbnails[5342918] = new thumbnail(5342918,'300816','','ab18m_thumb.jpg',130, 87,5,'																			photo_5342918.html');
												thumbnails[5343328] = new thumbnail(5343328,'300845','','view18m_thumb.jpg',130, 87,5,'																			photo_5343328.html');
												thumbnails[5355635] = new thumbnail(5355635,'301634','','flow18m_thumb.jpg',130, 87,5,'																			photo_5355635.html');
												thumbnails[5360428] = new thumbnail(5360428,'302000','','arch18_thumb.jpg',130, 194,5,'																			photo_5360428.html');
												thumbnails[5360543] = new thumbnail(5360543,'302008','','land18_thumb.jpg',130, 87,5,'																			photo_5360543.html');
												thumbnails[5360611] = new thumbnail(5360611,'302017','','people18_thumb.jpg',130, 87,5,'																			photo_5360611.html');
												thumbnails[5360944] = new thumbnail(5360944,'302029','','car18_thumb.jpg',130, 87,5,'																			photo_5360944.html');
												thumbnails[5394442] = new thumbnail(5394442,'304465','','misc18_thumb.jpg',130, 59,5,'																			photo_5394442.html');
												thumbnails[5342921] = new thumbnail(5342921,'300816','','ab19m_thumb.jpg',130, 87,5,'																			photo_5342921.html');
												thumbnails[5343330] = new thumbnail(5343330,'300845','','view33_thumb.jpg',130, 87,5,'																			photo_5343330.html');
												thumbnails[5355636] = new thumbnail(5355636,'301634','','flow19m_thumb.jpg',130, 87,5,'																			photo_5355636.html');
												thumbnails[5360435] = new thumbnail(5360435,'302000','','arch19_thumb.jpg',130, 87,5,'																			photo_5360435.html');
												thumbnails[5360545] = new thumbnail(5360545,'302008','','land19_thumb.jpg',130, 87,5,'																			photo_5360545.html');
												thumbnails[5360613] = new thumbnail(5360613,'302017','','people19_thumb.jpg',130, 87,5,'																			photo_5360613.html');
												thumbnails[5360945] = new thumbnail(5360945,'302029','','car19_thumb.jpg',130, 87,5,'																			photo_5360945.html');
												thumbnails[5394451] = new thumbnail(5394451,'304465','','pound1_thumb.jpg',130, 86,5,'																			photo_5394451.html');
												thumbnails[5342923] = new thumbnail(5342923,'300816','','ab20m_thumb.jpg',130, 87,5,'																			photo_5342923.html');
												thumbnails[5343331] = new thumbnail(5343331,'300845','','view31_thumb.jpg',130, 87,5,'																			photo_5343331.html');
												thumbnails[5355637] = new thumbnail(5355637,'301634','','flow20m_thumb.jpg',130, 87,5,'																			photo_5355637.html');
												thumbnails[5360440] = new thumbnail(5360440,'302000','','curve_thumb.jpg',130, 130,5,'																			photo_5360440.html');
												thumbnails[5360546] = new thumbnail(5360546,'302008','','land20_thumb.jpg',130, 87,5,'																			photo_5360546.html');
												thumbnails[5360617] = new thumbnail(5360617,'302017','','people20_thumb.jpg',130, 87,5,'																			photo_5360617.html');
												thumbnails[5360946] = new thumbnail(5360946,'302029','','porsche-huts_thumb.jpg',130, 130,5,'																			photo_5360946.html');
												thumbnails[5394994] = new thumbnail(5394994,'304465','','freehouse_copy_thumb.jpg',130, 86,5,'																			photo_5394994.html');
												thumbnails[5342925] = new thumbnail(5342925,'300816','','ab21m_thumb.jpg',130, 87,5,'																			photo_5342925.html');
												thumbnails[5360443] = new thumbnail(5360443,'302000','','arch21_thumb.jpg',130, 87,5,'																			photo_5360443.html');
												thumbnails[5360618] = new thumbnail(5360618,'302017','','people21_thumb.jpg',130, 87,5,'																			photo_5360618.html');
												thumbnails[5428546] = new thumbnail(5428546,'301634','','helenium_thumb.jpg',130, 87,5,'																			photo_5428546.html');
												thumbnails[5342929] = new thumbnail(5342929,'300816','','ab22m_thumb.jpg',130, 87,5,'																			photo_5342929.html');
												thumbnails[5355640] = new thumbnail(5355640,'301634','','flow22m_thumb.jpg',130, 87,5,'																			photo_5355640.html');
												thumbnails[5360446] = new thumbnail(5360446,'302000','','arch22_thumb.jpg',130, 87,5,'																			photo_5360446.html');
												thumbnails[5360620] = new thumbnail(5360620,'302017','','people22_thumb.jpg',130, 99,5,'																			photo_5360620.html');
												thumbnails[5431600] = new thumbnail(5431600,'300845','','hanham126_thumb.jpg',130, 87,5,'																			photo_5431600.html');
												thumbnails[5342931] = new thumbnail(5342931,'300816','','ab23m_thumb.jpg',130, 87,5,'																			photo_5342931.html');
												thumbnails[5355644] = new thumbnail(5355644,'301634','','flow23m_thumb.jpg',130, 87,5,'																			photo_5355644.html');
												thumbnails[5360449] = new thumbnail(5360449,'302000','','burgh_thumb.jpg',130, 130,5,'																			photo_5360449.html');
												thumbnails[5360622] = new thumbnail(5360622,'302017','','people23_thumb.jpg',130, 108,5,'																			photo_5360622.html');
												thumbnails[5431602] = new thumbnail(5431602,'300845','','view23_thumb.jpg',130, 87,5,'																			photo_5431602.html');
												thumbnails[5342957] = new thumbnail(5342957,'300816','','ab24m_thumb.jpg',130, 87,5,'																			photo_5342957.html');
												thumbnails[5355645] = new thumbnail(5355645,'301634','','flow24m_thumb.jpg',130, 87,5,'																			photo_5355645.html');
												thumbnails[5360450] = new thumbnail(5360450,'302000','','arch24_thumb.jpg',130, 87,5,'																			photo_5360450.html');
												thumbnails[5360623] = new thumbnail(5360623,'302017','','people24_thumb.jpg',130, 86,5,'																			photo_5360623.html');
												thumbnails[5431606] = new thumbnail(5431606,'300845','','dors66_thumb.jpg',130, 87,5,'																			photo_5431606.html');
												thumbnails[5342959] = new thumbnail(5342959,'300816','','ab25m_thumb.jpg',130, 87,5,'																			photo_5342959.html');
												thumbnails[5355646] = new thumbnail(5355646,'301634','','flow25m_thumb.jpg',130, 87,5,'																			photo_5355646.html');
												thumbnails[5360451] = new thumbnail(5360451,'302000','','arch25_thumb.jpg',130, 87,5,'																			photo_5360451.html');
												thumbnails[5360624] = new thumbnail(5360624,'302017','','people25_thumb.jpg',130, 87,5,'																			photo_5360624.html');
												thumbnails[5431610] = new thumbnail(5431610,'300845','','ozle60813_thumb.jpg',130, 87,5,'																			photo_5431610.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[300816] = new gallery(300816,'5364412,5342878','Horticulture 1','gallery',[5342820,5364412,5342824,5342825,5342827,5342853,5342854,5342857,5342860,5342863,5342864,5342872,5342874,5342875,5342877,5342878,5342879,5342918,5342921,5342923,5342925,5342929,5342931,5342957,5342959],0, 1, '', '																																																																																																							gallery_300816.html',0,0);
				  					galleries[300845] = new gallery(300845,'5431610,5343326,5343285,5343275','Horticulture 2','gallery',[5343265,5343266,5343272,5343273,5343275,5343277,5431592,5343285,5431599,5343288,5343284,5343307,5343316,5343317,5343326,5343319,5343323,5343327,5343328,5343330,5343331,5431600,5431602,5431606,5431610],0, 1, '', '																																																																																																							gallery_300845.html',0,0);
				  					galleries[301634] = new gallery(301634,'5355640,5355621','Horticulture 3','gallery',[5355609,5355612,5355615,5355617,5355620,5355621,5355622,5355623,5355624,5355625,5355626,5424414,5355628,5355629,5355630,5355631,5355633,5355635,5355636,5355637,5428546,5355640,5355644,5355645,5355646],0, 1, '', '																																																																																																							gallery_301634.html',0,0);
				  					galleries[302000] = new gallery(302000,'5360446,5360443,5360369','Architecture','gallery',[5360361,5360367,5360369,5360372,5360377,5360380,5360386,5360391,5360394,5360397,5360401,5360405,5360409,5360411,5360414,5360419,5360422,5360428,5360435,5360440,5360443,5360446,5360449,5360450,5360451],0, 1, '', '																																																																																																							gallery_302000.html',0,0);
				  					galleries[302008] = new gallery(302008,'5360546,5360533,5360502,5360480','Landscape','gallery',[5360480,5360483,5360495,5360487,5360502,5360506,5360508,5360516,5360517,5360533,5360534,5360535,5360537,5360538,5360540,5360541,5360542,5360543,5360545,5360546],0, 1, '', '																																																																																																							gallery_302008.html',0,0);
				  					galleries[302017] = new gallery(302017,'5360620,5360610,5360566','People','gallery',[5360553,5360555,5360557,5360563,5360566,5360848,5360569,5360571,5361127,5360880,5360577,5360578,5360580,5360606,5360607,5360609,5360610,5360611,5360613,5360617,5360618,5360620,5360622,5360623,5360624],0, 1, '', '																																																																																																							gallery_302017.html',0,0);
				  					galleries[302029] = new gallery(302029,'5360945,5360943,5360929,5360903','Automotive','gallery',[5360889,5360892,5360893,5360896,5360903,5360927,5360928,5360929,5360930,5360931,5360932,5360933,5360936,5360938,5360939,5360941,5360943,5360944,5360945,5360946],0, 1, '', '																																																																																																							gallery_302029.html',0,0);
				  					galleries[304465] = new gallery(304465,'5394438,5394418,5394400,5394395','Miscellany','gallery',[5394380,5394385,5394394,5394395,5394373,5394399,5394400,5394404,5394408,5394415,5394418,5394420,5394423,5394427,5394433,5394436,5394438,5394442,5394451,5394994],0, 1, '', '																																																																																																							gallery_304465.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '5424414,5343327,5343319,5342929,5342878,5342877,5342864,5342857';
imageSets[2] = '5431610,5394438,5394418,5394400,5394395,5364412,5360945,5360943,5360929,5360903,5360620,5360610,5360566,5360546,5360533,5360502,5360480,5360446,5360443,5360369,5355640,5355621,5343326,5343285,5343275,5342878';
imageSets[3] = '5431610,5431606,5431602,5431600,5431599,5431592,5428546,5424414,5394994,5394451,5394442,5394438,5394436,5394433,5394427,5394423,5394420,5394418,5394415,5394408,5394404,5394400,5394399,5394395,5394394,5394385,5394380,5394373,5364412,5361127,5360946,5360945,5360944,5360943,5360941,5360939,5360938,5360936,5360933,5360932,5360931,5360930,5360929,5360928,5360927,5360903,5360896,5360893,5360892,5360889';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/rowanae/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/rowanae/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/rowanae/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/rowanae/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/rowanae/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/rowanae/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 = 'Rowan Isaac 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));    }        
    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;
	}
}

		

