window.thumbnails = {};
															thumbnails[9075076] = clik.newPhoto({"id":9075076,"src":"IMG_0292PVv41SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_9075076.html","width":125,"caption":"","height":144});
															thumbnails[8542970] = clik.newPhoto({"id":8542970,"src":"IMG_0073WebSitePVv12SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8542970.html","width":125,"caption":"","height":144});
															thumbnails[8550471] = clik.newPhoto({"id":8550471,"src":"IMG_0124Websitev14SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8550471.html","width":125,"caption":"","height":144});
															thumbnails[8542973] = clik.newPhoto({"id":8542973,"src":"IMG_0284WebsitePVv12SQR2_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8542973.html","width":125,"caption":"","height":144});
															thumbnails[8542979] = clik.newPhoto({"id":8542979,"src":"IMG_9943Website_PVv106SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8542979.html","width":125,"caption":"","height":144});
															thumbnails[8542976] = clik.newPhoto({"id":8542976,"src":"IMG_0028WebsitePVv31SQR2_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8542976.html","width":125,"caption":"","height":144});
															thumbnails[8550478] = clik.newPhoto({"id":8550478,"src":"IMG_9958WebsitePVv11SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8550478.html","width":125,"caption":"","height":144});
															thumbnails[8550479] = clik.newPhoto({"id":8550479,"src":"IMG_9963WebsitePVv11SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8550479.html","width":125,"caption":"","height":144});
															thumbnails[8542981] = clik.newPhoto({"id":8542981,"src":"IMG_9848WebSitePVv56SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8542981.html","width":125,"caption":"","height":144});
															thumbnails[8550480] = clik.newPhoto({"id":8550480,"src":"IMG_9850WebsitePVv12SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8550480.html","width":125,"caption":"","height":144});
															thumbnails[8550481] = clik.newPhoto({"id":8550481,"src":"IMG_9888WebsitePVv42SQR_thumb.jpg","galleries_id":275710,"server_id":18,"link":"photo_8550481.html","width":125,"caption":"","height":144});
															thumbnails[5268269] = clik.newPhoto({"id":5268269,"src":"IMG_5847v21SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5268269.html","width":125,"caption":"","height":144});
															thumbnails[7922808] = clik.newPhoto({"id":7922808,"src":"01IMG_9502WebsitePVv12SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922808.html","width":125,"caption":"","height":144});
															thumbnails[4825671] = clik.newPhoto({"id":4825671,"src":"IMG_3472WEBv12SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4825671.html","width":125,"caption":"","height":144});
															thumbnails[5214938] = clik.newPhoto({"id":5214938,"src":"IMG_5728v11SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5214938.html","width":125,"caption":"","height":144});
															thumbnails[5099693] = clik.newPhoto({"id":5099693,"src":"IMG_3195WEBv32SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_5099693.html","width":125,"caption":"","height":144});
															thumbnails[7922809] = clik.newPhoto({"id":7922809,"src":"IMG_9571Websitev33SQR2_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922809.html","width":125,"caption":"","height":144});
															thumbnails[4827882] = clik.newPhoto({"id":4827882,"src":"IMG_0900v31SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4827882.html","width":125,"caption":"","height":144});
															thumbnails[4879395] = clik.newPhoto({"id":4879395,"src":"IMG_2794v11SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4879395.html","width":125,"caption":"","height":144});
															thumbnails[4879398] = clik.newPhoto({"id":4879398,"src":"IMG_2836v51SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4879398.html","width":125,"caption":"","height":144});
															thumbnails[7922811] = clik.newPhoto({"id":7922811,"src":"04IMG_9550WebsitePVv12SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922811.html","width":125,"caption":"","height":144});
															thumbnails[4827992] = clik.newPhoto({"id":4827992,"src":"IMG_0785v42SQR1_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4827992.html","width":125,"caption":"","height":144});
															thumbnails[7922813] = clik.newPhoto({"id":7922813,"src":"05IMG_9530WebsitePVv13SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922813.html","width":125,"caption":"","height":144});
															thumbnails[4827993] = clik.newPhoto({"id":4827993,"src":"IMG_0877v31SQR1_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4827993.html","width":125,"caption":"","height":144});
															thumbnails[4824203] = clik.newPhoto({"id":4824203,"src":"IMG_6987v51SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824203.html","width":125,"caption":"","height":136});
															thumbnails[4825665] = clik.newPhoto({"id":4825665,"src":"IMG_3413v21SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4825665.html","width":125,"caption":"","height":144});
															thumbnails[4827542] = clik.newPhoto({"id":4827542,"src":"IMG_4893v11SQR1_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_4827542.html","width":125,"caption":"","height":144});
															thumbnails[4842040] = clik.newPhoto({"id":4842040,"src":"IMG_1778v32SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842040.html","width":125,"caption":"","height":143});
															thumbnails[5221006] = clik.newPhoto({"id":5221006,"src":"IMG_5741v11SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5221006.html","width":125,"caption":"","height":144});
															thumbnails[7922818] = clik.newPhoto({"id":7922818,"src":"06IMG_9548WebsitePVv14SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922818.html","width":125,"caption":"","height":144});
															thumbnails[7922820] = clik.newPhoto({"id":7922820,"src":"07IMG_9512WebsitePVv14SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922820.html","width":125,"caption":"","height":144});
															thumbnails[4827372] = clik.newPhoto({"id":4827372,"src":"IMG_2763v101SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4827372.html","width":125,"caption":"","height":144});
															thumbnails[7922822] = clik.newPhoto({"id":7922822,"src":"08IMG_9524WebsitePVv22SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922822.html","width":125,"caption":"","height":144});
															thumbnails[4824196] = clik.newPhoto({"id":4824196,"src":"IMG_9036v71SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824196.html","width":125,"caption":"","height":136});
															thumbnails[7922823] = clik.newPhoto({"id":7922823,"src":"09IMG_9576Websitev14SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922823.html","width":125,"caption":"","height":144});
															thumbnails[7922824] = clik.newPhoto({"id":7922824,"src":"10IMG_9504WebsitePVv12SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922824.html","width":125,"caption":"","height":144});
															thumbnails[4827538] = clik.newPhoto({"id":4827538,"src":"IMG_4860v11SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_4827538.html","width":125,"caption":"","height":144});
															thumbnails[7577092] = clik.newPhoto({"id":7577092,"src":"IMG_9328Websitev14SQR_thumb.jpg","galleries_id":450033,"server_id":18,"link":"photo_7577092.html","width":125,"caption":"","height":144});
															thumbnails[7922827] = clik.newPhoto({"id":7922827,"src":"11IMG_9453WebsitePVv13SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922827.html","width":125,"caption":"","height":144});
															thumbnails[7922829] = clik.newPhoto({"id":7922829,"src":"12IMG_9526Websitev12SQR_thumb.jpg","galleries_id":426172,"server_id":18,"link":"photo_7922829.html","width":125,"caption":"","height":144});
															thumbnails[4824200] = clik.newPhoto({"id":4824200,"src":"IMG_8738v12SQR16bit_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824200.html","width":125,"caption":"","height":136});
															thumbnails[4828128] = clik.newPhoto({"id":4828128,"src":"IMG_3944v11SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_4828128.html","width":125,"caption":"","height":144});
															thumbnails[4824192] = clik.newPhoto({"id":4824192,"src":"IMG_9150v42_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824192.html","width":125,"caption":"","height":136});
															thumbnails[4842045] = clik.newPhoto({"id":4842045,"src":"IMG_1791v41SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842045.html","width":125,"caption":"","height":144});
															thumbnails[4824191] = clik.newPhoto({"id":4824191,"src":"IMG_9200v22SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824191.html","width":125,"caption":"","height":136});
															thumbnails[4842048] = clik.newPhoto({"id":4842048,"src":"IMG_2044v32SQR1_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842048.html","width":125,"caption":"","height":144});
															thumbnails[5221895] = clik.newPhoto({"id":5221895,"src":"IMG_5805WebSitev14SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5221895.html","width":125,"caption":"","height":144});
															thumbnails[4824193] = clik.newPhoto({"id":4824193,"src":"IMG_9144v11SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824193.html","width":125,"caption":"","height":136});
															thumbnails[5221906] = clik.newPhoto({"id":5221906,"src":"IMG_5846v11SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5221906.html","width":125,"caption":"","height":144});
															thumbnails[7577091] = clik.newPhoto({"id":7577091,"src":"IMG_9324Websitev21SQR_thumb.jpg","galleries_id":450033,"server_id":18,"link":"photo_7577091.html","width":125,"caption":"","height":144});
															thumbnails[4879399] = clik.newPhoto({"id":4879399,"src":"IMG_1737v1265x451_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4879399.html","width":125,"caption":"","height":101});
															thumbnails[5238405] = clik.newPhoto({"id":5238405,"src":"IMG_5807WebSitePVv12SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5238405.html","width":125,"caption":"","height":144});
															thumbnails[6450346] = clik.newPhoto({"id":6450346,"src":"IMG_7723WebSitev11SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6450346.html","width":125,"caption":"","height":144});
															thumbnails[4824198] = clik.newPhoto({"id":4824198,"src":"IMG_8993v21SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824198.html","width":125,"caption":"","height":136});
															thumbnails[4827375] = clik.newPhoto({"id":4827375,"src":"IMG_3168WEBv123SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4827375.html","width":125,"caption":"","height":144});
															thumbnails[4842050] = clik.newPhoto({"id":4842050,"src":"IMG_1750v53SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842050.html","width":125,"caption":"","height":144});
															thumbnails[4827373] = clik.newPhoto({"id":4827373,"src":"IMG_2882Websitev33SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4827373.html","width":125,"caption":"","height":144});
															thumbnails[4842450] = clik.newPhoto({"id":4842450,"src":"IMG_2116v12SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842450.html","width":125,"caption":"","height":144});
															thumbnails[4881056] = clik.newPhoto({"id":4881056,"src":"IMG_5261v11SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4881056.html","width":125,"caption":"","height":144});
															thumbnails[5238407] = clik.newPhoto({"id":5238407,"src":"IMG_5814WebSitev21SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5238407.html","width":125,"caption":"","height":144});
															thumbnails[5287481] = clik.newPhoto({"id":5287481,"src":"IMG_5701v11SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5287481.html","width":125,"caption":"","height":144});
															thumbnails[4827374] = clik.newPhoto({"id":4827374,"src":"IMG_3124v31SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4827374.html","width":125,"caption":"","height":144});
															thumbnails[4827377] = clik.newPhoto({"id":4827377,"src":"IMG_3237v32SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4827377.html","width":125,"caption":"","height":144});
															thumbnails[4824202] = clik.newPhoto({"id":4824202,"src":"IMG_7578v11SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824202.html","width":125,"caption":"","height":136});
															thumbnails[4825672] = clik.newPhoto({"id":4825672,"src":"IMG_3483v21SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4825672.html","width":125,"caption":"","height":144});
															thumbnails[4842447] = clik.newPhoto({"id":4842447,"src":"IMG_2064v42SQR1_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842447.html","width":125,"caption":"","height":144});
															thumbnails[5113558] = clik.newPhoto({"id":5113558,"src":"IMG_56582v11SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_5113558.html","width":125,"caption":"","height":144});
															thumbnails[7577090] = clik.newPhoto({"id":7577090,"src":"IMG_9343Websitev11SQR_thumb.jpg","galleries_id":450033,"server_id":18,"link":"photo_7577090.html","width":125,"caption":"","height":144});
															thumbnails[4824201] = clik.newPhoto({"id":4824201,"src":"IMG_8692v71SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4824201.html","width":125,"caption":"","height":136});
															thumbnails[4877229] = clik.newPhoto({"id":4877229,"src":"IMG_5136v21SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4877229.html","width":125,"caption":"","height":144});
															thumbnails[4991287] = clik.newPhoto({"id":4991287,"src":"IMG_5368v11SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4991287.html","width":125,"caption":"","height":144});
															thumbnails[5135422] = clik.newPhoto({"id":5135422,"src":"IMG_5655v21SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_5135422.html","width":125,"caption":"","height":144});
															thumbnails[4881061] = clik.newPhoto({"id":4881061,"src":"IMG_7070v11_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_4881061.html","width":125,"caption":"","height":144});
															thumbnails[6450278] = clik.newPhoto({"id":6450278,"src":"IMG_6824_v2_1_1_SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6450278.html","width":125,"caption":"","height":144});
															thumbnails[4842452] = clik.newPhoto({"id":4842452,"src":"IMG_2156v42SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842452.html","width":125,"caption":"","height":144});
															thumbnails[4878802] = clik.newPhoto({"id":4878802,"src":"IMG_5130v11SQR1_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_4878802.html","width":125,"caption":"","height":144});
															thumbnails[4838285] = clik.newPhoto({"id":4838285,"src":"IMG_7812MaulbronnSQRv11_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_4838285.html","width":125,"caption":"","height":144});
															thumbnails[4842453] = clik.newPhoto({"id":4842453,"src":"IMG_2159v42SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_4842453.html","width":125,"caption":"","height":144});
															thumbnails[4991290] = clik.newPhoto({"id":4991290,"src":"IMG_5428v51SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4991290.html","width":125,"caption":"","height":144});
															thumbnails[4838288] = clik.newPhoto({"id":4838288,"src":"IMG_8023Maulbronnv32_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_4838288.html","width":125,"caption":"","height":144});
															thumbnails[4991291] = clik.newPhoto({"id":4991291,"src":"IMG_5430WebSitev11SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4991291.html","width":125,"caption":"","height":144});
															thumbnails[4838291] = clik.newPhoto({"id":4838291,"src":"IMG_7937MaulbronnSQRv22_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_4838291.html","width":125,"caption":"","height":144});
															thumbnails[4991293] = clik.newPhoto({"id":4991293,"src":"IMG_5482v11SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4991293.html","width":125,"caption":"","height":144});
															thumbnails[6613053] = clik.newPhoto({"id":6613053,"src":"IMG_7720Websitev14SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6613053.html","width":125,"caption":"","height":144});
															thumbnails[4838296] = clik.newPhoto({"id":4838296,"src":"IMG_7926Maulbronnv11_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_4838296.html","width":125,"caption":"","height":144});
															thumbnails[4878798] = clik.newPhoto({"id":4878798,"src":"IMG_3172WEB2v22SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_4878798.html","width":125,"caption":"","height":144});
															thumbnails[4991294] = clik.newPhoto({"id":4991294,"src":"IMG_5483v12SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_4991294.html","width":125,"caption":"","height":144});
															thumbnails[5268268] = clik.newPhoto({"id":5268268,"src":"IMG_5748WebSitev13SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5268268.html","width":125,"caption":"","height":144});
															thumbnails[6451816] = clik.newPhoto({"id":6451816,"src":"IMG_7729WebSitev11SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6451816.html","width":125,"caption":"","height":144});
															thumbnails[6613022] = clik.newPhoto({"id":6613022,"src":"IMG_3112WebSitev11SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_6613022.html","width":125,"caption":"","height":144});
															thumbnails[6450343] = clik.newPhoto({"id":6450343,"src":"IMG_6848v11SQR_thumb.jpg","galleries_id":275516,"server_id":18,"link":"photo_6450343.html","width":125,"caption":"","height":144});
															thumbnails[5214942] = clik.newPhoto({"id":5214942,"src":"IMG_5812WebSitev22SQR_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_5214942.html","width":125,"caption":"","height":144});
															thumbnails[6613039] = clik.newPhoto({"id":6613039,"src":"IMG_7847WebSitev14SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6613039.html","width":125,"caption":"","height":144});
															thumbnails[6617565] = clik.newPhoto({"id":6617565,"src":"IMG_7850Websitev42SQR2_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6617565.html","width":125,"caption":"","height":144});
															thumbnails[5054519] = clik.newPhoto({"id":5054519,"src":"IMG_5576v11SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_5054519.html","width":125,"caption":"","height":144});
															thumbnails[6450347] = clik.newPhoto({"id":6450347,"src":"IMG_7728WebSitev13SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_6450347.html","width":125,"caption":"","height":144});
															thumbnails[7577088] = clik.newPhoto({"id":7577088,"src":"IMG_6863WebsitePVv21SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_7577088.html","width":125,"caption":"","height":144});
															thumbnails[5106090] = clik.newPhoto({"id":5106090,"src":"IMG_5431v81SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_5106090.html","width":125,"caption":"","height":144});
															thumbnails[5256922] = clik.newPhoto({"id":5256922,"src":"IMG_1860v4165x45_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_5256922.html","width":125,"caption":"","height":100});
															thumbnails[6613114] = clik.newPhoto({"id":6613114,"src":"IMG_7326WebSitev11SQR_thumb.jpg","galleries_id":450033,"server_id":18,"link":"photo_6613114.html","width":125,"caption":"","height":144});
															thumbnails[8975662] = clik.newPhoto({"id":8975662,"src":"IMG_3996PVv11SQR_thumb.jpg","galleries_id":362274,"server_id":18,"link":"photo_8975662.html","width":125,"caption":"","height":144});
															thumbnails[5256926] = clik.newPhoto({"id":5256926,"src":"IMG_1869v42SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_5256926.html","width":125,"caption":"","height":144});
															thumbnails[5256929] = clik.newPhoto({"id":5256929,"src":"IMG_1899v41SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_5256929.html","width":125,"caption":"","height":144});
															thumbnails[6613027] = clik.newPhoto({"id":6613027,"src":"IMG_3114WebSitev11SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_6613027.html","width":125,"caption":"","height":144});
															thumbnails[5256931] = clik.newPhoto({"id":5256931,"src":"IMG_1902v51SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_5256931.html","width":125,"caption":"","height":144});
															thumbnails[6870139] = clik.newPhoto({"id":6870139,"src":"IMG_3173WebSitev21SQR_1_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_6870139.html","width":125,"caption":"","height":144});
															thumbnails[5256978] = clik.newPhoto({"id":5256978,"src":"IMG_1876v11SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_5256978.html","width":125,"caption":"","height":144});
															thumbnails[6870323] = clik.newPhoto({"id":6870323,"src":"IMG_2875WebSitev104SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_6870323.html","width":125,"caption":"","height":144});
															thumbnails[6979382] = clik.newPhoto({"id":6979382,"src":"IMG_2884WebSitev102SQR_thumb.jpg","galleries_id":275517,"server_id":18,"link":"photo_6979382.html","width":125,"caption":"","height":144});
															thumbnails[6450349] = clik.newPhoto({"id":6450349,"src":"IMG_7762WebSitev11SqR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_6450349.html","width":125,"caption":"","height":144});
															thumbnails[6904667] = clik.newPhoto({"id":6904667,"src":"IMG_5725WebSitev21SQR1_thumb.jpg","galleries_id":293972,"server_id":18,"link":"photo_6904667.html","width":125,"caption":"","height":144});
															thumbnails[7204587] = clik.newPhoto({"id":7204587,"src":"IMG_6319v12SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_7204587.html","width":125,"caption":"","height":144});
															thumbnails[8550476] = clik.newPhoto({"id":8550476,"src":"IMG_0142WebsitePVv102SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_8550476.html","width":125,"caption":"","height":144});
															thumbnails[7077137] = clik.newPhoto({"id":7077137,"src":"IMG_8861WebSitev21SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_7077137.html","width":125,"caption":"","height":144});
															thumbnails[6450589] = clik.newPhoto({"id":6450589,"src":"IMG_7173WebSiteV11SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_6450589.html","width":125,"caption":"","height":144});
															thumbnails[7077139] = clik.newPhoto({"id":7077139,"src":"IMG_8863WebSitePVv61SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_7077139.html","width":125,"caption":"","height":144});
															thumbnails[5637844] = clik.newPhoto({"id":5637844,"src":"IMG_6335v11sqr_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_5637844.html","width":125,"caption":"","height":144});
															thumbnails[7077134] = clik.newPhoto({"id":7077134,"src":"IMG_8859WebSitev31SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_7077134.html","width":125,"caption":"","height":144});
															thumbnails[6450591] = clik.newPhoto({"id":6450591,"src":"IMG_7014WebSitev11SQR_thumb.jpg","galleries_id":276272,"server_id":18,"link":"photo_6450591.html","width":125,"caption":"","height":144});
															thumbnails[6613113] = clik.newPhoto({"id":6613113,"src":"IMG_5426WebSitev11SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_6613113.html","width":125,"caption":"","height":144});
															thumbnails[6868714] = clik.newPhoto({"id":6868714,"src":"IMG_6802WebSite3v31SQR_thumb.jpg","galleries_id":275518,"server_id":18,"link":"photo_6868714.html","width":125,"caption":"","height":144});
															thumbnails[5637845] = clik.newPhoto({"id":5637845,"src":"IMG_6329v11SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_5637845.html","width":125,"caption":"","height":144});
															thumbnails[5637850] = clik.newPhoto({"id":5637850,"src":"IMG_6702v11SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_5637850.html","width":125,"caption":"","height":144});
															thumbnails[5637851] = clik.newPhoto({"id":5637851,"src":"IMG_6701v11SQR_thumb.jpg","galleries_id":275514,"server_id":18,"link":"photo_5637851.html","width":125,"caption":"","height":144});
															thumbnails[4837793] = clik.newPhoto({"id":4837793,"src":"IMG_3036v614_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_4837793.html","width":125,"caption":"","height":100});
															thumbnails[4837844] = clik.newPhoto({"id":4837844,"src":"IMG_3117v12SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_4837844.html","width":125,"caption":"","height":144});
															thumbnails[4837848] = clik.newPhoto({"id":4837848,"src":"IMG_3119v11SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_4837848.html","width":125,"caption":"","height":144});
															thumbnails[4837852] = clik.newPhoto({"id":4837852,"src":"IMG_3142v11SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_4837852.html","width":125,"caption":"","height":144});
															thumbnails[4837859] = clik.newPhoto({"id":4837859,"src":"IMG_3297v12SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_4837859.html","width":125,"caption":"","height":144});
															thumbnails[4837863] = clik.newPhoto({"id":4837863,"src":"IMG_3333v11SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_4837863.html","width":125,"caption":"","height":144});
															thumbnails[5637855] = clik.newPhoto({"id":5637855,"src":"IMG_6274v11SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_5637855.html","width":125,"caption":"","height":144});
															thumbnails[5637858] = clik.newPhoto({"id":5637858,"src":"IMG_6668v11SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_5637858.html","width":125,"caption":"","height":144});
															thumbnails[5640595] = clik.newPhoto({"id":5640595,"src":"IMG_6382v13SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_5640595.html","width":125,"caption":"","height":144});
															thumbnails[5640610] = clik.newPhoto({"id":5640610,"src":"IMG_6277v12SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_5640610.html","width":125,"caption":"","height":144});
															thumbnails[8614644] = clik.newPhoto({"id":8614644,"src":"IMG_6318PVv12SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_8614644.html","width":125,"caption":"","height":144});
															thumbnails[8703465] = clik.newPhoto({"id":8703465,"src":"IMG_6538Websitev11SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_8703465.html","width":125,"caption":"","height":144});
															thumbnails[8703469] = clik.newPhoto({"id":8703469,"src":"IMG_6284v12SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_8703469.html","width":125,"caption":"","height":144});
															thumbnails[8703472] = clik.newPhoto({"id":8703472,"src":"IMG_6514Websitev101SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_8703472.html","width":125,"caption":"","height":144});
															thumbnails[8703473] = clik.newPhoto({"id":8703473,"src":"IMG_6496Websitev102SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_8703473.html","width":125,"caption":"","height":144});
															thumbnails[8710483] = clik.newPhoto({"id":8710483,"src":"IMG_6276Websitev13SQR_thumb.jpg","galleries_id":455348,"server_id":18,"link":"photo_8710483.html","width":125,"caption":"","height":144});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[455348] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibition","link":"gallery.html","maxRecords":0.0,"photoIDs":[4837793.0,4837844.0,4837848.0,4837852.0,4837859.0,4837863.0,5637855.0,5637858.0,5640595.0,5640610.0,8614644.0,8703465.0,8703469.0,8703472.0,8703473.0,8710483.0],"skipIndex":0,"section_code":"gallery","featured_images":"8710483,8703473,8703472,8703469,8703465,8614644,5640610,5640595,5637858,5637855","id":455348,"singleSection":true});				  						galleries[390365] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portfolios","link":"section332020.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"section332020","featured_images":"","id":390365,"singleSection":true});				  						galleries[275516] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Close to Home","link":"section463658_275516.html","maxRecords":0.0,"photoIDs":[4824203.0,4824196.0,4824200.0,4824192.0,4824191.0,4824193.0,4824198.0,4824202.0,4824201.0,4877229.0,4878802.0,6450343.0],"skipIndex":0,"section_code":"section463658","featured_images":4824203.0,"id":275516,"singleSection":false});				  						galleries[276272] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Heritage","link":"section463658_276272.html","maxRecords":0.0,"photoIDs":[4881061.0,4838285.0,4838288.0,4838291.0,4838296.0,5256922.0,5256926.0,5256929.0,5256931.0,5256978.0,7204587.0,6450589.0,6450591.0],"skipIndex":0,"section_code":"section463658","featured_images":"7204587,6450591,6450589,5256978,5256931,5256929,5256926,5256922,4881061,4838296","id":276272,"singleSection":false});				  						galleries[275517] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cote Basque 2009","link":"section463658_275517.html","maxRecords":0.0,"photoIDs":[4825671.0,5099693.0,4825665.0,4827372.0,4827375.0,4827373.0,4827374.0,4827377.0,4825672.0,4878798.0,6613022.0,6613027.0,6870139.0,6870323.0,6979382.0],"skipIndex":0,"section_code":"section463658","featured_images":"6979382,6870323,6870139,6613027,6613022,5099693,4878798,4827377,4827375,4827374","id":275517,"singleSection":false});				  						galleries[275710] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"New Work","link":"section331314.html","maxRecords":0.0,"photoIDs":[9075076.0,8542970.0,8550471.0,8542973.0,8542979.0,8542976.0,8550478.0,8550479.0,8542981.0,8550480.0,8550481.0],"skipIndex":0,"section_code":"section331314","featured_images":"9075076,8550481,8550480,8550479,8550478,8550471,8542981,8542979,8542976,8542973","id":275710,"singleSection":true});				  						galleries[293972] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cotentin 2009","link":"section463658_293972.html","maxRecords":0.0,"photoIDs":[5268269.0,5214938.0,5221006.0,5221895.0,5221906.0,5238405.0,5238407.0,5287481.0,5268268.0,5214942.0,6904667.0],"skipIndex":0,"section_code":"section463658","featured_images":"6904667,5287481,5268269,5268268,5238407,5238405,5221906,5221895,5221006,5214942","id":293972,"singleSection":false});				  						galleries[275514] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Bretagne Normandie","link":"section463658_275514.html","maxRecords":0.0,"photoIDs":[4879395.0,4879398.0,4842040.0,4842045.0,4842048.0,4879399.0,4842050.0,4842450.0,4842447.0,4842452.0,4842453.0,5637844.0,5637845.0,5637850.0,5637851.0],"skipIndex":0,"section_code":"section463658","featured_images":"5637851,5637850,5637845,5637844,4879399,4879398,4879395,4842453,4842452,4842450","id":275514,"singleSection":false});				  						galleries[275518] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Netherlands","link":"section463658_275518.html","maxRecords":0.0,"photoIDs":[4827882.0,4827992.0,4827993.0,4881056.0,4991287.0,4991290.0,4991291.0,4991293.0,4991294.0,5054519.0,5106090.0,6450349.0,8550476.0,7077137.0,7077139.0,7077134.0,6613113.0,6868714.0],"skipIndex":0,"section_code":"section463658","featured_images":"8550476,7077139,7077137,7077134,6868714,6613113,6450349,5106090,5054519,4991294","id":275518,"singleSection":false});				  						galleries[426172] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cornwall 2011","link":"section463658_426172.html","maxRecords":0.0,"photoIDs":[7922808.0,7922809.0,7922811.0,7922813.0,7922818.0,7922820.0,7922822.0,7922823.0,7922824.0,7922827.0,7922829.0],"skipIndex":0,"section_code":"section463658","featured_images":"7922829,7922827,7922824,7922823,7922822,7922820,7922818,7922813,7922811,7922809","id":426172,"singleSection":false});				  						galleries[450033] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"section463658_450033.html","maxRecords":0.0,"photoIDs":[7577092.0,7577091.0,7577090.0,6613114.0],"skipIndex":0,"section_code":"section463658","featured_images":"7577092,7577091,7577090,6613114","id":450033,"singleSection":false});				  						galleries[362274] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Waddenzee","link":"section463658_362274.html","maxRecords":0.0,"photoIDs":[4827542.0,4827538.0,4828128.0,6450346.0,5113558.0,5135422.0,6450278.0,6613053.0,6451816.0,6613039.0,6617565.0,6450347.0,7577088.0,8975662.0],"skipIndex":0,"section_code":"section463658","featured_images":"8975662,7577088,6617565,6613053,6613039,6451816,6450347,6450346,6450278,5135422","id":362274,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9075076,7922808,4825671,7922809,5099693,8542970,4827882,8550471,7922813,4827993,8542973,5221006,4827542,7922820,8542979,8542976,4824196,7922824,7577092,8550479,8542981,8550481,4837844,7577091,5221906,4837848,4837852,6450346,4837859,5113558,5135422,4837863,6450278,4838285,4838288,4838291,6613053,4878798,6451816,6613022,6450343,6613039,6617565,6450347,7577088,8975662,6613114,6870323,5637855,6979382,6450349,5640595,6904667,5640610,8614644,8550476,7204587,7077137,7077139,6450589,5637844,6613113,6450591,6868714,5637850,5637851';
