window.thumbnails = {};
															thumbnails[5207133] = clik.newPhoto({"id":5207133,"src":"birds_2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[5207136] = clik.newPhoto({"id":5207136,"src":"front_door_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[5211982] = clik.newPhoto({"id":5211982,"src":"openfront_door_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[5207415] = clik.newPhoto({"id":5207415,"src":"dog_bowls_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[5207423] = clik.newPhoto({"id":5207423,"src":"meatballs2_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[5207429] = clik.newPhoto({"id":5207429,"src":"kitchen_sink_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[5207411] = clik.newPhoto({"id":5207411,"src":"ashtray_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":71});
															thumbnails[5207138] = clik.newPhoto({"id":5207138,"src":"lounge_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":71});
															thumbnails[5207426] = clik.newPhoto({"id":5207426,"src":"bedroom3_thumb.jpg","galleries_id":"","server_id":18,"link":"#","width":130,"caption":"","height":70});
															thumbnails[6487479] = clik.newPhoto({"id":6487479,"src":"GlennMIller_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487479.html","width":130,"caption":"15th December, 1944 (Glenn Miller)","height":98});
															thumbnails[5589945] = clik.newPhoto({"id":5589945,"src":"TATTOOTOMweb2_thumb.jpg","galleries_id":317010,"server_id":18,"link":"photo_5589945.html","width":130,"caption":"Tattoo Tom","height":164});
															thumbnails[8448625] = clik.newPhoto({"id":8448625,"src":"1_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448625.html","width":100,"caption":"His","height":75});
															thumbnails[8488528] = clik.newPhoto({"id":8488528,"src":"32_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488528.html","width":130,"caption":"","height":106});
															thumbnails[6487318] = clik.newPhoto({"id":6487318,"src":"EddieCochran_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487318.html","width":130,"caption":"17th April, 1960 (Eddie Cochran)","height":98});
															thumbnails[5590094] = clik.newPhoto({"id":5590094,"src":"tweenywed_thumb.jpg","galleries_id":317010,"server_id":18,"link":"photo_5590094.html","width":130,"caption":"Tweeny","height":162});
															thumbnails[8448627] = clik.newPhoto({"id":8448627,"src":"2_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448627.html","width":100,"caption":"His","height":75});
															thumbnails[8488541] = clik.newPhoto({"id":8488541,"src":"14_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488541.html","width":130,"caption":"","height":106});
															thumbnails[6487605] = clik.newPhoto({"id":6487605,"src":"Johnnykidd_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487605.html","width":130,"caption":"7th October, 1966 (Johnny Kidd)","height":98});
															thumbnails[5590202] = clik.newPhoto({"id":5590202,"src":"daveweb_thumb.jpg","galleries_id":317010,"server_id":18,"link":"photo_5590202.html","width":130,"caption":"Nozbig","height":162});
															thumbnails[8448628] = clik.newPhoto({"id":8448628,"src":"3_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448628.html","width":100,"caption":"His","height":75});
															thumbnails[8488544] = clik.newPhoto({"id":8488544,"src":"211_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488544.html","width":130,"caption":"","height":106});
															thumbnails[6487602] = clik.newPhoto({"id":6487602,"src":"JoeMeek_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487602.html","width":130,"caption":"3rd February, 1967 (Joe Meek)","height":98});
															thumbnails[5590215] = clik.newPhoto({"id":5590215,"src":"Alanweb_thumb.jpg","galleries_id":317010,"server_id":18,"link":"photo_5590215.html","width":130,"caption":"Alan","height":162});
															thumbnails[8448629] = clik.newPhoto({"id":8448629,"src":"4_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448629.html","width":100,"caption":"His","height":75});
															thumbnails[6487317] = clik.newPhoto({"id":6487317,"src":"BrianJones_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487317.html","width":130,"caption":"3rd July, 1969 (Brian Jones)","height":98});
															thumbnails[8448631] = clik.newPhoto({"id":8448631,"src":"5_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448631.html","width":100,"caption":"His","height":75});
															thumbnails[8488555] = clik.newPhoto({"id":8488555,"src":"b_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488555.html","width":130,"caption":"","height":106});
															thumbnails[6487582] = clik.newPhoto({"id":6487582,"src":"JimiHendrix_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487582.html","width":130,"caption":"18th September, 1970 (Jimi Hendrix)","height":98});
															thumbnails[8448632] = clik.newPhoto({"id":8448632,"src":"6_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448632.html","width":100,"caption":"His","height":75});
															thumbnails[8488558] = clik.newPhoto({"id":8488558,"src":"butcherholler_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488558.html","width":130,"caption":"","height":104});
															thumbnails[6487583] = clik.newPhoto({"id":6487583,"src":"JimMorrison_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487583.html","width":130,"caption":"3rd July, 1971 (Jim Morrison)","height":98});
															thumbnails[8448633] = clik.newPhoto({"id":8448633,"src":"7_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448633.html","width":100,"caption":"His","height":75});
															thumbnails[8488560] = clik.newPhoto({"id":8488560,"src":"48_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488560.html","width":130,"caption":"","height":107});
															thumbnails[6487316] = clik.newPhoto({"id":6487316,"src":"BIllyMurcia_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487316.html","width":130,"caption":"6th November, 1972 (Billy Murcia)","height":98});
															thumbnails[8448635] = clik.newPhoto({"id":8448635,"src":"8_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448635.html","width":100,"caption":"His","height":75});
															thumbnails[8488563] = clik.newPhoto({"id":8488563,"src":"12_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488563.html","width":130,"caption":"","height":106});
															thumbnails[6487606] = clik.newPhoto({"id":6487606,"src":"Keith_Cass_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487606.html","width":130,"caption":"24th July, 1974 (Cass Elliott) & 7th September, 1978 (Keith Moon)","height":98});
															thumbnails[8448637] = clik.newPhoto({"id":8448637,"src":"9_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448637.html","width":100,"caption":"His","height":75});
															thumbnails[8488569] = clik.newPhoto({"id":8488569,"src":"42_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488569.html","width":130,"caption":"","height":108});
															thumbnails[6487607] = clik.newPhoto({"id":6487607,"src":"MarcBOlan_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487607.html","width":130,"caption":"16th September, 1977 (Marc Bolan)","height":98});
															thumbnails[8448671] = clik.newPhoto({"id":8448671,"src":"11_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448671.html","width":100,"caption":"Hers","height":75});
															thumbnails[8488570] = clik.newPhoto({"id":8488570,"src":"paradisepark3_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488570.html","width":130,"caption":"","height":107});
															thumbnails[6487480] = clik.newPhoto({"id":6487480,"src":"IanCurtis_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487480.html","width":130,"caption":"18th May, 1980 (Ian Curtis)","height":98});
															thumbnails[8448672] = clik.newPhoto({"id":8448672,"src":"21_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448672.html","width":100,"caption":"Hers","height":75});
															thumbnails[8488581] = clik.newPhoto({"id":8488581,"src":"43_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488581.html","width":130,"caption":"","height":106});
															thumbnails[6487609] = clik.newPhoto({"id":6487609,"src":"Serge_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487609.html","width":130,"caption":"2nd March, 1991 (Serge Gainsbourg)","height":98});
															thumbnails[8448673] = clik.newPhoto({"id":8448673,"src":"31_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448673.html","width":100,"caption":"Hers","height":75});
															thumbnails[8488595] = clik.newPhoto({"id":8488595,"src":"paradisepark5-croppedstraight_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488595.html","width":130,"caption":"","height":104});
															thumbnails[6487468] = clik.newPhoto({"id":6487468,"src":"FreddieMercury_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487468.html","width":130,"caption":"24th November, 1991 (Freddie Mercury)","height":98});
															thumbnails[8448674] = clik.newPhoto({"id":8448674,"src":"41_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448674.html","width":100,"caption":"Hers","height":75});
															thumbnails[8488583] = clik.newPhoto({"id":8488583,"src":"59_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488583.html","width":130,"caption":"","height":106});
															thumbnails[6487608] = clik.newPhoto({"id":6487608,"src":"richey-edwards_thumb.jpg","galleries_id":357347,"server_id":18,"link":"photo_6487608.html","width":130,"caption":"1st February, 1995 (Richey Edwards)","height":98});
															thumbnails[8448675] = clik.newPhoto({"id":8448675,"src":"51_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448675.html","width":100,"caption":"Hers","height":75});
															thumbnails[8488567] = clik.newPhoto({"id":8488567,"src":"82_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488567.html","width":130,"caption":"","height":106});
															thumbnails[8448676] = clik.newPhoto({"id":8448676,"src":"61_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448676.html","width":100,"caption":"Hers","height":75});
															thumbnails[8488578] = clik.newPhoto({"id":8488578,"src":"paradisepark4_thumb.jpg","galleries_id":448807,"server_id":18,"link":"photo_8488578.html","width":130,"caption":"","height":104});
															thumbnails[8448677] = clik.newPhoto({"id":8448677,"src":"71_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448677.html","width":100,"caption":"Hers","height":75});
															thumbnails[8448678] = clik.newPhoto({"id":8448678,"src":"81_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448678.html","width":100,"caption":"Hers","height":75});
															thumbnails[8448679] = clik.newPhoto({"id":8448679,"src":"91_thumb.jpg","galleries_id":447169,"server_id":18,"link":"photo_8448679.html","width":100,"caption":"Hers","height":75});
															thumbnails[7150707] = clik.newPhoto({"id":7150707,"src":"rhythmaceshnb_thumb.jpg","galleries_id":362406,"server_id":18,"link":"photo_7150707.html","width":130,"caption":"Image used album art work and t-shirts","height":141});
															thumbnails[7150711] = clik.newPhoto({"id":7150711,"src":"darwin_thumb.jpg","galleries_id":362406,"server_id":18,"link":"photo_7150711.html","width":130,"caption":"","height":114});
															thumbnails[7150712] = clik.newPhoto({"id":7150712,"src":"trahobnailalbum_thumb.jpg","galleries_id":362406,"server_id":18,"link":"photo_7150712.html","width":130,"caption":"","height":130});
															thumbnails[7150756] = clik.newPhoto({"id":7150756,"src":"tryptic1_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7150756.html","width":130,"caption":"Julius Caesar (still)","height":43});
															thumbnails[7177651] = clik.newPhoto({"id":7177651,"src":"fo-sho22_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7177651.html","width":130,"caption":"Image used within the film","height":87});
															thumbnails[7177654] = clik.newPhoto({"id":7177654,"src":"IMG_3638_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7177654.html","width":130,"caption":"Julius Caesar (still)","height":195});
															thumbnails[7177656] = clik.newPhoto({"id":7177656,"src":"tryptich-21_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7177656.html","width":130,"caption":"Julius Caesar (still)","height":43});
															thumbnails[7177657] = clik.newPhoto({"id":7177657,"src":"IMG_3493_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7177657.html","width":130,"caption":"Julius Caesar (still)","height":87});
															thumbnails[7177663] = clik.newPhoto({"id":7177663,"src":"IMG_3532_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7177663.html","width":130,"caption":"Julius Caesar (still)","height":87});
															thumbnails[7177667] = clik.newPhoto({"id":7177667,"src":"IMG_3553_thumb.jpg","galleries_id":386527,"server_id":18,"link":"photo_7177667.html","width":130,"caption":"Julius Caesar (still)","height":195});
															thumbnails[8448582] = clik.newPhoto({"id":8448582,"src":"for-sian_thumb.jpg","galleries_id":447167,"server_id":18,"link":"photo_8448582.html","width":67,"caption":"","height":100});
															thumbnails[8448683] = clik.newPhoto({"id":8448683,"src":"for-sian1_thumb.jpg","galleries_id":447167,"server_id":18,"link":"photo_8448683.html","width":67,"caption":"Book Cover Image ","height":100});
															thumbnails[8448687] = clik.newPhoto({"id":8448687,"src":"grazia-1_thumb.jpg","galleries_id":386526,"server_id":18,"link":"photo_8448687.html","width":130,"caption":"","height":87});
															thumbnails[8448690] = clik.newPhoto({"id":8448690,"src":"grazia_thumb.jpg","galleries_id":386526,"server_id":18,"link":"photo_8448690.html","width":130,"caption":"","height":87});
															thumbnails[8448559] = clik.newPhoto({"id":8448559,"src":"folk_fest_thumb.jpg","galleries_id":447163,"server_id":18,"link":"photo_8448559.html","width":130,"caption":"","height":87});
															thumbnails[8448567] = clik.newPhoto({"id":8448567,"src":"folk-festival-3_thumb.jpg","galleries_id":447163,"server_id":18,"link":"photo_8448567.html","width":130,"caption":"","height":87});
															thumbnails[8448563] = clik.newPhoto({"id":8448563,"src":"folk_fest2_thumb.jpg","galleries_id":447163,"server_id":18,"link":"photo_8448563.html","width":130,"caption":"","height":195});
															thumbnails[8448565] = clik.newPhoto({"id":8448565,"src":"folk-fest-4_thumb.jpg","galleries_id":447163,"server_id":18,"link":"photo_8448565.html","width":130,"caption":"","height":195});
															thumbnails[8448572] = clik.newPhoto({"id":8448572,"src":"folk-fest-6_thumb.jpg","galleries_id":447163,"server_id":18,"link":"photo_8448572.html","width":130,"caption":"","height":195});
															thumbnails[6614746] = clik.newPhoto({"id":6614746,"src":"chris-wood-handmade-life_B04C7399-24E8-5EC4-4FDF9410A9148EED_thumb.jpg","galleries_id":362406,"server_id":18,"link":"photo_6614746.html","width":130,"caption":"Chris Wood - Handmade Life","height":130});
															thumbnails[6614718] = clik.newPhoto({"id":6614718,"src":"features2_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_6614718.html","width":130,"caption":"The Features","height":87});
															thumbnails[8448697] = clik.newPhoto({"id":8448697,"src":"lady-fortune_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448697.html","width":93,"caption":"Lady Fortune","height":130});
															thumbnails[8448698] = clik.newPhoto({"id":8448698,"src":"lady-fortune2_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448698.html","width":130,"caption":"Lady Fortune","height":87});
															thumbnails[8448699] = clik.newPhoto({"id":8448699,"src":"Lady-Fortune3_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448699.html","width":87,"caption":"Lady Fortune","height":130});
															thumbnails[8448700] = clik.newPhoto({"id":8448700,"src":"nashville5_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448700.html","width":130,"caption":"Nashville Pussy","height":87});
															thumbnails[8448701] = clik.newPhoto({"id":8448701,"src":"ninepoundhammer_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448701.html","width":130,"caption":"Nine Pound Hammer","height":87});
															thumbnails[8448702] = clik.newPhoto({"id":8448702,"src":"zombina_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448702.html","width":130,"caption":"","height":87});
															thumbnails[8448703] = clik.newPhoto({"id":8448703,"src":"billybragg_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448703.html","width":87,"caption":"Billy Bragg","height":130});
															thumbnails[8448705] = clik.newPhoto({"id":8448705,"src":"adrian-edmundson_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448705.html","width":87,"caption":"Adrian Edmondson","height":130});
															thumbnails[8448706] = clik.newPhoto({"id":8448706,"src":"chriswood_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448706.html","width":87,"caption":"Chris Wood","height":130});
															thumbnails[8448707] = clik.newPhoto({"id":8448707,"src":"_kristadetor_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448707.html","width":87,"caption":"Krista Detor","height":130});
															thumbnails[8448708] = clik.newPhoto({"id":8448708,"src":"kristadetor3_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448708.html","width":87,"caption":"Krista Detor","height":130});
															thumbnails[8448709] = clik.newPhoto({"id":8448709,"src":"sam-baker2_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448709.html","width":130,"caption":"Sam Baker","height":87});
															thumbnails[8448710] = clik.newPhoto({"id":8448710,"src":"emily-smith_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448710.html","width":87,"caption":"Emily Smith","height":130});
															thumbnails[8448711] = clik.newPhoto({"id":8448711,"src":"features_thumb.jpg","galleries_id":362403,"server_id":18,"link":"photo_8448711.html","width":130,"caption":"The Features","height":87});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[448807] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A Music So Subtle","link":"gallery_448807.html","maxRecords":0.0,"photoIDs":[8488528.0,8488541.0,8488544.0,8488555.0,8488558.0,8488560.0,8488563.0,8488569.0,8488570.0,8488581.0,8488595.0,8488583.0,8488567.0,8488578.0],"skipIndex":0,"section_code":"gallery","featured_images":8488567.0,"id":448807,"singleSection":false});				  						galleries[362406] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Album Covers","link":"section430016_362406.html","maxRecords":0.0,"photoIDs":[7150707.0,7150711.0,7150712.0,6614746.0],"skipIndex":0,"section_code":"section430016","featured_images":6614746.0,"id":362406,"singleSection":false});				  						galleries[447169] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Come Home, Don't Forget","link":"gallery_447169.html","maxRecords":0.0,"photoIDs":[8448625.0,8448627.0,8448628.0,8448629.0,8448631.0,8448632.0,8448633.0,8448635.0,8448637.0,8448671.0,8448672.0,8448673.0,8448674.0,8448675.0,8448676.0,8448677.0,8448678.0,8448679.0],"skipIndex":0,"section_code":"gallery","featured_images":"8448679,8448678,8448677,8448676,8448675,8448674,8448673,8448672,8448671,8448637","id":447169,"singleSection":false});				  						galleries[386526] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Events","link":"section430016_386526.html","maxRecords":0.0,"photoIDs":[8448687.0,8448690.0],"skipIndex":0,"section_code":"section430016","featured_images":"8448690,8448687","id":386526,"singleSection":false});				  						galleries[386527] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Film","link":"section430016_386527.html","maxRecords":0.0,"photoIDs":[7150756.0,7177651.0,7177654.0,7177656.0,7177657.0,7177663.0,7177667.0],"skipIndex":0,"section_code":"section430016","featured_images":"7177667,7177663,7177657,7177656,7177654,7177651,7150756","id":386527,"singleSection":false});				  						galleries[447167] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"section430016_447167.html","maxRecords":0.0,"photoIDs":[8448582.0,8448683.0],"skipIndex":0,"section_code":"section430016","featured_images":"8448683,8448582","id":447167,"singleSection":false});				  							galleries[362403] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Music","link":"section430017.html#galleries_id=362403","maxRecords":0.0,"photoIDs":[6614718.0,8448697.0,8448698.0,8448699.0,8448700.0,8448701.0,8448702.0,8448703.0,8448705.0,8448706.0,8448707.0,8448708.0,8448709.0,8448710.0,8448711.0],"skipIndex":true,"section_code":"section430017","featured_images":"8448705,6614718","id":362403,"singleSection":true});				  						galleries[447163] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Shrewsbury Folk Festival","link":"section430016_447163.html","maxRecords":0.0,"photoIDs":[8448559.0,8448567.0,8448563.0,8448565.0,8448572.0],"skipIndex":0,"section_code":"section430016","featured_images":8448559.0,"id":447163,"singleSection":false});				  						galleries[357347] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Just Passing Through","link":"gallery_357347.html","maxRecords":0.0,"photoIDs":[6487479.0,6487318.0,6487605.0,6487602.0,6487317.0,6487582.0,6487583.0,6487316.0,6487606.0,6487607.0,6487480.0,6487609.0,6487468.0,6487608.0],"skipIndex":0,"section_code":"gallery","featured_images":"6487609,6487608,6487607,6487606,6487605,6487602,6487583,6487582,6487480,6487479","id":357347,"singleSection":false});				  						galleries[317010] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Almost Grown","link":"gallery_317010.html","maxRecords":0.0,"photoIDs":[5589945.0,5590094.0,5590202.0,5590215.0],"skipIndex":0,"section_code":"gallery","featured_images":5589945.0,"id":317010,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6487582';
imageSets[2] = '8448705,6614718,8448559,5589945,6614746,8488567,5207429';
imageSets[3] = '8488595,8488583,8488581,8488578,8488570,8488569,8488567,8488563,8488560,8488558,8488555,8488544,8488541,8488528,8448711,8448710,8448709,8448708,8448707,8448706,8448705,8448703,8448702,8448701,8448700,8448699,8448698,8448697,8448690,8448687,8448683,8448679,8448678,8448677,8448676,8448675,8448674,8448673,8448672,8448671,8448637,8448635,8448633,8448632,8448631,8448629,8448628,8448627,8448625,8448582';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/careygough/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/careygough/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/careygough/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/careygough/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/careygough/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/careygough/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/careygough/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/careygough/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 = 'Carey Gough\nDocumentary Photographer: ' + 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>Carey Gough </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;
	}
}

			

