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[2033451]=new thumbnail(2033451,"136248","River at Betws y Coed","Betws-y-Coed_thumb.jpg",130,172,32);thumbnails[2033456]=new thumbnail(2033456,"136248","Llynnau Mymbyr1","snowdonview3_thumb.jpg",130,89,32);thumbnails[2033483]=new thumbnail(2033483,"136248","Llynnau Mymbyr2","snowdonview2_thumb.jpg",130,189,32);thumbnails[2033484]=new thumbnail(2033484,"136248","Frosty","frosty2_thumb.jpg",130,89,32);thumbnails[2033552]=new thumbnail(2033552,"136250","Lingmoor Fell","lakes_lingmoor_thumb.jpg",130,101,32);thumbnails[2033553]=new thumbnail(2033553,"136249","Priest's Cove Sunset1","priestshole1b_thumb.jpg",130,89,32);thumbnails[2033555]=new thumbnail(2033555,"136249","Priest's Cove Cape Cornwall","priest'shole2b_thumb.jpg",130,89,32);thumbnails[2033561]=new thumbnail(2033561,"136250","Aira Beck Ullswater","riveaira-beck2_thumb.jpg",130,100,32);thumbnails[2083735]=new thumbnail(2083735,"136249","Sunset- Cape Cornwall","coast2b_thumb.jpg",130,89,32);thumbnails[2709611]=new thumbnail(2709611,"136250","Jetty - Derwentwater","Jetty -Dewentwater_thumb.jpg",130,85,32);thumbnails[2709852]=new thumbnail(2709852,"170750","Lavender fields 1","snowhill-1_b_thumb.jpg",130,189,32);thumbnails[2709854]=new thumbnail(2709854,"170750","Lavender fields 2","snowhill_A3_thumb.jpg",130,166,32);thumbnails[3169635]=new thumbnail(3169635,"136250","Dewentwater","derwent2_thumb.jpg",130,89,32);thumbnails[3777412]=new thumbnail(3777412,"136249","Cape Cornwall 2","cornwall09-1b_thumb.jpg",130,91,32);thumbnails[3777418]=new thumbnail(3777418,"136249","Cornish Sunset","cornwall09-6b_thumb.jpg",130,89,32);thumbnails[2705048]=new thumbnail(2705048,"170519","Cliffs at sunset","Dunraven Bay_thumb.jpg",130,189,32);thumbnails[2705179]=new thumbnail(2705179,"170519","Sunset","sunset Dunraven Bay_thumb.jpg",130,189,32);thumbnails[2705177]=new thumbnail(2705177,"170519","Heritage Coast","Heritage coast_thumb.jpg",130,89,32);thumbnails[3499732]=new thumbnail(3499732,"214084","Frozen River - Glen Etive","glen-etive-2b_thumb.jpg",130,189,32);thumbnails[3499740]=new thumbnail(3499740,"214084","Glen Etive in winter","glenetive-8b_thumb.jpg",130,191,32);thumbnails[3499776]=new thumbnail(3499776,"214084","Loch nah- Achlaise sunrise","boulder&lake-1d_thumb.jpg",130,191,32);thumbnails[3500391]=new thumbnail(3500391,"214084","Falloch Falls","falloch-falls_1BW-1b_thumb.jpg",130,187,32);thumbnails[3500394]=new thumbnail(3500394,"214084","Frozen River Coupall","glen-etive2-5b_thumb.jpg",130,88,32);thumbnails[3499760]=new thumbnail(3499760,"214084","Frozen waterfall in Glen Etive","glen-etive-1c_thumb.jpg",130,100,32);thumbnails[3499788]=new thumbnail(3499788,"214084","Loch Ba at sunrise","loch-ba--2d_thumb.jpg",130,92,32);thumbnails[3499798]=new thumbnail(3499798,"214084","Loch Ba - footprints in the snow","loch-ba-footprints-1c_thumb.jpg",130,89,32);thumbnails[3499803]=new thumbnail(3499803,"214084","Ice Crystals - Glen Etive","ice-crystals-1_thumb.jpg",130,88,32);thumbnails[3500108]=new thumbnail(3500108,"214084","Tree on Rannoch Moor","the-tree-1b_thumb.jpg",130,92,32);thumbnails[3499868]=new thumbnail(3499868,"214084","Blackrock Cottage","black-rock-cottage-2b_thumb.jpg",130,90,32);thumbnails[3499875]=new thumbnail(3499875,"214084","Panorama of Loch nah- Achlaise","achlaisepan2b_thumb.jpg",130,52,32);thumbnails[3499883]=new thumbnail(3499883,"214084","Corpach Lighthouse","lighthousepano2b_thumb.jpg",130,47,32);thumbnails[2036504]=new thumbnail(2036504,"136240","Antelope Canyon (1)","antelope1b_thumb.jpg",130,189,32);thumbnails[2036507]=new thumbnail(2036507,"136240","Antelope Canyon (2)","antelope2b_thumb.jpg",130,189,32);thumbnails[2036514]=new thumbnail(2036514,"136240","Spider Rock - De Chelly","dechellyspiderrock2_thumb.jpg",130,189,32);thumbnails[2036517]=new thumbnail(2036517,"136240","Bryce - Hoodos (1)","bryce2b_thumb.jpg",130,189,32);thumbnails[2036519]=new thumbnail(2036519,"136240","Glowing Hoodos - Bryce","bryce1b_thumb.jpg",130,189,32);thumbnails[2036545]=new thumbnail(2036545,"136240","Monument Valley - John Ford Point","johnfordview2b_thumb.jpg",130,189,32);thumbnails[2036573]=new thumbnail(2036573,"136240","Cottonwoods - De Chelly","cottonwoods2_thumb.jpg",130,189,32);thumbnails[2036576]=new thumbnail(2036576,"136240","The Whitehouse - De Chelly","whitehouse2_thumb.jpg",130,189,32);thumbnails[2036579]=new thumbnail(2036579,"136240","Navajo Sandstone Zion","navajosdst2_thumb.jpg",130,189,32);thumbnails[2703131]=new thumbnail(2703131,"136240","'El Capitan'","El Capitan_b_thumb.jpg",130,189,32);thumbnails[2704969]=new thumbnail(2704969,"136240","Old Cottonwood","Old Cottonwood-Zion_thumb.jpg",130,189,32);thumbnails[2058779]=new thumbnail(2058779,"136240","Tree and cloud","tree&rock2_thumb.jpg",130,102,32);thumbnails[2704966]=new thumbnail(2704966,"136240","Zion Canyon Colours","Zion Canyon Colours_thumb.jpg",130,89,32);thumbnails[2036511]=new thumbnail(2036511,"136240","Cottonwoods- Zion","dancingtrees_thumb.jpg",130,91,32);thumbnails[2036565]=new thumbnail(2036565,"136240","Zion - River relections","virginriver_thumb.jpg",130,89,32);thumbnails[2036568]=new thumbnail(2036568,"136240","The Mittens - Monument valley","The-Mittens_thumb.jpg",130,89,32);thumbnails[2036563]=new thumbnail(2036563,"136240","Monument Valley mesas","johnford_thumb.jpg",130,72,32);thumbnails[2036578]=new thumbnail(2036578,"136240","Zion Panorama","zionpano_b_thumb.jpg",130,71,32);thumbnails[2036575]=new thumbnail(2036575,"136240","Virgin River - Zion","Zionriver_b_thumb.jpg",130,74,32);thumbnails[2703113]=new thumbnail(2703113,"136240","Bryce Panorama","bryce-panorama_thumb.jpg",130,43,32);thumbnails[2034104]=new thumbnail(2034104,"136242","Arrested decay Bodie Ghost town","houseinterior1duplex_thumb.jpg",130,189,32);thumbnails[2034109]=new thumbnail(2034109,"136242","Mono Lake (1)","Mono-lake_21_thumb.jpg",130,171,32);thumbnails[2034116]=new thumbnail(2034116,"136242","Vernal Falls - Yosemite","vernalfalls2_thumb.jpg",130,189,32);thumbnails[2034115]=new thumbnail(2034115,"136242","Olmsted Point","olmstedpoint2_thumb.jpg",130,150,32);thumbnails[2034106]=new thumbnail(2034106,"136242","Boulder in stream - Yosemite","rapids2_thumb.jpg",130,121,32);thumbnails[2034107]=new thumbnail(2034107,"136242","Dunes - Death Valley","dune2_thumb.jpg",130,89,32);thumbnails[2034108]=new thumbnail(2034108,"136242","Half Dome - Yosemite","halfdome2_thumb.jpg",130,89,32);thumbnails[2034111]=new thumbnail(2034111,"136242","Mono Lake (2)","mono-lake_2_thumb.jpg",130,82,32);thumbnails[2034113]=new thumbnail(2034113,"136242","Abandoned Car - Bodie","abanonedcar_b_thumb.jpg",130,89,32);thumbnails[2034201]=new thumbnail(2034201,"136242","Yosemite- Tunnel View","tunnel-view_thumb.jpg",130,89,32);thumbnails[2034203]=new thumbnail(2034203,"136242","Zabriskie Point - Death Valley","zabriskie-point_thumb.jpg",130,89,32);thumbnails[2703123]=new thumbnail(2703123,"136242","Dunes2-Death Valley","Dunes-Death Valley_thumb.jpg",130,89,32);thumbnails[2703119]=new thumbnail(2703119,"136242","Dunes3-Death Valley","Dunes2-Death Valley_thumb.jpg",130,74,32);thumbnails[2703099]=new thumbnail(2703099,"136242","Artists Pallette-Death Valley","artistspoint_thumb.jpg",130,44,32);thumbnails[3169725]=new thumbnail(3169725,"136242","Yosemite","tunnelview_finalBWA3_thumb.jpg",130,87,32);thumbnails[2704974]=new thumbnail(2704974,"136243","Lower Falls","Grand canyon of Yellowstone_thumb.jpg",130,189,32);thumbnails[2705000]=new thumbnail(2705000,"136243","'Hoodo'- Yellowstone","Yellowstone-Grand Canyon_thumb.jpg",130,189,32);thumbnails[2705007]=new thumbnail(2705007,"136243","Trees and Ice","trees&snow_thumb.jpg",130,190,32);thumbnails[2705015]=new thumbnail(2705015,"136243","Grand Prismatic Spring","Grand Prismatic Pool_thumb.jpg",130,189,32);thumbnails[2034068]=new thumbnail(2034068,"136243","Aspens near Moose","aspens2_thumb.jpg",130,191,32);thumbnails[2034070]=new thumbnail(2034070,"136243","Abandoned truck -Bannack Ghost Town","bannackcar2_thumb.jpg",130,189,32);thumbnails[2034082]=new thumbnail(2034082,"136243","Mammoth Hot Springs (2)","Mammouthspring2_thumb.jpg",130,189,32);thumbnails[2034071]=new thumbnail(2034071,"136243","Bannack reflections","bannackreflect2_thumb.jpg",130,198,32);thumbnails[2034087]=new thumbnail(2034087,"136243","Grand Teton Reflections","tetonsreflection2_thumb.jpg",130,182,32);thumbnails[2034078]=new thumbnail(2034078,"136243","Grass and Fence","grass&fence_thumb.jpg",130,163,32);thumbnails[2034079]=new thumbnail(2034079,"136243","Mammoth Hot Springs (1)","Mammouthspring1_A3final_thumb.jpg",130,89,32);thumbnails[2034084]=new thumbnail(2034084,"136243","Yellowstone Sunset","yellowstone-sunset_thumb.jpg",130,89,32);thumbnails[2034091]=new thumbnail(2034091,"136243","Grand Tetons from Schwabacher Landing","tetonsreflection4_thumb.jpg",130,89,32);thumbnails[2034092]=new thumbnail(2034092,"136243","Fence near Cunningham Cabins","cunninghampano_thumb.jpg",130,59,32);thumbnails[2705019]=new thumbnail(2705019,"136243","Moulton Barn","Moulton barn_thumb.jpg",130,53,32);thumbnails[2927464]=new thumbnail(2927464,"181033","Great Sand Dunes National Park","alamosadunes_thumb.jpg",130,189,32);thumbnails[2927471]=new thumbnail(2927471,"181033","Aspens","aspens_thumb.jpg",130,189,32);thumbnails[2927472]=new thumbnail(2927472,"181033","Aspens 2","aspens21_thumb.jpg",130,184,32);thumbnails[2927483]=new thumbnail(2927483,"181033","Siverton-Durango Railway","durango-silverton railway_thumb.jpg",130,189,32);thumbnails[2927476]=new thumbnail(2927476,"181033","Maroon Bells 1","pano2_A3final2_thumb.jpg",130,71,32);thumbnails[2927477]=new thumbnail(2927477,"181033","Maroon Bells 2","maroons&log_finalA3_thumb.jpg",130,88,32);thumbnails[2927475]=new thumbnail(2927475,"181033","Dallas Divide","dallasdivide_thumb.jpg",130,88,32);thumbnails[2927484]=new thumbnail(2927484,"181033","River of gold","riverofgold_thumb.jpg",130,86,32);thumbnails[2927473]=new thumbnail(2927473,"181033","Aspens 3","aspens4_BWA3_thumb.jpg",130,88,32);thumbnails[2927468]=new thumbnail(2927468,"181033","Ashcroft Ghost Town","ashcroft_thumb.jpg",130,85,32);thumbnails[2932982]=new thumbnail(2932982,"181033","Molas Pass","molas pass_thumb.jpg",130,91,32);thumbnails[2933161]=new thumbnail(2933161,"181033","View over Crater Lake ","craterlake1-final_thumb.jpg",130,89,32);thumbnails[2939641]=new thumbnail(2939641,"181033","Ashcroft Barn","ashcroft_barn1_A3BW_thumb.jpg",130,89,32);thumbnails[2939654]=new thumbnail(2939654,"181033","Aspens and Peaks","maroons&trees1_clouds_thumb.jpg",130,89,32);thumbnails[2939657]=new thumbnail(2939657,"181033","Silverton-Durango Steam Train","train2_A3_thumb.jpg",130,89,32);thumbnails[3169687]=new thumbnail(3169687,"181033","Aspens","aspengroup3_A3_thumb.jpg",130,89,32);thumbnails[2033800]=new thumbnail(2033800,"136244","Bass Harbour Lighthouse- Arcadia National Park","bassharborlight_thumb.jpg",130,184,32);thumbnails[2033803]=new thumbnail(2033803,"136244","Eagle Lake - Arcadia National Park","eaglelake2_thumb.jpg",130,184,32);thumbnails[2033813]=new thumbnail(2033813,"136244","Prospect House Lighthouse","prospectlighthouse_thumb.jpg",130,184,32);thumbnails[2033815]=new thumbnail(2033815,"136244","Pumpkins","pumpkins2_thumb.jpg",130,184,32);thumbnails[2033817]=new thumbnail(2033817,"136244","Sandy Beach - Arcadia N.P. ","sandybeach_thumb.jpg",130,184,32);thumbnails[2033810]=new thumbnail(2033810,"136244","Otter Cliffs at sunrise","ottercliffs2_thumb.jpg",130,89,32);thumbnails[4204649]=new thumbnail(4204649,"249768","White pocket Sunset","white-pocket-18b_thumb.jpg",130,90,32);thumbnails[4204657]=new thumbnail(4204657,"249768","Approaching Storm","white-pocket-4b_thumb.jpg",130,87,32);thumbnails[4204676]=new thumbnail(4204676,"249768","Solitary Tree","white-pocket_2-35b_thumb.jpg",130,160,32);thumbnails[4204704]=new thumbnail(4204704,"249768","Sunrise at White Pocket","white-pocket-12b_thumb.jpg",130,87,32);thumbnails[4204721]=new thumbnail(4204721,"249768","Multicoloured sandstone","white-pocket--17b_thumb.jpg",130,88,32);thumbnails[4204715]=new thumbnail(4204715,"249768","The 'Candy Rock'","candy-rock-2b_thumb.jpg",130,169,32);thumbnails[4204796]=new thumbnail(4204796,"249768","Sandstone and Tree","coyotte-butte-2b_thumb.jpg",130,164,32);thumbnails[4204803]=new thumbnail(4204803,"249768","Lines in the Sandstone","coyotte-butte-7b_thumb.jpg",130,107,32);thumbnails[4204807]=new thumbnail(4204807,"249768","The Control Tower","control-tower-1b_thumb.jpg",130,184,32);thumbnails[4204819]=new thumbnail(4204819,"249768","The Wahweap Hoodoos","hoodos-1b_thumb.jpg",130,195,32);thumbnails[4221591]=new thumbnail(4221591,"249768","Wahweap Hoodoos 2","hoodos-3b_thumb.jpg",130,195,32);thumbnails[4205147]=new thumbnail(4205147,"249768","Lower Antelope Canyon","antelope_01-1b_thumb.jpg",130,90,32);thumbnails[4205150]=new thumbnail(4205150,"249768","Lower Antelope Canyon ","antelope_02-2b_thumb.jpg",130,87,32);thumbnails[4221595]=new thumbnail(4221595,"249768","Rock Patterns 1","white-pocket--12b_thumb.jpg",130,187,32);thumbnails[4221608]=new thumbnail(4221608,"249768","White pocket Panorama","wp_pano1_thumb.jpg",130,45,32);thumbnails[2705225]=new thumbnail(2705225,"136245","Trees near Monticchiello","Trees near San Quirico_thumb.jpg",130,77,32);thumbnails[2033896]=new thumbnail(2033896,"136245","Val d'Orcia (1)","Val d'orchia_1_thumb.jpg",130,87,32);thumbnails[2033904]=new thumbnail(2033904,"136245","Val d'Orcia (2)","Val-d'Ochia_thumb.jpg",130,89,32);thumbnails[2033907]=new thumbnail(2033907,"136245","Trees and Stripes","zebraroad3final_thumb.jpg",130,89,32);thumbnails[2033910]=new thumbnail(2033910,"136245","Letterbox ","letterboxfinal_thumb.jpg",130,91,32);thumbnails[2033911]=new thumbnail(2033911,"136245","Belvedere Sunrise","belvedere-sunrise_thumb.jpg",130,76,32);thumbnails[2033915]=new thumbnail(2033915,"136245","Belvedere (1)","belvedere_thumb.jpg",130,89,32);thumbnails[2033920]=new thumbnail(2033920,"136245","Church of San Biagio","churchpanorama_thumb.jpg",130,70,32);thumbnails[2033917]=new thumbnail(2033917,"136245","Morning Mists ","belvaderevert2final_thumb.jpg",130,189,32);thumbnails[2705193]=new thumbnail(2705193,"136245","Vitaleta Chapel","Vitaletta chapel_thumb.jpg",130,168,32);thumbnails[5851546]=new thumbnail(5851546,"330989","McLean Falls","mcclean-falls-3b_thumb.jpg",130,191,32);thumbnails[5851535]=new thumbnail(5851535,"330989","Campagne Pool","champagnepool_2-2b_thumb.jpg",130,191,32);thumbnails[5857374]=new thumbnail(5857374,"330989","Sand Paterns (2)","sandpatterns-1b_thumb.jpg",130,191,32);thumbnails[5857443]=new thumbnail(5857443,"330989","Wind Blown Grass","wind-blown-grasses-2c_thumb.jpg",130,182,32);thumbnails[5851640]=new thumbnail(5851640,"330989","McLean Falls (2)","waterfall-mcclean-3b_thumb.jpg",130,88,32);thumbnails[5851509]=new thumbnail(5851509,"330989","Cathedral Cove","cathedral-cove-1b_thumb.jpg",130,88,32);thumbnails[5857368]=new thumbnail(5857368,"330989","Sand Patterns (1)","sandpatterns_3-3b_thumb.jpg",130,88,32);thumbnails[5851541]=new thumbnail(5851541,"330989","New Chums Bay","new-chums-2b_thumb.jpg",130,88,32);thumbnails[5857377]=new thumbnail(5857377,"330989","Lake Matheson","lake-matheson-6b_thumb.jpg",130,88,32);thumbnails[5857383]=new thumbnail(5857383,"330989","Lake Mapourika","lakehdr_BW_thumb.jpg",130,70,32);thumbnails[5857387]=new thumbnail(5857387,"330989","Lake Wakatipu","queenstown-lake-1c_thumb.jpg",130,88,32);thumbnails[5857390]=new thumbnail(5857390,"330989","Tekapo  Sunset (1)","tekapo-sunset-1b_thumb.jpg",130,88,32);thumbnails[5857395]=new thumbnail(5857395,"330989","Tekapo Sunset (2)","tekapo-sunset-3b_thumb.jpg",130,88,32);thumbnails[5857441]=new thumbnail(5857441,"330989","Sunset Point","Sunset_Point_thumb.jpg",130,88,32);thumbnails[5851650]=new thumbnail(5851650,"330989","Emerald Lakes","tongarrio-1b_thumb.jpg",130,88,32);var galleries=new Object();galleries[136249]=new gallery(136249,"3777418,3777412,2083735,2033555,2033553","Cornwall","gallery",[2033553,2033555,2083735,3777412,3777418]);galleries[214084]=new gallery(214084,"3500394,3500391,3500108,3499883,3499875,3499868,3499803,3499798,3499788,3499776","Glencoe","gallery",[3499732,3499740,3499776,3500391,3500394,3499760,3499788,3499798,3499803,3500108,3499868,3499875,3499883]);galleries[136250]=new gallery(136250,"3169635,2709611,2033561,2033552","Lake District","gallery",[2033552,2033561,2709611,3169635]);galleries[136248]=new gallery(136248,"2033451","North Wales","gallery",[2033451,2033456,2033483,2033484]);galleries[170750]=new gallery(170750,"2709854,2709852","Snowshill ","gallery",[2709852,2709854]);galleries[170519]=new gallery(170519,"2705179,2705177,2705048","South Wales","gallery",[2705048,2705179,2705177]);galleries[136240]=new gallery(136240,"2036507","Canyons - USA","gallery",[2036504,2036507,2036514,2036517,2036519,2036545,2036573,2036576,2036579,2703131,2704969,2058779,2704966,2036511,2036565,2036568,2036563,2036578,2036575,2703113]);galleries[136242]=new gallery(136242,"2034109","Yosemite and Death Valley","gallery",[2034104,2034109,2034116,2034115,2034106,2034107,2034108,2034111,2034113,2034201,2034203,2703123,2703119,2703099,3169725]);galleries[136243]=new gallery(136243,"2034087","Montana and Wyoming","gallery",[2704974,2705000,2705007,2705015,2034068,2034070,2034082,2034071,2034087,2034078,2034079,2034084,2034091,2034092,2705019]);galleries[181033]=new gallery(181033,"2927471","Colorado","gallery",[2927464,2927471,2927472,2927483,2927476,2927477,2927475,2927484,2927473,2927468,2932982,2933161,2939641,2939654,2939657,3169687]);galleries[136244]=new gallery(136244,"2033813","New England","gallery",[2033800,2033803,2033813,2033815,2033817,2033810]);galleries[249768]=new gallery(249768,"4204807","Utah and Arizona Wilderness","gallery",[4204649,4204657,4204676,4204704,4204721,4204715,4204796,4204803,4204807,4204819,4221591,4205147,4205150,4221595,4221608]);galleries[136245]=new gallery(136245,"2033917","Tuscany","gallery",[2705225,2033896,2033904,2033907,2033910,2033911,2033915,2033920,2033917,2705193]);galleries[136247]=new gallery(136247,"2033451","United Kingdom","gallery",[]);galleries[330989]=new gallery(330989,"5857387","New Zealand","gallery",[5851546,5851535,5857374,5857443,5851640,5851509,5857368,5851541,5857377,5857383,5857387,5857390,5857395,5857441,5851650]);var imageSets=new Object();imageSets[1]="5857387";imageSets[2]="5857387,4204807,2927471,2036507,2034109,2034087,2033917,2033813,2033451";imageSets[3]="5857443,5857441,5857395,5857390,5857387,5857383,5857377,5857374,5857368,5851650,5851640,5851546,5851541,5851535,5851509,4221608,4221595,4221591,4205150,4205147,4204819,4204807,4204803,4204796,4204721,4204715,4204704,4204676,4204657,4204649,3777418,3777412,3500394,3500391,3500108,3499883,3499875,3499868,3499803,3499798,3499788,3499776,3499760,3499740,3499732,3169725,3169687,3169635,2939657,2939654";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/jpdsnabel/images";break}switch(a){case 1:b="http://www1.clikpic.com/jpdsnabel/images";break}switch(a){case 2:b="http://admin.clikpic.com/jpdsnabel/images";break}switch(a){case 24:b="http://tpc15/clikpic/jpdsnabel/images";break}switch(a){case 4:b="http://www.clikchurch.com/jpdsnabel/images";break}switch(a){case 5:b="http://www2.clikpic.com/jpdsnabel/images";break}switch(a){case 22:b="http://tpc5/clikpic/jpdsnabel/images";break}switch(a){case 23:b="http://tpc10/clikpic/jpdsnabel/images";break}switch(a){case 25:b="http://tpc16/clikpic/jpdsnabel/images";break}switch(a){case 15:b="http://www3.clikpic.com/jpdsnabel/images";break}switch(a){case 18:b="http://www4.clikpic.com/jpdsnabel/images";break}switch(a){case 19:b="http://www5.clikpic.com/jpdsnabel/images";break}switch(a){case 31:b="http://www7.clikpic.com/jpdsnabel/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jpdsnabel/images";break}switch(a){case 33:b="http://www8.clikpic.com/jpdsnabel/images";break}switch(a){case 34:b="http://www9.clikpic.com/jpdsnabel/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jpdsnabel/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jpdsnabel/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="'+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="John Snabel Photography: "+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> 				AU$"+(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="">';b=b+'<input type="hidden" name="currency_code" value="AUD">';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="">';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+'")'})}}};