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[2544340]=new thumbnail(2544340,"216377","Mind the gap","mind the gap1_thumb.jpg",130,59,32);thumbnails[2548067]=new thumbnail(2548067,"216374","Pocket rockets","Pocket rockets_thumb.jpg",130,81,32);thumbnails[2545890]=new thumbnail(2545890,"216376","Ghostly face","Ghostly face_thumb.jpg",130,103,32);thumbnails[2507894]=new thumbnail(2507894,"216384","Wheat Bokeh","Wheatbokeh_thumb.jpg",130,105,32);thumbnails[2514705]=new thumbnail(2514705,"160758","All Calm","All Calm2_thumb.jpg",130,109,32);thumbnails[2514707]=new thumbnail(2514707,"160758","Flash floods of light","Flash floods of light2_thumb.jpg",130,58,32);thumbnails[2514708]=new thumbnail(2514708,"160758","Fort","IR Tower2_thumb.jpg",130,86,32);thumbnails[2514713]=new thumbnail(2514713,"216377","Leave the light on","Leave the light on2_thumb.jpg",130,174,32);thumbnails[2514714]=new thumbnail(2514714,"216384","White dove","White dove2_thumb.jpg",130,61,32);thumbnails[2514780]=new thumbnail(2514780,"216384","Light in the dark","Light in the dark_thumb.jpg",130,71,32);thumbnails[2516708]=new thumbnail(2516708,"216376","Dark and light sides of the moon","moon_thumb.jpg",130,211,32);thumbnails[2526202]=new thumbnail(2526202,"216384","Delicate Skeleton","Delicate skeleton_thumb.jpg",130,79,32);thumbnails[2526204]=new thumbnail(2526204,"216384","All curled up","curled up_thumb.jpg",130,93,32);thumbnails[2533913]=new thumbnail(2533913,"160758","Dark Sky","darksky_thumb.jpg",130,65,32);thumbnails[2533916]=new thumbnail(2533916,"216377","Still Relaxed?","Still relaxed_thumb.jpg",130,259,32);thumbnails[2533917]=new thumbnail(2533917,"216377","Up you go!","Up you go_thumb.jpg",130,161,32);thumbnails[2539056]=new thumbnail(2539056,"216384","Soft drop","Tulip_thumb.jpg",130,95,32);thumbnails[2542625]=new thumbnail(2542625,"216384","Pond Star","Pond star_thumb.jpg",130,90,32);thumbnails[2553513]=new thumbnail(2553513,"216377","Need a pick me up","cranes_thumb.jpg",130,100,32);thumbnails[2553520]=new thumbnail(2553520,"216377","Scale the building","DSC_0065-1_thumb.jpg",130,99,32);thumbnails[2584005]=new thumbnail(2584005,"216377","Arch angles","Arch angles_thumb.jpg",130,154,32);thumbnails[2588113]=new thumbnail(2588113,"216384","Lightning strike","strike_thumb.jpg",130,74,32);thumbnails[2603461]=new thumbnail(2603461,"216377","Tic tac toe","DSC_0573-1-1_thumb.jpg",130,93,32);thumbnails[2603465]=new thumbnail(2603465,"216377","Chimney stacks","Chimney stacks_thumb.jpg",130,136,32);thumbnails[2603466]=new thumbnail(2603466,"216377","labyrinth","DSC_0297-1-1_thumb.jpg",130,188,32);thumbnails[2603469]=new thumbnail(2603469,"216376","Ethereal pain","Ethereal pain_thumb.jpg",130,98,32);thumbnails[2603470]=new thumbnail(2603470,"216377","Shapes all around","DSC_0440-1-1-1_thumb.jpg",130,206,32);thumbnails[2603474]=new thumbnail(2603474,"216377","Sprial Stairs","DSC_0411-1-1_thumb.jpg",130,187,32);thumbnails[2603501]=new thumbnail(2603501,"216377","Stairway to..?","DSC_0229-1_thumb.jpg",130,196,32);thumbnails[2610593]=new thumbnail(2610593,"216384","Crashing waves","Crashing waves_thumb.jpg",130,79,32);thumbnails[2614140]=new thumbnail(2614140,"216377","Crashing tides","DSC_0727-1_thumb.jpg",130,92,32);thumbnails[2626610]=new thumbnail(2626610,"216374","Changing seasons","Changing seasons_thumb.jpg",130,72,32);thumbnails[2657347]=new thumbnail(2657347,"216375","Light of my life","DSC_0019-1_thumb.jpg",130,75,32);thumbnails[2842374]=new thumbnail(2842374,"216377","Curves and bends","bends_thumb.jpg",130,79,32);thumbnails[2980492]=new thumbnail(2980492,"216377","Up or down?","up or down_thumb.jpg",130,179,32);thumbnails[2980498]=new thumbnail(2980498,"216377","All closed","all closed_thumb.jpg",130,82,32);thumbnails[2980499]=new thumbnail(2980499,"216376","Deeper into descent","deeper into decent_thumb.jpg",130,87,32);thumbnails[2980500]=new thumbnail(2980500,"216377","The wooden door","the wooden door_thumb.jpg",130,85,32);thumbnails[2980589]=new thumbnail(2980589,"216375","Watching over","watching over_thumb.jpg",130,160,32);thumbnails[3095939]=new thumbnail(3095939,"216377","Guiding Light","Guiding light_thumb.jpg",130,194,32);thumbnails[3118905]=new thumbnail(3118905,"216374","Hay day","hay day_thumb.jpg",130,77,32);thumbnails[3208085]=new thumbnail(3208085,"196053","Decayed bulldozer","dozer_thumb.jpg",130,93,32);thumbnails[3208089]=new thumbnail(3208089,"196053","Front row to the end of the world","Front row_thumb.jpg",130,97,32);thumbnails[3208091]=new thumbnail(3208091,"196053","Autumn in all its glory","Hanging tree_thumb.jpg",130,194,32);thumbnails[3208092]=new thumbnail(3208092,"196053","Down in the valley","in the valley_thumb.jpg",130,71,32);thumbnails[3208093]=new thumbnail(3208093,"196053","Shades of orange","shades of orange_thumb.jpg",130,87,32);thumbnails[3208094]=new thumbnail(3208094,"196053","The storm is coming","Storms heading in_thumb.jpg",130,236,32);thumbnails[3208095]=new thumbnail(3208095,"196053","Water as still as glass","Waterscape_thumb.jpg",130,68,32);thumbnails[3213241]=new thumbnail(3213241,"216380","Nothings ever on!","tv-1_thumb.jpg",130,100,32);thumbnails[3213243]=new thumbnail(3213243,"216377","Behind the bike shed","parkup_thumb.jpg",130,97,32);thumbnails[3213391]=new thumbnail(3213391,"196053","Beached","Beached_thumb.jpg",130,115,32);thumbnails[3352142]=new thumbnail(3352142,"196053","Winter wheat","wheat field_thumb.jpg",130,86,32);thumbnails[3352151]=new thumbnail(3352151,"216374","Seated in snow","Seated in snow_thumb.jpg",130,172,32);thumbnails[3364162]=new thumbnail(3364162,"216378","Domination is in the sky","Domination is the sky_thumb.jpg",130,95,32);thumbnails[3364527]=new thumbnail(3364527,"216374","Nowhere everywhere","nowhere everywhere_thumb.jpg",130,209,32);thumbnails[3364640]=new thumbnail(3364640,"216374","the lost and the lonely","The  lost and the lonely_thumb.jpg",130,191,32);thumbnails[3365943]=new thumbnail(3365943,"216378","Even the large are small","even the large are small_thumb.jpg",130,94,32);thumbnails[3374026]=new thumbnail(3374026,"216378","Dare to dream","Flying through the rays_thumb.jpg",130,81,32);thumbnails[3377518]=new thumbnail(3377518,"216378","The touch","the touch_thumb.jpg",130,161,32);thumbnails[3383220]=new thumbnail(3383220,"216374","A quiet dip","A quiet dip_thumb.jpg",130,73,32);thumbnails[3383221]=new thumbnail(3383221,"216375","King for a day","King for a day_thumb.jpg",130,194,32);thumbnails[3383222]=new thumbnail(3383222,"216378","Tree soliders","Tree soliders_thumb.jpg",130,89,32);thumbnails[3383223]=new thumbnail(3383223,"216378","Momments come and go","Momments come and go_thumb.jpg",130,158,32);thumbnails[3383224]=new thumbnail(3383224,"216374","Playground in the air","Playground in the air_thumb.jpg",130,61,32);thumbnails[3390670]=new thumbnail(3390670,"216374","Communication","Communication_thumb.jpg",130,66,32);thumbnails[3390672]=new thumbnail(3390672,"216374","Blindness","Blindness_thumb.jpg",130,87,32);thumbnails[3390674]=new thumbnail(3390674,"216374","Emptiness","Emptiness_thumb.jpg",130,225,32);thumbnails[3390675]=new thumbnail(3390675,"216378","Light of life","Light of life_thumb.jpg",130,87,32);thumbnails[3390676]=new thumbnail(3390676,"216374","One mans journey","One mans journey_thumb.jpg",130,251,32);thumbnails[3390678]=new thumbnail(3390678,"216378","Passing light","Passing light_thumb.jpg",130,79,32);thumbnails[3390682]=new thumbnail(3390682,"216376","smaller and smaller windows","smaller and smaller windows_thumb.jpg",130,164,32);thumbnails[3413367]=new thumbnail(3413367,"160758","Patience","Patience_thumb.jpg",130,90,32);thumbnails[3413370]=new thumbnail(3413370,"160758","Waiting","Waiting_thumb.jpg",130,87,32);thumbnails[3413372]=new thumbnail(3413372,"216375","Castles in the sky","Castles in the sky_thumb.jpg",130,63,32);thumbnails[3495786]=new thumbnail(3495786,"216378","Overlooked","overlook_thumb.jpg",130,204,32);thumbnails[3495788]=new thumbnail(3495788,"216375","Effects","Effects_thumb.jpg",130,74,32);thumbnails[3511846]=new thumbnail(3511846,"216376","Tiles","Tiles_thumb.jpg",130,96,32);thumbnails[3511847]=new thumbnail(3511847,"216375","Indecision","indecision_thumb.jpg",130,194,32);thumbnails[3511850]=new thumbnail(3511850,"216375","Pegged","Pegged_thumb.jpg",130,202,32);thumbnails[3511851]=new thumbnail(3511851,"216375","Do you see me now","do you see me now_thumb.jpg",130,194,32);thumbnails[3511852]=new thumbnail(3511852,"216375","Viewing out","Viewing out_thumb.jpg",130,232,32);thumbnails[3511853]=new thumbnail(3511853,"216376","Noise","Noise_thumb.jpg",130,205,32);thumbnails[3511854]=new thumbnail(3511854,"216374","Bird on a wire","Bird on a wire_thumb.jpg",130,87,32);thumbnails[3511855]=new thumbnail(3511855,"216377","Stillness","Stillness_thumb.jpg",130,87,32);thumbnails[3535172]=new thumbnail(3535172,"216384","Rush","Rush_thumb.jpg",130,185,32);thumbnails[3535174]=new thumbnail(3535174,"216378","Spot light","Spot_light_thumb.jpg",130,87,32);thumbnails[3535176]=new thumbnail(3535176,"216375","Outpost","Outpost_thumb.jpg",130,93,32);thumbnails[3535178]=new thumbnail(3535178,"216378","Summer walks","Summer_walks_thumb.jpg",130,166,32);thumbnails[3535255]=new thumbnail(3535255,"216376","Lines and lights","lines_and_light_thumb.jpg",130,69,32);thumbnails[3539174]=new thumbnail(3539174,"216376","Beyond","Beyond_thumb.jpg",130,175,32);thumbnails[3539176]=new thumbnail(3539176,"216377","Scale","Scale_thumb.jpg",130,93,32);thumbnails[3583534]=new thumbnail(3583534,"216374","1pm shadow","1pm_shadow_thumb.jpg",130,173,32);thumbnails[3583535]=new thumbnail(3583535,"216380","Bricked up","Bricked_up_thumb.jpg",130,269,32);thumbnails[3583536]=new thumbnail(3583536,"216380","Pier 244","Pier_244_thumb.jpg",130,204,32);thumbnails[3583537]=new thumbnail(3583537,"238567","Empites","Emptied_thumb.jpg",130,198,32);thumbnails[3583539]=new thumbnail(3583539,"216374","Tracks and steps","Tracks_and_steps_thumb.jpg",130,84,32);thumbnails[3583543]=new thumbnail(3583543,"216378","All roads must end","All_roads_must_end_thumb.jpg",130,198,32);thumbnails[3583547]=new thumbnail(3583547,"216377","Spaces","spaces_thumb.jpg",130,196,32);thumbnails[3583558]=new thumbnail(3583558,"216374","Offshore","Offshore_thumb.jpg",130,185,32);thumbnails[3602273]=new thumbnail(3602273,"216380","3-2-1","3-2-1_thumb.jpg",130,163,32);thumbnails[3602274]=new thumbnail(3602274,"216377","Tomorrow is another day","Tomorrow_is_another_day_thumb.jpg",130,106,32);thumbnails[3602275]=new thumbnail(3602275,"216374","Make your own path","Make_your_own_path_thumb.jpg",130,66,32);thumbnails[3648265]=new thumbnail(3648265,"216375","The Three guards","The_Three_guards_thumb.jpg",130,192,32);thumbnails[3648266]=new thumbnail(3648266,"216378","path to power","path_to_power_thumb.jpg",130,199,32);thumbnails[3713087]=new thumbnail(3713087,"216380","White Noise","White_Noise_thumb.jpg",130,87,32);thumbnails[3812046]=new thumbnail(3812046,"238569","The original lighthouse","The_original_light_house_thumb.jpg",130,87,32);thumbnails[3812049]=new thumbnail(3812049,"238569","Beachy head","Beachy_head_thumb.jpg",130,183,32);thumbnails[3933070]=new thumbnail(3933070,"238567","Dance of shadows","dance_of_shadows_thumb.jpg",130,201,32);thumbnails[3933071]=new thumbnail(3933071,"238567","Tea for two","tea_for_two_thumb.jpg",130,158,32);thumbnails[3933075]=new thumbnail(3933075,"216374","Finding a spot on the beach in summer is hard","finding_a_spot_on_the_beach_in_summer_is_hard_thumb.jpg",130,182,32);thumbnails[3933088]=new thumbnail(3933088,"238567","X2 Boost","x2_boost_thumb.jpg",130,189,32);thumbnails[3933146]=new thumbnail(3933146,"238569","Toy lighthouse","toy_lighthouse_thumb.jpg",130,87,32);thumbnails[3933147]=new thumbnail(3933147,"238569","Seven sisters","seven_sisters_thumb.jpg",130,87,32);thumbnails[4010783]=new thumbnail(4010783,"216378","The other side","The_other_side_thumb.jpg",130,85,32);thumbnails[4010791]=new thumbnail(4010791,"216376","Shapes","Shapes_thumb.jpg",130,80,32);thumbnails[4010794]=new thumbnail(4010794,"216377","Nuclear station","Nuclear_Station_thumb.jpg",130,85,32);thumbnails[4010802]=new thumbnail(4010802,"196053","Streams of light","Streams_of_light_thumb.jpg",130,109,32);thumbnails[4010890]=new thumbnail(4010890,"216380","Pulled its last","pulled_its_last_thumb.jpg",130,277,32);thumbnails[4011041]=new thumbnail(4011041,"216384","Exiled","Exiled_thumb.jpg",130,87,32);thumbnails[4030743]=new thumbnail(4030743,"216376","A here here","A_door_here_thumb.jpg",130,137,32);thumbnails[4030744]=new thumbnail(4030744,"238567","Dreams","Dreams_thumb.jpg",130,174,32);thumbnails[4030746]=new thumbnail(4030746,"216377","Cathedral","Cathedral_thumb.jpg",130,173,32);thumbnails[4030748]=new thumbnail(4030748,"216377","Nine times the view","nine_times_the_view_thumb.jpg",130,205,32);thumbnails[4030760]=new thumbnail(4030760,"196053","Passing by","Passing_by_thumb.jpg",130,173,32);thumbnails[4056717]=new thumbnail(4056717,"216384","Looking over","looking_over_thumb.jpg",130,194,32);thumbnails[4056726]=new thumbnail(4056726,"216378","Slight slope","Slight_slope_thumb.jpg",130,87,32);thumbnails[4362995]=new thumbnail(4362995,"216384","Mountain range","Mountain_range_thumb.jpg",130,194,32);thumbnails[4362996]=new thumbnail(4362996,"216378","The lonely surfer","The_lonely_surfer_thumb.jpg",130,71,32);thumbnails[4362997]=new thumbnail(4362997,"216374","Window light","Window_light_thumb.jpg",130,205,32);thumbnails[4672715]=new thumbnail(4672715,"216374","2 bikes and a dog","2_bikes_and_a_dog_thumb.jpg",130,105,32);thumbnails[4672744]=new thumbnail(4672744,"216377","burning the midnight oil","burning_the_midnight_oil_thumb.jpg",130,83,32);thumbnails[4672745]=new thumbnail(4672745,"216376","Canvas","Canvas_thumb.jpg",130,144,32);thumbnails[4672747]=new thumbnail(4672747,"216380","Carrions","Carrions_thumb.jpg",130,178,32);thumbnails[4672749]=new thumbnail(4672749,"216380","Closed gate","closed_gate_thumb.jpg",130,80,32);thumbnails[4672753]=new thumbnail(4672753,"216380","Escaping to the light","Escaping_to_the_light_thumb.jpg",130,119,32);thumbnails[4672756]=new thumbnail(4672756,"216380","Home alone","Home_alone_thumb.jpg",130,166,32);thumbnails[4672759]=new thumbnail(4672759,"216375","I remember","I_remember_thumb.jpg",130,194,32);thumbnails[4672764]=new thumbnail(4672764,"216384","Wave breaker","Wave_breaker_thumb.jpg",130,194,32);thumbnails[4672768]=new thumbnail(4672768,"216380","Skeleton ","Skeleton__thumb.jpg",130,194,32);thumbnails[4672864]=new thumbnail(4672864,"216374","Slient ","Slient__thumb.jpg",130,183,32);thumbnails[4672867]=new thumbnail(4672867,"216377","Rural pyramid","Rural_pyramid_thumb.jpg",130,87,32);thumbnails[4673161]=new thumbnail(4673161,"216374"," Distant future","_Distant_future_thumb.jpg",130,194,32);thumbnails[4673163]=new thumbnail(4673163,"216380","Credit crunch","Credit_crunch_thumb.jpg",130,173,32);thumbnails[4673167]=new thumbnail(4673167,"216375","Dream state","Dream_state_thumb.jpg",130,194,32);thumbnails[4673191]=new thumbnail(4673191,"216378","Before the rain","Before_the_rain_thumb.jpg",130,194,32);thumbnails[4673193]=new thumbnail(4673193,"216384","Friends forever","Friends_forever_thumb.jpg",130,194,32);thumbnails[4673197]=new thumbnail(4673197,"216378","Little holes","Little_holes_thumb.jpg",130,196,32);thumbnails[4673199]=new thumbnail(4673199,"216378","Sea snake","Sea_snake_thumb.jpg",130,194,32);thumbnails[4673203]=new thumbnail(4673203,"216375","Monster","Monster_thumb.jpg",130,87,32);thumbnails[4673604]=new thumbnail(4673604,"216380","Past lives","Past_lives_thumb.jpg",130,197,32);thumbnails[4766854]=new thumbnail(4766854,"216380","All packed","all_packed_thumb.jpg",130,194,32);thumbnails[4766897]=new thumbnail(4766897,"216380","Unclean","Unclean_thumb.jpg",130,194,32);thumbnails[4766900]=new thumbnail(4766900,"216380","Long road of life","Long_road_of_life_thumb.jpg",130,194,32);thumbnails[2542671]=new thumbnail(2542671,"216384","dandelion","dandelion_thumb.jpg",130,92,32);var galleries=new Object();galleries[216376]=new gallery(216376,"4672745,4030743,4010791,3539174,3535255,3511853,3511846,3390682,2980499,2603469","Abstract","gallery",[2545890,2516708,2603469,2980499,3390682,3511846,3511853,3535255,3539174,4010791,4030743,4672745]);galleries[238569]=new gallery(238569,"3933147,3933146,3812049,3812046","Aerial ","gallery",[3812046,3812049,3933146,3933147]);galleries[216377]=new gallery(216377,"4672867,4672744,4030748,4030746,4010794,3602274,3583547,3539176,3511855,3213243","Architecture","gallery",[2544340,2514713,2533916,2533917,2553513,2553520,2584005,2603461,2603465,2603466,2603470,2603474,2603501,2614140,2842374,2980492,2980498,2980500,3095939,3213243,3511855,3539176,3583547,3602274,4010794,4030746,4030748,4672744,4672867]);galleries[196053]=new gallery(196053,"4030760,4010802,3352142,3213391,3208095,3208094,3208093,3208092,3208091,3208089","Colour","gallery",[3208085,3208089,3208091,3208092,3208093,3208094,3208095,3213391,3352142,4010802,4030760]);galleries[216380]=new gallery(216380,"4766900,4766897,4766854,4673604,4673163,4672768,4672756,4672753,4672749,4672747","Decay","gallery",[3213241,3583535,3583536,3602273,3713087,4010890,4672747,4672749,4672753,4672756,4672768,4673163,4673604,4766854,4766897,4766900]);galleries[160758]=new gallery(160758,"3413370,3413367,2533913,2514708,2514707,2514705","Infrared","gallery",[2514705,2514707,2514708,2533913,3413367,3413370]);galleries[216374]=new gallery(216374,"4673161,4672864,4672715,4362997,3933075,3602275,3583558,3583539,3583534,3511854","Minimalism","gallery",[2548067,2626610,3118905,3352151,3364527,3364640,3383220,3383224,3390670,3390672,3390674,3390676,3511854,3583534,3583539,3583558,3602275,3933075,4362997,4672715,4672864,4673161]);galleries[216384]=new gallery(216384,"4673193,4672764,4362995,4056717,4011041,3535172,2610593,2588113,2542671,2542625","Nature","gallery",[2507894,2514714,2514780,2526202,2526204,2539056,2542625,2588113,2610593,3535172,4011041,4056717,4362995,4672764,4673193,2542671]);galleries[216375]=new gallery(216375,"4673203,4673167,4672759,3648265,3535176,3511852,3511851,3511850,3511847,3495788","Silhouette","gallery",[2657347,2980589,3383221,3413372,3495788,3511847,3511850,3511851,3511852,3535176,3648265,4672759,4673167,4673203]);galleries[216378]=new gallery(216378,"4673199,4673197,4673191,4362996,4056726,4010783,3648266,3583543,3535178,3535174","Sky","gallery",[3364162,3365943,3374026,3377518,3383222,3383223,3390675,3390678,3495786,3535174,3535178,3583543,3648266,4010783,4056726,4362996,4673191,4673197,4673199]);galleries[238567]=new gallery(238567,"4030744,3933088,3933071,3933070,3583537","Street","gallery",[3583537,3933070,3933071,3933088,4030744]);var imageSets=new Object();imageSets[1]="4766900,4766897,4766854,4673604,4673203,4673199,4673197,4673193,4673191,4673161,4672867,4672864,4672768,4672764,4672759,4672756,4672753,4672749,4672747,4672745,4672744,4672715,4362997,4362996,4362995,4056726,4056717,4030748,4030746,4030744,4030743,4011041,4010890,4010794,4010783,3933147,3933146,3933088,3933075,3933071,3933070,3812049,3812046,3713087,3648266,3648265,3602275,3602274,3602273,3583558,3583547,3583543,3583539,3583537,3583536,3583535,3583534,3539176,3539174,3535255,3535178,3535176,3535174,3535172,3511855,3511854,3511853,3511851,3511850,3511847,3495788,3413372,3413370,3413367,3390682,3390678,3390676,3390675,3390674,3390672,3390670,3383224,3383221,3383220,3377518,3365943,3364640,3364527,3364162,3352151,3352142,3213243,3208092,2842374,2542671,2507894";imageSets[3]="4766900,4766897,4766854,4673604,4673203,4673199,4673197,4673193,4673191,4673167,4673163,4673161,4672867,4672864,4672768,4672764,4672759,4672756,4672753,4672749,4672747,4672745,4672744,4672715,4362997,4362996,4362995,4056726,4056717,4030760,4030748,4030746,4030744,4030743,4011041,4010890,4010802,4010794,4010791,4010783,3933147,3933146,3933088,3933075,3933071,3933070,3812049,3812046,3713087,3648266";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/gmarlow/images";break}switch(a){case 1:b="http://www1.clikpic.com/gmarlow/images";break}switch(a){case 2:b="http://admin.clikpic.com/gmarlow/images";break}switch(a){case 24:b="http://tpc15/clikpic/gmarlow/images";break}switch(a){case 4:b="http://www.clikchurch.com/gmarlow/images";break}switch(a){case 5:b="http://www2.clikpic.com/gmarlow/images";break}switch(a){case 22:b="http://tpc5/clikpic/gmarlow/images";break}switch(a){case 23:b="http://tpc10/clikpic/gmarlow/images";break}switch(a){case 25:b="http://tpc16/clikpic/gmarlow/images";break}switch(a){case 15:b="http://www3.clikpic.com/gmarlow/images";break}switch(a){case 18:b="http://www4.clikpic.com/gmarlow/images";break}switch(a){case 19:b="http://www5.clikpic.com/gmarlow/images";break}switch(a){case 31:b="http://www7.clikpic.com/gmarlow/images";break}switch(a){case 32:b="http://admin2.clikpic.com/gmarlow/images";break}switch(a){case 33:b="http://www8.clikpic.com/gmarlow/images";break}switch(a){case 34:b="http://www9.clikpic.com/gmarlow/images";break}switch(a){case 35:b="http://admin3.clikpic.com/gmarlow/images";break}switch(a){case 37:b="http://admin4.clikpic.com/gmarlow/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="Shadows and Highlights: "+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="ouijagav@yahoo.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="ouijagav@yahoo.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+'")'})}}};