window.thumbnails = {};
															thumbnails[6059772] = clik.newPhoto({"id":6059772,"src":"Spot_run_still_thumb.gif","galleries_id":"","server_id":32,"link":"#","width":38,"caption":"","height":34});
															thumbnails[6255761] = clik.newPhoto({"id":6255761,"src":"sizzle3_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7912391] = clik.newPhoto({"id":7912391,"src":"jess_show_results_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[7912441] = clik.newPhoto({"id":7912441,"src":"riley_show_results_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8107198] = clik.newPhoto({"id":8107198,"src":"rileys_cc_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[8107200] = clik.newPhoto({"id":8107200,"src":"rileys_cc_1_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Lisa and Riley at the East of England Championship Show where they won their first Challenge Certificate.","height":87});
															thumbnails[8230245] = clik.newPhoto({"id":8230245,"src":"Merlin_pic_for_web_site_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":87});
															thumbnails[4340238] = clik.newPhoto({"id":4340238,"src":"groominglores_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"Grooming Service","height":87});
															thumbnails[4804089] = clik.newPhoto({"id":4804089,"src":"George_1_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4804089.html","width":130,"caption":"George at the SCGB Fun Day","height":87});
															thumbnails[4804096] = clik.newPhoto({"id":4804096,"src":"George_at_Crondal_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4804096.html","width":130,"caption":"SCGB Fun Day","height":87});
															thumbnails[5272660] = clik.newPhoto({"id":5272660,"src":"DSCF1136_edited-1lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_5272660.html","width":130,"caption":"","height":87});
															thumbnails[5272662] = clik.newPhoto({"id":5272662,"src":"DSCF1153_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_5272662.html","width":130,"caption":"LKA Champ Show 2009","height":87});
															thumbnails[6411325] = clik.newPhoto({"id":6411325,"src":"jenny_and_pups_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6411325.html","width":130,"caption":"","height":87});
															thumbnails[6427649] = clik.newPhoto({"id":6427649,"src":"pups_in_collars_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6427649.html","width":130,"caption":"","height":87});
															thumbnails[6475642] = clik.newPhoto({"id":6475642,"src":"pups_at_10_days_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6475642.html","width":130,"caption":"","height":87});
															thumbnails[6475645] = clik.newPhoto({"id":6475645,"src":"jordan_and_pup_at_10_days_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6475645.html","width":130,"caption":"","height":87});
															thumbnails[6475652] = clik.newPhoto({"id":6475652,"src":"pup_at_10_days_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6475652.html","width":130,"caption":"","height":87});
															thumbnails[6568030] = clik.newPhoto({"id":6568030,"src":"Pup_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6568030.html","width":130,"caption":"","height":87});
															thumbnails[6568104] = clik.newPhoto({"id":6568104,"src":"pup1_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6568104.html","width":130,"caption":"","height":87});
															thumbnails[6628485] = clik.newPhoto({"id":6628485,"src":"pup_5_weeks_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6628485.html","width":130,"caption":"","height":87});
															thumbnails[6628487] = clik.newPhoto({"id":6628487,"src":"pup_5_weeks_1_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6628487.html","width":130,"caption":"","height":87});
															thumbnails[6675570] = clik.newPhoto({"id":6675570,"src":"Puppies_099_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6675570.html","width":130,"caption":"","height":87});
															thumbnails[6675577] = clik.newPhoto({"id":6675577,"src":"Puppies_083_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6675577.html","width":130,"caption":"","height":87});
															thumbnails[6675588] = clik.newPhoto({"id":6675588,"src":"Puppies_036_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6675588.html","width":130,"caption":"","height":87});
															thumbnails[6675600] = clik.newPhoto({"id":6675600,"src":"Jenny_and_George_030_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_6675600.html","width":130,"caption":"","height":87});
															thumbnails[6675608] = clik.newPhoto({"id":6675608,"src":"Jenny_and_George_024_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_6675608.html","width":130,"caption":"","height":87});
															thumbnails[6675615] = clik.newPhoto({"id":6675615,"src":"Puppies_078_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6675615.html","width":130,"caption":"","height":87});
															thumbnails[6876562] = clik.newPhoto({"id":6876562,"src":"Jess_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_6876562.html","width":130,"caption":"","height":87});
															thumbnails[6876747] = clik.newPhoto({"id":6876747,"src":"jenny_and_pups_web_pic_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_6876747.html","width":130,"caption":"","height":87});
															thumbnails[6876773] = clik.newPhoto({"id":6876773,"src":"jess_1_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_6876773.html","width":130,"caption":"","height":87});
															thumbnails[7059392] = clik.newPhoto({"id":7059392,"src":"jess_5102DD27-1E4F-37DC-71A0D24484BB419A_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_7059392.html","width":130,"caption":"","height":87});
															thumbnails[7116065] = clik.newPhoto({"id":7116065,"src":"jess_1_89E8C9E2-1EC9-D45B-1C3F97E58F8E2511_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_7116065.html","width":130,"caption":"","height":87});
															thumbnails[7116077] = clik.newPhoto({"id":7116077,"src":"Lily_and_Jess_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_7116077.html","width":130,"caption":"","height":87});
															thumbnails[7203014] = clik.newPhoto({"id":7203014,"src":"Chloe_1_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7203014.html","width":130,"caption":"","height":87});
															thumbnails[7203035] = clik.newPhoto({"id":7203035,"src":"Chloe_2_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7203035.html","width":130,"caption":"","height":87});
															thumbnails[7203051] = clik.newPhoto({"id":7203051,"src":"chloe_3_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7203051.html","width":130,"caption":"","height":87});
															thumbnails[7211307] = clik.newPhoto({"id":7211307,"src":"012_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7211307.html","width":130,"caption":"","height":87});
															thumbnails[7211350] = clik.newPhoto({"id":7211350,"src":"019_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_7211350.html","width":130,"caption":"","height":87});
															thumbnails[7211356] = clik.newPhoto({"id":7211356,"src":"021_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_7211356.html","width":130,"caption":"George in the Snow","height":87});
															thumbnails[7211413] = clik.newPhoto({"id":7211413,"src":"0161_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_7211413.html","width":130,"caption":"","height":87});
															thumbnails[7244990] = clik.newPhoto({"id":7244990,"src":"005_thumb.JPG","galleries_id":384733,"server_id":32,"link":"photo_7244990.html","width":130,"caption":"","height":98});
															thumbnails[7245006] = clik.newPhoto({"id":7245006,"src":"Jess_at_23_weeks_thumb.jpg","galleries_id":369835,"server_id":32,"link":"photo_7245006.html","width":130,"caption":"Jess at 23 weeks","height":98});
															thumbnails[7902087] = clik.newPhoto({"id":7902087,"src":"chloe4_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7902087.html","width":130,"caption":"","height":194});
															thumbnails[7902157] = clik.newPhoto({"id":7902157,"src":"chloe1_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7902157.html","width":130,"caption":"","height":183});
															thumbnails[7902159] = clik.newPhoto({"id":7902159,"src":"chloe_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_7902159.html","width":130,"caption":"","height":98});
															thumbnails[7912303] = clik.newPhoto({"id":7912303,"src":"George_show_results_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_7912303.html","width":130,"caption":"Schnauzer Club of Great Britain Championship Show 2009","height":87});
															thumbnails[7912497] = clik.newPhoto({"id":7912497,"src":"chloe_show_results_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_7912497.html","width":130,"caption":"Guildford and District Canine Society Open Show 2011","height":87});
															thumbnails[8913495] = clik.newPhoto({"id":8913495,"src":"DSC_8618_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_8913495.html","width":130,"caption":"","height":195});
															thumbnails[8914352] = clik.newPhoto({"id":8914352,"src":"chloe_263FE5EC-1E4F-37DC-7157B3C40F3694CD_thumb.jpg","galleries_id":384733,"server_id":32,"link":"photo_8914352.html","width":130,"caption":"","height":87});
															thumbnails[8914501] = clik.newPhoto({"id":8914501,"src":"george_2804581E-1E4F-37DC-71D2A165894F1F56_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_8914501.html","width":130,"caption":"","height":87});
															thumbnails[9062614] = clik.newPhoto({"id":9062614,"src":"Cooper_thumb.jpg","galleries_id":468942,"server_id":32,"link":"photo_9062614.html","width":130,"caption":"","height":87});
															thumbnails[9062620] = clik.newPhoto({"id":9062620,"src":"Cooper1_thumb.jpg","galleries_id":468942,"server_id":32,"link":"photo_9062620.html","width":130,"caption":"","height":87});
															thumbnails[3266923] = clik.newPhoto({"id":3266923,"src":"P6200050_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_3266923.html","width":130,"caption":"","height":87});
															thumbnails[2820407] = clik.newPhoto({"id":2820407,"src":"P5180005lores1_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_2820407.html","width":130,"caption":"","height":87});
															thumbnails[2820396] = clik.newPhoto({"id":2820396,"src":"DSC_1796lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_2820396.html","width":130,"caption":"","height":87});
															thumbnails[3249585] = clik.newPhoto({"id":3249585,"src":"P9230072lores1_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_3249585.html","width":130,"caption":"","height":87});
															thumbnails[2820403] = clik.newPhoto({"id":2820403,"src":"Jordan & Georgelores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_2820403.html","width":130,"caption":"","height":87});
															thumbnails[3702505] = clik.newPhoto({"id":3702505,"src":"DSCF0261lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_3702505.html","width":130,"caption":"","height":87});
															thumbnails[2819798] = clik.newPhoto({"id":2819798,"src":"Jennylores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_2819798.html","width":130,"caption":"","height":87});
															thumbnails[2820933] = clik.newPhoto({"id":2820933,"src":"P1130024lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_2820933.html","width":130,"caption":"","height":87});
															thumbnails[2819859] = clik.newPhoto({"id":2819859,"src":"P5070077lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_2819859.html","width":130,"caption":"","height":87});
															thumbnails[2819863] = clik.newPhoto({"id":2819863,"src":"P5070085lores1_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_2819863.html","width":130,"caption":"","height":87});
															thumbnails[2819784] = clik.newPhoto({"id":2819784,"src":"DSC_1772lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_2819784.html","width":130,"caption":"","height":87});
															thumbnails[3249612] = clik.newPhoto({"id":3249612,"src":"P9230066lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_3249612.html","width":130,"caption":"","height":87});
															thumbnails[2819791] = clik.newPhoto({"id":2819791,"src":"DSC_1837lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_2819791.html","width":130,"caption":"","height":87});
															thumbnails[4619085] = clik.newPhoto({"id":4619085,"src":"DSCF0922lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_4619085.html","width":130,"caption":"","height":87});
															thumbnails[4619081] = clik.newPhoto({"id":4619081,"src":"DSCF0912lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_4619081.html","width":130,"caption":"","height":87});
															thumbnails[3702513] = clik.newPhoto({"id":3702513,"src":"DSCF0360lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_3702513.html","width":130,"caption":"At the local park","height":87});
															thumbnails[3702508] = clik.newPhoto({"id":3702508,"src":"DSCF0278lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_3702508.html","width":130,"caption":"At the local park","height":87});
															thumbnails[3720738] = clik.newPhoto({"id":3720738,"src":"DSCF0372lores_thumb.jpg","galleries_id":175690,"server_id":32,"link":"photo_3720738.html","width":130,"caption":"At the local park","height":87});
															thumbnails[4619079] = clik.newPhoto({"id":4619079,"src":"DSCF0878lores_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_4619079.html","width":130,"caption":"Horley & District Open Show 2009","height":87});
															thumbnails[4562687] = clik.newPhoto({"id":4562687,"src":"Bournemouthlores_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_4562687.html","width":130,"caption":"Bournemouth Champ Show  2009.","height":87});
															thumbnails[4430147] = clik.newPhoto({"id":4430147,"src":"DSCF0819_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_4430147.html","width":130,"caption":"The Schnauzer Club of Great Britain Open Show 2009","height":87});
															thumbnails[4377658] = clik.newPhoto({"id":4377658,"src":"DSCF0758lores_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_4377658.html","width":130,"caption":"Kingston Open Show 2009","height":87});
															thumbnails[4140507] = clik.newPhoto({"id":4140507,"src":"DSCF0661lores_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_4140507.html","width":130,"caption":"Southampton Open Show 2009","height":87});
															thumbnails[3681620] = clik.newPhoto({"id":3681620,"src":"DSCF0250lores_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_3681620.html","width":130,"caption":"Crystal Palace Open Show 2009","height":87});
															thumbnails[2821146] = clik.newPhoto({"id":2821146,"src":"DSC_1674lores11_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2821146.html","width":130,"caption":"","height":87});
															thumbnails[5955369] = clik.newPhoto({"id":5955369,"src":"George_and_Jenny_3_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955369.html","width":130,"caption":"","height":87});
															thumbnails[2819781] = clik.newPhoto({"id":2819781,"src":"DSC_1701lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2819781.html","width":130,"caption":"","height":87});
															thumbnails[5955329] = clik.newPhoto({"id":5955329,"src":"Jordan_George__Jenny_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955329.html","width":130,"caption":"","height":87});
															thumbnails[2820804] = clik.newPhoto({"id":2820804,"src":"DSC_1806lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2820804.html","width":130,"caption":"","height":87});
															thumbnails[5955311] = clik.newPhoto({"id":5955311,"src":"Jenny_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955311.html","width":130,"caption":"","height":87});
															thumbnails[2819786] = clik.newPhoto({"id":2819786,"src":"DSC_1773lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2819786.html","width":130,"caption":"","height":87});
															thumbnails[5955304] = clik.newPhoto({"id":5955304,"src":"George_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955304.html","width":130,"caption":"","height":87});
															thumbnails[2820798] = clik.newPhoto({"id":2820798,"src":"DSC_1697lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2820798.html","width":130,"caption":"","height":87});
															thumbnails[5955303] = clik.newPhoto({"id":5955303,"src":"George_Jenny_Mary__Ella_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955303.html","width":130,"caption":"","height":87});
															thumbnails[2820357] = clik.newPhoto({"id":2820357,"src":"DSC_1735lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2820357.html","width":130,"caption":"","height":87});
															thumbnails[5955296] = clik.newPhoto({"id":5955296,"src":"George_and_Jenny_2_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955296.html","width":130,"caption":"","height":87});
															thumbnails[2819788] = clik.newPhoto({"id":2819788,"src":"DSC_1779lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2819788.html","width":130,"caption":"","height":87});
															thumbnails[5955280] = clik.newPhoto({"id":5955280,"src":"George_and_Jenny_1_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955280.html","width":130,"caption":"","height":87});
															thumbnails[2820827] = clik.newPhoto({"id":2820827,"src":"DSC_1924lores_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_2820827.html","width":130,"caption":"","height":87});
															thumbnails[5955271] = clik.newPhoto({"id":5955271,"src":"George_and_Jenny_thumb.jpg","galleries_id":175702,"server_id":32,"link":"photo_5955271.html","width":130,"caption":"","height":87});
															thumbnails[2821291] = clik.newPhoto({"id":2821291,"src":"DSC_1802lores1_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_2821291.html","width":130,"caption":"","height":87});
															thumbnails[4220356] = clik.newPhoto({"id":4220356,"src":"aframe1_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4220356.html","width":130,"caption":"Agility Training at Plumpton College","height":87});
															thumbnails[4220354] = clik.newPhoto({"id":4220354,"src":"aframe_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4220354.html","width":130,"caption":"Agility Training at Plumpton College","height":87});
															thumbnails[4013730] = clik.newPhoto({"id":4013730,"src":"DSCF0448lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4013730.html","width":130,"caption":"Agility Training at Plumpton College","height":87});
															thumbnails[4013727] = clik.newPhoto({"id":4013727,"src":"DSCF0447lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4013727.html","width":130,"caption":"Agility Training at Plumpton College","height":87});
															thumbnails[4013723] = clik.newPhoto({"id":4013723,"src":"DSCF0445lores_thumb.jpg","galleries_id":175162,"server_id":32,"link":"photo_4013723.html","width":130,"caption":"Agility Training at Plumpton College","height":87});
															thumbnails[5673054] = clik.newPhoto({"id":5673054,"src":"Jenny_at_Crufts_2010_f_thumb.jpg","galleries_id":176571,"server_id":32,"link":"photo_5673054.html","width":130,"caption":"Crufts 2010","height":87});
															thumbnails[6411240] = clik.newPhoto({"id":6411240,"src":"Jenny_big_fat_belly_thumb.jpg","galleries_id":354792,"server_id":32,"link":"photo_6411240.html","width":130,"caption":"","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[175162] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"George","link":"gallery_175162.html","maxRecords":0.0,"photoIDs":[4804089.0,4804096.0,6675608.0,7211356.0,8914501.0,3266923.0,2820407.0,2820396.0,3249585.0,2820403.0,3702505.0,3702513.0,3702508.0,2821291.0,4220356.0,4220354.0,4013730.0,4013727.0,4013723.0],"skipIndex":0,"section_code":"gallery","featured_images":8914501,"id":175162,"singleSection":false});				  						galleries[175690] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jenny","link":"gallery_175690.html","maxRecords":0.0,"photoIDs":[5272660.0,6675600.0,6876747.0,7211413.0,2819798.0,2820933.0,2819859.0,2819863.0,2819784.0,3249612.0,2819791.0,4619085.0,4619081.0,3720738.0],"skipIndex":0,"section_code":"gallery","featured_images":4619085,"id":175690,"singleSection":false});				  						galleries[369835] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Jess","link":"gallery_369835.html","maxRecords":0.0,"photoIDs":[6876562.0,6876773.0,7059392.0,7116065.0,7116077.0,7211350.0,7245006.0],"skipIndex":0,"section_code":"gallery","featured_images":7912391,"id":369835,"singleSection":false});				  						galleries[384733] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Chloe","link":"gallery_384733.html","maxRecords":0.0,"photoIDs":[7203014.0,7203035.0,7203051.0,7211307.0,7244990.0,7902087.0,7902157.0,7902159.0,8914352.0],"skipIndex":0,"section_code":"gallery","featured_images":8914352,"id":384733,"singleSection":false});				  						galleries[468942] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cooper","link":"gallery_468942.html","maxRecords":0.0,"photoIDs":[9062614.0,9062620.0],"skipIndex":0,"section_code":"gallery","featured_images":"9062620,9062614","id":468942,"singleSection":false});				  						galleries[176571] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"At the show's","link":"gallery_176571.html","maxRecords":0.0,"photoIDs":[5272662.0,7912303.0,7912497.0,4619079.0,4562687.0,4430147.0,4377658.0,4140507.0,3681620.0,5673054.0],"skipIndex":0,"section_code":"gallery","featured_images":5673054,"id":176571,"singleSection":false});				  						galleries[175702] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Eddie Howland Photography","link":"gallery_175702.html","maxRecords":0.0,"photoIDs":[2821146.0,5955369.0,2819781.0,5955329.0,2820804.0,5955311.0,2819786.0,5955304.0,2820798.0,5955303.0,2820357.0,5955296.0,2819788.0,5955280.0,2820827.0,5955271.0],"skipIndex":0,"section_code":"gallery","featured_images":2819786,"id":175702,"singleSection":false});				  						galleries[354792] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Puppies","link":"gallery_354792.html","maxRecords":0.0,"photoIDs":[6411325.0,6427649.0,6475642.0,6475645.0,6475652.0,6568030.0,6568104.0,6628485.0,6628487.0,6675570.0,6675577.0,6675588.0,6675615.0,8913495.0,6411240.0],"skipIndex":0,"section_code":"gallery","featured_images":6675570,"id":354792,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8914352,6876747,6675570,2819781,5955329';
imageSets[3] = '5272662,5272660,4804096,4804089,4619085,4619081,3702513,3720738,4619079,4562687,4430147,4377658,4140507,5955303,4220356,4220354,4013730,4013727,4013723,5673054';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/garethhards/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/garethhards/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/garethhards/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/garethhards/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/garethhards/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/garethhards/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/garethhards/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/garethhards/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 = 'Uireda Miniature Schnauzers: ' + 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;
	}
}

			

