window.thumbnails=new Object();thumbnails[2778964]=new thumbnail(2778964,"347823","ISIS WINGS","ISIS_WINGS_thumb.jpg",130,87,5,"							photo_2778964.html");thumbnails[2779991]=new thumbnail(2779991,"347823","4 DANCERS<br>\r\n","4_DANCERS1_thumb.jpg",130,195,5,"							photo_2779991.html");thumbnails[2779993]=new thumbnail(2779993,"347823","SABINA","SABINA1_thumb.jpg",130,195,5,"							photo_2779993.html");thumbnails[2779995]=new thumbnail(2779995,"347823","GOLD WINGS","GOLD_WINGS1_thumb.jpg",130,155,5,"							photo_2779995.html");thumbnails[4139916]=new thumbnail(4139916,"347823","ISIS WINGS 2","EASTERN_ROSES_2008_12_thumb.jpg",130,92,5,"							photo_4139916.html");thumbnails[4139920]=new thumbnail(4139920,"347823","GERRY-RAE","EASTERN_ROSES_200810_thumb.jpg",130,183,5,"							photo_4139920.html");thumbnails[4139936]=new thumbnail(4139936,"347823","MYSTIK HIPS","EASTERN_ROSES_20087_thumb.jpg",130,184,5,"							photo_4139936.html");thumbnails[5895640]=new thumbnail(5895640,"332877","1","3_thumb.jpg",130,210,5,"							photo_5895640.html");thumbnails[5895641]=new thumbnail(5895641,"332877","2<br>\r\n","4_thumb.jpg",130,209,5,"							photo_5895641.html");thumbnails[5895643]=new thumbnail(5895643,"332877","5","5_thumb.jpg",130,97,5,"							photo_5895643.html");thumbnails[5896101]=new thumbnail(5896101,"332877","6","6_thumb.jpg",130,164,5,"							photo_5896101.html");thumbnails[5896149]=new thumbnail(5896149,"332877","7","7_thumb.jpg",130,87,5,"							photo_5896149.html");thumbnails[5896154]=new thumbnail(5896154,"332877","8","8_thumb.jpg",130,88,5,"							photo_5896154.html");thumbnails[5896156]=new thumbnail(5896156,"332877","9","9_thumb.jpg",130,92,5,"							photo_5896156.html");thumbnails[5896160]=new thumbnail(5896160,"332877","10","10_thumb.jpg",130,184,5,"							photo_5896160.html");thumbnails[5896163]=new thumbnail(5896163,"332877","11","11_thumb.jpg",130,140,5,"							photo_5896163.html");thumbnails[5896165]=new thumbnail(5896165,"332877","12","12_thumb.jpg",130,208,5,"							photo_5896165.html");thumbnails[5896170]=new thumbnail(5896170,"332877","13","13_thumb.jpg",130,92,5,"							photo_5896170.html");thumbnails[5896184]=new thumbnail(5896184,"332877","14","14_thumb.jpg",130,173,5,"							photo_5896184.html");thumbnails[5896429]=new thumbnail(5896429,"347823","1","EASTERN_ROSES_thumb.jpg",130,173,5,"							photo_5896429.html");thumbnails[5896511]=new thumbnail(5896511,"347823","2","EASTERN_ROSESnew_thumb.jpg",130,107,5,"							photo_5896511.html");thumbnails[5897087]=new thumbnail(5897087,"347823","IN THE DANCE","IN_THE_DANCE_thumb.jpg",130,92,5,"							photo_5897087.html");thumbnails[5897088]=new thumbnail(5897088,"347823","DANCE","DANCEjpg_thumb.jpg",130,184,5,"							photo_5897088.html");thumbnails[5924679]=new thumbnail(5924679,"332877","POSTER 1","POSTER1_thumb.jpg",130,209,5,"							photo_5924679.html");thumbnails[5924683]=new thumbnail(5924683,"332877","POSTER2","POSTER2_thumb.jpg",130,210,5,"							photo_5924683.html");thumbnails[5924687]=new thumbnail(5924687,"332877","POSTER3","POSTER3_thumb.jpg",130,210,5,"							photo_5924687.html");thumbnails[5924689]=new thumbnail(5924689,"332877","POSTER4","POSTER4_thumb.jpg",130,209,5,"							photo_5924689.html");thumbnails[5895637]=new thumbnail(5895637,"332877","3","1_thumb.jpg",130,209,5,"							photo_5895637.html");thumbnails[5895638]=new thumbnail(5895638,"332877","4","2_thumb.jpg",130,210,5,"							photo_5895638.html");thumbnails[2779050]=new thumbnail(2779050,"168622","CASTLE","CASTLE_thumb.jpg",130,87,5,"							photo_2779050.html");thumbnails[2779051]=new thumbnail(2779051,"168622","BIKE","BIKE_thumb.jpg",130,87,5,"							photo_2779051.html");thumbnails[2779054]=new thumbnail(2779054,"168622","HYLANDS","HYLANDSJPG_thumb.jpg",130,87,5,"							photo_2779054.html");thumbnails[2779055]=new thumbnail(2779055,"168622","CURVED GLASS","Coloured Curves2JPG_thumb.jpg",130,87,5,"							photo_2779055.html");thumbnails[2779057]=new thumbnail(2779057,"168622","POPART2","pop2_thumb.jpg",130,86,5,"							photo_2779057.html");thumbnails[2779060]=new thumbnail(2779060,"168622","SOCROUNDAL","SOCROUNDALJPG_thumb.jpg",130,87,5,"							photo_2779060.html");thumbnails[2779062]=new thumbnail(2779062,"168622","GRIFFIN","Griffin2JPG_thumb.jpg",130,87,5,"							photo_2779062.html");thumbnails[2779064]=new thumbnail(2779064,"168622","HASTINGS HARBOUR","HASTINGS HARBOUR_thumb.jpg",130,87,5,"							photo_2779064.html");thumbnails[2779087]=new thumbnail(2779087,"168622","HOPPER","HOPPER1JPG_thumb.jpg",130,60,5,"							photo_2779087.html");thumbnails[2780053]=new thumbnail(2780053,"168622","MANY FACES","MANYFACESJPG1_thumb.jpg",130,130,5,"							photo_2780053.html");thumbnails[2780056]=new thumbnail(2780056,"168622","ROUND WINDOW","ROUNDWINDOWJPG1_thumb.jpg",130,130,5,"							photo_2780056.html");thumbnails[2780060]=new thumbnail(2780060,"168622","SOCROUNDAL2","SOCROUNDALposterJPG_thumb.jpg",130,87,5,"							photo_2780060.html");thumbnails[6668339]=new thumbnail(6668339,"168622","All alone","All_alone_thumb.jpg",130,98,5,"							photo_6668339.html");thumbnails[6668447]=new thumbnail(6668447,"168622","BALL OF FIRE","BALL-OF-FIRE_thumb.jpg",130,86,5,"							photo_6668447.html");thumbnails[6668449]=new thumbnail(6668449,"168622","CHELMSFORD VIADUCT<br>\r\n","CHELMSFORD_VIADUCT_thumb.JPG",130,87,5,"							photo_6668449.html");thumbnails[6668452]=new thumbnail(6668452,"168622","RING OF BRIGHT WATER","Ring_of_bright_water_thumb.jpg",130,87,5,"							photo_6668452.html");thumbnails[6668461]=new thumbnail(6668461,"168622","STEAM CARRIAGE","STEAM_CARRIAGE_thumb.JPG",130,87,5,"							photo_6668461.html");thumbnails[6668463]=new thumbnail(6668463,"168622","SUNSET WROXHAM BROAD","SUNSET_WROXHAM_BROAD_thumb.JPG",130,87,5,"							photo_6668463.html");thumbnails[6668465]=new thumbnail(6668465,"168622","WOODLAND CIRCLE","WOODLAND_CIRCLE_2_thumb.JPG",130,87,5,"							photo_6668465.html");thumbnails[2779014]=new thumbnail(2779014,"174145","3D DANCE","3D Dance_thumb.jpg",130,87,5,"							photo_2779014.html");thumbnails[2779015]=new thumbnail(2779015,"174145","3D DANCE2","3D Dance2_thumb.jpg",130,87,5,"							photo_2779015.html");thumbnails[2779017]=new thumbnail(2779017,"174145","FOOTWORKS","Footworks_thumb.jpg",130,87,5,"							photo_2779017.html");thumbnails[2779018]=new thumbnail(2779018,"174145","FOOTWORKS1","Footworks1_thumb.jpg",130,87,5,"							photo_2779018.html");thumbnails[2779020]=new thumbnail(2779020,"174145","FOOTWORKS2<br>\r\n","Footworks2_thumb.jpg",130,87,5,"							photo_2779020.html");thumbnails[2779043]=new thumbnail(2779043,"174145","FOOTWORKS3","Footworks3_thumb.jpg",130,87,5,"							photo_2779043.html");thumbnails[2779044]=new thumbnail(2779044,"174145","MIX","MIX_thumb.jpg",130,87,5,"							photo_2779044.html");thumbnails[2809790]=new thumbnail(2809790,"174145","FOOTWORKS1 POSTER","Footworks5posteredgeJPG_thumb.jpg",130,87,5,"							photo_2809790.html");thumbnails[6668343]=new thumbnail(6668343,"174145","BACK TO NEGATIVE","BACK_TO_NEGATIVE_thumb.jpg",130,92,5,"							photo_6668343.html");thumbnails[6668348]=new thumbnail(6668348,"174145","","NOV_2009_1_thumb.jpg",130,184,5,"							photo_6668348.html");thumbnails[6668349]=new thumbnail(6668349,"174145","","NOV_2009_2_thumb.jpg",130,184,5,"							photo_6668349.html");thumbnails[6668355]=new thumbnail(6668355,"174145","","NOV_2009_3_thumb.jpg",130,92,5,"							photo_6668355.html");thumbnails[6668356]=new thumbnail(6668356,"174145","","NOV_2009_4_thumb.jpg",130,92,5,"							photo_6668356.html");thumbnails[6668357]=new thumbnail(6668357,"174145","","NOV_2009_7_thumb.jpg",130,92,5,"							photo_6668357.html");thumbnails[6668358]=new thumbnail(6668358,"174145","","NOV_2009_8_thumb.jpg",130,92,5,"							photo_6668358.html");thumbnails[6668360]=new thumbnail(6668360,"174145","","NOV_2009_9_thumb.jpg",130,92,5,"							photo_6668360.html");thumbnails[4139909]=new thumbnail(4139909,"174145","","FOOTWORKSp_thumb.jpg",130,184,5,"							photo_4139909.html");thumbnails[2778975]=new thumbnail(2778975,"174132","BEE EYES","BEE_EYES_thumb.jpg",130,98,5,"							photo_2778975.html");thumbnails[2778977]=new thumbnail(2778977,"174132","WATCHING","WATCHING_thumb.jpg",130,98,5,"							photo_2778977.html");thumbnails[2778987]=new thumbnail(2778987,"174132","CHIP CITY","CHIPCITY_thumb.jpg",130,87,5,"							photo_2778987.html");thumbnails[2778992]=new thumbnail(2778992,"174132","NEUS BLANCO","NEUS_BLANCO_thumb.jpg",130,87,5,"							photo_2778992.html");thumbnails[2778995]=new thumbnail(2778995,"174132","PEGS","PEGS_thumb.jpg",130,87,5,"							photo_2778995.html");thumbnails[2778997]=new thumbnail(2778997,"174132","MILLIE","MILLIE_thumb.jpg",130,87,5,"							photo_2778997.html");thumbnails[2779000]=new thumbnail(2779000,"174132","MIST","MIST_thumb.jpg",130,87,5,"							photo_2779000.html");thumbnails[2779009]=new thumbnail(2779009,"174132","QUINN","QUINN_thumb.jpg",130,87,5,"							photo_2779009.html");thumbnails[2779012]=new thumbnail(2779012,"174132","SUNSETS","HYLANDS_SUNSETJPG_thumb.jpg",130,87,5,"							photo_2779012.html");thumbnails[2779997]=new thumbnail(2779997,"174132","DESCENT","DESCENT1_thumb.jpg",130,195,5,"							photo_2779997.html");thumbnails[2779998]=new thumbnail(2779998,"174132","FIRE","FIRE1_thumb.jpg",130,195,5,"							photo_2779998.html");thumbnails[2780001]=new thumbnail(2780001,"174132","LITTLE TERRI","LITTLE TERRI_thumb.jpg",130,87,5,"							photo_2780001.html");thumbnails[4619901]=new thumbnail(4619901,"174132","ALLTOGETHER","ALLTOGETHER_thumb.jpg",130,92,5,"							photo_4619901.html");thumbnails[4619903]=new thumbnail(4619903,"174132","SMALLTOBIG","SCOUTCAMP__thumb.jpg",130,184,5,"							photo_4619903.html");thumbnails[6668347]=new thumbnail(6668347,"174132","BUGATTI VEYRON","BUGATTI_VEYRON_thumb.jpg",130,92,5,"							photo_6668347.html");thumbnails[6668467]=new thumbnail(6668467,"174132","TWIN UNICYCLIST","TWIN_UNICYCLIST_thumb.jpg",130,92,5,"							photo_6668467.html");thumbnails[7051479]=new thumbnail(7051479,"174132","Pouncing Jaguar","POUNCING_JAGUAR_thumb.jpg",130,86,5,"							photo_7051479.html");thumbnails[2778967]=new thumbnail(2778967,"174147","SPIRIT OF CHRIST","The Spirit of ChristJPG_thumb.jpg",130,87,5,"							photo_2778967.html");thumbnails[2779102]=new thumbnail(2779102,"174147","CHRIST HAS RISEN","Christ has risenJPG_thumb.jpg",130,87,5,"							photo_2779102.html");thumbnails[2779193]=new thumbnail(2779193,"174147","STIGMATA","STIGMATA_thumb.jpg",130,87,5,"							photo_2779193.html");thumbnails[2779940]=new thumbnail(2779940,"174166","GRIFFIN","GriffinJPG_thumb.jpg",130,87,5,"							photo_2779940.html");thumbnails[2779946]=new thumbnail(2779946,"174166","COLOURED GLASS","collage6JPG_thumb.jpg",130,87,5,"							photo_2779946.html");thumbnails[2779947]=new thumbnail(2779947,"174166","COLOURED CURVES","Coloured CurvesJPG1_thumb.jpg",130,87,5,"							photo_2779947.html");thumbnails[2779952]=new thumbnail(2779952,"174166","DALI REVOLTS","Dali revoltsJPG1_thumb.jpg",130,86,5,"							photo_2779952.html");thumbnails[2779984]=new thumbnail(2779984,"174166","leaf and lake","Leaf and LakeJPG1_thumb.jpg",130,195,5,"							photo_2779984.html");thumbnails[2779985]=new thumbnail(2779985,"174166","dali on the march","Dali on the march2 JPG2_thumb.jpg",130,173,5,"							photo_2779985.html");thumbnails[2779987]=new thumbnail(2779987,"174166","dali on the march2<br>\r\n","Dali on the marchJPG2_thumb.jpg",130,173,5,"							photo_2779987.html");thumbnails[2779988]=new thumbnail(2779988,"174166","ST JOHN'S TOWER","St John's TowerJPG1_thumb.jpg",130,195,5,"							photo_2779988.html");thumbnails[4619819]=new thumbnail(4619819,"174147","SAVIOUR","SAVIOUR_thumb.jpg",130,87,5,"							photo_4619819.html");thumbnails[4619864]=new thumbnail(4619864,"174147","","STAINED_GLASS1_thumb.jpg",130,92,5,"							photo_4619864.html");thumbnails[4619865]=new thumbnail(4619865,"174147","","STAINED_GLASS_thumb.jpg",130,92,5,"							photo_4619865.html");thumbnails[6759621]=new thumbnail(6759621,"367418","","Collages2_thumb.jpg",130,92,5,"							photo_6759621.html");thumbnails[6759625]=new thumbnail(6759625,"367418","","DANCE_21_thumb.jpg",130,92,5,"							photo_6759625.html");thumbnails[6759628]=new thumbnail(6759628,"367418","","DANCE_211_thumb.jpg",130,92,5,"							photo_6759628.html");thumbnails[6759629]=new thumbnail(6759629,"367418","","DANCE_212_thumb.jpg",130,92,5,"							photo_6759629.html");thumbnails[6759632]=new thumbnail(6759632,"367418","","DANCE_213_thumb.jpg",130,92,5,"							photo_6759632.html");thumbnails[6759634]=new thumbnail(6759634,"367418","","DANCE_214_thumb.jpg",130,92,5,"							photo_6759634.html");thumbnails[6759636]=new thumbnail(6759636,"367418","","FOOTWORK1_thumb.jpg",130,92,5,"							photo_6759636.html");thumbnails[6759637]=new thumbnail(6759637,"367418","","FOOTWORK2_thumb.jpg",130,92,5,"							photo_6759637.html");thumbnails[6759639]=new thumbnail(6759639,"367418","","FOOTWORK3_thumb.jpg",130,92,5,"							photo_6759639.html");thumbnails[6759641]=new thumbnail(6759641,"367418","","FOOTWORK4_thumb.jpg",130,89,5,"							photo_6759641.html");thumbnails[6759644]=new thumbnail(6759644,"367418","","FOOTWORK5_thumb.jpg",130,92,5,"							photo_6759644.html");thumbnails[6759645]=new thumbnail(6759645,"367418","","FOOTWORK6_thumb.jpg",130,92,5,"							photo_6759645.html");thumbnails[6759647]=new thumbnail(6759647,"367418","","GATEWAY1_thumb.jpg",130,92,5,"							photo_6759647.html");thumbnails[6759652]=new thumbnail(6759652,"367418","","GATEWAY3_thumb.jpg",130,92,5,"							photo_6759652.html");thumbnails[6759653]=new thumbnail(6759653,"367418","","GATEWAY_thumb.jpg",130,92,5,"							photo_6759653.html");thumbnails[6759655]=new thumbnail(6759655,"367418","","GROUP_SHOTS1_thumb.jpg",130,92,5,"							photo_6759655.html");thumbnails[6759656]=new thumbnail(6759656,"367418","","GROUP_SHOTS2_thumb.jpg",130,92,5,"							photo_6759656.html");thumbnails[6759658]=new thumbnail(6759658,"367418","","GROUP_SHOTS_thumb.jpg",130,92,5,"							photo_6759658.html");thumbnails[6759662]=new thumbnail(6759662,"367418","","FOOTWORKb_thumb.jpg",130,92,5,"							photo_6759662.html");var galleries=new Object();galleries[332877]=new gallery(332877,"5924689,5924687,5924683,5924679,5896184,5896170,5896165,5896163,5896160,5896156","BOLLYWOOD GIRLS","gallery",[5895640,5895641,5895643,5896101,5896149,5896154,5896156,5896160,5896163,5896165,5896170,5896184,5924679,5924683,5924687,5924689,5895637,5895638],0,0,"","																																																																																																							gallery_332877.html",0,0);galleries[347823]=new gallery(347823,"5897088,5897087,5896511,5896429,4139936,4139920,4139916,2779995,2779993,2779991","SITARA AND THE EASTERN ROSES","gallery",[2778964,2779991,2779993,2779995,4139916,4139920,4139936,5896429,5896511,5897087,5897088],0,0,"","																																																																																																							gallery_347823.html",0,0);galleries[168622]=new gallery(168622,"6668465,6668463,6668461,6668452,6668449,6668447,6668339,2780060,2780056,2780053","ROUNDALS","gallery",[2779050,2779051,2779054,2779055,2779057,2779060,2779062,2779064,2779087,2780053,2780056,2780060,6668339,6668447,6668449,6668452,6668461,6668463,6668465],0,0,"","																																																																																																							gallery_168622.html",0,0);galleries[174145]=new gallery(174145,"6668360,6668358,6668357,6668356,6668355,6668349,6668348,6668343,4139909,2809790","FOOTWORK DANCE SCHOOL","gallery",[2779014,2779015,2779017,2779018,2779020,2779043,2779044,2809790,6668343,6668348,6668349,6668355,6668356,6668357,6668358,6668360,4139909],0,0,"","																																																																																																							gallery_174145.html",0,0);galleries[174132]=new gallery(174132,"7051479,6668467,6668347,4619903,4619901,2780001,2779998,2779997,2779012,2779009","ALLSORTS","gallery",[2778975,2778977,2778987,2778992,2778995,2778997,2779000,2779009,2779012,2779997,2779998,2780001,4619901,4619903,6668347,6668467,7051479],0,0,"","																																																																																																							gallery_174132.html",0,0);galleries[174166]=new gallery(174166,"2779988,2779987,2779985,2779984,2779952,2779947,2779946,2779940","FUNKY","gallery",[2779940,2779946,2779947,2779952,2779984,2779985,2779987,2779988],0,0,"","																																																																																																							gallery_174166.html",0,0);galleries[174147]=new gallery(174147,"4619865,4619864,4619819,2779193,2779102,2778967","STAINED GLASS","gallery",[2778967,2779102,2779193,4619819,4619864,4619865],0,0,"","																																																																																																							gallery_174147.html",0,0);galleries[367418]=new gallery(367418,"6759662,6759658,6759656,6759655,6759653,6759652,6759647,6759645,6759644,6759641","DANCE FUSION","gallery",[6759621,6759625,6759628,6759629,6759632,6759634,6759636,6759637,6759639,6759641,6759644,6759645,6759647,6759652,6759653,6759655,6759656,6759658,6759662],0,0,"","																																																																																																							gallery_367418.html",0,0);var imageSets=new Object();imageSets[1]="4139936,4139920,4139916,4139909,2779102,2779050,2778975,2778967";imageSets[3]="7051479,6759662,6759658,6759656,6759655,6759653,6759652,6759647,6759645,6759644,6759641,6759639,6759637,6759636,6759634,6759632,6759629,6759628,6759625,6759621,6668467,6668465,6668463,6668461,6668452,6668449,6668447,6668360,6668358,6668357,6668356,6668355,6668349,6668348,6668347,6668343,6668339,5924689,5924687,5924683,5924679,5897088,5897087,5896511,5896429,5896184,5896170,5896165,5896163,5896160";function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/SteveDocherty/images";break}switch(a){case 1:b="http://www1.clikpic.com/SteveDocherty/images";break}switch(a){case 2:b="http://admin.clikpic.com/SteveDocherty/images";break}switch(a){case 24:b="http://tpc15/clikpic/SteveDocherty/images";break}switch(a){case 4:b="http://www.clikchurch.com/SteveDocherty/images";break}switch(a){case 5:b="http://www2.clikpic.com/SteveDocherty/images";break}switch(a){case 22:b="http://tpc5/clikpic/SteveDocherty/images";break}switch(a){case 23:b="http://tpc10/clikpic/SteveDocherty/images";break}switch(a){case 25:b="http://tpc16/clikpic/SteveDocherty/images";break}switch(a){case 15:b="http://www3.clikpic.com/SteveDocherty/images";break}switch(a){case 18:b="http://www4.clikpic.com/SteveDocherty/images";break}switch(a){case 19:b="http://www5.clikpic.com/SteveDocherty/images";break}switch(a){case 31:b="http://www7.clikpic.com/SteveDocherty/images";break}switch(a){case 32:b="http://admin2.clikpic.com/SteveDocherty/images";break}switch(a){case 33:b="http://www8.clikpic.com/SteveDocherty/images";break}switch(a){case 34:b="http://www9.clikpic.com/SteveDocherty/images";break}switch(a){case 35:b="http://admin3.clikpic.com/SteveDocherty/images";break}switch(a){case 37:b="http://admin4.clikpic.com/SteveDocherty/images";break}switch(a){case 38:b="http://admin5.clikpic.com/SteveDocherty/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;a.parentNode.title=a.alt=photos[imageID].caption}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function getHomeImageLink(c){var a="",b=backgrounds&&backgrounds[c];if(b){if(b&&b.galleries_id!=""){a=b.fnGalleryLink()}else{a+="gallery.html"}}return a}function showHomeImageInline(e,c,a){var d={},b,f=1;if(c){f=c}b=randomListVal(imageSets[f]);if(a==null&&"gallery"!=""){a=getHomeImageLink(b)}updateImage({nextPhoto:backgrounds[b],img:e.find("img")[0],$photo:e,$title:$("#homeimageTitleContainer"),$detail:$("#homeimageDetailsContainer"),speed:0,href:a,css:d,onAfter:function(){this.closest(".contentsection").doManualAlign({inner:"img",crop:"a"})}})}function updateImage(c){var g={nextPhoto:"",field:"",img:"",$photo:"",$title:"",$detail:"",updateDocumentTitle:false,speed:0,href:false,css:false,updateHash:false,onAfter:null,onBefore:null},h=$.extend({},g,c),d="",b="",a=h.nextPhoto.id,f=h.nextPhoto.caption,e=h.nextPhoto.src;if(!basic){if(h.updateHash&&clik.getIDInUrl(location.href,"photo")!=h.nextPhoto.id){clik.changeHash("photos_id="+h.nextPhoto.id,true)}if(h.$photo.length>0){d=$("<img/>",{"class":"mainphoto photo",src:e,id:"mainPic",name:"mainPic",width:h.nextPhoto.width,height:h.nextPhoto.height,alt:f,css:h.css||{}});if(h.href){if(h.href.match(/<a/)){d=$(h.href).append(d)}else{d=$("<a/>",{href:h.href,title:f}).append(d)}}else{d=$("<a/>",{title:f}).append(d)}if(h.speed==0){h.$photo.html(d);if(h.onBefore){h.onBefore.apply(h.$photo)}if(h.onAfter){h.onAfter.apply(h.$photo)}}else{h.$photo.stop(true,true).fadeReplaceWith(d,h.speed,"",function(){if(h.onAfter){h.onAfter.apply(this)}clik.doColumnResize(false,$(this).add(h.$detail).add(h.$title))},h.onBefore)}}if(h.field){h.field.value=a}else{h.$photo.data("image_id",a)}if(h.$title.length>0){h.$title.fadeGalleryDetails(f,h.speed)}if(h.updateDocumentTitle){document.title="Docherty's Digital Designs: "+f}if(h.$detail.length>0){b=h.nextPhoto.fnGetImageDetails();h.$detail.fadeGalleryDetails(b,h.speed,function(){var j={};resizePhotoInfo(j);if(typeof(backgrounds)!="undefined"&&h.nextPhoto==backgrounds[h.nextPhoto.id]){toggleAddToCartConfirm(backgrounds)}else{if(typeof(photos)!="undefined"&&h.nextPhoto==photos[h.nextPhoto.id]){toggleAddToCartConfirm(photos)}}})}if(!h.speed){clik.doColumnResize(false,h.$photo.add(h.$detail).add(h.$title))}return d}else{window.location="photo_"+nextPhoto.id+".html"}}function toggleAddToCartConfirm(a){if(typeof(a)!=="object"){a=photos}if($("#paymentConfirm").length>0){$("#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,a,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();dspOrderDetails(form.site.value)}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}photo.prototype.fnGetImageDetails=function(){var a="";if(this.description!=""){a=a+'<p id="imageDescription">'+this.description+"</p>"}if(this.photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+this.photo_ref+"</p>"}if(this.takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+this.takendate+"</p>"}if(this.location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+this.location+"</p>"}if(this.photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+this.photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a};photo.prototype.fnGetPaymentInfo=function(){var b="";if(this.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+this.purchase_instruction+"</strong> 							"+(this.item_price).toFixed(2)+"</p>";var d=this.purchase_instruction;var c=(this.item_price).toFixed(2);var a=0}else{if(this.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(this.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[this.payment_groups_id].options[0];if(paymentOptions[a]){var d=paymentOptions[a].payment_option;var c=paymentOptions[a].price}}else{}}if(this.item_price!==""||this.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b};function showGalleryImage(c,b,a){if(b){if(location.hash.match("galleries_id="+c)&&(imageID=location.hash.match(".*photos_id=(.+)$"))){imageID=imageID[1]}else{imageID=randomListVal(galleries[c].featured_images)}if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;b.alt=galleries[c].title;if(a){$(b).parent().attr({href:thumbnails[imageID].fnGalleryLink(c),title:galleries[c].title})}}}}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="'+galleries[i].section_code+"_"+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}};
