window.thumbnails = {};
															thumbnails[4118251] = clik.newPhoto({"id":4118251,"src":"notelets_pic1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Click to enlarge","height":97});
															thumbnails[4118519] = clik.newPhoto({"id":4118519,"src":"notelets_pic2_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"Click to enlarge","height":96});
															thumbnails[4147642] = clik.newPhoto({"id":4147642,"src":"prints_photo_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":207});
															thumbnails[4147646] = clik.newPhoto({"id":4147646,"src":"cards_photo_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":86});
															thumbnails[4884798] = clik.newPhoto({"id":4884798,"src":"xmasuprightthree_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":88});
															thumbnails[5078644] = clik.newPhoto({"id":5078644,"src":"avatar1_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":146});
															thumbnails[5078657] = clik.newPhoto({"id":5078657,"src":"DSCF0039_thumb.JPG","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":52});
															thumbnails[4884788] = clik.newPhoto({"id":4884788,"src":"xmasuprightonesfw_thumb.jpg","galleries_id":"","server_id":15,"link":"#","width":130,"caption":"","height":70});
															thumbnails[3858192] = clik.newPhoto({"id":3858192,"src":"apple_tree_notelet_copy_2_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3858192.html","width":130,"caption":"\"Apple Tree\" watercolour\/ink  <br>\r\n<br>\r\n","height":200});
															thumbnails[3860176] = clik.newPhoto({"id":3860176,"src":"blowsy_tulips_notelet_copy_212_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3860176.html","width":130,"caption":"\"Blowsy Tulips\" watercolour ","height":175});
															thumbnails[3861004] = clik.newPhoto({"id":3861004,"src":"camellia_1_notelet_copy_2_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3861004.html","width":130,"caption":"\"Camellia\" watercolour ","height":193});
															thumbnails[3861069] = clik.newPhoto({"id":3861069,"src":"camellia_close_up_notelet_copy_21_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3861069.html","width":130,"caption":"\"Camellia 2\" watercolour ","height":180});
															thumbnails[3861114] = clik.newPhoto({"id":3861114,"src":"flowers_in_glass_notelet_copy_21_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3861114.html","width":130,"caption":"\"Tulips in a Vase\" watercolour ","height":156});
															thumbnails[3861225] = clik.newPhoto({"id":3861225,"src":"irrises_pastel_notelet_copy_2_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3861225.html","width":130,"caption":"\"Irises 3\" pastel ","height":195});
															thumbnails[3862377] = clik.newPhoto({"id":3862377,"src":"anemones_notelet_copy_312_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3862377.html","width":130,"caption":"\"Anemones\" watercolour ","height":153});
															thumbnails[3862389] = clik.newPhoto({"id":3862389,"src":"clematis_montana_notelet_copy_21_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3862389.html","width":130,"caption":"\"Clematis montana\" pastel ","height":197});
															thumbnails[3862401] = clik.newPhoto({"id":3862401,"src":"hellebores_notelet_copy_21_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3862401.html","width":130,"caption":"\"Hellebores\" watercolour ","height":207});
															thumbnails[3862690] = clik.newPhoto({"id":3862690,"src":"harbour_arm_notelet_copy_21_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3862690.html","width":130,"caption":"\"Newhaven Harbour Arm\" pastel ","height":59});
															thumbnails[3885305] = clik.newPhoto({"id":3885305,"src":"abstract_still_life_notelet_2_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3885305.html","width":130,"caption":"\"Bottles, Jars and Fruit\" pastel ","height":192});
															thumbnails[3885318] = clik.newPhoto({"id":3885318,"src":"back_window_houses_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3885318.html","width":130,"caption":"\"Will it Dry?\" pastel ","height":190});
															thumbnails[3885326] = clik.newPhoto({"id":3885326,"src":"boats_at_marina_notelet_copy_212345_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3885326.html","width":130,"caption":"\"Newhaven Marina, East Sussex\" pastel ","height":180});
															thumbnails[3885341] = clik.newPhoto({"id":3885341,"src":"boats_at_newhaven_2_notele_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3885341.html","width":130,"caption":"\"Boats at Newhaven\" pastel ","height":201});
															thumbnails[3885342] = clik.newPhoto({"id":3885342,"src":"boats_pink_newhaven_notele_copy_21_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3885342.html","width":130,"caption":"\"Newhaven Marina, Evening\" pastel ","height":158});
															thumbnails[3885344] = clik.newPhoto({"id":3885344,"src":"bottles_and_glasses_notele_copy_2_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3885344.html","width":130,"caption":"\"Bottles & Glasses\" pastel ","height":189});
															thumbnails[3885346] = clik.newPhoto({"id":3885346,"src":"caburn_notelet_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3885346.html","width":130,"caption":"\"Mount Caburn near Lewes, East Sussex\" pastel   ","height":85});
															thumbnails[3885348] = clik.newPhoto({"id":3885348,"src":"canal_notelet_copy_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_3885348.html","width":130,"caption":"\"Canal in France\"<br>\r\nwatercolour ","height":90});
															thumbnails[3885349] = clik.newPhoto({"id":3885349,"src":"castle_from_swanborugh_pas_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3885349.html","width":130,"caption":"\"Lewes Castle from Swanborough Lakes, East Sussex\" pastel ","height":177});
															thumbnails[3885351] = clik.newPhoto({"id":3885351,"src":"cats_1-1_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3885351.html","width":130,"caption":"\"Cat\" charcoal  ","height":181});
															thumbnails[3885354] = clik.newPhoto({"id":3885354,"src":"cats_7_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3885354.html","width":130,"caption":"\"Tonganese cat\" pastel ","height":127});
															thumbnails[3909486] = clik.newPhoto({"id":3909486,"src":"cats_small_images_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3909486.html","width":130,"caption":"\"Trio\" charcoal  ","height":140});
															thumbnails[3909491] = clik.newPhoto({"id":3909491,"src":"cats_siamese_asleep_notele_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3909491.html","width":130,"caption":"\"Sleeping Siamese\"pastel ","height":91});
															thumbnails[3909571] = clik.newPhoto({"id":3909571,"src":"charcoal_grasses_notelet_copy_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_3909571.html","width":130,"caption":"\"Grasses\"  charcoal ","height":85});
															thumbnails[3909576] = clik.newPhoto({"id":3909576,"src":"cliffs_notelet_2_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3909576.html","width":130,"caption":"\"West Beach Cliffs, Newhaven, East Sussex\"  pastel","height":162});
															thumbnails[3909654] = clik.newPhoto({"id":3909654,"src":"cottage_in_france_notelet_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3909654.html","width":130,"caption":"\"Cottage in France\" pencil ","height":84});
															thumbnails[3909660] = clik.newPhoto({"id":3909660,"src":"firle_barnyard_notelet_copy_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_3909660.html","width":130,"caption":"\"Trees\" aquarelle crayon ","height":90});
															thumbnails[3909663] = clik.newPhoto({"id":3909663,"src":"firle_forge_2_notelet_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3909663.html","width":130,"caption":"\"Old Forge, Firle, Sussex\" watercolour & ink","height":97});
															thumbnails[3909665] = clik.newPhoto({"id":3909665,"src":"firle_stores_1_notelet_copy_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_3909665.html","width":130,"caption":"\"Post Office, Firle, Sussex\" watercolour & ink","height":94});
															thumbnails[3909667] = clik.newPhoto({"id":3909667,"src":"garden_chair_notelet_rever_copy_2_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3909667.html","width":130,"caption":"\"A Relaxing Corner\" watercolour\/ink ","height":89});
															thumbnails[3909670] = clik.newPhoto({"id":3909670,"src":"garden_gate_notelet_copy_2_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3909670.html","width":130,"caption":"\"Garden Gate\" watercolour\/ink ","height":186});
															thumbnails[3909672] = clik.newPhoto({"id":3909672,"src":"garden_pots_notelet_2_copy_2_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3909672.html","width":130,"caption":"\"Garden Pots\" watercolour  ","height":188});
															thumbnails[3909675] = clik.newPhoto({"id":3909675,"src":"hats_notelet_copy_2_thumb.jpg","galleries_id":247240,"server_id":15,"link":"photo_3909675.html","width":130,"caption":"\"Hats\" watercolour ","height":112});
															thumbnails[3909679] = clik.newPhoto({"id":3909679,"src":"lighthouse_copy_2_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3909679.html","width":130,"caption":"\"Newhaven Lighthouse\"  pastel ","height":181});
															thumbnails[3909682] = clik.newPhoto({"id":3909682,"src":"newhaven_marina_4_copy_2_thumb.jpg","galleries_id":236008,"server_id":15,"link":"photo_3909682.html","width":130,"caption":"\"Newhaven Marina 4\" pastel  ","height":167});
															thumbnails[3909686] = clik.newPhoto({"id":3909686,"src":"westbeach_cliffs_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_3909686.html","width":130,"caption":"\"West Beach Cliffs, Newhaven, Sussex\" pastel ","height":78});
															thumbnails[3909689] = clik.newPhoto({"id":3909689,"src":"westbeach_nature_res_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_3909689.html","width":130,"caption":"\"West Beach Nature Reserve, Newhaven, East Sussex\" pastel ","height":166});
															thumbnails[3909691] = clik.newPhoto({"id":3909691,"src":"westbeach_nature_reserve_1_copy_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_3909691.html","width":130,"caption":"\"West Beach Nature Reserve, Newhaven, East Sussex\"  pastel ","height":166});
															thumbnails[4130610] = clik.newPhoto({"id":4130610,"src":"crocus_notelet_copy_212_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_4130610.html","width":130,"caption":"\"Crocuses\"  pastel ","height":98});
															thumbnails[4134911] = clik.newPhoto({"id":4134911,"src":"sunflowers_cropped_notelet_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_4134911.html","width":130,"caption":"\"Sunflowers\" watercolour ","height":142});
															thumbnails[4134923] = clik.newPhoto({"id":4134923,"src":"tidemills_1_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_4134923.html","width":130,"caption":"\"Tidemills near Newhaven\" watercolour & ink.  PRINTS, CARDS, NOTELETS also availlable","height":90});
															thumbnails[4134932] = clik.newPhoto({"id":4134932,"src":"tidemills_2_copy_2_thumb.jpg","galleries_id":247215,"server_id":15,"link":"photo_4134932.html","width":130,"caption":"\"Tidemills near Newhaven 2\" watercolour and ink. ","height":89});
															thumbnails[4134938] = clik.newPhoto({"id":4134938,"src":"tidemills_large_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_4134938.html","width":130,"caption":"\"The Old Sluice Gate, Tidemills, Newhaven\" watercolour ","height":181});
															thumbnails[4134984] = clik.newPhoto({"id":4134984,"src":"back_garden_ptg_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_4134984.html","width":130,"caption":"\"Back Gardens\" watercolour\/ink.  PRINTS, CARDS, NOTELETS available.","height":183});
															thumbnails[4134991] = clik.newPhoto({"id":4134991,"src":"hellebores_scan_2_copy_2_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_4134991.html","width":130,"caption":"\"Hellebores\" watercolour ","height":191});
															thumbnails[4876462] = clik.newPhoto({"id":4876462,"src":"blue_angel12_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876462.html","width":130,"caption":"Blue Angel","height":249});
															thumbnails[4876568] = clik.newPhoto({"id":4876568,"src":"madonna2_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876568.html","width":130,"caption":"Madonna and Child","height":265});
															thumbnails[4876657] = clik.newPhoto({"id":4876657,"src":"xmas_cards_011_copy1_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876657.html","width":130,"caption":"Moonlight","height":65});
															thumbnails[4876684] = clik.newPhoto({"id":4876684,"src":"online_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4876684.html","width":130,"caption":"Online","height":91});
															thumbnails[4876700] = clik.newPhoto({"id":4876700,"src":"rabbittrees_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876700.html","width":130,"caption":"Fir Trees & Rabbit","height":128});
															thumbnails[3862407] = clik.newPhoto({"id":3862407,"src":"irises_2_notelet_copy_21_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3862407.html","width":130,"caption":"\"Irises 2\" watercolour ","height":91});
															thumbnails[3862415] = clik.newPhoto({"id":3862415,"src":"irises_notelet_copy_21_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3862415.html","width":130,"caption":"\"Irises\" watercolour  ","height":190});
															thumbnails[4875186] = clik.newPhoto({"id":4875186,"src":"acorns4_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4875186.html","width":130,"caption":"Acorns","height":127});
															thumbnails[4876088] = clik.newPhoto({"id":4876088,"src":"bungeejump_thumb.jpg","galleries_id":278204,"server_id":15,"link":"photo_4876088.html","width":130,"caption":"Bungee Jump","height":189});
															thumbnails[3861060] = clik.newPhoto({"id":3861060,"src":"anemones_watercolour1_thumb.jpg","galleries_id":234527,"server_id":15,"link":"photo_3861060.html","width":130,"caption":"\"Anemones\" watercolour ","height":172});
															thumbnails[4875521] = clik.newPhoto({"id":4875521,"src":"anemonesba_copy1_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4875521.html","width":130,"caption":"Anemones \"Bonne Annee\"","height":186});
															thumbnails[4875626] = clik.newPhoto({"id":4875626,"src":"barbie3_thumb.jpg","galleries_id":278204,"server_id":15,"link":"photo_4875626.html","width":130,"caption":"Barbie","height":186});
															thumbnails[4875692] = clik.newPhoto({"id":4875692,"src":"baublesjn_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4875692.html","width":130,"caption":"Baubles","height":184});
															thumbnails[4876155] = clik.newPhoto({"id":4876155,"src":"candleglowmc_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876155.html","width":130,"caption":"Candleglow","height":188});
															thumbnails[4876248] = clik.newPhoto({"id":4876248,"src":"xmas_cards_3_021_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876248.html","width":130,"caption":"Christmas Trees","height":189});
															thumbnails[5384822] = clik.newPhoto({"id":5384822,"src":"nanteuil_lavoir_2_copy_thumb.jpg","galleries_id":292214,"server_id":15,"link":"photo_5384822.html","width":130,"caption":"\"le Lavoir, Nanteuil-en-Vallee, France\"<br>\r\n<br>\r\nWatercolour and ink.","height":92});
															thumbnails[4876412] = clik.newPhoto({"id":4876412,"src":"cottage1_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876412.html","width":130,"caption":"Cottage","height":127});
															thumbnails[4876721] = clik.newPhoto({"id":4876721,"src":"robins_again_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876721.html","width":130,"caption":"Giss a Kiss!","height":183});
															thumbnails[4876743] = clik.newPhoto({"id":4876743,"src":"snowmen2_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4876743.html","width":130,"caption":"Snowmen","height":90});
															thumbnails[4876762] = clik.newPhoto({"id":4876762,"src":"santasatnav2_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4876762.html","width":130,"caption":"Satnav","height":189});
															thumbnails[4876764] = clik.newPhoto({"id":4876764,"src":"threekingslift_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4876764.html","width":130,"caption":"Any Chance of a Lift?","height":184});
															thumbnails[4876773] = clik.newPhoto({"id":4876773,"src":"wcxmastrees_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876773.html","width":130,"caption":"Watercolour Fir Trees","height":127});
															thumbnails[4876780] = clik.newPhoto({"id":4876780,"src":"wcbaubles_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876780.html","width":130,"caption":"Watercolour baubles","height":195});
															thumbnails[4876788] = clik.newPhoto({"id":4876788,"src":"xmas_cards_036_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4876788.html","width":130,"caption":"Holly","height":183});
															thumbnails[4878966] = clik.newPhoto({"id":4878966,"src":"musicnew_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4878966.html","width":130,"caption":"Musical Bells","height":184});
															thumbnails[4878996] = clik.newPhoto({"id":4878996,"src":"santapowercut_copy1_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4878996.html","width":130,"caption":"Power Cut","height":183});
															thumbnails[4880127] = clik.newPhoto({"id":4880127,"src":"sheponestar_copy_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4880127.html","width":130,"caption":"One Star","height":91});
															thumbnails[4880147] = clik.newPhoto({"id":4880147,"src":"shortcandles_copy1_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4880147.html","width":130,"caption":"Short candles","height":130});
															thumbnails[4880149] = clik.newPhoto({"id":4880149,"src":"snowdrop_copy_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4880149.html","width":130,"caption":"Snowdrop","height":265});
															thumbnails[4880151] = clik.newPhoto({"id":4880151,"src":"threekings_copy_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4880151.html","width":130,"caption":"Three Kings","height":130});
															thumbnails[4880174] = clik.newPhoto({"id":4880174,"src":"shepthreekings_copy_thumb.jpg","galleries_id":278204,"server_id":15,"link":"photo_4880174.html","width":130,"caption":"Archie Takes a Break","height":191});
															thumbnails[4880576] = clik.newPhoto({"id":4880576,"src":"shepherdssocks_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4880576.html","width":130,"caption":"Shepherds washing","height":94});
															thumbnails[4880188] = clik.newPhoto({"id":4880188,"src":"xmas_cards_015_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4880188.html","width":130,"caption":"Candles & Christmas Rose","height":252});
															thumbnails[4880301] = clik.newPhoto({"id":4880301,"src":"xmas_cards_extra_light_2_012_thumb.jpg","galleries_id":278152,"server_id":15,"link":"photo_4880301.html","width":130,"caption":"Bunnies","height":135});
															thumbnails[4884130] = clik.newPhoto({"id":4884130,"src":"shepherdstvnew_thumb.jpg","galleries_id":278153,"server_id":15,"link":"photo_4884130.html","width":130,"caption":"It's Playing Havoc with the TV...","height":90});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[292214] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Originals available","link":"gallery_292214.html","maxRecords":0.0,"photoIDs":[3861114.0,3885341.0,3885346.0,3885349.0,3909576.0,3909663.0,3909686.0,4134911.0,4134923.0,4134938.0,4134991.0,5384822.0],"skipIndex":0,"section_code":"gallery","featured_images":"4134991,4134938,4134911,3861114","id":292214,"singleSection":false});				  						galleries[234527] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Flowers & Gardens","link":"gallery_234527.html","maxRecords":0.0,"photoIDs":[3858192.0,3860176.0,3861004.0,3861069.0,3861225.0,3862377.0,3862389.0,3862401.0,3909667.0,3909670.0,3909672.0,4130610.0,4134984.0,3862407.0,3862415.0,3861060.0],"skipIndex":0,"section_code":"gallery","featured_images":"4134984,3862415,3862407,3861225","id":234527,"singleSection":false});				  						galleries[278152] = clik.newGallery({"parentGallery":277068,"usePopups":false,"title":"Traditional designs","link":"gallery_278152.html","maxRecords":0.0,"photoIDs":[4876462.0,4876568.0,4876657.0,4876700.0,4875186.0,4875521.0,4875692.0,4876155.0,4876248.0,4876412.0,4876721.0,4876773.0,4876780.0,4876788.0,4878966.0,4880147.0,4880149.0,4880151.0,4880188.0,4880301.0],"skipIndex":0,"section_code":"gallery","featured_images":"4880301,4880188,4880151,4880149,4880147,4878966,4876788,4876780,4876773,4876721","id":278152,"singleSection":false});				  						galleries[278153] = clik.newGallery({"parentGallery":277068,"usePopups":false,"title":"Humorous designs","link":"gallery_278153.html","maxRecords":0.0,"photoIDs":[4876684.0,4876743.0,4876762.0,4876764.0,4878996.0,4880127.0,4880576.0,4884130.0],"skipIndex":0,"section_code":"gallery","featured_images":"4884130,4880576,4880127,4878996,4876764,4876762,4876743,4876684","id":278153,"singleSection":false});				  						galleries[247215] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Landscape","link":"gallery_247215.html","maxRecords":0.0,"photoIDs":[3885348.0,3909571.0,3909660.0,3909665.0,3909689.0,3909691.0,4134932.0],"skipIndex":0,"section_code":"gallery","featured_images":4134932.0,"id":247215,"singleSection":false});				  						galleries[278204] = clik.newGallery({"parentGallery":277068,"usePopups":false,"title":"Archie the Anarchic Archangel...","link":"gallery_278204.html","maxRecords":0.0,"photoIDs":[4876088.0,4875626.0,4880174.0],"skipIndex":0,"section_code":"gallery","featured_images":"4880174,4876088,4875626","id":278204,"singleSection":false});				  						galleries[236008] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Cubism Influence","link":"gallery_236008.html","maxRecords":0.0,"photoIDs":[3862690.0,3885305.0,3885326.0,3885342.0,3885344.0,3909679.0,3909682.0],"skipIndex":0,"section_code":"gallery","featured_images":"3885326,3862690","id":236008,"singleSection":false});				  						galleries[247240] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Other Paintings","link":"gallery_247240.html","maxRecords":0.0,"photoIDs":[3885318.0,3885351.0,3885354.0,3909486.0,3909491.0,3909654.0,3909675.0],"skipIndex":0,"section_code":"gallery","featured_images":3885351.0,"id":247240,"singleSection":false});				  						galleries[277068] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Christmas Cards","link":"gallery_277068.html","maxRecords":0.0,"photoIDs":[],"skipIndex":0,"section_code":"gallery","featured_images":"4884130,4880576,4880301,4880188,4880174,4880151,4880149,4880147,4880127,4878996","id":277068,"singleSection":false});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '4134991,4134984,4134938,4134932,4134911,4130610,3909691,3909689,3909686,3909682,3909679,3909675,3909672,3909670,3909667,3909665,3909663,3909660,3909654,3909576,3909571,3909491,3909486,3885354,3885351,3885349,3885348,3885346,3885344,3885342,3885341,3885326,3885318,3885305,3862690,3862401,3862389,3862377,3861225,3861114,3861004,3860176,3862415,3862407,3861060';