imageSets[2] = '4824203';
imageSets[3] = '4825671,5099693,4827882,4827993,5221006,4824196,4837844,5221906,4837848,4837852,4837859,5135422,4837863,4838285,4838288,4838291,5637855';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/eukendei/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/eukendei/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/eukendei/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/eukendei/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/eukendei/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/eukendei/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/eukendei/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/eukendei/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 += 'section331037.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 && 'section331037' != '') {
					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 = 'Monochrome Journeys: ' + 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> &euro;' + (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 += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
			temp += '<input type="hidden" name="item_name" value="'+item_name+'">';
			ref = '';
			if(this.photo_ref != ''){
				ref = this.photo_ref+' - '+this.caption;
			}
			else{
				ref = this.id+' - '+this.caption;
			}
			price = amount;								temp += '<input type="hidden" name="cmd" value="_cart">';
					temp += '<input type="hidden" name="business" value="laleijdekkers@home.nl">';
					temp += '<input type="hidden" name="currency_code" value="EUR">';
					temp += '<input type="hidden" name="add" value="1">';
													temp += '<input type="hidden" name="amount" value="'+amount+'">';
					temp += '<input type="hidden" name="item_number" value="'+ref+'">';
													temp += '<input type=\"Submit\" value=\"Add to cart\" id=\"paymentAddButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
										temp += '</form>';
										temp += '<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';
				temp += '<input type="hidden" name="cmd" value="_cart">';
				temp += '<input type="hidden" name="business" value="laleijdekkers@home.nl">';
				temp += '<input type="hidden" name="display" value="1">';
				temp += '<input type=\"Submit\" value=\"View cart\" id=\"paymentViewButton\" class=\"button\" onmouseover=\"this.className=\'buttonHi\';\" onmouseout=\"this.className=\'button\';\">';
				temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

			

