window.thumbnails = {};
															thumbnails[5581957] = clik.newPhoto({"id":5581957,"src":"bio_image1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Bio image","height":102});
															thumbnails[5581959] = clik.newPhoto({"id":5581959,"src":"marquee_1a_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"Marquee","height":98});
															thumbnails[5585593] = clik.newPhoto({"id":5585593,"src":"blog_screenshot1_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"blog screen shot","height":140});
															thumbnails[8454884] = clik.newPhoto({"id":8454884,"src":"paypal_logo_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"paypal logo","height":41});
															thumbnails[9098284] = clik.newPhoto({"id":9098284,"src":"crouching_hare_home_2_thumb.jpg","galleries_id":"","server_id":35,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8058539] = clik.newPhoto({"id":8058539,"src":"light_sussex_web_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[7259001] = clik.newPhoto({"id":7259001,"src":"newhare_web_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[7895661] = clik.newPhoto({"id":7895661,"src":"redgrouseweb_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[6069943] = clik.newPhoto({"id":6069943,"src":"swaledale_home_thumb.jpg","galleries_id":"","server_id":5,"link":"#","width":130,"caption":"","height":86});
															thumbnails[8647308] = clik.newPhoto({"id":8647308,"src":"summer_swaledales1_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_8647308.html","width":130,"caption":"Summer Swaledales","height":77});
															thumbnails[8647310] = clik.newPhoto({"id":8647310,"src":"strutting_light_sussex_hen2_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_8647310.html","width":89,"caption":"Strutting Sussex","height":160});
															thumbnails[8058525] = clik.newPhoto({"id":8058525,"src":"light_sussex_hen_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_8058525.html","width":118,"caption":"Light Sussex Hen","height":160});
															thumbnails[9098269] = clik.newPhoto({"id":9098269,"src":"crouching_hare_small_1_thumb.jpg","galleries_id":478277,"server_id":35,"link":"photo_9098269.html","width":130,"caption":"'Crouching Hare'","height":90});
															thumbnails[9098280] = clik.newPhoto({"id":9098280,"src":"crouching_hare_small_2_thumb.jpg","galleries_id":316553,"server_id":35,"link":"photo_9098280.html","width":130,"caption":"'Crouching Hare' Original Drawing","height":90});
															thumbnails[8543200] = clik.newPhoto({"id":8543200,"src":"friesian_calf_small_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_8543200.html","width":130,"caption":"Friesian Calf","height":91});
															thumbnails[8543298] = clik.newPhoto({"id":8543298,"src":"friesian_calf_small1_thumb.jpg","galleries_id":316553,"server_id":5,"link":"photo_8543298.html","width":130,"caption":"'Friesian Calf' Original Drawing","height":91});
															thumbnails[9066749] = clik.newPhoto({"id":9066749,"src":"running_hare_web_6462E37D-1EC9-DFB6-09F1F12D6A73A261_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_9066749.html","width":113,"caption":"'Running Hare'","height":160});
															thumbnails[8153413] = clik.newPhoto({"id":8153413,"src":"mule_portrait_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_8153413.html","width":130,"caption":"Mule Portrait","height":93});
															thumbnails[9051142] = clik.newPhoto({"id":9051142,"src":"alert_hare_study_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_9051142.html","width":122,"caption":"'Alert' - Hare Study","height":160});
															thumbnails[8153424] = clik.newPhoto({"id":8153424,"src":"highland_cow_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_8153424.html","width":130,"caption":"Highland Cow","height":88});
															thumbnails[8407109] = clik.newPhoto({"id":8407109,"src":"badger_sow_and_cub1_thumb.jpg","galleries_id":316553,"server_id":5,"link":"photo_8407109.html","width":130,"caption":"'Badger Sow & Cub' Original Drawing","height":90});
															thumbnails[7784210] = clik.newPhoto({"id":7784210,"src":"Swaledale_tup_web_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_7784210.html","width":130,"caption":"Swaledale Tup","height":90});
															thumbnails[8331581] = clik.newPhoto({"id":8331581,"src":"red_legged_partridge_web1_thumb.jpg","galleries_id":316553,"server_id":5,"link":"photo_8331581.html","width":117,"caption":"'Red-Legged Partridge' Original Drawing","height":160});
															thumbnails[6069833] = clik.newPhoto({"id":6069833,"src":"Swaledale_sheep_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_6069833.html","width":130,"caption":"Swaledale Ewe","height":89});
															thumbnails[8153472] = clik.newPhoto({"id":8153472,"src":"mule_portrait1_thumb.jpg","galleries_id":316553,"server_id":5,"link":"photo_8153472.html","width":130,"caption":"'Mule Portrait' Original Drawing","height":93});
															thumbnails[7288711] = clik.newPhoto({"id":7288711,"src":"herdwick_tup_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_7288711.html","width":130,"caption":"Herdwick Tup","height":92});
															thumbnails[7984725] = clik.newPhoto({"id":7984725,"src":"red_kite_web1_thumb.jpg","galleries_id":316553,"server_id":5,"link":"photo_7984725.html","width":130,"caption":"'Red Kite' Original Drawing","height":95});
															thumbnails[6809141] = clik.newPhoto({"id":6809141,"src":"swaledale_profile_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_6809141.html","width":120,"caption":"Swaledale Profile","height":160});
															thumbnails[7928703] = clik.newPhoto({"id":7928703,"src":"strutting_pheasant1_thumb.jpg","galleries_id":316553,"server_id":5,"link":"photo_7928703.html","width":130,"caption":"'Strutting Pheasant' Original Drawing","height":95});
															thumbnails[8224606] = clik.newPhoto({"id":8224606,"src":"Boxing_hares_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_8224606.html","width":120,"caption":"Boxing Hares","height":160});
															thumbnails[7750302] = clik.newPhoto({"id":7750302,"src":"hare_portrait_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_7750302.html","width":118,"caption":"Hare Portrait","height":160});
															thumbnails[7258950] = clik.newPhoto({"id":7258950,"src":"hare_on_the-Lookout_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_7258950.html","width":118,"caption":"Hare - On The Lookout","height":160});
															thumbnails[5581070] = clik.newPhoto({"id":5581070,"src":"hare3_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_5581070.html","width":116,"caption":"Hare Study","height":160});
															thumbnails[5581068] = clik.newPhoto({"id":5581068,"src":"hare_study_23_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_5581068.html","width":118,"caption":"Hare Study II","height":160});
															thumbnails[5581079] = clik.newPhoto({"id":5581079,"src":"hare_on_the_run_thumb.jpg","galleries_id":478277,"server_id":5,"link":"photo_5581079.html","width":130,"caption":"On The Run","height":93});
															thumbnails[7708962] = clik.newPhoto({"id":7708962,"src":"barn_owl_portrait_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_7708962.html","width":120,"caption":"Barn Owl Portrait","height":160});
															thumbnails[7272422] = clik.newPhoto({"id":7272422,"src":"barn_owl_at_rest_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_7272422.html","width":118,"caption":"Barn Owl - At Rest","height":160});
															thumbnails[5581132] = clik.newPhoto({"id":5581132,"src":"barn_owl7_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_5581132.html","width":111,"caption":"Barn Owl","height":160});
															thumbnails[5581291] = clik.newPhoto({"id":5581291,"src":"mules2_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581291.html","width":130,"caption":"Mules","height":86});
															thumbnails[6301279] = clik.newPhoto({"id":6301279,"src":"barn_owl_2_web_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_6301279.html","width":118,"caption":"Barn Owl II","height":160});
															thumbnails[5581292] = clik.newPhoto({"id":5581292,"src":"jacobs_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581292.html","width":130,"caption":"Jacobs","height":86});
															thumbnails[5903242] = clik.newPhoto({"id":5903242,"src":"barn_owl_in_flight1_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_5903242.html","width":117,"caption":"Barn Owl - Hunting at Dawn","height":160});
															thumbnails[5581295] = clik.newPhoto({"id":5581295,"src":"cowsweb_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581295.html","width":130,"caption":"Sunday Morning","height":86});
															thumbnails[6373161] = clik.newPhoto({"id":6373161,"src":"tawny_owl_web_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_6373161.html","width":123,"caption":"Tawny Owl","height":160});
															thumbnails[6259079] = clik.newPhoto({"id":6259079,"src":"little_owl_web_thumb.jpg","galleries_id":478278,"server_id":5,"link":"photo_6259079.html","width":116,"caption":"Little Owl","height":160});
															thumbnails[5581347] = clik.newPhoto({"id":5581347,"src":"chickens_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581347.html","width":130,"caption":"Rules The Roost","height":84});
															thumbnails[5581389] = clik.newPhoto({"id":5581389,"src":"lambs_chickens_summer_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581389.html","width":130,"caption":"Early Summer","height":68});
															thumbnails[5581391] = clik.newPhoto({"id":5581391,"src":"goats_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581391.html","width":130,"caption":"Kids","height":72});
															thumbnails[5664455] = clik.newPhoto({"id":5664455,"src":"fox_study_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_5664455.html","width":118,"caption":"Fox Study","height":160});
															thumbnails[5581064] = clik.newPhoto({"id":5581064,"src":"red_deer_stag4_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_5581064.html","width":111,"caption":"Red Deer Stag","height":160});
															thumbnails[7895659] = clik.newPhoto({"id":7895659,"src":"red_grouse_web_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_7895659.html","width":118,"caption":"Red Grouse","height":160});
															thumbnails[5581397] = clik.newPhoto({"id":5581397,"src":"The_Great_Escape_thumb.jpg","galleries_id":316035,"server_id":5,"link":"photo_5581397.html","width":108,"caption":"The Great Escape","height":160});
															thumbnails[8331579] = clik.newPhoto({"id":8331579,"src":"red_legged_partridge_web_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_8331579.html","width":117,"caption":"Red-Legged Partridge","height":160});
															thumbnails[5581402] = clik.newPhoto({"id":5581402,"src":"castle_bolton_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581402.html","width":109,"caption":"Castle Bolton","height":160});
															thumbnails[7928499] = clik.newPhoto({"id":7928499,"src":"strutting_pheasant_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_7928499.html","width":130,"caption":"Strutting Pheasant","height":95});
															thumbnails[5581404] = clik.newPhoto({"id":5581404,"src":"cauldron_force_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581404.html","width":115,"caption":"Cauldron Force - West Burton","height":160});
															thumbnails[8407085] = clik.newPhoto({"id":8407085,"src":"badger_sow_and_cub_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_8407085.html","width":130,"caption":"Badger Sow & Cub","height":90});
															thumbnails[5581405] = clik.newPhoto({"id":5581405,"src":"meeting_post_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581405.html","width":117,"caption":"Meeting Post","height":160});
															thumbnails[5818435] = clik.newPhoto({"id":5818435,"src":"otter_web12_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_5818435.html","width":130,"caption":"Otter Study","height":86});
															thumbnails[5581431] = clik.newPhoto({"id":5581431,"src":"squeeze_stile_aysgarth_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581431.html","width":118,"caption":"Squeeze Stile of Aysgarth","height":160});
															thumbnails[5581076] = clik.newPhoto({"id":5581076,"src":"squirrelling_away3_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_5581076.html","width":130,"caption":"Squirrelling Away","height":89});
															thumbnails[5581424] = clik.newPhoto({"id":5581424,"src":"ladder_stile_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581424.html","width":130,"caption":"Ladder Stile At Hawes","height":102});
															thumbnails[5581040] = clik.newPhoto({"id":5581040,"src":"studley_royal_deer12_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_5581040.html","width":130,"caption":"Studley Royal Deer","height":66});
															thumbnails[5581427] = clik.newPhoto({"id":5581427,"src":"gate_stile_to_morpeth_scar_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581427.html","width":130,"caption":"Gate Stile To Morpeth Scar (West Burton)","height":90});
															thumbnails[7984721] = clik.newPhoto({"id":7984721,"src":"red_kite_web_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_7984721.html","width":130,"caption":"Red Kite","height":95});
															thumbnails[7307588] = clik.newPhoto({"id":7307588,"src":"golden_eagle_thumb.jpg","galleries_id":316039,"server_id":5,"link":"photo_7307588.html","width":130,"caption":"Golden Eagle Study","height":90});
															thumbnails[5581432] = clik.newPhoto({"id":5581432,"src":"aldborough_ure_stile_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581432.html","width":130,"caption":"Old Stile by the Ure","height":91});
															thumbnails[5581674] = clik.newPhoto({"id":5581674,"src":"Minsterll_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581674.html","width":115,"caption":"York Minster","height":160});
															thumbnails[5581676] = clik.newPhoto({"id":5581676,"src":"Shamblesl_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581676.html","width":118,"caption":"The Shambles - York","height":160});
															thumbnails[5581682] = clik.newPhoto({"id":5581682,"src":"Stonegate_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581682.html","width":130,"caption":"Stonegate - York","height":87});
															thumbnails[5581685] = clik.newPhoto({"id":5581685,"src":"St_Williams_College_web_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581685.html","width":130,"caption":"St William's College with the rear of York Minster","height":74});
															thumbnails[5581686] = clik.newPhoto({"id":5581686,"src":"Boroughbridgefadedsmall_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581686.html","width":130,"caption":"St James Square - Boroughbridge","height":88});
															thumbnails[5581430] = clik.newPhoto({"id":5581430,"src":"milby_lock_thumb.jpg","galleries_id":316498,"server_id":5,"link":"photo_5581430.html","width":130,"caption":"Milby Lock - Boroughbridge","height":84});
															thumbnails[5581185] = clik.newPhoto({"id":5581185,"src":"airedale1_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581185.html","width":110,"caption":"Airedale Terrier","height":160});
															thumbnails[5581699] = clik.newPhoto({"id":5581699,"src":"bassettl2_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581699.html","width":130,"caption":"Bassett Hound","height":89});
															thumbnails[5581703] = clik.newPhoto({"id":5581703,"src":"beagle_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581703.html","width":110,"caption":"Beagle","height":160});
															thumbnails[5581705] = clik.newPhoto({"id":5581705,"src":"Bearded_Collie_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581705.html","width":123,"caption":"Bearded Collie","height":160});
															thumbnails[5581708] = clik.newPhoto({"id":5581708,"src":"Border_Collie_Adult_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581708.html","width":118,"caption":"Border Collie","height":160});
															thumbnails[5581711] = clik.newPhoto({"id":5581711,"src":"border_terrier_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581711.html","width":119,"caption":"Border Terrier","height":160});
															thumbnails[5581715] = clik.newPhoto({"id":5581715,"src":"Border_Terrier_2_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581715.html","width":118,"caption":"Border Terrier (Standing)","height":160});
															thumbnails[5581717] = clik.newPhoto({"id":5581717,"src":"boxer_puppy_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581717.html","width":130,"caption":"Boxer Puppy","height":118});
															thumbnails[5581718] = clik.newPhoto({"id":5581718,"src":"bulldog_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581718.html","width":130,"caption":"Bulldog Puppy","height":95});
															thumbnails[5581722] = clik.newPhoto({"id":5581722,"src":"cairn_terrier_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581722.html","width":118,"caption":"Cairn Terrier Puppy","height":160});
															thumbnails[5581726] = clik.newPhoto({"id":5581726,"src":"Cav_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581726.html","width":118,"caption":"Cavalier King Charles Spaniel Puppy","height":160});
															thumbnails[5581728] = clik.newPhoto({"id":5581728,"src":"Cocker_Spaniel_Blue_Roan_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581728.html","width":118,"caption":"Cocker Spaniel","height":160});
															thumbnails[5581730] = clik.newPhoto({"id":5581730,"src":"dachshunds_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581730.html","width":130,"caption":"Dachshunds","height":116});
															thumbnails[5581733] = clik.newPhoto({"id":5581733,"src":"dalmatian_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581733.html","width":127,"caption":"Dalmatian","height":160});
															thumbnails[5581734] = clik.newPhoto({"id":5581734,"src":"dobermann_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581734.html","width":122,"caption":"Dobermann","height":160});
															thumbnails[5581736] = clik.newPhoto({"id":5581736,"src":"German_Shepherd_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581736.html","width":113,"caption":"German Shepherd","height":160});
															thumbnails[5581738] = clik.newPhoto({"id":5581738,"src":"Golden_Retriever_2_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581738.html","width":121,"caption":"Golden Retriever","height":160});
															thumbnails[5581742] = clik.newPhoto({"id":5581742,"src":"golden_pup_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581742.html","width":130,"caption":"Golden Retriever Puppy","height":157});
															thumbnails[5581744] = clik.newPhoto({"id":5581744,"src":"greyhound_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581744.html","width":124,"caption":"Greyhound","height":160});
															thumbnails[5581747] = clik.newPhoto({"id":5581747,"src":"husky_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581747.html","width":114,"caption":"Husky","height":160});
															thumbnails[5581748] = clik.newPhoto({"id":5581748,"src":"jack_russell_2_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581748.html","width":115,"caption":"Jack Russell Terrier","height":160});
															thumbnails[5581751] = clik.newPhoto({"id":5581751,"src":"Jack_Russell1_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581751.html","width":129,"caption":"Parsons Jack Russell Terrier","height":160});
															thumbnails[5756405] = clik.newPhoto({"id":5756405,"src":"black_labrador_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5756405.html","width":121,"caption":"Labrador (Black)","height":160});
															thumbnails[5581759] = clik.newPhoto({"id":5581759,"src":"chocolate_labrador_puppy_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581759.html","width":123,"caption":"Labrador (chocolate)","height":160});
															thumbnails[5581761] = clik.newPhoto({"id":5581761,"src":"yellow_labrador_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581761.html","width":113,"caption":"Labrador (Yellow)","height":160});
															thumbnails[5581763] = clik.newPhoto({"id":5581763,"src":"adult_rottweiler_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581763.html","width":120,"caption":"Rottweiler","height":160});
															thumbnails[7228923] = clik.newPhoto({"id":7228923,"src":"miniature_schnauzer_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_7228923.html","width":115,"caption":"Schnauzer (miniature)","height":160});
															thumbnails[7228925] = clik.newPhoto({"id":7228925,"src":"miniature_schnauzer_2_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_7228925.html","width":111,"caption":"Schnauzer (miniature) 2","height":160});
															thumbnails[5581767] = clik.newPhoto({"id":5581767,"src":"shitz_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581767.html","width":130,"caption":"Shih-Tzu","height":110});
															thumbnails[5581770] = clik.newPhoto({"id":5581770,"src":"Springer_spaniel_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581770.html","width":121,"caption":"Springer Spaniel Puppy","height":160});
															thumbnails[5581772] = clik.newPhoto({"id":5581772,"src":"weimaraner_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581772.html","width":118,"caption":"Weimaraner","height":160});
															thumbnails[6669070] = clik.newPhoto({"id":6669070,"src":"adult_westie_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_6669070.html","width":127,"caption":"West Highland White Terrier (adult)","height":160});
															thumbnails[5581777] = clik.newPhoto({"id":5581777,"src":"whippet_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581777.html","width":116,"caption":"Whippet","height":160});
															thumbnails[5581779] = clik.newPhoto({"id":5581779,"src":"yorkie_thumb.jpg","galleries_id":316034,"server_id":5,"link":"photo_5581779.html","width":112,"caption":"Yorkshire Terrier","height":160});
															thumbnails[6815208] = clik.newPhoto({"id":6815208,"src":"wildlife_cards1_thumb.jpg","galleries_id":370238,"server_id":5,"link":"photo_6815208.html","width":130,"caption":"British Wildlife Collection","height":86});
															thumbnails[6815652] = clik.newPhoto({"id":6815652,"src":"Dales_cards_4_thumb.jpg","galleries_id":370238,"server_id":5,"link":"photo_6815652.html","width":130,"caption":"Yorkshire Dales Collection","height":91});
															thumbnails[5581965] = clik.newPhoto({"id":5581965,"src":"DME5_thumb.jpg","galleries_id":331981,"server_id":5,"link":"photo_5581965.html","width":111,"caption":"Drawing Made Easy: Dogs and Puppies","height":160});
															thumbnails[5581967] = clik.newPhoto({"id":5581967,"src":"CS10-1l_thumb.jpg","galleries_id":331981,"server_id":5,"link":"photo_5581967.html","width":121,"caption":"The Art of Drawing Animals","height":160});
															thumbnails[5875362] = clik.newPhoto({"id":5875362,"src":"HT308-1la_thumb.jpg","galleries_id":331981,"server_id":5,"link":"photo_5875362.html","width":119,"caption":"Drawing Dogs and Cats","height":160});

/***************************************************************************
* Create the array of Gallery objects                                      *
***************************************************************************/
var galleries = new Object();
				  						galleries[478277] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Hares","link":"gallery_478277.html","maxRecords":0.0,"photoIDs":[9098269.0,9066749.0,9051142.0,8224606.0,7750302.0,7258950.0,5581070.0,5581068.0,5581079.0],"skipIndex":0,"section_code":"gallery","featured_images":9066749.0,"id":478277,"singleSection":false});				  						galleries[478278] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Owls","link":"gallery_478278.html","maxRecords":0.0,"photoIDs":[7708962.0,7272422.0,5581132.0,6301279.0,5903242.0,6373161.0,6259079.0],"skipIndex":0,"section_code":"gallery","featured_images":7708962.0,"id":478278,"singleSection":false});				  						galleries[316039] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"British Wildlife","link":"gallery_316039.html","maxRecords":0.0,"photoIDs":[5664455.0,5581064.0,7895659.0,8331579.0,7928499.0,8407085.0,5818435.0,5581076.0,5581040.0,7984721.0,7307588.0],"skipIndex":0,"section_code":"gallery","featured_images":5581064.0,"id":316039,"singleSection":false});				  						galleries[316035] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Farm Life","link":"gallery_316035.html","maxRecords":0.0,"photoIDs":[8647308.0,8647310.0,8058525.0,8543200.0,8153413.0,8153424.0,7784210.0,6069833.0,7288711.0,6809141.0,5581291.0,5581292.0,5581295.0,5581347.0,5581389.0,5581391.0,5581397.0],"skipIndex":0,"section_code":"gallery","featured_images":8058525.0,"id":316035,"singleSection":false});				  						galleries[316498] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Yorkshire Scenes","link":"gallery_316498.html","maxRecords":0.0,"photoIDs":[5581402.0,5581404.0,5581405.0,5581431.0,5581424.0,5581427.0,5581432.0,5581674.0,5581676.0,5581682.0,5581685.0,5581686.0,5581430.0],"skipIndex":0,"section_code":"gallery","featured_images":5581405.0,"id":316498,"singleSection":false});				  						galleries[316034] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Dogs","link":"gallery_316034.html","maxRecords":0.0,"photoIDs":[5581185.0,5581699.0,5581703.0,5581705.0,5581708.0,5581711.0,5581715.0,5581717.0,5581718.0,5581722.0,5581726.0,5581728.0,5581730.0,5581733.0,5581734.0,5581736.0,5581738.0,5581742.0,5581744.0,5581747.0,5581748.0,5581751.0,5756405.0,5581759.0,5581761.0,5581763.0,7228923.0,7228925.0,5581767.0,5581770.0,5581772.0,6669070.0,5581777.0,5581779.0],"skipIndex":0,"section_code":"gallery","featured_images":5581185.0,"id":316034,"singleSection":false});				  						galleries[316553] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Originals","link":"gallery_316553.html","maxRecords":0.0,"photoIDs":[9098280.0,8543298.0,8407109.0,8331581.0,8153472.0,7984725.0,7928703.0],"skipIndex":0,"section_code":"gallery","featured_images":8331581.0,"id":316553,"singleSection":false});				  						galleries[331981] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Books","link":"section397895.html","maxRecords":0.0,"photoIDs":[5581965.0,5581967.0,5875362.0],"skipIndex":0,"section_code":"section397895","featured_images":"5875362,5581967,5581965","id":331981,"singleSection":true});				  						galleries[370238] = clik.newGallery({"parentGallery":"","usePopups":false,"title":"Greeting Cards","link":"section441073.html","maxRecords":0.0,"photoIDs":[6815208.0,6815652.0],"skipIndex":0,"section_code":"section441073","featured_images":6815208.0,"id":370238,"singleSection":true});/***************************************************************************
* Create the array of image sets                                           *
***************************************************************************/
var imageSets = {};
imageSets[1] = '9098284';
imageSets[2] = '8058525,9066749,6815208,8331581,7708962,5581064,5581405,5581185';
imageSets[3] = '9098284,9098280,9098269,9066749,9051142,8647310,8647308,8543298,8543200,8454884,8407109,8407085,8331581,8331579,8224606,8153472,8153424,8153413,8058539,8058525,7984725,7984721,7928703,7928499,7895661,7895659,7784210,7750302,7708962,7307588,7288711,7272422,7259001,7258950,7228925,7228923,6815652,6815208,6809141,6669070,6373161,6301279,6259079,6069943,6069833,5903242,5875362,5818435,5756405,5664455';
 /***************************************************************************
* Get a server path given an ID                                            *
***************************************************************************/
function getServerPath(server_id) {
	var val = -1;
		switch (server_id) {
		case 51:
		val = 'http://www12.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 0:
		val = 'http://www.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 1:
		val = 'http://www1.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 2:
		val = 'http://admin.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 24:
		val = 'http://tpc15/clikpic/nstacey/images';
		break;
	}
		switch (server_id) {
		case 4:
		val = 'http://clikchurch.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 5:
		val = 'http://www2.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 22:
		val = 'http://tpc5/clikpic/nstacey/images';
		break;
	}
		switch (server_id) {
		case 23:
		val = 'http://tpc10/clikpic/nstacey/images';
		break;
	}
		switch (server_id) {
		case 25:
		val = 'http://tpc16/clikpic/nstacey/images';
		break;
	}
		switch (server_id) {
		case 26:
		val = 'http://tpc20/clikpic/nstacey/images';
		break;
	}
		switch (server_id) {
		case 40:
		val = 'http://www11.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 42:
		val = 'db2.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 15:
		val = 'http://www3.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 18:
		val = 'http://www4.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 19:
		val = 'http://www5.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 31:
		val = 'http://www7.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 32:
		val = 'http://www8.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 34:
		val = 'http://www9.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 35:
		val = 'http://admin3.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 37:
		val = 'http://admin4.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 38:
		val = 'http://admin5.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 39:
		val = 'http://www10.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 53:
		val = 'http://images.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 52:
		val = 'http://tpc22/clikpic/nstacey/images';
		break;
	}
		switch (server_id) {
		case 21:
		val = 'http://www6.clikpic.com/nstacey/images';
		break;
	}
		switch (server_id) {
		case 50:
		val = '[cliktext value=article.servers_id type=servers_id]/nstacey/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 = 'Nolon Stacey Fine Art: ' + 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 item 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="NSTACEY">';
			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;
	}
}

			