imageSets[2] = '4134991,4134984,4134938,4134932,4134911,3885351,3885326,3862690,3861225,3861114,3862415,3862407';
imageSets[3] = '5384822,5078657,5078644,4884798,4884788,4884130,4880576,4880301,4880188,4880174,4880151,4880149,4880147,4880127,4878996,4878966,4876788,4876780,4876773,4876764,4876762,4876743,4876721,4876700,4876684,4876657,4876568,4876462,4876412,4876248,4876155,4876088,4875692,4875626,4875521,4875186,4147646,4147642,4134991,4134984,4134938,4134932,4134923,4134911,4130610,4118519,4118251,3909691,3909689,3909686';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'www12.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/jackyliz/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/jackyliz/images';
		break;
	}
		return val;
}

/***************************************************************************
* img = reference to image object in which to show image                   *
***************************************************************************/
function showHomeImage(img) {
	imageID = randomListVal('');
	if (!basic) {
		img.src = photos[imageID].src;
		img.width = photos[imageID].width;
		img.height = photos[imageID].height;
		img.parentNode.title = img.alt = photos[imageID].caption;
	} else {
		newImage = new Image(photos[imageID].width,photos[imageID].height);
		newImage.src = photos[imageID].src;
		document.images[img.name] = newImage;
		
	}
}

