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[5349744]=new thumbnail(5349744,"301121","Colin MacIntyre","4075259037_e5b2e95907_thumb.jpg",130,87,5);thumbnails[5349748]=new thumbnail(5349748,"301121","Sugar Coated Love Monkeys","3944594408_94b4748e28_thumb.jpg",130,195,5);thumbnails[5349750]=new thumbnail(5349750,"301121","Sleeping With Satellites ","3796549059_efee1ffb46_thumb.jpg",130,195,5);thumbnails[5349751]=new thumbnail(5349751,"301121","Alex Lipinski","3796515377_efbdd6bf13_thumb.jpg",130,195,5);thumbnails[5349753]=new thumbnail(5349753,"301121","Skank Tank performing at Footprint Competition, Playhouse","3541949955_d113736eed_thumb.jpg",130,195,5);thumbnails[5349755]=new thumbnail(5349755,"301121","Skank Tank live @ Pittball Festival '09","3637573735_06868f9e27_thumb.jpg",130,87,5);thumbnails[5349760]=new thumbnail(5349760,"301121","Abie Jones @ Pittball Festival","3638406766_95278b2879_thumb.jpg",130,87,5);thumbnails[5349761]=new thumbnail(5349761,"301121","Harry North performing The Axe Factor, Bristol","3657679163_c9cbe2f8dd_thumb.jpg",130,195,5);thumbnails[5350052]=new thumbnail(5350052,"301121","Adam Lipinski live @ 12-bar Club, London","3225730863_5c4dddf834_thumb.jpg",130,87,5);thumbnails[5350258]=new thumbnail(5350258,"301121","Streetfest UK","3944457907_88720a09ef_thumb.jpg",130,195,5);thumbnails[5351983]=new thumbnail(5351983,"301121","Junkyard Scientists","3637603951_f0df282c02_thumb.jpg",130,212,5);thumbnails[5351986]=new thumbnail(5351986,"301121","Sickwax @ The Pittball Festival","3638434106_60ea556c25_thumb.jpg",130,195,5);thumbnails[5351988]=new thumbnail(5351988,"301121","Paul Shippey from The Fallen Apples","3737034883_9eacfa6256_thumb.jpg",130,195,5);thumbnails[5352293]=new thumbnail(5352293,"301121","Chiller","3760407172_c920712b14_thumb.jpg",130,87,5);thumbnails[5352330]=new thumbnail(5352330,"301121","Alex Lipinski at The Borderline, London","3759575637_01789e1ea8_thumb.jpg",130,87,5);thumbnails[5352333]=new thumbnail(5352333,"301121","Junkyard Scientists @ Pittball Festival","3638419396_49f3e092d4_thumb.jpg",130,87,5);thumbnails[5356444]=new thumbnail(5356444,"301121","BMX","3447699403_57aec90c60_thumb.jpg",130,87,5);thumbnails[5357076]=new thumbnail(5357076,"301121","'House of the flying Slippers' dancing at Streetfest","3944247615_45b89965ac_thumb.jpg",130,61,5);thumbnails[5452120]=new thumbnail(5452120,"301121","Adam Bowers","4323577949_d8b715edb7_thumb.jpg",130,195,5);thumbnails[5570291]=new thumbnail(5570291,"301121","","4395173593_cf1fcf69de_thumb.jpg",130,108,5);thumbnails[5349124]=new thumbnail(5349124,"301122","Sian","sian1_thumb.jpg",130,87,5);thumbnails[5349128]=new thumbnail(5349128,"301122","","thomas6_thumb.jpg",130,87,5);thumbnails[5349249]=new thumbnail(5349249,"301122","Ryan Inglis","ryan5_thumb.jpg",130,87,5);thumbnails[5349256]=new thumbnail(5349256,"301122","Sian","sian18_thumb.jpg",130,193,5);thumbnails[5349356]=new thumbnail(5349356,"301122","Kiss","sian2_thumb.jpg",130,103,5);thumbnails[5349536]=new thumbnail(5349536,"301122","Mario Ellis","mario9_thumb.jpg",130,98,5);thumbnails[5349660]=new thumbnail(5349660,"301122","Terri","4014753424_1f0c6e1271_b_thumb.jpg",130,195,5);thumbnails[5349734]=new thumbnail(5349734,"301122","Sian","4072800606_fe60d2e98a_thumb.jpg",130,195,5);thumbnails[5349737]=new thumbnail(5349737,"301122","Amy","4053236063_9d2dbfb0d4_thumb.jpg",130,195,5);thumbnails[5349739]=new thumbnail(5349739,"301122","Tom Conibear","4050987294_ed5271cf8b_thumb.jpg",130,195,5);thumbnails[5349745]=new thumbnail(5349745,"301122","Sian","4017146467_5840970b9d_thumb.jpg",130,195,5);thumbnails[5350264]=new thumbnail(5350264,"301122","Terri","9930_155498454486_91262169486_2433378_199049_n_thumb.jpg",130,195,5);thumbnails[5350600]=new thumbnail(5350600,"301122","Tom Conibear","4052134139_6e751c6c77_thumb.jpg",130,195,5);thumbnails[5412824]=new thumbnail(5412824,"301122","","4301027027_d32cb9c946_thumb.jpg",130,195,5);thumbnails[5456641]=new thumbnail(5456641,"301122","","4327830326_948a02f771_thumb.jpg",130,108,5);thumbnails[5918756]=new thumbnail(5918756,"301122","Amy-lou","4584082067_345f6b9a8d_thumb.jpg",130,195,5);thumbnails[5918760]=new thumbnail(5918760,"301122","","4582933078_d44ed8ab9e_thumb.jpg",130,195,5);thumbnails[5349358]=new thumbnail(5349358,"301181","Ryan Inglis","edit4_thumb.jpg",130,120,5);thumbnails[5349361]=new thumbnail(5349361,"301181","DJ Bella Beatz","hollinsheadheadhots10007_thumb.jpg",130,87,5);thumbnails[5349643]=new thumbnail(5349643,"301181","Fibre Mic","3660324376_2efe591ff8_thumb.jpg",130,87,5);thumbnails[5349649]=new thumbnail(5349649,"301181","Ryan Inglis","4075186771_8c2d75f951_b_thumb.jpg",130,122,5);thumbnails[5349681]=new thumbnail(5349681,"301181","DJ Bella Beatz","3759579481_f87b05e6e1_thumb.jpg",130,87,5);thumbnails[5349764]=new thumbnail(5349764,"301181","Lenny Savage","3447741297_31d55df20d_thumb.jpg",130,195,5);thumbnails[5350141]=new thumbnail(5350141,"301181","Mario Ellis","4012436410_cecbd1ba0f_thumb.jpg",130,195,5);thumbnails[5350214]=new thumbnail(5350214,"301181","DJ Bella Beatz","3676016550_44c3772853_thumb.jpg",130,195,5);thumbnails[5358358]=new thumbnail(5358358,"301181","Alex Lipinski Album Cover","3051027878_d3d929d5a9_1_thumb.jpg",130,106,5);thumbnails[5358360]=new thumbnail(5358360,"301181","Promo Shoot for The Alex Lipinski Band @ Grove Park","3050991820_a85e173751_1_thumb.jpg",130,98,5);thumbnails[5415932]=new thumbnail(5415932,"301181","","4304274860_01a61e2154_thumb.jpg",130,96,5);thumbnails[5422975]=new thumbnail(5422975,"301181","","4304191279_3fec046128_thumb.jpg",130,77,5);thumbnails[5456639]=new thumbnail(5456639,"301181","","4327798611_957d1c4bbf_thumb.jpg",130,107,5);thumbnails[5998361]=new thumbnail(5998361,"301181","Skank Tank","4619076495_a73eb4a48b_thumb.jpg",130,87,5);thumbnails[5998365]=new thumbnail(5998365,"301181","Skank Tank","4621246651_005ef4c10c_thumb.jpg",130,87,5);thumbnails[5998369]=new thumbnail(5998369,"301181","","4625300352_015c32613a_thumb.jpg",130,108,5);thumbnails[6115202]=new thumbnail(6115202,"301181","The Emperials","4677885043_668345d0bf_thumb.jpg",130,195,5);thumbnails[6525468]=new thumbnail(6525468,"301181","Corinna Jane","4885119898_15a7a0f1d5_thumb.jpg",130,195,5);thumbnails[5349934]=new thumbnail(5349934,"301234","Backstage","3944947607_ab7eafdd8e_thumb.jpg",130,195,5);thumbnails[5349937]=new thumbnail(5349937,"301234","Mic & Drum","3943887127_4cbf006ec61_thumb.jpg",130,195,5);thumbnails[5349938]=new thumbnail(5349938,"301234","Drum Stool","3941056953_ca1254755b1_thumb.jpg",130,87,5);thumbnails[5349940]=new thumbnail(5349940,"301234","'59 Mic","3809224107_45e5c4d89c1_thumb.jpg",130,87,5);thumbnails[5349941]=new thumbnail(5349941,"301234","Snare Drum & Mic","3796602531_e482f5e9e61_thumb.jpg",130,87,5);thumbnails[5350031]=new thumbnail(5350031,"301234","Tuning Snare Drum","3944272376_b39d881237_thumb.jpg",130,87,5);thumbnails[5350032]=new thumbnail(5350032,"301234","Drum Pedal","3797410594_a177521b15_thumb.jpg",130,87,5);thumbnails[5350033]=new thumbnail(5350033,"301234","Trombone","3723990655_15c0747f50_thumb.jpg",130,87,5);thumbnails[5350140]=new thumbnail(5350140,"301234","Bass Head","3720865894_55503a82a9_thumb.jpg",130,195,5);thumbnails[5350230]=new thumbnail(5350230,"301234","Drum Pedals","3944404332_64c99e135a_thumb.jpg",130,195,5);thumbnails[5356614]=new thumbnail(5356614,"301234","Stage Lighting","3797406750_24e983bdcd_1_thumb.jpg",130,87,5);thumbnails[5356981]=new thumbnail(5356981,"301234","","3759605007_399dab0f9b_thumb.jpg",130,195,5);thumbnails[5643777]=new thumbnail(5643777,"301234","","4433232256_08c8575f1a_thumb.jpg",130,87,5);thumbnails[5643863]=new thumbnail(5643863,"301234","","4433228018_5a61c3c8f0_thumb.jpg",130,108,5);thumbnails[5643911]=new thumbnail(5643911,"301234","","4433225276_3b94af7f5d_thumb.jpg",130,108,5);thumbnails[5643981]=new thumbnail(5643981,"301234","","4432280363_76da6dba09_thumb.jpg",130,108,5);thumbnails[5644040]=new thumbnail(5644040,"301234","","4432950058_ee26f314e6_thumb.jpg",130,108,5);thumbnails[5644041]=new thumbnail(5644041,"301234","","4432068755_71998e5967_thumb.jpg",130,108,5);thumbnails[5644043]=new thumbnail(5644043,"301234","","4413918429_dc57116d17_thumb.jpg",130,207,5);thumbnails[5841901]=new thumbnail(5841901,"301234","Adam Chetland, Db's Weston-Super-Mare","4511498316_96c9e9f562_thumb.jpg",130,108,5);thumbnails[5842564]=new thumbnail(5842564,"301234","","3797346294_432103d6f0_thumb.jpg",130,87,5);thumbnails[5931316]=new thumbnail(5931316,"301234","","4591924009_d974209d19_thumb.jpg",130,195,5);thumbnails[5931318]=new thumbnail(5931318,"301234","","4592466122_ef49974199_thumb.jpg",130,108,5);thumbnails[5931319]=new thumbnail(5931319,"301234","","4592575096_e272177eda_thumb.jpg",130,108,5);thumbnails[5931321]=new thumbnail(5931321,"301234","","4592632758_ac7d088974_thumb.jpg",130,108,5);thumbnails[5350045]=new thumbnail(5350045,"301233","In the studio with Lenny Savage","3760495413_85fa542015_thumb.jpg",130,56,5);thumbnails[5350046]=new thumbnail(5350046,"301233","In the studio with Lenny Savage","3761298926_4bedd3c403_thumb.jpg",130,56,5);thumbnails[5350047]=new thumbnail(5350047,"301233","Tony Hobden, Music Producer","3761267588_64781df79b_thumb.jpg",130,166,5);thumbnails[5350057]=new thumbnail(5350057,"301233","Tim Sweet & Lipinski Brothers","3583742652_50ced7f133_thumb.jpg",130,87,5);thumbnails[5350135]=new thumbnail(5350135,"301233","Robert Michael Clarke","3660308898_9d5e3daa12_thumb.jpg",130,87,5);thumbnails[5350138]=new thumbnail(5350138,"301233","Robert Michael Clarke","3659510363_84778ffa1e_thumb.jpg",130,195,5);thumbnails[5350143]=new thumbnail(5350143,"301233","Tim Price","3583011067_0a2e481fba_thumb.jpg",130,195,5);thumbnails[5350144]=new thumbnail(5350144,"301233","Skank Tank (Backstage) @ Streetfest '09","3945591005_742d4cfbb5_thumb.jpg",130,87,5);thumbnails[5350215]=new thumbnail(5350215,"301233","The Borderline, London","4073034392_665dcc1c1b_thumb.jpg",130,114,5);thumbnails[5357169]=new thumbnail(5357169,"301233","Backstage at Unsigned Music Live","3797354858_9170915bb5_thumb.jpg",130,87,5);thumbnails[5644044]=new thumbnail(5644044,"301233","","4414502278_e194fe1c2b_thumb.jpg",130,108,5);thumbnails[5842542]=new thumbnail(5842542,"301233","Lenny Savage in the studio.","3761268072_3b31d2e259_thumb.jpg",130,166,5);thumbnails[5842558]=new thumbnail(5842558,"301233","Tom Bullimore","24961_380176544486_91262169486_3499487_6619222_n_thumb.jpg",130,195,5);thumbnails[5842559]=new thumbnail(5842559,"301233","Miss Skarlet, outside DB's, Weston-Super-Mare","24961_380176794486_91262169486_3499494_6684483_n_thumb.jpg",130,87,5);thumbnails[5931322]=new thumbnail(5931322,"301233","Miss Skarlet","4511564760_e0c4f4e343_thumb.jpg",130,166,5);var galleries=new Object();galleries[301121]=new gallery(301121,"5350258,5350052,5349761,5349760,5349755,5349753,5349751,5349750,5349748,5349744","Live Music/Events","section360349",[5349744,5349748,5349750,5349751,5349753,5349755,5349760,5349761,5350052,5350258,5351983,5351986,5351988,5352293,5352330,5352333,5356444,5357076,5452120,5570291]);galleries[301122]=new gallery(301122,"5350264,5349745,5349739,5349737,5349734,5349536","Studio Photography","section360348",[5349124,5349128,5349249,5349256,5349356,5349536,5349660,5349734,5349737,5349739,5349745,5350264,5350600,5412824,5456641,5918756,5918760]);galleries[301181]=new gallery(301181,"5350214,5349764,5349643,5349361","Promos","section360350",[5349358,5349361,5349643,5349649,5349681,5349764,5350141,5350214,5358358,5358360,5415932,5422975,5456639,5998361,5998365,5998369,6115202,6525468]);galleries[301234]=new gallery(301234,"5350230,5350033,5350032,5350031,5349941,5349940,5349937","Art","gallery",[5349934,5349937,5349938,5349940,5349941,5350031,5350032,5350033,5350140,5350230,5356614,5356981,5643777,5643863,5643911,5643981,5644040,5644041,5644043,5841901,5842564,5931316,5931318,5931319,5931321]);galleries[301233]=new gallery(301233,"5350047,5350046","Documentary","section360351",[5350045,5350046,5350047,5350057,5350135,5350138,5350143,5350144,5350215,5357169,5644044,5842542,5842558,5842559,5931322]);var imageSets=new Object();imageSets[1]="6525468,6115202,5998369,5998365,5998361,5931322,5931321,5931319,5931318,5931316,5918760,5918756,5842564,5842559,5842558,5842542,5841901,5644044,5644043,5644041,5644040,5643981,5643911,5643863,5643777,5570291,5456641,5456639,5452120,5422975,5415932,5412824,5358360,5358358,5357169,5357076,5356981,5356614,5356444,5352333,5352330,5352293,5351988,5351986,5351983,5350600,5350264,5350258,5350230,5350215";imageSets[2]="5350264,5350258,5350230,5350214,5350052,5350047,5350046,5350033,5350032,5350031,5349941,5349940,5349937,5349764,5349761,5349760,5349755,5349753,5349751,5349750,5349748,5349745,5349744,5349739,5349737,5349734,5349643,5349536,5349361";imageSets[3]="5350230,5349941,5349937,5349681,5349536,5349361";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/kateleephotos/images";break}switch(a){case 1:b="http://www1.clikpic.com/kateleephotos/images";break}switch(a){case 2:b="http://admin.clikpic.com/kateleephotos/images";break}switch(a){case 24:b="http://tpc15/clikpic/kateleephotos/images";break}switch(a){case 4:b="http://www.clikchurch.com/kateleephotos/images";break}switch(a){case 5:b="http://www2.clikpic.com/kateleephotos/images";break}switch(a){case 22:b="http://tpc5/clikpic/kateleephotos/images";break}switch(a){case 23:b="http://tpc10/clikpic/kateleephotos/images";break}switch(a){case 25:b="http://tpc16/clikpic/kateleephotos/images";break}switch(a){case 15:b="http://www3.clikpic.com/kateleephotos/images";break}switch(a){case 18:b="http://www4.clikpic.com/kateleephotos/images";break}switch(a){case 19:b="http://www5.clikpic.com/kateleephotos/images";break}switch(a){case 31:b="http://www7.clikpic.com/kateleephotos/images";break}switch(a){case 32:b="http://admin2.clikpic.com/kateleephotos/images";break}switch(a){case 33:b="http://www8.clikpic.com/kateleephotos/images";break}switch(a){case 34:b="http://www9.clikpic.com/kateleephotos/images";break}switch(a){case 35:b="http://admin3.clikpic.com/kateleephotos/images";break}switch(a){case 37:b="http://admin4.clikpic.com/kateleephotos/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("section360348"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section360348.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("section360348"!=""){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="KLEE Photography: "+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].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> 				&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="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+'<form id="paymentForm" style="margin:0px;border:0px;" name="paymentForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="item_name" value="'+e+'">';ref="";if(c.photo_ref!=""){ref=c.photo_ref+" - "+c.caption}else{ref=c.id+" - "+c.caption}price=d;b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="currency_code" value="GBP">';b=b+'<input type="hidden" name="add" value="1">';b=b+'<input type="hidden" name="amount" value="'+d+'">';b=b+'<input type="hidden" name="item_number" value="'+ref+'">';b=b+'<input type="Submit" value="Add to cart" id="paymentAddButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";b=b+'<form id="paymentCartForm" style="margin:0px;" name="paymentCartForm" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post">';b=b+'<input type="hidden" name="cmd" value="_cart">';b=b+'<input type="hidden" name="business" value="">';b=b+'<input type="hidden" name="display" value="1">';b=b+'<input type="Submit" value="View cart" id="paymentViewButton" class="button" onmouseover="this.className=\'buttonHi\';" onmouseout="this.className=\'button\';">';b=b+"</form>";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<200){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+'")'})}}};