window.thumbnails = {};
															thumbnails[6662799] = clik.newPhoto({"id":6662799,"src":"Linsey--Terry-074_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":195});
															thumbnails[7426929] = clik.newPhoto({"id":7426929,"src":"natalie-john-694_thumb.jpg","galleries_id":"","server_id":1,"link":"#","width":130,"caption":"","height":87});
															thumbnails[1238161] = clik.newPhoto({"id":1238161,"src":"jet-ski-net-save_thumb.jpg","galleries_id":88535,"server_id":1,"link":"photo_1238161.html","width":130,"caption":"","height":130});
															thumbnails[1238162] = clik.newPhoto({"id":1238162,"src":"surf-net-save_thumb.jpg","galleries_id":88535,"server_id":1,"link":"photo_1238162.html","width":130,"caption":"","height":195});
															thumbnails[948703] = clik.newPhoto({"id":948703,"src":"JPG001_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_948703.html","width":130,"caption":"","height":100});
															thumbnails[948707] = clik.newPhoto({"id":948707,"src":"JPG007_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_948707.html","width":130,"caption":"","height":196});
															thumbnails[948729] = clik.newPhoto({"id":948729,"src":"JPG009_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_948729.html","width":130,"caption":"","height":130});
															thumbnails[953662] = clik.newPhoto({"id":953662,"src":"Olivia featherJPG_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_953662.html","width":130,"caption":"","height":173});
															thumbnails[955822] = clik.newPhoto({"id":955822,"src":"gareth and oli bwJPG_thumb.jpg","galleries_id":135067,"server_id":1,"link":"photo_955822.html","width":130,"caption":"","height":171});
															thumbnails[978118] = clik.newPhoto({"id":978118,"src":"family bwJPG1_thumb.jpg","galleries_id":135067,"server_id":1,"link":"photo_978118.html","width":130,"caption":"","height":86});
															thumbnails[1167002] = clik.newPhoto({"id":1167002,"src":"kara-6-net-save_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_1167002.html","width":130,"caption":"","height":182});
															thumbnails[1167016] = clik.newPhoto({"id":1167016,"src":"the-onebw_fesathersepia-net_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_1167016.html","width":130,"caption":"","height":195});
															thumbnails[1238164] = clik.newPhoto({"id":1238164,"src":"bats-man-net-save_thumb.jpg","galleries_id":88535,"server_id":1,"link":"photo_1238164.html","width":130,"caption":"","height":195});
															thumbnails[1304492] = clik.newPhoto({"id":1304492,"src":"caz-viaduct-web-save_thumb.jpg","galleries_id":88535,"server_id":1,"link":"photo_1304492.html","width":130,"caption":"","height":195});
															thumbnails[1304505] = clik.newPhoto({"id":1304505,"src":"caz-swing3_thumb.jpg","galleries_id":88535,"server_id":1,"link":"photo_1304505.html","width":130,"caption":"","height":195});
															thumbnails[1613500] = clik.newPhoto({"id":1613500,"src":"cara-balloonswebfile_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_1613500.html","width":130,"caption":"","height":196});
															thumbnails[1777979] = clik.newPhoto({"id":1777979,"src":"raby-castlenet-edit_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_1777979.html","width":130,"caption":"","height":93});
															thumbnails[1777981] = clik.newPhoto({"id":1777981,"src":"Pam-15dec07-307-net-edit_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_1777981.html","width":130,"caption":"","height":195});
															thumbnails[1777986] = clik.newPhoto({"id":1777986,"src":"barbara-Dec-07-088_black-wh_thumb.jpg","galleries_id":135067,"server_id":1,"link":"photo_1777986.html","width":130,"caption":"","height":93});
															thumbnails[1816714] = clik.newPhoto({"id":1816714,"src":"fiinland-jan-08-334_edited-_thumb.jpg","galleries_id":71798,"server_id":1,"link":"photo_1816714.html","width":130,"caption":"","height":195});
															thumbnails[1833895] = clik.newPhoto({"id":1833895,"src":"DSC_0154_desatsnet-file_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_1833895.html","width":130,"caption":"","height":195});
															thumbnails[1833900] = clik.newPhoto({"id":1833900,"src":"DSC_0360_black-and-white_pa_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_1833900.html","width":130,"caption":"","height":54});
															thumbnails[1833902] = clik.newPhoto({"id":1833902,"src":"black-and-white-trees_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1833902.html","width":130,"caption":"","height":195});
															thumbnails[1833904] = clik.newPhoto({"id":1833904,"src":"bw-trees-2_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1833904.html","width":130,"caption":"","height":312});
															thumbnails[1982811] = clik.newPhoto({"id":1982811,"src":"Dawn-Christening-March-08-1_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_1982811.html","width":130,"caption":"","height":87});
															thumbnails[1982813] = clik.newPhoto({"id":1982813,"src":"dawn-inside-church_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_1982813.html","width":130,"caption":"","height":194});
															thumbnails[1982814] = clik.newPhoto({"id":1982814,"src":"Dawn-Christening-March-08-0_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_1982814.html","width":130,"caption":"","height":195});
															thumbnails[2016212] = clik.newPhoto({"id":2016212,"src":"darcy-net-save_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_2016212.html","width":130,"caption":"","height":195});
															thumbnails[2016214] = clik.newPhoto({"id":2016214,"src":"fan-jan-08-060_full_feather_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_2016214.html","width":130,"caption":"","height":195});
															thumbnails[2016216] = clik.newPhoto({"id":2016216,"src":"fiinland-jan-08-216_edited-_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2016216.html","width":130,"caption":"","height":54});
															thumbnails[2016217] = clik.newPhoto({"id":2016217,"src":"balloons-dawn_thumb.jpg","galleries_id":133040,"server_id":1,"link":"photo_2016217.html","width":130,"caption":"","height":194});
															thumbnails[2104799] = clik.newPhoto({"id":2104799,"src":"harrison-wedding-790_edited_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2104799.html","width":130,"caption":"","height":195});
															thumbnails[2104800] = clik.newPhoto({"id":2104800,"src":"harrison-wedding-944_edited_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2104800.html","width":130,"caption":"","height":194});
															thumbnails[2104802] = clik.newPhoto({"id":2104802,"src":"harrison-wedding-186_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2104802.html","width":130,"caption":"","height":195});
															thumbnails[2517412] = clik.newPhoto({"id":2517412,"src":"sepia-girl-at-mill_feather__thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2517412.html","width":130,"caption":"","height":195});
															thumbnails[2517444] = clik.newPhoto({"id":2517444,"src":"formentra-july-2008-247_bla_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2517444.html","width":130,"caption":"","height":87});
															thumbnails[2517448] = clik.newPhoto({"id":2517448,"src":"formentra-july-2008-258net_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2517448.html","width":130,"caption":"","height":87});
															thumbnails[2517449] = clik.newPhoto({"id":2517449,"src":"formentra-july-2008-260net_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2517449.html","width":130,"caption":"","height":87});
															thumbnails[2528062] = clik.newPhoto({"id":2528062,"src":"night-shot-5_edited-1-net-s_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_2528062.html","width":130,"caption":"","height":87});
															thumbnails[2528063] = clik.newPhoto({"id":2528063,"src":"night-shot-8net-save_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_2528063.html","width":130,"caption":"","height":87});
															thumbnails[2528069] = clik.newPhoto({"id":2528069,"src":"night-shot-purple-green-net_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_2528069.html","width":130,"caption":"","height":87});
															thumbnails[2528072] = clik.newPhoto({"id":2528072,"src":"rusty-rita-adjusted-adjust2_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_2528072.html","width":130,"caption":"","height":87});
															thumbnails[2698787] = clik.newPhoto({"id":2698787,"src":"carley&chris-672net_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2698787.html","width":130,"caption":"","height":195});
															thumbnails[2856305] = clik.newPhoto({"id":2856305,"src":"fiinland-jan-08-437netfile_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2856305.html","width":130,"caption":"","height":195});
															thumbnails[2856397] = clik.newPhoto({"id":2856397,"src":"LIZ-&-GORDON-091netfile_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2856397.html","width":130,"caption":"","height":195});
															thumbnails[2856424] = clik.newPhoto({"id":2856424,"src":"LIZ-&-GORDON-253netfile_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2856424.html","width":130,"caption":"","height":194});
															thumbnails[2856428] = clik.newPhoto({"id":2856428,"src":"la-palma-sept-2008-010net-f_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2856428.html","width":130,"caption":"","height":87});
															thumbnails[2856430] = clik.newPhoto({"id":2856430,"src":"la-palma-sept-2008-170netfi_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2856430.html","width":130,"caption":"","height":87});
															thumbnails[2856432] = clik.newPhoto({"id":2856432,"src":"Vick-&-Mark-193net-file_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2856432.html","width":130,"caption":"","height":194});
															thumbnails[2856434] = clik.newPhoto({"id":2856434,"src":"la-palma-sept-2008-297netfi_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_2856434.html","width":130,"caption":"","height":195});
															thumbnails[2856439] = clik.newPhoto({"id":2856439,"src":"Vick-&-Mark-518netfile_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2856439.html","width":130,"caption":"","height":194});
															thumbnails[3743252] = clik.newPhoto({"id":3743252,"src":"emma--Gary-661net-save_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3743252.html","width":130,"caption":"","height":194});
															thumbnails[3743257] = clik.newPhoto({"id":3743257,"src":"carleychris-295net-save_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3743257.html","width":130,"caption":"","height":194});
															thumbnails[3743346] = clik.newPhoto({"id":3743346,"src":"portrait-shoot-093net-save_thumb.jpg","galleries_id":135067,"server_id":1,"link":"photo_3743346.html","width":130,"caption":"","height":194});
															thumbnails[3743347] = clik.newPhoto({"id":3743347,"src":"portrait-shoot-110net-save_thumb.jpg","galleries_id":135067,"server_id":1,"link":"photo_3743347.html","width":130,"caption":"","height":87});
															thumbnails[3881564] = clik.newPhoto({"id":3881564,"src":"lynn--tony-august-08-1062_1_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881564.html","width":130,"caption":"","height":87});
															thumbnails[3881570] = clik.newPhoto({"id":3881570,"src":"lynn--tony-august-08-336_e1_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881570.html","width":130,"caption":"","height":87});
															thumbnails[3881604] = clik.newPhoto({"id":3881604,"src":"lynn--tony-august-08-118_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881604.html","width":130,"caption":"","height":86});
															thumbnails[3881620] = clik.newPhoto({"id":3881620,"src":"carleychris-372_edited-1_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881620.html","width":130,"caption":"","height":87});
															thumbnails[3881625] = clik.newPhoto({"id":3881625,"src":"carleychris-501_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881625.html","width":130,"caption":"","height":87});
															thumbnails[3881639] = clik.newPhoto({"id":3881639,"src":"carleychris-076_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881639.html","width":130,"caption":"","height":87});
															thumbnails[3881642] = clik.newPhoto({"id":3881642,"src":"carleychris-252_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3881642.html","width":130,"caption":"","height":87});
															thumbnails[5020186] = clik.newPhoto({"id":5020186,"src":"bgmont2_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020186.html","width":130,"caption":"","height":194});
															thumbnails[5020226] = clik.newPhoto({"id":5020226,"src":"cake_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020226.html","width":130,"caption":"","height":194});
															thumbnails[5020227] = clik.newPhoto({"id":5020227,"src":"cake-2_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020227.html","width":130,"caption":"","height":195});
															thumbnails[5020229] = clik.newPhoto({"id":5020229,"src":"cake-detail-muti-shot_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020229.html","width":130,"caption":"","height":87});
															thumbnails[5020232] = clik.newPhoto({"id":5020232,"src":"cake-mont_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020232.html","width":130,"caption":"","height":195});
															thumbnails[5020292] = clik.newPhoto({"id":5020292,"src":"confetti-montage_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020292.html","width":130,"caption":"","height":194});
															thumbnails[5020353] = clik.newPhoto({"id":5020353,"src":"Deborah--Chris-059_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020353.html","width":130,"caption":"","height":87});
															thumbnails[5020356] = clik.newPhoto({"id":5020356,"src":"Deborah--Chris-084_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020356.html","width":130,"caption":"","height":194});
															thumbnails[5020409] = clik.newPhoto({"id":5020409,"src":"Deborah--Chris-175_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020409.html","width":130,"caption":"","height":194});
															thumbnails[5020424] = clik.newPhoto({"id":5020424,"src":"flower-mont_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020424.html","width":130,"caption":"","height":87});
															thumbnails[5020427] = clik.newPhoto({"id":5020427,"src":"kim--ken-june-09-744_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020427.html","width":130,"caption":"","height":87});
															thumbnails[5020432] = clik.newPhoto({"id":5020432,"src":"laura--dave-Aug-2009-152_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020432.html","width":130,"caption":"","height":194});
															thumbnails[5020436] = clik.newPhoto({"id":5020436,"src":"laura--dave-Aug-2009-203_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020436.html","width":130,"caption":"","height":195});
															thumbnails[5020563] = clik.newPhoto({"id":5020563,"src":"laura--dave-Aug-2009-546_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020563.html","width":130,"caption":"","height":87});
															thumbnails[5020569] = clik.newPhoto({"id":5020569,"src":"Linsay--David-Oct-09-026_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020569.html","width":130,"caption":"","height":195});
															thumbnails[5020572] = clik.newPhoto({"id":5020572,"src":"Linsay--David-Oct-09-052_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020572.html","width":130,"caption":"","height":195});
															thumbnails[5020656] = clik.newPhoto({"id":5020656,"src":"Linsay--David-Oct-09-315_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020656.html","width":130,"caption":"","height":194});
															thumbnails[5020680] = clik.newPhoto({"id":5020680,"src":"Lynn--Geoff-015_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020680.html","width":130,"caption":"","height":194});
															thumbnails[5020686] = clik.newPhoto({"id":5020686,"src":"Lynn--Geoff-107_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020686.html","width":130,"caption":"","height":194});
															thumbnails[5020692] = clik.newPhoto({"id":5020692,"src":"Lynn--Geoff-202_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020692.html","width":130,"caption":"","height":195});
															thumbnails[5020760] = clik.newPhoto({"id":5020760,"src":"Lynn--Geoff-437_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020760.html","width":130,"caption":"","height":87});
															thumbnails[5020771] = clik.newPhoto({"id":5020771,"src":"Lynn--Geoff-510_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020771.html","width":130,"caption":"","height":87});
															thumbnails[5020781] = clik.newPhoto({"id":5020781,"src":"Lynn--Geoff-612_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020781.html","width":130,"caption":"","height":87});
															thumbnails[5020784] = clik.newPhoto({"id":5020784,"src":"mens-lapel-detail_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020784.html","width":130,"caption":"","height":87});
															thumbnails[5020786] = clik.newPhoto({"id":5020786,"src":"multi-detail_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020786.html","width":130,"caption":"","height":195});
															thumbnails[5020788] = clik.newPhoto({"id":5020788,"src":"Natalie--allan-146_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020788.html","width":130,"caption":"","height":194});
															thumbnails[5020795] = clik.newPhoto({"id":5020795,"src":"Natalie--allan-233_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020795.html","width":130,"caption":"","height":194});
															thumbnails[5020801] = clik.newPhoto({"id":5020801,"src":"Natalie--allan-236_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020801.html","width":130,"caption":"","height":194});
															thumbnails[5020807] = clik.newPhoto({"id":5020807,"src":"Natalie--allan-265_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020807.html","width":130,"caption":"","height":194});
															thumbnails[5020814] = clik.newPhoto({"id":5020814,"src":"Natalie--allan-366_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020814.html","width":130,"caption":"","height":87});
															thumbnails[5020831] = clik.newPhoto({"id":5020831,"src":"Natalie--allan-512_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020831.html","width":130,"caption":"","height":195});
															thumbnails[5020841] = clik.newPhoto({"id":5020841,"src":"Natalie--allan-528_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020841.html","width":130,"caption":"","height":87});
															thumbnails[5020850] = clik.newPhoto({"id":5020850,"src":"Natalie--allan-552edit_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5020850.html","width":130,"caption":"","height":87});
															thumbnails[6453818] = clik.newPhoto({"id":6453818,"src":"Christine--chris540_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6453818.html","width":130,"caption":"","height":195});
															thumbnails[6453840] = clik.newPhoto({"id":6453840,"src":"Christine--chri245_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6453840.html","width":130,"caption":"","height":87});
															thumbnails[6453842] = clik.newPhoto({"id":6453842,"src":"catherine--chris-539_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6453842.html","width":130,"caption":"","height":194});
															thumbnails[6453845] = clik.newPhoto({"id":6453845,"src":"catherine--chris-586_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6453845.html","width":130,"caption":"","height":87});
															thumbnails[6453868] = clik.newPhoto({"id":6453868,"src":"Christine--chri7261_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6453868.html","width":130,"caption":"","height":87});
															thumbnails[6662800] = clik.newPhoto({"id":6662800,"src":"cl-mont_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6662800.html","width":130,"caption":"","height":195});
															thumbnails[6662801] = clik.newPhoto({"id":6662801,"src":"fiona--alison-366_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6662801.html","width":130,"caption":"","height":87});
															thumbnails[6662802] = clik.newPhoto({"id":6662802,"src":"fiona--alison-365_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6662802.html","width":130,"caption":"","height":87});
															thumbnails[6662803] = clik.newPhoto({"id":6662803,"src":"Keith--Jen-153_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6662803.html","width":130,"caption":"","height":195});
															thumbnails[8580216] = clik.newPhoto({"id":8580216,"src":"image-29_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580216.html","width":130,"caption":"","height":92});
															thumbnails[6453762] = clik.newPhoto({"id":6453762,"src":"Christine--chris-june-2010_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_6453762.html","width":130,"caption":"","height":194});
															thumbnails[948814] = clik.newPhoto({"id":948814,"src":"cloud balck and whiteJPG_thumb.jpg","galleries_id":71798,"server_id":1,"link":"photo_948814.html","width":130,"caption":"","height":196});
															thumbnails[950711] = clik.newPhoto({"id":950711,"src":"efeel tower black and whitr_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950711.html","width":130,"caption":"","height":196});
															thumbnails[950724] = clik.newPhoto({"id":950724,"src":"lapland january 2007 240 ice hotel view cropJPG_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950724.html","width":130,"caption":"","height":198});
															thumbnails[2698794] = clik.newPhoto({"id":2698794,"src":"carley&chris-030_edited1pri_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2698794.html","width":130,"caption":"","height":195});
															thumbnails[5751827] = clik.newPhoto({"id":5751827,"src":"aimee--Micheal-357_edited-_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751827.html","width":130,"caption":"","height":195});
															thumbnails[5751832] = clik.newPhoto({"id":5751832,"src":"aimee--Micheal-374_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751832.html","width":130,"caption":"","height":87});
															thumbnails[5751891] = clik.newPhoto({"id":5751891,"src":"EmmaGareth-029_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751891.html","width":130,"caption":"","height":194});
															thumbnails[5751893] = clik.newPhoto({"id":5751893,"src":"hollie-mont_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_5751893.html","width":130,"caption":"","height":195});
															thumbnails[5751903] = clik.newPhoto({"id":5751903,"src":"sarah--Simon-311_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751903.html","width":130,"caption":"","height":87});
															thumbnails[5751960] = clik.newPhoto({"id":5751960,"src":"sarah--Simon-606_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751960.html","width":130,"caption":"","height":194});
															thumbnails[5751965] = clik.newPhoto({"id":5751965,"src":"sarah--Simon-931_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751965.html","width":130,"caption":"","height":87});
															thumbnails[5751976] = clik.newPhoto({"id":5751976,"src":"Sharon--Sen-March-2010-616_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751976.html","width":130,"caption":"","height":87});
															thumbnails[5752005] = clik.newPhoto({"id":5752005,"src":"Sharon--Sen-March-2010-678_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5752005.html","width":130,"caption":"","height":87});
															thumbnails[948824] = clik.newPhoto({"id":948824,"src":"douie featherJPG_thumb.jpg","galleries_id":71798,"server_id":1,"link":"photo_948824.html","width":130,"caption":"","height":196});
															thumbnails[950712] = clik.newPhoto({"id":950712,"src":"bulidingd black and whiteJPG1_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950712.html","width":130,"caption":"","height":196});
															thumbnails[953599] = clik.newPhoto({"id":953599,"src":"sunset in the tree saturation adjustedJPG_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_953599.html","width":130,"caption":"","height":196});
															thumbnails[2183574] = clik.newPhoto({"id":2183574,"src":"harrison-wedding-610_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2183574.html","width":130,"caption":"","height":130});
															thumbnails[5751885] = clik.newPhoto({"id":5751885,"src":"cake-mont_CDAEB798-1D09-001F-992A30E3DD542232_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_5751885.html","width":130,"caption":"","height":195});
															thumbnails[7426918] = clik.newPhoto({"id":7426918,"src":"Aminee--Gareth-407_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_7426918.html","width":130,"caption":"","height":87});
															thumbnails[1167247] = clik.newPhoto({"id":1167247,"src":"lighthouse-net-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1167247.html","width":130,"caption":"","height":195});
															thumbnails[2728020] = clik.newPhoto({"id":2728020,"src":"Becccascott-aug2008-617_edi_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2728020.html","width":130,"caption":"","height":87});
															thumbnails[3167816] = clik.newPhoto({"id":3167816,"src":"Nat-Oct-08-110_edited-1net-_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_3167816.html","width":130,"caption":"","height":194});
															thumbnails[7426922] = clik.newPhoto({"id":7426922,"src":"Keith--Jen-819_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_7426922.html","width":130,"caption":"","height":87});
															thumbnails[8580306] = clik.newPhoto({"id":8580306,"src":"web2_thumb.jpg","galleries_id":71798,"server_id":38,"link":"photo_8580306.html","width":130,"caption":"","height":195});
															thumbnails[4090841] = clik.newPhoto({"id":4090841,"src":"Paul-and-steph-may-2009-113_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_4090841.html","width":130,"caption":"","height":194});
															thumbnails[8580303] = clik.newPhoto({"id":8580303,"src":"web-1_thumb.jpg","galleries_id":135067,"server_id":38,"link":"photo_8580303.html","width":130,"caption":"","height":87});
															thumbnails[948815] = clik.newPhoto({"id":948815,"src":"dougieJPG_thumb.jpg","galleries_id":71798,"server_id":1,"link":"photo_948815.html","width":130,"caption":"","height":196});
															thumbnails[953603] = clik.newPhoto({"id":953603,"src":"fisherman-kos-straigten-web_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_953603.html","width":130,"caption":"","height":176});
															thumbnails[2104795] = clik.newPhoto({"id":2104795,"src":"harrison-wedding-281_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2104795.html","width":130,"caption":"","height":194});
															thumbnails[2104819] = clik.newPhoto({"id":2104819,"src":"harrison-wedding-957_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2104819.html","width":130,"caption":"","height":194});
															thumbnails[3167817] = clik.newPhoto({"id":3167817,"src":"Nat-Oct-08-084_edited-1net-_thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_3167817.html","width":130,"caption":"","height":87});
															thumbnails[3167827] = clik.newPhoto({"id":3167827,"src":"simone-portraits-nov08-329__thumb.jpg","galleries_id":129309,"server_id":1,"link":"photo_3167827.html","width":130,"caption":"","height":87});
															thumbnails[7426924] = clik.newPhoto({"id":7426924,"src":"Linsey--Terry-780_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_7426924.html","width":130,"caption":"","height":195});
															thumbnails[948835] = clik.newPhoto({"id":948835,"src":"JPG023_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_948835.html","width":130,"caption":"","height":196});
															thumbnails[950722] = clik.newPhoto({"id":950722,"src":"clear view editJPG_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950722.html","width":130,"caption":"","height":86});
															thumbnails[953607] = clik.newPhoto({"id":953607,"src":"singapore-edit-web-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_953607.html","width":130,"caption":"","height":101});
															thumbnails[3167810] = clik.newPhoto({"id":3167810,"src":"emma-&-Gary-618net-file_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3167810.html","width":130,"caption":"","height":195});
															thumbnails[8580217] = clik.newPhoto({"id":8580217,"src":"image-37_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580217.html","width":130,"caption":"","height":91});
															thumbnails[4090963] = clik.newPhoto({"id":4090963,"src":"Paul-and-steph-may-2009-1081_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_4090963.html","width":130,"caption":"","height":87});
															thumbnails[1063779] = clik.newPhoto({"id":1063779,"src":"JPG0101_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_1063779.html","width":130,"caption":"","height":173});
															thumbnails[1167012] = clik.newPhoto({"id":1167012,"src":"Paddy-balck-and-white-feath_thumb.jpg","galleries_id":71798,"server_id":1,"link":"photo_1167012.html","width":130,"caption":"","height":195});
															thumbnails[1167197] = clik.newPhoto({"id":1167197,"src":"sepia-prymids-net-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1167197.html","width":130,"caption":"","height":87});
															thumbnails[3167825] = clik.newPhoto({"id":3167825,"src":"CARA-2008-418_edited-1net-f_thumb.jpg","galleries_id":135067,"server_id":1,"link":"photo_3167825.html","width":130,"caption":"","height":130});
															thumbnails[4090993] = clik.newPhoto({"id":4090993,"src":"Paul-and-steph-may-2009-4181_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_4090993.html","width":130,"caption":"","height":87});
															thumbnails[8580260] = clik.newPhoto({"id":8580260,"src":"Neil--Mel-772web_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580260.html","width":130,"caption":"","height":194});
															thumbnails[8580266] = clik.newPhoto({"id":8580266,"src":"Sarah--Charles-1149_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580266.html","width":130,"caption":"","height":194});
															thumbnails[948689] = clik.newPhoto({"id":948689,"src":"JPG0211_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_948689.html","width":130,"caption":"","height":196});
															thumbnails[8580265] = clik.newPhoto({"id":8580265,"src":"Sarah--Charles-1140web_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580265.html","width":130,"caption":"","height":194});
															thumbnails[948818] = clik.newPhoto({"id":948818,"src":"cloud-with-tougue-web-saveJPG_thumb.jpg","galleries_id":71798,"server_id":1,"link":"photo_948818.html","width":130,"caption":"","height":195});
															thumbnails[950717] = clik.newPhoto({"id":950717,"src":"Toronto city scapeJPG_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950717.html","width":130,"caption":"","height":86});
															thumbnails[1167250] = clik.newPhoto({"id":1167250,"src":"the-beach-net-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1167250.html","width":130,"caption":"","height":87});
															thumbnails[2728024] = clik.newPhoto({"id":2728024,"src":"DSC_0339becca-&-scott-net_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2728024.html","width":130,"caption":"","height":195});
															thumbnails[4090975] = clik.newPhoto({"id":4090975,"src":"Paul-and-steph-may-2009-478_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_4090975.html","width":130,"caption":"","height":194});
															thumbnails[8580267] = clik.newPhoto({"id":8580267,"src":"emma--Angels-56web_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580267.html","width":130,"caption":"","height":195});
															thumbnails[8580270] = clik.newPhoto({"id":8580270,"src":"Neil--Mel-751web1_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580270.html","width":130,"caption":"","height":87});
															thumbnails[8580268] = clik.newPhoto({"id":8580268,"src":"image-3_thumb.jpg","galleries_id":71651,"server_id":38,"link":"photo_8580268.html","width":130,"caption":"","height":87});
															thumbnails[950720] = clik.newPhoto({"id":950720,"src":"Toronto cityscape B&WJPG_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950720.html","width":130,"caption":"","height":65});
															thumbnails[1167244] = clik.newPhoto({"id":1167244,"src":"bliss-net-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1167244.html","width":130,"caption":"","height":87});
															thumbnails[3167811] = clik.newPhoto({"id":3167811,"src":"emma-&-Gary-149net-file_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3167811.html","width":130,"caption":"","height":194});
															thumbnails[4091043] = clik.newPhoto({"id":4091043,"src":"Paul-and-steph-may-2009-798_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_4091043.html","width":130,"caption":"","height":130});
															thumbnails[1167195] = clik.newPhoto({"id":1167195,"src":"cairo-city-lights-net-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1167195.html","width":130,"caption":"","height":53});
															thumbnails[2728041] = clik.newPhoto({"id":2728041,"src":"lynn-&-tony-august-08-909ne_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_2728041.html","width":130,"caption":"","height":194});
															thumbnails[4091047] = clik.newPhoto({"id":4091047,"src":"Paul-and-steph-may-2009-980_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_4091047.html","width":130,"caption":"","height":194});
															thumbnails[950714] = clik.newPhoto({"id":950714,"src":"lapland january 2007 384 editJPG_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_950714.html","width":130,"caption":"","height":87});
															thumbnails[3167815] = clik.newPhoto({"id":3167815,"src":"emma-&-Gary-301net-file_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_3167815.html","width":130,"caption":"","height":87});
															thumbnails[953609] = clik.newPhoto({"id":953609,"src":"welsh-lake-web-save_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_953609.html","width":130,"caption":"","height":85});
															thumbnails[1167196] = clik.newPhoto({"id":1167196,"src":"camel-and-desert-net-save_thumb.jpg","galleries_id":129307,"server_id":1,"link":"photo_1167196.html","width":130,"caption":"","height":74});
															thumbnails[953610] = clik.newPhoto({"id":953610,"src":"dog-on-the-beach-web-save_thumb.jpg","galleries_id":135066,"server_id":1,"link":"photo_953610.html","width":130,"caption":"","height":64});
															thumbnails[1063776] = clik.newPhoto({"id":1063776,"src":"JPG0021_thumb.jpg","galleries_id":71651,"server_id":1,"link":"photo_1063776.html","width":130,"caption":"","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[71651] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Weddings And Civil Partnerships","link":"gallery_71651.html","maxRecords":0.0,"photoIDs":[2104799.0,2104800.0,2104802.0,2698787.0,2856397.0,2856424.0,2856432.0,2856439.0,3743252.0,3743257.0,3881564.0,3881570.0,3881604.0,3881620.0,3881625.0,3881639.0,3881642.0,5020186.0,5020226.0,5020227.0,5020229.0,5020232.0,5020292.0,5020353.0,5020356.0,5020409.0,5020424.0,5020427.0,5020432.0,5020436.0,5020563.0,5020569.0,5020572.0,5020656.0,5020680.0,5020686.0,5020692.0,5020760.0,5020771.0,5020781.0,5020784.0,5020786.0,5020788.0,5020795.0,5020801.0,5020807.0,5020814.0,5020831.0,5020841.0,5020850.0,6453818.0,6453840.0,6453842.0,6453845.0,6453868.0,6662800.0,6662801.0,6662802.0,6662803.0,8580216.0,6453762.0,2698794.0,5751827.0,5751832.0,5751891.0,5751903.0,5751960.0,5751965.0,5751976.0,5752005.0,2183574.0,5751885.0,7426918.0,2728020.0,7426922.0,4090841.0,2104795.0,2104819.0,7426924.0,948835.0,3167810.0,8580217.0,4090963.0,1063779.0,4090993.0,8580260.0,8580266.0,948689.0,8580265.0,2728024.0,4090975.0,8580267.0,8580270.0,8580268.0,3167811.0,4091043.0,2728041.0,4091047.0,3167815.0,1063776.0],"skipIndex":0,"section_code":"gallery","featured_images":"8580270,8580268,8580266,8580265,8580260,8580217,8580216,6662803,6662802,6662801,6662800,6453868,6453845,6453842,6453840,6453818,6453762,5752005,5751976,5751965,5751960,5751903,5751891,5751885,5751832,5751827,5020353,4091047,4091043,4090993,4090975,4090963,4090841,3881642,3881639,3881625,3881620,3881570,3881564,3743257,3743252,3167815,3167811,3167810,2856432,2856397,2728041,2728024,2728020,2698794,2698787,2183574,2104819,2104802,2104800,2104799,2104795,1063776","id":71651,"singleSection":false});				  						galleries[129309] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_129309.html","maxRecords":0.0,"photoIDs":[953662.0,1613500.0,1777981.0,1833895.0,1833900.0,2016212.0,2016214.0,5751893.0,3167816.0,3167817.0,3167827.0],"skipIndex":0,"section_code":"gallery","featured_images":"5751893,3167827,3167817,3167816,2016214,2016212,1833900,1833895,1777981,1613500,953662","id":129309,"singleSection":false});				  						galleries[135067] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Family Portraits","link":"gallery_135067.html","maxRecords":0.0,"photoIDs":[955822.0,978118.0,1777986.0,3743346.0,3743347.0,8580303.0,3167825.0],"skipIndex":0,"section_code":"gallery","featured_images":"3743347,3743346,3167825,1777986,978118,955822","id":135067,"singleSection":false});				  						galleries[133040] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Christenings","link":"gallery_133040.html","maxRecords":0.0,"photoIDs":[948703.0,948707.0,948729.0,1167002.0,1167016.0,1982811.0,1982813.0,1982814.0,2016217.0],"skipIndex":0,"section_code":"gallery","featured_images":"1982814,1982813,1982811,1167016,948729,948707,948703","id":133040,"singleSection":false});				  						galleries[71798] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Animals","link":"gallery_71798.html","maxRecords":0.0,"photoIDs":[1816714.0,948814.0,948824.0,8580306.0,948815.0,1167012.0,948818.0],"skipIndex":0,"section_code":"gallery","featured_images":"1816714,1167012,948824,948815,948814","id":71798,"singleSection":false});				  						galleries[88535] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sport","link":"gallery_88535.html","maxRecords":0.0,"photoIDs":[1238161.0,1238162.0,1238164.0,1304492.0,1304505.0],"skipIndex":0,"section_code":"gallery","featured_images":"1304505,1304492,1238162,1238161","id":88535,"singleSection":false});				  						galleries[129307] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Around the World","link":"gallery_129307.html","maxRecords":0.0,"photoIDs":[1833902.0,1833904.0,2016216.0,2517412.0,2517444.0,2517448.0,2517449.0,2856305.0,2856428.0,2856430.0,2856434.0,950711.0,950724.0,950712.0,953599.0,1167247.0,953603.0,950722.0,953607.0,1167197.0,950717.0,1167250.0,950720.0,1167244.0,1167195.0,950714.0,1167196.0],"skipIndex":0,"section_code":"gallery","featured_images":"2856434,2856430,2856428,2856305,2517444,2517412,2016216,1833904,1833902,1167250,1167247,1167244,1167197,1167196,1167195,953607,953603,953599,950722,950720,950717,950714,950712,950711","id":129307,"singleSection":false});				  						galleries[135066] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Around the UK","link":"gallery_135066.html","maxRecords":0.0,"photoIDs":[1777979.0,2528062.0,2528063.0,2528069.0,2528072.0,953609.0,953610.0],"skipIndex":0,"section_code":"gallery","featured_images":"2528072,2528069,2528063,2528062,1777979,953610","id":135066,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[211572] = '5751893';
