window.thumbnails = {};
															thumbnails[6045200] = clik.newPhoto({"id":6045200,"src":"151_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045200.html","width":130,"caption":"`Communication Breakdown`","height":190});
															thumbnails[6045201] = clik.newPhoto({"id":6045201,"src":"160_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045201.html","width":130,"caption":"`Wardance`<br>\r\n ","height":202});
															thumbnails[6045203] = clik.newPhoto({"id":6045203,"src":"165_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045203.html","width":130,"caption":"`A Dance to the Music of Time`","height":200});
															thumbnails[6045205] = clik.newPhoto({"id":6045205,"src":"169_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045205.html","width":130,"caption":"`Dancing`","height":204});
															thumbnails[6045207] = clik.newPhoto({"id":6045207,"src":"170_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045207.html","width":130,"caption":"`Milestone`","height":205});
															thumbnails[6045212] = clik.newPhoto({"id":6045212,"src":"171_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045212.html","width":130,"caption":"`Milestone`<br>\r\n  ","height":194});
															thumbnails[6045222] = clik.newPhoto({"id":6045222,"src":"172a_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045222.html","width":130,"caption":"`Shrine`<br>\r\n  ","height":208});
															thumbnails[6045230] = clik.newPhoto({"id":6045230,"src":"177_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045230.html","width":130,"caption":"`Sentinel`<br>\r\n  ","height":206});
															thumbnails[6045238] = clik.newPhoto({"id":6045238,"src":"175_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045238.html","width":130,"caption":"`Zeitgeist`<br>\r\n  ","height":205});
															thumbnails[6032781] = clik.newPhoto({"id":6032781,"src":"10_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6032781.html","width":130,"caption":"`Fight the Good Fight`","height":194});
															thumbnails[6045138] = clik.newPhoto({"id":6045138,"src":"91_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045138.html","width":130,"caption":"`Dancers`<br>\r\n ","height":194});
															thumbnails[6045139] = clik.newPhoto({"id":6045139,"src":"100_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045139.html","width":130,"caption":"`Watever`","height":194});
															thumbnails[9047167] = clik.newPhoto({"id":9047167,"src":"merz_thumb.jpg","galleries_id":476830,"server_id":5,"link":"photo_9047167.html","width":130,"caption":"Workshop","height":98});
															thumbnails[6032977] = clik.newPhoto({"id":6032977,"src":"11_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6032977.html","width":130,"caption":"`Fight the Good Fight` ","height":194});
															thumbnails[6045140] = clik.newPhoto({"id":6045140,"src":"101_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045140.html","width":130,"caption":"`Watever`","height":194});
															thumbnails[6045244] = clik.newPhoto({"id":6045244,"src":"173_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045244.html","width":130,"caption":"`Time and Tide 1`<br>\r\n  ","height":154});
															thumbnails[6032981] = clik.newPhoto({"id":6032981,"src":"12_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6032981.html","width":130,"caption":"`Fight the Good Fight` ","height":194});
															thumbnails[6045141] = clik.newPhoto({"id":6045141,"src":"102_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045141.html","width":130,"caption":"`Watever`","height":194});
															thumbnails[6045249] = clik.newPhoto({"id":6045249,"src":"174_thumb.jpg","galleries_id":339791,"server_id":5,"link":"photo_6045249.html","width":130,"caption":"`Time and Tide 2`<br>\r\n  ","height":149});
															thumbnails[6032984] = clik.newPhoto({"id":6032984,"src":"13_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6032984.html","width":130,"caption":"`Fight the Good Fight` ","height":194});
															thumbnails[6045143] = clik.newPhoto({"id":6045143,"src":"103_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045143.html","width":130,"caption":"`Watever` ","height":194});
															thumbnails[6045148] = clik.newPhoto({"id":6045148,"src":"111_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045148.html","width":130,"caption":"`Nietzsche's Tag`","height":196});
															thumbnails[6092683] = clik.newPhoto({"id":6092683,"src":"21_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6092683.html","width":130,"caption":"`Misogyny`","height":184});
															thumbnails[6043960] = clik.newPhoto({"id":6043960,"src":"22_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6043960.html","width":130,"caption":"`Misogyny`","height":189});
															thumbnails[6045150] = clik.newPhoto({"id":6045150,"src":"110_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045150.html","width":130,"caption":"`Nietzsche's Tag`","height":198});
															thumbnails[6044027] = clik.newPhoto({"id":6044027,"src":"23_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044027.html","width":130,"caption":"`Misogyny`","height":186});
															thumbnails[6045151] = clik.newPhoto({"id":6045151,"src":"113_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045151.html","width":130,"caption":"`Nietzsche's Tag`","height":197});
															thumbnails[6045152] = clik.newPhoto({"id":6045152,"src":"114_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045152.html","width":130,"caption":"`Nietzsche's Tag`","height":187});
															thumbnails[6044028] = clik.newPhoto({"id":6044028,"src":"24_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044028.html","width":130,"caption":"`Misogyny`","height":185});
															thumbnails[6045153] = clik.newPhoto({"id":6045153,"src":"112_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045153.html","width":130,"caption":"`Nietzsche's Tag`","height":199});
															thumbnails[6044053] = clik.newPhoto({"id":6044053,"src":"32_thumb.jpg","galleries_id":339712,"server_id":5,"link":"photo_6044053.html","width":130,"caption":"`Here Comes the Sun`<br>\r\n ","height":194});
															thumbnails[6045076] = clik.newPhoto({"id":6045076,"src":"70_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045076.html","width":130,"caption":"`Car Crash Britain`","height":195});
															thumbnails[6045162] = clik.newPhoto({"id":6045162,"src":"124_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045162.html","width":130,"caption":"`The 3 Disgraces`","height":184});
															thumbnails[6044059] = clik.newPhoto({"id":6044059,"src":"33_thumb.jpg","galleries_id":339712,"server_id":5,"link":"photo_6044059.html","width":130,"caption":"`Here Comes the Sun`","height":194});
															thumbnails[6045079] = clik.newPhoto({"id":6045079,"src":"73_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045079.html","width":130,"caption":"`Car Crash Britain`","height":191});
															thumbnails[6045169] = clik.newPhoto({"id":6045169,"src":"120_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045169.html","width":130,"caption":"`The 3 Disgraces`","height":194});
															thumbnails[6044061] = clik.newPhoto({"id":6044061,"src":"30_thumb.jpg","galleries_id":339712,"server_id":5,"link":"photo_6044061.html","width":130,"caption":"`Here Comes the Sun`","height":194});
															thumbnails[6045080] = clik.newPhoto({"id":6045080,"src":"71_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045080.html","width":130,"caption":"`Car Crash Britain`","height":192});
															thumbnails[6045171] = clik.newPhoto({"id":6045171,"src":"123_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045171.html","width":130,"caption":"`The 3 Disgraces` ","height":194});
															thumbnails[6044064] = clik.newPhoto({"id":6044064,"src":"31_thumb.jpg","galleries_id":339712,"server_id":5,"link":"photo_6044064.html","width":130,"caption":"`Here Comes the Sun`","height":194});
															thumbnails[6045084] = clik.newPhoto({"id":6045084,"src":"72_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045084.html","width":130,"caption":"`Car Crash Britain`","height":200});
															thumbnails[6045173] = clik.newPhoto({"id":6045173,"src":"121_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045173.html","width":130,"caption":"`The 3 Disgraces` ","height":189});
															thumbnails[6045086] = clik.newPhoto({"id":6045086,"src":"74_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045086.html","width":130,"caption":"`Car Crash Britain`","height":195});
															thumbnails[6045174] = clik.newPhoto({"id":6045174,"src":"122_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045174.html","width":130,"caption":"`The 3 Disgraces`","height":194});
															thumbnails[6044163] = clik.newPhoto({"id":6044163,"src":"40_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044163.html","width":130,"caption":"`Dying for it`","height":194});
															thumbnails[6045176] = clik.newPhoto({"id":6045176,"src":"130_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045176.html","width":130,"caption":"`Those Hazy Lazy Days`","height":196});
															thumbnails[6045260] = clik.newPhoto({"id":6045260,"src":"176_thumb.jpg","galleries_id":339712,"server_id":5,"link":"photo_6045260.html","width":130,"caption":"`Leda and the Swan`<br>\r\n  ","height":204});
															thumbnails[6044169] = clik.newPhoto({"id":6044169,"src":"41_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044169.html","width":130,"caption":"`Dying for it`","height":194});
															thumbnails[6045178] = clik.newPhoto({"id":6045178,"src":"132_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045178.html","width":130,"caption":"`Those Hazy Lazy Days`","height":198});
															thumbnails[6044172] = clik.newPhoto({"id":6044172,"src":"42_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044172.html","width":130,"caption":"`Dying for it`","height":194});
															thumbnails[6045179] = clik.newPhoto({"id":6045179,"src":"133_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045179.html","width":130,"caption":"`Those Hazy Lazy Days`","height":195});
															thumbnails[6044173] = clik.newPhoto({"id":6044173,"src":"43_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044173.html","width":130,"caption":"`Dying for it`","height":194});
															thumbnails[6044177] = clik.newPhoto({"id":6044177,"src":"44_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044177.html","width":130,"caption":"`Dying for it` (detail)","height":194});
															thumbnails[6045180] = clik.newPhoto({"id":6045180,"src":"140_thumb.jpg","galleries_id":339790,"server_id":5,"link":"photo_6045180.html","width":130,"caption":"`Those Hazy Lazy Days`","height":194});
															thumbnails[6044184] = clik.newPhoto({"id":6044184,"src":"50_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044184.html","width":130,"caption":"`When will I, will I be famous?`","height":184});
															thumbnails[6044187] = clik.newPhoto({"id":6044187,"src":"51_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044187.html","width":130,"caption":"`When will I, will I be famous?`","height":183});
															thumbnails[6044190] = clik.newPhoto({"id":6044190,"src":"52_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044190.html","width":130,"caption":"`When will I, will I be famous?`","height":191});
															thumbnails[6044193] = clik.newPhoto({"id":6044193,"src":"53_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044193.html","width":130,"caption":"`When will I, will I be famous?`","height":192});
															thumbnails[6044195] = clik.newPhoto({"id":6044195,"src":"54_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6044195.html","width":130,"caption":"`When will I, will I be famous?`","height":197});
															thumbnails[6044219] = clik.newPhoto({"id":6044219,"src":"60_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6044219.html","width":130,"caption":"`Work-life-balance` ","height":191});
															thumbnails[6044228] = clik.newPhoto({"id":6044228,"src":"61_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6044228.html","width":130,"caption":"`Work-life-balance`","height":204});
															thumbnails[6044235] = clik.newPhoto({"id":6044235,"src":"62_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6044235.html","width":130,"caption":"`Work-life-balance`","height":192});
															thumbnails[6044237] = clik.newPhoto({"id":6044237,"src":"63_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6044237.html","width":130,"caption":"`Work-life-balance`","height":201});
															thumbnails[6045065] = clik.newPhoto({"id":6045065,"src":"new_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6045065.html","width":130,"caption":"`Work-life-balance`","height":199});
															thumbnails[6045097] = clik.newPhoto({"id":6045097,"src":"83_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6045097.html","width":130,"caption":"`Tsunami` (detail)<br>\r\n  ","height":194});
															thumbnails[6045184] = clik.newPhoto({"id":6045184,"src":"141_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045184.html","width":130,"caption":"`The Times they are a Changing` <br>\r\n  ","height":207});
															thumbnails[6045100] = clik.newPhoto({"id":6045100,"src":"80_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6045100.html","width":130,"caption":"`Tsunami`","height":199});
															thumbnails[6045185] = clik.newPhoto({"id":6045185,"src":"142_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045185.html","width":130,"caption":"`The Times they are a Changing`","height":202});
															thumbnails[6045101] = clik.newPhoto({"id":6045101,"src":"81_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6045101.html","width":130,"caption":"`Tsunami`","height":188});
															thumbnails[6045186] = clik.newPhoto({"id":6045186,"src":"143_thumb.jpg","galleries_id":336834,"server_id":5,"link":"photo_6045186.html","width":130,"caption":"`The Times they are a Changing`","height":195});
															thumbnails[6045104] = clik.newPhoto({"id":6045104,"src":"82_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6045104.html","width":130,"caption":"`Tsunami`","height":201});
															thumbnails[9047170] = clik.newPhoto({"id":9047170,"src":"Aug-2011_thumb.jpg","galleries_id":476830,"server_id":5,"link":"photo_9047170.html","width":130,"caption":"Up the Junction","height":151});
															thumbnails[9047173] = clik.newPhoto({"id":9047173,"src":"Junction003_thumb.jpg","galleries_id":476830,"server_id":5,"link":"photo_9047173.html","width":130,"caption":"Junction Show 2011","height":173});
															thumbnails[9047060] = clik.newPhoto({"id":9047060,"src":"2_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047060.html","width":130,"caption":"Wire Bird sketch","height":87});
															thumbnails[9047065] = clik.newPhoto({"id":9047065,"src":"3_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047065.html","width":130,"caption":"Wire Bird Sketch","height":87});
															thumbnails[9047076] = clik.newPhoto({"id":9047076,"src":"a_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047076.html","width":130,"caption":"Eco Bird.","height":87});
															thumbnails[9047079] = clik.newPhoto({"id":9047079,"src":"b_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047079.html","width":130,"caption":"`Gives you wings`","height":87});
															thumbnails[9047087] = clik.newPhoto({"id":9047087,"src":"c_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047087.html","width":130,"caption":"Bird Walking.","height":87});
															thumbnails[9047095] = clik.newPhoto({"id":9047095,"src":"small-fry_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047095.html","width":130,"caption":"Small Fry","height":121});
															thumbnails[9047100] = clik.newPhoto({"id":9047100,"src":"tinned-fish_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047100.html","width":130,"caption":"Tinned Fish","height":106});
															thumbnails[9047103] = clik.newPhoto({"id":9047103,"src":"tinned-fish-1_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047103.html","width":130,"caption":"Tinned Fish 2","height":98});
															thumbnails[9047109] = clik.newPhoto({"id":9047109,"src":"birdish_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047109.html","width":130,"caption":"Large Bird Sketch","height":98});
															thumbnails[9047117] = clik.newPhoto({"id":9047117,"src":"curl_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047117.html","width":130,"caption":"Curlew","height":148});
															thumbnails[9047122] = clik.newPhoto({"id":9047122,"src":"wader_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047122.html","width":130,"caption":"Wading Bird.","height":173});
															thumbnails[9047129] = clik.newPhoto({"id":9047129,"src":"fighting-cock_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047129.html","width":130,"caption":"Fighting Cock","height":123});
															thumbnails[9047138] = clik.newPhoto({"id":9047138,"src":"walking-wader_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047138.html","width":130,"caption":"Walking Wader","height":117});
															thumbnails[9047143] = clik.newPhoto({"id":9047143,"src":"phesant_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047143.html","width":130,"caption":"Phesant","height":98});
															thumbnails[9047149] = clik.newPhoto({"id":9047149,"src":"garden-bird_thumb.jpg","galleries_id":476818,"server_id":5,"link":"photo_9047149.html","width":130,"caption":"Garden Bird","height":98});
															thumbnails[6605060] = clik.newPhoto({"id":6605060,"src":"180_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605060.html","width":130,"caption":"TOP DOG","height":194});
															thumbnails[6605075] = clik.newPhoto({"id":6605075,"src":"181_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605075.html","width":130,"caption":"Top Dog; <br>\r\n","height":194});
															thumbnails[6605102] = clik.newPhoto({"id":6605102,"src":"182_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605102.html","width":130,"caption":"Top Dog","height":194});
															thumbnails[6605109] = clik.newPhoto({"id":6605109,"src":"183_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605109.html","width":130,"caption":"Top Dog","height":194});
															thumbnails[6605117] = clik.newPhoto({"id":6605117,"src":"190_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605117.html","width":130,"caption":"PYRAMID","height":194});
															thumbnails[6605128] = clik.newPhoto({"id":6605128,"src":"191_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605128.html","width":130,"caption":"Pyramid","height":194});
															thumbnails[6605131] = clik.newPhoto({"id":6605131,"src":"192_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605131.html","width":130,"caption":"Pyramid","height":194});
															thumbnails[6605134] = clik.newPhoto({"id":6605134,"src":"193_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605134.html","width":130,"caption":"Pyramid","height":194});
															thumbnails[6605136] = clik.newPhoto({"id":6605136,"src":"194_thumb.jpg","galleries_id":336833,"server_id":5,"link":"photo_6605136.html","width":130,"caption":"Pyranid","height":194});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[336833] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 1","link":"gallery_336833.html","maxRecords":0.0,"photoIDs":[6032781.0,6032977.0,6032981.0,6032984.0,6044219.0,6044228.0,6044235.0,6044237.0,6045065.0,6045097.0,6045100.0,6045101.0,6045104.0,6605060.0,6605075.0,6605102.0,6605109.0,6605117.0,6605128.0,6605131.0,6605134.0,6605136.0],"skipIndex":0,"section_code":"gallery","featured_images":"6605117,6605060,6032781","id":336833,"singleSection":false});				  						galleries[336834] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 2","link":"gallery_336834.html","maxRecords":0.0,"photoIDs":[6092683.0,6043960.0,6044027.0,6044028.0,6045076.0,6045079.0,6045080.0,6045084.0,6045086.0,6044163.0,6044169.0,6044172.0,6044173.0,6044177.0,6044184.0,6044187.0,6044190.0,6044193.0,6044195.0,6045184.0,6045185.0,6045186.0],"skipIndex":0,"section_code":"gallery","featured_images":"6092683,6043960","id":336834,"singleSection":false});				  						galleries[339712] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 3","link":"gallery_339712.html","maxRecords":0.0,"photoIDs":[6044053.0,6044059.0,6044061.0,6044064.0,6045260.0],"skipIndex":0,"section_code":"gallery","featured_images":6044053.0,"id":339712,"singleSection":false});				  						galleries[339790] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 4","link":"gallery_339790.html","maxRecords":0.0,"photoIDs":[6045139.0,6045140.0,6045141.0,6045143.0,6045148.0,6045150.0,6045151.0,6045152.0,6045153.0,6045162.0,6045169.0,6045171.0,6045173.0,6045174.0,6045176.0,6045178.0,6045179.0,6045180.0],"skipIndex":0,"section_code":"gallery","featured_images":6045139.0,"id":339790,"singleSection":false});				  						galleries[339791] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Gallery 5","link":"gallery_339791.html","maxRecords":0.0,"photoIDs":[6045200.0,6045201.0,6045203.0,6045205.0,6045207.0,6045212.0,6045222.0,6045230.0,6045238.0,6045138.0,6045244.0,6045249.0],"skipIndex":0,"section_code":"gallery","featured_images":6045200.0,"id":339791,"singleSection":false});				  						galleries[476818] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"A bit of fun.","link":"gallery_476818.html","maxRecords":0.0,"photoIDs":[9047060.0,9047065.0,9047076.0,9047079.0,9047087.0,9047095.0,9047100.0,9047103.0,9047109.0,9047117.0,9047122.0,9047129.0,9047138.0,9047143.0,9047149.0],"skipIndex":0,"section_code":"gallery","featured_images":9047100.0,"id":476818,"singleSection":false});				  						galleries[476830] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Facebook","link":"gallery_476830.html","maxRecords":0.0,"photoIDs":[9047167.0,9047170.0,9047173.0],"skipIndex":0,"section_code":"gallery","featured_images":9047167.0,"id":476830,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '6605117';
imageSets[2] = '6045200,9047167,6045139,6032781,6092683,6043960,6044053,9047100,6605060,6605117';
imageSets[3] = '6044059';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/furybear/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/furybear/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/furybear/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/furybear/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/furybear/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/furybear/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/furybear/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/furybear/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 = 'sculptureikp: ' + 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;
	}
}

			

