window.thumbnails = {};
															thumbnails[3562313] = clik.newPhoto({"id":3562313,"src":"coming_soon_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":26});
															thumbnails[6237015] = clik.newPhoto({"id":6237015,"src":"6a00d83451cc7469e20133f0e8a19d970b-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237015.html","width":130,"caption":"","height":87});
															thumbnails[6237016] = clik.newPhoto({"id":6237016,"src":"6a00d83451cc7469e20133f0e8a22e970b-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237016.html","width":130,"caption":"","height":195});
															thumbnails[6237017] = clik.newPhoto({"id":6237017,"src":"6a00d83451cc7469e20133f0e8a44a970b-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237017.html","width":130,"caption":"","height":87});
															thumbnails[6237019] = clik.newPhoto({"id":6237019,"src":"6a00d83451cc7469e20133f0e89e33970b-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237019.html","width":130,"caption":"","height":87});
															thumbnails[6237021] = clik.newPhoto({"id":6237021,"src":"6a00d83451cc7469e20133f0e89efd970b-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237021.html","width":130,"caption":"","height":195});
															thumbnails[6237024] = clik.newPhoto({"id":6237024,"src":"6a00d83451cc7469e201348412f9f3970c-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237024.html","width":130,"caption":"","height":87});
															thumbnails[6237025] = clik.newPhoto({"id":6237025,"src":"6a00d83451cc7469e201348412fd5e970c-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237025.html","width":130,"caption":"","height":195});
															thumbnails[6237026] = clik.newPhoto({"id":6237026,"src":"6a00d83451cc7469e201348412fe0d970c-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237026.html","width":130,"caption":"","height":87});
															thumbnails[6237029] = clik.newPhoto({"id":6237029,"src":"6a00d83451cc7469e201348412ff41970c-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237029.html","width":130,"caption":"","height":195});
															thumbnails[6237083] = clik.newPhoto({"id":6237083,"src":"6a00d83451cc7469e201348412ffea970c-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237083.html","width":130,"caption":"","height":87});
															thumbnails[6237086] = clik.newPhoto({"id":6237086,"src":"6a00d83451cc7469e20134841300c3970c-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237086.html","width":130,"caption":"","height":123});
															thumbnails[6237088] = clik.newPhoto({"id":6237088,"src":"6a00d83451cc7469e2013484130068970c-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237088.html","width":130,"caption":"","height":87});
															thumbnails[6237091] = clik.newPhoto({"id":6237091,"src":"6a00d83451cc7469e2013484130111970c-800wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237091.html","width":130,"caption":"","height":87});
															thumbnails[6237098] = clik.newPhoto({"id":6237098,"src":"6a00d83451cc7469e201348412f948970c-500wi1_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237098.html","width":130,"caption":"","height":123});
															thumbnails[3556132] = clik.newPhoto({"id":3556132,"src":"09-2-Street-Tannin001_thumb.jpg","galleries_id":217584,"server_id":15,"link":"photo_3556132.html","width":130,"caption":"","height":130});
															thumbnails[3761978] = clik.newPhoto({"id":3761978,"src":"Sheds-Vol-1-No-1_thumb.jpg","galleries_id":217585,"server_id":15,"link":"photo_3761978.html","width":130,"caption":"","height":130});
															thumbnails[4323859] = clik.newPhoto({"id":4323859,"src":"09-7_Parklife_V1_n1_thumb.jpg","galleries_id":229463,"server_id":15,"link":"photo_4323859.html","width":130,"caption":"","height":92});
															thumbnails[4415178] = clik.newPhoto({"id":4415178,"src":"Test-run-001web_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_4415178.html","width":130,"caption":"Traditional tannin-toned cyanotype on handmade paper.","height":94});
															thumbnails[4867509] = clik.newPhoto({"id":4867509,"src":"tinted004-web_thumb.jpg","galleries_id":258636,"server_id":15,"link":"photo_4867509.html","width":130,"caption":"Hand Printed & Tinted B&W","height":186});
															thumbnails[6237014] = clik.newPhoto({"id":6237014,"src":"6a00d83451cc7469e20133f0e8a5f3970b-500wi_thumb.jpg","galleries_id":344503,"server_id":15,"link":"photo_6237014.html","width":130,"caption":"","height":123});
															thumbnails[7985054] = clik.newPhoto({"id":7985054,"src":"zEROiNHIBITION_01_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985054.html","width":130,"caption":"","height":87});
															thumbnails[7985072] = clik.newPhoto({"id":7985072,"src":"zEROiNHIBITION_10_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985072.html","width":130,"caption":"","height":195});
															thumbnails[8472957] = clik.newPhoto({"id":8472957,"src":"Capture_thumb.jpg","galleries_id":448196,"server_id":15,"link":"photo_8472957.html","width":130,"caption":"Boyz Cover 2011","height":171});
															thumbnails[8806597] = clik.newPhoto({"id":8806597,"src":"6a00d83451cc7469e2015391d669ba970b-500wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806597.html","width":130,"caption":"","height":195});
															thumbnails[7985088] = clik.newPhoto({"id":7985088,"src":"zEROiNHIBITION_11_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985088.html","width":130,"caption":"","height":195});
															thumbnails[3556405] = clik.newPhoto({"id":3556405,"src":"09-3-Nightlife-Vol-1-No002_thumb.jpg","galleries_id":217584,"server_id":15,"link":"photo_3556405.html","width":130,"caption":"","height":130});
															thumbnails[3761983] = clik.newPhoto({"id":3761983,"src":"Sheds-Vol-1-No-2_thumb.jpg","galleries_id":217585,"server_id":15,"link":"photo_3761983.html","width":130,"caption":"","height":130});
															thumbnails[4323862] = clik.newPhoto({"id":4323862,"src":"09-7_Parklife_V1_n2_thumb.jpg","galleries_id":229463,"server_id":15,"link":"photo_4323862.html","width":130,"caption":"","height":92});
															thumbnails[4851068] = clik.newPhoto({"id":4851068,"src":"tinted002_web_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_4851068.html","width":130,"caption":"hand printed and tinted B&W","height":185});
															thumbnails[7985057] = clik.newPhoto({"id":7985057,"src":"zEROiNHIBITION_02_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985057.html","width":130,"caption":"","height":195});
															thumbnails[7985074] = clik.newPhoto({"id":7985074,"src":"zEROiNHIBITION_12_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985074.html","width":130,"caption":"","height":195});
															thumbnails[8472981] = clik.newPhoto({"id":8472981,"src":"Capture2_thumb.jpg","galleries_id":448196,"server_id":15,"link":"photo_8472981.html","width":130,"caption":"","height":171});
															thumbnails[8473423] = clik.newPhoto({"id":8473423,"src":"09-11_card001_thumb.jpg","galleries_id":258636,"server_id":15,"link":"photo_8473423.html","width":130,"caption":"","height":181});
															thumbnails[8806599] = clik.newPhoto({"id":8806599,"src":"6a00d83451cc7469e2015435a9cda6970c-500wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806599.html","width":130,"caption":"","height":87});
															thumbnails[3556409] = clik.newPhoto({"id":3556409,"src":"09-3-Nightlife-Vol-1-No003_thumb.jpg","galleries_id":217584,"server_id":15,"link":"photo_3556409.html","width":130,"caption":"","height":130});
															thumbnails[3761998] = clik.newPhoto({"id":3761998,"src":"Sheds-Vol-1-No-3_thumb.jpg","galleries_id":217585,"server_id":15,"link":"photo_3761998.html","width":130,"caption":"","height":130});
															thumbnails[4323863] = clik.newPhoto({"id":4323863,"src":"09-7_Parklife_V1_n3_thumb.jpg","galleries_id":229463,"server_id":15,"link":"photo_4323863.html","width":130,"caption":"","height":92});
															thumbnails[4851069] = clik.newPhoto({"id":4851069,"src":"tinted003_web_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_4851069.html","width":130,"caption":"hand printed and tinted B&W","height":185});
															thumbnails[7985059] = clik.newPhoto({"id":7985059,"src":"zEROiNHIBITION_03_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985059.html","width":130,"caption":"","height":87});
															thumbnails[7985076] = clik.newPhoto({"id":7985076,"src":"zEROiNHIBITION_13_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985076.html","width":130,"caption":"","height":194});
															thumbnails[8473424] = clik.newPhoto({"id":8473424,"src":"09-11_card002_thumb.jpg","galleries_id":258636,"server_id":15,"link":"photo_8473424.html","width":130,"caption":"","height":182});
															thumbnails[8806590] = clik.newPhoto({"id":8806590,"src":"6a00d83451cc7469e2014e8bca281c970d-800wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806590.html","width":130,"caption":"","height":195});
															thumbnails[3556413] = clik.newPhoto({"id":3556413,"src":"09-3-Nightlife-Vol-1-No004_thumb.jpg","galleries_id":217584,"server_id":15,"link":"photo_3556413.html","width":130,"caption":"","height":130});
															thumbnails[3561900] = clik.newPhoto({"id":3561900,"src":"09-2-doodle-1-colour_thumb.jpg","galleries_id":258636,"server_id":15,"link":"photo_3561900.html","width":130,"caption":"","height":94});
															thumbnails[3762001] = clik.newPhoto({"id":3762001,"src":"Sheds-Vol-1-No-4_thumb.jpg","galleries_id":217585,"server_id":15,"link":"photo_3762001.html","width":130,"caption":"","height":130});
															thumbnails[4323866] = clik.newPhoto({"id":4323866,"src":"09-7_Parklife_V1_n4_thumb.jpg","galleries_id":229463,"server_id":15,"link":"photo_4323866.html","width":130,"caption":"","height":92});
															thumbnails[6159735] = clik.newPhoto({"id":6159735,"src":"Hand_prints001_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_6159735.html","width":130,"caption":"","height":180});
															thumbnails[7985060] = clik.newPhoto({"id":7985060,"src":"zEROiNHIBITION_04_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985060.html","width":130,"caption":"","height":195});
															thumbnails[7985079] = clik.newPhoto({"id":7985079,"src":"zEROiNHIBITION_14_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985079.html","width":130,"caption":"","height":87});
															thumbnails[8806614] = clik.newPhoto({"id":8806614,"src":"6a00d83451cc7469e2015435a9cfd2970c-800wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806614.html","width":130,"caption":"","height":195});
															thumbnails[3556414] = clik.newPhoto({"id":3556414,"src":"09-3-Nightlife-Vol-1-No005_thumb.jpg","galleries_id":217584,"server_id":15,"link":"photo_3556414.html","width":130,"caption":"","height":130});
															thumbnails[3557012] = clik.newPhoto({"id":3557012,"src":"09-2-doodle-1_thumb.jpg","galleries_id":258636,"server_id":15,"link":"photo_3557012.html","width":130,"caption":"","height":94});
															thumbnails[3762006] = clik.newPhoto({"id":3762006,"src":"Sheds-Vol-1-No-5_thumb.jpg","galleries_id":217585,"server_id":15,"link":"photo_3762006.html","width":130,"caption":"","height":130});
															thumbnails[4323867] = clik.newPhoto({"id":4323867,"src":"09-7_Parklife_V1_n5_thumb.jpg","galleries_id":229463,"server_id":15,"link":"photo_4323867.html","width":130,"caption":"","height":92});
															thumbnails[6159741] = clik.newPhoto({"id":6159741,"src":"Hand_prints002_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_6159741.html","width":130,"caption":"","height":185});
															thumbnails[7985061] = clik.newPhoto({"id":7985061,"src":"zEROiNHIBITION_05_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985061.html","width":130,"caption":"","height":87});
															thumbnails[7985081] = clik.newPhoto({"id":7985081,"src":"zEROiNHIBITION_15_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985081.html","width":130,"caption":"","height":194});
															thumbnails[3556420] = clik.newPhoto({"id":3556420,"src":"09-3-Nightlife-Vol-1-No006_thumb.jpg","galleries_id":217584,"server_id":15,"link":"photo_3556420.html","width":130,"caption":"","height":130});
															thumbnails[3562258] = clik.newPhoto({"id":3562258,"src":"09-2-doodle-2_thumb.jpg","galleries_id":258636,"server_id":15,"link":"photo_3562258.html","width":130,"caption":"","height":85});
															thumbnails[3762014] = clik.newPhoto({"id":3762014,"src":"Sheds-Vol-1-No-6_thumb.jpg","galleries_id":217585,"server_id":15,"link":"photo_3762014.html","width":130,"caption":"","height":130});
															thumbnails[4323869] = clik.newPhoto({"id":4323869,"src":"09-7_Parklife_V1_n6_thumb.jpg","galleries_id":229463,"server_id":15,"link":"photo_4323869.html","width":130,"caption":"","height":92});
															thumbnails[6159746] = clik.newPhoto({"id":6159746,"src":"Hand_prints003_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_6159746.html","width":130,"caption":"","height":186});
															thumbnails[7985064] = clik.newPhoto({"id":7985064,"src":"zEROiNHIBITION_06_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985064.html","width":130,"caption":"","height":195});
															thumbnails[7985082] = clik.newPhoto({"id":7985082,"src":"zEROiNHIBITION_16_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985082.html","width":130,"caption":"","height":87});
															thumbnails[8806610] = clik.newPhoto({"id":8806610,"src":"6a00d83451cc7469e2015435a9cb81970c-800wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806610.html","width":130,"caption":"","height":195});
															thumbnails[8806593] = clik.newPhoto({"id":8806593,"src":"6a00d83451cc7469e2014e8bca289f970d-800wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806593.html","width":130,"caption":"","height":195});
															thumbnails[6159750] = clik.newPhoto({"id":6159750,"src":"Hand_prints004_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_6159750.html","width":130,"caption":"","height":179});
															thumbnails[7985066] = clik.newPhoto({"id":7985066,"src":"zEROiNHIBITION_07_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985066.html","width":130,"caption":"","height":195});
															thumbnails[7985084] = clik.newPhoto({"id":7985084,"src":"zEROiNHIBITION_17_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985084.html","width":130,"caption":"","height":195});
															thumbnails[8806616] = clik.newPhoto({"id":8806616,"src":"6a00d83451cc7469e2015435a9d088970c-500wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806616.html","width":130,"caption":"","height":87});
															thumbnails[6159751] = clik.newPhoto({"id":6159751,"src":"Hand_prints006b_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_6159751.html","width":130,"caption":"","height":177});
															thumbnails[7985068] = clik.newPhoto({"id":7985068,"src":"zEROiNHIBITION_08_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985068.html","width":130,"caption":"","height":87});
															thumbnails[7985085] = clik.newPhoto({"id":7985085,"src":"zEROiNHIBITION_18_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985085.html","width":130,"caption":"","height":87});
															thumbnails[8806609] = clik.newPhoto({"id":8806609,"src":"6a00d83451cc7469e2015391d66699970b-500wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806609.html","width":130,"caption":"","height":195});
															thumbnails[6159753] = clik.newPhoto({"id":6159753,"src":"Hand_prints005_thumb.jpg","galleries_id":344502,"server_id":15,"link":"photo_6159753.html","width":130,"caption":"","height":177});
															thumbnails[7985070] = clik.newPhoto({"id":7985070,"src":"zEROiNHIBITION_09_thumb.jpg","galleries_id":429332,"server_id":15,"link":"photo_7985070.html","width":130,"caption":"","height":87});
															thumbnails[8806607] = clik.newPhoto({"id":8806607,"src":"6a00d83451cc7469e2015391d6698c970b-500wi_thumb.jpg","galleries_id":429331,"server_id":15,"link":"photo_8806607.html","width":130,"caption":"","height":87});
															thumbnails[7985086] = clik.newPhoto({"id":7985086,"src":"zEROiNHIBITION_19_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985086.html","width":130,"caption":"","height":195});
															thumbnails[7985089] = clik.newPhoto({"id":7985089,"src":"zEROiNHIBITION_20_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985089.html","width":130,"caption":"","height":87});
															thumbnails[7985132] = clik.newPhoto({"id":7985132,"src":"zEROiNHIBITION_21123_thumb.jpg","galleries_id":429333,"server_id":15,"link":"photo_7985132.html","width":130,"caption":"","height":195});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[429332] = clik.newGallery({"parentGallery":344501,"usePopups":true,"title":"Bathtime","link":"gallery_429332.html","maxRecords":0.0,"photoIDs":[7985054.0,7985057.0,7985059.0,7985060.0,7985061.0,7985064.0,7985066.0,7985068.0,7985070.0],"skipIndex":0,"section_code":"gallery","featured_images":"7985070,7985068,7985066,7985064,7985061,7985060,7985059,7985057,7985054","id":429332,"singleSection":false});				  						galleries[429333] = clik.newGallery({"parentGallery":344501,"usePopups":true,"title":"Thoughts and Observations","link":"gallery_429333.html","maxRecords":0.0,"photoIDs":[7985072.0,7985088.0,7985074.0,7985076.0,7985079.0,7985081.0,7985082.0,7985084.0,7985085.0,7985086.0,7985089.0,7985132.0],"skipIndex":0,"section_code":"gallery","featured_images":"7985088,7985085,7985082,7985074","id":429333,"singleSection":false});				  						galleries[344502] = clik.newGallery({"parentGallery":344501,"usePopups":true,"title":"Alternative Processes","link":"gallery_344502.html","maxRecords":0.0,"photoIDs":[4415178.0,4851068.0,4851069.0,6159735.0,6159741.0,6159746.0,6159750.0,6159751.0,6159753.0],"skipIndex":0,"section_code":"gallery","featured_images":"6159753,6159751,6159750,6159735,4851069,4851068,4415178","id":344502,"singleSection":false});				  						galleries[229463] = clik.newGallery({"parentGallery":443729,"usePopups":true,"title":"Parklife Vol. 1","link":"gallery_229463.html","maxRecords":0.0,"photoIDs":[4323859.0,4323862.0,4323863.0,4323866.0,4323867.0,4323869.0],"skipIndex":0,"section_code":"gallery","featured_images":"4323866,4323863,4323862,4323859","id":229463,"singleSection":false});				  						galleries[443729] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"The Cyantoype Collections","link":"gallery_443729.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4323866,4323863,4323862,4323859,3761998,3761983,3761978,3556420,3556409,3556405,3556132","id":443729,"singleSection":false});				  						galleries[429331] = clik.newGallery({"parentGallery":344501,"usePopups":true,"title":"Beautiful Mag 2011","link":"gallery_429331.html","maxRecords":0.0,"photoIDs":[8806597.0,8806599.0,8806590.0,8806614.0,8806610.0,8806593.0,8806616.0,8806609.0,8806607.0],"skipIndex":0,"section_code":"gallery","featured_images":"8806616,8806607,8806597,8806593,8806590","id":429331,"singleSection":false});				  						galleries[344503] = clik.newGallery({"parentGallery":344501,"usePopups":true,"title":"Beautiful Mag 2010","link":"gallery_344503.html","maxRecords":0.0,"photoIDs":[6237015.0,6237016.0,6237017.0,6237019.0,6237021.0,6237024.0,6237025.0,6237026.0,6237029.0,6237083.0,6237086.0,6237088.0,6237091.0,6237098.0,6237014.0],"skipIndex":0,"section_code":"gallery","featured_images":"6237091,6237029,6237026,6237015,6237014","id":344503,"singleSection":false});				  						galleries[217585] = clik.newGallery({"parentGallery":443729,"usePopups":true,"title":"Sheds Vol. 1","link":"gallery_217585.html","maxRecords":0.0,"photoIDs":[3761978.0,3761983.0,3761998.0,3762001.0,3762006.0,3762014.0],"skipIndex":0,"section_code":"gallery","featured_images":"3761998,3761983,3761978","id":217585,"singleSection":false});				  						galleries[448196] = clik.newGallery({"parentGallery":344501,"usePopups":true,"title":"Boyz 2011","link":"gallery_448196.html","maxRecords":0.0,"photoIDs":[8472957.0,8472981.0],"skipIndex":0,"section_code":"gallery","featured_images":8472957.0,"id":448196,"singleSection":false});				  						galleries[217584] = clik.newGallery({"parentGallery":443729,"usePopups":true,"title":"Nightlife Vol. 1","link":"gallery_217584.html","maxRecords":0.0,"photoIDs":[3556132.0,3556405.0,3556409.0,3556413.0,3556414.0,3556420.0],"skipIndex":0,"section_code":"gallery","featured_images":"3556420,3556409,3556405,3556132","id":217584,"singleSection":false});				  						galleries[344501] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Photography","link":"gallery_344501.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"8806616,8806607,8806597,8806593,8806590,8472957,7985088,7985085,7985082,7985074,6237091,6237029,6237026,6237015,6237014,6159753,6159751,6159750,6159735,4851069,4851068,4415178","id":344501,"singleSection":false});				  						galleries[258636] = clik.newGallery({"parentGallery":"","usePopups":true,"title":"Work in Progress \/ Doodles","link":"gallery_258636.html","maxRecords":0.0,"photoIDs":[4867509.0,8473423.0,8473424.0,3561900.0,3557012.0,3562258.0],"skipIndex":0,"section_code":"gallery","featured_images":"8473424,4867509,3557012","id":258636,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6237029,6237026,6237015,8806597,6237014,4867509,3761978,7985088,7985074,4851068,6159735,3556414,8806593,8806616,6159750,6159751,6159753';
imageSets[2] = '6237091,6237029,6237026,6237015,8806597,8472957,6237014,4867509,4415178,4323859,3761978,3556132,7985088,7985074,4851068,4323862,3761983,3556405,8806590,8473424,4851069,4323863,3761998,3556409,6159735,4323866,3557012,7985082,3556420,8806593,8806616,6159750,7985085,6159751,8806607,6159753';
imageSets[3] = '8806616,8806614,8806610,8806609,8806607,8806599,8806597,8806593,8806590,8473424,8473423,8472981,8472957,7985132,7985089,7985088,7985086,7985085,7985084,7985082,7985081,7985079,7985076,7985074,7985072,7985070,7985068,7985066,7985064,7985061,7985060,7985059,7985057,7985054,6237098,6237091,6237088,6237086,6237083,6237029,6237026,6237025,6237024,6237021,6237019,6237017,6237016,6237015,6237014,6159753';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/zeroinhibition/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/zeroinhibition/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 && backgrounds[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 = 'Zero Inhibition: ' + 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>';
	}
				
	temp += this.fnGetPaymentInfo();
				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>Buy now using PayPal:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> &pound;' + (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.payment_groups_id !== '') {
		temp += '<p>Buy this print online:</p>';
				temp += '<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';
		 									temp += '<select class="paymentlink" name="payment_options_id" onchange="updateCartValue($(this.form).next(\'#paymentForm\')[0],this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';
		
		temp += getPaymentOptions(this.payment_groups_id);
		temp += '</select>';
		temp += '</form>';
				var item_option  = paymentGroups[this.payment_groups_id].options[0];
		if(paymentOptions[item_option]){
			var item_name  = paymentOptions[item_option].payment_option;
			var amount =  paymentOptions[item_option].price;
		}
			}
		else {
		
	}
	if (this.item_price !== '' || this.payment_groups_id !== '') {
											temp += '<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm">';
			temp += '	<input type="hidden" name="item_option" value="' + item_option + '">';
			temp += '	<input type="hidden" name="site" value="ZEROINHIBITION">';
			temp += '	<input type="hidden" name="item_number" value="'+ this.id +'">';
			temp += '	<input type="hidden" name="quantity" value="1">';
						temp += '	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\'\;" onmouseout="this.className=\'button\'\;" type="Button">';
							temp += '	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';
			temp += '</form>';
						temp += '<div class="clearing">&nbsp;</div>';
			temp += '<div id="confirmContainer">';
			temp += '<div id="paymentConfirm">Item added to cart</div>';
			temp += '</div>';
			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;
	}
}

			

