window.thumbnails = {};
															thumbnails[7276832] = clik.newPhoto({"id":7276832,"src":"sheep_1_500_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Snow Sheep","height":129});
															thumbnails[7277099] = clik.newPhoto({"id":7277099,"src":"sheep_2_500_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Sheep in snow 2","height":117});
															thumbnails[7390520] = clik.newPhoto({"id":7390520,"src":"coastal_path_1_500_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"spring flowers on the coastal path","height":130});
															thumbnails[8979734] = clik.newPhoto({"id":8979734,"src":"sketch_14_monks_2_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979734.html","width":130,"caption":"Monks","height":123});
															thumbnails[8979744] = clik.newPhoto({"id":8979744,"src":"sketch_30_monks_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979744.html","width":130,"caption":"monks robes","height":129});
															thumbnails[8979750] = clik.newPhoto({"id":8979750,"src":"sketch_11_monks_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979750.html","width":130,"caption":"monks robes and movement","height":128});
															thumbnails[8979755] = clik.newPhoto({"id":8979755,"src":"sketch_collage_31_monks_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979755.html","width":130,"caption":"Collage development","height":128});
															thumbnails[8979830] = clik.newPhoto({"id":8979830,"src":"collage_2_monks_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979830.html","width":130,"caption":"monks collage for development into print","height":124});
															thumbnails[8979818] = clik.newPhoto({"id":8979818,"src":"collage_1_monks_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979818.html","width":130,"caption":"Development sketch towards print.","height":122});
															thumbnails[8979762] = clik.newPhoto({"id":8979762,"src":"sketch_collage_25_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979762.html","width":130,"caption":"drawing and collage","height":121});
															thumbnails[8979773] = clik.newPhoto({"id":8979773,"src":"sketch_collage_27_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979773.html","width":130,"caption":"collage and paint, the mountains","height":121});
															thumbnails[8979781] = clik.newPhoto({"id":8979781,"src":"sketch_collage_28_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979781.html","width":130,"caption":"mountains and flags","height":127});
															thumbnails[8979794] = clik.newPhoto({"id":8979794,"src":"sketch_collage_29_mountains_flags_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979794.html","width":130,"caption":"mountains and flags","height":133});
															thumbnails[8979731] = clik.newPhoto({"id":8979731,"src":"sketch_24_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979731.html","width":130,"caption":"developments from the sketches","height":68});
															thumbnails[8979727] = clik.newPhoto({"id":8979727,"src":"sketch_23_writing_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979727.html","width":130,"caption":"mountains and lines","height":67});
															thumbnails[8979546] = clik.newPhoto({"id":8979546,"src":"sketch_13_stupas_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979546.html","width":130,"caption":"Stupas in the mountains","height":72});
															thumbnails[8979721] = clik.newPhoto({"id":8979721,"src":"sketch_22_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979721.html","width":130,"caption":"Prayers on the rock","height":71});
															thumbnails[8979714] = clik.newPhoto({"id":8979714,"src":"sketch_21_stupas_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979714.html","width":130,"caption":"More flags and stupas","height":66});
															thumbnails[8979344] = clik.newPhoto({"id":8979344,"src":"sketch_2_Namche_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979344.html","width":130,"caption":"Above Namche, Nepal","height":66});
															thumbnails[8979357] = clik.newPhoto({"id":8979357,"src":"sketch_4_namche_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979357.html","width":130,"caption":"Namche, Nepal","height":67});
															thumbnails[8979376] = clik.newPhoto({"id":8979376,"src":"sketch_3_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979376.html","width":130,"caption":"Stupas and mountains","height":65});
															thumbnails[8979414] = clik.newPhoto({"id":8979414,"src":"sketch_5_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979414.html","width":130,"caption":"Above Thame, Nepal","height":68});
															thumbnails[8979443] = clik.newPhoto({"id":8979443,"src":"sketch_7_Thame_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979443.html","width":130,"caption":"Thame Lodge","height":65});
															thumbnails[8979419] = clik.newPhoto({"id":8979419,"src":"sketch_6_thame_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979419.html","width":130,"caption":"Thame, Nepal","height":69});
															thumbnails[8979334] = clik.newPhoto({"id":8979334,"src":"sketch_1_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979334.html","width":130,"caption":"Monjo, above Lukla, Nepal","height":69});
															thumbnails[8979476] = clik.newPhoto({"id":8979476,"src":"sketch_10_katmandu_market_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979476.html","width":130,"caption":"Katmandu market","height":69});
															thumbnails[8979539] = clik.newPhoto({"id":8979539,"src":"sketch_12_katmandu_hindu_festival_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979539.html","width":130,"caption":"Hindu festival","height":64});
															thumbnails[8979702] = clik.newPhoto({"id":8979702,"src":"sketch_19_prayer_flags_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979702.html","width":130,"caption":"Prayer flags","height":68});
															thumbnails[8979694] = clik.newPhoto({"id":8979694,"src":"sketch_16_children_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979694.html","width":130,"caption":"Street children","height":72});
															thumbnails[8979689] = clik.newPhoto({"id":8979689,"src":"sketch_15_flags_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979689.html","width":130,"caption":"Prayer flags, everywhere.","height":89});
															thumbnails[8979709] = clik.newPhoto({"id":8979709,"src":"sketch_20_people_shrine_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979709.html","width":130,"caption":"Sherpas traditional costume and Hindu shrine","height":68});
															thumbnails[8979685] = clik.newPhoto({"id":8979685,"src":"sketch_14_kids_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979685.html","width":130,"caption":"Children","height":74});
															thumbnails[8979511] = clik.newPhoto({"id":8979511,"src":"sketch_9_mountains_thumb.jpg","galleries_id":440504,"server_id":5,"link":"photo_8979511.html","width":130,"caption":"Silouettes of mountains","height":67});
															thumbnails[8180709] = clik.newPhoto({"id":8180709,"src":"olive_grove_sketch_1_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180709.html","width":130,"caption":"Olive Grove Sketch 1","height":131});
															thumbnails[8180724] = clik.newPhoto({"id":8180724,"src":"olive_grove_sketch_2_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180724.html","width":130,"caption":"Olive Grove sketch 2","height":131});
															thumbnails[8180745] = clik.newPhoto({"id":8180745,"src":"olive_grove_sketch_3_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180745.html","width":130,"caption":"Olive grove sketch 3","height":130});
															thumbnails[8180776] = clik.newPhoto({"id":8180776,"src":"olive_grove_sketch_4_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180776.html","width":130,"caption":"Olive Grove sketch 4","height":130});
															thumbnails[8180787] = clik.newPhoto({"id":8180787,"src":"olive_grove_small_painting_2_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180787.html","width":130,"caption":"Olives grove painting 1","height":128});
															thumbnails[8180802] = clik.newPhoto({"id":8180802,"src":"olive_grove_small_painting_3_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180802.html","width":130,"caption":"Olive Grove painting 2","height":130});
															thumbnails[8180822] = clik.newPhoto({"id":8180822,"src":"olive_grove_small_painting_4_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180822.html","width":130,"caption":"Olive Grove painting 3","height":130});
															thumbnails[8180840] = clik.newPhoto({"id":8180840,"src":"olive_grove_small_painting_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180840.html","width":130,"caption":"Olive grove painting 4","height":128});
															thumbnails[8180859] = clik.newPhoto({"id":8180859,"src":"olive_grove_small_painting_5_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8180859.html","width":130,"caption":"Olive Grove painting 5","height":129});
															thumbnails[8274364] = clik.newPhoto({"id":8274364,"src":"cropped_pregnant_3_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_8274364.html","width":130,"caption":"Waiting for Cherry 2","height":132});
															thumbnails[8379807] = clik.newPhoto({"id":8379807,"src":"olive_tree_5_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8379807.html","width":130,"caption":"This strange and ancient place","height":130});
															thumbnails[7971448] = clik.newPhoto({"id":7971448,"src":"age_1_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7971448.html","width":130,"caption":"Age","height":175});
															thumbnails[7971452] = clik.newPhoto({"id":7971452,"src":"age_2_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7971452.html","width":130,"caption":"Age 2","height":173});
															thumbnails[7971453] = clik.newPhoto({"id":7971453,"src":"age_3_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7971453.html","width":130,"caption":"Age 3","height":178});
															thumbnails[7971457] = clik.newPhoto({"id":7971457,"src":"age_4_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7971457.html","width":130,"caption":"Age 4","height":221});
															thumbnails[8274355] = clik.newPhoto({"id":8274355,"src":"nip_and_dip_1_8001_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_8274355.html","width":130,"caption":"Comeon girls, lets 'nip & dip'!","height":130});
															thumbnails[7971465] = clik.newPhoto({"id":7971465,"src":"ruth_sketch_1_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7971465.html","width":130,"caption":"Ruth 2","height":194});
															thumbnails[8274360] = clik.newPhoto({"id":8274360,"src":"cropped_pregnant_1_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_8274360.html","width":130,"caption":"Waiting for Cherry","height":130});
															thumbnails[5252284] = clik.newPhoto({"id":5252284,"src":"self_portrait_cropped_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_5252284.html","width":130,"caption":"'Self Portrait'","height":181});
															thumbnails[7276827] = clik.newPhoto({"id":7276827,"src":"red_hat_lady_1_500_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7276827.html","width":130,"caption":"The red hat 1","height":102});
															thumbnails[7390487] = clik.newPhoto({"id":7390487,"src":"cropped_pregnant_3_500_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7390487.html","width":130,"caption":"Waiting 2","height":132});
															thumbnails[7276937] = clik.newPhoto({"id":7276937,"src":"red_hat_lady_3_500_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7276937.html","width":130,"caption":"the red hat 2","height":131});
															thumbnails[7390489] = clik.newPhoto({"id":7390489,"src":"pregnant_5_500_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7390489.html","width":130,"caption":"Waiting 3","height":130});
															thumbnails[7072730] = clik.newPhoto({"id":7072730,"src":"nude_2_500_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7072730.html","width":130,"caption":"Nude preparation sketch","height":224});
															thumbnails[8379838] = clik.newPhoto({"id":8379838,"src":"olive_trees_3_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8379838.html","width":130,"caption":"Through the olive groves","height":130});
															thumbnails[7072733] = clik.newPhoto({"id":7072733,"src":"nude_3_500_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7072733.html","width":130,"caption":"Nude preparation sketch 2","height":226});
															thumbnails[5365870] = clik.newPhoto({"id":5365870,"src":"mum_500_for_web_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_5365870.html","width":130,"caption":"Feeling Frail","height":169});
															thumbnails[7072722] = clik.newPhoto({"id":7072722,"src":"nude_figure_1_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7072722.html","width":130,"caption":"'Fat bottomed girls, they make the rockin' world go round'...","height":187});
															thumbnails[8379784] = clik.newPhoto({"id":8379784,"src":"olive_tree_2_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8379784.html","width":130,"caption":"Olives and Nets","height":130});
															thumbnails[8379836] = clik.newPhoto({"id":8379836,"src":"olive_trees_1_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8379836.html","width":130,"caption":"Nets under the Olives","height":130});
															thumbnails[8379841] = clik.newPhoto({"id":8379841,"src":"olive_trees_4_800_thumb.jpg","galleries_id":296007,"server_id":5,"link":"photo_8379841.html","width":130,"caption":"Olive Groves on a sunny day","height":130});
															thumbnails[5252285] = clik.newPhoto({"id":5252285,"src":"portrait_am_cropped_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_5252285.html","width":130,"caption":"Being 100 ","height":176});
															thumbnails[7486485] = clik.newPhoto({"id":7486485,"src":"tulips_final_1_800_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7486485.html","width":130,"caption":"Rampant tulips","height":130});
															thumbnails[7721949] = clik.newPhoto({"id":7721949,"src":"tulips_9_500_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7721949.html","width":130,"caption":"Rampant Tulips 9","height":130});
															thumbnails[7721958] = clik.newPhoto({"id":7721958,"src":"tulips_10_500_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7721958.html","width":130,"caption":"Rampant Tulips 10","height":130});
															thumbnails[7721929] = clik.newPhoto({"id":7721929,"src":"tulips_6_500_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7721929.html","width":130,"caption":"My Rampant Tulips","height":130});
															thumbnails[8180884] = clik.newPhoto({"id":8180884,"src":"flowers_2_800_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_8180884.html","width":130,"caption":"Past their best","height":130});
															thumbnails[7486509] = clik.newPhoto({"id":7486509,"src":"tulips_final_4_800_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7486509.html","width":130,"caption":"Rampant tulips 4","height":130});
															thumbnails[8180880] = clik.newPhoto({"id":8180880,"src":"flowers_1_800_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_8180880.html","width":130,"caption":"Barmaid blossoms","height":130});
															thumbnails[7486508] = clik.newPhoto({"id":7486508,"src":"tulips_final_3_800_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7486508.html","width":130,"caption":"Rampant tulips 3","height":130});
															thumbnails[7486500] = clik.newPhoto({"id":7486500,"src":"tulips_final_2_800_thumb.jpg","galleries_id":428802,"server_id":5,"link":"photo_7486500.html","width":130,"caption":"Rampant tulips 2","height":130});
															thumbnails[7970073] = clik.newPhoto({"id":7970073,"src":"mum_in_chair_800_thumb.jpg","galleries_id":295641,"server_id":5,"link":"photo_7970073.html","width":130,"caption":"Fading Away","height":148});
															thumbnails[7971110] = clik.newPhoto({"id":7971110,"src":"sketches_portugal_1_800_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_7971110.html","width":130,"caption":"Sketches from Portugal 1","height":67});
															thumbnails[7971116] = clik.newPhoto({"id":7971116,"src":"sketch_portugal_2_800_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_7971116.html","width":130,"caption":"Portugal Sketch book","height":67});
															thumbnails[7971118] = clik.newPhoto({"id":7971118,"src":"sketch_portugal_3_800_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_7971118.html","width":130,"caption":"Portugal Sketch book","height":68});
															thumbnails[7971124] = clik.newPhoto({"id":7971124,"src":"sketch_portugal_4_800_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_7971124.html","width":130,"caption":"Sketch book Portugal","height":69});
															thumbnails[7971317] = clik.newPhoto({"id":7971317,"src":"wales_coastal_path_2_800_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_7971317.html","width":130,"caption":"Wales, coastal path","height":70});
															thumbnails[7971323] = clik.newPhoto({"id":7971323,"src":"Wales_coastal_path_800_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_7971323.html","width":130,"caption":"Wales, coastal path","height":70});
															thumbnails[5828052] = clik.newPhoto({"id":5828052,"src":"sketch_book_7_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828052.html","width":130,"caption":"Manly beach ","height":66});
															thumbnails[5828155] = clik.newPhoto({"id":5828155,"src":"sketch_book_12_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828155.html","width":130,"caption":"On the boat to Freemantle","height":91});
															thumbnails[5828160] = clik.newPhoto({"id":5828160,"src":"sketch_book_14_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828160.html","width":130,"caption":"Seed heads","height":93});
															thumbnails[5828168] = clik.newPhoto({"id":5828168,"src":"sketch_book_15_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828168.html","width":130,"caption":"Kangaroos","height":89});
															thumbnails[5828207] = clik.newPhoto({"id":5828207,"src":"sketch_book_18_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828207.html","width":130,"caption":"Night animals","height":92});
															thumbnails[5828217] = clik.newPhoto({"id":5828217,"src":"sketch_book_20_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828217.html","width":130,"caption":"The Pinnacle, Grampians","height":92});
															thumbnails[5828180] = clik.newPhoto({"id":5828180,"src":"sketch_book_16_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828180.html","width":130,"caption":"Garden of Earthly Delights, Adelaide","height":93});
															thumbnails[5828230] = clik.newPhoto({"id":5828230,"src":"sketch_book_22_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828230.html","width":130,"caption":"Ocean Road","height":93});
															thumbnails[5828250] = clik.newPhoto({"id":5828250,"src":"sketch_book_24_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828250.html","width":130,"caption":"Sydney Opera House","height":93});
															thumbnails[5828254] = clik.newPhoto({"id":5828254,"src":"sketch_book_25_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828254.html","width":130,"caption":"Influences","height":93});
															thumbnails[5828195] = clik.newPhoto({"id":5828195,"src":"sketch_book_17_500_thumb.jpg","galleries_id":297871,"server_id":5,"link":"photo_5828195.html","width":130,"caption":"Barossa Valley from the car","height":91});
															thumbnails[5275861] = clik.newPhoto({"id":5275861,"src":"dragonfly_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5275861.html","width":130,"caption":"Dragonfly","height":87});
															thumbnails[5275928] = clik.newPhoto({"id":5275928,"src":"flower_and_bee_thumb.jpg","galleries_id":296904,"server_id":5,"link":"photo_5275928.html","width":130,"caption":"flower and bee","height":87});
															thumbnails[5275931] = clik.newPhoto({"id":5275931,"src":"sweet_pea_thumb.jpg","galleries_id":296904,"server_id":5,"link":"photo_5275931.html","width":130,"caption":"Sweet pea","height":87});
															thumbnails[5275940] = clik.newPhoto({"id":5275940,"src":"tomato_thumb.jpg","galleries_id":296904,"server_id":5,"link":"photo_5275940.html","width":130,"caption":"Home-grown tomato","height":87});
															thumbnails[5275994] = clik.newPhoto({"id":5275994,"src":"lakes_1_thumb.jpg","galleries_id":296898,"server_id":5,"link":"photo_5275994.html","width":130,"caption":"Derwent Water, Lake District","height":87});
															thumbnails[5276093] = clik.newPhoto({"id":5276093,"src":"green_man_Hastings_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5276093.html","width":130,"caption":"Green Man parade, Hastings","height":87});
															thumbnails[5276101] = clik.newPhoto({"id":5276101,"src":"Chatsworth_Derbyshire_thumb.jpg","galleries_id":296898,"server_id":5,"link":"photo_5276101.html","width":130,"caption":"Chatsworth House, Derbyshire","height":87});
															thumbnails[5296633] = clik.newPhoto({"id":5296633,"src":"storm_coming_in_500_thumb.jpg","galleries_id":296898,"server_id":5,"link":"photo_5296633.html","width":130,"caption":"Storm coming in","height":86});
															thumbnails[5296643] = clik.newPhoto({"id":5296643,"src":"clematis_lavendar_500_thumb.jpg","galleries_id":296904,"server_id":5,"link":"photo_5296643.html","width":130,"caption":"Clematis and lavendar","height":86});
															thumbnails[5300140] = clik.newPhoto({"id":5300140,"src":"venetian_masks_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5300140.html","width":130,"caption":"Masks in Venice","height":86});
															thumbnails[5300149] = clik.newPhoto({"id":5300149,"src":"niemeyer_museum_of_modern_art_brazil_500_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5300149.html","width":130,"caption":"Niemyer Museum of Modern Art, Brazil","height":86});
															thumbnails[5300157] = clik.newPhoto({"id":5300157,"src":"garlic_500_thumb.jpg","galleries_id":296904,"server_id":5,"link":"photo_5300157.html","width":130,"caption":"My home grown garlic","height":86});
															thumbnails[5300198] = clik.newPhoto({"id":5300198,"src":"wheel_chair_500_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5300198.html","width":130,"caption":"Uphill struggle","height":86});
															thumbnails[5276105] = clik.newPhoto({"id":5276105,"src":"Bruges_window_with_figures_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5276105.html","width":130,"caption":"Unusual bedfellows","height":196});
															thumbnails[5300202] = clik.newPhoto({"id":5300202,"src":"goodwood_festival_of_speed_500_thumb.jpg","galleries_id":296905,"server_id":5,"link":"photo_5300202.html","width":130,"caption":"At the Festival of Speed, Goodwood, Chichester","height":196});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[440504] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Sketches from Nepal","link":"section455537.html","maxRecords":0.0,"photoIDs":[8979734.0,8979744.0,8979750.0,8979755.0,8979830.0,8979818.0,8979762.0,8979773.0,8979781.0,8979794.0,8979731.0,8979727.0,8979546.0,8979721.0,8979714.0,8979344.0,8979357.0,8979376.0,8979414.0,8979443.0,8979419.0,8979334.0,8979476.0,8979539.0,8979702.0,8979694.0,8979689.0,8979709.0,8979685.0,8979511.0],"skipIndex":0,"section_code":"section455537","featured_images":8979744,"id":440504,"singleSection":true});				  						galleries[428802] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers with Attitude","link":"gallery_428802.html","maxRecords":0.0,"photoIDs":[7486485.0,7721949.0,7721958.0,7721929.0,8180884.0,7486509.0,8180880.0,7486508.0,7486500.0],"skipIndex":0,"section_code":"gallery","featured_images":"7721949,7721929,7486509,7486485","id":428802,"singleSection":false});				  						galleries[296898] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape photos","link":"section354792_296898.html","maxRecords":0.0,"photoIDs":[5275994.0,5276101.0,5296633.0],"skipIndex":0,"section_code":"section354792","featured_images":5275994.0,"id":296898,"singleSection":false});				  						galleries[296007] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Olive Groves","link":"gallery_296007.html","maxRecords":0.0,"photoIDs":[8180709.0,8180724.0,8180745.0,8180776.0,8180787.0,8180802.0,8180822.0,8180840.0,8180859.0,8379807.0,8379838.0,8379784.0,8379836.0,8379841.0],"skipIndex":0,"section_code":"gallery","featured_images":"8379784,8180787","id":296007,"singleSection":false});				  						galleries[296904] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers, fruit and veg ","link":"section354792_296904.html","maxRecords":0.0,"photoIDs":[5275928.0,5275931.0,5275940.0,5296643.0,5300157.0],"skipIndex":0,"section_code":"section354792","featured_images":5300157.0,"id":296904,"singleSection":false});				  						galleries[295641] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"People","link":"gallery_295641.html","maxRecords":0.0,"photoIDs":[8274364.0,7971448.0,7971452.0,7971453.0,7971457.0,8274355.0,7971465.0,8274360.0,5252284.0,7276827.0,7390487.0,7276937.0,7390489.0,7072730.0,7072733.0,5365870.0,7072722.0,5252285.0,7970073.0],"skipIndex":0,"section_code":"gallery","featured_images":"7971465,7970073","id":295641,"singleSection":false});				  						galleries[296905] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Miscellaneous","link":"section354792_296905.html","maxRecords":0.0,"photoIDs":[5275861.0,5276093.0,5300140.0,5300149.0,5300198.0,5276105.0,5300202.0],"skipIndex":0,"section_code":"section354792","featured_images":5276093.0,"id":296905,"singleSection":false});				  						galleries[297871] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Portugal, Wales and Australia","link":"section395218.html","maxRecords":0.0,"photoIDs":[7971110.0,7971116.0,7971118.0,7971124.0,7971317.0,7971323.0,5828052.0,5828155.0,5828160.0,5828168.0,5828207.0,5828217.0,5828180.0,5828230.0,5828250.0,5828254.0,5828195.0],"skipIndex":0,"section_code":"section395218","featured_images":7971118.0,"id":297871,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[233893] = '7276832,8979755,7276827,7276937,5365870,5252285';
imageSets[1] = '8979734,8979744,8979750,8979755,8979830,8979818,8979762,8979773,8979781,8979794,8379836,8379841,7486485,7486509';
imageSets[2] = '8180787,5300157,5276093,5275994,8979734,8979744,7971118,7971465,8979781,8979794,8979727,8979546,8979721,8379784,7486485,7721949,8979419,7721929,8979539,7486509,7970073';
imageSets[3] = '8979818';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/suesuesue/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/suesuesue/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 += 'section455537.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 && 'section455537' != '') {
					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 = 'Sue England: ' + 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>Artist </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;
	}
}

			

