window.thumbnails = {};
															thumbnails[7312501] = clik.newPhoto({"id":7312501,"src":"nnn_030_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7312501.html","width":130,"caption":"Portrait of Papou in pencil","height":194});
															thumbnails[7920036] = clik.newPhoto({"id":7920036,"src":"007_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7920036.html","width":130,"caption":"Portrait of Maddy","height":190});
															thumbnails[7920038] = clik.newPhoto({"id":7920038,"src":"Sandra_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7920038.html","width":130,"caption":"Portrait of Sandra","height":173});
															thumbnails[7920062] = clik.newPhoto({"id":7920062,"src":"269_thumb.JPG","galleries_id":378434,"server_id":5,"link":"photo_7920062.html","width":130,"caption":"Female nude resting","height":176});
															thumbnails[7920060] = clik.newPhoto({"id":7920060,"src":"whos_that_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7920060.html","width":130,"caption":"Hugh Laurie, actor","height":183});
															thumbnails[7920054] = clik.newPhoto({"id":7920054,"src":"JH_web_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7920054.html","width":130,"caption":"John Hurt CBE","height":199});
															thumbnails[7434960] = clik.newPhoto({"id":7434960,"src":"mum_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7434960.html","width":130,"caption":"Mum","height":173});
															thumbnails[7312507] = clik.newPhoto({"id":7312507,"src":"plater_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_7312507.html","width":130,"caption":"Broken 2","height":97});
															thumbnails[7313822] = clik.newPhoto({"id":7313822,"src":"blackman4_thumb.JPG","galleries_id":378434,"server_id":5,"link":"photo_7313822.html","width":130,"caption":"Male dancer","height":172});
															thumbnails[7313005] = clik.newPhoto({"id":7313005,"src":"sitted_nude__thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7313005.html","width":130,"caption":"Female nude ","height":173});
															thumbnails[7167624] = clik.newPhoto({"id":7167624,"src":"femalenude_web_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_7167624.html","width":130,"caption":"Redhead","height":187});
															thumbnails[7079221] = clik.newPhoto({"id":7079221,"src":"gleam_3_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_7079221.html","width":130,"caption":"Gleam Festival","height":173});
															thumbnails[6982771] = clik.newPhoto({"id":6982771,"src":"today_006_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_6982771.html","width":130,"caption":"\"George\"","height":173});
															thumbnails[6895072] = clik.newPhoto({"id":6895072,"src":"today_10_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_6895072.html","width":130,"caption":"Broken","height":98});
															thumbnails[6044176] = clik.newPhoto({"id":6044176,"src":"9d957470ad88d9574105ec674b519e30_thumb.png","galleries_id":301779,"server_id":5,"link":"photo_6044176.html","width":130,"caption":" Riverside Derby for the project :<br>\r\nThere is beauty in the city ","height":98});
															thumbnails[5770255] = clik.newPhoto({"id":5770255,"src":"swans__web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5770255.html","width":130,"caption":"\"swans\"","height":85});
															thumbnails[5067715] = clik.newPhoto({"id":5067715,"src":"round__412_thumb.jpg","galleries_id":285799,"server_id":5,"link":"photo_5067715.html","width":130,"caption":"Blue Earth","height":98});
															thumbnails[5067719] = clik.newPhoto({"id":5067719,"src":"blue__tree_thumb.jpg","galleries_id":285799,"server_id":5,"link":"photo_5067719.html","width":130,"caption":"Blue olive tree","height":173});
															thumbnails[5068133] = clik.newPhoto({"id":5068133,"src":"exh_hellenicc_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5068133.html","width":130,"caption":"Exhibition at The Hellenic Centre, London","height":98});
															thumbnails[5068137] = clik.newPhoto({"id":5068137,"src":"fluorecent_web_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_5068137.html","width":130,"caption":"Fluorecent blue tubes<br>\r\nExhibition at Bonnignhton Gallery<br>\r\nNottingham Trent University","height":101});
															thumbnails[5068138] = clik.newPhoto({"id":5068138,"src":"red_shoes_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_5068138.html","width":130,"caption":"Exhibition at Bonnighton Gallery","height":119});
															thumbnails[5068340] = clik.newPhoto({"id":5068340,"src":"round_5_thumb.jpg","galleries_id":285799,"server_id":5,"link":"photo_5068340.html","width":130,"caption":"Olive nets <br>\r\n","height":98});
															thumbnails[5068508] = clik.newPhoto({"id":5068508,"src":"inst_cross1_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_5068508.html","width":130,"caption":"Blue","height":194});
															thumbnails[5079430] = clik.newPhoto({"id":5079430,"src":"img002_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_5079430.html","width":130,"caption":"male nude","height":80});
															thumbnails[5079577] = clik.newPhoto({"id":5079577,"src":"painting_cros_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5079577.html","width":130,"caption":"","height":96});
															thumbnails[5081775] = clik.newPhoto({"id":5081775,"src":"waterbottle__sand_thumb.jpg","galleries_id":285799,"server_id":5,"link":"photo_5081775.html","width":130,"caption":"","height":173});
															thumbnails[5081835] = clik.newPhoto({"id":5081835,"src":"blue__nets_thumb.jpg","galleries_id":285799,"server_id":5,"link":"photo_5081835.html","width":130,"caption":"Blue Nets","height":33});
															thumbnails[5081857] = clik.newPhoto({"id":5081857,"src":"web_8_jpg_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5081857.html","width":130,"caption":"Swallow","height":97});
															thumbnails[5122345] = clik.newPhoto({"id":5122345,"src":"Bonninghton_g_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5122345.html","width":130,"caption":"Bonninghton Gallery<br>\r\nNottingham Trent University","height":98});
															thumbnails[5131693] = clik.newPhoto({"id":5131693,"src":"in_the_wind_3_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_5131693.html","width":130,"caption":"Maestro\/linocut print","height":92});
															thumbnails[5131699] = clik.newPhoto({"id":5131699,"src":"treeon_newsprint_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_5131699.html","width":130,"caption":"Untitled\/linocut print","height":166});
															thumbnails[5131732] = clik.newPhoto({"id":5131732,"src":"img003_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_5131732.html","width":130,"caption":"male seated","height":192});
															thumbnails[5131753] = clik.newPhoto({"id":5131753,"src":"blue_mountains_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5131753.html","width":130,"caption":"\"Blue Mountains\"","height":58});
															thumbnails[5131792] = clik.newPhoto({"id":5131792,"src":"20090810_14__2_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5131792.html","width":130,"caption":"Untitled","height":121});
															thumbnails[5131800] = clik.newPhoto({"id":5131800,"src":"sharp_heat_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5131800.html","width":130,"caption":"Sharp heat","height":46});
															thumbnails[5131817] = clik.newPhoto({"id":5131817,"src":"olivetree-1_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_5131817.html","width":130,"caption":"Olive tree 1","height":181});
															thumbnails[5131821] = clik.newPhoto({"id":5131821,"src":"olivetree-2_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_5131821.html","width":130,"caption":"Olive tree 2","height":179});
															thumbnails[5153126] = clik.newPhoto({"id":5153126,"src":"blue_water_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5153126.html","width":130,"caption":"Blue Water","height":113});
															thumbnails[5153130] = clik.newPhoto({"id":5153130,"src":"wave_2_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5153130.html","width":130,"caption":"To catch a Wave","height":108});
															thumbnails[5153131] = clik.newPhoto({"id":5153131,"src":"blue_clouds_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5153131.html","width":130,"caption":"Blue Clouds","height":124});
															thumbnails[5165311] = clik.newPhoto({"id":5165311,"src":"confer_centre_01_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5165311.html","width":130,"caption":"\"Bleeding landspace\"","height":98});
															thumbnails[5165312] = clik.newPhoto({"id":5165312,"src":"confer_centre_02_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5165312.html","width":130,"caption":"\"There is light at the end of the tunel\"","height":102});
															thumbnails[5165317] = clik.newPhoto({"id":5165317,"src":"confer_centre_03_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5165317.html","width":130,"caption":"Yellow Cut","height":98});
															thumbnails[5165320] = clik.newPhoto({"id":5165320,"src":"confer_centre_005_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5165320.html","width":130,"caption":"East Midlands Conference Centre, University of Nottingham ","height":98});
															thumbnails[5165326] = clik.newPhoto({"id":5165326,"src":"derby_museum_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5165326.html","width":130,"caption":"Derby Museum and Art Gallery<br>\r\nExhibition View","height":98});
															thumbnails[5194360] = clik.newPhoto({"id":5194360,"src":"swallow_web_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5194360.html","width":130,"caption":"Swallow","height":98});
															thumbnails[5769894] = clik.newPhoto({"id":5769894,"src":"web_2_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_5769894.html","width":130,"caption":"\"In and Out of Blue\"","height":173});
															thumbnails[5769953] = clik.newPhoto({"id":5769953,"src":"6a17dd60f76d45fe93d3f09ddcffb52d_thumb.png","galleries_id":286451,"server_id":5,"link":"photo_5769953.html","width":130,"caption":"In and Out of Blue\"","height":173});
															thumbnails[5770004] = clik.newPhoto({"id":5770004,"src":"heart_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5770004.html","width":130,"caption":"\"Speaks for itself\"","height":92});
															thumbnails[5770260] = clik.newPhoto({"id":5770260,"src":"beautiful__web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5770260.html","width":130,"caption":"\"Beautiful\"","height":98});
															thumbnails[5770358] = clik.newPhoto({"id":5770358,"src":"elegant_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5770358.html","width":130,"caption":"\"Elegant\"","height":173});
															thumbnails[5770371] = clik.newPhoto({"id":5770371,"src":"wild_life_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5770371.html","width":130,"caption":"\"By the lake\"","height":173});
															thumbnails[6044157] = clik.newPhoto({"id":6044157,"src":"riversideweb_thumb.JPG","galleries_id":301779,"server_id":5,"link":"photo_6044157.html","width":130,"caption":"Riverside Derby","height":118});
															thumbnails[6516783] = clik.newPhoto({"id":6516783,"src":"ballerinas_legs_webjpg_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_6516783.html","width":130,"caption":"The Ballerina<br>\r\n","height":83});
															thumbnails[6982762] = clik.newPhoto({"id":6982762,"src":"today_007_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_6982762.html","width":130,"caption":"\"Broken II\"","height":85});
															thumbnails[6982879] = clik.newPhoto({"id":6982879,"src":"terrors_004_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_6982879.html","width":130,"caption":"\"Little terrors\"","height":88});
															thumbnails[6983726] = clik.newPhoto({"id":6983726,"src":"workers-welfare2_thumb_79D322C5-1EC9-D45B-1C67ADFC704A7100.jpg","galleries_id":286451,"server_id":5,"link":"photo_6983726.html","width":130,"caption":"Current Runours","height":146});
															thumbnails[6983759] = clik.newPhoto({"id":6983759,"src":"Belper_North_Mill_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_6983759.html","width":130,"caption":"Current Rumours","height":92});
															thumbnails[6983778] = clik.newPhoto({"id":6983778,"src":"Life_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_6983778.html","width":130,"caption":"Life","height":108});
															thumbnails[6983849] = clik.newPhoto({"id":6983849,"src":"mums_blouse_web_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_6983849.html","width":130,"caption":"Life(An old work I still like to show)","height":91});
															thumbnails[6984097] = clik.newPhoto({"id":6984097,"src":"Athensport4_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_6984097.html","width":130,"caption":"<br>\r\nAthens Marina,Greece","height":98});
															thumbnails[6984103] = clik.newPhoto({"id":6984103,"src":"Athens_port_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_6984103.html","width":130,"caption":"Athens Marina","height":98});
															thumbnails[7034881] = clik.newPhoto({"id":7034881,"src":"light_box__web_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_7034881.html","width":130,"caption":"\" Inside Blue \"<br>\r\n   Blue Nets","height":87});
															thumbnails[7079240] = clik.newPhoto({"id":7079240,"src":"gleam_5_thumb.jpg","galleries_id":286451,"server_id":5,"link":"photo_7079240.html","width":130,"caption":"Gleam Festival of Light ","height":173});
															thumbnails[7167448] = clik.newPhoto({"id":7167448,"src":"blue_dancer_thumb.JPG","galleries_id":286450,"server_id":5,"link":"photo_7167448.html","width":130,"caption":"Lighten up\/linocut print","height":172});
															thumbnails[7167454] = clik.newPhoto({"id":7167454,"src":"redman_web_thumb.JPG","galleries_id":286450,"server_id":5,"link":"photo_7167454.html","width":130,"caption":"Lighten up\/linocut print","height":195});
															thumbnails[7167457] = clik.newPhoto({"id":7167457,"src":"olive_treeshoes_thumb.JPG","galleries_id":286450,"server_id":5,"link":"photo_7167457.html","width":130,"caption":"Olive tree\/linocut print","height":168});
															thumbnails[8827855] = clik.newPhoto({"id":8827855,"src":"blue_female_nude_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_8827855.html","width":130,"caption":"Expressive life drawing","height":163});
															thumbnails[8827856] = clik.newPhoto({"id":8827856,"src":"img001-web_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_8827856.html","width":130,"caption":"Red and black male nude life painting","height":76});
															thumbnails[8827859] = clik.newPhoto({"id":8827859,"src":"redheadweb_thumb.JPG","galleries_id":378434,"server_id":5,"link":"photo_8827859.html","width":130,"caption":"Redhead female nude.","height":202});
															thumbnails[8948044] = clik.newPhoto({"id":8948044,"src":"papou_web_thumb.jpg","galleries_id":378434,"server_id":5,"link":"photo_8948044.html","width":130,"caption":"Papou II","height":173});
															thumbnails[8948261] = clik.newPhoto({"id":8948261,"src":"life2sm_thumb.gif","galleries_id":286451,"server_id":5,"link":"photo_8948261.html","width":108,"caption":"\"Life\" Installation view","height":150});
															thumbnails[8948269] = clik.newPhoto({"id":8948269,"src":"life111sm_thumb.gif","galleries_id":286451,"server_id":5,"link":"photo_8948269.html","width":108,"caption":"\"Life\" Installation View","height":160});
															thumbnails[8948273] = clik.newPhoto({"id":8948273,"src":"AssemblyRooms_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_8948273.html","width":130,"caption":"Derby Theatre, Assembly Rooms.","height":87});
															thumbnails[8948274] = clik.newPhoto({"id":8948274,"src":"Leicestercitygal2_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_8948274.html","width":130,"caption":"Leicester City Gallery","height":98});
															thumbnails[8948276] = clik.newPhoto({"id":8948276,"src":"DanceCentreDerby_thumb.jpg","galleries_id":286452,"server_id":5,"link":"photo_8948276.html","width":130,"caption":"DEDA","height":179});
															thumbnails[9091481] = clik.newPhoto({"id":9091481,"src":"Book_an_event_thumb1_2.jpg","galleries_id":378434,"server_id":38,"link":"photo_9091481.html","width":130,"caption":"Event\/Workshop","height":182});
															thumbnails[5769824] = clik.newPhoto({"id":5769824,"src":"gold_on_sand_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5769824.html","width":130,"caption":"\"Gold on sand\"<br>\r\n","height":92});
															thumbnails[5165333] = clik.newPhoto({"id":5165333,"src":"trees_I-web_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_5165333.html","width":130,"caption":"Trees. Killis Lane, Derbyshire","height":186});
															thumbnails[5769857] = clik.newPhoto({"id":5769857,"src":"millenium_capsule_4_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5769857.html","width":130,"caption":"\"Millennium capsule\"","height":91});
															thumbnails[5769879] = clik.newPhoto({"id":5769879,"src":"millenium_capsule_2_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5769879.html","width":130,"caption":"\"Millennium capsule II\"","height":91});
															thumbnails[5131692] = clik.newPhoto({"id":5131692,"src":"green_olive_tree_2_thumb.jpg","galleries_id":286450,"server_id":5,"link":"photo_5131692.html","width":130,"caption":"In the wind of change\/linocut print","height":156});
															thumbnails[5769869] = clik.newPhoto({"id":5769869,"src":"stones_web_thumb.jpg","galleries_id":301779,"server_id":5,"link":"photo_5769869.html","width":130,"caption":"\"Out of this world\"","height":83});
															thumbnails[5753250] = clik.newPhoto({"id":5753250,"src":"dance_0112_thumb.JPG","galleries_id":378434,"server_id":5,"link":"photo_5753250.html","width":130,"caption":"\"Dance\"","height":186});
															thumbnails[5194378] = clik.newPhoto({"id":5194378,"src":"rose_on_black_copy_thumb.jpg","galleries_id":285798,"server_id":5,"link":"photo_5194378.html","width":130,"caption":"Rose","height":128});
															thumbnails[5659754] = clik.newPhoto({"id":5659754,"src":"dance3_thumb.JPG","galleries_id":378434,"server_id":5,"link":"photo_5659754.html","width":130,"caption":"\"Dance II\"","height":173});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[286452] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Exhibitions","link":"gallery_286452.html","maxRecords":0.0,"photoIDs":[5068133.0,5079577.0,5081857.0,5122345.0,5165320.0,5165326.0,5194360.0,5769894.0,6983759.0,7034881.0,8948273.0,8948274.0,8948276.0],"skipIndex":0,"section_code":"gallery","featured_images":"8948276,8948274,8948273,7034881,6983759,5769894,5194360,5165326,5165320,5122345","id":286452,"singleSection":false});				  						galleries[378434] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Figurative","link":"gallery_378434.html","maxRecords":0.0,"photoIDs":[7312501.0,7920036.0,7920038.0,7920062.0,7920060.0,7920054.0,7434960.0,7313822.0,7313005.0,7167624.0,6982771.0,5079430.0,5131732.0,6516783.0,8827855.0,8827856.0,8827859.0,8948044.0,9091481.0,5753250.0,5659754.0],"skipIndex":0,"section_code":"gallery","featured_images":"9091481,8948044,8827859,8827856,8827855,7920062,7920060,7920054,7920038,7920036","id":378434,"singleSection":false});				  						galleries[286450] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"works on paper","link":"gallery_286450.html","maxRecords":0.0,"photoIDs":[7312507.0,6895072.0,5131693.0,5131699.0,5131817.0,5131821.0,6982762.0,6982879.0,7167448.0,7167454.0,7167457.0,5165333.0,5131692.0],"skipIndex":0,"section_code":"gallery","featured_images":"7312507,7167457,7167454,7167448,6982879,6982762,6895072,5165333,5131821,5131817","id":286450,"singleSection":false});				  						galleries[285798] = clik.newGallery({"parentGallery":"","usePopups":false,"title":" paintings","link":"gallery_285798.html","maxRecords":0.0,"photoIDs":[5131753.0,5131792.0,5131800.0,5153126.0,5153130.0,5153131.0,5165311.0,5165312.0,5165317.0,5194378.0],"skipIndex":0,"section_code":"gallery","featured_images":"5194378,5165317,5165312,5165311,5153131,5153130,5153126,5131800,5131792,5131753","id":285798,"singleSection":false});				  						galleries[286451] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Installation","link":"gallery_286451.html","maxRecords":0.0,"photoIDs":[7079221.0,5068137.0,5068138.0,5068508.0,5769953.0,6983726.0,6983778.0,6983849.0,7079240.0,8948261.0,8948269.0],"skipIndex":0,"section_code":"gallery","featured_images":"8948269,8948261,7079240,7079221,6983849,6983778,6983726,5769953,5068508,5068138","id":286451,"singleSection":false});				  						galleries[285799] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Photomontage","link":"gallery_285799.html","maxRecords":0.0,"photoIDs":[5067715.0,5067719.0,5068340.0,5081775.0,5081835.0],"skipIndex":0,"section_code":"gallery","featured_images":"5081835,5081775,5068340,5067719,5067715","id":285799,"singleSection":false});				  						galleries[301779] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"photography","link":"gallery_301779.html","maxRecords":0.0,"photoIDs":[6044176.0,5770255.0,5770004.0,5770260.0,5770358.0,5770371.0,6044157.0,6984097.0,6984103.0,5769824.0,5769857.0,5769879.0,5769869.0],"skipIndex":0,"section_code":"gallery","featured_images":"6984103,6984097,6044176,6044157,5770371,5770358,5770260,5770255,5770004,5769879","id":301779,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9091481,8948276,8948274,8948273,8948269,8948261,8948044,8827859,8827856,8827855,7920062,7920060,7920054,7920038,7920036,7434960,7313822,7313005,7312507,7312501,7167624,7167457,7167454,7167448,7079240,7079221,7034881,6984103,6984097,6983849,6983778,6983759,6983726,6982879,6982771,6982762,6895072,6516783,6044176,6044157,5770371,5770358,5770260,5770255,5770004,5769953,5769894,5769879,5769869,5769857';
imageSets[247651] = '9091481';
imageSets[3] = '9091481,8948276,8948274,8948273,8948269,8948261,8948044,8827859,8827856,8827855,7920062,7920060,7920054,7920038,7920036,7434960,7313822,7313005,7312507,7312501,7167624,7167457,7167454,7167448,7079240,7079221,7034881,6984103,6984097,6983849,6983778,6983759,6983726,6982879,6982771,6982762,6895072,6516783,6044176,6044157,5770371,5770358,5770260,5770255,5770004,5769953,5769894,5769879,5769869,5769857';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/alexandraart/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/alexandraart/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 = 'Alexandra Koufali: ' + 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="ALEXANDRAART">';
			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;
	}
}

			

