window.thumbnails = {};
thumbnails[7324301] = clik.newPhoto({"link":"#","caption":"","height":87,"id":7324301,"server_id":21,"src":"moon_thumb.jpg","galleries_id":"","width":130});
thumbnails[7289211] = clik.newPhoto({"link":"photo_7289211.html","caption":"","height":98,"id":7289211,"server_id":21,"src":"dogcharlie_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7289212] = clik.newPhoto({"link":"photo_7289212.html","caption":"","height":98,"id":7289212,"server_id":21,"src":"doglettie_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7289213] = clik.newPhoto({"link":"photo_7289213.html","caption":"","height":98,"id":7289213,"server_id":21,"src":"dogmegwater_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7290189] = clik.newPhoto({"link":"photo_7290189.html","caption":"","height":98,"id":7290189,"server_id":21,"src":"dogashby_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7290192] = clik.newPhoto({"link":"photo_7290192.html","caption":"","height":98,"id":7290192,"server_id":21,"src":"dogbulldog_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7290195] = clik.newPhoto({"link":"photo_7290195.html","caption":"","height":98,"id":7290195,"server_id":21,"src":"dogflyball_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7290196] = clik.newPhoto({"link":"photo_7290196.html","caption":"","height":98,"id":7290196,"server_id":21,"src":"doggufty_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7290197] = clik.newPhoto({"link":"photo_7290197.html","caption":"","height":98,"id":7290197,"server_id":21,"src":"dogtanya_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7290199] = clik.newPhoto({"link":"photo_7290199.html","caption":"","height":98,"id":7290199,"server_id":21,"src":"dogmeg_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7292363] = clik.newPhoto({"link":"photo_7292363.html","caption":"","height":98,"id":7292363,"server_id":21,"src":"madbaby_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292366] = clik.newPhoto({"link":"photo_7292366.html","caption":"","height":98,"id":7292366,"server_id":21,"src":"madcanoe_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292371] = clik.newPhoto({"link":"photo_7292371.html","caption":"","height":98,"id":7292371,"server_id":21,"src":"madfishh_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292372] = clik.newPhoto({"link":"photo_7292372.html","caption":"","height":98,"id":7292372,"server_id":21,"src":"madfixboat_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292380] = clik.newPhoto({"link":"photo_7292380.html","caption":"","height":98,"id":7292380,"server_id":21,"src":"madgirl_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292381] = clik.newPhoto({"link":"photo_7292381.html","caption":"","height":98,"id":7292381,"server_id":21,"src":"madsteps_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292384] = clik.newPhoto({"link":"photo_7292384.html","caption":"","height":98,"id":7292384,"server_id":21,"src":"madwomen_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292438] = clik.newPhoto({"link":"photo_7292438.html","caption":"","height":98,"id":7292438,"server_id":21,"src":"madfamily_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292606] = clik.newPhoto({"link":"photo_7292606.html","caption":"","height":98,"id":7292606,"server_id":21,"src":"madbuilders_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7292620] = clik.newPhoto({"link":"photo_7292620.html","caption":"","height":49,"id":7292620,"server_id":21,"src":"panofish_thumb.jpg","galleries_id":394520,"width":130});
thumbnails[7305272] = clik.newPhoto({"link":"photo_7305272.html","caption":"","height":98,"id":7305272,"server_id":21,"src":"kidsjack1_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7305273] = clik.newPhoto({"link":"photo_7305273.html","caption":"","height":98,"id":7305273,"server_id":21,"src":"kidsjack2_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7305275] = clik.newPhoto({"link":"photo_7305275.html","caption":"","height":98,"id":7305275,"server_id":21,"src":"kidsthomas_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7305276] = clik.newPhoto({"link":"photo_7305276.html","caption":"","height":98,"id":7305276,"server_id":21,"src":"kidstriple2_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7305277] = clik.newPhoto({"link":"photo_7305277.html","caption":"","height":98,"id":7305277,"server_id":21,"src":"kidstriple_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7305279] = clik.newPhoto({"link":"photo_7305279.html","caption":"","height":98,"id":7305279,"server_id":21,"src":"kidsbecca_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7316019] = clik.newPhoto({"link":"photo_7316019.html","caption":"","height":116,"id":7316019,"server_id":21,"src":"sportssurf21_thumb.jpg","galleries_id":395764,"width":130});
thumbnails[7316021] = clik.newPhoto({"link":"photo_7316021.html","caption":"","height":87,"id":7316021,"server_id":21,"src":"sportssurf_thumb.jpg","galleries_id":395764,"width":130});
thumbnails[7321145] = clik.newPhoto({"link":"photo_7321145.html","caption":"","height":87,"id":7321145,"server_id":21,"src":"lancorange_thumb.jpg","galleries_id":396069,"width":130});
thumbnails[7321151] = clik.newPhoto({"link":"photo_7321151.html","caption":"","height":87,"id":7321151,"server_id":21,"src":"lancwind_thumb.jpg","galleries_id":396069,"width":130});
thumbnails[7324239] = clik.newPhoto({"link":"photo_7324239.html","caption":"","height":76,"id":7324239,"server_id":21,"src":"lancblackpool_thumb.jpg","galleries_id":396069,"width":130});
thumbnails[7324251] = clik.newPhoto({"link":"photo_7324251.html","caption":"","height":39,"id":7324251,"server_id":21,"src":"panobirds_thumb.jpg","galleries_id":394520,"width":130});
thumbnails[7324254] = clik.newPhoto({"link":"photo_7324254.html","caption":"","height":33,"id":7324254,"server_id":21,"src":"panoboat_thumb.jpg","galleries_id":394520,"width":130});
thumbnails[7324257] = clik.newPhoto({"link":"photo_7324257.html","caption":"","height":33,"id":7324257,"server_id":21,"src":"panocloud_thumb.jpg","galleries_id":394520,"width":130});
thumbnails[7324259] = clik.newPhoto({"link":"photo_7324259.html","caption":"","height":54,"id":7324259,"server_id":21,"src":"panolune_thumb.jpg","galleries_id":394520,"width":130});
thumbnails[7324260] = clik.newPhoto({"link":"photo_7324260.html","caption":"","height":54,"id":7324260,"server_id":21,"src":"panotowers_thumb.jpg","galleries_id":394520,"width":130});
thumbnails[7324269] = clik.newPhoto({"link":"photo_7324269.html","caption":"","height":98,"id":7324269,"server_id":21,"src":"wedcorf2_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324273] = clik.newPhoto({"link":"photo_7324273.html","caption":"","height":98,"id":7324273,"server_id":21,"src":"wedcorf_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324276] = clik.newPhoto({"link":"photo_7324276.html","caption":"","height":98,"id":7324276,"server_id":21,"src":"wedhel2_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324279] = clik.newPhoto({"link":"photo_7324279.html","caption":"","height":98,"id":7324279,"server_id":21,"src":"wedhel_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324281] = clik.newPhoto({"link":"photo_7324281.html","caption":"","height":98,"id":7324281,"server_id":21,"src":"wedlaura2_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324282] = clik.newPhoto({"link":"photo_7324282.html","caption":"","height":98,"id":7324282,"server_id":21,"src":"wedlouch_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324287] = clik.newPhoto({"link":"photo_7324287.html","caption":"","height":98,"id":7324287,"server_id":21,"src":"wedtim1_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324291] = clik.newPhoto({"link":"photo_7324291.html","caption":"","height":98,"id":7324291,"server_id":21,"src":"wedtim3_thumb.jpg","galleries_id":395151,"width":130});
thumbnails[7324308] = clik.newPhoto({"link":"photo_7324308.html","caption":"","height":87,"id":7324308,"server_id":21,"src":"africheet_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324309] = clik.newPhoto({"link":"photo_7324309.html","caption":"","height":87,"id":7324309,"server_id":21,"src":"afriele2_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324310] = clik.newPhoto({"link":"photo_7324310.html","caption":"","height":87,"id":7324310,"server_id":21,"src":"afriele3_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324327] = clik.newPhoto({"link":"photo_7324327.html","caption":"","height":130,"id":7324327,"server_id":21,"src":"afriele_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324333] = clik.newPhoto({"link":"photo_7324333.html","caption":"","height":130,"id":7324333,"server_id":21,"src":"afrilion6_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324339] = clik.newPhoto({"link":"photo_7324339.html","caption":"","height":130,"id":7324339,"server_id":21,"src":"reptile_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324352] = clik.newPhoto({"link":"photo_7324352.html","caption":"","height":130,"id":7324352,"server_id":21,"src":"gull2_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324354] = clik.newPhoto({"link":"photo_7324354.html","caption":"","height":130,"id":7324354,"server_id":21,"src":"gull_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324360] = clik.newPhoto({"link":"photo_7324360.html","caption":"","height":87,"id":7324360,"server_id":21,"src":"birds_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324366] = clik.newPhoto({"link":"photo_7324366.html","caption":"","height":87,"id":7324366,"server_id":21,"src":"dragonfly2_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324368] = clik.newPhoto({"link":"photo_7324368.html","caption":"","height":87,"id":7324368,"server_id":21,"src":"dragonfly3_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324369] = clik.newPhoto({"link":"photo_7324369.html","caption":"","height":104,"id":7324369,"server_id":21,"src":"dragonfly4_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324370] = clik.newPhoto({"link":"photo_7324370.html","caption":"","height":130,"id":7324370,"server_id":21,"src":"dragonfly_thumb.jpg","galleries_id":396303,"width":130});
thumbnails[7324913] = clik.newPhoto({"link":"photo_7324913.html","caption":"","height":130,"id":7324913,"server_id":21,"src":"cham2_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324914] = clik.newPhoto({"link":"photo_7324914.html","caption":"","height":130,"id":7324914,"server_id":21,"src":"cham4_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324916] = clik.newPhoto({"link":"photo_7324916.html","caption":"","height":87,"id":7324916,"server_id":21,"src":"lemur_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324918] = clik.newPhoto({"link":"photo_7324918.html","caption":"","height":87,"id":7324918,"server_id":21,"src":"lemur2_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7324920] = clik.newPhoto({"link":"photo_7324920.html","caption":"","height":87,"id":7324920,"server_id":21,"src":"bug_thumb.jpg","galleries_id":393817,"width":130});
thumbnails[7325079] = clik.newPhoto({"link":"photo_7325079.html","caption":"","height":87,"id":7325079,"server_id":21,"src":"theatre_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7325086] = clik.newPhoto({"link":"photo_7325086.html","caption":"","height":130,"id":7325086,"server_id":21,"src":"theatre2_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7325087] = clik.newPhoto({"link":"photo_7325087.html","caption":"","height":87,"id":7325087,"server_id":21,"src":"theatre3_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7338581] = clik.newPhoto({"link":"photo_7338581.html","caption":"","height":87,"id":7338581,"server_id":21,"src":"music1_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338585] = clik.newPhoto({"link":"photo_7338585.html","caption":"","height":87,"id":7338585,"server_id":21,"src":"music2_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338590] = clik.newPhoto({"link":"photo_7338590.html","caption":"","height":104,"id":7338590,"server_id":21,"src":"music3_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338594] = clik.newPhoto({"link":"photo_7338594.html","caption":"","height":87,"id":7338594,"server_id":21,"src":"music4_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338599] = clik.newPhoto({"link":"photo_7338599.html","caption":"","height":87,"id":7338599,"server_id":21,"src":"music5_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338685] = clik.newPhoto({"link":"photo_7338685.html","caption":"","height":87,"id":7338685,"server_id":21,"src":"music6_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338689] = clik.newPhoto({"link":"photo_7338689.html","caption":"","height":87,"id":7338689,"server_id":21,"src":"music8_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338690] = clik.newPhoto({"link":"photo_7338690.html","caption":"","height":104,"id":7338690,"server_id":21,"src":"music9_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338691] = clik.newPhoto({"link":"photo_7338691.html","caption":"","height":87,"id":7338691,"server_id":21,"src":"music10_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338693] = clik.newPhoto({"link":"photo_7338693.html","caption":"","height":87,"id":7338693,"server_id":21,"src":"music11_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338696] = clik.newPhoto({"link":"photo_7338696.html","caption":"","height":87,"id":7338696,"server_id":21,"src":"music12_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338697] = clik.newPhoto({"link":"photo_7338697.html","caption":"","height":87,"id":7338697,"server_id":21,"src":"music13_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338699] = clik.newPhoto({"link":"photo_7338699.html","caption":"","height":87,"id":7338699,"server_id":21,"src":"music14_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338701] = clik.newPhoto({"link":"photo_7338701.html","caption":"","height":87,"id":7338701,"server_id":21,"src":"music15_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7338705] = clik.newPhoto({"link":"photo_7338705.html","caption":"","height":173,"id":7338705,"server_id":21,"src":"music16_thumb.jpg","galleries_id":396328,"width":130});
thumbnails[7357093] = clik.newPhoto({"link":"photo_7357093.html","caption":"","height":87,"id":7357093,"server_id":21,"src":"theatre4_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357096] = clik.newPhoto({"link":"photo_7357096.html","caption":"","height":87,"id":7357096,"server_id":21,"src":"theatre5_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357098] = clik.newPhoto({"link":"photo_7357098.html","caption":"","height":87,"id":7357098,"server_id":21,"src":"theatre6_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357099] = clik.newPhoto({"link":"photo_7357099.html","caption":"","height":87,"id":7357099,"server_id":21,"src":"theatre7_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357101] = clik.newPhoto({"link":"photo_7357101.html","caption":"","height":87,"id":7357101,"server_id":21,"src":"theatre8_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357102] = clik.newPhoto({"link":"photo_7357102.html","caption":"","height":87,"id":7357102,"server_id":21,"src":"theatre9_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357105] = clik.newPhoto({"link":"photo_7357105.html","caption":"","height":87,"id":7357105,"server_id":21,"src":"theatre10_thumb.jpg","galleries_id":396327,"width":130});
thumbnails[7357117] = clik.newPhoto({"link":"photo_7357117.html","caption":"","height":195,"id":7357117,"server_id":21,"src":"valley_thumb.jpg","galleries_id":396069,"width":130});
thumbnails[7357120] = clik.newPhoto({"link":"photo_7357120.html","caption":"","height":195,"id":7357120,"server_id":21,"src":"log_thumb.jpg","galleries_id":396069,"width":130});
thumbnails[7357125] = clik.newPhoto({"link":"photo_7357125.html","caption":"","height":98,"id":7357125,"server_id":21,"src":"madseller_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7357128] = clik.newPhoto({"link":"photo_7357128.html","caption":"","height":173,"id":7357128,"server_id":21,"src":"parties1_thumb.jpg","galleries_id":394350,"width":130});
thumbnails[7357134] = clik.newPhoto({"link":"photo_7357134.html","caption":"","height":87,"id":7357134,"server_id":21,"src":"parties2_thumb.jpg","galleries_id":394350,"width":130});
thumbnails[7357135] = clik.newPhoto({"link":"photo_7357135.html","caption":"","height":87,"id":7357135,"server_id":21,"src":"parties3_thumb.jpg","galleries_id":394350,"width":130});
thumbnails[7357136] = clik.newPhoto({"link":"photo_7357136.html","caption":"","height":87,"id":7357136,"server_id":21,"src":"parties4_thumb.jpg","galleries_id":394350,"width":130});
thumbnails[7357184] = clik.newPhoto({"link":"photo_7357184.html","caption":"","height":87,"id":7357184,"server_id":21,"src":"parties5_thumb.jpg","galleries_id":394350,"width":130});
thumbnails[7357205] = clik.newPhoto({"link":"photo_7357205.html","caption":"","height":87,"id":7357205,"server_id":21,"src":"parties6_thumb.jpg","galleries_id":394350,"width":130});
thumbnails[7480781] = clik.newPhoto({"link":"photo_7480781.html","caption":"","height":100,"id":7480781,"server_id":21,"src":"Art_1_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7480787] = clik.newPhoto({"link":"photo_7480787.html","caption":"","height":100,"id":7480787,"server_id":21,"src":"Art_2_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7480791] = clik.newPhoto({"link":"photo_7480791.html","caption":"","height":100,"id":7480791,"server_id":21,"src":"Art_3_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7480794] = clik.newPhoto({"link":"photo_7480794.html","caption":"","height":100,"id":7480794,"server_id":21,"src":"Art_4_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7480800] = clik.newPhoto({"link":"photo_7480800.html","caption":"","height":100,"id":7480800,"server_id":21,"src":"Art_5_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7480806] = clik.newPhoto({"link":"photo_7480806.html","caption":"","height":100,"id":7480806,"server_id":21,"src":"Art_8_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7480811] = clik.newPhoto({"link":"photo_7480811.html","caption":"","height":100,"id":7480811,"server_id":21,"src":"Art_9_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7481018] = clik.newPhoto({"link":"photo_7481018.html","caption":"","height":100,"id":7481018,"server_id":21,"src":"Art_15_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7482335] = clik.newPhoto({"link":"photo_7482335.html","caption":"","height":100,"id":7482335,"server_id":21,"src":"Art_16_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[7482337] = clik.newPhoto({"link":"photo_7482337.html","caption":"","height":100,"id":7482337,"server_id":21,"src":"Art_17_thumb.jpg","galleries_id":405537,"width":100});
thumbnails[8140941] = clik.newPhoto({"link":"photo_8140941.html","caption":"","height":73,"id":8140941,"server_id":21,"src":"photo_hold_sign_thumb.jpg","galleries_id":435295,"width":100});
thumbnails[7291759] = clik.newPhoto({"link":"photo_7291759.html","caption":"","height":98,"id":7291759,"server_id":21,"src":"dogravenboat_thumb.jpg","galleries_id":393816,"width":130});
thumbnails[7292364] = clik.newPhoto({"link":"photo_7292364.html","caption":"","height":98,"id":7292364,"server_id":21,"src":"madbeached_thumb.jpg","galleries_id":394348,"width":130});
thumbnails[7305274] = clik.newPhoto({"link":"photo_7305274.html","caption":"","height":98,"id":7305274,"server_id":21,"src":"kidsjack3_thumb.jpg","galleries_id":394349,"width":130});
thumbnails[7357206] = clik.newPhoto({"link":"photo_7357206.html","caption":"","height":87,"id":7357206,"server_id":21,"src":"parties7_thumb.jpg","galleries_id":394350,"width":130});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
galleries[395764] = clik.newGallery({"photoIDs":[7316019,7316021],"link":"gallery_395764.html","skipIndex":0,"section_code":"gallery","id":395764,"parentGallery":"","featured_images":"7316021,7316019","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Action"});galleries[405537] = clik.newGallery({"photoIDs":[7480781,7480787,7480791,7480794,7480800,7480806,7480811,7481018,7482335,7482337],"link":"gallery_405537.html","skipIndex":0,"section_code":"gallery","id":405537,"parentGallery":"","featured_images":"7482337,7482335,7481018,7480811,7480806,7480800,7480794,7480791,7480787,7480781","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Animal Art Prints"});galleries[394349] = clik.newGallery({"photoIDs":[7305272,7305273,7305275,7305276,7305277,7305279,7305274],"link":"gallery_394349.html","skipIndex":0,"section_code":"gallery","id":394349,"parentGallery":"","featured_images":"7305279,7305277,7305276,7305275,7305274,7305273,7305272","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Children"});galleries[393816] = clik.newGallery({"photoIDs":[7289211,7289212,7289213,7290189,7290192,7290195,7290196,7290197,7290199,7291759],"link":"gallery_393816.html","skipIndex":0,"section_code":"gallery","id":393816,"parentGallery":"","featured_images":"7291759,7290199,7290197,7290196,7290195,7290192,7290189,7289213,7289212,7289211","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Dogs"});galleries[396328] = clik.newGallery({"photoIDs":[7338581,7338585,7338590,7338594,7338599,7338685,7338689,7338690,7338691,7338693,7338696,7338697,7338699,7338701,7338705],"link":"gallery_396328.html","skipIndex":0,"section_code":"gallery","id":396328,"parentGallery":"","featured_images":"7338705,7338701,7338699,7338697,7338696,7338693,7338691,7338690,7338689,7338685","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Live Music"});galleries[396069] = clik.newGallery({"photoIDs":[7321145,7321151,7324239,7357117,7357120],"link":"gallery_396069.html","skipIndex":0,"section_code":"gallery","id":396069,"parentGallery":"","featured_images":"7357120,7357117,7324239,7321151,7321145","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Local"});galleries[394348] = clik.newGallery({"photoIDs":[7292363,7292366,7292371,7292372,7292380,7292381,7292384,7292438,7292606,7357125,7292364],"link":"gallery_394348.html","skipIndex":0,"section_code":"gallery","id":394348,"parentGallery":"","featured_images":"7357125,7292606,7292438,7292384,7292381,7292380,7292372,7292371,7292366,7292364","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Madagascar"});galleries[394520] = clik.newGallery({"photoIDs":[7292620,7324251,7324254,7324257,7324259,7324260],"link":"gallery_394520.html","skipIndex":0,"section_code":"gallery","id":394520,"parentGallery":"","featured_images":"7324260,7324259,7324257,7324254,7324251,7292620","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Panoramics"});galleries[394350] = clik.newGallery({"photoIDs":[7357128,7357134,7357135,7357136,7357184,7357205,7357206],"link":"gallery_394350.html","skipIndex":0,"section_code":"gallery","id":394350,"parentGallery":"","featured_images":"7357206,7357205,7357184,7357136,7357135,7357134,7357128","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Social Life"});galleries[396327] = clik.newGallery({"photoIDs":[7325079,7325086,7325087,7357093,7357096,7357098,7357099,7357101,7357102,7357105],"link":"gallery_396327.html","skipIndex":0,"section_code":"gallery","id":396327,"parentGallery":"","featured_images":"7357105,7357102,7357101,7357099,7357098,7357096,7357093,7325087,7325086,7325079","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Theatre"});galleries[395151] = clik.newGallery({"photoIDs":[7324269,7324273,7324276,7324279,7324281,7324282,7324287,7324291],"link":"gallery_395151.html","skipIndex":0,"section_code":"gallery","id":395151,"parentGallery":"","featured_images":"7324291,7324287,7324282,7324281,7324279,7324276,7324273,7324269","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Weddings"});galleries[393817] = clik.newGallery({"photoIDs":[7324308,7324309,7324310,7324327,7324333,7324339,7324913,7324914,7324916,7324918,7324920],"link":"gallery_393817.html","skipIndex":0,"section_code":"gallery","id":393817,"parentGallery":"","featured_images":"7324920,7324918,7324916,7324914,7324913,7324339,7324333,7324327,7324310,7324309","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Wild Life"});galleries[396303] = clik.newGallery({"photoIDs":[7324352,7324354,7324360,7324366,7324368,7324369,7324370],"link":"gallery_396303.html","skipIndex":0,"section_code":"gallery","id":396303,"parentGallery":"","featured_images":"7324370,7324369,7324368,7324366,7324360,7324354,7324352","maxRecords":0,"usePopups":false,"singleSection":false,"title":"Wings"});galleries[435295] = clik.newGallery({"photoIDs":[8140941],"link":"gallery_435295.html","skipIndex":0,"section_code":"gallery","id":435295,"parentGallery":"","featured_images":8140941,"maxRecords":0,"usePopups":false,"singleSection":false,"title":"Lancaster Graduation 2011"});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[3] = '8140941,7482337,7482335,7481018,7480811,7480806,7480800,7480794,7480791,7480787,7480781,7357206,7357205,7357184,7357136,7357135,7357134,7357128,7357125,7357120,7357117,7357105,7357102,7357101,7357099,7357098,7357096,7357093,7338705,7338701,7338699,7338697,7338696,7338693,7338691,7338690,7338689,7338685,7338599,7338594,7338590,7338585,7338581,7325087,7325086,7325079,7324920,7324918,7324916,7324914';
imageSets[1] = '8140941,7482337,7482335,7481018,7480811,7480806,7480800,7480794,7480791,7480787,7480781,7357206,7357205,7357184,7357136,7357135,7357134,7357128,7357125,7357120,7357117,7357105,7357102,7357101,7357099,7357098,7357096,7357093,7338705,7338701,7338699,7338697,7338696,7338693,7338691,7338690,7338689,7338685,7338599,7338594,7338590,7338585,7338581,7325087,7325086,7325079,7324920,7324918,7324916,7324914';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/AbiWilliamsHere/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/AbiWilliamsHere/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 = 'Abi Williams Photography: ' + photoCaption;
			    }
        if (op.$detail.length > 0) {
      	temp = op.nextPhoto.fnGetImageDetails();
	    op.$detail.fadeGalleryDetails(temp, op.speed, function(){
			if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
				toggleAddToCartConfirm(backgrounds, op.$detail);
			} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
				toggleAddToCartConfirm(photos, op.$detail);
			}
			$('body').trigger('clikUpdate.popup');
	    });
    }
        $(op.$detailContainer).find('.replaceable[class*=replaceable_photo-]').each(function(){
    	var field = clik.getPrefixedClass(this.className, 'replaceable_photo-');
    	if (field in op.nextPhoto) {
    		$(this).fadeGalleryDetails(op.nextPhoto[field], op.speed);
    	}
    }).end().find('.replaceable.photoPayment').fadeGalleryDetails(op.nextPhoto.fnGetPaymentInfo(), op.speed, function(){
		if (typeof(backgrounds) != 'undefined' && op.nextPhoto == backgrounds[op.nextPhoto.id]) {
			toggleAddToCartConfirm(backgrounds, op.$detailContainer);
		} else if (typeof(photos) != 'undefined' && op.nextPhoto == photos[op.nextPhoto.id]) {
			toggleAddToCartConfirm(photos, op.$detailContainer);
		}
		$('body').trigger('clikUpdate.popup');
	});
		if (op.$photo.length > 0) {
		html = $('<img/>',{
			'class': 'mainphoto photo',
			src: photoSrc,
			id: 'mainPic',
			name: 'mainPic',
			width: op.nextPhoto.width,
			height: op.nextPhoto.height,
			alt: photoCaption,
			css: op.css || {}
		});
		if (op.href) {
			if (op.href.match(/<a/)) {
				html = $(op.href).append(html);
			} else {
				html = $('<a/>', {
					href: op.href,
					title: photoCaption
				}).append(html);
			}
		} else {
			html = $('<a/>', {
				title: photoCaption
			}).append(html);
		}
		if (op.speed == 0) {			op.$photo.html(html);			if (op.onBefore) {			  	op.onBefore.apply(op.$photo);			}			if (op.onAfter) {			  	op.onAfter.apply(op.$photo);			}		} else {			op.$photo.stop(true,true).fadeReplaceWith(html,op.speed,'',function(){  				if (op.onAfter) {				  	op.onAfter.apply(this);				}				clik.doColumnResize(false, $(this).add(op.$detail).add(op.$title));			}, op.onBefore);
		}	}
    if (op.field) {
		op.field.value = photoId;
	} else {
		op.$photo.data('image_id', photoId);
    }
        if (!op.speed) {
      	clik.doColumnResize(false, op.$photo.add(op.$detail).add(op.$title));
    }
        
    return html;
	}

/***************************************************************************
* Toggle add to cart confirmation element and set up the click event for   *
* the 'Add to cart' button.                                                *
***************************************************************************/
function toggleAddToCartConfirm(array, root){
	if (typeof(array) !== 'object' || array === null) {
	  	array = photos;
	}
	if (!$(root).length) {		root = $('body');	}	if($('#paymentConfirm', root).length > 0){
		$('#paymentConfirm', root).hide();
		$('#paymentAddButton', root)
		.unbind()
		.click(function(){
						form = $('#paymentForm', root)[0];
			option_id = 0;
			if(form.item_option.value){
				option_id = form.item_option.value;
			}
			if(addItemToBasket(form.item_number.value,array,form.site.value,parseInt(form.quantity.value, 10),option_id)){
				if($.browser.msie){$('#paymentConfirm', root).text('Item added to cart').show();}
				else{
					$('#paymentConfirm', root).text('Item added to cart').fadeIn();
					dspOrderDetails(form.site.value);
				}
			}
			else{
				$('#paymentConfirm', root).text('Item not added - check cookies are enabled in your browser.').fadeIn();
			}
		});
	}
}

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetImageDetails = function(){
	var temp = '';
	if (this.description != '') {
		temp +=  '<div id="imageDescription">' + this.description + '</div>';
	}
		if (this.photo_ref != '') {
		temp += '<div class="imageinfo" id="imageRef"><strong>Ref: </strong>' + this.photo_ref + '</div>';
	}
		if (this.takendate != '') {
		
		temp += '<div class="imageinfo" id="imageDate"><strong>Date: </strong>' + this.takendate + '</div>';
	}
	
	if (this.location != '') {
		
		temp += '<div class="imageinfo" id="imageLocation"><strong>Location: </strong>' +  this.location + '</div>';
	}
	
	if (this.photographer != '') {
		
		temp += '<div class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>' + this.photographer + '</div>';
	}
			
				if (temp != '') {
		temp += '<div class="spacer"></div>';
	}
	return temp;
};

/***************************************************************************
* Get payment info for image - add as 'method' to photo object             *
***************************************************************************/
clik.photo.fnGetPaymentInfo = function(){
	var temp = '';
	if (this.item_price !== '') {
				temp += '<p>Order this print:</p>';
				temp += '<div class="imageinfo" id="imagePrice"><strong>' + this.purchase_instruction + '</strong> ' + (this.item_price).toFixed(2) + '</div>';
		var item_name  = this.purchase_instruction;
		var amount = (this.item_price).toFixed(2);
		var item_option  = 0;
	}
		else {
		
	}
	if (this.item_price !== '') {
			temp += '<div class="clearing">&nbsp;</div>';
	}
	return temp;};

/***************************************************************************
* Pick a photo at random from the featured images of a gallery.            *
* Gallery_id = id of gallery to choose,                                    *
* img = reference to html image in                                         *
* which to show image                                                      *
***************************************************************************/
function showGalleryImage(gallery_id, img, updateLink) {
	
	if(img){
		if (location.hash.match('galleries_id=' + gallery_id) && (imageID = location.hash.match('.*photos_id=(.+)$'))) {
		  	imageID = imageID[1];
		} else {
		  	imageID = randomListVal(galleries[gallery_id].featured_images);
		}
		
		if (imageID != 0) {
			img.src = thumbnails[imageID].src;
			img.width = thumbnails[imageID].width;
			img.height = thumbnails[imageID].height;
			img.alt = galleries[gallery_id].title;
			if (updateLink) {
				$(img).parent().attr({					title: galleries[gallery_id].title				}).filter(function(){return this.href;}).attr({					href: thumbnails[imageID].fnGalleryLink(gallery_id)				});
			}
		}
	}
}

/***************************************************************************
* If we have dynamic HTML, replace the galleries link with a list that     *
* doesn't include thecurrent gallery                                       *
***************************************************************************/
function showGalleries(gallery_id) {
		
	
	if (!basic) {
		temp = '';
		for (i = 0; i < galleries.length; i++) {
						
			
			if (galleries[i].id != gallery_id) {
								
				if (temp != '') {
					temp += ' | ';
				}
								temp += '<a href="' + galleries[i].section_code + '_' + galleries[i].id + '.html">' + galleries[i].title + '</a>';
							}
		}
		document.all.galleryLinks.innerHTML = 'Other galleries: ' + temp;
	}
}

		

