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[6059772]=new thumbnail(6059772,"","","Spot_run_still_thumb.gif",38,34,32);thumbnails[6255761]=new thumbnail(6255761,"","","sizzle3_thumb.jpg",130,87,32);thumbnails[6411240]=new thumbnail(6411240,"","","Jenny_big_fat_belly_thumb.jpg",130,87,32);thumbnails[6411325]=new thumbnail(6411325,"","","jenny_and_pups_thumb.jpg",130,87,32);thumbnails[5672983]=new thumbnail(5672983,"","","Jenny_at_Crufts_2010_thumb.jpg",130,87,32);thumbnails[4340238]=new thumbnail(4340238,"","Grooming Service","groominglores_thumb.jpg",130,87,32);thumbnails[4804089]=new thumbnail(4804089,"175162","SCGB Fun Day","George_1_thumb.jpg",130,87,32);thumbnails[4804096]=new thumbnail(4804096,"175162","SCGB Fun Day","George_at_Crondal_thumb.jpg",130,87,32);thumbnails[6675608]=new thumbnail(6675608,"175162","","Jenny_and_George_024_thumb.jpg",130,87,32);thumbnails[2820407]=new thumbnail(2820407,"175162","","P5180005lores1_thumb.jpg",130,87,32);thumbnails[3249585]=new thumbnail(3249585,"175162","","P9230072lores1_thumb.jpg",130,87,32);thumbnails[2820403]=new thumbnail(2820403,"175162","","Jordan & Georgelores_thumb.jpg",130,87,32);thumbnails[2820396]=new thumbnail(2820396,"175162","","DSC_1796lores_thumb.jpg",130,87,32);thumbnails[3266923]=new thumbnail(3266923,"175162","","P6200050_thumb.jpg",130,87,32);thumbnails[3702505]=new thumbnail(3702505,"175162","","DSCF0261lores_thumb.jpg",130,87,32);thumbnails[5272660]=new thumbnail(5272660,"175690","Jordan & Jenny","DSCF1136_edited-1lores_thumb.jpg",130,87,32);thumbnails[6675600]=new thumbnail(6675600,"175690","","Jenny_and_George_030_thumb.jpg",130,87,32);thumbnails[2820933]=new thumbnail(2820933,"175690","","P1130024lores_thumb.jpg",130,87,32);thumbnails[2819798]=new thumbnail(2819798,"175690","","Jennylores_thumb.jpg",130,87,32);thumbnails[2819863]=new thumbnail(2819863,"175690","","P5070085lores1_thumb.jpg",130,87,32);thumbnails[2819859]=new thumbnail(2819859,"175690","","P5070077lores_thumb.jpg",130,87,32);thumbnails[2819784]=new thumbnail(2819784,"175690","","DSC_1772lores_thumb.jpg",130,87,32);thumbnails[3249612]=new thumbnail(3249612,"175690","","P9230066lores_thumb.jpg",130,87,32);thumbnails[2819791]=new thumbnail(2819791,"175690","","DSC_1837lores_thumb.jpg",130,87,32);thumbnails[3267089]=new thumbnail(3267089,"175690","","P5070087lores_thumb.jpg",130,87,32);thumbnails[3267016]=new thumbnail(3267016,"175690","","PC260019lores_thumb.jpg",130,87,32);thumbnails[4619085]=new thumbnail(4619085,"175690","","DSCF0922lores_thumb.jpg",130,87,32);thumbnails[4619083]=new thumbnail(4619083,"175690","Jenny & Mary","DSCF0917lores_thumb.jpg",130,87,32);thumbnails[4619081]=new thumbnail(4619081,"175690","","DSCF0912lores_thumb.jpg",130,87,32);thumbnails[5272720]=new thumbnail(5272720,"189668","George and Jenny","DSCF0053loresjennyandgeorge_thumb.jpg",130,87,32);thumbnails[3702513]=new thumbnail(3702513,"189668","At the local park","DSCF0360lores_thumb.jpg",130,87,32);thumbnails[3090717]=new thumbnail(3090717,"189668","A day out in Brighton","PB160106lores_thumb.jpg",130,87,32);thumbnails[3702509]=new thumbnail(3702509,"189668","At the local park","DSCF0283lores_thumb.jpg",130,87,32);thumbnails[3702508]=new thumbnail(3702508,"189668","At the local park","DSCF0278lores_thumb.jpg",130,87,32);thumbnails[3090704]=new thumbnail(3090704,"189668","A day out in Brighton","PB160099lores_thumb.jpg",130,87,32);thumbnails[3702506]=new thumbnail(3702506,"189668","In the garden","DSCF0262lores_thumb.jpg",130,87,32);thumbnails[3090714]=new thumbnail(3090714,"189668","A day out in Brighton","PB160104lores_thumb.jpg",130,87,32);thumbnails[3090719]=new thumbnail(3090719,"189668","A day out in Brighton","PB160107lores_thumb.jpg",130,87,32);thumbnails[3720738]=new thumbnail(3720738,"189668","At the local park","DSCF0372lores_thumb.jpg",130,87,32);thumbnails[2821291]=new thumbnail(2821291,"189668","","DSC_1802lores1_thumb.jpg",130,87,32);thumbnails[5272653]=new thumbnail(5272653,"176571","SCGB Open Show","DSCF1099_thumb.jpg",130,87,32);thumbnails[5272662]=new thumbnail(5272662,"176571","LKA Champ Show 2009","DSCF1153_thumb.jpg",130,87,32);thumbnails[4619079]=new thumbnail(4619079,"176571","Horley & District Open Show 2009","DSCF0878lores_thumb.jpg",130,87,32);thumbnails[4562700]=new thumbnail(4562700,"176571","Bournemouth Champ Show 2009","bournemouthlores3_thumb.jpg",130,87,32);thumbnails[4562696]=new thumbnail(4562696,"176571","Bournemouth Champ Show 2009","bournemouthlores2_thumb.jpg",130,87,32);thumbnails[4562687]=new thumbnail(4562687,"176571","Bournemouth Champ Show  2009.","Bournemouthlores_thumb.jpg",130,87,32);thumbnails[4430147]=new thumbnail(4430147,"176571","The Schnauzer Club of Great Britain Open Show 2009","DSCF0819_thumb.jpg",130,87,32);thumbnails[4377658]=new thumbnail(4377658,"176571","Kingston Open Show 2009","DSCF0758lores_thumb.jpg",130,87,32);thumbnails[4140507]=new thumbnail(4140507,"176571","Southampton Open Show 2009","DSCF0661lores_thumb.jpg",130,87,32);thumbnails[4140504]=new thumbnail(4140504,"176571","Southampton Open Show 2009","DSCF0658lores_thumb.jpg",130,87,32);thumbnails[4140503]=new thumbnail(4140503,"176571","Southampton Open Show 2009","DSCF0645lores1_thumb.jpg",130,87,32);thumbnails[3681623]=new thumbnail(3681623,"176571","Crystal Palace Open Show 2009","DSCF0252lores_thumb.jpg",130,87,32);thumbnails[3681620]=new thumbnail(3681620,"176571","Crystal Palace Open Show 2009","DSCF0250lores_thumb.jpg",130,87,32);thumbnails[3649730]=new thumbnail(3649730,"176571","Schnauzer Club of Great Britain Champ Show 2009","DSCF0241lores_thumb.jpg",130,87,32);thumbnails[3649722]=new thumbnail(3649722,"176571","Schnauzer Club of Great Britain Champ Show 2009","DSCF0234lores_thumb.jpg",130,87,32);thumbnails[3649715]=new thumbnail(3649715,"176571","Schnauzer Club of Great Britain Champ Show 2009","DSCF0226lores_thumb.jpg",130,87,32);thumbnails[5673046]=new thumbnail(5673046,"226814","","Jenny_at_Crufts_2010_b_thumb.jpg",130,87,32);thumbnails[5673049]=new thumbnail(5673049,"226814","","Jenny_at_Crufts_d_thumb.jpg",130,87,32);thumbnails[5673044]=new thumbnail(5673044,"226814","","Jenny_at_Crufts_2010_a1_thumb.jpg",130,87,32);thumbnails[5673048]=new thumbnail(5673048,"226814","","Jenny_at_Crufts_2010_c_thumb.jpg",130,87,32);thumbnails[5673054]=new thumbnail(5673054,"226814","","Jenny_at_Crufts_2010_f_thumb.jpg",130,87,32);thumbnails[2821146]=new thumbnail(2821146,"175702","","DSC_1674lores11_thumb.jpg",130,87,32);thumbnails[5955369]=new thumbnail(5955369,"175702","","George_and_Jenny_3_thumb.jpg",130,87,32);thumbnails[2819781]=new thumbnail(2819781,"175702","","DSC_1701lores_thumb.jpg",130,87,32);thumbnails[5955329]=new thumbnail(5955329,"175702","","Jordan_George__Jenny_thumb.jpg",130,87,32);thumbnails[2820804]=new thumbnail(2820804,"175702","","DSC_1806lores_thumb.jpg",130,87,32);thumbnails[5955311]=new thumbnail(5955311,"175702","","Jenny_thumb.jpg",130,87,32);thumbnails[2819786]=new thumbnail(2819786,"175702","","DSC_1773lores_thumb.jpg",130,87,32);thumbnails[5955304]=new thumbnail(5955304,"175702","","George_thumb.jpg",130,87,32);thumbnails[2820798]=new thumbnail(2820798,"175702","","DSC_1697lores_thumb.jpg",130,87,32);thumbnails[5955303]=new thumbnail(5955303,"175702","","George_Jenny_Mary__Ella_thumb.jpg",130,87,32);thumbnails[2820357]=new thumbnail(2820357,"175702","","DSC_1735lores_thumb.jpg",130,87,32);thumbnails[5955296]=new thumbnail(5955296,"175702","","George_and_Jenny_2_thumb.jpg",130,87,32);thumbnails[2819788]=new thumbnail(2819788,"175702","","DSC_1779lores_thumb.jpg",130,87,32);thumbnails[5955280]=new thumbnail(5955280,"175702","","George_and_Jenny_1_thumb.jpg",130,87,32);thumbnails[2820827]=new thumbnail(2820827,"175702","","DSC_1924lores_thumb.jpg",130,87,32);thumbnails[5955271]=new thumbnail(5955271,"175702","","George_and_Jenny_thumb.jpg",130,87,32);thumbnails[4220356]=new thumbnail(4220356,"242396","Agility Training at Plumpton College","aframe1_thumb.jpg",130,87,32);thumbnails[4220354]=new thumbnail(4220354,"242396","Agility Training at Plumpton College","aframe_thumb.jpg",130,87,32);thumbnails[4013730]=new thumbnail(4013730,"242396","Agility Training at Plumpton College","DSCF0448lores_thumb.jpg",130,87,32);thumbnails[4013727]=new thumbnail(4013727,"242396","Agility Training at Plumpton College","DSCF0447lores_thumb.jpg",130,87,32);thumbnails[4013725]=new thumbnail(4013725,"242396","Agility Training at Plumpton College","DSCF0446lores_thumb.jpg",130,87,32);thumbnails[4013723]=new thumbnail(4013723,"242396","Agility Training at Plumpton College","DSCF0445lores_thumb.jpg",130,87,32);thumbnails[4013718]=new thumbnail(4013718,"242396","Agility Training at Plumpton College","DSCF0444lores_thumb.jpg",130,87,32);thumbnails[4013714]=new thumbnail(4013714,"242396","Agility Training at Plumpton College","DSCF0443lores_thumb.jpg",130,87,32);thumbnails[6427649]=new thumbnail(6427649,"354792","","pups_in_collars_thumb.jpg",130,87,32);thumbnails[6475642]=new thumbnail(6475642,"354792","","pups_at_10_days_thumb.jpg",130,87,32);thumbnails[6475645]=new thumbnail(6475645,"354792","","jordan_and_pup_at_10_days_thumb.jpg",130,87,32);thumbnails[6475652]=new thumbnail(6475652,"354792","","pup_at_10_days_thumb.jpg",130,87,32);thumbnails[6568030]=new thumbnail(6568030,"354792","","Pup_thumb.jpg",130,87,32);thumbnails[6568104]=new thumbnail(6568104,"354792","","pup1_thumb.jpg",130,87,32);thumbnails[6628485]=new thumbnail(6628485,"354792","","pup_5_weeks_thumb.jpg",130,87,32);thumbnails[6628487]=new thumbnail(6628487,"354792","","pup_5_weeks_1_thumb.jpg",130,87,32);thumbnails[6628491]=new thumbnail(6628491,"354792","","pup_5_weeks_2_thumb.jpg",130,87,32);thumbnails[6675570]=new thumbnail(6675570,"354792","","Puppies_099_thumb.jpg",130,87,32);thumbnails[6675577]=new thumbnail(6675577,"354792","","Puppies_083_thumb.jpg",130,87,32);thumbnails[6675588]=new thumbnail(6675588,"354792","","Puppies_036_thumb.jpg",130,87,32);thumbnails[6675593]=new thumbnail(6675593,"354792","","P9040026_thumb.jpg",130,87,32);thumbnails[6675615]=new thumbnail(6675615,"354792","","Puppies_078_thumb.jpg",130,87,32);var galleries=new Object();galleries[175162]=new gallery(175162,"6675608,4804096,4804089,3702505,3266923,3249585,2820407,2820403,2820396","George","gallery",[4804089,4804096,6675608,2820407,3249585,2820403,2820396,3266923,3702505]);galleries[175690]=new gallery(175690,"6675600,5272660,4619085,4619083,4619081,3267089,3267016,3249612,2820933,2819863","Jenny","gallery",[5272660,6675600,2820933,2819798,2819863,2819859,2819784,3249612,2819791,3267089,3267016,4619085,4619083,4619081]);galleries[189668]=new gallery(189668,"5272720,3720738,3702513,3702509,3702508,3702506,3090719,3090717,3090714,3090704","Days Out","gallery",[5272720,3702513,3090717,3702509,3702508,3090704,3702506,3090714,3090719,3720738,2821291]);galleries[176571]=new gallery(176571,"5272662,5272653,4619079,4562700,4562696,4562687,4430147,4377658,4140507,4140504","At the show's","gallery",[5272653,5272662,4619079,4562700,4562696,4562687,4430147,4377658,4140507,4140504,4140503,3681623,3681620,3649730,3649722,3649715]);galleries[226814]=new gallery(226814,"5673054,5673049,5673048,5673046,5673044","Jenny at Crufts 2010","gallery",[5673046,5673049,5673044,5673048,5673054]);galleries[175702]=new gallery(175702,"5955369,5955329,5955311,5955304,5955303,5955296,5955280,5955271,2821146,2820827","Eddie Howland Photography","gallery",[2821146,5955369,2819781,5955329,2820804,5955311,2819786,5955304,2820798,5955303,2820357,5955296,2819788,5955280,2820827,5955271]);galleries[242396]=new gallery(242396,"4220356,4220354,4013730,4013727,4013725,4013723,4013718,4013714","Agility","gallery",[4220356,4220354,4013730,4013727,4013725,4013723,4013718,4013714]);galleries[354792]=new gallery(354792,"6675615,6675593,6675588,6675577,6675570,6628491,6628487,6628485,6568104,6568030","Puppies","gallery",[6427649,6475642,6475645,6475652,6568030,6568104,6628485,6628487,6628491,6675570,6675577,6675588,6675593,6675615]);var imageSets=new Object();imageSets[1]="5955369,5955329,5955304,5955271";imageSets[3]="5955303,5673054,5673049,5673048,5673046,5673044,5672983,5272720,5272662,5272660,5272653,4804096,4804089,4619085,4619083,4619081,4619079,4562700,4562696,4562687,4430147,4377658,4220356,4220354,4140507,4140504,4140503,4013730,4013727,4013725,4013723,4013718,4013714,3720738,3702513";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/garethhards/images";break}switch(a){case 1:b="http://www1.clikpic.com/garethhards/images";break}switch(a){case 2:b="http://admin.clikpic.com/garethhards/images";break}switch(a){case 24:b="http://tpc15/clikpic/garethhards/images";break}switch(a){case 4:b="http://www.clikchurch.com/garethhards/images";break}switch(a){case 5:b="http://www2.clikpic.com/garethhards/images";break}switch(a){case 22:b="http://tpc5/clikpic/garethhards/images";break}switch(a){case 23:b="http://tpc10/clikpic/garethhards/images";break}switch(a){case 25:b="http://tpc16/clikpic/garethhards/images";break}switch(a){case 15:b="http://www3.clikpic.com/garethhards/images";break}switch(a){case 18:b="http://www4.clikpic.com/garethhards/images";break}switch(a){case 19:b="http://www5.clikpic.com/garethhards/images";break}switch(a){case 31:b="http://www7.clikpic.com/garethhards/images";break}switch(a){case 32:b="http://admin2.clikpic.com/garethhards/images";break}switch(a){case 33:b="http://www8.clikpic.com/garethhards/images";break}switch(a){case 34:b="http://www9.clikpic.com/garethhards/images";break}switch(a){case 35:b="http://admin3.clikpic.com/garethhards/images";break}switch(a){case 37:b="http://admin4.clikpic.com/garethhards/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="'+escape(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="Uireda Miniature Schnauzers: "+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> 							"+(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(b,a){imageID=randomListVal(galleries[b].featured_images);if(imageID!=0){a.src=thumbnails[imageID].src;a.width=thumbnails[imageID].width;a.height=thumbnails[imageID].height}}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+'")'})}}};