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[4630862]=new thumbnail(4630862,"","","Copyright_Helen_Scrimgeour_2007_400X600_Copyright123_thumb.jpg",130,195,1);thumbnails[4641177]=new thumbnail(4641177,"","","3_claire-louise_photography_2006_41_thumb.jpg",130,195,1);thumbnails[4646237]=new thumbnail(4646237,"258814","Helen and Graham,<br>Wroxall Abbey Estate","prestigephotography_20081_thumb.JPG",130,195,1);thumbnails[5360844]=new thumbnail(5360844,"","","Jane_Collier_8c_thumb.JPG",130,195,1);thumbnails[4631881]=new thumbnail(4631881,"","","Kevin_Smith_2009_10_400X6001_thumb.jpg",130,195,1);thumbnails[4646259]=new thumbnail(4646259,"258814","Claire and Tim,<br>Coughton Court","3_claire-louise_photography_20061_thumb.JPG",130,195,1);thumbnails[4646281]=new thumbnail(4646281,"258814","Nick and Thea,<br>Ettington Park Hotel","Kevin_Smith_2008_1_400X6001_thumb.JPG",130,195,1);thumbnails[4646316]=new thumbnail(4646316,"258814","Jennie and Andy,<br>Kenilworth Castle","Eyecandy_photographic_20071_thumb.JPG",130,195,1);thumbnails[4823027]=new thumbnail(4823027,"258814","Alison and Paul,<br>Ardencote Manor Hotel and Country Club","7_Alison__Paul_thumb.JPG",130,195,1);thumbnails[4823030]=new thumbnail(4823030,"258814","Jen and Miguel,<br>Ettington Park Hotel","7_Robert_Lawler_2009_5_thumb.JPG",130,195,1);thumbnails[4823034]=new thumbnail(4823034,"258814","Holly and Wayne,<br>Henley-in-Arden","7_Tim_Hill_Holly__Wayne_thumb.JPG",130,195,1);thumbnails[4823036]=new thumbnail(4823036,"258814","Lisa and Matt,<br>Ardencote Manor Hotel and Country Club","7_Tim_Newton_Lisa__Matt_thumb.JPG",130,195,1);thumbnails[4633232]=new thumbnail(4633232,"62837","","themomentimages_2008_thumb.JPG",130,195,1);thumbnails[4633227]=new thumbnail(4633227,"62837","","prestigephotography_2008_thumb.JPG",130,195,1);thumbnails[4639635]=new thumbnail(4639635,"62837","","4_Natalie_Fisher_2009_thumb.JPG",130,195,1);thumbnails[4633214]=new thumbnail(4633214,"62837","","Gordon_Ackrill_2008_thumb.JPG",130,195,1);thumbnails[4633213]=new thumbnail(4633213,"62837","","Eyecandyphotographic_2007_5_thumb.JPG",130,195,1);thumbnails[4633210]=new thumbnail(4633210,"62837","","Eyecandy_photographic_2007_thumb.JPG",130,195,1);thumbnails[4639634]=new thumbnail(4639634,"62837","","4_Amy_Kershaw_2008_thumb.JPG",130,194,1);thumbnails[4633209]=new thumbnail(4633209,"62837","","Emily_Quinton_Photography_2009_2_thumb.JPG",130,195,1);thumbnails[4633207]=new thumbnail(4633207,"62837","","Emily_Quinton_Photography_2009_thumb.JPG",130,195,1);thumbnails[4633206]=new thumbnail(4633206,"62837","","David_Wadley_2008_thumb.JPG",130,195,1);thumbnails[4633192]=new thumbnail(4633192,"62837","","Contre_jour_2008_thumb.JPG",130,195,1);thumbnails[4633191]=new thumbnail(4633191,"62837","","Claire_Ainsworth_2007_1_thumb.JPG",130,195,1);thumbnails[4633189]=new thumbnail(4633189,"62837","","Claire_Ainsworth_2007_thumb.JPG",130,195,1);thumbnails[4633188]=new thumbnail(4633188,"62837","","Christopher_John_Photography_2008_thumb.JPG",130,195,1);thumbnails[4633185]=new thumbnail(4633185,"62837","","Kevin_Smith_2009_12_400X600_thumb.JPG",130,195,1);thumbnails[4633184]=new thumbnail(4633184,"62837","","Kevin_Smith_2009_11_400X600_thumb.JPG",130,195,1);thumbnails[4629638]=new thumbnail(4629638,"62837","","Kevin_Smith_2009_10_400X600_thumb.JPG",130,195,1);thumbnails[4637989]=new thumbnail(4637989,"62837","","3_mark_green_thumb.JPG",130,195,1);thumbnails[4637987]=new thumbnail(4637987,"62837","","3_love_happy_2006_1_thumb.JPG",130,195,1);thumbnails[4637979]=new thumbnail(4637979,"62837","","3_Julia_Mitchell_2006_1_thumb.JPG",130,195,1);thumbnails[4637978]=new thumbnail(4637978,"62837","","3_Julia_Mitchell_2006_thumb.JPG",130,195,1);thumbnails[4637975]=new thumbnail(4637975,"62837","","3_Julia_Mitchell_thumb.JPG",130,195,1);thumbnails[4637973]=new thumbnail(4637973,"62837","","3_claire-louise_photography_2006_4_thumb.JPG",130,195,1);thumbnails[4637968]=new thumbnail(4637968,"62837","","3_claire-louise_photography_2006_thumb.JPG",130,195,1);thumbnails[4633221]=new thumbnail(4633221,"62837","","Julia_Mitchell_20051_thumb.JPG",130,87,1);thumbnails[4633222]=new thumbnail(4633222,"62837","","Liz_Draper_2009_thumb.JPG",130,87,1);thumbnails[4633224]=new thumbnail(4633224,"62837","","pddp_2009_thumb.JPG",130,87,1);thumbnails[4633229]=new thumbnail(4633229,"62837","","themomentimages_2_thumb.JPG",130,87,1);thumbnails[4633187]=new thumbnail(4633187,"62837","","Cant_remember_2006_thumb.JPG",130,87,1);thumbnails[4633217]=new thumbnail(4633217,"62837","","John_Coles_2008_2_thumb.JPG",130,87,1);thumbnails[4637967]=new thumbnail(4637967,"62837","","3_Amelia_2008_thumb.JPG",130,87,1);thumbnails[4637990]=new thumbnail(4637990,"62837","","3_mark_green_1_thumb.JPG",130,87,1);thumbnails[4637988]=new thumbnail(4637988,"62837","","3_love_happy_2006_2_thumb.JPG",130,87,1);thumbnails[4637986]=new thumbnail(4637986,"62837","","3_Julia_Mitchell_2007_1_thumb.JPG",130,87,1);thumbnails[4637984]=new thumbnail(4637984,"62837","","3_Julia_Mitchell_2007_thumb.JPG",130,87,1);thumbnails[4637977]=new thumbnail(4637977,"62837","","3_Julia_Mitchell_2005_thumb.JPG",130,87,1);thumbnails[4633715]=new thumbnail(4633715,"62835","","Robert_Lawler_2009_5_thumb.JPG",130,195,1);thumbnails[4633713]=new thumbnail(4633713,"62835","","Robert_Lawler_2009_4_thumb.JPG",130,195,1);thumbnails[4633654]=new thumbnail(4633654,"62835","","Helen_Scrimgeour_2007_400X600_thumb.JPG",130,195,1);thumbnails[4633648]=new thumbnail(4633648,"62835","","Helen_Scrimgeour_2007_2_400X600_thumb.JPG",130,195,1);thumbnails[4633703]=new thumbnail(4633703,"62835","","Ian_Haring_2005_21_thumb.JPG",130,195,1);thumbnails[4633700]=new thumbnail(4633700,"62835","","Ian_Haring_2005123_thumb.JPG",130,195,1);thumbnails[4633696]=new thumbnail(4633696,"62835","","Kevin_Smith_2008_8_400X600_thumb.JPG",130,195,1);thumbnails[4633670]=new thumbnail(4633670,"62835","","Kevin_Smith_2008_2_400X600_thumb.JPG",130,195,1);thumbnails[4633667]=new thumbnail(4633667,"62835","","Kevin_Smith_2008_1_400X600_thumb.JPG",130,195,1);thumbnails[4633661]=new thumbnail(4633661,"62835","","Jane_Collier_2009_1_400X600_thumb.JPG",130,195,1);thumbnails[4633651]=new thumbnail(4633651,"62835","","Helen_Scrimgeour_2007_3_400X600_thumb.JPG",130,195,1);thumbnails[4633643]=new thumbnail(4633643,"62835","","David_Woodings_2007_400X600_thumb.JPG",130,195,1);thumbnails[4638649]=new thumbnail(4638649,"62835","","3_Julia_mItchell_20081_thumb.JPG",130,195,1);thumbnails[4638643]=new thumbnail(4638643,"62835","","3_Julia_mItchell_2006123_thumb.JPG",130,194,1);thumbnails[4638641]=new thumbnail(4638641,"62835","","3_Cali_Roberts_2007_thumb.JPG",130,195,1);thumbnails[4646970]=new thumbnail(4646970,"62835","","Robert_Lawler_2009_51_thumb.JPG",130,195,1);thumbnails[4633708]=new thumbnail(4633708,"62835","","Julia_Mitchell_20091_thumb.JPG",130,87,1);thumbnails[4633705]=new thumbnail(4633705,"62835","","Julia_Mitchell_200512_thumb.JPG",130,87,1);thumbnails[4633671]=new thumbnail(4633671,"62835","","Kevin_Smith_2008_3_400X600_thumb.JPG",130,87,1);thumbnails[4633664]=new thumbnail(4633664,"62835","","Jane_Collier_2009_2_400X600_thumb.JPG",130,86,1);thumbnails[4633641]=new thumbnail(4633641,"62835","","David_Woodings_2007_3_400X600_thumb.JPG",130,87,1);thumbnails[4633640]=new thumbnail(4633640,"62835","","David_Woodings_2007_2_400X600_thumb.JPG",130,87,1);thumbnails[4638644]=new thumbnail(4638644,"62835","","3_Julia_mItchell_2006_1123_thumb.JPG",130,87,1);thumbnails[4638647]=new thumbnail(4638647,"62835","","3_Julia_mItchell_2006_312_thumb.JPG",130,87,1);thumbnails[4633348]=new thumbnail(4633348,"62844","","Helen_Scrimgeour_2007_4_400X600_thumb.JPG",130,195,1);thumbnails[4633530]=new thumbnail(4633530,"62844","","themomentimages_200812_thumb.JPG",130,195,1);thumbnails[4633529]=new thumbnail(4633529,"62844","","Robert_Lawler_2009_31_thumb.JPG",130,195,1);thumbnails[4633357]=new thumbnail(4633357,"62844","","Kevin_Smith_2008_10_400X600_thumb.JPG",130,195,1);thumbnails[4633482]=new thumbnail(4633482,"62844","","Julia_Mitchell_2009_7_thumb.JPG",130,195,1);thumbnails[4633412]=new thumbnail(4633412,"62844","","Ian_Haring_200512_thumb.JPG",130,195,1);thumbnails[4638413]=new thumbnail(4638413,"62844","","3_Julia_MItchell_2006_3_thumb.JPG",130,195,1);thumbnails[4633408]=new thumbnail(4633408,"62844","","Eyecandyphotographic_2007_4_thumb.JPG",130,195,1);thumbnails[4633402]=new thumbnail(4633402,"62844","","Emily_Quinton_2009_thumb.JPG",130,195,1);thumbnails[4633400]=new thumbnail(4633400,"62844","","Contre_jour_20081_thumb.JPG",130,195,1);thumbnails[4633395]=new thumbnail(4633395,"62844","","cherry-annballantyne_2008_thumb.JPG",130,195,1);thumbnails[4633353]=new thumbnail(4633353,"62844","","Kevin_Smith_2008_07_400X600_thumb.JPG",130,195,1);thumbnails[4633458]=new thumbnail(4633458,"62844","","Julia_Mitchell_2008_21_thumb.JPG",130,87,1);thumbnails[4633440]=new thumbnail(4633440,"62844","","Julia_Mitchell_2008_1_thumb.JPG",130,87,1);thumbnails[4633518]=new thumbnail(4633518,"62844","","Julia_Mitchell_2009_9_thumb.JPG",130,87,1);thumbnails[4633485]=new thumbnail(4633485,"62844","","Julia_Mitchell_2009_8_thumb.JPG",130,87,1);thumbnails[4633476]=new thumbnail(4633476,"62844","","Julia_Mitchell_2009_41_thumb.JPG",130,87,1);thumbnails[4633467]=new thumbnail(4633467,"62844","","Julia_Mitchell_2009_3_thumb.JPG",130,87,1);thumbnails[4633465]=new thumbnail(4633465,"62844","","Julia_Mitchell_2008_5_thumb.JPG",130,87,1);thumbnails[4633462]=new thumbnail(4633462,"62844","","Julia_Mitchell_2008_4_thumb.JPG",130,87,1);thumbnails[4633437]=new thumbnail(4633437,"62844","","Ian_Haring_2005_2_thumb.JPG",130,87,1);thumbnails[4633410]=new thumbnail(4633410,"62844","","Ian_Donelly_2004_thumb.JPG",130,87,1);thumbnails[4633397]=new thumbnail(4633397,"62844","","claire_ainsworth_20071_thumb.JPG",130,87,1);thumbnails[4638450]=new thumbnail(4638450,"62844","","3_Julia_Mitchell_2009_1_thumb.JPG",130,87,1);thumbnails[4638448]=new thumbnail(4638448,"169667","","3_Julia_Mitchell_2009_thumb.JPG",130,195,1);thumbnails[4638447]=new thumbnail(4638447,"169667","","3_Julia_Mitchell_200712_thumb.JPG",130,195,1);thumbnails[4638442]=new thumbnail(4638442,"169667","","3_Julia_Mitchell_2006_112_thumb.JPG",130,195,1);thumbnails[4638433]=new thumbnail(4638433,"169667","","3_claire_ainsworth_2007_1_thumb.JPG",130,195,1);thumbnails[4633354]=new thumbnail(4633354,"169667","","Kevin_Smith_2008_08_400X600_thumb.JPG",130,195,1);thumbnails[4639644]=new thumbnail(4639644,"169667","","4_Julia_mitchell_2008_thumb.JPG",130,195,1);thumbnails[4647010]=new thumbnail(4647010,"169667","","Emily_Quinton_20091_thumb.JPG",130,195,1);thumbnails[4647016]=new thumbnail(4647016,"169667","","themomentimages_2008123_thumb.JPG",130,195,1);thumbnails[4638445]=new thumbnail(4638445,"169667","","3_Julia_Mitchell_2006_31_thumb.JPG",130,87,1);thumbnails[4638438]=new thumbnail(4638438,"169667","","3_Julia_Mitchell_200512_thumb.JPG",130,87,1);thumbnails[4638436]=new thumbnail(4638436,"169667","","3_claire_louise_photography_2006_11_thumb.JPG",130,87,1);thumbnails[4633526]=new thumbnail(4633526,"169667","","pddp_200912_thumb.JPG",130,87,1);thumbnails[4633346]=new thumbnail(4633346,"62845","","pddp_20091_thumb.JPG",130,195,1);thumbnails[4633344]=new thumbnail(4633344,"62845","","Julia_Mitchell_2009_2_thumb.JPG",130,195,1);thumbnails[4633343]=new thumbnail(4633343,"62845","","Julia_Mitchell_2009_1_thumb.JPG",130,195,1);thumbnails[4633277]=new thumbnail(4633277,"62845","","John_Coles_2008_thumb.JPG",130,195,1);thumbnails[4633270]=new thumbnail(4633270,"62845","","Ian_Haring_thumb.jpg",130,195,1);thumbnails[4633265]=new thumbnail(4633265,"62845","","David_Woodings__2007_05_400X600_thumb.JPG",130,195,1);thumbnails[4633263]=new thumbnail(4633263,"62845","","David_Woodings__2007_04_400X600_thumb.JPG",130,195,1);thumbnails[4638428]=new thumbnail(4638428,"62845","","3_love_happy_2006_thumb.JPG",130,195,1);thumbnails[4638427]=new thumbnail(4638427,"62845","","3_Julia_Mitchell_2009_4_thumb.JPG",130,195,1);thumbnails[4638426]=new thumbnail(4638426,"62845","","3_Julia_Mitchell_2009_3_thumb.JPG",130,195,1);thumbnails[4633347]=new thumbnail(4633347,"62845","","Jane_Collier_2_thumb.JPG",130,196,1);thumbnails[5361014]=new thumbnail(5361014,"62845","","Robert_Lawler_thumb.JPG",130,195,1);thumbnails[4633261]=new thumbnail(4633261,"62936","","themomentimages_20081_thumb.JPG",130,195,1);thumbnails[4633259]=new thumbnail(4633259,"62936","","Robert_Lawler_2009_thumb.JPG",130,195,1);thumbnails[4633257]=new thumbnail(4633257,"62936","","Julia_Mitchell_2009_thumb.JPG",130,195,1);thumbnails[4633255]=new thumbnail(4633255,"62936","","Julia_Mitchell_2004_thumb.JPG",130,195,1);thumbnails[4633252]=new thumbnail(4633252,"62936","","Ian_Haring_20051_thumb.JPG",130,195,1);thumbnails[4633244]=new thumbnail(4633244,"62936","","cherry-annballantyne_2008_2_thumb.JPG",130,195,1);thumbnails[4633241]=new thumbnail(4633241,"62936","","Kevin_Smith_2008_9_400X600_thumb.JPG",130,195,1);thumbnails[4633238]=new thumbnail(4633238,"62936","","Kevin_Smith_2008_6_400X600_thumb.JPG",130,195,1);thumbnails[4638416]=new thumbnail(4638416,"62936","","3_Julia_MItchell_2008_thumb.JPG",130,195,1);thumbnails[4638412]=new thumbnail(4638412,"62936","","3_Julia_MItchell_2006_2_thumb.JPG",130,195,1);thumbnails[4638411]=new thumbnail(4638411,"62936","","3_Julia_MItchell_2006_11_thumb.JPG",130,195,1);thumbnails[4638291]=new thumbnail(4638291,"62936","","3_Julia_MItchell_20061_thumb.JPG",130,195,1);var galleries=new Object();galleries[258814]=new gallery(258814,"4646259,4646237","Recent Weddings","section312448",[4646237,4646259,4646281,4646316,4823027,4823030,4823034,4823036]);galleries[62837]=new gallery(62837,"4639635,4637989,4637975,4637973,4633232,4633227,4633209,4633206,4629638","Bouquets and Buttonholes","gallery",[4633232,4633227,4639635,4633214,4633213,4633210,4639634,4633209,4633207,4633206,4633192,4633191,4633189,4633188,4633185,4633184,4629638,4637989,4637987,4637979,4637978,4637975,4637973,4637968,4633221,4633222,4633224,4633229,4633187,4633217,4637967,4637990,4637988,4637986,4637984,4637977]);galleries[62835]=new gallery(62835,"4633713,4633670,4633661,4633654","White Bouquets and Buttonholes ","gallery",[4633715,4633713,4633654,4633648,4633703,4633700,4633696,4633670,4633667,4633661,4633651,4633643,4638649,4638643,4638641,4646970,4633708,4633705,4633671,4633664,4633641,4633640,4638644,4638647]);galleries[62844]=new gallery(62844,"4633530,4633412,4633357,4633348","Wedding Reception Flowers","gallery",[4633348,4633530,4633529,4633357,4633482,4633412,4638413,4633408,4633402,4633400,4633395,4633353,4633458,4633440,4633518,4633485,4633476,4633467,4633465,4633462,4633437,4633410,4633397,4638450]);galleries[169667]=new gallery(169667,"4639644,4633354","More Wedding Reception Flowers","gallery",[4638448,4638447,4638442,4638433,4633354,4639644,4647010,4647016,4638445,4638438,4638436,4633526]);galleries[62845]=new gallery(62845,"4633344,4633343","Church Flowers","gallery",[4633346,4633344,4633343,4633277,4633270,4633265,4633263,4638428,4638427,4638426,4633347,5361014]);galleries[62936]=new gallery(62936,"4638412,4633259,4633252,4633244,4633238","Cake Decoration Flowers","gallery",[4633261,4633259,4633257,4633255,4633252,4633244,4633241,4633238,4638416,4638412,4638411,4638291]);var imageSets=new Object();imageSets[1]="5360844,4641177,4631881,4630862";imageSets[2]="4646259,4646237,4639644,4639635,4638412,4637989,4637975,4637973,4633713,4633670,4633661,4633654,4633530,4633412,4633357,4633354,4633348,4633344,4633343,4633259,4633252,4633244,4633238,4633232,4633227,4633209,4633206,4629638";imageSets[3]="4633715,4633713,4633708,4633705,4633703,4633700,4633696,4633671,4633670,4633667,4633664,4633661,4633654,4633651,4633648,4633643,4633641,4633640,4633530,4633529,4633526,4633518,4633485,4633482,4633476,4633467,4633465,4633462,4633458,4633440,4633437,4633412,4633410,4633408,4633402,4633400,4633397,4633395";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/juliamitchell/images";break}switch(a){case 1:b="http://www1.clikpic.com/juliamitchell/images";break}switch(a){case 2:b="http://admin.clikpic.com/juliamitchell/images";break}switch(a){case 24:b="http://tpc15/clikpic/juliamitchell/images";break}switch(a){case 4:b="http://www.clikchurch.com/juliamitchell/images";break}switch(a){case 5:b="http://www2.clikpic.com/juliamitchell/images";break}switch(a){case 22:b="http://tpc5/clikpic/juliamitchell/images";break}switch(a){case 23:b="http://tpc10/clikpic/juliamitchell/images";break}switch(a){case 25:b="http://tpc16/clikpic/juliamitchell/images";break}switch(a){case 15:b="http://www3.clikpic.com/juliamitchell/images";break}switch(a){case 18:b="http://www4.clikpic.com/juliamitchell/images";break}switch(a){case 19:b="http://www5.clikpic.com/juliamitchell/images";break}switch(a){case 31:b="http://www7.clikpic.com/juliamitchell/images";break}switch(a){case 32:b="http://admin2.clikpic.com/juliamitchell/images";break}switch(a){case 33:b="http://www8.clikpic.com/juliamitchell/images";break}switch(a){case 34:b="http://www9.clikpic.com/juliamitchell/images";break}switch(a){case 35:b="http://admin3.clikpic.com/juliamitchell/images";break}switch(a){case 37:b="http://admin4.clikpic.com/juliamitchell/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="Julia Mitchell Distinctive Floral Design";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;resizePhotoInfo();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>Floral Design: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photography © </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> 							"+(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+'<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+'")'})}}};