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[6254532]=new thumbnail(6254532,"56733","Basel on the Rhine","IMG_0341_thumb.jpg",130,129,15);thumbnails[2275916]=new thumbnail(2275916,"56733","Aerial View of Basel","IMG_0344_thumb.jpg",130,103,15);thumbnails[3426237]=new thumbnail(3426237,"56733","Mittlere Brucke, Basel","IMG_0011skmbrucke09_thumb.jpg",130,63,15);thumbnails[4699199]=new thumbnail(4699199,"56733","Summer Evening by the Rhine","IMG_0328a_thumb.jpg",130,62,15);thumbnails[2290275]=new thumbnail(2290275,"56733","Aerial View of Basel ","IMG_0351_thumb.jpg",130,130,15);thumbnails[2280493]=new thumbnail(2280493,"56733","Munster on the Rhine, Basel","IMG_8186-webmunsterrhine_thumb.jpg",130,63,15);thumbnails[3426533]=new thumbnail(3426533,"56733","Riverside Houses, Basel","IMG_3415houses-Rhine_thumb.jpg",130,99,15);thumbnails[2280499]=new thumbnail(2280499,"56733","The Rathaus and Marktplatz, Basel","IMG-8216webmarktplatz_thumb.jpg",130,156,15);thumbnails[6254542]=new thumbnail(6254542,"56733","Basel Munster","IMG_0353_thumb.jpg",130,130,15);thumbnails[6254549]=new thumbnail(6254549,"56733","Monday Morning on the Rhine","IMG_0327_thumb.jpg",130,130,15);thumbnails[735458]=new thumbnail(735458,"56733","Sevilla","WBSITE_thumb.jpg_0052.JPG",130,201,15);thumbnails[735463]=new thumbnail(735463,"56733","Sydney, view from Kurraba Point","WBSITE_thumb.jpg_0053.JPG",130,161,15);thumbnails[6254593]=new thumbnail(6254593,"332533","In my Father's Garden","IMG_0358_thumb.jpg",130,26,15);thumbnails[3426246]=new thumbnail(3426246,"332533","The Odiel Reserve (Where flamingos walk)","IMG_9994dyptich09_thumb.jpg",130,64,15);thumbnails[3426244]=new thumbnail(3426244,"332533","The Forest, Abstract","IMG_9991woodland09_thumb.jpg",130,42,15);thumbnails[3424330]=new thumbnail(3424330,"332533","Abstract / When you follow the sun.....","IMG_2098feb-09_thumb.jpg",130,129,15);thumbnails[3424267]=new thumbnail(3424267,"332533","The Garden","IMG_2095feb-09_thumb.jpg",130,131,15);thumbnails[1495445]=new thumbnail(1495445,"332533","Sunrise over the Rhine","wbste-IMG022_thumb.jpg",130,164,15);thumbnails[738960]=new thumbnail(738960,"332533","El Rompido lighthouse","WBSITE_thumb.jpg_0125.JPG",130,265,15);thumbnails[1502917]=new thumbnail(1502917,"332533","Abstract ","Wbste-IMG020_thumb.jpg",130,132,15);thumbnails[3426243]=new thumbnail(3426243,"332533","The Beach","webste-IMG125_thumb.jpg",130,130,15);thumbnails[3426255]=new thumbnail(3426255,"332533","Abstract","IMG_9985-smblue-09_thumb.jpg",130,131,15);thumbnails[3426257]=new thumbnail(3426257,"332533","Abstract","IMG_9988-feb-09pink_thumb.jpg",130,44,15);thumbnails[1118978]=new thumbnail(1118978,"332533","Hong Kong","webste-IMG124_thumb.jpg",130,107,15);thumbnails[3426344]=new thumbnail(3426344,"332533","Abstract Fields","IMG_9985fields09_thumb.jpg",130,129,15);thumbnails[1116950]=new thumbnail(1116950,"332533","Harbour Lights","webste-IMG114_thumb.jpg",130,170,15);thumbnails[3424357]=new thumbnail(3424357,"332533","Abstract-Australia","IMG_2093-feb-092_thumb.jpg",130,157,15);thumbnails[738202]=new thumbnail(738202,"332533","Beach and Tide","WBSITE_thumb.jpg_0116.JPG",130,61,15);thumbnails[738962]=new thumbnail(738962,"332533","Abstract","WBSITE_thumb.jpg_0124.JPG",130,155,15);thumbnails[1116929]=new thumbnail(1116929,"332533","Fields of sunflowers","webste-IMG126_thumb.jpg",130,132,15);thumbnails[1116854]=new thumbnail(1116854,"332533","Early morning on the beach","webste IMG109_thumb.JPG",130,132,15);thumbnails[1119017]=new thumbnail(1119017,"332533","Retrospective","webste-IMG122_thumb.jpg",130,104,15);thumbnails[4906153]=new thumbnail(4906153,"209437","View over Mittlere Brucke","IMG_3033trim433_thumb.jpg",130,77,15);thumbnails[4699121]=new thumbnail(4699121,"209437","Mittlere Brucke","IMG_290728Bergli_thumb.jpg",130,76,15);thumbnails[4699106]=new thumbnail(4699106,"209437","Les Trois Roi","IMG0131_thumb.jpg",130,195,15);thumbnails[3426514]=new thumbnail(3426514,"209437","On the way to the Fair","IMG_2851panbw-h_thumb.jpg",130,74,15);thumbnails[4699099]=new thumbnail(4699099,"209437","Wettstein Brucke","IMG_43031_thumb.jpg",130,87,15);thumbnails[4699116]=new thumbnail(4699116,"209437","Houses at Kleinbasel","IMG_51841_thumb.jpg",130,195,15);thumbnails[4699124]=new thumbnail(4699124,"209437","Ferry to the Munster","IMG_692511_thumb.jpg",130,195,15);thumbnails[4699113]=new thumbnail(4699113,"209437","Mittlere Brucke","IMG_29061_thumb.jpg",130,195,15);thumbnails[4699127]=new thumbnail(4699127,"209437","Waiting for the Ferry II","IMG0151_thumb.jpg",130,191,15);thumbnails[4699140]=new thumbnail(4699140,"209437","Big Wheel, Luzern Fair","IMG_24121_thumb.jpg",130,195,15);thumbnails[3426491]=new thumbnail(3426491,"209437","Muttenz I","IMG_1610bwmut3_thumb.jpg",130,195,15);thumbnails[3426489]=new thumbnail(3426489,"209437","Muttenz  II","IMG_1603bwmut2_thumb.jpg",130,87,15);thumbnails[735408]=new thumbnail(735408,"56427","Early one morning","IMG_6525final_thumb.jpg",130,55,15);thumbnails[735414]=new thumbnail(735414,"56427","Munster","WBSITE_thumb.jpg_0079.JPG",130,195,15);thumbnails[3426486]=new thumbnail(3426486,"56427","Panoramic view of Basel from the Bruderholz Watertower","IMG_1315panoramwt_thumb.jpg",130,36,15);thumbnails[840985]=new thumbnail(840985,"56427","View across the Rhine","WBSITE_thumb.jpg_0068.JPG",130,87,15);thumbnails[735419]=new thumbnail(735419,"56427","Mittlere Brucke","WBSITE_thumb.jpg_0070.JPG",130,195,15);thumbnails[841027]=new thumbnail(841027,"56427","Ferry crossing","WBSITE_thumb.jpg_0073.JPG",130,195,15);thumbnails[942865]=new thumbnail(942865,"56427","","IMG191_thumb.jpg",130,195,15);thumbnails[943080]=new thumbnail(943080,"56427","Fire Boat I","IMG186_thumb.jpg",130,71,15);thumbnails[735275]=new thumbnail(735275,"56427","Big Wheel at the Herbstmesse","WBSITE_thumb.jpg_0016.JPG",130,87,15);thumbnails[943094]=new thumbnail(943094,"56427","Fire boat II","IMG185_thumb.jpg",130,195,15);thumbnails[840923]=new thumbnail(840923,"56427","Big wheel","WBSITE_thumb.jpg_0017.JPG",130,195,15);thumbnails[943145]=new thumbnail(943145,"56427","les Trois Rois","IMG1901_thumb.jpg",130,87,15);thumbnails[943153]=new thumbnail(943153,"56427","Between Shifts","IMG189_thumb.jpg",130,195,15);thumbnails[840974]=new thumbnail(840974,"56427","Herbstmesse","WBSITE_thumb.jpg_0018.JPG",130,195,15);thumbnails[840967]=new thumbnail(840967,"56427","View from Big Wheel","WBSITE_thumb.jpg_00151.JPG",130,195,15);thumbnails[841045]=new thumbnail(841045,"56427","Basel II","WBSITE_thumb.jpg_00871.JPG",130,141,15);thumbnails[840844]=new thumbnail(840844,"56423","Lighthouse","WBSITE_thumb.jpg_00111.JPG",130,195,15);thumbnails[840841]=new thumbnail(840841,"56423","El Rompido","WBSITE_thumb.jpg_00401.JPG",130,191,15);thumbnails[840865]=new thumbnail(840865,"56423","Town Hall","WBSITE_thumb.jpg_0007.JPG",130,195,15);thumbnails[840876]=new thumbnail(840876,"56423","Marina at Ayamonte","WBSITE_thumb.jpg_00091.JPG",130,195,15);thumbnails[840882]=new thumbnail(840882,"56423","Marina II","WBSITE_thumb.jpg_00101.JPG",130,87,15);thumbnails[840906]=new thumbnail(840906,"56423","Funfair at Zoomarine ","WBSITE_thumb.jpg_00121.JPG",130,195,15);thumbnails[6253275]=new thumbnail(6253275,"347736","Vitra","IMG_PI01a_thumb.jpg",130,65,15);thumbnails[6253277]=new thumbnail(6253277,"347736","Vitra -museum","IMG_0094_thumb.jpg",130,83,15);thumbnails[6254443]=new thumbnail(6254443,"347736","Vitra","IMG_0140_thumb.jpg",130,195,15);thumbnails[6254458]=new thumbnail(6254458,"347736","Vitra","IMG_9989_thumb.jpg",130,82,15);thumbnails[6254614]=new thumbnail(6254614,"347736","Detail","IMG_9981_thumb.jpg",130,87,15);thumbnails[6253186]=new thumbnail(6253186,"347736","Fire Station , Vitra","IMG_0019_thumb.jpg",130,86,15);thumbnails[6253272]=new thumbnail(6253272,"347736","Fire Station","IMG_0038_thumb.jpg",130,92,15);thumbnails[6253271]=new thumbnail(6253271,"347736","Fire Station II","IMG_0027_thumb.jpg",130,169,15);thumbnails[6253270]=new thumbnail(6253270,"347736","Fire Station ","IMG_PI02_thumb.jpg",130,196,15);thumbnails[6254490]=new thumbnail(6254490,"347736","Fire Station","IMG_0059_thumb.jpg",130,170,15);thumbnails[6254454]=new thumbnail(6254454,"347736","Vitra House","IMG_0163_thumb.jpg",130,87,15);thumbnails[6254448]=new thumbnail(6254448,"347736","Vitra House<br>\r\nArchitect: Herzog & de Meuron","IMG_0147_thumb.jpg",130,181,15);thumbnails[6254455]=new thumbnail(6254455,"347736","Staircase","IMG_0219_thumb.jpg",130,87,15);thumbnails[6254495]=new thumbnail(6254495,"347736","Interior","IMG_0211_thumb.jpg",130,89,15);thumbnails[6254487]=new thumbnail(6254487,"347736","Conference Centre Cafe","IMG_0137_thumb.jpg",130,194,15);thumbnails[6254482]=new thumbnail(6254482,"347736","Conference Centre<br>\r\nArchitect: Tadao Ando","IMG_0129_thumb.jpg",130,87,15);thumbnails[6254515]=new thumbnail(6254515,"347736","Pump Station<br>\r\nArchitect: John Prouve'","IMG_0009_thumb.jpg",130,100,15);thumbnails[6254520]=new thumbnail(6254520,"347736","Architect: Buckminster Fuller","IMG_0004_thumb.jpg",130,195,15);thumbnails[6254521]=new thumbnail(6254521,"347736","Interior","IMG_0002_thumb.jpg",130,195,15);thumbnails[840705]=new thumbnail(840705,"56426","Marina at Nuevo Portil","WBSITE_thumb.jpg_00261.JPG",130,195,15);thumbnails[840727]=new thumbnail(840727,"56426","Running Solo","WBSITE_thumb.jpg_01181.JPG",130,195,15);thumbnails[840835]=new thumbnail(840835,"56426","View to El Rompido","WBSITE_thumb.jpg_00351.JPG",130,195,15);thumbnails[840744]=new thumbnail(840744,"56426","El Rompido","WBSITE_thumb.jpg_00371.JPG",130,195,15);thumbnails[840760]=new thumbnail(840760,"56426","Sunset, El Rompido","WBSITE_thumb.jpg_00381.JPG",130,87,15);thumbnails[840813]=new thumbnail(840813,"56426","Sunset","WBSITE_thumb.jpg_00301.JPG",130,195,15);thumbnails[840819]=new thumbnail(840819,"56426","Fishing at dusk","WBSITE_thumb.jpg_0044.JPG",130,195,15);thumbnails[840827]=new thumbnail(840827,"56426","G&Ts at sunset","WBSITE_thumb.jpg_0041.JPG",130,195,15);thumbnails[840830]=new thumbnail(840830,"56426","Sunset","WBSITE_thumb.jpg_0042.JPG",130,87,15);thumbnails[1495436]=new thumbnail(1495436,"332547","Sunflower","Wbste-IMG017_thumb.jpg",130,87,15);thumbnails[736046]=new thumbnail(736046,"332547","Calla Lily","WBSITE_thumb.jpg_0089.JPG",130,203,15);thumbnails[738207]=new thumbnail(738207,"332547","Calla Lily","WBSITE_thumb.jpg_01211.JPG",130,137,15);thumbnails[792863]=new thumbnail(792863,"61613","Fasnacht","WBSITE_thumb.jpg_0186.JPG",130,195,15);thumbnails[792887]=new thumbnail(792887,"61613","Cliques","WBSITE_thumb.jpg_0177.JPG",130,133,15);thumbnails[792899]=new thumbnail(792899,"61613","Kinder Fasnacht","WBSITE_thumb.jpg_0187.JPG",130,195,15);thumbnails[792904]=new thumbnail(792904,"61613","Mandarin","WBSITE_thumb.jpg_0178.JPG",130,203,15);thumbnails[792907]=new thumbnail(792907,"61613","Sunshine","WBSITE_thumb.jpg_0180.JPG",130,216,15);thumbnails[792912]=new thumbnail(792912,"61613","Neptune and fish","WBSITE_thumb.jpg_0190.JPG",130,102,15);thumbnails[792923]=new thumbnail(792923,"61613","","WBSITE_thumb.jpg_0174.JPG",130,147,15);thumbnails[792917]=new thumbnail(792917,"61613","Waggis","WBSITE_thumb.jpg_0179.JPG",130,195,15);thumbnails[792920]=new thumbnail(792920,"61613","Nuns","WBSITE_thumb.jpg_0196.JPG",130,142,15);thumbnails[792926]=new thumbnail(792926,"61613","","WBSITE_thumb.jpg_0194.JPG",130,93,15);thumbnails[1124270]=new thumbnail(1124270,"82134","Semana Santa","Website_thumb.jpg",130,195,15);thumbnails[1124266]=new thumbnail(1124266,"82134","Semana Santa","WBSITE_thumb.jpg_9790.jpg",130,198,15);thumbnails[1124272]=new thumbnail(1124272,"82134","Semana Santa","WBsite_thumb.jpg",130,214,15);thumbnails[1124275]=new thumbnail(1124275,"82134","Procession of the Virgin Mary","WBSITE_thumb.jpg_9832.jpg",130,195,15);thumbnails[1124810]=new thumbnail(1124810,"82134","Romaria","Website_thumb.jpg_5845.jpg",130,98,15);thumbnails[1124803]=new thumbnail(1124803,"82134","Romaria","Website_thumb.jpg_5873.jpg",130,103,15);thumbnails[1124809]=new thumbnail(1124809,"82134","Romaria","Website_thumb.jpg_5926.jpg",130,183,15);thumbnails[1124825]=new thumbnail(1124825,"82134","Fiesta","Website_thumb.jpg_5939.jpg",130,195,15);thumbnails[1124833]=new thumbnail(1124833,"82134","Fiesta","Website_thumb.jpg_6008.jpg",130,97,15);thumbnails[1124874]=new thumbnail(1124874,"82134","Fiesta","Website_thumb.jpg_6055.jpg",130,195,15);thumbnails[1124838]=new thumbnail(1124838,"82134","Romaria","Website_thumb.jpg_6006.jpg",130,195,15);thumbnails[1124849]=new thumbnail(1124849,"82134","Virgin Mary","Website_thumb.jpg_6117.jpg",130,195,15);thumbnails[1124856]=new thumbnail(1124856,"82134","Watching ","Website_thumb.jpg_6126.jpg",130,195,15);thumbnails[736074]=new thumbnail(736074,"332541","Castles on the beach","WBSITE_thumb.jpg_0105.JPG",130,87,15);thumbnails[736085]=new thumbnail(736085,"332541","Beach in Winter","WBSITE_thumb.jpg_0108.JPG",130,87,15);thumbnails[736097]=new thumbnail(736097,"332541","","WBSITE_thumb.jpg_0112.JPG",130,96,15);var galleries=new Object();galleries[332532]=new gallery(332532,"4699199,1502917,1495445","Fine Art","gallery",[]);galleries[56733]=new gallery(56733,"4699199","Drawings and watercolours","gallery",[6254532,2275916,3426237,4699199,2290275,2280493,3426533,2280499,6254542,6254549,735458,735463]);galleries[332533]=new gallery(332533,"1502917,1495445","Acrylics and oils","gallery",[6254593,3426246,3426244,3424330,3424267,1495445,738960,1502917,3426243,3426255,3426257,1118978,3426344,1116950,3424357,738202,738962,1116929,1116854,1119017]);galleries[269683]=new gallery(269683,"4699121","Black and White Photography","gallery",[]);galleries[209437]=new gallery(209437,"4699121","Switzerland","gallery",[4906153,4699121,4699106,3426514,4699099,4699116,4699124,4699113,4699127,4699140,3426491,3426489]);galleries[332543]=new gallery(332543,"6254614,6253271,6253186","Architecture","gallery",[]);galleries[56427]=new gallery(56427,"3426486,943153,943145,943094,943080,942865,841045,841027,840985,840974","Swiss Style","gallery",[735408,735414,3426486,840985,735419,841027,942865,943080,735275,943094,840923,943145,943153,840974,840967,841045]);galleries[56423]=new gallery(56423,"840906,840882,840876,840865,840844,840841","Spanish Architecture","gallery",[840844,840841,840865,840876,840882,840906]);galleries[347736]=new gallery(347736,"6254614,6253271,6253186","Vitra","gallery",[6253275,6253277,6254443,6254458,6254614,6253186,6253272,6253271,6253270,6254490,6254454,6254448,6254455,6254495,6254487,6254482,6254515,6254520,6254521]);galleries[332546]=new gallery(332546,"1495436,840835,840819,840727,736046","Landscapes and Nature","gallery",[]);galleries[56426]=new gallery(56426,"840835,840819,840727","Landscapes in Spain","gallery",[840705,840727,840835,840744,840760,840813,840819,840827,840830]);galleries[332547]=new gallery(332547,"1495436,736046","Nature","gallery",[1495436,736046,738207]);galleries[332551]=new gallery(332551,"","Swiss Landscapes","gallery",[]);galleries[332545]=new gallery(332545,"1124856,792899,792887"," Fiestas and Fasnacht","gallery",[]);galleries[61613]=new gallery(61613,"792899,792887","Fasnacht in Switzerland","gallery",[792863,792887,792899,792904,792907,792912,792923,792917,792920,792926]);galleries[82134]=new gallery(82134,"1124856","Fiesta","gallery",[1124270,1124266,1124272,1124275,1124810,1124803,1124809,1124825,1124833,1124874,1124838,1124849,1124856]);galleries[332541]=new gallery(332541,"736074","Portraits","gallery",[736074,736085,736097]);var imageSets=new Object();imageSets[1]="6254532,6253275,6253271,4906153,3426514,3426244,3426243,1116950,840985,738960,735458,735408,735275";imageSets[2]="6254614,6253271,6253186,4699199,4699121,1502917,1495445,1495436,1124856,840835,840819,840727,792899,792887,736074,736046";imageSets[3]="6254614,4699140,4699121,3426255,3426246,3426244,3426243,2280499,2275916,1116950";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/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 1:b="http://www1.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 2:b="http://admin.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 24:b="http://tpc15/clikpic/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 4:b="http://www.clikchurch.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 5:b="http://www2.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 22:b="http://tpc5/clikpic/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 23:b="http://tpc10/clikpic/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 25:b="http://tpc16/clikpic/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 15:b="http://www3.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 18:b="http://www4.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 19:b="http://www5.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 31:b="http://www7.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 32:b="http://admin2.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 33:b="http://www8.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 34:b="http://www9.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 35:b="http://admin3.clikpic.com/Sarah_Jane_Hartney_Artwx/images";break}switch(a){case 37:b="http://admin4.clikpic.com/Sarah_Jane_Hartney_Artwx/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="Artwx: "+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+'")'})}}};