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[2946136]=new thumbnail(2946136,"181685","Visual Arts 2009","Vis_Arts_Postcard_thumb.jpg",130,183,32);thumbnails[2946174]=new thumbnail(2946174,"181685","Sleep","sleep-projection_thumb.jpg",130,179,32);thumbnails[2946192]=new thumbnail(2946192,"181685","Most Like Wakefulness","most3_thumb.jpg",130,88,32);thumbnails[2946376]=new thumbnail(2946376,"181685","New York","new-york-cropped_thumb.jpg",130,95,32);thumbnails[2954309]=new thumbnail(2954309,"181687","Wind wall Arrangements- Edale<br>\r\nEnvironmental intervention series","DSC_1503 resize_thumb.jpg",130,86,32);thumbnails[2954322]=new thumbnail(2954322,"181687","Wind wall- Edale<br>\r\nEnvironmental intervention series","DSC_1489 Resize_thumb.jpg",130,86,32);thumbnails[2954334]=new thumbnail(2954334,"181687","Wind wall- Glossop<br>\r\nEnvironmental intervention series","DSC_1133 resize1_thumb.jpg",130,86,32);thumbnails[3194730]=new thumbnail(3194730,"195323","Beauty Marked ","Beatrix1_thumb.jpg",130,172,32);thumbnails[3194747]=new thumbnail(3194747,"195323","American Curl","American-Curl1_thumb.jpg",130,161,32);thumbnails[3194761]=new thumbnail(3194761,"195323","Stawberry Bomb","Strawberry-Bomb-web_thumb.jpg",130,130,32);thumbnails[3194770]=new thumbnail(3194770,"195323","Miss Chambers","Miss-Chambers_thumb.jpg",130,189,32);thumbnails[3330146]=new thumbnail(3330146,"203030","","DSC02973cut_thumb.jpg",130,140,32);thumbnails[3330193]=new thumbnail(3330193,"203030","","DSC02820cut1_thumb.jpg",130,102,32);thumbnails[3330276]=new thumbnail(3330276,"203030","<i>In Flagrante!</i>","butterflies_thumb.jpg",130,99,32);thumbnails[3476371]=new thumbnail(3476371,"212352","Exhibition poster (Pl.)  by Marta Wozny & Kasia Zmijewska","2_thumb.jpg",130,235,32);thumbnails[3476547]=new thumbnail(3476547,"212352","Poster by Justyna Dabek & Team. Title: KON/ THE HORSE","park melanholii_thumb.jpg",130,89,32);thumbnails[3497931]=new thumbnail(3497931,"187754","Mark making ","liz parker_thumb.jpg",130,285,32);thumbnails[3523468]=new thumbnail(3523468,"215631","Transition","pic1_thumb.jpg",130,98,32);thumbnails[3523510]=new thumbnail(3523510,"215631","Transition","pic2_thumb.jpg",130,98,32);thumbnails[3523545]=new thumbnail(3523545,"215631","Beauty's only skin deep.","pic3_thumb.jpg",130,215,32);thumbnails[3523547]=new thumbnail(3523547,"215631","' Beauty's only skin deep'","pic4_thumb.jpg",130,84,32);thumbnails[3523552]=new thumbnail(3523552,"215631","Untitled","pic5_thumb.jpg",130,135,32);thumbnails[3559424]=new thumbnail(3559424,"212352","Exhibition poster by Joanna Chomeniuk, 2008, Gdynia, Poland.","JChomeniuk_emo1_thumb.jpg",130,98,32);thumbnails[3608575]=new thumbnail(3608575,"212352","Inspired by Language Sofa by Bart Bieganski        (Visual Dimension) ","v2a_maly_thumb.jpg",92,130,32);thumbnails[3608576]=new thumbnail(3608576,"212352","Poster by Miloslawa Switalska & Team, first prize.","ulotka1_thumb.jpg",130,184,32);thumbnails[3641261]=new thumbnail(3641261,"212352","Game: 'Gdynianka' by Pawel Iwankowski & Team.","GDYNIANKA_thumb.jpg",130,160,32);thumbnails[3641282]=new thumbnail(3641282,"212352","Participants: senior citizens at the briefing before a research walk with students of Psychology and Architecture. Photo by K. Tatarczuk","senior_citizens_2_thumb.jpg",130,86,32);thumbnails[3641295]=new thumbnail(3641295,"212352","Inspired by Language Sofa by Bart Bieganski        (Visual Dimension)","v1maly_thumb.jpg",92,130,32);thumbnails[3909357]=new thumbnail(3909357,"181683","'Manchester No. 29'","DSCN0496_thumb.JPG",130,184,32);thumbnails[3961834]=new thumbnail(3961834,"187754","Sinbad the sailor","3378318421_30d04e9e75_thumb.jpg",130,79,32);thumbnails[3961847]=new thumbnail(3961847,"187754","Tea party","3429983426_5180ca20bf_thumb.jpg",130,179,32);thumbnails[3961990]=new thumbnail(3961990,"240020","A call and response (2006)","longcut_thumb.jpg",130,130,32);thumbnails[3962017]=new thumbnail(3962017,"240020","Videogame Nation (2009)","VGN_thumb.jpg",130,184,32);thumbnails[3962051]=new thumbnail(3962051,"181687","40 Days of public solitude<br>\r\n","40days_small3_thumb.jpg",130,87,32);thumbnails[3962061]=new thumbnail(3962061,"181687","40 Days of Public solitude","40days_small1_thumb.jpg",130,87,32);thumbnails[3962069]=new thumbnail(3962069,"181687","40 Days of Public Solitude","40days_small2_thumb.jpg",130,195,32);thumbnails[3962093]=new thumbnail(3962093,"240020","Open Hearts (2009)","thelongcut_openhearts_rgb_800_thumb.gif",130,130,32);thumbnails[3962094]=new thumbnail(3962094,"181687","'Let me be straight with you'<br>\r\nA collaboration by Kate Royle and Roberta Lima<br>\r\nSite Specific installation 2009<br>\r\nBeijing -CHINA<br>\r\n<br>\r\nTo find out more about this project please go to www.robertalima.com ","robertacamsmall_thumb.jpg",130,196,32);thumbnails[3962109]=new thumbnail(3962109,"181687","'Let me be straight with you'<br>\r\nA collaboration by Kate Royle and Roberta Lima<br>\r\nSite specific installation 2009<br>\r\nBeijing- CHINA","robertacocoonsmall_thumb.jpg",130,86,32);thumbnails[3962217]=new thumbnail(3962217,"240020","Robin","Robin_thumb.gif",130,163,32);thumbnails[3963433]=new thumbnail(3963433,"187754","","3409265430_83f1af403f_thumb.jpg",130,195,32);thumbnails[3963449]=new thumbnail(3963449,"187754","","3378317973_cae9fc0032_thumb.jpg",130,79,32);thumbnails[3963452]=new thumbnail(3963452,"187754","","3510871771_f20f6cf5e2_thumb.jpg",130,94,32);thumbnails[3963455]=new thumbnail(3963455,"187754","","3511682718_0539a639c0_thumb.jpg",130,95,32);thumbnails[3965798]=new thumbnail(3965798,"181685","Alice in Wonderland, Chapter Seven","Alice-web_thumb.jpg",130,173,32);thumbnails[3965850]=new thumbnail(3965850,"181685",'"Eight Hours" Urbis Reception Space',"Urbis-wall-web_thumb.jpg",130,87,32);thumbnails[3965858]=new thumbnail(3965858,"181685","'Clouds' from 10 by Ten Illustrations","Rain-10byten_thumb.jpg",130,130,32);thumbnails[5448194]=new thumbnail(5448194,"187754","","4178441259_74aefd93b4_b_thumb.jpg",130,31,32);thumbnails[6244740]=new thumbnail(6244740,"187754","What it feels like.","frontcover1234_thumb.jpg",92,130,32);thumbnails[6244745]=new thumbnail(6244745,"187754","Editorial.","frontcover2_thumb.jpg",87,130,32);thumbnails[6244754]=new thumbnail(6244754,"187754","Twitter.","lizspot2_thumb.jpg",92,130,32);thumbnails[6244802]=new thumbnail(6244802,"187754","Dialogue Ignites: Themed- Water, Women and Children.","DSC02195_thumb.JPG",130,87,32);thumbnails[6244811]=new thumbnail(6244811,"187754","Foto-Grafik ","photo-liz_thumb.jpg",130,122,32);thumbnails[6244825]=new thumbnail(6244825,"187754"," '4 Precious Things'","finishedphoto_thumb.jpg",94,130,32);thumbnails[6245432]=new thumbnail(6245432,"195323","Cherry Marlene","Cherry-Marlene_thumb.jpg",103,130,32);thumbnails[6245659]=new thumbnail(6245659,"195323","A Sailor Stole My Heart","A-Sailor-Stole-My-Heart_for_web_thumb.jpg",97,130,32);thumbnails[6245664]=new thumbnail(6245664,"195323","Rack and Ruin","Rack-and-Ruin-for-web_thumb.jpg",130,106,32);thumbnails[3002523]=new thumbnail(3002523,"181683","Detail of 'Manchester No. 05'","DSCN0180_thumb.JPG",130,173,32);thumbnails[3402031]=new thumbnail(3402031,"192935","It's Party Time !!","Brian 2edit_thumb.jpg",130,98,32);thumbnails[6256708]=new thumbnail(6256708,"208632","","phantom_space_muncher_thumb.jpg",92,130,32);thumbnails[3002493]=new thumbnail(3002493,"181683","'Cold War Exhibition Building Cosford No. 03'","Image3_thumb.pastel-drawing.jpg",130,97,32);thumbnails[3402020]=new thumbnail(3402020,"192935","My 60's Party at Urbis September 2008","Brian 1edit_thumb.jpg",130,98,32);thumbnails[3002489]=new thumbnail(3002489,"181683","'Imperial War Museum North No. 05'","Image2_thumb.pastel-drawing.JPG",130,96,32);thumbnails[3402032]=new thumbnail(3402032,"192935","60's Party Urbis","Brain 3 edit_thumb.jpg",130,173,32);thumbnails[2939697]=new thumbnail(2939697,"181683"," ‘Embossed Print no.15’","Image1_thumb.embossed-print.jpg",130,127,32);thumbnails[3402033]=new thumbnail(3402033,"192935","Me and DJ from twisted wheel Pete Roberts.","Brian 4edit_thumb.jpg",130,98,32);thumbnails[3413874]=new thumbnail(3413874,"208632","","bookfightallegationpart21_thumb.jpg",130,92,32);thumbnails[3875839]=new thumbnail(3875839,"208632","","image10_thumb.jpg",87,130,32);thumbnails[3877423]=new thumbnail(3877423,"208632","","spaceinvaderinstallation_thumb.jpg",130,92,32);thumbnails[3875928]=new thumbnail(3875928,"208632","","morphfilminstallation_thumb.jpg",92,130,32);thumbnails[3875760]=new thumbnail(3875760,"208632","","spaceinvader_thumb.jpg",130,96,32);thumbnails[6256914]=new thumbnail(6256914,"208632","","morphfilmstill1_thumb.jpg",130,92,32);thumbnails[6256905]=new thumbnail(6256905,"208632","","112_thumb.jpg",130,84,32);var galleries=new Object();galleries[192935]=new gallery(192935,"3402031","Brian Allen","section225459",[3402031,3402020,3402032,3402033]);galleries[187754]=new gallery(187754,"5448194,3963455,3963452,3963449,3963433,3961847,3961834,3497931","Elizabeth Parker","section225459",[3497931,3961834,3961847,3963433,3963449,3963452,3963455,5448194,6244740,6244745,6244754,6244802,6244811,6244825]);galleries[195323]=new gallery(195323,"3194770,3194761,3194747,3194730","Gemma Parker","section225459",[3194730,3194747,3194761,3194770,6245432,6245659,6245664]);galleries[208632]=new gallery(208632,"3875928,3875839,3875760","Jenny Core","section225459",[6256708,3413874,3875839,3877423,3875928,3875760,6256914,6256905]);galleries[212352]=new gallery(212352,"3641295,3559424","Joanna Chomeniuk","section225459",[3476371,3476547,3559424,3608575,3608576,3641261,3641282,3641295]);galleries[181687]=new gallery(181687,"3962109,3962094,3962069,3962061,3962051,2954334,2954322,2954309","Kate Royle","section225459",[2954309,2954322,2954334,3962051,3962061,3962069,3962094,3962109]);galleries[181685]=new gallery(181685,"3965858,3965850,3965798,2946376,2946192,2946174,2946136","Kirstin McKechnie","section225459",[2946136,2946174,2946192,2946376,3965798,3965850,3965858]);galleries[240020]=new gallery(240020,"3962093","Liam Palmer","section225459",[3961990,3962017,3962093,3962217]);galleries[215631]=new gallery(215631,"3523552","Lyndsay White","section225459",[3523468,3523510,3523545,3523547,3523552]);galleries[203030]=new gallery(203030,"3330193","Mary-Beth Whittingstall","section225459",[3330146,3330193,3330276]);galleries[181683]=new gallery(181683,"3002523","Sarah Brisco","section225459",[3909357,3002523,3002493,3002489,2939697]);var imageSets=new Object();imageSets[1]="5448194,3965858,3965850,3965798,3963455,3963452,3963449,3963433,3962109,3962093,3962069,3962061,3962051,3962017,3961990,3961847,3961834,3909357,3875928,3875839,3875760,3641295,3641282,3641261,3608576,3608575,3559424,3523552,3523545,3523468,3497931,3476547,3413874,3330276,3330193,3330146,3194770,3194761,3194747,3194730,3002523,3002493,3002489,2954334,2954322,2954309,2946376,2946192,2946174,2946136,2939697";imageSets[2]="5448194,3963455,3963452,3963449,3963433,3962093,3961847,3961834,3875928,3875839,3875760,3641295,3559424,3523552,3497931,3402031,3330193,3194770,3194761,3194747,3194730,3002523";imageSets[3]="3641295";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/thestewards/images";break}switch(a){case 1:b="http://www1.clikpic.com/thestewards/images";break}switch(a){case 2:b="http://admin.clikpic.com/thestewards/images";break}switch(a){case 24:b="http://tpc15/clikpic/thestewards/images";break}switch(a){case 4:b="http://www.clikchurch.com/thestewards/images";break}switch(a){case 5:b="http://www2.clikpic.com/thestewards/images";break}switch(a){case 22:b="http://tpc5/clikpic/thestewards/images";break}switch(a){case 23:b="http://tpc10/clikpic/thestewards/images";break}switch(a){case 25:b="http://tpc16/clikpic/thestewards/images";break}switch(a){case 15:b="http://www3.clikpic.com/thestewards/images";break}switch(a){case 18:b="http://www4.clikpic.com/thestewards/images";break}switch(a){case 19:b="http://www5.clikpic.com/thestewards/images";break}switch(a){case 31:b="http://www7.clikpic.com/thestewards/images";break}switch(a){case 32:b="http://admin2.clikpic.com/thestewards/images";break}switch(a){case 33:b="http://www8.clikpic.com/thestewards/images";break}switch(a){case 34:b="http://www9.clikpic.com/thestewards/images";break}switch(a){case 35:b="http://admin3.clikpic.com/thestewards/images";break}switch(a){case 37:b="http://admin4.clikpic.com/thestewards/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("section225459"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section225459.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("section225459"!=""){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="Urbis Creatives: "+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(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+'")'})}}};