window.thumbnails = {};
															thumbnails[7288374] = clik.newPhoto({"id":7288374,"src":"Untitled-11_2_2_thumb.jpg","galleries_id":"","server_id":32,"link":"#","width":130,"caption":"","height":182});
															thumbnails[7283559] = clik.newPhoto({"id":7283559,"src":"Elle054_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283559.html","width":130,"caption":"","height":93});
															thumbnails[7283569] = clik.newPhoto({"id":7283569,"src":"Elle0021_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283569.html","width":130,"caption":"","height":93});
															thumbnails[7283547] = clik.newPhoto({"id":7283547,"src":"Elle004_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283547.html","width":130,"caption":"","height":93});
															thumbnails[7283556] = clik.newPhoto({"id":7283556,"src":"Elle047_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283556.html","width":130,"caption":"","height":93});
															thumbnails[7283549] = clik.newPhoto({"id":7283549,"src":"Elle005_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283549.html","width":130,"caption":"","height":93});
															thumbnails[7283552] = clik.newPhoto({"id":7283552,"src":"Elle032_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283552.html","width":130,"caption":"","height":93});
															thumbnails[7283550] = clik.newPhoto({"id":7283550,"src":"Elle0201_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283550.html","width":130,"caption":"","height":93});
															thumbnails[7283558] = clik.newPhoto({"id":7283558,"src":"Elle050_thumb.jpg","galleries_id":272202,"server_id":32,"link":"photo_7283558.html","width":130,"caption":"","height":93});
															thumbnails[7288429] = clik.newPhoto({"id":7288429,"src":"Untitled-8_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288429.html","width":130,"caption":"","height":97});
															thumbnails[7288408] = clik.newPhoto({"id":7288408,"src":"Untitled-3_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288408.html","width":130,"caption":"","height":98});
															thumbnails[7288423] = clik.newPhoto({"id":7288423,"src":"Untitled-5_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288423.html","width":130,"caption":"","height":97});
															thumbnails[7288400] = clik.newPhoto({"id":7288400,"src":"Untitled-1_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288400.html","width":130,"caption":"","height":97});
															thumbnails[7288426] = clik.newPhoto({"id":7288426,"src":"Untitled-6_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288426.html","width":130,"caption":"","height":97});
															thumbnails[7288410] = clik.newPhoto({"id":7288410,"src":"Untitled-4_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288410.html","width":130,"caption":"","height":97});
															thumbnails[7288428] = clik.newPhoto({"id":7288428,"src":"Untitled-7_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288428.html","width":130,"caption":"","height":97});
															thumbnails[7288403] = clik.newPhoto({"id":7288403,"src":"Untitled-2_thumb.jpg","galleries_id":272200,"server_id":32,"link":"photo_7288403.html","width":130,"caption":"","height":97});
															thumbnails[7317893] = clik.newPhoto({"id":7317893,"src":"MM36415001_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317893.html","width":130,"caption":"","height":93});
															thumbnails[7317899] = clik.newPhoto({"id":7317899,"src":"Untitled-4_2_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317899.html","width":130,"caption":"","height":93});
															thumbnails[7318033] = clik.newPhoto({"id":7318033,"src":"LS363580151_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7318033.html","width":130,"caption":"","height":93});
															thumbnails[7317908] = clik.newPhoto({"id":7317908,"src":"BM34908005_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317908.html","width":130,"caption":"","height":93});
															thumbnails[7318005] = clik.newPhoto({"id":7318005,"src":"Hal346130291_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7318005.html","width":130,"caption":"","height":93});
															thumbnails[7318009] = clik.newPhoto({"id":7318009,"src":"Lucy0301_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7318009.html","width":130,"caption":"","height":93});
															thumbnails[7317904] = clik.newPhoto({"id":7317904,"src":"Untitled-6_2_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317904.html","width":130,"caption":"","height":93});
															thumbnails[7317962] = clik.newPhoto({"id":7317962,"src":"Untitled-3_3_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317962.html","width":130,"caption":"","height":93});
															thumbnails[7317967] = clik.newPhoto({"id":7317967,"src":"Vky34722007_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317967.html","width":130,"caption":"","height":182});
															thumbnails[7317924] = clik.newPhoto({"id":7317924,"src":"Kay34287037_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317924.html","width":130,"caption":"","height":182});
															thumbnails[7317973] = clik.newPhoto({"id":7317973,"src":"Hal34619001_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317973.html","width":130,"caption":"","height":182});
															thumbnails[7317975] = clik.newPhoto({"id":7317975,"src":"CF_H34184031_thumb.jpg","galleries_id":272203,"server_id":32,"link":"photo_7317975.html","width":130,"caption":"","height":182});
															thumbnails[7317770] = clik.newPhoto({"id":7317770,"src":"Kids35011011_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7317770.html","width":130,"caption":"","height":93});
															thumbnails[7317779] = clik.newPhoto({"id":7317779,"src":"Kids34764012_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7317779.html","width":130,"caption":"","height":93});
															thumbnails[7317782] = clik.newPhoto({"id":7317782,"src":"Kids34761021_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7317782.html","width":130,"caption":"","height":93});
															thumbnails[7317784] = clik.newPhoto({"id":7317784,"src":"Kids34911022_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7317784.html","width":130,"caption":"","height":93});
															thumbnails[7352965] = clik.newPhoto({"id":7352965,"src":"Kids34911001_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7352965.html","width":130,"caption":"","height":93});
															thumbnails[7352945] = clik.newPhoto({"id":7352945,"src":"Kids36000001_2_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7352945.html","width":130,"caption":"","height":93});
															thumbnails[7352942] = clik.newPhoto({"id":7352942,"src":"Kids35099009_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7352942.html","width":130,"caption":"","height":93});
															thumbnails[7352940] = clik.newPhoto({"id":7352940,"src":"Kids34430023_thumb.jpg","galleries_id":393901,"server_id":32,"link":"photo_7352940.html","width":130,"caption":"","height":93});
															thumbnails[7347217] = clik.newPhoto({"id":7347217,"src":"MT006_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347217.html","width":130,"caption":"","height":93});
															thumbnails[7347234] = clik.newPhoto({"id":7347234,"src":"MT018_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347234.html","width":130,"caption":"","height":79});
															thumbnails[7347220] = clik.newPhoto({"id":7347220,"src":"NK172_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347220.html","width":130,"caption":"","height":93});
															thumbnails[7347237] = clik.newPhoto({"id":7347237,"src":"NK010_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347237.html","width":130,"caption":"","height":93});
															thumbnails[7347215] = clik.newPhoto({"id":7347215,"src":"JM031_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347215.html","width":130,"caption":"","height":93});
															thumbnails[7347271] = clik.newPhoto({"id":7347271,"src":"Untitled-6_3_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347271.html","width":130,"caption":"","height":93});
															thumbnails[7347219] = clik.newPhoto({"id":7347219,"src":"DP030_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347219.html","width":130,"caption":"","height":93});
															thumbnails[7347228] = clik.newPhoto({"id":7347228,"src":"Untitled-9_2_thumb.jpg","galleries_id":272204,"server_id":32,"link":"photo_7347228.html","width":130,"caption":"","height":93});
															thumbnails[7288498] = clik.newPhoto({"id":7288498,"src":"img042_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288498.html","width":130,"caption":"","height":93});
															thumbnails[7288496] = clik.newPhoto({"id":7288496,"src":"img033_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288496.html","width":130,"caption":"","height":93});
															thumbnails[7288486] = clik.newPhoto({"id":7288486,"src":"img016_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288486.html","width":130,"caption":"","height":93});
															thumbnails[7288478] = clik.newPhoto({"id":7288478,"src":"img002_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288478.html","width":130,"caption":"","height":93});
															thumbnails[7288531] = clik.newPhoto({"id":7288531,"src":"img027_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288531.html","width":130,"caption":"","height":93});
															thumbnails[7288513] = clik.newPhoto({"id":7288513,"src":"img080_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288513.html","width":130,"caption":"","height":93});
															thumbnails[7288480] = clik.newPhoto({"id":7288480,"src":"img009_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288480.html","width":130,"caption":"","height":93});
															thumbnails[7288515] = clik.newPhoto({"id":7288515,"src":"img082_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288515.html","width":130,"caption":"","height":93});
															thumbnails[7288477] = clik.newPhoto({"id":7288477,"src":"img053_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288477.html","width":130,"caption":"","height":93});
															thumbnails[7288484] = clik.newPhoto({"id":7288484,"src":"img0051_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288484.html","width":130,"caption":"","height":93});
															thumbnails[7288521] = clik.newPhoto({"id":7288521,"src":"img084_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288521.html","width":130,"caption":"","height":93});
															thumbnails[7288488] = clik.newPhoto({"id":7288488,"src":"img018_thumb.jpg","galleries_id":308239,"server_id":32,"link":"photo_7288488.html","width":130,"caption":"","height":93});
															thumbnails[7317655] = clik.newPhoto({"id":7317655,"src":"WJ050_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317655.html","width":130,"caption":"","height":181});
															thumbnails[7317646] = clik.newPhoto({"id":7317646,"src":"WJ008_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317646.html","width":130,"caption":"","height":182});
															thumbnails[7317656] = clik.newPhoto({"id":7317656,"src":"WJ064_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317656.html","width":130,"caption":"","height":182});
															thumbnails[7317657] = clik.newPhoto({"id":7317657,"src":"WJ066_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317657.html","width":130,"caption":"","height":182});
															thumbnails[7317651] = clik.newPhoto({"id":7317651,"src":"WJ028_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317651.html","width":130,"caption":"","height":182});
															thumbnails[7317660] = clik.newPhoto({"id":7317660,"src":"WJ071_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317660.html","width":130,"caption":"","height":182});
															thumbnails[7317648] = clik.newPhoto({"id":7317648,"src":"WJ009_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317648.html","width":130,"caption":"","height":182});
															thumbnails[7317658] = clik.newPhoto({"id":7317658,"src":"WJ067_thumb.jpg","galleries_id":393904,"server_id":32,"link":"photo_7317658.html","width":130,"caption":"","height":182});
															thumbnails[7347613] = clik.newPhoto({"id":7347613,"src":"TLT001_thumb.jpg","galleries_id":393900,"server_id":32,"link":"photo_7347613.html","width":130,"caption":"","height":129});
															thumbnails[7347619] = clik.newPhoto({"id":7347619,"src":"Roz004_thumb.jpg","galleries_id":393900,"server_id":32,"link":"photo_7347619.html","width":130,"caption":"","height":130});
															thumbnails[7347625] = clik.newPhoto({"id":7347625,"src":"Sho001_thumb.jpg","galleries_id":393900,"server_id":32,"link":"photo_7347625.html","width":130,"caption":"","height":130});
															thumbnails[7347631] = clik.newPhoto({"id":7347631,"src":"Vida007_thumb.jpg","galleries_id":393900,"server_id":32,"link":"photo_7347631.html","width":130,"caption":"","height":130});
															thumbnails[7296056] = clik.newPhoto({"id":7296056,"src":"DSC_0235_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296056.html","width":130,"caption":"","height":93});
															thumbnails[7296042] = clik.newPhoto({"id":7296042,"src":"DSC_0083_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296042.html","width":130,"caption":"","height":93});
															thumbnails[7296053] = clik.newPhoto({"id":7296053,"src":"DSC_0223_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296053.html","width":130,"caption":"","height":93});
															thumbnails[9061407] = clik.newPhoto({"id":9061407,"src":"DSC_0051_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_9061407.html","width":130,"caption":"","height":93});
															thumbnails[9061409] = clik.newPhoto({"id":9061409,"src":"DSC_0082_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_9061409.html","width":130,"caption":"","height":93});
															thumbnails[9061416] = clik.newPhoto({"id":9061416,"src":"DSC_0243_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_9061416.html","width":130,"caption":"","height":93});
															thumbnails[7296052] = clik.newPhoto({"id":7296052,"src":"DSC_0200_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296052.html","width":130,"caption":"","height":93});
															thumbnails[7296038] = clik.newPhoto({"id":7296038,"src":"DSC_0079_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296038.html","width":130,"caption":"","height":93});
															thumbnails[9061414] = clik.newPhoto({"id":9061414,"src":"DSC_0098_2_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_9061414.html","width":130,"caption":"","height":93});
															thumbnails[7296050] = clik.newPhoto({"id":7296050,"src":"DSC_0187_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296050.html","width":130,"caption":"","height":93});
															thumbnails[7296030] = clik.newPhoto({"id":7296030,"src":"DSC_0015_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296030.html","width":130,"caption":"","height":93});
															thumbnails[7296033] = clik.newPhoto({"id":7296033,"src":"DSC_0048_thumb.jpg","galleries_id":393906,"server_id":32,"link":"photo_7296033.html","width":130,"caption":"","height":93});
															thumbnails[9060251] = clik.newPhoto({"id":9060251,"src":"ICAM0025_2_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060251.html","width":130,"caption":"","height":93});
															thumbnails[9060241] = clik.newPhoto({"id":9060241,"src":"ICAM0004_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060241.html","width":130,"caption":"","height":93});
															thumbnails[9060263] = clik.newPhoto({"id":9060263,"src":"ICAM0053_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060263.html","width":130,"caption":"","height":93});
															thumbnails[9060258] = clik.newPhoto({"id":9060258,"src":"ICAM0072_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060258.html","width":130,"caption":"","height":93});
															thumbnails[9060260] = clik.newPhoto({"id":9060260,"src":"ICAM0070_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060260.html","width":130,"caption":"","height":93});
															thumbnails[9060242] = clik.newPhoto({"id":9060242,"src":"ICAM0017_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060242.html","width":130,"caption":"","height":93});
															thumbnails[9060268] = clik.newPhoto({"id":9060268,"src":"ICAM0041_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060268.html","width":130,"caption":"","height":93});
															thumbnails[9060247] = clik.newPhoto({"id":9060247,"src":"ICAM0022_3_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060247.html","width":130,"caption":"","height":93});
															thumbnails[9060270] = clik.newPhoto({"id":9060270,"src":"ICAM0039_2_3_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060270.html","width":130,"caption":"","height":93});
															thumbnails[9060261] = clik.newPhoto({"id":9060261,"src":"ICAM0059_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060261.html","width":130,"caption":"","height":93});
															thumbnails[9060254] = clik.newPhoto({"id":9060254,"src":"ICAM0024_3_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060254.html","width":130,"caption":"","height":93});
															thumbnails[9060266] = clik.newPhoto({"id":9060266,"src":"ICAM0046_thumb.jpg","galleries_id":393908,"server_id":32,"link":"photo_9060266.html","width":130,"caption":"","height":93});
															thumbnails[7347325] = clik.newPhoto({"id":7347325,"src":"Yanks097_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347325.html","width":130,"caption":"","height":93});
															thumbnails[7347418] = clik.newPhoto({"id":7347418,"src":"Yanks069_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347418.html","width":130,"caption":"","height":93});
															thumbnails[7347498] = clik.newPhoto({"id":7347498,"src":"DSC_0003_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347498.html","width":130,"caption":"","height":93});
															thumbnails[7347575] = clik.newPhoto({"id":7347575,"src":"DSC_0020_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347575.html","width":130,"caption":"","height":93});
															thumbnails[7347572] = clik.newPhoto({"id":7347572,"src":"DSC_0159_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347572.html","width":130,"caption":"","height":182});
															thumbnails[7347420] = clik.newPhoto({"id":7347420,"src":"Yanks096_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347420.html","width":130,"caption":"","height":182});
															thumbnails[7347424] = clik.newPhoto({"id":7347424,"src":"Yanks078_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347424.html","width":130,"caption":"","height":182});
															thumbnails[7347574] = clik.newPhoto({"id":7347574,"src":"DSC_0056_2_thumb.jpg","galleries_id":393909,"server_id":32,"link":"photo_7347574.html","width":130,"caption":"","height":182});
															thumbnails[7347043] = clik.newPhoto({"id":7347043,"src":"IL001_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347043.html","width":130,"caption":"","height":93});
															thumbnails[7347058] = clik.newPhoto({"id":7347058,"src":"IL006_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347058.html","width":130,"caption":"","height":93});
															thumbnails[7347075] = clik.newPhoto({"id":7347075,"src":"IL014_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347075.html","width":130,"caption":"","height":93});
															thumbnails[7347069] = clik.newPhoto({"id":7347069,"src":"IL010_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347069.html","width":130,"caption":"","height":93});
															thumbnails[7347056] = clik.newPhoto({"id":7347056,"src":"IL003_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347056.html","width":130,"caption":"","height":93});
															thumbnails[7347178] = clik.newPhoto({"id":7347178,"src":"IL019_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347178.html","width":130,"caption":"","height":93});
															thumbnails[7347080] = clik.newPhoto({"id":7347080,"src":"IL017_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347080.html","width":130,"caption":"","height":93});
															thumbnails[7347095] = clik.newPhoto({"id":7347095,"src":"IL018_thumb.jpg","galleries_id":393907,"server_id":32,"link":"photo_7347095.html","width":130,"caption":"","height":93});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[272202] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"GOT A LIGHT?","link":"section327207.html","maxRecords":0.0,"photoIDs":[7283559.0,7283569.0,7283547.0,7283556.0,7283549.0,7283552.0,7283550.0,7283558.0],"skipIndex":0,"section_code":"section327207","featured_images":"7283569,7283559,7283558,7283556,7283552,7283550,7283549,7283547","id":272202,"singleSection":true});				  						galleries[272200] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"SCISSOR WALK,MACHINE GUN TALK","link":"section327205.html","maxRecords":0.0,"photoIDs":[7288429.0,7288408.0,7288423.0,7288400.0,7288426.0,7288410.0,7288428.0,7288403.0],"skipIndex":0,"section_code":"section327205","featured_images":"7288429,7288428,7288426,7288423,7288410,7288408,7288403,7288400","id":272200,"singleSection":true});				  						galleries[272203] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"CROYDON FACES","link":"section327208.html","maxRecords":0.0,"photoIDs":[7317893.0,7317899.0,7318033.0,7317908.0,7318005.0,7318009.0,7317904.0,7317962.0,7317967.0,7317924.0,7317973.0,7317975.0],"skipIndex":0,"section_code":"section327208","featured_images":"7318033,7318009,7318005,7317975,7317973,7317967,7317962,7317924,7317908,7317904","id":272203,"singleSection":true});				  						galleries[393904] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"WARM JETS","link":"section466499.html","maxRecords":0.0,"photoIDs":[7317655.0,7317646.0,7317656.0,7317657.0,7317651.0,7317660.0,7317648.0,7317658.0],"skipIndex":0,"section_code":"section466499","featured_images":"7317660,7317658,7317657,7317656,7317655,7317651,7317648,7317646","id":393904,"singleSection":true});				  						galleries[393901] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"KIDS","link":"section466501.html","maxRecords":0.0,"photoIDs":[7317770.0,7317779.0,7317782.0,7317784.0,7352965.0,7352945.0,7352942.0,7352940.0],"skipIndex":0,"section_code":"section466501","featured_images":"7352965,7352945,7352942,7352940,7317784,7317782,7317779,7317770","id":393901,"singleSection":true});				  						galleries[272204] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"WEDDINGS","link":"section327209.html","maxRecords":0.0,"photoIDs":[7347217.0,7347234.0,7347220.0,7347237.0,7347215.0,7347271.0,7347219.0,7347228.0],"skipIndex":0,"section_code":"section327209","featured_images":"7347271,7347237,7347234,7347228,7347220,7347219,7347217,7347215","id":272204,"singleSection":true});				  						galleries[308239] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A LONDON WEDDING","link":"section369013.html","maxRecords":0.0,"photoIDs":[7288498.0,7288496.0,7288486.0,7288478.0,7288531.0,7288513.0,7288480.0,7288515.0,7288477.0,7288484.0,7288521.0,7288488.0],"skipIndex":0,"section_code":"section369013","featured_images":"7288531,7288521,7288515,7288513,7288498,7288496,7288488,7288486,7288484,7288480","id":308239,"singleSection":true});				  						galleries[393900] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"1970s\/1980s","link":"section466502.html","maxRecords":0.0,"photoIDs":[7347613.0,7347619.0,7347625.0,7347631.0],"skipIndex":0,"section_code":"section466502","featured_images":"7347631,7347625,7347619,7347613","id":393900,"singleSection":true});				  						galleries[393906] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"VIEW FROM MY WINDOW","link":"section466500.html","maxRecords":0.0,"photoIDs":[7296056.0,7296042.0,7296053.0,9061407.0,9061409.0,9061416.0,7296052.0,7296038.0,9061414.0,7296050.0,7296030.0,7296033.0],"skipIndex":0,"section_code":"section466500","featured_images":"9061416,9061414,9061409,9061407,7296056,7296053,7296052,7296050,7296042,7296038","id":393906,"singleSection":true});				  						galleries[393908] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A CANARY TWITTERED","link":"section466497.html","maxRecords":0.0,"photoIDs":[9060251.0,9060241.0,9060263.0,9060258.0,9060260.0,9060242.0,9060268.0,9060247.0,9060270.0,9060261.0,9060254.0,9060266.0],"skipIndex":0,"section_code":"section466497","featured_images":"9060270,9060268,9060266,9060263,9060261,9060260,9060258,9060254,9060251,9060247","id":393908,"singleSection":true});				  						galleries[393909] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"YANKS","link":"section466504.html","maxRecords":0.0,"photoIDs":[7347325.0,7347418.0,7347498.0,7347575.0,7347572.0,7347420.0,7347424.0,7347574.0],"skipIndex":0,"section_code":"section466504","featured_images":"7347575,7347574,7347572,7347498,7347424,7347420,7347418,7347325","id":393909,"singleSection":true});				  						galleries[393907] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"INDUSTRIAL\/LANDSCAPE","link":"section466503.html","maxRecords":0.0,"photoIDs":[7347043.0,7347058.0,7347075.0,7347069.0,7347056.0,7347178.0,7347080.0,7347095.0],"skipIndex":0,"section_code":"section466503","featured_images":"7347178,7347095,7347080,7347075,7347069,7347058,7347056,7347043","id":393907,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '7288374';
imageSets[3] = '7288374';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/F400Boy/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/F400Boy/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 += 'section327207.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 && 'section327207' != '') {
					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 = 'Peter Mills Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
				
				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;
	}
}

			

