function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[4386597]=new thumbnail(4386597,"257232","ruined cart","ir_ruined_cart1_thumb.jpg",130,87,18);thumbnails[4395081]=new thumbnail(4395081,"257232","St Cairan's church","s_thumb.jpg",87,130,18);thumbnails[4395086]=new thumbnail(4395086,"257232","secluded burn","s_2_thumb.jpg",87,130,18);thumbnails[4395196]=new thumbnail(4395196,"257235","pulled up","tn_m_33_thumb.JPG",130,86,18);thumbnails[4395225]=new thumbnail(4395225,"257235","Dark mile","tn_m_40_thumb.JPG",130,86,18);thumbnails[4395227]=new thumbnail(4395227,"257235","St Cairan's","tn_s_4_thumb.JPG",87,130,18);thumbnails[4395242]=new thumbnail(4395242,"257235","Beech walk","tn_s_30_thumb.JPG",130,87,18);thumbnails[4395248]=new thumbnail(4395248,"257235","Red Bridge","tn_s_35_thumb.JPG",130,82,18);thumbnails[4395404]=new thumbnail(4395404,"257235","Achnacarry falls","tn_s_40_thumb.JPG",87,130,18);thumbnails[4395409]=new thumbnail(4395409,"257235","White Bridge","tn_s_42_thumb.JPG",130,87,18);thumbnails[4395414]=new thumbnail(4395414,"257235","Cia-aig Falls","tn_s_51_thumb.JPG",130,85,18);thumbnails[4395417]=new thumbnail(4395417,"257235","Cia-aig bridge","tn_s_66_thumb.JPG",130,87,18);thumbnails[4395531]=new thumbnail(4395531,"257235","Achnacarry Castle","tn_s_80_thumb.JPG",130,84,18);thumbnails[4395422]=new thumbnail(4395422,"257235","Oak Grove Dedication ","tn_s_76_thumb.JPG",130,87,18);thumbnails[4395514]=new thumbnail(4395514,"257235","Clansmans Cairn","tn_s_78_thumb.JPG",130,87,18);thumbnails[4395599]=new thumbnail(4395599,"257235","Resting place","tn_s_83_thumb.JPG",130,87,18);thumbnails[4395616]=new thumbnail(4395616,"257235","Dark Mile","tn_s_95_thumb.JPG",130,87,18);thumbnails[4395630]=new thumbnail(4395630,"257235","Cia-aig falls","tn_s_97_thumb.JPG",130,87,18);thumbnails[4381738]=new thumbnail(4381738,"","Admiring the sunrise","admiring_the_sunrise_thumb.jpg",130,78,18);thumbnails[4405946]=new thumbnail(4405946,"257239","reclaimed wood fence","tn_findhorne_bay_1_08_18_thumb.jpg",130,195,18);thumbnails[4405956]=new thumbnail(4405956,"257232","tree's","tn_ir1_thumb.jpg",130,87,18);thumbnails[4405962]=new thumbnail(4405962,"257231","Loch Insh","tn_loch_insh_5-08_2_thumb.jpg",130,84,18);thumbnails[4406026]=new thumbnail(4406026,"257239","logs and frost","tn_logs_08_2_thumb.jpg",130,86,18);thumbnails[4406027]=new thumbnail(4406027,"257231","The Old man","tn_man_of_Hoy_4-09_1_thumb.JPG",130,194,18);thumbnails[4406028]=new thumbnail(4406028,"257213","Octopuss","tn_oban_seal_sanct_8-08_1_thumb.jpg",130,204,18);thumbnails[4406031]=new thumbnail(4406031,"257213","Attention!","tn_oban_seal_sanct_8-08_65_thumb.jpg",130,194,18);thumbnails[4406035]=new thumbnail(4406035,"257236","Oskar","tn_oskar_thumb.jpg",130,87,18);thumbnails[4406036]=new thumbnail(4406036,"257213","Red Squirrel","tn_reds_2_thumb.jpg",130,82,18);thumbnails[4406039]=new thumbnail(4406039,"257232","Roughburn","tn_roughburn_infra_red_4-09_thumb.jpg",130,87,18);thumbnails[4406040]=new thumbnail(4406040,"257213","Red Squirrel","tn_Roughburn_Photographic_Red_Squirrel_70_thumb.jpg",130,167,18);thumbnails[4406041]=new thumbnail(4406041,"257236","Watching","tn_S_143_thumb.jpg",130,87,18);thumbnails[4406047]=new thumbnail(4406047,"257213","feeding the wild seal's","tn_stornoway_3-09_28_thumb.jpg",130,205,18);thumbnails[4406049]=new thumbnail(4406049,"257213","wild seal, clear water","tn_stornoway_3-09_40_thumb.jpg",130,218,18);thumbnails[4406053]=new thumbnail(4406053,"257231","Sunset","tn_sunset_2-09_7_thumb.jpg",130,57,18);thumbnails[4406503]=new thumbnail(4406503,"258255","Invisible me","tn_you_cant_see_me_08_8_thumb.jpg",130,86,18);thumbnails[4406528]=new thumbnail(4406528,"257213","Barking a challenge","tn_spey_deer_4-08_28_thumb.JPG",130,173,18);thumbnails[4406555]=new thumbnail(4406555,"257213","Majestic sunset","tn_glen_spey_stags_11-02-08_8_thumb.jpg",130,85,18);thumbnails[4408373]=new thumbnail(4408373,"257213","Wildcat","1_thumb.jpg",130,87,18);thumbnails[4408376]=new thumbnail(4408376,"257236","Cheeta","1_1_thumb.jpg",130,85,18);thumbnails[4408400]=new thumbnail(4408400,"257236","Lazy Lioness","1_2_thumb.jpg",130,81,18);thumbnails[4408404]=new thumbnail(4408404,"257236","Peregrin","1_3_thumb.jpg",130,85,18);thumbnails[4408407]=new thumbnail(4408407,"257236","Mighty Eagle","1_4_thumb.jpg",130,87,18);thumbnails[4408409]=new thumbnail(4408409,"257236","Leopard","1_5_thumb.jpg",130,87,18);thumbnails[4408410]=new thumbnail(4408410,"257236","Black Leopard","1_6_thumb.jpg",130,109,18);thumbnails[4408439]=new thumbnail(4408439,"257236","Red Panda","1_14_thumb.JPG",130,207,18);thumbnails[4408441]=new thumbnail(4408441,"257213","Otter","1_15_thumb.jpg",130,81,18);thumbnails[4408466]=new thumbnail(4408466,"258255","Seal'ed fate","1_20_thumb.JPG",130,85,18);thumbnails[4408474]=new thumbnail(4408474,"258255","Bliebells","1_21_thumb.JPG",130,194,18);thumbnails[4408475]=new thumbnail(4408475,"258255","Steam power","1_22_thumb.JPG",130,87,18);thumbnails[4408477]=new thumbnail(4408477,"257239","Across the bay","1_23_thumb.jpg",130,194,18);thumbnails[4408483]=new thumbnail(4408483,"257239","Carr-Bridge at night","1_24_thumb.JPG",130,87,18);thumbnails[4408485]=new thumbnail(4408485,"257231","wilderness","1_25_thumb.jpg",130,194,18);thumbnails[4408486]=new thumbnail(4408486,"257239","Water walkway","1_26_thumb.JPG",130,194,18);thumbnails[4408488]=new thumbnail(4408488,"258255","Tornado","1_27_thumb.JPG",130,131,18);thumbnails[4408490]=new thumbnail(4408490,"257213","Foxy","1_28_thumb.JPG",130,87,18);thumbnails[4408496]=new thumbnail(4408496,"258255","firework","1_29_thumb.JPG",130,204,18);thumbnails[4408501]=new thumbnail(4408501,"258255","Firework","1_30_thumb.JPG",130,204,18);thumbnails[4408504]=new thumbnail(4408504,"257231","Wild places","1_31_thumb.jpg",130,194,18);thumbnails[4408537]=new thumbnail(4408537,"257213","Watching","1_35_thumb.JPG",130,98,18);thumbnails[4408541]=new thumbnail(4408541,"257236","Robin","1_36_thumb.JPG",130,98,18);thumbnails[4408544]=new thumbnail(4408544,"257236","Wolf","1_37_thumb.JPG",130,104,18);thumbnails[4408546]=new thumbnail(4408546,"257236","Wolf","1_38_thumb.JPG",130,136,18);thumbnails[4408548]=new thumbnail(4408548,"257236","Wolf","1_39_thumb.JPG",130,87,18);thumbnails[4408553]=new thumbnail(4408553,"257213","Pheasant","1_40_thumb.JPG",130,84,18);thumbnails[4408574]=new thumbnail(4408574,"257236","Wolf","1_41_thumb.JPG",130,189,18);thumbnails[4408586]=new thumbnail(4408586,"257236","Wolf","1_42_thumb.JPG",130,170,18);thumbnails[4408592]=new thumbnail(4408592,"257231","Sunset ","1_43_thumb.jpg",130,87,18);thumbnails[4408595]=new thumbnail(4408595,"258255","trapped water","1_44_thumb.jpg",130,194,18);thumbnails[4408601]=new thumbnail(4408601,"258255","Kinloss Sea King","1_45_thumb.jpg",130,107,18);thumbnails[4408604]=new thumbnail(4408604,"257231","Cold Morning","1_46_thumb.JPG",130,84,18);thumbnails[4408608]=new thumbnail(4408608,"257231","Glen Coe morning","1_47_thumb.jpg",130,87,18);thumbnails[4408613]=new thumbnail(4408613,"257231","Sunrise Connon Bridge","1_48_thumb.JPG",130,87,18);thumbnails[4408616]=new thumbnail(4408616,"257213","Otter","1_49_thumb.JPG",130,82,18);thumbnails[4408619]=new thumbnail(4408619,"257213","waterfowl","1_50_thumb.JPG",130,98,18);thumbnails[4408642]=new thumbnail(4408642,"258255","Red Arrows","1_51_thumb.jpg",130,80,18);thumbnails[4408643]=new thumbnail(4408643,"258255","Red Arrows","1_52_thumb.jpg",130,82,18);thumbnails[4408670]=new thumbnail(4408670,"258255","Hawk ","1_53_thumb.jpg",130,78,18);thumbnails[4408672]=new thumbnail(4408672,"257213","Sleepy Pine Marten","1_54_thumb.jpg",130,198,18);thumbnails[4408673]=new thumbnail(4408673,"258255","Pink Bells","1_55_thumb.JPG",130,194,18);thumbnails[4408676]=new thumbnail(4408676,"258255","My Dog","1_56_thumb.JPG",130,233,18);thumbnails[4408679]=new thumbnail(4408679,"257232","Cia-aig falls","1_57_thumb.jpg",130,87,18);thumbnails[4408682]=new thumbnail(4408682,"257232","Woodland pathways","1_58_thumb.jpg",130,194,18);thumbnails[4408684]=new thumbnail(4408684,"258255","speeding steam","1_59_thumb.jpg",130,87,18);thumbnails[4408687]=new thumbnail(4408687,"257231","Sunset lovers","1_60_thumb.jpg",130,86,18);thumbnails[4408709]=new thumbnail(4408709,"257236","Admiration","1_61_thumb.JPG",130,190,18);thumbnails[4408711]=new thumbnail(4408711,"258255","Paddling hard","1_62_thumb.JPG",130,87,18);thumbnails[4486938]=new thumbnail(4486938,"257213","looking for nuts","11_thumb.jpg",130,81,18);thumbnails[4486957]=new thumbnail(4486957,"257213","rope walk","1_112_thumb.jpg",130,82,18);thumbnails[4487018]=new thumbnail(4487018,"257213","up a tree","1_212_thumb.jpg",130,80,18);thumbnails[4487021]=new thumbnail(4487021,"257213","peekaboo","1_412_thumb.jpg",130,87,18);thumbnails[4487026]=new thumbnail(4487026,"257213","winter feeding","1_512_thumb.JPG",130,148,18);thumbnails[4487034]=new thumbnail(4487034,"257213","feeding","1_612_thumb.jpg",130,144,18);thumbnails[4487058]=new thumbnail(4487058,"257213","scurry...","1_71_thumb.jpg",130,87,18);thumbnails[4487060]=new thumbnail(4487060,"257213","favorite spot","1_81_thumb.jpg",130,193,18);thumbnails[4487063]=new thumbnail(4487063,"257213","climber..","1_91_thumb.jpg",130,81,18);thumbnails[4487068]=new thumbnail(4487068,"257235","blind sheepdog!","tn_1_1_thumb.JPG",130,81,18);thumbnails[4487072]=new thumbnail(4487072,"257235","chainsaw carving","tn_1_9_thumb.JPG",130,199,18);thumbnails[4487075]=new thumbnail(4487075,"257235","hand carving ..","tn_1_12_thumb.JPG",130,200,18);thumbnails[4487079]=new thumbnail(4487079,"257235","incomming....","tn_1_41_thumb.JPG",130,79,18);thumbnails[4487082]=new thumbnail(4487082,"257235","watching","tn_1_52_thumb.JPG",130,218,18);thumbnails[4487085]=new thumbnail(4487085,"257235","Lochaber School band","tn_1_60_thumb.JPG",130,83,18);thumbnails[4487091]=new thumbnail(4487091,"257235","Applause","tn_1_81_thumb.JPG",130,194,18);thumbnails[4487093]=new thumbnail(4487093,"257235","Assembled","tn_1_82_thumb.JPG",130,84,18);thumbnails[4487096]=new thumbnail(4487096,"257235","Achnacarry castle and the Cameron piper","tn_1_84_thumb.JPG",130,87,18);thumbnails[4487113]=new thumbnail(4487113,"257235","stirring rendition.","tn_1_85_thumb.JPG",130,209,18);thumbnails[4487117]=new thumbnail(4487117,"257235","Going going","tn_1_93_thumb.JPG",130,202,18);thumbnails[4487122]=new thumbnail(4487122,"257235","not amused","tn_bald_eagle_2_thumb.JPG",130,77,18);thumbnails[4487125]=new thumbnail(4487125,"257235","Waiting","tn_harris_hawk_2_thumb.JPG",130,194,18);thumbnails[4487127]=new thumbnail(4487127,"257235","waiting for the show","tn_hybrid_falcon_thumb.JPG",130,198,18);thumbnails[4520857]=new thumbnail(4520857,"262854","sample from Speyside 09","tn_Speyside_09_thumb.JPG",130,81,18);thumbnails[4520859]=new thumbnail(4520859,"262854","sample from Speyside 09","tn_Speyside_09_1_thumb.JPG",130,81,18);thumbnails[4520861]=new thumbnail(4520861,"262854","sample from Speyside 09","tn_Speyside_09_2_thumb.JPG",130,79,18);thumbnails[4520863]=new thumbnail(4520863,"262854","sample from Speyside 09","tn_Speyside_09_3_thumb.JPG",130,84,18);thumbnails[4520875]=new thumbnail(4520875,"262854","sample from Speyside 09","tn_Speyside_09_4_thumb.JPG",130,81,18);thumbnails[4520877]=new thumbnail(4520877,"262854","sample from Speyside 09<br>\r\n","tn_Speyside_09_5_thumb.JPG",130,83,18);thumbnails[4520882]=new thumbnail(4520882,"262854","sample from Speyside 09","tn_Speyside_09_6_thumb.JPG",130,85,18);thumbnails[4520884]=new thumbnail(4520884,"262854","sample from Speyside 09","tn_Speyside_09_7_thumb.JPG",130,85,18);thumbnails[4520888]=new thumbnail(4520888,"262854","sample from Speyside 09","tn_Speyside_09_8_thumb.JPG",130,76,18);thumbnails[4520891]=new thumbnail(4520891,"262854","sample from Speyside 09","tn_Speyside_09_9_thumb.JPG",130,80,18);thumbnails[4520893]=new thumbnail(4520893,"262854","sample from Speyside 09","tn_Speyside_09_10_thumb.JPG",130,80,18);thumbnails[4520897]=new thumbnail(4520897,"262854","sample from Speyside 09","tn_Speyside_09_11_thumb.JPG",130,85,18);thumbnails[4520992]=new thumbnail(4520992,"262854","sample from Speyside 09","tn_Speyside_09_12_thumb.JPG",130,78,18);thumbnails[4520993]=new thumbnail(4520993,"262854","sample from Speyside 09","tn_Speyside_09_13_thumb.JPG",130,81,18);thumbnails[4520996]=new thumbnail(4520996,"262854","sample from Speyside 09","tn_Speyside_09_14_thumb.JPG",130,78,18);thumbnails[4520998]=new thumbnail(4520998,"262854","sample from Speyside 09","tn_Speyside_09_15_thumb.JPG",130,83,18);thumbnails[4520999]=new thumbnail(4520999,"262854","sample from Speyside 09","tn_Speyside_09_16_thumb.JPG",130,79,18);thumbnails[4521002]=new thumbnail(4521002,"262854","sample from Speyside 09","tn_Speyside_09_17_thumb.JPG",130,78,18);thumbnails[4521003]=new thumbnail(4521003,"262854","sample from Speyside 09","tn_Speyside_09_18_thumb.JPG",130,81,18);thumbnails[4521004]=new thumbnail(4521004,"262854","sample from Speyside 09","tn_Speyside_09_19_thumb.JPG",130,79,18);thumbnails[4521017]=new thumbnail(4521017,"262854","sample from Speyside 09","tn_Speyside_09_20_thumb.JPG",130,78,18);thumbnails[4521020]=new thumbnail(4521020,"262854","sample from Speyside 09","tn_Speyside_09_21_thumb.JPG",130,77,18);thumbnails[4521025]=new thumbnail(4521025,"262854","sample from Speyside 09","tn_Speyside_09_22_thumb.JPG",130,80,18);thumbnails[4521026]=new thumbnail(4521026,"262854","sample from Speyside 09","tn_Speyside_09_23_thumb.JPG",130,78,18);thumbnails[4521027]=new thumbnail(4521027,"262854","sample from Speyside 09","tn_Speyside_09_24_thumb.JPG",130,87,18);thumbnails[4521030]=new thumbnail(4521030,"262854","sample from Speyside 09","tn_Speyside_09_25_thumb.JPG",130,81,18);thumbnails[4521036]=new thumbnail(4521036,"262854","sample from Speyside 09","tn_Speyside_09_26_thumb.JPG",130,71,18);thumbnails[4521037]=new thumbnail(4521037,"262854","sample from Speyside 09","tn_Speyside_09_27_thumb.JPG",130,81,18);thumbnails[4521039]=new thumbnail(4521039,"262854","sample from Speyside 09","tn_Speyside_09_28_thumb.JPG",130,81,18);thumbnails[4521041]=new thumbnail(4521041,"262854","sample from Speyside 09","tn_Speyside_09_29_thumb.JPG",130,78,18);thumbnails[4521043]=new thumbnail(4521043,"262854","sample from Speyside 09","tn_Speyside_09_30_thumb.JPG",130,78,18);thumbnails[4521045]=new thumbnail(4521045,"262854","sample from Speyside 09","tn_Speyside_09_31_thumb.JPG",130,81,18);thumbnails[4521047]=new thumbnail(4521047,"262854","sample from Speyside 09","tn_Speyside_09_32_thumb.JPG",130,79,18);thumbnails[4521049]=new thumbnail(4521049,"262854","sample from Speyside 09","tn_Speyside_09_33_thumb.JPG",130,77,18);thumbnails[4521052]=new thumbnail(4521052,"262854","sample from Speyside 09","tn_Speyside_09_34_thumb.JPG",130,87,18);thumbnails[4521054]=new thumbnail(4521054,"262854","sample from Speyside 09","tn_Speyside_09_35_thumb.JPG",130,82,18);thumbnails[4408412]=new thumbnail(4408412,"257214","Rallying 07-09","1_7_thumb.JPG",130,82,18);thumbnails[4408417]=new thumbnail(4408417,"257214","Rallying 07-09","1_8_thumb.jpg",130,81,18);thumbnails[4408420]=new thumbnail(4408420,"257214","Rallying 07-09","1_9_thumb.JPG",130,85,18);thumbnails[4408421]=new thumbnail(4408421,"257214","Rallying 07-09","1_10_thumb.jpg",130,80,18);thumbnails[4408423]=new thumbnail(4408423,"257214","Rallying 07-09","1_11_thumb.JPG",130,72,18);thumbnails[4408425]=new thumbnail(4408425,"257214","Rallying 07-09","1_12_thumb.jpg",130,84,18);thumbnails[4408426]=new thumbnail(4408426,"257214","Rallying 07-09","1_13_thumb.jpg",130,80,18);thumbnails[4408427]=new thumbnail(4408427,"257214","Rallying 07-09","1_16_thumb.jpg",130,83,18);thumbnails[4408430]=new thumbnail(4408430,"257214","Rallying 07-09","1_17_thumb.jpg",130,80,18);thumbnails[4408433]=new thumbnail(4408433,"257214","Rallying 07-09","1_18_thumb.jpg",130,80,18);thumbnails[4408436]=new thumbnail(4408436,"257214","Rallying 07-09","1_19_thumb.JPG",130,80,18);thumbnails[4408513]=new thumbnail(4408513,"257214","Slip Slindin","1_34_thumb.JPG",130,87,18);thumbnails[4408508]=new thumbnail(4408508,"262850","High life","1_32_thumb.JPG",130,212,18);thumbnails[4408509]=new thumbnail(4408509,"262850","High life","1_33_thumb.JPG",130,205,18);var galleries=new Object();galleries[257239]=new gallery(257239,"4408486,4408483,4408477,4406026,4405946","Artistic","gallery",[4405946,4406026,4408477,4408483,4408486]);galleries[257235]=new gallery(257235,"4487127,4487125,4487122,4487117,4487113,4487096,4487093,4487091,4487085,4487082","Clan Cameron collection","gallery",[4395196,4395225,4395227,4395242,4395248,4395404,4395409,4395414,4395417,4395531,4395422,4395514,4395599,4395616,4395630,4487068,4487072,4487075,4487079,4487082,4487085,4487091,4487093,4487096,4487113,4487117,4487122,4487125,4487127]);galleries[257232]=new gallery(257232,"4408682,4408679,4406039,4405956,4395086,4395081,4386597","Infra Red","gallery",[4386597,4395081,4395086,4405956,4406039,4408679,4408682]);galleries[257231]=new gallery(257231,"4408687,4408613,4408608,4408604,4408592,4408504,4408485,4406053,4406027,4405962","Landscape","gallery",[4405962,4406027,4406053,4408485,4408504,4408592,4408604,4408608,4408613,4408687]);galleries[258255]=new gallery(258255,"4408711,4408684,4408676,4408673,4408670,4408643,4408642,4408601,4408595,4408501","other interesting stuff","gallery",[4406503,4408466,4408474,4408475,4408488,4408496,4408501,4408595,4408601,4408642,4408643,4408670,4408673,4408676,4408684,4408711]);galleries[262849]=new gallery(262849,"4521054,4521052,4521049,4521047,4521045,4521043,4521041,4521039,4521037,4521036","Rallying and other racing (3 folders)","gallery",[]);galleries[257213]=new gallery(257213,"4487063,4487060,4487058,4487034,4487026,4487021,4487018,4486957,4486938,4408672","Scottish Wildlife","gallery",[4406028,4406031,4406036,4406040,4406047,4406049,4406528,4406555,4408373,4408441,4408490,4408537,4408553,4408616,4408619,4408672,4486938,4486957,4487018,4487021,4487026,4487034,4487058,4487060,4487063]);galleries[257236]=new gallery(257236,"4408709,4408586,4408574,4408548,4408546,4408544,4408541,4408439,4408410,4408409","Wildlife and other animals","gallery",[4406035,4406041,4408376,4408400,4408404,4408407,4408409,4408410,4408439,4408541,4408544,4408546,4408548,4408574,4408586,4408709]);galleries[262854]=new gallery(262854,"4521054,4521052,4521049,4521047,4521045,4521043,4521041,4521039,4521037,4521036","Speyside 2009","gallery",[4520857,4520859,4520861,4520863,4520875,4520877,4520882,4520884,4520888,4520891,4520893,4520897,4520992,4520993,4520996,4520998,4520999,4521002,4521003,4521004,4521017,4521020,4521025,4521026,4521027,4521030,4521036,4521037,4521039,4521041,4521043,4521045,4521047,4521049,4521052,4521054]);galleries[257214]=new gallery(257214,"4408513,4408436,4408433,4408430,4408427,4408426,4408425,4408423,4408421,4408420","Misc Rally's","gallery",[4408412,4408417,4408420,4408421,4408423,4408425,4408426,4408427,4408430,4408433,4408436,4408513]);galleries[262850]=new gallery(262850,"4408509,4408508","other racing and events","gallery",[4408508,4408509]);var imageSets=new Object();imageSets[1]="4381738";imageSets[3]="4521054,4521052,4521049,4521047,4521045,4521043,4521041,4521039,4521037,4521036,4521030,4521027,4521026,4521025,4521020,4521017,4521004,4521003,4521002,4520999,4520998,4520996,4520993,4520992,4520897,4520893,4520891,4520888,4520884,4520882,4520877,4520875,4520863,4520861,4520859,4520857,4487127,4487125,4487122,4487117,4487113,4487096,4487093,4487091,4487085,4487082,4487079,4487075,4487072,4487068";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/Dragarth/images";break}switch(a){case 1:b="http://www1.clikpic.com/Dragarth/images";break}switch(a){case 2:b="http://admin.clikpic.com/Dragarth/images";break}switch(a){case 24:b="http://tpc15/clikpic/Dragarth/images";break}switch(a){case 4:b="http://www.clikchurch.com/Dragarth/images";break}switch(a){case 5:b="http://www2.clikpic.com/Dragarth/images";break}switch(a){case 22:b="http://tpc5/clikpic/Dragarth/images";break}switch(a){case 23:b="http://tpc10/clikpic/Dragarth/images";break}switch(a){case 25:b="http://tpc16/clikpic/Dragarth/images";break}switch(a){case 15:b="http://www3.clikpic.com/Dragarth/images";break}switch(a){case 18:b="http://www4.clikpic.com/Dragarth/images";break}switch(a){case 19:b="http://www5.clikpic.com/Dragarth/images";break}switch(a){case 31:b="http://www7.clikpic.com/Dragarth/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Dragarth/images";break}switch(a){case 33:b="http://www8.clikpic.com/Dragarth/images";break}switch(a){case 34:b="http://www9.clikpic.com/Dragarth/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Dragarth/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Dragarth/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("gallery"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="gallery.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+escape(backgrounds[imageID].caption)+'" border="0">';if("gallery"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Roughburn Photographic: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 				&pound;"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="sharkeys1st@aol.com">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="sharkeys1st@aol.com">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};