window.thumbnails = new Object();
												thumbnails[7235705] = new thumbnail(7235705,'391040','','Cardingmill_Valley_1_thumb.JPG',160, 120,32,'																			photo_7235705.html');
												thumbnails[7235707] = new thumbnail(7235707,'391040','','Cardingmill_Valley_1_1_thumb.JPG',160, 120,32,'																			photo_7235707.html');
												thumbnails[7235709] = new thumbnail(7235709,'391040','','Cardingmill_Valley_1_2_thumb.JPG',160, 120,32,'																			photo_7235709.html');
												thumbnails[7235710] = new thumbnail(7235710,'391040','','Cardingmill_Valley_1_3_thumb.JPG',160, 120,32,'																			photo_7235710.html');
												thumbnails[7235711] = new thumbnail(7235711,'391040','','Rectory_Wood_1_thumb.JPG',160, 120,32,'																			photo_7235711.html');
												thumbnails[7235712] = new thumbnail(7235712,'391040','','Rectory_Wood_1_1_thumb.JPG',160, 120,32,'																			photo_7235712.html');
												thumbnails[7235713] = new thumbnail(7235713,'391040','','Rectory_Wood_1_2_thumb.JPG',160, 120,32,'																			photo_7235713.html');
												thumbnails[7235714] = new thumbnail(7235714,'391040','','Rectory_Wood_1_3_thumb.JPG',160, 120,32,'																			photo_7235714.html');
												thumbnails[7235767] = new thumbnail(7235767,'391028','','Around_Shropshire1_thumb.JPG',160, 107,32,'																			photo_7235767.html');
												thumbnails[7235779] = new thumbnail(7235779,'391028','','Around_Shropshire_1_thumb.JPG',160, 107,32,'																			photo_7235779.html');
												thumbnails[7235781] = new thumbnail(7235781,'391028','','Around_Shropshire_2_thumb.JPG',160, 107,32,'																			photo_7235781.html');
												thumbnails[7235789] = new thumbnail(7235789,'391028','','Around_Shropshire_3_thumb.jpg',160, 107,32,'																			photo_7235789.html');
												thumbnails[7235799] = new thumbnail(7235799,'391028','','Around_Shropshire_4_thumb.JPG',160, 107,32,'																			photo_7235799.html');
												thumbnails[7235802] = new thumbnail(7235802,'391028','','Around_Shropshire_5_thumb.JPG',160, 107,32,'																			photo_7235802.html');
												thumbnails[7235803] = new thumbnail(7235803,'391028','','Around_Shropshire_6_thumb.JPG',160, 107,32,'																			photo_7235803.html');
												thumbnails[7235805] = new thumbnail(7235805,'391028','','Around_Shropshire_7_thumb.JPG',160, 107,32,'																			photo_7235805.html');
												thumbnails[7235808] = new thumbnail(7235808,'391028','','Around_Shropshire_8_thumb.jpg',160, 107,32,'																			photo_7235808.html');
												thumbnails[7235810] = new thumbnail(7235810,'391028','','Around_Shropshire_9_thumb.JPG',160, 107,32,'																			photo_7235810.html');
												thumbnails[7235812] = new thumbnail(7235812,'391028','','Around_Shropshire_10_thumb.JPG',160, 107,32,'																			photo_7235812.html');
												thumbnails[7235814] = new thumbnail(7235814,'391028','','Around_Shropshire_11_thumb.JPG',160, 107,32,'																			photo_7235814.html');
												thumbnails[7235817] = new thumbnail(7235817,'391028','','Around_Shropshire_12_thumb.JPG',160, 107,32,'																			photo_7235817.html');
												thumbnails[7235819] = new thumbnail(7235819,'391028','','Around_Shropshire_13_thumb.JPG',160, 107,32,'																			photo_7235819.html');
												thumbnails[7235821] = new thumbnail(7235821,'391028','','Around_Shropshire_14_thumb.JPG',160, 107,32,'																			photo_7235821.html');
												thumbnails[7235825] = new thumbnail(7235825,'391028','','Around_Shropshire_15_thumb.JPG',160, 107,32,'																			photo_7235825.html');
												thumbnails[7235828] = new thumbnail(7235828,'391028','','Around_Shropshire_16_thumb.JPG',160, 107,32,'																			photo_7235828.html');
												thumbnails[7235829] = new thumbnail(7235829,'391028','','Around_Shropshire_17_thumb.JPG',160, 107,32,'																			photo_7235829.html');
												thumbnails[7235832] = new thumbnail(7235832,'391028','','Around_Shropshire_18_thumb.JPG',160, 107,32,'																			photo_7235832.html');
												thumbnails[7235838] = new thumbnail(7235838,'391028','','Around_Shropshire_19_thumb.JPG',160, 107,32,'																			photo_7235838.html');
												thumbnails[7235843] = new thumbnail(7235843,'391028','','Around_Shropshire_20_thumb.JPG',160, 107,32,'																			photo_7235843.html');
												thumbnails[7235844] = new thumbnail(7235844,'391028','','Around_Shropshire_21_thumb.JPG',160, 107,32,'																			photo_7235844.html');
												thumbnails[7235846] = new thumbnail(7235846,'391028','','Around_Shropshire_22_thumb.JPG',160, 107,32,'																			photo_7235846.html');
												thumbnails[7235847] = new thumbnail(7235847,'391028','','Around_Shropshire_23_thumb.JPG',160, 107,32,'																			photo_7235847.html');
												thumbnails[7235848] = new thumbnail(7235848,'391028','','Around_Shropshire_24_thumb.JPG',160, 107,32,'																			photo_7235848.html');
												thumbnails[7235849] = new thumbnail(7235849,'391028','','Around_Shropshire_25_thumb.JPG',160, 107,32,'																			photo_7235849.html');
												thumbnails[7235853] = new thumbnail(7235853,'391028','','Around_Shropshire_26_thumb.JPG',160, 107,32,'																			photo_7235853.html');
												thumbnails[7235857] = new thumbnail(7235857,'391028','','Around_Shropshire_27_thumb.JPG',160, 107,32,'																			photo_7235857.html');
												thumbnails[7235859] = new thumbnail(7235859,'391028','','Around_Shropshire_28_thumb.JPG',160, 107,32,'																			photo_7235859.html');
												thumbnails[7235860] = new thumbnail(7235860,'391028','','Around_Shropshire_29_thumb.JPG',160, 107,32,'																			photo_7235860.html');
												thumbnails[7237890] = new thumbnail(7237890,'391040','','Church_Stretton_thumb.jpg',160, 120,32,'																			photo_7237890.html');
												thumbnails[7237892] = new thumbnail(7237892,'391040','','Church_Stretton_1_thumb.jpg',160, 120,32,'																			photo_7237892.html');
												thumbnails[7237900] = new thumbnail(7237900,'391040','','Church_Stretton_2_thumb.jpg',160, 120,32,'																			photo_7237900.html');
												thumbnails[7237901] = new thumbnail(7237901,'391040','','Church_Stretton_3_thumb.jpg',160, 120,32,'																			photo_7237901.html');
												thumbnails[7237902] = new thumbnail(7237902,'391040','','Church_Stretton_4_thumb.jpg',160, 120,32,'																			photo_7237902.html');
												thumbnails[7237903] = new thumbnail(7237903,'391040','','Church_Stretton_5_thumb.jpg',160, 120,32,'																			photo_7237903.html');
												thumbnails[7237916] = new thumbnail(7237916,'391040','','Church_Stretton_6_thumb.jpg',160, 120,32,'																			photo_7237916.html');
												thumbnails[7237917] = new thumbnail(7237917,'391040','','Church_Stretton_7_thumb.jpg',160, 120,32,'																			photo_7237917.html');
												thumbnails[7237921] = new thumbnail(7237921,'391040','','Church_Stretton_8_thumb.jpg',160, 120,32,'																			photo_7237921.html');
												thumbnails[7237923] = new thumbnail(7237923,'391040','','Church_Stretton_9_thumb.jpg',160, 120,32,'																			photo_7237923.html');
												thumbnails[7237926] = new thumbnail(7237926,'391040','','Church_Stretton_10_thumb.jpg',160, 120,32,'																			photo_7237926.html');
												thumbnails[7237928] = new thumbnail(7237928,'391040','','Church_Stretton_11_thumb.jpg',160, 120,32,'																			photo_7237928.html');
												thumbnails[7237962] = new thumbnail(7237962,'391040','','Church_Stretton_13_thumb.jpg',160, 107,32,'																			photo_7237962.html');
												thumbnails[7237965] = new thumbnail(7237965,'391040','','Church_Stretton_14_thumb.jpg',160, 107,32,'																			photo_7237965.html');
												thumbnails[7237968] = new thumbnail(7237968,'391040','','Church_Stretton_15_thumb.jpg',160, 107,32,'																			photo_7237968.html');
												thumbnails[7237971] = new thumbnail(7237971,'391040','','Church_Stretton_16_thumb.jpg',160, 107,32,'																			photo_7237971.html');
												thumbnails[7237973] = new thumbnail(7237973,'391040','','Church_Stretton_17_thumb.jpg',160, 107,32,'																			photo_7237973.html');
												thumbnails[7237976] = new thumbnail(7237976,'391040','','Church_Stretton_18_thumb.jpg',160, 107,32,'																			photo_7237976.html');
												thumbnails[7237979] = new thumbnail(7237979,'391040','','Church_Stretton_19_thumb.jpg',160, 107,32,'																			photo_7237979.html');
												thumbnails[7237983] = new thumbnail(7237983,'391040','','Church_Stretton_20_thumb.jpg',160, 107,32,'																			photo_7237983.html');
												thumbnails[7237987] = new thumbnail(7237987,'391040','','Church_Stretton_21_thumb.jpg',160, 107,32,'																			photo_7237987.html');
												thumbnails[7237991] = new thumbnail(7237991,'391040','','Church_Stretton_22_thumb.jpg',160, 107,32,'																			photo_7237991.html');
												thumbnails[7237995] = new thumbnail(7237995,'391040','','Church_Stretton_23_thumb.jpg',160, 107,32,'																			photo_7237995.html');
												thumbnails[7237996] = new thumbnail(7237996,'391040','','Church_Stretton_24_thumb.jpg',160, 107,32,'																			photo_7237996.html');
												thumbnails[7237997] = new thumbnail(7237997,'391040','','Church_Stretton_25_thumb.jpg',160, 107,32,'																			photo_7237997.html');
												thumbnails[7237998] = new thumbnail(7237998,'391040','','Church_Stretton_26_thumb.jpg',160, 107,32,'																			photo_7237998.html');
												thumbnails[7237999] = new thumbnail(7237999,'391040','','Church_Stretton_27_thumb.jpg',160, 107,32,'																			photo_7237999.html');
												thumbnails[7238000] = new thumbnail(7238000,'391040','','Church_Stretton_28_thumb.jpg',160, 107,32,'																			photo_7238000.html');
												thumbnails[7238001] = new thumbnail(7238001,'391040','','Church_Stretton_29_thumb.jpg',160, 107,32,'																			photo_7238001.html');
												thumbnails[7238002] = new thumbnail(7238002,'391040','','Church_Stretton_30_thumb.jpg',160, 107,32,'																			photo_7238002.html');
												thumbnails[7238004] = new thumbnail(7238004,'391040','','Church_Stretton_31_thumb.jpg',160, 107,32,'																			photo_7238004.html');
												thumbnails[7238005] = new thumbnail(7238005,'391040','','Church_Stretton_32_thumb.jpg',160, 107,32,'																			photo_7238005.html');
												thumbnails[7238006] = new thumbnail(7238006,'391040','','Church_Stretton_33_thumb.jpg',160, 107,32,'																			photo_7238006.html');
												thumbnails[7238007] = new thumbnail(7238007,'391040','','Church_Stretton_35_thumb.jpg',160, 107,32,'																			photo_7238007.html');
												thumbnails[7238009] = new thumbnail(7238009,'391040','','Church_Stretton_36_thumb.jpg',160, 107,32,'																			photo_7238009.html');
												thumbnails[7238010] = new thumbnail(7238010,'391040','','Church_Stretton_37_thumb.jpg',160, 107,32,'																			photo_7238010.html');
												thumbnails[7238011] = new thumbnail(7238011,'391040','','Church_Stretton_38_thumb.jpg',160, 107,32,'																			photo_7238011.html');
												thumbnails[7238012] = new thumbnail(7238012,'391040','','Church_Stretton_39_thumb.jpg',160, 107,32,'																			photo_7238012.html');
												thumbnails[7238013] = new thumbnail(7238013,'391040','','Church_Stretton_40_thumb.jpg',160, 107,32,'																			photo_7238013.html');
												thumbnails[7238014] = new thumbnail(7238014,'391040','','Church_Stretton_41_thumb.jpg',160, 107,32,'																			photo_7238014.html');
												thumbnails[7238016] = new thumbnail(7238016,'391040','','Church_Stretton_42_thumb.jpg',160, 107,32,'																			photo_7238016.html');
												thumbnails[7238017] = new thumbnail(7238017,'391040','','Church_Stretton_43_thumb.jpg',160, 107,32,'																			photo_7238017.html');
												thumbnails[7238018] = new thumbnail(7238018,'391040','','Church_Stretton_44_thumb.jpg',160, 107,32,'																			photo_7238018.html');
												thumbnails[7238019] = new thumbnail(7238019,'391040','','Church_Stretton_45_thumb.jpg',160, 107,32,'																			photo_7238019.html');
												thumbnails[7238020] = new thumbnail(7238020,'391040','','Church_Stretton_46_thumb.jpg',160, 107,32,'																			photo_7238020.html');
												thumbnails[7238021] = new thumbnail(7238021,'391040','','Church_Stretton_47_thumb.jpg',160, 107,32,'																			photo_7238021.html');
												thumbnails[7238022] = new thumbnail(7238022,'391040','','Church_Stretton_48_thumb.jpg',160, 107,32,'																			photo_7238022.html');
												thumbnails[7238023] = new thumbnail(7238023,'391040','','Church_Stretton_49_thumb.jpg',160, 107,32,'																			photo_7238023.html');
												thumbnails[7238025] = new thumbnail(7238025,'391040','','Church_Stretton_50_thumb.jpg',160, 107,32,'																			photo_7238025.html');
												thumbnails[7238027] = new thumbnail(7238027,'391040','','Church_Stretton_51_thumb.jpg',160, 107,32,'																			photo_7238027.html');
												thumbnails[7238028] = new thumbnail(7238028,'391040','','Church_Stretton_52_thumb.jpg',160, 107,32,'																			photo_7238028.html');
												thumbnails[7238029] = new thumbnail(7238029,'391040','','Church_Stretton_53_thumb.jpg',160, 107,32,'																			photo_7238029.html');
												thumbnails[7238030] = new thumbnail(7238030,'391040','','Church_Stretton_54_thumb.jpg',160, 107,32,'																			photo_7238030.html');
												thumbnails[7238031] = new thumbnail(7238031,'391040','','Church_Stretton_55_thumb.jpg',160, 107,32,'																			photo_7238031.html');
												thumbnails[7238033] = new thumbnail(7238033,'391040','','Church_Stretton_56_thumb.jpg',160, 107,32,'																			photo_7238033.html');
												thumbnails[7238035] = new thumbnail(7238035,'391040','','Church_Stretton_57_thumb.jpg',160, 107,32,'																			photo_7238035.html');
												thumbnails[7238039] = new thumbnail(7238039,'391040','','Church_Stretton_59_thumb.jpg',160, 107,32,'																			photo_7238039.html');
												thumbnails[7238040] = new thumbnail(7238040,'391040','','Church_Stretton_58_thumb.jpg',160, 107,32,'																			photo_7238040.html');
												thumbnails[7238042] = new thumbnail(7238042,'391040','','Church_Stretton_60_thumb.jpg',160, 107,32,'																			photo_7238042.html');
												thumbnails[7238043] = new thumbnail(7238043,'391040','','Church_Stretton_61_thumb.jpg',160, 107,32,'																			photo_7238043.html');
												thumbnails[7238044] = new thumbnail(7238044,'391040','','Church_Stretton_62_thumb.jpg',160, 107,32,'																			photo_7238044.html');
												thumbnails[7238045] = new thumbnail(7238045,'391040','','Church_Stretton_63_thumb.jpg',160, 107,32,'																			photo_7238045.html');
												thumbnails[7238046] = new thumbnail(7238046,'391040','','Church_Stretton_64_thumb.jpg',160, 107,32,'																			photo_7238046.html');
												thumbnails[7238048] = new thumbnail(7238048,'391040','','Church_Stretton_65_thumb.jpg',160, 107,32,'																			photo_7238048.html');
												thumbnails[7238049] = new thumbnail(7238049,'391040','','Church_Stretton_66_thumb.jpg',160, 107,32,'																			photo_7238049.html');
												thumbnails[7238050] = new thumbnail(7238050,'391040','','Church_Stretton_67_thumb.jpg',160, 107,32,'																			photo_7238050.html');
												thumbnails[7238120] = new thumbnail(7238120,'391028','','Around_Shropshire_1_301_thumb.JPG',160, 107,32,'																			photo_7238120.html');
												thumbnails[7238143] = new thumbnail(7238143,'391028','','Around_Shropshire_1_3112_thumb.JPG',160, 107,32,'																			photo_7238143.html');
												thumbnails[7238148] = new thumbnail(7238148,'391028','','Around_Shropshire_1_321_thumb.JPG',160, 107,32,'																			photo_7238148.html');
												thumbnails[7238259] = new thumbnail(7238259,'391028','','Around_Shropshire_1_341_thumb.JPG',160, 107,32,'																			photo_7238259.html');
												thumbnails[7238261] = new thumbnail(7238261,'391028','','Around_Shropshire_1_351_thumb.JPG',160, 107,32,'																			photo_7238261.html');
												thumbnails[7238263] = new thumbnail(7238263,'391028','','Around_Shropshire_1_361_thumb.JPG',160, 107,32,'																			photo_7238263.html');
												thumbnails[7238266] = new thumbnail(7238266,'391028','','Around_Shropshire_1_371_thumb.JPG',160, 107,32,'																			photo_7238266.html');
												thumbnails[7238269] = new thumbnail(7238269,'391028','','Around_Shropshire_1_381_thumb.JPG',160, 107,32,'																			photo_7238269.html');
												thumbnails[7238362] = new thumbnail(7238362,'391028','','Around_Shropshire_1_391_thumb.JPG',160, 107,32,'																			photo_7238362.html');
												thumbnails[7238377] = new thumbnail(7238377,'391028','','Around_Shropshire_1_40_thumb.JPG',160, 107,32,'																			photo_7238377.html');
												thumbnails[7238399] = new thumbnail(7238399,'391028','','Around_Shropshire_1_41_thumb.JPG',160, 107,32,'																			photo_7238399.html');
												thumbnails[7238402] = new thumbnail(7238402,'391028','','Around_Shropshire_1_42_thumb.JPG',160, 107,32,'																			photo_7238402.html');
												thumbnails[7238405] = new thumbnail(7238405,'391028','','Around_Shropshire_1_43_thumb.JPG',160, 107,32,'																			photo_7238405.html');
												thumbnails[7238407] = new thumbnail(7238407,'391028','','Around_Shropshire_1_44_thumb.JPG',160, 107,32,'																			photo_7238407.html');
												thumbnails[7238412] = new thumbnail(7238412,'391028','','Around_Shropshire_1_45_thumb.JPG',160, 107,32,'																			photo_7238412.html');
												thumbnails[7238416] = new thumbnail(7238416,'391028','','Around_Shropshire_1_46_thumb.JPG',160, 107,32,'																			photo_7238416.html');
												thumbnails[7238422] = new thumbnail(7238422,'391028','','Around_Shropshire_1_47_thumb.JPG',160, 107,32,'																			photo_7238422.html');
												thumbnails[7238424] = new thumbnail(7238424,'391028','','Around_Shropshire_1_48_thumb.JPG',160, 107,32,'																			photo_7238424.html');
												thumbnails[7238426] = new thumbnail(7238426,'391028','','Around_Shropshire_1_49_thumb.JPG',160, 107,32,'																			photo_7238426.html');
												thumbnails[7238429] = new thumbnail(7238429,'391028','','Around_Shropshire_1_50_thumb.JPG',160, 107,32,'																			photo_7238429.html');
												thumbnails[7238431] = new thumbnail(7238431,'391028','','Around_Shropshire_1_51_thumb.JPG',160, 107,32,'																			photo_7238431.html');
												thumbnails[7238432] = new thumbnail(7238432,'391028','','Around_Shropshire_1_52_thumb.JPG',160, 107,32,'																			photo_7238432.html');
												thumbnails[7238434] = new thumbnail(7238434,'391028','','Around_Shropshire_1_53_thumb.JPG',160, 107,32,'																			photo_7238434.html');
												thumbnails[7238435] = new thumbnail(7238435,'391028','','Around_Shropshire_1_54_thumb.JPG',160, 107,32,'																			photo_7238435.html');
												thumbnails[7238438] = new thumbnail(7238438,'391028','','Around_Shropshire_1_55_thumb.JPG',160, 107,32,'																			photo_7238438.html');
												thumbnails[7238440] = new thumbnail(7238440,'391028','','Around_Shropshire_1_56_thumb.JPG',160, 107,32,'																			photo_7238440.html');
												thumbnails[7238441] = new thumbnail(7238441,'391028','','Around_Shropshire_1_57_thumb.JPG',160, 107,32,'																			photo_7238441.html');
												thumbnails[7238443] = new thumbnail(7238443,'391028','','Around_Shropshire_1_581_thumb.JPG',160, 107,32,'																			photo_7238443.html');
												thumbnails[7238444] = new thumbnail(7238444,'391028','','Around_Shropshire_1_59_thumb.JPG',160, 107,32,'																			photo_7238444.html');
												thumbnails[7238445] = new thumbnail(7238445,'391028','','Around_Shropshire_1_60_thumb.JPG',160, 107,32,'																			photo_7238445.html');
												thumbnails[7238447] = new thumbnail(7238447,'391028','','Around_Shropshire_1_61_thumb.JPG',160, 107,32,'																			photo_7238447.html');
												thumbnails[7238448] = new thumbnail(7238448,'391028','','Around_Shropshire_1_62_thumb.JPG',160, 107,32,'																			photo_7238448.html');
												thumbnails[7238449] = new thumbnail(7238449,'391028','','Around_Shropshire_1_63_thumb.JPG',160, 107,32,'																			photo_7238449.html');
												thumbnails[7238451] = new thumbnail(7238451,'391028','','Around_Shropshire_1_64_thumb.JPG',160, 107,32,'																			photo_7238451.html');
												thumbnails[7238452] = new thumbnail(7238452,'391028','','Around_Shropshire_1_65_thumb.JPG',160, 107,32,'																			photo_7238452.html');
												thumbnails[7238453] = new thumbnail(7238453,'391028','','Around_Shropshire_1_66_thumb.JPG',160, 107,32,'																			photo_7238453.html');
												thumbnails[7243910] = new thumbnail(7243910,'391476','','Loton_Park_thumb.jpg',160, 107,32,'																			photo_7243910.html');
												thumbnails[7244016] = new thumbnail(7244016,'391476','','Loton_Park_112_thumb.jpg',160, 107,32,'																			photo_7244016.html');
												thumbnails[7244019] = new thumbnail(7244019,'391476','','Loton_Park_21_thumb.jpg',160, 107,32,'																			photo_7244019.html');
												thumbnails[7244021] = new thumbnail(7244021,'391476','','Loton_Park_31_thumb.jpg',160, 107,32,'																			photo_7244021.html');
												thumbnails[7244022] = new thumbnail(7244022,'391476','','Loton_Park_41_thumb.jpg',160, 107,32,'																			photo_7244022.html');
												thumbnails[7244023] = new thumbnail(7244023,'391476','','Loton_Park_51_thumb.jpg',160, 107,32,'																			photo_7244023.html');
												thumbnails[7244025] = new thumbnail(7244025,'391476','','Loton_Park_61_thumb.jpg',160, 107,32,'																			photo_7244025.html');
												thumbnails[7244026] = new thumbnail(7244026,'391476','','Loton_Park_71_thumb.jpg',160, 107,32,'																			photo_7244026.html');
												thumbnails[7244027] = new thumbnail(7244027,'391476','','Loton_Park_81_thumb.jpg',160, 107,32,'																			photo_7244027.html');
												thumbnails[7244029] = new thumbnail(7244029,'391476','','Loton_Park_91_thumb.jpg',160, 107,32,'																			photo_7244029.html');
												thumbnails[7244031] = new thumbnail(7244031,'391476','','Loton_Park_101_thumb.jpg',160, 107,32,'																			photo_7244031.html');
												thumbnails[7244032] = new thumbnail(7244032,'391476','','Loton_Park_111_thumb.jpg',160, 107,32,'																			photo_7244032.html');
												thumbnails[7244035] = new thumbnail(7244035,'391476','','Loton_Park_121_thumb.jpg',160, 107,32,'																			photo_7244035.html');
												thumbnails[7244036] = new thumbnail(7244036,'391476','','Loton_Park_131_thumb.jpg',160, 107,32,'																			photo_7244036.html');
												thumbnails[7244037] = new thumbnail(7244037,'391476','','Loton_Park_141_thumb.jpg',160, 107,32,'																			photo_7244037.html');
												thumbnails[7244039] = new thumbnail(7244039,'391476','','Loton_Park_151_thumb.jpg',160, 107,32,'																			photo_7244039.html');
												thumbnails[7244042] = new thumbnail(7244042,'391476','','Loton_Park_161_thumb.jpg',160, 107,32,'																			photo_7244042.html');
												thumbnails[7244043] = new thumbnail(7244043,'391476','','Loton_Park_181_thumb.jpg',160, 107,32,'																			photo_7244043.html');
												thumbnails[7244045] = new thumbnail(7244045,'391476','','Loton_Park_191_thumb.jpg',160, 107,32,'																			photo_7244045.html');
												thumbnails[7244050] = new thumbnail(7244050,'391476','','Loton_Park_20_thumb.jpg',160, 107,32,'																			photo_7244050.html');
												thumbnails[7244053] = new thumbnail(7244053,'391476','','Loton_Park_211_thumb.jpg',160, 107,32,'																			photo_7244053.html');
												thumbnails[7244054] = new thumbnail(7244054,'391476','','Loton_Park_22_thumb.jpg',160, 107,32,'																			photo_7244054.html');
												thumbnails[7244060] = new thumbnail(7244060,'391476','','Loton_Park_23_thumb.jpg',160, 107,32,'																			photo_7244060.html');
												thumbnails[7244068] = new thumbnail(7244068,'391476','','Loton_Park_24_thumb.jpg',160, 107,32,'																			photo_7244068.html');
												thumbnails[7244069] = new thumbnail(7244069,'391476','','Loton_Park_25_thumb.jpg',160, 107,32,'																			photo_7244069.html');
												thumbnails[7244070] = new thumbnail(7244070,'391476','','Loton_Park_26_thumb.jpg',160, 107,32,'																			photo_7244070.html');
												thumbnails[7244071] = new thumbnail(7244071,'391476','','Loton_Park_27_thumb.jpg',160, 107,32,'																			photo_7244071.html');
												thumbnails[7244073] = new thumbnail(7244073,'391476','','Loton_Park_28_thumb.jpg',160, 107,32,'																			photo_7244073.html');
												thumbnails[7244074] = new thumbnail(7244074,'391476','','Loton_Park_29_thumb.jpg',160, 107,32,'																			photo_7244074.html');
												thumbnails[7244075] = new thumbnail(7244075,'391476','','Loton_Park_30_thumb.jpg',160, 107,32,'																			photo_7244075.html');
												thumbnails[7244076] = new thumbnail(7244076,'391476','','Loton_Park_311_thumb.jpg',160, 107,32,'																			photo_7244076.html');
												thumbnails[7244077] = new thumbnail(7244077,'391476','','Loton_Park_32_thumb.jpg',160, 107,32,'																			photo_7244077.html');
												thumbnails[7244080] = new thumbnail(7244080,'391476','','Loton_Park_33_thumb.jpg',160, 107,32,'																			photo_7244080.html');
												thumbnails[7244083] = new thumbnail(7244083,'391476','','Loton_Park_34_thumb.jpg',160, 107,32,'																			photo_7244083.html');
												thumbnails[7244085] = new thumbnail(7244085,'391476','','Loton_Park_35_thumb.jpg',160, 107,32,'																			photo_7244085.html');
												thumbnails[7244089] = new thumbnail(7244089,'391476','','Loton_Park_36_thumb.jpg',160, 107,32,'																			photo_7244089.html');
												thumbnails[7244093] = new thumbnail(7244093,'391476','','Loton_Park_37_thumb.jpg',160, 107,32,'																			photo_7244093.html');
												thumbnails[7244095] = new thumbnail(7244095,'391476','','Loton_Park_38_thumb.jpg',160, 107,32,'																			photo_7244095.html');
												thumbnails[7244098] = new thumbnail(7244098,'391476','','Loton_Park_39_thumb.jpg',160, 107,32,'																			photo_7244098.html');
												thumbnails[7244101] = new thumbnail(7244101,'391476','','Loton_Park_40_thumb.jpg',160, 107,32,'																			photo_7244101.html');
												thumbnails[7244103] = new thumbnail(7244103,'391476','','Loton_Park_411_thumb.jpg',160, 107,32,'																			photo_7244103.html');
												thumbnails[7244104] = new thumbnail(7244104,'391476','','Loton_Park_42_thumb.jpg',160, 107,32,'																			photo_7244104.html');
												thumbnails[7244105] = new thumbnail(7244105,'391476','','Loton_Park_43_thumb.jpg',160, 107,32,'																			photo_7244105.html');
												thumbnails[7244229] = new thumbnail(7244229,'391607','','Party_thumb.jpg',160, 107,32,'																			photo_7244229.html');
												thumbnails[7244231] = new thumbnail(7244231,'391607','','Party_1_thumb.jpg',160, 107,32,'																			photo_7244231.html');
												thumbnails[7244232] = new thumbnail(7244232,'391607','','Party_2_thumb.jpg',160, 107,32,'																			photo_7244232.html');
												thumbnails[7244234] = new thumbnail(7244234,'391607','','Party_3_thumb.jpg',160, 107,32,'																			photo_7244234.html');
												thumbnails[7244237] = new thumbnail(7244237,'391607','','Party_4_thumb.jpg',160, 107,32,'																			photo_7244237.html');
												thumbnails[7244238] = new thumbnail(7244238,'391607','','Party_5_thumb.jpg',160, 107,32,'																			photo_7244238.html');
												thumbnails[7244240] = new thumbnail(7244240,'391607','','Party_6_thumb.jpg',160, 107,32,'																			photo_7244240.html');
												thumbnails[7244242] = new thumbnail(7244242,'391607','','Party_7_thumb.jpg',160, 107,32,'																			photo_7244242.html');
												thumbnails[7244244] = new thumbnail(7244244,'391607','','Party_8_thumb.jpg',160, 107,32,'																			photo_7244244.html');
												thumbnails[7244245] = new thumbnail(7244245,'391607','','Party_9_thumb.jpg',160, 107,32,'																			photo_7244245.html');
												thumbnails[7244247] = new thumbnail(7244247,'391607','','Party_10_thumb.jpg',160, 107,32,'																			photo_7244247.html');
												thumbnails[7244257] = new thumbnail(7244257,'391607','','Party_11_thumb.jpg',160, 107,32,'																			photo_7244257.html');
												thumbnails[7244260] = new thumbnail(7244260,'391607','','Party_12_thumb.jpg',160, 107,32,'																			photo_7244260.html');
												thumbnails[7244262] = new thumbnail(7244262,'391607','','Party_13_thumb.jpg',160, 107,32,'																			photo_7244262.html');
												thumbnails[7244266] = new thumbnail(7244266,'391607','','Party_14_thumb.jpg',160, 107,32,'																			photo_7244266.html');
												thumbnails[7244268] = new thumbnail(7244268,'391607','','Party_15_thumb.jpg',160, 107,32,'																			photo_7244268.html');
												thumbnails[7244269] = new thumbnail(7244269,'391607','','Party_16_thumb.jpg',160, 107,32,'																			photo_7244269.html');
												thumbnails[7244270] = new thumbnail(7244270,'391607','','Party_17_thumb.jpg',160, 107,32,'																			photo_7244270.html');
												thumbnails[7244271] = new thumbnail(7244271,'391607','','Party_18_thumb.jpg',160, 107,32,'																			photo_7244271.html');
												thumbnails[7244274] = new thumbnail(7244274,'391607','','Party_19_thumb.jpg',160, 107,32,'																			photo_7244274.html');
												thumbnails[7244276] = new thumbnail(7244276,'391607','','Party_20_thumb.jpg',160, 107,32,'																			photo_7244276.html');
												thumbnails[7244313] = new thumbnail(7244313,'391607','','Party_21_thumb.jpg',160, 107,32,'																			photo_7244313.html');
												thumbnails[7244381] = new thumbnail(7244381,'391607','','Party_22_thumb.jpg',160, 107,32,'																			photo_7244381.html');
												thumbnails[7244384] = new thumbnail(7244384,'391607','','Party_23_thumb.jpg',160, 107,32,'																			photo_7244384.html');
												thumbnails[7244392] = new thumbnail(7244392,'391607','','Party_24_thumb.jpg',160, 107,32,'																			photo_7244392.html');
												thumbnails[7244394] = new thumbnail(7244394,'391607','','Party_25_thumb.jpg',160, 107,32,'																			photo_7244394.html');
												thumbnails[7244397] = new thumbnail(7244397,'391607','','Party_26_thumb.jpg',160, 107,32,'																			photo_7244397.html');
												thumbnails[7244401] = new thumbnail(7244401,'391607','','Party_27_thumb.jpg',160, 107,32,'																			photo_7244401.html');
												thumbnails[7244402] = new thumbnail(7244402,'391607','','Party_28_thumb.jpg',160, 107,32,'																			photo_7244402.html');
												thumbnails[7244403] = new thumbnail(7244403,'391607','','Party_29_thumb.jpg',160, 107,32,'																			photo_7244403.html');
												thumbnails[7244405] = new thumbnail(7244405,'391607','','Party_30_thumb.jpg',160, 107,32,'																			photo_7244405.html');
												thumbnails[7244409] = new thumbnail(7244409,'391607','','Party_31_thumb.jpg',160, 107,32,'																			photo_7244409.html');
												thumbnails[7244411] = new thumbnail(7244411,'391607','','Party_32_thumb.jpg',160, 107,32,'																			photo_7244411.html');
												thumbnails[7244413] = new thumbnail(7244413,'391607','','Party_33_thumb.jpg',160, 107,32,'																			photo_7244413.html');
												thumbnails[7244417] = new thumbnail(7244417,'391607','','Party_34_thumb.jpg',160, 107,32,'																			photo_7244417.html');
												thumbnails[7244418] = new thumbnail(7244418,'391607','','Party_35_thumb.jpg',160, 107,32,'																			photo_7244418.html');
												thumbnails[7244420] = new thumbnail(7244420,'391607','','Party_36_thumb.jpg',160, 107,32,'																			photo_7244420.html');
												thumbnails[7244422] = new thumbnail(7244422,'391607','','Party_37_thumb.jpg',160, 107,32,'																			photo_7244422.html');
												thumbnails[7244423] = new thumbnail(7244423,'391607','','Party_38_thumb.jpg',160, 107,32,'																			photo_7244423.html');
												thumbnails[7244424] = new thumbnail(7244424,'391607','','Party_39_thumb.jpg',160, 120,32,'																			photo_7244424.html');
												thumbnails[7244426] = new thumbnail(7244426,'391607','','Party_40_thumb.jpg',160, 120,32,'																			photo_7244426.html');
												thumbnails[7244427] = new thumbnail(7244427,'391607','','Party_41_thumb.jpg',160, 120,32,'																			photo_7244427.html');
												thumbnails[7244429] = new thumbnail(7244429,'391607','','Party_42_thumb.jpg',160, 120,32,'																			photo_7244429.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[391040] = new gallery(391040,'7238050,7238049,7238048,7238046,7238045,7238044,7238043,7238042,7238040,7238039','Around Church Stretton','gallery',[7235705,7235707,7235709,7235710,7235711,7235712,7235713,7235714,7237890,7237892,7237900,7237901,7237902,7237903,7237916,7237917,7237921,7237923,7237926,7237928,7237962,7237965,7237968,7237971,7237973,7237976,7237979,7237983,7237987,7237991,7237995,7237996,7237997,7237998,7237999,7238000,7238001,7238002,7238004,7238005,7238006,7238007,7238009,7238010,7238011,7238012,7238013,7238014,7238016,7238017,7238018,7238019,7238020,7238021,7238022,7238023,7238025,7238027,7238028,7238029,7238030,7238031,7238033,7238035,7238039,7238040,7238042,7238043,7238044,7238045,7238046,7238048,7238049,7238050],0, 0, '', '																																																																																																							gallery_391040.html',0,0);
				  					galleries[391028] = new gallery(391028,'7238453,7238452,7238451,7238449,7238448,7238447,7238445,7238444,7238443,7238441','Around Shropshire & Welsh Border','gallery',[7235767,7235779,7235781,7235789,7235799,7235802,7235803,7235805,7235808,7235810,7235812,7235814,7235817,7235819,7235821,7235825,7235828,7235829,7235832,7235838,7235843,7235844,7235846,7235847,7235848,7235849,7235853,7235857,7235859,7235860,7238120,7238143,7238148,7238259,7238261,7238263,7238266,7238269,7238362,7238377,7238399,7238402,7238405,7238407,7238412,7238416,7238422,7238424,7238426,7238429,7238431,7238432,7238434,7238435,7238438,7238440,7238441,7238443,7238444,7238445,7238447,7238448,7238449,7238451,7238452,7238453],0, 0, '', '																																																																																																							gallery_391028.html',0,0);
				  					galleries[391476] = new gallery(391476,'7244105,7244104,7244103,7244101,7244098,7244095,7244093,7244089,7244085,7244083','Motorsport -  Hill Climb Cars','gallery',[7243910,7244016,7244019,7244021,7244022,7244023,7244025,7244026,7244027,7244029,7244031,7244032,7244035,7244036,7244037,7244039,7244042,7244043,7244045,7244050,7244053,7244054,7244060,7244068,7244069,7244070,7244071,7244073,7244074,7244075,7244076,7244077,7244080,7244083,7244085,7244089,7244093,7244095,7244098,7244101,7244103,7244104,7244105],0, 0, '', '																																																																																																							gallery_391476.html',0,0);
				  					galleries[391607] = new gallery(391607,'7244429,7244427,7244426,7244424,7244423,7244422,7244420,7244418,7244417,7244413','Loton - Party in the Park 2010','gallery',[7244229,7244231,7244232,7244234,7244237,7244238,7244240,7244242,7244244,7244245,7244247,7244257,7244260,7244262,7244266,7244268,7244269,7244270,7244271,7244274,7244276,7244313,7244381,7244384,7244392,7244394,7244397,7244401,7244402,7244403,7244405,7244409,7244411,7244413,7244417,7244418,7244420,7244422,7244423,7244424,7244426,7244427,7244429],0, 0, '', '																																																																																																							gallery_391607.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7244429,7244427,7244426,7244424,7244423,7244422,7244420,7244418,7244417,7244413,7244411,7244409,7244405,7244403,7244402,7244401,7244397,7244394,7244392,7244384,7244381,7244313,7244276,7244274,7244271,7244270,7244269,7244268,7244266,7244262,7244260,7244257,7244247,7244245,7244244,7244242,7244240,7244238,7244237,7244234,7244232,7244231,7244229,7244105,7244104,7244103,7244101,7244098,7244095,7244093';
imageSets[3] = '7244429,7244427,7244426,7244424,7244423,7244422,7244420,7244418,7244417,7244413,7244411,7244409,7244405,7244403,7244402,7244401,7244397,7244394,7244392,7244384,7244381,7244313,7244276,7244274,7244271,7244270,7244269,7244268,7244266,7244262,7244260,7244257,7244247,7244245,7244244,7244242,7244240,7244238,7244237,7244234,7244232,7244231,7244229,7244105,7244104,7244103,7244101,7244098,7244095,7244093';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/davidcanslow/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/davidcanslow/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 = 'DCA 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>';
	}
					
	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="dcaphotography1@aol.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="dcaphotography1@aol.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;
	}
}

			