function getHomeImageLink(imageID) {
  	var href='', photo = backgrounds && backgrounds[imageID];
	if(photo){
		if (photo && photo.galleries_id != '') {
  			href = photo.fnGalleryLink();
  		}
  		  		else {
  				href += 'gallery.html';
  	  		}
	}
    return href;
}

/***************************************************************************
* Show a random image on home page from featured images                    *
***************************************************************************/
function showHomeImageInline(el, image_sets_id, href) {
	
	var css = {}, imageID,
	    imageSetsId = 1;
	if(image_sets_id){
		imageSetsId = image_sets_id;
	}
	imageID = randomListVal(imageSets[imageSetsId]);
	if (href == null && 'gallery' != '') {
					href = getHomeImageLink(imageID);
	}
	
	updateImage({nextPhoto: backgrounds[imageID], img:el.find('img')[0],
                $photo:el, $title:$('#homeimageTitleContainer'), $detail:$('#homeimageDetailsContainer'),                speed:0, href:href, css:css, onAfter: function(){                  this.closest('.contentsection').doManualAlign({				    inner: 'img',				    crop: 'a'				  });                }              });
}

/***************************************************************************
* Set 'img' to be a new image given its photo() object                     *
***************************************************************************/
function updateImage (options) {
	var defaults = {nextPhoto:'',field:'',img:'',$photo:'',$title:'',$detail:'',$detailContainer:'',
                    updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},
		op = $.extend({},defaults,options),
		html = '', temp = '',
		photoId = op.nextPhoto.id,
		photoCaption = ''+op.nextPhoto.caption,
		photoSrc = op.nextPhoto.src;
	
	if (op.updateHash && clik.getIDInUrl(location.href,'photo') != op.nextPhoto.id) {
		clik.changeHash('photos_id=' + op.nextPhoto.id, true);
	}
		
	    if (op.$title.length > 0) {
  		op.$title.fadeGalleryDetails(photoCaption, op.speed);
    }
        if (op.updateDocumentTitle) {
						  document.title = 'JACKY O\'CALLAGHAN        Paintings: ' + 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 NOW - Click the menu for options:</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="JACKYLIZ">';
			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;
	}
}

			