imageSets[211575] = '6453818';
imageSets[1] = '8580216,6662803,6662800,6662799,6453842,2698787,6453762,5751891,5751827,2698794,5751960,5751885,8580303,4090841,8580217,8580266,8580260,8580265,948689,8580270,4090975,8580268,4091043,4091047';
imageSets[2] = '8580216,6662803,6662802,6662801,6662800,6662799,6453868,6453845,6453842,6453840,6453818,5020353,3881642,3881639,3881625,3881620,3881570,3881564,3743347,3743346,3743257,3743252,2856434,2856432,2856430,2856428,2856397,2856305,2698787,2528072,2528069,2528063,2528062,2517444,2517412,2104802,2104800,2104799,2016216,2016214,2016212,1982814,1982813,1982811,1833904,1833902,1833900,1833895,1816714,1777986,1777981,1777979,1613500,1304505,1304492,1238162,1238161,1167016,978118,955822,953662,948729,948707,948703,6453762,5751903,5751893,5751891,5751832,5751827,2698794,950711,948814,5751965,5751960,5751976,5752005,5751885,2183574,953599,950712,948824,3167816,2728020,1167247,4090841,3167827,3167817,2104819,2104795,953603,948815,8580217,3167810,953607,950722,4090963,8580266,8580260,4090993,3167825,1167197,1167012,8580265,8580270,4090975,2728024,1167250,950717,8580268,3167811,1167244,950720,4091043,4091047,2728041,1167195,3167815,950714,1167196,953610,1063776';
imageSets[3] = '6662803,6662802,6662801,6662800,6662799';
imageSets[211571] = '6662803,6662802,6662800,6453868,6453845,6453842,6453840,6453818,5020850,5020841,5020831,5020814,5020807,5020801,5020795,5020788,5020786,5020784,5020781,5020771,5020760,5020692,5020686,5020680,5020656,5020572,5020569,5020563,5020436,5020432,5020427,5020424,5020409,5020356,5020353,5020292,5020232,5020229,5020227,5020226,5020186,6453762,5751903,5751891,5751832,5751827,5751965,5751960,5751976,5752005,5751885,7426918,7426922,7426924,7426929';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/MFPhotography/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/MFPhotography/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$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 = 'MF Photography: ' + photoCaption;
			    }
        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.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
											temp += '<select class="paymentlink" name="payment_options_id" onchange="updateItemValues($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			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 += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="mandysnapper@hotmail.co.uk">';
					temp += '<input type="hidden" name="currency_code" value="GBP">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="mandysnapper@hotmail.co.uk">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						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;
	}
}

			

