window.thumbnails = {};
															thumbnails[14367] = clik.newPhoto({"id":14367,"src":"meg 1_thumb.jpg","galleries_id":87016,"server_id":1,"link":"photo_14367.html","width":130,"caption":"Megan","height":140});
															thumbnails[129060] = clik.newPhoto({"id":129060,"src":"jim_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_129060.html","width":130,"caption":"Tracey< Jim & Family","height":98});
															thumbnails[391752] = clik.newPhoto({"id":391752,"src":"1213_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_391752.html","width":130,"caption":"In Church","height":97});
															thumbnails[391774] = clik.newPhoto({"id":391774,"src":"181_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_391774.html","width":130,"caption":"Montage","height":90});
															thumbnails[999509] = clik.newPhoto({"id":999509,"src":"1_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_999509.html","width":130,"caption":"Jessica & Manish","height":126});
															thumbnails[999635] = clik.newPhoto({"id":999635,"src":"montage 1 small_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_999635.html","width":130,"caption":"Montage","height":104});
															thumbnails[999640] = clik.newPhoto({"id":999640,"src":"7small_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_999640.html","width":130,"caption":"Priya and Friends","height":98});
															thumbnails[999692] = clik.newPhoto({"id":999692,"src":"17csmall_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_999692.html","width":130,"caption":"Bhaven & Bella","height":94});
															thumbnails[999784] = clik.newPhoto({"id":999784,"src":"smalllllll_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_999784.html","width":130,"caption":"Bridesmaids & Bride & Groom","height":177});
															thumbnails[999810] = clik.newPhoto({"id":999810,"src":"keery copy_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_999810.html","width":130,"caption":"Kerry","height":89});
															thumbnails[999834] = clik.newPhoto({"id":999834,"src":"76asmall_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_999834.html","width":130,"caption":"Hands","height":125});
															thumbnails[999840] = clik.newPhoto({"id":999840,"src":"small_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_999840.html","width":130,"caption":"Duo Montage","height":124});
															thumbnails[999845] = clik.newPhoto({"id":999845,"src":"small1_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_999845.html","width":130,"caption":"Helen","height":163});
															thumbnails[999954] = clik.newPhoto({"id":999954,"src":"smal61_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_999954.html","width":130,"caption":"Bhavna, Aimee & Sonia","height":223});
															thumbnails[1000053] = clik.newPhoto({"id":1000053,"src":"small2_thumb.jpg","galleries_id":31573,"server_id":1,"link":"photo_1000053.html","width":130,"caption":"Sweets!","height":163});
															thumbnails[1053380] = clik.newPhoto({"id":1053380,"src":"ring1_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1053380.html","width":130,"caption":"Champagne","height":128});
															thumbnails[1213211] = clik.newPhoto({"id":1213211,"src":"small4_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1213211.html","width":130,"caption":"Harshad & Carmen","height":86});
															thumbnails[1213508] = clik.newPhoto({"id":1213508,"src":"kathryn copy_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_1213508.html","width":130,"caption":"Kathryn","height":173});
															thumbnails[1531687] = clik.newPhoto({"id":1531687,"src":"21_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1531687.html","width":130,"caption":"Pauline on her wedding","height":87});
															thumbnails[1531708] = clik.newPhoto({"id":1531708,"src":"31_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1531708.html","width":130,"caption":"Ian & Pauline","height":66});
															thumbnails[1531711] = clik.newPhoto({"id":1531711,"src":"42_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1531711.html","width":130,"caption":"Bridesmaids","height":53});
															thumbnails[1531718] = clik.newPhoto({"id":1531718,"src":"6_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1531718.html","width":130,"caption":"Shaista","height":154});
															thumbnails[2113725] = clik.newPhoto({"id":2113725,"src":"3_1_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2113725.html","width":130,"caption":"Bride & Groom","height":182});
															thumbnails[2463339] = clik.newPhoto({"id":2463339,"src":"41_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2463339.html","width":130,"caption":"Bride","height":222});
															thumbnails[2463340] = clik.newPhoto({"id":2463340,"src":"5_1_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_2463340.html","width":130,"caption":"Graduation","height":195});
															thumbnails[2509802] = clik.newPhoto({"id":2509802,"src":"donnaa_1_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_2509802.html","width":130,"caption":"Dona","height":148});
															thumbnails[2509806] = clik.newPhoto({"id":2509806,"src":"1_3_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2509806.html","width":130,"caption":"","height":195});
															thumbnails[2509821] = clik.newPhoto({"id":2509821,"src":"kel_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_2509821.html","width":130,"caption":"","height":171});
															thumbnails[2711007] = clik.newPhoto({"id":2711007,"src":"hina_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2711007.html","width":130,"caption":"Henna","height":87});
															thumbnails[3396076] = clik.newPhoto({"id":3396076,"src":"21_3_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_3396076.html","width":130,"caption":"Bride","height":182});
															thumbnails[3396127] = clik.newPhoto({"id":3396127,"src":"3_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396127.html","width":130,"caption":"Catwalk Model - Fusion","height":92});
															thumbnails[3396145] = clik.newPhoto({"id":3396145,"src":"42_1_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396145.html","width":130,"caption":"Dancers","height":119});
															thumbnails[3396146] = clik.newPhoto({"id":3396146,"src":"465_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396146.html","width":130,"caption":"Model","height":130});
															thumbnails[3396176] = clik.newPhoto({"id":3396176,"src":"5_2_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396176.html","width":130,"caption":"Catwalk","height":79});
															thumbnails[3396192] = clik.newPhoto({"id":3396192,"src":"61_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396192.html","width":130,"caption":"Catwalk","height":235});
															thumbnails[3396228] = clik.newPhoto({"id":3396228,"src":"7_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396228.html","width":130,"caption":"Fusion","height":80});
															thumbnails[3396293] = clik.newPhoto({"id":3396293,"src":"8_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396293.html","width":130,"caption":"Fusion","height":320});
															thumbnails[3396575] = clik.newPhoto({"id":3396575,"src":"9_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396575.html","width":130,"caption":"Dholi's","height":103});
															thumbnails[3396594] = clik.newPhoto({"id":3396594,"src":"10_thumb.jpg","galleries_id":207349,"server_id":1,"link":"photo_3396594.html","width":130,"caption":"D6 Dholi's","height":94});
															thumbnails[3452289] = clik.newPhoto({"id":3452289,"src":"window farm embosh copy_edited-1_thumb.jpg","galleries_id":211057,"server_id":1,"link":"photo_3452289.html","width":130,"caption":"Storybook Album","height":136});
															thumbnails[3452300] = clik.newPhoto({"id":3452300,"src":"album 2a_thumb.jpg","galleries_id":211057,"server_id":1,"link":"photo_3452300.html","width":130,"caption":"","height":58});
															thumbnails[3452303] = clik.newPhoto({"id":3452303,"src":"perfect squar cut 11_thumb.jpg","galleries_id":211057,"server_id":1,"link":"photo_3452303.html","width":130,"caption":"","height":106});
															thumbnails[3452305] = clik.newPhoto({"id":3452305,"src":"proper page level 22_thumb.jpg","galleries_id":211057,"server_id":1,"link":"photo_3452305.html","width":130,"caption":"","height":85});
															thumbnails[3452314] = clik.newPhoto({"id":3452314,"src":"solid back bind 33_thumb.jpg","galleries_id":211057,"server_id":1,"link":"photo_3452314.html","width":130,"caption":"","height":96});
															thumbnails[3899786] = clik.newPhoto({"id":3899786,"src":"3a_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_3899786.html","width":130,"caption":"Invitation and Rings","height":81});
															thumbnails[5160312] = clik.newPhoto({"id":5160312,"src":"am2_small_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_5160312.html","width":130,"caption":"","height":172});
															thumbnails[5192773] = clik.newPhoto({"id":5192773,"src":"priya_small_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_5192773.html","width":130,"caption":"","height":194});
															thumbnails[5195696] = clik.newPhoto({"id":5195696,"src":"watford_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_5195696.html","width":130,"caption":"","height":82});
															thumbnails[5196767] = clik.newPhoto({"id":5196767,"src":"dee_1small_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_5196767.html","width":130,"caption":"","height":105});
															thumbnails[5199686] = clik.newPhoto({"id":5199686,"src":"hina203_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_5199686.html","width":130,"caption":"","height":87});
															thumbnails[6165997] = clik.newPhoto({"id":6165997,"src":"Bobby_12_x_16_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_6165997.html","width":130,"caption":"","height":173});
															thumbnails[6644748] = clik.newPhoto({"id":6644748,"src":"DSC_0560s1_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_6644748.html","width":130,"caption":"","height":94});
															thumbnails[7114669] = clik.newPhoto({"id":7114669,"src":"DSC_2317_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_7114669.html","width":130,"caption":"","height":144});
															thumbnails[7114865] = clik.newPhoto({"id":7114865,"src":"2246aaaa_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_7114865.html","width":130,"caption":"","height":130});
															thumbnails[8197755] = clik.newPhoto({"id":8197755,"src":"2_614DA190-1EC9-D45B-1C45637843C0A30A_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197755.html","width":130,"caption":"Bride & Groom","height":194});
															thumbnails[8197758] = clik.newPhoto({"id":8197758,"src":"5_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197758.html","width":130,"caption":"Groomsmen","height":127});
															thumbnails[8197762] = clik.newPhoto({"id":8197762,"src":"ZF_39_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197762.html","width":130,"caption":"Candle","height":231});
															thumbnails[8197764] = clik.newPhoto({"id":8197764,"src":"ZF_28_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197764.html","width":130,"caption":"Brothers","height":91});
															thumbnails[8197776] = clik.newPhoto({"id":8197776,"src":"6_61545478-1EC9-D45B-1C84604AAE04375A_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197776.html","width":130,"caption":"Bridesmaids","height":83});
															thumbnails[8197780] = clik.newPhoto({"id":8197780,"src":"011_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197780.html","width":130,"caption":"Zohra","height":86});
															thumbnails[8197795] = clik.newPhoto({"id":8197795,"src":"AN_1_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197795.html","width":130,"caption":"Naila and Asif","height":90});
															thumbnails[8197803] = clik.newPhoto({"id":8197803,"src":"AN_9_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197803.html","width":130,"caption":"Bride getting ready","height":89});
															thumbnails[8198107] = clik.newPhoto({"id":8198107,"src":"AN_11_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198107.html","width":130,"caption":"Naila","height":86});
															thumbnails[8198112] = clik.newPhoto({"id":8198112,"src":"AN_20_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198112.html","width":130,"caption":"Groom","height":100});
															thumbnails[8198118] = clik.newPhoto({"id":8198118,"src":"AN_55_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198118.html","width":130,"caption":"","height":62});
															thumbnails[8198121] = clik.newPhoto({"id":8198121,"src":"AN_56_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198121.html","width":130,"caption":"Naila & Asif","height":196});
															thumbnails[8198127] = clik.newPhoto({"id":8198127,"src":"AWP_9414_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198127.html","width":130,"caption":"","height":147});
															thumbnails[8198133] = clik.newPhoto({"id":8198133,"src":"B__V_Photo_21_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_8198133.html","width":130,"caption":"Graduation","height":196});
															thumbnails[8198134] = clik.newPhoto({"id":8198134,"src":"Capture1_thumb.JPG","galleries_id":1339,"server_id":1,"link":"photo_8198134.html","width":130,"caption":"Bride","height":83});
															thumbnails[8198135] = clik.newPhoto({"id":8198135,"src":"DSC_0037_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198135.html","width":130,"caption":"","height":189});
															thumbnails[8198138] = clik.newPhoto({"id":8198138,"src":"DSC_1592_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198138.html","width":130,"caption":"","height":248});
															thumbnails[8198139] = clik.newPhoto({"id":8198139,"src":"DSC_3056_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198139.html","width":130,"caption":"","height":196});
															thumbnails[8198142] = clik.newPhoto({"id":8198142,"src":"DSC_3070_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198142.html","width":130,"caption":"","height":94});
															thumbnails[8198143] = clik.newPhoto({"id":8198143,"src":"gh_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198143.html","width":130,"caption":"","height":177});
															thumbnails[8198401] = clik.newPhoto({"id":8198401,"src":"albums_thumb.jpg","galleries_id":211057,"server_id":1,"link":"photo_8198401.html","width":160,"caption":"","height":134});
															thumbnails[8198506] = clik.newPhoto({"id":8198506,"src":"dog_thumb.jpg","galleries_id":2443,"server_id":1,"link":"photo_8198506.html","width":160,"caption":"","height":195});
															thumbnails[8198537] = clik.newPhoto({"id":8198537,"src":"chetan_61BF05CD-1EC9-D45B-1C273C77EB1F1BDF_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8198537.html","width":160,"caption":"","height":94});
															thumbnails[8199004] = clik.newPhoto({"id":8199004,"src":"caitlin_8_thumb.jpg","galleries_id":87016,"server_id":1,"link":"photo_8199004.html","width":160,"caption":"","height":210});
															thumbnails[8199083] = clik.newPhoto({"id":8199083,"src":"saf_thumb.jpg","galleries_id":87016,"server_id":1,"link":"photo_8199083.html","width":160,"caption":"","height":240});
															thumbnails[8199084] = clik.newPhoto({"id":8199084,"src":"024_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8199084.html","width":160,"caption":"","height":81});
															thumbnails[8199341] = clik.newPhoto({"id":8199341,"src":"5_4_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8199341.html","width":160,"caption":"","height":112});
															thumbnails[8199365] = clik.newPhoto({"id":8199365,"src":"ryu_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8199365.html","width":160,"caption":"","height":241});
															thumbnails[8199533] = clik.newPhoto({"id":8199533,"src":"Capture_thumb.JPG","galleries_id":2443,"server_id":1,"link":"photo_8199533.html","width":160,"caption":"","height":89});
															thumbnails[8199535] = clik.newPhoto({"id":8199535,"src":"Capturehhh_thumb.JPG","galleries_id":2443,"server_id":1,"link":"photo_8199535.html","width":160,"caption":"","height":297});
															thumbnails[8204012] = clik.newPhoto({"id":8204012,"src":"143_500x500_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8204012.html","width":160,"caption":"","height":160});
															thumbnails[8204018] = clik.newPhoto({"id":8204018,"src":"DSC_0012_375x500_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8204018.html","width":160,"caption":"","height":213});
															thumbnails[8369528] = clik.newPhoto({"id":8369528,"src":"webbbb_thumb.JPG","galleries_id":1339,"server_id":1,"link":"photo_8369528.html","width":160,"caption":"","height":121});
															thumbnails[8523453] = clik.newPhoto({"id":8523453,"src":"jjjj_thumb.JPG","galleries_id":1339,"server_id":1,"link":"photo_8523453.html","width":160,"caption":"","height":235});
															thumbnails[8523486] = clik.newPhoto({"id":8523486,"src":"hhhh_thumb.JPG","galleries_id":1339,"server_id":1,"link":"photo_8523486.html","width":160,"caption":"","height":123});
															thumbnails[8523490] = clik.newPhoto({"id":8523490,"src":"hhhm_thumb.JPG","galleries_id":1339,"server_id":1,"link":"photo_8523490.html","width":160,"caption":"","height":80});
															thumbnails[8960779] = clik.newPhoto({"id":8960779,"src":"1115_thumb_316E10F4-1EC9-D45B-1C711E474A5F8903.JPG","galleries_id":1339,"server_id":1,"link":"photo_8960779.html","width":160,"caption":"","height":108});
															thumbnails[8960785] = clik.newPhoto({"id":8960785,"src":"56565_thumb.JPG","galleries_id":1339,"server_id":1,"link":"photo_8960785.html","width":160,"caption":"","height":63});
															thumbnails[1531721] = clik.newPhoto({"id":1531721,"src":"71_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_1531721.html","width":130,"caption":"Rings","height":112});
															thumbnails[3396070] = clik.newPhoto({"id":3396070,"src":"1_4_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_3396070.html","width":130,"caption":"","height":86});
															thumbnails[8197748] = clik.newPhoto({"id":8197748,"src":"0_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197748.html","width":130,"caption":"Bride","height":82});
															thumbnails[8197784] = clik.newPhoto({"id":8197784,"src":"5656_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197784.html","width":130,"caption":"Imran & Hafsa","height":192});
															thumbnails[2113714] = clik.newPhoto({"id":2113714,"src":"2_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2113714.html","width":130,"caption":"Dad & Bride","height":181});
															thumbnails[2509808] = clik.newPhoto({"id":2509808,"src":"122_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2509808.html","width":130,"caption":"","height":182});
															thumbnails[2509789] = clik.newPhoto({"id":2509789,"src":"new-deb-small_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2509789.html","width":130,"caption":"Bride","height":198});
															thumbnails[2509791] = clik.newPhoto({"id":2509791,"src":"drawing_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2509791.html","width":130,"caption":"Bride","height":144});
															thumbnails[2113704] = clik.newPhoto({"id":2113704,"src":"1_1_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_2113704.html","width":130,"caption":"Bridesmaids","height":153});
															thumbnails[8197752] = clik.newPhoto({"id":8197752,"src":"1_614CD6ED-1EC9-D45B-1C3DD10E2F53E2F6_thumb.jpg","galleries_id":1339,"server_id":1,"link":"photo_8197752.html","width":130,"caption":"Danny and Sarah","height":92});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[2443] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" Portrait","link":"gallery_2443.html","maxRecords":0.0,"photoIDs":[129060.0,999509.0,999692.0,999810.0,999840.0,999954.0,1213508.0,2463340.0,2509802.0,2509821.0,7114669.0,7114865.0,8198133.0,8198506.0,8199533.0,8199535.0],"skipIndex":0,"section_code":"gallery","featured_images":7114865.0,"id":2443,"singleSection":false});				  						galleries[87016] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Children","link":"gallery_87016.html","maxRecords":0.0,"photoIDs":[14367.0,8199004.0,8199083.0],"skipIndex":0,"section_code":"gallery","featured_images":"8199083,8199004,14367","id":87016,"singleSection":false});				  						galleries[207349] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"gallery_207349.html","maxRecords":0.0,"photoIDs":[3396127.0,3396145.0,3396146.0,3396176.0,3396192.0,3396228.0,3396293.0,3396575.0,3396594.0],"skipIndex":0,"section_code":"gallery","featured_images":"3396594,3396575,3396293,3396228,3396192,3396176,3396146,3396145,3396127","id":207349,"singleSection":false});				  						galleries[31573] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Still Photos","link":"gallery_31573.html","maxRecords":0.0,"photoIDs":[1000053.0],"skipIndex":0,"section_code":"gallery","featured_images":1000053.0,"id":31573,"singleSection":false});				  						galleries[1339] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Wedding ","link":"gallery_1339.html","maxRecords":0.0,"photoIDs":[391752.0,391774.0,999635.0,999640.0,999784.0,999834.0,999845.0,1053380.0,1213211.0,1531687.0,1531708.0,1531711.0,1531718.0,2113725.0,2463339.0,2509806.0,2711007.0,3396076.0,3899786.0,5160312.0,5192773.0,5195696.0,5196767.0,5199686.0,6165997.0,6644748.0,8197755.0,8197758.0,8197762.0,8197764.0,8197776.0,8197780.0,8197795.0,8197803.0,8198107.0,8198112.0,8198118.0,8198121.0,8198127.0,8198134.0,8198135.0,8198138.0,8198139.0,8198142.0,8198143.0,8198537.0,8199084.0,8199341.0,8199365.0,8204012.0,8204018.0,8369528.0,8523453.0,8523486.0,8523490.0,8960779.0,8960785.0,1531721.0,3396070.0,8197748.0,8197784.0,2113714.0,2509808.0,2509789.0,2509791.0,2113704.0,8197752.0],"skipIndex":0,"section_code":"gallery","featured_images":"8523486,8523453,8198138,8197748,6644748,6165997,5199686,5196767,5192773,3396070","id":1339,"singleSection":false});				  						galleries[211057] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Digital Album","link":"gallery_211057.html","maxRecords":0.0,"photoIDs":[3452289.0,3452300.0,3452303.0,3452305.0,3452314.0,8198401.0],"skipIndex":0,"section_code":"gallery","featured_images":8198401.0,"id":211057,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8960785,8523490,8523486,8369528,8204018,8204012,8199004,8198138,8198121,8198107,8197795,8197780,6644748,5199686,3899786,2711007,1531687,999509,8197748,3396070,1531721,8197752';
imageSets[2] = '8523486,8523453,8198401,8198138,7114865,6644748,6165997,5199686,5196767,5192773,8197748,3396070';
imageSets[3] = '6644748,5199686,5196767,5195696,5192773';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/VPARMAR/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/VPARMAR/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 = 'www.bvphotography.co.uk: ' + 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>';
	}
				
				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;
	}
}

			

