window.thumbnails = {};
															thumbnails[810864] = clik.newPhoto({"id":810864,"src":"vieworder_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":43});
															thumbnails[47670] = clik.newPhoto({"id":47670,"src":"DSCF3762_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_47670.html","width":130,"caption":"","height":96});
															thumbnails[47706] = clik.newPhoto({"id":47706,"src":"Untitled-1_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_47706.html","width":130,"caption":"","height":176});
															thumbnails[47752] = clik.newPhoto({"id":47752,"src":"DSCF3906_thumb.jpg","galleries_id":4928,"server_id":18,"link":"photo_47752.html","width":130,"caption":"","height":159});
															thumbnails[47753] = clik.newPhoto({"id":47753,"src":"DSCF3920_thumb.jpg","galleries_id":4928,"server_id":18,"link":"photo_47753.html","width":130,"caption":"","height":150});
															thumbnails[47754] = clik.newPhoto({"id":47754,"src":"DSCF3939_thumb.jpg","galleries_id":4928,"server_id":18,"link":"photo_47754.html","width":130,"caption":"","height":101});
															thumbnails[47756] = clik.newPhoto({"id":47756,"src":"DSCF3944_thumb.jpg","galleries_id":4928,"server_id":18,"link":"photo_47756.html","width":130,"caption":"","height":157});
															thumbnails[47757] = clik.newPhoto({"id":47757,"src":"DSCF3962_thumb.jpg","galleries_id":4928,"server_id":18,"link":"photo_47757.html","width":130,"caption":"","height":81});
															thumbnails[49641] = clik.newPhoto({"id":49641,"src":"045_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_49641.html","width":130,"caption":"","height":112});
															thumbnails[50629] = clik.newPhoto({"id":50629,"src":"ws1_thumb.jpg","galleries_id":4928,"server_id":18,"link":"photo_50629.html","width":130,"caption":"","height":182});
															thumbnails[61582] = clik.newPhoto({"id":61582,"src":"192m_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_61582.html","width":130,"caption":"","height":93});
															thumbnails[170409] = clik.newPhoto({"id":170409,"src":"142_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_170409.html","width":130,"caption":"","height":94});
															thumbnails[170413] = clik.newPhoto({"id":170413,"src":"155_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_170413.html","width":130,"caption":"","height":186});
															thumbnails[170441] = clik.newPhoto({"id":170441,"src":"clavell tower_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170441.html","width":130,"caption":"Clavell tower","height":98});
															thumbnails[170450] = clik.newPhoto({"id":170450,"src":"KIMMERIDGE_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170450.html","width":130,"caption":"Kimmeridge","height":104});
															thumbnails[170454] = clik.newPhoto({"id":170454,"src":"DSCF2860_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170454.html","width":130,"caption":"Cliff top sign","height":185});
															thumbnails[170458] = clik.newPhoto({"id":170458,"src":"kim fossil_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170458.html","width":130,"caption":"Fossil","height":104});
															thumbnails[170463] = clik.newPhoto({"id":170463,"src":"kimmeridge cliff decay_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170463.html","width":130,"caption":"Jurrasic coast","height":98});
															thumbnails[170467] = clik.newPhoto({"id":170467,"src":"rocks_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170467.html","width":130,"caption":"Rock forms","height":98});
															thumbnails[170472] = clik.newPhoto({"id":170472,"src":"trees_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_170472.html","width":130,"caption":"Trees on a frosty morning","height":98});
															thumbnails[694338] = clik.newPhoto({"id":694338,"src":"DSCF0045 copy_thumb.JPG","galleries_id":4873,"server_id":18,"link":"photo_694338.html","width":87,"caption":"","height":130});
															thumbnails[694346] = clik.newPhoto({"id":694346,"src":"DSCF0085 copy_thumb.JPG","galleries_id":4896,"server_id":18,"link":"photo_694346.html","width":130,"caption":"","height":87});
															thumbnails[702828] = clik.newPhoto({"id":702828,"src":"ws2_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_702828.html","width":87,"caption":"","height":130});
															thumbnails[917039] = clik.newPhoto({"id":917039,"src":"120 _thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_917039.html","width":104,"caption":"Highcliffe Castle wedding","height":130});
															thumbnails[970475] = clik.newPhoto({"id":970475,"src":"129_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_970475.html","width":130,"caption":"","height":93});
															thumbnails[970477] = clik.newPhoto({"id":970477,"src":"140_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_970477.html","width":130,"caption":"","height":93});
															thumbnails[970479] = clik.newPhoto({"id":970479,"src":"179_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_970479.html","width":93,"caption":"","height":130});
															thumbnails[972765] = clik.newPhoto({"id":972765,"src":"DSCF0051_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_972765.html","width":130,"caption":"","height":93});
															thumbnails[972766] = clik.newPhoto({"id":972766,"src":"DSCF0052_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_972766.html","width":93,"caption":"","height":130});
															thumbnails[1377415] = clik.newPhoto({"id":1377415,"src":"xxxx_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_1377415.html","width":104,"caption":"","height":130});
															thumbnails[1379516] = clik.newPhoto({"id":1379516,"src":"_DSF0223m_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_1379516.html","width":104,"caption":"","height":130});
															thumbnails[1754526] = clik.newPhoto({"id":1754526,"src":"184_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_1754526.html","width":130,"caption":"","height":104});
															thumbnails[1754534] = clik.newPhoto({"id":1754534,"src":"155_1_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_1754534.html","width":130,"caption":"","height":104});
															thumbnails[1754538] = clik.newPhoto({"id":1754538,"src":"159_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_1754538.html","width":104,"caption":"","height":130});
															thumbnails[1764788] = clik.newPhoto({"id":1764788,"src":"152 copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_1764788.html","width":104,"caption":"","height":130});
															thumbnails[1764812] = clik.newPhoto({"id":1764812,"src":"PORTRAIT_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1764812.html","width":104,"caption":"","height":130});
															thumbnails[1826320] = clik.newPhoto({"id":1826320,"src":"010_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_1826320.html","width":104,"caption":"","height":130});
															thumbnails[1880511] = clik.newPhoto({"id":1880511,"src":"0001 copy_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1880511.html","width":93,"caption":"","height":130});
															thumbnails[1880518] = clik.newPhoto({"id":1880518,"src":"0005 copy_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1880518.html","width":93,"caption":"","height":130});
															thumbnails[1880519] = clik.newPhoto({"id":1880519,"src":"DSCF0002 copy_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1880519.html","width":93,"caption":"","height":130});
															thumbnails[1880520] = clik.newPhoto({"id":1880520,"src":"DSCF0029_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1880520.html","width":93,"caption":"","height":130});
															thumbnails[1880527] = clik.newPhoto({"id":1880527,"src":"DSCF0216_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1880527.html","width":93,"caption":"","height":130});
															thumbnails[1898993] = clik.newPhoto({"id":1898993,"src":"DSCF0111_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1898993.html","width":130,"caption":"","height":87});
															thumbnails[1943401] = clik.newPhoto({"id":1943401,"src":"105_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1943401.html","width":93,"caption":"","height":130});
															thumbnails[1943451] = clik.newPhoto({"id":1943451,"src":"DSCF0160_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_1943451.html","width":93,"caption":"","height":130});
															thumbnails[2002757] = clik.newPhoto({"id":2002757,"src":"0073_thumb.JPG","galleries_id":4896,"server_id":18,"link":"photo_2002757.html","width":93,"caption":"","height":130});
															thumbnails[2356010] = clik.newPhoto({"id":2356010,"src":"DSCF1424-copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2356010.html","width":91,"caption":"","height":130});
															thumbnails[2369224] = clik.newPhoto({"id":2369224,"src":"_DSF1140_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2369224.html","width":130,"caption":"","height":98});
															thumbnails[2369234] = clik.newPhoto({"id":2369234,"src":"DSCF0213_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_2369234.html","width":130,"caption":"","height":98});
															thumbnails[2369240] = clik.newPhoto({"id":2369240,"src":"DSCF0248_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2369240.html","width":130,"caption":"","height":97});
															thumbnails[2392274] = clik.newPhoto({"id":2392274,"src":"1_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2392274.html","width":104,"caption":"","height":130});
															thumbnails[2656151] = clik.newPhoto({"id":2656151,"src":"0154 copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2656151.html","width":104,"caption":"","height":130});
															thumbnails[2656153] = clik.newPhoto({"id":2656153,"src":"122 copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2656153.html","width":130,"caption":"","height":104});
															thumbnails[2656155] = clik.newPhoto({"id":2656155,"src":"0181 copy_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_2656155.html","width":104,"caption":"","height":130});
															thumbnails[2668541] = clik.newPhoto({"id":2668541,"src":"IMG_0280 copy_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_2668541.html","width":130,"caption":"","height":91});
															thumbnails[2668558] = clik.newPhoto({"id":2668558,"src":"IMG_0281_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_2668558.html","width":104,"caption":"","height":130});
															thumbnails[2668560] = clik.newPhoto({"id":2668560,"src":"011_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_2668560.html","width":130,"caption":"","height":104});
															thumbnails[2668561] = clik.newPhoto({"id":2668561,"src":"IMG_0325 copy_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_2668561.html","width":130,"caption":"","height":91});
															thumbnails[2919840] = clik.newPhoto({"id":2919840,"src":"0085_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_2919840.html","width":104,"caption":"","height":130});
															thumbnails[3505564] = clik.newPhoto({"id":3505564,"src":"i_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3505564.html","width":93,"caption":"","height":130});
															thumbnails[3576820] = clik.newPhoto({"id":3576820,"src":"0008_copy-2_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_3576820.html","width":130,"caption":"","height":98});
															thumbnails[3576824] = clik.newPhoto({"id":3576824,"src":"0179_copy-2_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3576824.html","width":97,"caption":"","height":130});
															thumbnails[3576827] = clik.newPhoto({"id":3576827,"src":"274_copy_2-2_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3576827.html","width":130,"caption":"","height":87});
															thumbnails[3576830] = clik.newPhoto({"id":3576830,"src":"317_copy_2-2_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3576830.html","width":87,"caption":"","height":130});
															thumbnails[3576832] = clik.newPhoto({"id":3576832,"src":"421_copy-2_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3576832.html","width":87,"caption":"","height":130});
															thumbnails[3576834] = clik.newPhoto({"id":3576834,"src":"589_copy_2-2_thumb.jpg","galleries_id":4896,"server_id":18,"link":"photo_3576834.html","width":87,"caption":"","height":130});
															thumbnails[3576868] = clik.newPhoto({"id":3576868,"src":"554_copy_2_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_3576868.html","width":130,"caption":"","height":87});
															thumbnails[3581172] = clik.newPhoto({"id":3581172,"src":"tower_thumb.jpg","galleries_id":4929,"server_id":18,"link":"photo_3581172.html","width":102,"caption":"","height":130});
															thumbnails[3681876] = clik.newPhoto({"id":3681876,"src":"351_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3681876.html","width":130,"caption":"","height":87});
															thumbnails[3681877] = clik.newPhoto({"id":3681877,"src":"378_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3681877.html","width":87,"caption":"","height":130});
															thumbnails[3681881] = clik.newPhoto({"id":3681881,"src":"421_copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_3681881.html","width":87,"caption":"","height":130});
															thumbnails[3682138] = clik.newPhoto({"id":3682138,"src":"DSCF_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3682138.html","width":130,"caption":"","height":87});
															thumbnails[3697893] = clik.newPhoto({"id":3697893,"src":"01s_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3697893.html","width":87,"caption":"","height":130});
															thumbnails[3841200] = clik.newPhoto({"id":3841200,"src":"DSCF5057_copy_copy_2_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_3841200.html","width":87,"caption":"","height":130});
															thumbnails[3841270] = clik.newPhoto({"id":3841270,"src":"DSCF5089_copy_2_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_3841270.html","width":87,"caption":"","height":130});
															thumbnails[4226881] = clik.newPhoto({"id":4226881,"src":"0166_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_4226881.html","width":87,"caption":"","height":130});
															thumbnails[4226886] = clik.newPhoto({"id":4226886,"src":"0188_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_4226886.html","width":87,"caption":"","height":130});
															thumbnails[4226889] = clik.newPhoto({"id":4226889,"src":"0182_copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_4226889.html","width":87,"caption":"","height":130});
															thumbnails[4226906] = clik.newPhoto({"id":4226906,"src":"0217_copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_4226906.html","width":87,"caption":"","height":130});
															thumbnails[4226911] = clik.newPhoto({"id":4226911,"src":"0302_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_4226911.html","width":87,"caption":"","height":130});
															thumbnails[4226914] = clik.newPhoto({"id":4226914,"src":"0308_copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_4226914.html","width":130,"caption":"","height":87});
															thumbnails[4427961] = clik.newPhoto({"id":4427961,"src":"0217_copy_1_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_4427961.html","width":87,"caption":"","height":130});
															thumbnails[4427964] = clik.newPhoto({"id":4427964,"src":"0243_copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_4427964.html","width":87,"caption":"","height":130});
															thumbnails[7752361] = clik.newPhoto({"id":7752361,"src":"095_copy1_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752361.html","width":87,"caption":"","height":130});
															thumbnails[7752376] = clik.newPhoto({"id":7752376,"src":"0046_copy1_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752376.html","width":87,"caption":"","height":130});
															thumbnails[7752383] = clik.newPhoto({"id":7752383,"src":"0070_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752383.html","width":87,"caption":"","height":130});
															thumbnails[7752389] = clik.newPhoto({"id":7752389,"src":"0108_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752389.html","width":130,"caption":"","height":87});
															thumbnails[7752392] = clik.newPhoto({"id":7752392,"src":"0109_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752392.html","width":130,"caption":"","height":87});
															thumbnails[7752405] = clik.newPhoto({"id":7752405,"src":"123_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752405.html","width":130,"caption":"","height":87});
															thumbnails[7752409] = clik.newPhoto({"id":7752409,"src":"161_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752409.html","width":87,"caption":"","height":130});
															thumbnails[7752413] = clik.newPhoto({"id":7752413,"src":"0172_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752413.html","width":87,"caption":"","height":130});
															thumbnails[7752505] = clik.newPhoto({"id":7752505,"src":"111_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752505.html","width":87,"caption":"","height":130});
															thumbnails[8128835] = clik.newPhoto({"id":8128835,"src":"0367_copy1_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_8128835.html","width":87,"caption":"","height":130});
															thumbnails[8128807] = clik.newPhoto({"id":8128807,"src":"0396_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_8128807.html","width":87,"caption":"","height":130});
															thumbnails[7752400] = clik.newPhoto({"id":7752400,"src":"118_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_7752400.html","width":87,"caption":"","height":130});
															thumbnails[2632806] = clik.newPhoto({"id":2632806,"src":"WF1_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2632806.html","width":87,"caption":"","height":130});
															thumbnails[2856310] = clik.newPhoto({"id":2856310,"src":"m_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2856310.html","width":104,"caption":"","height":130});
															thumbnails[3681874] = clik.newPhoto({"id":3681874,"src":"246_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3681874.html","width":130,"caption":"","height":87});
															thumbnails[47656] = clik.newPhoto({"id":47656,"src":"DSCF3755_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_47656.html","width":99,"caption":"Bournemouth summer Wedding","height":130});
															thumbnails[2856321] = clik.newPhoto({"id":2856321,"src":"22_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2856321.html","width":104,"caption":"","height":130});
															thumbnails[2632805] = clik.newPhoto({"id":2632805,"src":"11_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2632805.html","width":130,"caption":"","height":87});
															thumbnails[2856315] = clik.newPhoto({"id":2856315,"src":"rh_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2856315.html","width":130,"caption":"","height":91});
															thumbnails[2591105] = clik.newPhoto({"id":2591105,"src":"7_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2591105.html","width":104,"caption":"","height":130});
															thumbnails[2856326] = clik.newPhoto({"id":2856326,"src":"Rhinefield_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2856326.html","width":130,"caption":"","height":91});
															thumbnails[2711130] = clik.newPhoto({"id":2711130,"src":"012_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2711130.html","width":87,"caption":"","height":130});
															thumbnails[3540597] = clik.newPhoto({"id":3540597,"src":"0157_copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_3540597.html","width":130,"caption":"","height":104});
															thumbnails[1377410] = clik.newPhoto({"id":1377410,"src":"xxx_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_1377410.html","width":104,"caption":"","height":130});
															thumbnails[2288296] = clik.newPhoto({"id":2288296,"src":"_DSF1158 copy_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2288296.html","width":130,"caption":"","height":104});
															thumbnails[2523183] = clik.newPhoto({"id":2523183,"src":"31_thumb.jpg","galleries_id":4875,"server_id":18,"link":"photo_2523183.html","width":130,"caption":"","height":104});
															thumbnails[2651625] = clik.newPhoto({"id":2651625,"src":"DSCF0921 copy_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_2651625.html","width":104,"caption":"","height":130});
															thumbnails[1764791] = clik.newPhoto({"id":1764791,"src":"167_thumb.jpg","galleries_id":4873,"server_id":18,"link":"photo_1764791.html","width":104,"caption":"","height":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[4875] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"wedding images","link":"gallery_4875.html","maxRecords":0.0,"photoIDs":[1377415.0,1379516.0,1754526.0,2356010.0,2369224.0,2369240.0,2392274.0,2656151.0,2656153.0,3505564.0,3576824.0,3576827.0,3576830.0,3576832.0,3681876.0,3681877.0,3682138.0,3697893.0,4226881.0,4226886.0,4226911.0,7752361.0,7752376.0,7752383.0,7752389.0,7752392.0,7752405.0,7752409.0,7752413.0,7752505.0,8128835.0,8128807.0,7752400.0,2632806.0,2856310.0,3681874.0,2856321.0,2632805.0,2856315.0,2591105.0,2856326.0,2711130.0,3540597.0,1377410.0,2288296.0,2523183.0],"skipIndex":0,"section_code":"gallery","featured_images":"7752400,4226911,4226886,4226881,3681877,3576830","id":4875,"singleSection":false});				  						galleries[4873] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding images","link":"gallery_4873.html","maxRecords":0.0,"photoIDs":[49641.0,61582.0,694338.0,702828.0,917039.0,970475.0,970477.0,970479.0,1754534.0,1754538.0,1764788.0,1826320.0,2369234.0,3576820.0,3576868.0,3681881.0,3841200.0,3841270.0,4226889.0,4226906.0,4226914.0,4427961.0,4427964.0,47656.0,2651625.0,1764791.0],"skipIndex":0,"section_code":"gallery","featured_images":"4427964,3681881,3576820,702828,61582,47656","id":4873,"singleSection":false});				  						galleries[4896] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portraits","link":"gallery_4896.html","maxRecords":0.0,"photoIDs":[47670.0,47706.0,170409.0,170413.0,694346.0,972765.0,972766.0,1764812.0,1880511.0,1880518.0,1880519.0,1880520.0,1880527.0,1898993.0,1943401.0,1943451.0,2002757.0,2656155.0,2919840.0,3576834.0],"skipIndex":0,"section_code":"gallery","featured_images":3576834.0,"id":4896,"singleSection":false});				  						galleries[4928] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Red arrows Bournemouth","link":"gallery_4928.html","maxRecords":0.0,"photoIDs":[47752.0,47753.0,47754.0,47756.0,47757.0,50629.0],"skipIndex":0,"section_code":"gallery","featured_images":"47756,47752","id":4928,"singleSection":false});				  						galleries[4929] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dorset","link":"gallery_4929.html","maxRecords":0.0,"photoIDs":[170441.0,170450.0,170454.0,170458.0,170463.0,170467.0,170472.0,2668541.0,2668558.0,2668560.0,2668561.0,3581172.0],"skipIndex":0,"section_code":"gallery","featured_images":"2668561,170454","id":4929,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7752505,7752413,7752383,7752376,7752361,3697893,3576868,3576830,1379516,7752400,3681874,2856310,2632806,47656,2856315,2632805,2856326,2591105,3540597,2711130,2288296,2523183,1764791';
imageSets[2] = '4427964,4226911,4226886,4226881,3681881,3681877,3576834,3576830,3576820,2668561,702828,170454,61582,47756,47752,7752400,47656';
imageSets[3] = '8128835,8128807,7752505,7752413,7752409,7752405,7752400,7752392,7752389,7752383,7752376,7752361,4427964,4427961,4226914,4226911,4226906,4226889,4226886,4226881,3841270,3841200,3697893,3682138,3681881,3681877,3681876,3681874,3581172,3576868,3576834,3576832,3576830,3576827,3576824,3576820,3540597,3505564,2919840,2856326,2856321,2856315,2856310,2711130,2668561,2668560,2668558,2668541,2656155,2656153';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/thephotoman20/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/thephotoman20/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 || photos || {})[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:'',$detailContainer:'',
                    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 (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = ' Wedding Photographers in Bournemouth';
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		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.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			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', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			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({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* 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 += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

