window.thumbnails = new Object();
												thumbnails[529906] = new thumbnail(529906,'','','DSC_0701 copy1.jpg',130, 196,1,'#');
												thumbnails[530032] = new thumbnail(530032,'','','DSC_0703 copy1.jpg',130, 196,1,'#');
												thumbnails[531586] = new thumbnail(531586,'','','DSC_0288 copy1.jpg',130, 196,1,'#');
												thumbnails[531588] = new thumbnail(531588,'','','DSC_0287 copy1.jpg',130, 196,1,'#');
												thumbnails[531589] = new thumbnail(531589,'','','DSC_0274 copy1.jpg',130, 196,1,'#');
												thumbnails[532853] = new thumbnail(532853,'','','DSC_0168 copy3.jpg',130, 196,1,'#');
												thumbnails[780000] = new thumbnail(780000,'','','DSC_0101 copy5.jpg',130, 130,1,'#');
												thumbnails[780012] = new thumbnail(780012,'','','DSC_0089 copy1.jpg',130, 130,1,'#');
												thumbnails[780014] = new thumbnail(780014,'','','DSC_0122 copy1.jpg',130, 130,1,'#');
												thumbnails[845662] = new thumbnail(845662,'','','DSC_0127 copy5.jpg',130, 130,1,'#');
												thumbnails[845672] = new thumbnail(845672,'','','DSC_0218_2 copy1.jpg',130, 130,1,'#');
												thumbnails[845677] = new thumbnail(845677,'','','DSC_0252 copy2.jpg',130, 130,1,'#');
												thumbnails[845693] = new thumbnail(845693,'','','DSC_0269 copy1.jpg',130, 195,1,'#');
												thumbnails[845757] = new thumbnail(845757,'','','_WHI0222 copy1.jpg',130, 87,1,'#');
												thumbnails[845759] = new thumbnail(845759,'','','_WHI0393 copy1.jpg',130, 87,1,'#');
												thumbnails[845769] = new thumbnail(845769,'','','DSC_0029 copy1.jpg',130, 86,1,'#');
												thumbnails[1058614] = new thumbnail(1058614,'','','_WED0249 copy1.jpg',130, 194,1,'#');
												thumbnails[1220347] = new thumbnail(1220347,'','','_WED0017 copy1.jpg',130, 130,1,'#');
												thumbnails[1220348] = new thumbnail(1220348,'','','_WED0024 copy1.jpg',130, 130,1,'#');
												thumbnails[1220349] = new thumbnail(1220349,'','','_WED0031 copy3.jpg',130, 130,1,'#');
												thumbnails[1220350] = new thumbnail(1220350,'','','_WED0034 copy1.jpg',130, 130,1,'#');
												thumbnails[1372239] = new thumbnail(1372239,'','','_WED0004 copy1.jpg',130, 130,1,'#');
												thumbnails[1372240] = new thumbnail(1372240,'','','_WED0025 copy1.jpg',130, 130,1,'#');
												thumbnails[1372241] = new thumbnail(1372241,'','','_WED0021 copy1.jpg',130, 130,1,'#');
												thumbnails[1372244] = new thumbnail(1372244,'','','_WED0009 copy1.jpg',130, 130,1,'#');
												thumbnails[1372248] = new thumbnail(1372248,'','','_WED0035 copy1.jpg',130, 130,1,'#');
												thumbnails[1372249] = new thumbnail(1372249,'','','_WED0039 copy1.jpg',130, 130,1,'#');
												thumbnails[1372251] = new thumbnail(1372251,'','','_WED0046 copy1.jpg',130, 130,1,'#');
												thumbnails[1372252] = new thumbnail(1372252,'','','_WED0053 copy1.jpg',130, 130,1,'#');
												thumbnails[1372255] = new thumbnail(1372255,'','','_WED0136 copy1.jpg',130, 130,1,'#');
												thumbnails[3134540] = new thumbnail(3134540,'','','_WED0216 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[529904] = new thumbnail(529904,'','','DSC_0676 copy1.jpg',130, 124,1,'#');
												thumbnails[532858] = new thumbnail(532858,'','','DSC_0295 copy1.jpg',130, 202,1,'#');
												thumbnails[3134538] = new thumbnail(3134538,'','','_WED0121_2 copy1_thumb.jpg',130, 87,1,'#');
												thumbnails[532863] = new thumbnail(532863,'','','DSC_0299 copy1.jpg',130, 196,1,'#');
												thumbnails[845770] = new thumbnail(845770,'','','DSC_0232 copy1.jpg',130, 196,1,'#');
												thumbnails[845781] = new thumbnail(845781,'','','DSC_0042 copy3.jpg',130, 194,1,'#');
												thumbnails[1512054] = new thumbnail(1512054,'','','_WED0085_2 copy1.jpg',130, 87,1,'#');
												thumbnails[1700537] = new thumbnail(1700537,'','','1-copy_thumb.jpg',130, 194,1,'#');
												thumbnails[1700572] = new thumbnail(1700572,'','','_WED0101_thumb.jpg',130, 87,1,'#');
												thumbnails[1799739] = new thumbnail(1799739,'','','_WED0031 copy_1_thumb.jpg',130, 194,1,'#');
												thumbnails[2016179] = new thumbnail(2016179,'','','_WED0164 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2147154] = new thumbnail(2147154,'','','_WED0014 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[2360049] = new thumbnail(2360049,'','','_WED0009 copy_2_thumb.jpg',130, 194,1,'#');
												thumbnails[845771] = new thumbnail(845771,'','','DSC_0284 copy1.jpg',130, 196,1,'#');
												thumbnails[845784] = new thumbnail(845784,'','','DSC_0072 copy7.jpg',130, 194,1,'#');
												thumbnails[1700539] = new thumbnail(1700539,'','','6-copy_thumb.jpg',130, 194,1,'#');
												thumbnails[1700575] = new thumbnail(1700575,'','','_WED0229_2_thumb.jpg',130, 87,1,'#');
												thumbnails[1799743] = new thumbnail(1799743,'','','_WED0050 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[845776] = new thumbnail(845776,'','','DSC_0324 copy1.jpg',130, 196,1,'#');
												thumbnails[845785] = new thumbnail(845785,'','','DSC_0114 copy7.jpg',130, 194,1,'#');
												thumbnails[1700540] = new thumbnail(1700540,'','','7_thumb.jpg',130, 194,1,'#');
												thumbnails[2016211] = new thumbnail(2016211,'','','_WED0129 copy1_thumb.jpg',130, 87,1,'#');
												thumbnails[2147157] = new thumbnail(2147157,'','','_WED0036 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2360051] = new thumbnail(2360051,'','','_WED0151 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[3134948] = new thumbnail(3134948,'','','_WED0112 copy_thumb.jpg',130, 130,1,'#');
												thumbnails[3134875] = new thumbnail(3134875,'','','_WED0054 copy_thumb.jpg',130, 130,1,'#');
												thumbnails[1062414] = new thumbnail(1062414,'','','_WED0099_2 copy1.jpg',130, 130,1,'#');
												thumbnails[845736] = new thumbnail(845736,'','','DSC_0024 copy1.jpg',130, 205,1,'#');
												thumbnails[1414581] = new thumbnail(1414581,'','','_WED0259-copy1.jpg',130, 194,1,'#');
												thumbnails[1512065] = new thumbnail(1512065,'','','_WED0048 copy5.jpg',130, 194,1,'#');
												thumbnails[1591930] = new thumbnail(1591930,'','','_WED0191_2 copy1.jpg',130, 87,1,'#');
												thumbnails[1700541] = new thumbnail(1700541,'','','12-copy_thumb.jpg',130, 87,1,'#');
												thumbnails[1700576] = new thumbnail(1700576,'','','_WED0486_thumb.jpg',130, 63,1,'#');
												thumbnails[1799749] = new thumbnail(1799749,'','','_WED0012 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2147160] = new thumbnail(2147160,'','','_WED0158 copy_1_thumb.jpg',130, 87,1,'#');
												thumbnails[3134539] = new thumbnail(3134539,'','','_WED0164 copy1_thumb.jpg',130, 87,1,'#');
												thumbnails[3134541] = new thumbnail(3134541,'','','_WED0234 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[3134545] = new thumbnail(3134545,'','','_WED0273 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[529900] = new thumbnail(529900,'','','DSC_0123 copy1.jpg',130, 195,1,'#');
												thumbnails[1700542] = new thumbnail(1700542,'','','13-copy_thumb.jpg',130, 87,1,'#');
												thumbnails[1700580] = new thumbnail(1700580,'','','_WED0489_thumb.jpg',130, 66,1,'#');
												thumbnails[2016210] = new thumbnail(2016210,'','','_WED0115 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[845744] = new thumbnail(845744,'','','DSC_0087 copy1.jpg',130, 194,1,'#');
												thumbnails[1372214] = new thumbnail(1372214,'','','_WED0145-copy1.jpg',130, 61,1,'#');
												thumbnails[1414632] = new thumbnail(1414632,'','','_WED0780_2-copy1.jpg',130, 194,1,'#');
												thumbnails[1591937] = new thumbnail(1591937,'','','_WED0439 copy1.jpg',130, 87,1,'#');
												thumbnails[1700544] = new thumbnail(1700544,'','','14-copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2360054] = new thumbnail(2360054,'','','_WED0095_2 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[1512116] = new thumbnail(1512116,'','','_WED0143_2 copy1.jpg',130, 87,1,'#');
												thumbnails[1512121] = new thumbnail(1512121,'','','_WED0166_2 copy1.jpg',130, 87,1,'#');
												thumbnails[1512125] = new thumbnail(1512125,'','','_WED0174_2 copy1.jpg',130, 87,1,'#');
												thumbnails[527816] = new thumbnail(527816,'','','DSC_0310 copy1.jpg',130, 186,1,'#');
												thumbnails[530105] = new thumbnail(530105,'','','DSC_0147 copy1.jpg',130, 196,1,'#');
												thumbnails[531423] = new thumbnail(531423,'','','DSC_0323 copy1.jpg',130, 196,1,'#');
												thumbnails[1386122] = new thumbnail(1386122,'','','_WED0168-copy1.jpg',130, 194,1,'#');
												thumbnails[1414593] = new thumbnail(1414593,'','','_WED0049-copy1.jpg',130, 87,1,'#');
												thumbnails[1512081] = new thumbnail(1512081,'','','_WED0042_2 copy1.jpg',130, 93,1,'#');
												thumbnails[1591931] = new thumbnail(1591931,'','','_WED0289 copy1.jpg',130, 194,1,'#');
												thumbnails[1700538] = new thumbnail(1700538,'','','2-copy_thumb.jpg',130, 87,1,'#');
												thumbnails[1799762] = new thumbnail(1799762,'','','_WED0280 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2016207] = new thumbnail(2016207,'','','_WED0052 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[2360056] = new thumbnail(2360056,'','','_WED0121_2 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[530005] = new thumbnail(530005,'','','DSC_0119 copy1.jpg',130, 196,1,'#');
												thumbnails[845745] = new thumbnail(845745,'','','DSC_0120 copy1.jpg',130, 194,1,'#');
												thumbnails[1372212] = new thumbnail(1372212,'','','_WED0037-copy1.jpg',130, 194,1,'#');
												thumbnails[1700545] = new thumbnail(1700545,'','','19-copy_thumb.jpg',130, 87,1,'#');
												thumbnails[527822] = new thumbnail(527822,'','','DSC_0473 copy1.jpg',130, 196,1,'#');
												thumbnails[557764] = new thumbnail(557764,'','','DSC_0114 copy1.jpg',130, 196,1,'#');
												thumbnails[845657] = new thumbnail(845657,'','','WHI_0052 copy2.jpg',130, 194,1,'#');
												thumbnails[1700549] = new thumbnail(1700549,'','','23-copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2147274] = new thumbnail(2147274,'','','_WED0150_4 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2360127] = new thumbnail(2360127,'','','_WED0160_2 copy_1_thumb.jpg',130, 87,1,'#');
												thumbnails[1386123] = new thumbnail(1386123,'','','_WED0229_2-copy1.jpg',130, 87,1,'#');
												thumbnails[1386120] = new thumbnail(1386120,'','','_WED0117_3 copy1.jpg',130, 87,1,'#');
												thumbnails[561775] = new thumbnail(561775,'','','DSCF0206 copy1.jpg',130, 98,1,'#');
												thumbnails[845114] = new thumbnail(845114,'','','WHI_0492 copy5.jpg',130, 87,1,'#');
												thumbnails[1414607] = new thumbnail(1414607,'','','_WED0467-copy1.jpg',130, 87,1,'#');
												thumbnails[1512092] = new thumbnail(1512092,'','','_WED0417_2 copy1.jpg',130, 93,1,'#');
												thumbnails[1700546] = new thumbnail(1700546,'','','20-copy_thumb.jpg',130, 194,1,'#');
												thumbnails[2147263] = new thumbnail(2147263,'','','_WED0106_3 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2360129] = new thumbnail(2360129,'','','_WED0204_2 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[529910] = new thumbnail(529910,'','','DSC_0928 copy1.jpg',130, 86,1,'#');
												thumbnails[561756] = new thumbnail(561756,'','','DSC_0083 copy1.jpg',130, 195,1,'#');
												thumbnails[1372215] = new thumbnail(1372215,'','','_WED0544_2 copy1.jpg',130, 87,1,'#');
												thumbnails[1386125] = new thumbnail(1386125,'','','_WED0061_2 copy1.jpg',130, 87,1,'#');
												thumbnails[1414613] = new thumbnail(1414613,'','','_WED0531-copy1.jpg',130, 87,1,'#');
												thumbnails[1700547] = new thumbnail(1700547,'','','21-copy_thumb.jpg',130, 194,1,'#');
												thumbnails[2360130] = new thumbnail(2360130,'','','_WED0185_2 copy_2_thumb.jpg',130, 194,1,'#');
												thumbnails[527784] = new thumbnail(527784,'','','DSC_0151 copy1.jpg',130, 86,1,'#');
												thumbnails[1414617] = new thumbnail(1414617,'','','_WED0557-copy1.jpg',130, 87,1,'#');
												thumbnails[1799781] = new thumbnail(1799781,'','','_WED0568 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[2360131] = new thumbnail(2360131,'','','_WED0213_2 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[527818] = new thumbnail(527818,'','','DSC_0136 copy1.jpg',130, 196,1,'#');
												thumbnails[531421] = new thumbnail(531421,'','','DSC_0322 copy1.jpg',130, 86,1,'#');
												thumbnails[2360133] = new thumbnail(2360133,'','','_WED0011_2 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[529922] = new thumbnail(529922,'','','DSC_0186 copy1.jpg',130, 196,1,'#');
												thumbnails[2360134] = new thumbnail(2360134,'','','_WED0013_2 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[527819] = new thumbnail(527819,'','','DSC_0140 copy1.jpg',130, 196,1,'#');
												thumbnails[531424] = new thumbnail(531424,'','','DSC_0328 copy1.jpg',130, 86,1,'#');
												thumbnails[2360135] = new thumbnail(2360135,'','','_WED0221 copy_thumb.jpg',130, 87,1,'#');
												thumbnails[531430] = new thumbnail(531430,'','','DSC_0346 copy1.jpg',130, 86,1,'#');
												thumbnails[1220185] = new thumbnail(1220185,'','','_WHI0231 copy1.jpg',130, 87,1,'#');
												thumbnails[531425] = new thumbnail(531425,'','','DSC_0337 copy1.jpg',130, 86,1,'#');
												thumbnails[601240] = new thumbnail(601240,'','','DSC_0125 copy1.jpg',130, 87,1,'#');
												thumbnails[527778] = new thumbnail(527778,'','','DSCF0067 copy1.jpg',130, 98,1,'#');
												thumbnails[561774] = new thumbnail(561774,'','','DSC_0318 copy3.jpg',130, 86,1,'#');
												thumbnails[1700573] = new thumbnail(1700573,'','','_WED0149_thumb.jpg',130, 87,1,'#');
												thumbnails[527765] = new thumbnail(527765,'','','DSC_0028 copy1.jpg',130, 86,1,'#');
												thumbnails[1372216] = new thumbnail(1372216,'','','_WED0562-copy1.jpg',130, 87,1,'#');
												thumbnails[532826] = new thumbnail(532826,'','','DSC_0077 copy1.jpg',130, 86,1,'#');
												thumbnails[532835] = new thumbnail(532835,'','','DSCF0026 copy1.jpg',130, 98,1,'#');
												thumbnails[1372211] = new thumbnail(1372211,'','','_WED0019 copy1.jpg',130, 53,1,'#');
												thumbnails[529913] = new thumbnail(529913,'','','DSCF0019 copy1.jpg',130, 173,1,'#');
												thumbnails[845614] = new thumbnail(845614,'','','WHI_0048 copy1.jpg',130, 202,1,'#');
												thumbnails[1591929] = new thumbnail(1591929,'','','_WED0186 copy1.jpg',130, 194,1,'#');
												thumbnails[3134543] = new thumbnail(3134543,'','','_WED0261 copy_thumb.jpg',130, 194,1,'#');
												thumbnails[828525] = new thumbnail(828525,'','','WHI_0442 copy1.jpg',130, 194,1,'#');
												thumbnails[527825] = new thumbnail(527825,'','','DSC_0182 copy1.jpg',130, 196,1,'#');
												thumbnails[1032683] = new thumbnail(1032683,'77040','','_WED0608 copy1.jpg',130, 194,1,'photo_1032683.html');
												thumbnails[529999] = new thumbnail(529999,'41015','','DSC_0050 copy1.jpg',130, 196,1,'photo_529999.html');
												thumbnails[530002] = new thumbnail(530002,'41015','','DSC_0106 copy1.jpg',130, 196,1,'photo_530002.html');
												thumbnails[531509] = new thumbnail(531509,'41015','','DSC_0079 copy1.jpg',130, 196,1,'photo_531509.html');
												thumbnails[557499] = new thumbnail(557499,'41015','','DSC_0070 copy3.jpg',130, 196,1,'photo_557499.html');
												thumbnails[557505] = new thumbnail(557505,'41015','','DSC_0107 copy1.jpg',130, 196,1,'photo_557505.html');
												thumbnails[557508] = new thumbnail(557508,'41015','','DSC_0071 copy1.jpg',130, 196,1,'photo_557508.html');
												thumbnails[557512] = new thumbnail(557512,'41015','','DSC_0160 copy3.jpg',130, 196,1,'photo_557512.html');
												thumbnails[557580] = new thumbnail(557580,'41015','','DSC_0227 copy5.jpg',130, 196,1,'photo_557580.html');
												thumbnails[557584] = new thumbnail(557584,'41015','','DSC_0300 copy3.jpg',130, 196,1,'photo_557584.html');
												thumbnails[560173] = new thumbnail(560173,'41015','','DSC_0076.NEF1.jpg',130, 89,1,'photo_560173.html');
												thumbnails[560181] = new thumbnail(560181,'41015','','DSC_0133.NEF1.jpg',130, 91,1,'photo_560181.html');
												thumbnails[560199] = new thumbnail(560199,'41015','','DSC_0201.NEF1.jpg',130, 93,1,'photo_560199.html');
												thumbnails[561760] = new thumbnail(561760,'41015','','DSC_0081 copy1.jpg',130, 196,1,'photo_561760.html');
												thumbnails[561761] = new thumbnail(561761,'41015','','DSC_0095 copy1.jpg',130, 195,1,'photo_561761.html');
												thumbnails[565131] = new thumbnail(565131,'41015','','Copy of sarah 0401.jpg',130, 196,1,'photo_565131.html');
												thumbnails[567224] = new thumbnail(567224,'41015','','DSC_0082 copy1.jpg',130, 86,1,'photo_567224.html');
												thumbnails[570000] = new thumbnail(570000,'41015','','DSC_0115 copy1.jpg',130, 87,1,'photo_570000.html');
												thumbnails[570003] = new thumbnail(570003,'41015','','DSC_0412 copy1.jpg',130, 87,1,'photo_570003.html');
												thumbnails[570008] = new thumbnail(570008,'41015','','DSC_0368 copy1.jpg',130, 194,1,'photo_570008.html');
												thumbnails[570009] = new thumbnail(570009,'41015','','DSC_0254 copy3.jpg',130, 194,1,'photo_570009.html');
												thumbnails[570011] = new thumbnail(570011,'41015','','DSC_0318 copy5.jpg',130, 194,1,'photo_570011.html');
												thumbnails[2058665] = new thumbnail(2058665,'41015','','_WED0150_3 copy_thumb.jpg',130, 87,1,'photo_2058665.html');
												thumbnails[2058678] = new thumbnail(2058678,'41015','','_WED0308_2 copy_thumb.jpg',130, 87,1,'photo_2058678.html');
												thumbnails[2058679] = new thumbnail(2058679,'41015','','_WED0204 copy_thumb.jpg',130, 87,1,'photo_2058679.html');
												thumbnails[977847] = new thumbnail(977847,'73478','','_WED0177 copy1.jpg',130, 87,1,'photo_977847.html');
												thumbnails[977905] = new thumbnail(977905,'73478','','_WED0412 copy1.jpg',130, 87,1,'photo_977905.html');
												thumbnails[977844] = new thumbnail(977844,'73478','','_WED0158 copy1.jpg',130, 87,1,'photo_977844.html');
												thumbnails[527789] = new thumbnail(527789,'40359','','DSC_0061 copy3.jpg',130, 195,1,'photo_527789.html');
												thumbnails[2088803] = new thumbnail(2088803,'139420','','_WED0003 copy_thumb.jpg',130, 194,1,'photo_2088803.html');
												thumbnails[2259422] = new thumbnail(2259422,'148546','','_WED0215 copy_thumb.jpg',130, 87,1,'photo_2259422.html');
												thumbnails[2548532] = new thumbnail(2548532,'162904','','_WED0313 copy_thumb.jpg',130, 194,1,'photo_2548532.html');
												thumbnails[2657646] = new thumbnail(2657646,'168279','','_WED0004 copy_1_thumb.jpg',130, 194,1,'photo_2657646.html');
												thumbnails[3622299] = new thumbnail(3622299,'221596','','_WED0016_2_copy_thumb.jpg',130, 87,1,'photo_3622299.html');
												thumbnails[569907] = new thumbnail(569907,'40359','','DSC_0175 copy1.jpg',130, 194,1,'photo_569907.html');
												thumbnails[977792] = new thumbnail(977792,'73478','','_WED0027 copy1.jpg',130, 194,1,'photo_977792.html');
												thumbnails[2088807] = new thumbnail(2088807,'139420','','_WED0185_2 copy_1_thumb.jpg',130, 194,1,'photo_2088807.html');
												thumbnails[2259425] = new thumbnail(2259425,'148546','','_WED0225 copy_thumb.jpg',130, 87,1,'photo_2259425.html');
												thumbnails[2360050] = new thumbnail(2360050,'41015','','_WED0076 copy_thumb.jpg',130, 194,1,'photo_2360050.html');
												thumbnails[2548534] = new thumbnail(2548534,'162904','','_WED0328 copy_thumb.jpg',130, 194,1,'photo_2548534.html');
												thumbnails[2657648] = new thumbnail(2657648,'168279','','_WED0013 copy1_thumb.jpg',130, 194,1,'photo_2657648.html');
												thumbnails[3622308] = new thumbnail(3622308,'221596','','_WED0069_3_2_copy_thumb.jpg',130, 87,1,'photo_3622308.html');
												thumbnails[977906] = new thumbnail(977906,'73478','','_WED0422 copy1.jpg',130, 194,1,'photo_977906.html');
												thumbnails[977916] = new thumbnail(977916,'73478','','_WED0263 copy1.jpg',130, 194,1,'photo_977916.html');
												thumbnails[569913] = new thumbnail(569913,'40359','','DSC_0236 copy1.jpg',130, 194,1,'photo_569913.html');
												thumbnails[2088806] = new thumbnail(2088806,'139420','','_WED0180 copy1_thumb.jpg',130, 194,1,'photo_2088806.html');
												thumbnails[2259428] = new thumbnail(2259428,'148546','','_WED0252 copy1_thumb.jpg',130, 87,1,'photo_2259428.html');
												thumbnails[2548535] = new thumbnail(2548535,'162904','','_WED0352 copy_thumb.jpg',130, 194,1,'photo_2548535.html');
												thumbnails[2657651] = new thumbnail(2657651,'168279','','_WED0080 copy1_thumb.jpg',130, 194,1,'photo_2657651.html');
												thumbnails[3622317] = new thumbnail(3622317,'221596','','_WED0077_3_2_copy_thumb.jpg',130, 87,1,'photo_3622317.html');
												thumbnails[867538] = new thumbnail(867538,'40359','','WHI_0345 copy1.jpg',130, 87,1,'photo_867538.html');
												thumbnails[977835] = new thumbnail(977835,'73478','','_WED0126 copy1.jpg',130, 194,1,'photo_977835.html');
												thumbnails[2088808] = new thumbnail(2088808,'139420','','_WED0053_3 copy_thumb.jpg',130, 87,1,'photo_2088808.html');
												thumbnails[2259431] = new thumbnail(2259431,'148546','','_WED0265 copy_thumb.jpg',130, 87,1,'photo_2259431.html');
												thumbnails[2548537] = new thumbnail(2548537,'162904','','_WED0484_2 copy_thumb.jpg',130, 87,1,'photo_2548537.html');
												thumbnails[2657655] = new thumbnail(2657655,'168279','','_WED0356_3 copy_thumb.jpg',130, 87,1,'photo_2657655.html');
												thumbnails[3622321] = new thumbnail(3622321,'221596','','_WED0261_3_copy_thumb.jpg',130, 87,1,'photo_3622321.html');
												thumbnails[977841] = new thumbnail(977841,'73478','','_WED0146 copy1.jpg',130, 194,1,'photo_977841.html');
												thumbnails[977915] = new thumbnail(977915,'73478','','_WED0154 copy1.jpg',130, 194,1,'photo_977915.html');
												thumbnails[871464] = new thumbnail(871464,'40359','','_WHI0158 copy1.jpg',130, 87,1,'photo_871464.html');
												thumbnails[2088810] = new thumbnail(2088810,'139420','','_WED0141 copy_thumb.jpg',130, 87,1,'photo_2088810.html');
												thumbnails[2259442] = new thumbnail(2259442,'148546','','_WED0304 copy_thumb.jpg',130, 87,1,'photo_2259442.html');
												thumbnails[2548540] = new thumbnail(2548540,'162904','','_WED0494 copy_thumb.jpg',130, 87,1,'photo_2548540.html');
												thumbnails[2657657] = new thumbnail(2657657,'168279','','_WED0372_3 copy_thumb.jpg',130, 87,1,'photo_2657657.html');
												thumbnails[3622390] = new thumbnail(3622390,'221596','','_WED0200_3_copy_thumb.jpg',130, 87,1,'photo_3622390.html');
												thumbnails[639672] = new thumbnail(639672,'40359','','DSC_0072 copy5.jpg',130, 87,1,'photo_639672.html');
												thumbnails[2088812] = new thumbnail(2088812,'139420','','_WED0207 copy_thumb.jpg',130, 87,1,'photo_2088812.html');
												thumbnails[2259446] = new thumbnail(2259446,'148546','','_WED0333 copy_thumb.jpg',130, 87,1,'photo_2259446.html');
												thumbnails[2548541] = new thumbnail(2548541,'162904','','_WED0496 copy_thumb.jpg',130, 87,1,'photo_2548541.html');
												thumbnails[2657659] = new thumbnail(2657659,'168279','','_WED0402 copy_thumb.jpg',130, 87,1,'photo_2657659.html');
												thumbnails[3622401] = new thumbnail(3622401,'221596','','_WED0043_2_copy_thumb.jpg',130, 87,1,'photo_3622401.html');
												thumbnails[566967] = new thumbnail(566967,'40359','','Copy (3) of sarah 111.jpg',130, 161,1,'photo_566967.html');
												thumbnails[977909] = new thumbnail(977909,'73478','','_WED0507 copy1.jpg',130, 87,1,'photo_977909.html');
												thumbnails[2088816] = new thumbnail(2088816,'139420','','_WED0200 copy_thumb.jpg',130, 87,1,'photo_2088816.html');
												thumbnails[2259448] = new thumbnail(2259448,'148546','','_WED0343 copy_thumb.jpg',130, 87,1,'photo_2259448.html');
												thumbnails[2548543] = new thumbnail(2548543,'162904','','_WED0619 copy_thumb.jpg',130, 87,1,'photo_2548543.html');
												thumbnails[2657664] = new thumbnail(2657664,'168279','','_WED0619 copy1_thumb.jpg',130, 87,1,'photo_2657664.html');
												thumbnails[3622405] = new thumbnail(3622405,'221596','','_WED0116_2_3_copy_thumb.jpg',130, 87,1,'photo_3622405.html');
												thumbnails[977911] = new thumbnail(977911,'73478','','_WED0521 copy1.jpg',130, 87,1,'photo_977911.html');
												thumbnails[569908] = new thumbnail(569908,'40359','','DSC_0207 copy3.jpg',130, 194,1,'photo_569908.html');
												thumbnails[977904] = new thumbnail(977904,'73478','','_WED0381 copy1.jpg',130, 87,1,'photo_977904.html');
												thumbnails[2088819] = new thumbnail(2088819,'139420','','_WED0414 copy_thumb.jpg',130, 87,1,'photo_2088819.html');
												thumbnails[2259452] = new thumbnail(2259452,'148546','','_WED0266_2 copy_thumb.jpg',130, 87,1,'photo_2259452.html');
												thumbnails[2548544] = new thumbnail(2548544,'162904','','_WED0638 copy_thumb.jpg',130, 87,1,'photo_2548544.html');
												thumbnails[2657667] = new thumbnail(2657667,'168279','','_WED0663 copy_thumb.jpg',130, 87,1,'photo_2657667.html');
												thumbnails[3622412] = new thumbnail(3622412,'221596','','_WED0120_2_2_copy_thumb.jpg',130, 87,1,'photo_3622412.html');
												thumbnails[977850] = new thumbnail(977850,'73478','','_WED0178 copy1.jpg',130, 194,1,'photo_977850.html');
												thumbnails[569949] = new thumbnail(569949,'40359','','DSC_0075 copy1.jpg',130, 196,1,'photo_569949.html');
												thumbnails[977852] = new thumbnail(977852,'73478','','_WED0334 copy1.jpg',130, 194,1,'photo_977852.html');
												thumbnails[2088820] = new thumbnail(2088820,'139420','','_WED0445 copy_thumb.jpg',130, 87,1,'photo_2088820.html');
												thumbnails[2259582] = new thumbnail(2259582,'148546','','_WED0296_2 copy_thumb.jpg',130, 87,1,'photo_2259582.html');
												thumbnails[2548545] = new thumbnail(2548545,'162904','','_WED0666 copy_thumb.jpg',130, 87,1,'photo_2548545.html');
												thumbnails[2657669] = new thumbnail(2657669,'168279','','_WED0713_2 copy_thumb.jpg',130, 87,1,'photo_2657669.html');
												thumbnails[3622422] = new thumbnail(3622422,'221596','','_WED0144_2_2_copy_thumb.jpg',130, 87,1,'photo_3622422.html');
												thumbnails[3622474] = new thumbnail(3622474,'221596','','_WED0189_2_copy_thumb.jpg',130, 87,1,'photo_3622474.html');
												thumbnails[977908] = new thumbnail(977908,'73478','','_WED0451_2 copy1.jpg',130, 194,1,'photo_977908.html');
												thumbnails[3622447] = new thumbnail(3622447,'221596','','_WED0198_2_2_copy_thumb.jpg',130, 87,1,'photo_3622447.html');
												thumbnails[527767] = new thumbnail(527767,'40359','','DSC_0134 copy1.jpg',130, 86,1,'photo_527767.html');
												thumbnails[977918] = new thumbnail(977918,'73478','','_WED0314 copy1.jpg',130, 87,1,'photo_977918.html');
												thumbnails[2088823] = new thumbnail(2088823,'139420','','_WED0269 copy_thumb.jpg',130, 194,1,'photo_2088823.html');
												thumbnails[2259592] = new thumbnail(2259592,'148546','','_WED0325_2 copy_thumb.jpg',130, 87,1,'photo_2259592.html');
												thumbnails[2548547] = new thumbnail(2548547,'162904','','_WED0733 copy_thumb.jpg',130, 87,1,'photo_2548547.html');
												thumbnails[2657680] = new thumbnail(2657680,'168279','','_WED0167 copy 2_thumb.jpg',130, 87,1,'photo_2657680.html');
												thumbnails[3622430] = new thumbnail(3622430,'221596','','_WED0233_copy_thumb.jpg',130, 87,1,'photo_3622430.html');
												thumbnails[3622455] = new thumbnail(3622455,'221596','','_WED0117_copy_thumb.jpg',130, 87,1,'photo_3622455.html');
												thumbnails[977917] = new thumbnail(977917,'73478','','_WED0199 copy1.jpg',130, 87,1,'photo_977917.html');
												thumbnails[871503] = new thumbnail(871503,'40359','','_WHI0181 copy1.jpg',130, 87,1,'photo_871503.html');
												thumbnails[977920] = new thumbnail(977920,'73478','','_WED0470 copy1.jpg',130, 87,1,'photo_977920.html');
												thumbnails[2088824] = new thumbnail(2088824,'139420','','_WED0276 copy_1_thumb.jpg',130, 194,1,'photo_2088824.html');
												thumbnails[2259610] = new thumbnail(2259610,'148546','','_WED0360 copy_thumb.jpg',130, 87,1,'photo_2259610.html');
												thumbnails[2548549] = new thumbnail(2548549,'162904','','_WED0740 copy_thumb.jpg',130, 87,1,'photo_2548549.html');
												thumbnails[2657682] = new thumbnail(2657682,'168279','','_WED0070 copy3_thumb.jpg',130, 87,1,'photo_2657682.html');
												thumbnails[569970] = new thumbnail(569970,'40359','','DSC_0127 copy3.jpg',130, 87,1,'photo_569970.html');
												thumbnails[2088825] = new thumbnail(2088825,'139420','','_WED0348 copy_thumb.jpg',130, 194,1,'photo_2088825.html');
												thumbnails[2259633] = new thumbnail(2259633,'148546','','_WED0451 copy_thumb.jpg',130, 87,1,'photo_2259633.html');
												thumbnails[2548552] = new thumbnail(2548552,'162904','','_WED0746_2 copy_thumb.jpg',130, 87,1,'photo_2548552.html');
												thumbnails[2657685] = new thumbnail(2657685,'168279','','_WED0335_2 copy_thumb.jpg',130, 87,1,'photo_2657685.html');
												thumbnails[3622472] = new thumbnail(3622472,'221596','','_WED0144_copy_thumb.jpg',130, 87,1,'photo_3622472.html');
												thumbnails[569904] = new thumbnail(569904,'40359','','DSC_0113 copy1.jpg',130, 194,1,'photo_569904.html');
												thumbnails[2088827] = new thumbnail(2088827,'139420','','_WED0184_3 copy_thumb.jpg',130, 87,1,'photo_2088827.html');
												thumbnails[2548555] = new thumbnail(2548555,'162904','','_WED0766 copy_thumb.jpg',130, 194,1,'photo_2548555.html');
												thumbnails[3622477] = new thumbnail(3622477,'221596','','_WED0515_copy_thumb.jpg',130, 87,1,'photo_3622477.html');
												thumbnails[570029] = new thumbnail(570029,'40359','','DSC_0190 copy1.jpg',130, 194,1,'photo_570029.html');
												thumbnails[2088829] = new thumbnail(2088829,'139420','','_WED0256_2 copy_thumb.jpg',130, 87,1,'photo_2088829.html');
												thumbnails[2548558] = new thumbnail(2548558,'162904','','_WED0796 copy_thumb.jpg',130, 194,1,'photo_2548558.html');
												thumbnails[527790] = new thumbnail(527790,'40359','','DSC_0156 copy1.jpg',130, 195,1,'photo_527790.html');
												thumbnails[2088831] = new thumbnail(2088831,'139420','','_WED0294_2 copy_thumb.jpg',130, 87,1,'photo_2088831.html');
												thumbnails[2548600] = new thumbnail(2548600,'162904','','_WED0130 copy_thumb.jpg',130, 194,1,'photo_2548600.html');
												thumbnails[867540] = new thumbnail(867540,'40359','','DSC_0027_3 copy1.jpg',130, 86,1,'photo_867540.html');
												thumbnails[2548567] = new thumbnail(2548567,'162904','','_WED0012 copy1_thumb.jpg',130, 87,1,'photo_2548567.html');
												thumbnails[1386124] = new thumbnail(1386124,'40359','','_WED0252-copy1.jpg',130, 87,1,'photo_1386124.html');
												thumbnails[2548612] = new thumbnail(2548612,'162904','','_WED0048_2 copy1_thumb.jpg',130, 87,1,'photo_2548612.html');
												thumbnails[569929] = new thumbnail(569929,'40359','','DSC_0151 copy9.jpg',130, 86,1,'photo_569929.html');
												thumbnails[2548608] = new thumbnail(2548608,'162904','','_WED0162_2 copy_thumb.jpg',130, 87,1,'photo_2548608.html');
												thumbnails[527791] = new thumbnail(527791,'40359','','DSC_0109 copy1.jpg',130, 196,1,'photo_527791.html');
												thumbnails[2548616] = new thumbnail(2548616,'162904','','_WED0015 copy_thumb.jpg',130, 194,1,'photo_2548616.html');
												thumbnails[527804] = new thumbnail(527804,'40359','','DSC_0263 copy1.jpg',130, 196,1,'photo_527804.html');
												thumbnails[2548618] = new thumbnail(2548618,'162904','','_WED0407 copy_thumb.jpg',130, 194,1,'photo_2548618.html');
												thumbnails[557522] = new thumbnail(557522,'40359','','DSC_0042 copy1.jpg',130, 196,1,'photo_557522.html');
												thumbnails[2548620] = new thumbnail(2548620,'162904','','_WED0415 copy_thumb.jpg',130, 194,1,'photo_2548620.html');
												thumbnails[802333] = new thumbnail(802333,'40359','','WHI_0374 copy1.jpg',130, 194,1,'photo_802333.html');
												thumbnails[569912] = new thumbnail(569912,'40359','','DSC_0234 copy1.jpg',130, 194,1,'photo_569912.html');
												thumbnails[527795] = new thumbnail(527795,'40359','','DSC_0129 copy1.jpg',130, 195,1,'photo_527795.html');
												thumbnails[802331] = new thumbnail(802331,'40359','','WHI_0308 copy1.jpg',130, 194,1,'photo_802331.html');
												thumbnails[557516] = new thumbnail(557516,'40359','','DSC_0178 copy1.jpg',130, 195,1,'photo_557516.html');
												thumbnails[527835] = new thumbnail(527835,'40359','','DSC_0070 copy1.jpg',130, 86,1,'photo_527835.html');
												thumbnails[527797] = new thumbnail(527797,'40359','','DSC_0157 copy1.jpg',130, 86,1,'photo_527797.html');
												thumbnails[569937] = new thumbnail(569937,'40359','','DSC_0177 copy3.jpg',130, 86,1,'photo_569937.html');
												thumbnails[7596744] = new thumbnail(7596744,'411980','','_WED00031_thumb.jpg',130, 90,1,'photo_7596744.html');
												thumbnails[7596742] = new thumbnail(7596742,'411980','','_WED0028_thumb.jpg',130, 187,1,'photo_7596742.html');
												thumbnails[7596767] = new thumbnail(7596767,'411980','','_WED0329_thumb.jpg',130, 90,1,'photo_7596767.html');
												thumbnails[7598508] = new thumbnail(7598508,'411980','','_WED0016_thumb.jpg',130, 90,1,'photo_7598508.html');
												thumbnails[7600857] = new thumbnail(7600857,'411980','','_WED0019_thumb.jpg',130, 90,1,'photo_7600857.html');
												thumbnails[7600863] = new thumbnail(7600863,'411980','','_WED0230_thumb.jpg',130, 90,1,'photo_7600863.html');
												thumbnails[7600982] = new thumbnail(7600982,'411980','','_WED0281_thumb.jpg',130, 187,1,'photo_7600982.html');
												thumbnails[7600987] = new thumbnail(7600987,'411980','','_WED0333_thumb.jpg',130, 187,1,'photo_7600987.html');
												thumbnails[1700582] = new thumbnail(1700582,'411980','','_WED0191_thumb.jpg',130, 87,1,'photo_1700582.html');
												thumbnails[1591935] = new thumbnail(1591935,'411980','','_WED0400 copy1.jpg',130, 87,1,'photo_1591935.html');
												thumbnails[530029] = new thumbnail(530029,'411980','','DSC_0327 copy1.jpg',130, 86,1,'photo_530029.html');

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  					galleries[77040] = new gallery(77040,'1032683','about sarah','section108294',[1032683],0, 0, '', 'section108294.html',0,1);
				  					galleries[221596] = new gallery(221596,'3622477,3622474,3622472,3622455,3622447,3622430,3622422,3622412,3622405,3622401','Claire & Steve','section94433',[3622299,3622308,3622317,3622321,3622390,3622401,3622405,3622412,3622422,3622474,3622447,3622430,3622455,3622472,3622477],0, 0, '', 'section94433_221596.html',0,0);
				  					galleries[162904] = new gallery(162904,'2548547','Elkie & Daniel','section94433',[2548532,2548534,2548535,2548537,2548540,2548541,2548543,2548544,2548545,2548547,2548549,2548552,2548555,2548558,2548600,2548567,2548612,2548608,2548616,2548618,2548620],0, 0, '', 'section94433_162904.html',0,0);
				  					galleries[139420] = new gallery(139420,'2088808','Emily & Ben','section94433',[2088803,2088807,2088806,2088808,2088810,2088812,2088816,2088819,2088820,2088823,2088824,2088825,2088827,2088829,2088831],0, 0, '', 'section94433_139420.html',0,0);
				  					galleries[148546] = new gallery(148546,'2259582','Fiona & Mark','section94433',[2259422,2259425,2259428,2259431,2259442,2259446,2259448,2259452,2259582,2259592,2259610,2259633],0, 0, '', 'section94433_148546.html',0,0);
				  					galleries[168279] = new gallery(168279,'2657646','Nina & Ben','section94433',[2657646,2657648,2657651,2657655,2657657,2657659,2657664,2657667,2657669,2657680,2657682,2657685],0, 0, '', 'section94433_168279.html',0,0);
				  					galleries[411980] = new gallery(411980,'7600987,7600982,7600863,7600857,7598508,7596767,7596744,7596742,1700582,1591935','Baby & Kids photos','section492958',[7596744,7596742,7596767,7598508,7600857,7600863,7600982,7600987,1700582,1591935,530029],0, 0, '', 'section492958.html',0,1);
				  					galleries[73478] = new gallery(73478,'977792','Mark & Mercedes','section94433',[977847,977905,977844,977792,977906,977916,977835,977841,977915,977909,977911,977904,977850,977852,977908,977918,977917,977920],0, 0, '', 'section94433_73478.html',0,0);
				  					galleries[41015] = new gallery(41015,'2360050,557499','Wedding colour','section94433',[529999,530002,531509,557499,557505,557508,557512,557580,557584,560173,560181,560199,561760,561761,565131,567224,570000,570003,570008,570009,570011,2058665,2058678,2058679,2360050],0, 0, '', 'section94433_41015.html',0,0);
				  					galleries[40359] = new gallery(40359,'527789','Wedding B&W','section94433',[527789,569907,569913,867538,871464,639672,566967,569908,569949,527767,871503,569970,569904,570029,527790,867540,1386124,569929,527791,527804,557522,802333,569912,527795,802331,557516,527835,527797,569937],0, 0, '', 'section94433_40359.html',0,0);
/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = new Object();
imageSets[1] = '7600863,7600857,7598508,7596767,7596742,2548612,2259582,527767';
imageSets[2] = '2657646,2548547,2360051,2360050,2259582,2147154,2088808,1700547,1372251,1220349,1058614,977792,845781,557499,531588,530032,529922,529906,527789';
imageSets[3] = '7596742,3134545,3134541,3134538';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://admin2.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 33:
		val = 'http://www8.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/sarahjones/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/sarahjones/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 += 'section108294.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 && 'section108294' != '') {
					href = getHomeImageLink(imageID);
	}
    
  updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
  var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
      op = $.extend({},defaults,options),
      html = '', temp = '',
      photoId = op.nextPhoto.id,
      photoCaption = op.nextPhoto.caption,
      photoSrc = op.nextPhoto.src;
		
		if (!basic) {
    if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
    }
				
    if (op.$photo.length > 0) {
      html = $('<img/>',{
        'class': 'mainphoto photo',
        src: photoSrc,
        id: 'mainPic',
        name: 'mainPic',
        width: op.nextPhoto.width,
        height: op.nextPhoto.height,
        alt: photoCaption,
        css: op.css || {}
      });
      if (op.href) {
      	if (op.href.match(/<a/)) {
      	  html = $(op.href).append(html);
      	} else {
		  html = $('<a/>', {
			href: op.href,
			title: photoCaption
		  }).append(html);
	    }
      } else {
      	html = $('<a/>', {
			title: photoCaption
		  }).append(html);
      }
      if (op.speed == 0) {        op.$photo.html(html);        if (op.onBefore) {          op.onBefore.apply(op.$photo);        }        if (op.onAfter) {          op.onAfter.apply(op.$photo);        }      } else {        op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){            if (op.onAfter) {		    op.onAfter.apply(this);          }		  clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));		  $('body').trigger('clikUpdate');		}, op.onBefore);
      }    }
    	if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'Sarah Jones photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
	    var options = {};	    	      	      resizePhotoInfo(options);
        if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(backgrounds);
  	    } else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
  	      toggleAddToCartConfirm(photos);
  	    }
	    });
    }
        if (!op.speed) {      clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));      $('body').trigger('clikUpdate');    }        
    return html;			}
	else {
				
		window.location = 'photo_' + nextPhoto.id + '.html';
	}
		
}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array){
  if (typeof(array) !== 'object') {
    array = photos;
  }
	if($('#paymentConfirm').length > 0){
		$('#paymentConfirm').hide();
		$('#paymentAddButton')
		.unbind()
		.click(function(){
						form = document.getElementById('paymentForm');
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm').text('Item added to cart').show();}
				else{
					$('#paymentConfirm').text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm').text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}
/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp = temp +  '<p id="imageDescription">' + this.description + '</p>';
	}
		if (this.photo_ref != '') {
		temp = temp + '<p class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</p>';
	}
		if (this.takendate != '') {
				
		temp = temp + '<p class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</p>';
	}
	
	if (this.location != '') {
				
		temp = temp + '<p class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</p>';
	}
	
	if (this.photographer != '') {
				
		temp = temp + '<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</p>';
	}
					
	temp = temp + this.fnGetPaymentInfo();
				if (temp != '') {
		temp = temp + '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
photo.prototype.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
																		temp = temp + '<p>Buy now using PayPal:</p>';
				temp = temp + '<p class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (this.item_price).toFixed(2) + '</p>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
	else if (this.payment_groups_id !== '') {
		temp = temp + '<p>Buy now 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="sarahjonesphotos@hotmail.co.uk">';
	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="sarahjonesphotos@hotmail.co.uk">';
	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;
	}
}

			

