window.thumbnails = {};
															thumbnails[8976716] = clik.newPhoto({"id":8976716,"src":"07_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":150,"caption":"","height":212});
															thumbnails[8975689] = clik.newPhoto({"id":8975689,"src":"_AAA334xx2_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975689.html","width":150,"caption":"","height":106});
															thumbnails[8975691] = clik.newPhoto({"id":8975691,"src":"_AAA2228_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975691.html","width":150,"caption":"","height":100});
															thumbnails[8975693] = clik.newPhoto({"id":8975693,"src":"_AAA2259_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975693.html","width":150,"caption":"","height":100});
															thumbnails[8975696] = clik.newPhoto({"id":8975696,"src":"_AAA2283_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975696.html","width":150,"caption":"","height":100});
															thumbnails[8975697] = clik.newPhoto({"id":8975697,"src":"_AAA2293_pp_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975697.html","width":150,"caption":"","height":100});
															thumbnails[8975699] = clik.newPhoto({"id":8975699,"src":"_AAA3205xx_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975699.html","width":150,"caption":"","height":106});
															thumbnails[8975700] = clik.newPhoto({"id":8975700,"src":"_AAA3371xdd_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975700.html","width":150,"caption":"","height":106});
															thumbnails[8975701] = clik.newPhoto({"id":8975701,"src":"_ASH3385bw_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975701.html","width":150,"caption":"","height":106});
															thumbnails[8975702] = clik.newPhoto({"id":8975702,"src":"_CL10089_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975702.html","width":150,"caption":"","height":106});
															thumbnails[8975705] = clik.newPhoto({"id":8975705,"src":"_CL10281_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975705.html","width":150,"caption":"","height":106});
															thumbnails[8975707] = clik.newPhoto({"id":8975707,"src":"_CL10306_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975707.html","width":150,"caption":"","height":106});
															thumbnails[8975708] = clik.newPhoto({"id":8975708,"src":"_CL10371_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975708.html","width":150,"caption":"","height":106});
															thumbnails[8975709] = clik.newPhoto({"id":8975709,"src":"_CL10382_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975709.html","width":150,"caption":"","height":106});
															thumbnails[8975711] = clik.newPhoto({"id":8975711,"src":"_CL10679_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975711.html","width":150,"caption":"","height":106});
															thumbnails[8975712] = clik.newPhoto({"id":8975712,"src":"_CL10685cr_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975712.html","width":150,"caption":"","height":106});
															thumbnails[8975713] = clik.newPhoto({"id":8975713,"src":"_CL10715_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975713.html","width":150,"caption":"","height":106});
															thumbnails[8975715] = clik.newPhoto({"id":8975715,"src":"_CL10744_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975715.html","width":150,"caption":"","height":106});
															thumbnails[8975716] = clik.newPhoto({"id":8975716,"src":"_CL10825_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975716.html","width":150,"caption":"","height":106});
															thumbnails[8975717] = clik.newPhoto({"id":8975717,"src":"_CL10838_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975717.html","width":150,"caption":"","height":106});
															thumbnails[8975718] = clik.newPhoto({"id":8975718,"src":"_CL10900_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975718.html","width":150,"caption":"","height":106});
															thumbnails[8975719] = clik.newPhoto({"id":8975719,"src":"_CL10920_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975719.html","width":150,"caption":"","height":106});
															thumbnails[8975720] = clik.newPhoto({"id":8975720,"src":"_CL11010_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975720.html","width":150,"caption":"","height":106});
															thumbnails[8975722] = clik.newPhoto({"id":8975722,"src":"_CL11917bw_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975722.html","width":150,"caption":"","height":106});
															thumbnails[8975723] = clik.newPhoto({"id":8975723,"src":"_CL11256_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975723.html","width":150,"caption":"","height":106});
															thumbnails[8975725] = clik.newPhoto({"id":8975725,"src":"_CL11728_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975725.html","width":150,"caption":"","height":106});
															thumbnails[8975726] = clik.newPhoto({"id":8975726,"src":"_CL11736_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975726.html","width":150,"caption":"","height":106});
															thumbnails[8975728] = clik.newPhoto({"id":8975728,"src":"_CL11754_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975728.html","width":150,"caption":"","height":106});
															thumbnails[8975729] = clik.newPhoto({"id":8975729,"src":"_CL11766_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975729.html","width":150,"caption":"","height":106});
															thumbnails[8975732] = clik.newPhoto({"id":8975732,"src":"_CL11831_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975732.html","width":150,"caption":"","height":106});
															thumbnails[8975733] = clik.newPhoto({"id":8975733,"src":"_CL11908_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975733.html","width":150,"caption":"","height":106});
															thumbnails[8975734] = clik.newPhoto({"id":8975734,"src":"_CL11910_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975734.html","width":150,"caption":"","height":106});
															thumbnails[8975736] = clik.newPhoto({"id":8975736,"src":"_CL12050_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975736.html","width":150,"caption":"","height":106});
															thumbnails[8975739] = clik.newPhoto({"id":8975739,"src":"_CL12056_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975739.html","width":150,"caption":"","height":106});
															thumbnails[8975741] = clik.newPhoto({"id":8975741,"src":"_CL12061_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975741.html","width":150,"caption":"","height":106});
															thumbnails[8975744] = clik.newPhoto({"id":8975744,"src":"_CL12080_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975744.html","width":150,"caption":"","height":106});
															thumbnails[8975745] = clik.newPhoto({"id":8975745,"src":"_CL12382_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975745.html","width":150,"caption":"","height":106});
															thumbnails[8975746] = clik.newPhoto({"id":8975746,"src":"_CL12387_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975746.html","width":150,"caption":"","height":106});
															thumbnails[8975748] = clik.newPhoto({"id":8975748,"src":"_CL12398_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975748.html","width":150,"caption":"","height":106});
															thumbnails[8975751] = clik.newPhoto({"id":8975751,"src":"_CL12401_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975751.html","width":150,"caption":"","height":106});
															thumbnails[8975752] = clik.newPhoto({"id":8975752,"src":"_CL12420_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975752.html","width":150,"caption":"","height":106});
															thumbnails[8975756] = clik.newPhoto({"id":8975756,"src":"_CL12433_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975756.html","width":150,"caption":"","height":106});
															thumbnails[8975759] = clik.newPhoto({"id":8975759,"src":"_CL12529_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975759.html","width":150,"caption":"","height":106});
															thumbnails[8975761] = clik.newPhoto({"id":8975761,"src":"_CL12550_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975761.html","width":150,"caption":"","height":106});
															thumbnails[8975762] = clik.newPhoto({"id":8975762,"src":"_CL12588_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975762.html","width":150,"caption":"","height":106});
															thumbnails[8975763] = clik.newPhoto({"id":8975763,"src":"_CLA0089bw_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975763.html","width":150,"caption":"","height":106});
															thumbnails[8975764] = clik.newPhoto({"id":8975764,"src":"_CLA0173bw_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975764.html","width":150,"caption":"","height":106});
															thumbnails[8975767] = clik.newPhoto({"id":8975767,"src":"_CLA0236_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975767.html","width":150,"caption":"","height":106});
															thumbnails[8975770] = clik.newPhoto({"id":8975770,"src":"_EAS1874_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975770.html","width":150,"caption":"","height":106});
															thumbnails[8975771] = clik.newPhoto({"id":8975771,"src":"_EAS1903_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975771.html","width":150,"caption":"","height":106});
															thumbnails[8975773] = clik.newPhoto({"id":8975773,"src":"_EAS2002_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975773.html","width":150,"caption":"","height":106});
															thumbnails[8975774] = clik.newPhoto({"id":8975774,"src":"_EAS2156_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975774.html","width":150,"caption":"","height":106});
															thumbnails[8975775] = clik.newPhoto({"id":8975775,"src":"_EAS2298_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975775.html","width":150,"caption":"","height":106});
															thumbnails[8975776] = clik.newPhoto({"id":8975776,"src":"_EAS2504_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975776.html","width":150,"caption":"","height":106});
															thumbnails[8975777] = clik.newPhoto({"id":8975777,"src":"_EAS2520_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975777.html","width":150,"caption":"","height":106});
															thumbnails[8975779] = clik.newPhoto({"id":8975779,"src":"_EAS2524_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975779.html","width":150,"caption":"","height":106});
															thumbnails[8975780] = clik.newPhoto({"id":8975780,"src":"_EAS2527_thumb.JPG","galleries_id":472609,"server_id":32,"link":"photo_8975780.html","width":150,"caption":"","height":106});
															thumbnails[8975781] = clik.newPhoto({"id":8975781,"src":"_EAS2539_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975781.html","width":150,"caption":"","height":106});
															thumbnails[8975782] = clik.newPhoto({"id":8975782,"src":"_EAS2549_thumb.JPG","galleries_id":472609,"server_id":32,"link":"photo_8975782.html","width":150,"caption":"","height":106});
															thumbnails[8975783] = clik.newPhoto({"id":8975783,"src":"_EAS2578_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975783.html","width":150,"caption":"","height":106});
															thumbnails[8975784] = clik.newPhoto({"id":8975784,"src":"_EAS2600_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975784.html","width":150,"caption":"","height":106});
															thumbnails[8975785] = clik.newPhoto({"id":8975785,"src":"_EAS2653_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975785.html","width":150,"caption":"","height":106});
															thumbnails[8975786] = clik.newPhoto({"id":8975786,"src":"_SAM4206bw_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975786.html","width":150,"caption":"","height":106});
															thumbnails[8975789] = clik.newPhoto({"id":8975789,"src":"_SAM4832XXXXXX_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975789.html","width":150,"caption":"","height":106});
															thumbnails[8975791] = clik.newPhoto({"id":8975791,"src":"_SAM4816_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975791.html","width":150,"caption":"","height":106});
															thumbnails[8975793] = clik.newPhoto({"id":8975793,"src":"_SAM4696_bw_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975793.html","width":150,"caption":"","height":106});
															thumbnails[8975795] = clik.newPhoto({"id":8975795,"src":"_SAM4284_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975795.html","width":150,"caption":"","height":106});
															thumbnails[8975797] = clik.newPhoto({"id":8975797,"src":"3wws_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975797.html","width":150,"caption":"","height":106});
															thumbnails[8975798] = clik.newPhoto({"id":8975798,"src":"40o_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975798.html","width":150,"caption":"","height":106});
															thumbnails[8975799] = clik.newPhoto({"id":8975799,"src":"35_thumb.JPG","galleries_id":472609,"server_id":32,"link":"photo_8975799.html","width":150,"caption":"","height":106});
															thumbnails[8975800] = clik.newPhoto({"id":8975800,"src":"34v2_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975800.html","width":150,"caption":"","height":106});
															thumbnails[8975801] = clik.newPhoto({"id":8975801,"src":"34_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975801.html","width":150,"caption":"","height":106});
															thumbnails[8975802] = clik.newPhoto({"id":8975802,"src":"25ssss_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975802.html","width":150,"caption":"","height":106});
															thumbnails[8975804] = clik.newPhoto({"id":8975804,"src":"19_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975804.html","width":150,"caption":"","height":106});
															thumbnails[8975806] = clik.newPhoto({"id":8975806,"src":"25_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975806.html","width":150,"caption":"","height":106});
															thumbnails[8975808] = clik.newPhoto({"id":8975808,"src":"18x12we_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975808.html","width":150,"caption":"","height":106});
															thumbnails[8975809] = clik.newPhoto({"id":8975809,"src":"18f_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975809.html","width":150,"caption":"","height":106});
															thumbnails[8975811] = clik.newPhoto({"id":8975811,"src":"16_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975811.html","width":150,"caption":"","height":106});
															thumbnails[8975812] = clik.newPhoto({"id":8975812,"src":"10a_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975812.html","width":150,"caption":"","height":106});
															thumbnails[8975815] = clik.newPhoto({"id":8975815,"src":"8_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975815.html","width":150,"caption":"","height":107});
															thumbnails[8975817] = clik.newPhoto({"id":8975817,"src":"13s_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975817.html","width":150,"caption":"","height":107});
															thumbnails[8975838] = clik.newPhoto({"id":8975838,"src":"web_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8975838.html","width":150,"caption":"","height":100});
															thumbnails[8976047] = clik.newPhoto({"id":8976047,"src":"081_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976047.html","width":150,"caption":"","height":212});
															thumbnails[8976048] = clik.newPhoto({"id":8976048,"src":"071_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976048.html","width":150,"caption":"","height":212});
															thumbnails[8976050] = clik.newPhoto({"id":8976050,"src":"062_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976050.html","width":150,"caption":"","height":212});
															thumbnails[8976051] = clik.newPhoto({"id":8976051,"src":"061_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976051.html","width":150,"caption":"","height":212});
															thumbnails[8976052] = clik.newPhoto({"id":8976052,"src":"060_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976052.html","width":150,"caption":"","height":212});
															thumbnails[8976054] = clik.newPhoto({"id":8976054,"src":"051_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976054.html","width":150,"caption":"","height":212});
															thumbnails[8976055] = clik.newPhoto({"id":8976055,"src":"050_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976055.html","width":150,"caption":"","height":212});
															thumbnails[8976056] = clik.newPhoto({"id":8976056,"src":"041_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976056.html","width":150,"caption":"","height":212});
															thumbnails[8976057] = clik.newPhoto({"id":8976057,"src":"040_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976057.html","width":150,"caption":"","height":212});
															thumbnails[8976058] = clik.newPhoto({"id":8976058,"src":"033_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976058.html","width":150,"caption":"","height":212});
															thumbnails[8976059] = clik.newPhoto({"id":8976059,"src":"032_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976059.html","width":150,"caption":"","height":212});
															thumbnails[8976060] = clik.newPhoto({"id":8976060,"src":"030_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976060.html","width":150,"caption":"","height":212});
															thumbnails[8976061] = clik.newPhoto({"id":8976061,"src":"027_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976061.html","width":150,"caption":"","height":212});
															thumbnails[8976063] = clik.newPhoto({"id":8976063,"src":"028_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976063.html","width":150,"caption":"","height":212});
															thumbnails[8976064] = clik.newPhoto({"id":8976064,"src":"031_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976064.html","width":150,"caption":"","height":212});
															thumbnails[8976066] = clik.newPhoto({"id":8976066,"src":"026_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976066.html","width":150,"caption":"","height":212});
															thumbnails[8976067] = clik.newPhoto({"id":8976067,"src":"024_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976067.html","width":150,"caption":"","height":212});
															thumbnails[8976068] = clik.newPhoto({"id":8976068,"src":"023_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976068.html","width":150,"caption":"","height":212});
															thumbnails[8976069] = clik.newPhoto({"id":8976069,"src":"022_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976069.html","width":150,"caption":"","height":212});
															thumbnails[8976070] = clik.newPhoto({"id":8976070,"src":"021_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976070.html","width":150,"caption":"","height":212});
															thumbnails[8976072] = clik.newPhoto({"id":8976072,"src":"014_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976072.html","width":150,"caption":"","height":212});
															thumbnails[8976073] = clik.newPhoto({"id":8976073,"src":"015_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976073.html","width":150,"caption":"","height":212});
															thumbnails[8976074] = clik.newPhoto({"id":8976074,"src":"016_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976074.html","width":150,"caption":"","height":212});
															thumbnails[8976075] = clik.newPhoto({"id":8976075,"src":"013_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976075.html","width":150,"caption":"","height":212});
															thumbnails[8976076] = clik.newPhoto({"id":8976076,"src":"012_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976076.html","width":150,"caption":"","height":212});
															thumbnails[8976090] = clik.newPhoto({"id":8976090,"src":"010_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976090.html","width":150,"caption":"","height":212});
															thumbnails[8976091] = clik.newPhoto({"id":8976091,"src":"08_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976091.html","width":150,"caption":"","height":212});
															thumbnails[8976093] = clik.newPhoto({"id":8976093,"src":"03_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976093.html","width":150,"caption":"","height":212});
															thumbnails[8976094] = clik.newPhoto({"id":8976094,"src":"02_thumb.jpg","galleries_id":472609,"server_id":32,"link":"photo_8976094.html","width":150,"caption":"","height":212});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[472609] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"PHOTOS & PRICES","link":"gallery.html","maxRecords":0.0,"photoIDs":[8975689.0,8975691.0,8975693.0,8975696.0,8975697.0,8975699.0,8975700.0,8975701.0,8975702.0,8975705.0,8975707.0,8975708.0,8975709.0,8975711.0,8975712.0,8975713.0,8975715.0,8975716.0,8975717.0,8975718.0,8975719.0,8975720.0,8975722.0,8975723.0,8975725.0,8975726.0,8975728.0,8975729.0,8975732.0,8975733.0,8975734.0,8975736.0,8975739.0,8975741.0,8975744.0,8975745.0,8975746.0,8975748.0,8975751.0,8975752.0,8975756.0,8975759.0,8975761.0,8975762.0,8975763.0,8975764.0,8975767.0,8975770.0,8975771.0,8975773.0,8975774.0,8975775.0,8975776.0,8975777.0,8975779.0,8975780.0,8975781.0,8975782.0,8975783.0,8975784.0,8975785.0,8975786.0,8975789.0,8975791.0,8975793.0,8975795.0,8975797.0,8975798.0,8975799.0,8975800.0,8975801.0,8975802.0,8975804.0,8975806.0,8975808.0,8975809.0,8975811.0,8975812.0,8975815.0,8975817.0,8975838.0,8976047.0,8976048.0,8976050.0,8976051.0,8976052.0,8976054.0,8976055.0,8976056.0,8976057.0,8976058.0,8976059.0,8976060.0,8976061.0,8976063.0,8976064.0,8976066.0,8976067.0,8976068.0,8976069.0,8976070.0,8976072.0,8976073.0,8976074.0,8976075.0,8976076.0,8976090.0,8976091.0,8976093.0,8976094.0],"skipIndex":0,"section_code":"gallery","featured_images":"8976094,8976093,8976091,8976090,8976076,8976075,8976074,8976073,8976072,8976070","id":472609,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '8976057';
imageSets[3] = '8976716,8976094,8976093,8976091,8976090,8976076,8976075,8976074,8976073,8976072,8976070,8976069,8976068,8976067,8976066,8976064,8976063,8976061,8976060,8976059,8976058,8976057,8976056,8976055,8976054,8976052,8976051,8976050,8976048,8976047,8975838,8975817,8975815,8975812,8975811,8975809,8975808,8975806,8975804,8975802,8975801,8975800,8975799,8975798,8975797,8975795,8975793,8975791,8975789,8975786';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/JohnLynch/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/JohnLynch/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 = 'KENT WEDDING PHOTOGRAPHY - 01233 335173: ' + 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;
	}
}

			

