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[3515457]=new thumbnail(3515457,"214986","Grouse","Grouse2009_thumb.jpg",130,112,1);thumbnails[3515458]=new thumbnail(3515458,"214986","Kingfisher","Kingfisher1_thumb.JPG",130,156,1);thumbnails[3515482]=new thumbnail(3515482,"214986","Lilac Breasted Roller","lilacbreastedroller1_thumb.jpg",130,156,1);thumbnails[3896913]=new thumbnail(3896913,"236690","Pheasant","IMG_4193_2_thumb.JPG",130,86,1);thumbnails[3896918]=new thumbnail(3896918,"236690","Mallard","IMG_4212_2_thumb.JPG",130,86,1);thumbnails[3896925]=new thumbnail(3896925,"236690","Partridge","IMG_4219_2_thumb.JPG",130,86,1);thumbnails[3896927]=new thumbnail(3896927,"236690","Grouse","IMG_4241_2_thumb.JPG",130,86,1);thumbnails[3896930]=new thumbnail(3896930,"236690","Snipe","IMG_4250_2_thumb.JPG",130,86,1);thumbnails[3896931]=new thumbnail(3896931,"236690","Woodcock","IMG_4254_2_thumb.JPG",130,86,1);thumbnails[3896933]=new thumbnail(3896933,"236690","Coasters","IMG_4273_2_thumb.JPG",130,86,1);thumbnails[5060993]=new thumbnail(5060993,"236690","Burgundy Round Mat  - Mallard","Rosalindscrope_188_roundmat_Mallard__thumb.jpg",130,130,1);thumbnails[5060995]=new thumbnail(5060995,"236690","Blue Round Mat - Snipe","webRosalindscrope_289_roundmat_Snipe_2_thumb.jpg",130,130,1);thumbnails[5066389]=new thumbnail(5066389,"236690","Crown Crested Crane - Green","Crane_thumb.jpg",130,104,1);thumbnails[5066395]=new thumbnail(5066395,"236690","Hoopoe - Green","Hoopoe_D45B761B-1D09-001F-99048A65D21E8368_thumb.jpg",130,107,1);thumbnails[5066399]=new thumbnail(5066399,"236690","Red Billed Hornbill - Green","Hornbill_thumb.jpg",130,103,1);thumbnails[5066403]=new thumbnail(5066403,"236690","Superb Sraling - Blue","Starling_thumb.jpg",130,103,1);thumbnails[5066434]=new thumbnail(5066434,"236690","Sunbird - Green","Sunbird_D45CCDAC-1D09-001F-99DF8BCE62EDF2A3_thumb.jpg",130,103,1);thumbnails[5066450]=new thumbnail(5066450,"236690","Sunbird - Green","Beeeater_thumb.jpg",130,108,1);thumbnails[5066453]=new thumbnail(5066453,"236690","Bee Eater - Green","Sunbird_D45E3829-1D09-001F-994877822E30E6EA_thumb.jpg",130,103,1);thumbnails[5066483]=new thumbnail(5066483,"236690","Crown Crested Crane- Blue Round","round_crane_blue_thumb.jpg",130,111,1);thumbnails[5066493]=new thumbnail(5066493,"275768","Cotton Tea Towel","TeaTowelweb_D45F33A0-1D09-001F-9926ABABF5AD7880_thumb.jpg",130,190,1);thumbnails[3572942]=new thumbnail(3572942,"108541","Capercaillie","R30_thumb.jpg",130,184,1);thumbnails[3572953]=new thumbnail(3572953,"108541","Grouse 09","R321_thumb.jpg",130,184,1);thumbnails[3572961]=new thumbnail(3572961,"108541","Mallard","R351_thumb.jpg",130,184,1);thumbnails[3572981]=new thumbnail(3572981,"108541","Woodcock","R39_thumb.jpg",130,184,1);thumbnails[1649998]=new thumbnail(1649998,"108541","Snipe","Snipe_thumb.jpg",130,132,1);thumbnails[1649993]=new thumbnail(1649993,"108541","Grouse","Grouse_thumb.jpg",130,138,1);thumbnails[1645040]=new thumbnail(1645040,"108541","Pheasant","Pheasant_thumb.jpg",130,86,1);thumbnails[1645039]=new thumbnail(1645039,"108541","Partridge","Partridge_thumb.jpg",130,195,1);thumbnails[1662363]=new thumbnail(1662363,"108541","Pack of 10 Mixed Game Birds","Selection-of-birds_thumb.jpg",130,100,1);thumbnails[1763849]=new thumbnail(1763849,"109742","Crossbill","Crossbill_thumb.JPG",130,155,1);thumbnails[1659987]=new thumbnail(1659987,"109742","Nightingale","Nightingale_thumb.jpg",130,105,1);thumbnails[1650004]=new thumbnail(1650004,"109742","Robin","Robin_thumb.jpg",130,145,1);thumbnails[1649981]=new thumbnail(1649981,"109742","Swift in Flight","Bird_in_Flight_thumb.jpg",130,167,1);thumbnails[1645038]=new thumbnail(1645038,"109742","Nuthatch","nothatch_thumb.jpg",130,193,1);thumbnails[1645032]=new thumbnail(1645032,"109742","Blue Tit","Bluetit_thumb.jpg",130,69,1);thumbnails[1664464]=new thumbnail(1664464,"109742","Pack of Ten Mixed Garden Birds","Selection-of-birds1_thumb.jpg",130,100,1);thumbnails[1645042]=new thumbnail(1645042,"109743","Red Billed Hornbill","redbilledhornbill_thumb.jpg",130,153,1);thumbnails[1645036]=new thumbnail(1645036,"109743","Lilac Breasted Roller","lilacbreastedroller_thumb.jpg",130,156,1);thumbnails[1659996]=new thumbnail(1659996,"109743","Sunbird","sunbird_thumb.jpg",130,136,1);thumbnails[1645033]=new thumbnail(1645033,"109743","Crested Crane","crowned_crane_thumb.jpg",130,86,1);thumbnails[1650010]=new thumbnail(1650010,"109743","Hoopoe","Hoopoe_thumb.jpg",130,128,1);thumbnails[1645031]=new thumbnail(1645031,"109743","Bee Eater","bee_eater_thumb.jpg",130,193,1);thumbnails[1660005]=new thumbnail(1660005,"109743","Superb Starling","superbstarling_thumb.jpg",130,128,1);thumbnails[1664466]=new thumbnail(1664466,"109743","Pack of Ten Mixed African Birds","Selection-of-birds2_thumb.jpg",130,100,1);thumbnails[1769340]=new thumbnail(1769340,"118950","Geese","Geese1_thumb.jpg",130,98,1);thumbnails[3896882]=new thumbnail(3896882,"118950","Chick and Egg","Chick_up_thumb.jpg",130,92,1);thumbnails[1645035]=new thumbnail(1645035,"118950","Lapwing","lapwing_thumb.jpg",130,128,1);thumbnails[1659920]=new thumbnail(1659920,"118950","Bird on Tree","Tree_thumb.jpg",130,169,1);thumbnails[1659984]=new thumbnail(1659984,"118950","Kingfisher","Kingfisher_thumb.jpg",130,156,1);thumbnails[1660002]=new thumbnail(1660002,"118950","Penguins","King_Penguins_thumb.jpg",130,169,1);thumbnails[1769344]=new thumbnail(1769344,"118950","","mixed_birds_thumb.jpg",130,100,1);thumbnails[3572946]=new thumbnail(3572946,"214831","Capercaillie","R301_thumb.jpg",130,184,1);thumbnails[3572949]=new thumbnail(3572949,"214831","Heron","R31_thumb.jpg",130,184,1);thumbnails[3572952]=new thumbnail(3572952,"214831","Grouse 09","R32_thumb.jpg",130,184,1);thumbnails[3572954]=new thumbnail(3572954,"214831","Jay","R33_thumb.jpg",130,184,1);thumbnails[3572955]=new thumbnail(3572955,"214831","Kestrel","R34_thumb.jpg",130,184,1);thumbnails[3572957]=new thumbnail(3572957,"214831","Mallard","R35_thumb.jpg",130,184,1);thumbnails[3572971]=new thumbnail(3572971,"214831","Swallow","R37_thumb.jpg",130,184,1);thumbnails[3572974]=new thumbnail(3572974,"214831","Turkey","R38_thumb.jpg",130,184,1);thumbnails[3572983]=new thumbnail(3572983,"214831","Woodcock","R391_thumb.jpg",130,184,1);thumbnails[3896891]=new thumbnail(3896891,"214831","Chick and Egg","Chick_up1_thumb.jpg",130,92,1);thumbnails[1659924]=new thumbnail(1659924,"118001","Geese","Geese_thumb.jpg",130,89,1);thumbnails[1756341]=new thumbnail(1756341,"118001","Robin","Robin1_thumb.JPG",130,145,1);thumbnails[1756346]=new thumbnail(1756346,"118001","Penguins","King_Penguins1_thumb.jpg",130,169,1);thumbnails[3572969]=new thumbnail(3572969,"118001","Partridge in a Pear Tree","R36_thumb.jpg",130,184,1);thumbnails[3572977]=new thumbnail(3572977,"118001","Turkey","R381_thumb.jpg",130,184,1);thumbnails[3598530]=new thumbnail(3598530,"218688","","Mugs2_thumb.jpg",130,58,1);thumbnails[3598536]=new thumbnail(3598536,"218688","Hoopoe","Hoopoe_Mug_thumb.jpg",130,191,1);thumbnails[3598543]=new thumbnail(3598543,"218688","Kingfisher","Kingfisher_Mug_thumb.jpg",130,168,1);thumbnails[3598544]=new thumbnail(3598544,"218688","Pheasant","Pheasant_Mug_thumb.jpg",130,132,1);thumbnails[3598556]=new thumbnail(3598556,"218688","Partridge","Mugs_010_thumb.JPG",130,173,1);thumbnails[3934315]=new thumbnail(3934315,"218688","Lapwing","Mugs_021_thumb.JPG",130,132,1);thumbnails[3934331]=new thumbnail(3934331,"218688","Capercaillie","Mugs_022_thumb.JPG",130,155,1);thumbnails[1649991]=new thumbnail(1649991,"109744","","House_thumb.jpg",130,70,1);var galleries=new Object();galleries[236690]=new gallery(236690,"5060995,3896918","Mats & Coasters","section288463",[3896913,3896918,3896925,3896927,3896930,3896931,3896933,5060993,5060995,5066389,5066395,5066399,5066403,5066434,5066450,5066453,5066483]);galleries[214986]=new gallery(214986,"3515482,3515458,3515457","SALE","section264209",[3515457,3515458,3515482]);galleries[275768]=new gallery(275768,"5066493","Tea Towel","section331399",[5066493]);galleries[108541]=new gallery(108541,"1645040","Game Birds","gallery",[3572942,3572953,3572961,3572981,1649998,1649993,1645040,1645039,1662363]);galleries[109742]=new gallery(109742,"1659987","Garden Birds","gallery",[1763849,1659987,1650004,1649981,1645038,1645032,1664464]);galleries[109743]=new gallery(109743,"1645042","African Birds","gallery",[1645042,1645036,1659996,1645033,1650010,1645031,1660005,1664466]);galleries[118950]=new gallery(118950,"1659984","Other Birds","gallery",[1769340,3896882,1645035,1659920,1659984,1660002,1769344]);galleries[214831]=new gallery(214831,"3896891,3572983,3572974,3572971,3572957,3572955,3572954,3572952,3572949,3572946","New Designs","gallery",[3572946,3572949,3572952,3572954,3572955,3572957,3572971,3572974,3572983,3896891]);galleries[118001]=new gallery(118001,"1756341","Christmas Cards","gallery",[1659924,1756341,1756346,3572969,3572977]);galleries[218688]=new gallery(218688,"3934331,3934315,3598556,3598544,3598543,3598536,3598530","Mugs","section268338",[3598530,3598536,3598543,3598544,3598556,3934315,3934331]);galleries[109744]=new gallery(109744,"1649991","Houses","gallery",[1649991]);var imageSets=new Object();imageSets[232741]="5066493";imageSets[1]="5066493,5066389,5060995,3934331,3934315,3896933,3896931,3896925,3896918,3896913,3598536,3598530,3572981,3572961,3572955,3572949,3572942,1660002,1650004,1645040,1645039,1645035,1645032";imageSets[2]="5060995,3896918,1756341,1659987,1659984,1649991,1645042,1645040";imageSets[3]="5066493,5066483,5066453,5066450,5066434,5066403,5066399,5066395,5066389,5060995,5060993,3934331,3934315,3896933,3896931,3896930,3896927,3896925,3896918,3896913,3896891,3896882,3598556,3598544,3598543,3598536,3598530,3572983,3572981,3572977,3572974,3572971,3572969,3572961,3572957,3572955,3572954,3572953,3572952,3572949,3572946,3572942,3515482,3515458,3515457,1769344,1769340,1763849,1756346,1756341";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/rozziescrope/images";break}switch(a){case 1:b="http://www1.clikpic.com/rozziescrope/images";break}switch(a){case 2:b="http://admin.clikpic.com/rozziescrope/images";break}switch(a){case 24:b="http://tpc15/clikpic/rozziescrope/images";break}switch(a){case 4:b="http://www.clikchurch.com/rozziescrope/images";break}switch(a){case 5:b="http://www2.clikpic.com/rozziescrope/images";break}switch(a){case 22:b="http://tpc5/clikpic/rozziescrope/images";break}switch(a){case 23:b="http://tpc10/clikpic/rozziescrope/images";break}switch(a){case 25:b="http://tpc16/clikpic/rozziescrope/images";break}switch(a){case 15:b="http://www3.clikpic.com/rozziescrope/images";break}switch(a){case 18:b="http://www4.clikpic.com/rozziescrope/images";break}switch(a){case 19:b="http://www5.clikpic.com/rozziescrope/images";break}switch(a){case 31:b="http://www7.clikpic.com/rozziescrope/images";break}switch(a){case 32:b="http://admin2.clikpic.com/rozziescrope/images";break}switch(a){case 33:b="http://www8.clikpic.com/rozziescrope/images";break}switch(a){case 34:b="http://www9.clikpic.com/rozziescrope/images";break}switch(a){case 35:b="http://admin3.clikpic.com/rozziescrope/images";break}switch(a){case 37:b="http://admin4.clikpic.com/rozziescrope/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="Rozzie Designs - Handmade Cards : "+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>"}a=a+fnGetPaymentInfo(photos[b]);if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Buy now using PayPal:</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="updateCartValue(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value); if(divShowing(\'paymentConfirm\')){fadeOut(\'paymentConfirm\', 3)};">';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">';b=b+'	<input type="hidden" name="item_option" value="'+a+'">';b=b+'	<input type="hidden" name="site" value="ROZZIESCROPE">';b=b+'	<input type="hidden" name="item_number" value="'+c.id+'">';b=b+'	<input type="hidden" name="quantity" value="1">';b=b+'	<input value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button">';b=b+'	<input value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';" type="Button" onclick="javascript:window.location=\'cart.html\'">';b=b+"</form>";b=b+'<div class="clearing">&nbsp;</div>';b=b+'<div id="confirmContainer">';b=b+'<div id="paymentConfirm">Item added to cart</div>';b=b+"</div>";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+'")'})}}};