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[4691681]=new thumbnail(4691681,"","please email me with any changes ","Rifat_taj_thumb.jpg",130,191,5);thumbnails[5429000]=new thumbnail(5429000,"269930","","IMAG0396_thumb.jpg",130,217,5);thumbnails[5429002]=new thumbnail(5429002,"269930","","IMAG0392_thumb.jpg",130,78,5);thumbnails[5429003]=new thumbnail(5429003,"269930","","IMAG0393_thumb.jpg",130,78,5);thumbnails[5429004]=new thumbnail(5429004,"269930","","IMAG0395_thumb.jpg",130,217,5);thumbnails[5429012]=new thumbnail(5429012,"269930","","IMAG0394_thumb.jpg",130,217,5);thumbnails[5429014]=new thumbnail(5429014,"269930","","IMAG03951_thumb.jpg",130,217,5);thumbnails[5429017]=new thumbnail(5429017,"269930","","IMAG0397_thumb.jpg",130,217,5);thumbnails[5429020]=new thumbnail(5429020,"269930","","IMAG0398_thumb.jpg",130,78,5);thumbnails[5429027]=new thumbnail(5429027,"269930","","IMAG03981_thumb.jpg",130,78,5);thumbnails[5429033]=new thumbnail(5429033,"269930","","IMAG0399_thumb.jpg",130,78,5);thumbnails[5429036]=new thumbnail(5429036,"269930","","IMAG0400_thumb.jpg",130,217,5);thumbnails[5429038]=new thumbnail(5429038,"269930","","IMAG0401_thumb.jpg",130,217,5);thumbnails[5429053]=new thumbnail(5429053,"269930","","IMAG0402_thumb.jpg",130,217,5);thumbnails[5429078]=new thumbnail(5429078,"269930","","IMAG0403_thumb.jpg",130,217,5);thumbnails[2562239]=new thumbnail(2562239,"163443","Name Frame ","STA60495_thumb.JPG",130,98,5);thumbnails[2562283]=new thumbnail(2562283,"163443","Name Frame ","STA60501_thumb.JPG",130,98,5);thumbnails[2562867]=new thumbnail(2562867,"163443","Name Frame ","_wsb_224x161_2-names_thumb.jpg",130,93,5);thumbnails[2650560]=new thumbnail(2650560,"163443","","aaminah_thumb.JPG",130,98,5);thumbnails[2650582]=new thumbnail(2650582,"163443","","Abdullah_thumb.JPG",130,98,5);thumbnails[2650587]=new thumbnail(2650587,"163443","","Amnah_thumb.JPG",130,98,5);thumbnails[2650590]=new thumbnail(2650590,"163443","*CURVED FRAME IS SUPPLIED AT EXTRA CHARGE ","Haleema - shown in curved frame_thumb.JPG",130,98,5);thumbnails[2650615]=new thumbnail(2650615,"163443","","Haroon_thumb.JPG",130,98,5);thumbnails[2650618]=new thumbnail(2650618,"163443","","Iman_thumb.JPG",130,98,5);thumbnails[2650623]=new thumbnail(2650623,"163443","","Joshua (2)_thumb.JPG",130,98,5);thumbnails[2650625]=new thumbnail(2650625,"163443","","Lubna_thumb.JPG",130,98,5);thumbnails[2650627]=new thumbnail(2650627,"163443","NAME FRAME ","Mariam_thumb.JPG",130,98,5);thumbnails[2650628]=new thumbnail(2650628,"163443","","Name Frames_thumb.JPG",130,98,5);thumbnails[2650629]=new thumbnail(2650629,"163443","","Name Frames (2)_thumb.JPG",130,98,5);thumbnails[2650631]=new thumbnail(2650631,"163443","","Newly weds_thumb.JPG",130,98,5);thumbnails[2650632]=new thumbnail(2650632,"163443","","Newlyweds_thumb.JPG",130,98,5);thumbnails[2650634]=new thumbnail(2650634,"163443","","Tahmid_thumb.JPG",130,98,5);thumbnails[2650639]=new thumbnail(2650639,"163443","","Name Frames1_thumb.JPG",130,98,5);thumbnails[2650645]=new thumbnail(2650645,"163443","","Amnah1_thumb.JPG",130,98,5);thumbnails[2983138]=new thumbnail(2983138,"163443","Custom Design Name Frame ","custom frame_thumb.jpg",130,87,5);thumbnails[2562013]=new thumbnail(2562013,"163442","Allah - Kufi ","Allah - Kufi_thumb.JPG",130,93,5);thumbnails[2562072]=new thumbnail(2562072,"163442","Bismillah - Stretch ","A3 poster - STRETCH_thumb.jpg",130,184,5);thumbnails[2615589]=new thumbnail(2615589,"163442","FIRE <br>\r\n<br>\r\nSORRY THIS ITEM HAS NOW SOLD OUT. ","A3 poster - FIRE_thumb.jpg",130,184,5);thumbnails[2621825]=new thumbnail(2621825,"163442","SUMMER ","A3 poster -  SUMMER_thumb.jpg",130,184,5);thumbnails[2621877]=new thumbnail(2621877,"163442","ICE <br>\r\nSORRY THIS ITEM IS NOW SOLD OUT ","A3 poster - ICE_thumb.jpg",130,184,5);thumbnails[2621893]=new thumbnail(2621893,"163442","FOSSIL","A3 poster - Fossil_thumb.jpg",130,184,5);thumbnails[2621918]=new thumbnail(2621918,"163442","AL SHARQ AL AWSAT ","A3 poster - SHARQ_thumb.jpg",130,184,5);thumbnails[2621937]=new thumbnail(2621937,"163442","STREAM","A3 poster - STREAM_thumb.jpg",130,184,5);thumbnails[2650709]=new thumbnail(2650709,"167895","Collaboration with the very talented Teakster ","collaboration4- after_thumb.jpg",130,130,5);thumbnails[2650718]=new thumbnail(2650718,"167895","SLIDE ","SLIDE - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,90,5);thumbnails[2650723]=new thumbnail(2650723,"167895","Dhikr ","Dhikr_thumb.jpg",130,92,5);thumbnails[2650726]=new thumbnail(2650726,"167895","ONLY","ONLY  - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,188,5);thumbnails[2650735]=new thumbnail(2650735,"167895","Divine Sea ","Divine Ocean LRes_thumb.jpg",130,89,5);thumbnails[2650739]=new thumbnail(2650739,"167895","Dream","DREAM - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,90,5);thumbnails[2650743]=new thumbnail(2650743,"167895","ETERNITY","ETERNITY - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,189,5);thumbnails[2650744]=new thumbnail(2650744,"167895","FLOW","FLOW - RAFIAHUSSAIN KAMEL - 300DPI_thumb.jpg",130,90,5);thumbnails[2650781]=new thumbnail(2650781,"167895","Jameel","JAMEEL - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,89,5);thumbnails[2650783]=new thumbnail(2650783,"167895","Madina Glow","madina 1_thumb.jpg",130,191,5);thumbnails[2650785]=new thumbnail(2650785,"167895","ONE","ONE - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,90,5);thumbnails[2650788]=new thumbnail(2650788,"167895","SPECTRUM","SPECTRUM - RAFIA HUSSAIN KAMEL - 300DPI_thumb.jpg",130,90,5);thumbnails[4874031]=new thumbnail(4874031,"167895","AWAKEN ","awaken1_thumb.jpg",130,189,5);thumbnails[4874043]=new thumbnail(4874043,"167895","DEEPEN ","Deepen_thumb.jpg",130,89,5);thumbnails[4874044]=new thumbnail(4874044,"167895","DEPTH ","Depth_thumb.jpg",130,189,5);thumbnails[4874045]=new thumbnail(4874045,"167895","DEVOTION ","devotion_thumb.jpg",130,88,5);thumbnails[4874047]=new thumbnail(4874047,"167895","DIVINE ","divine_thumb.jpg",130,189,5);thumbnails[4874050]=new thumbnail(4874050,"167895","LIFE ","life_thumb.jpg",130,189,5);thumbnails[4874052]=new thumbnail(4874052,"167895","MEDITATION ","meditation_2_thumb.jpg",130,89,5);thumbnails[4874056]=new thumbnail(4874056,"167895","BLESSED ","muhd_thumb.jpg",130,191,5);thumbnails[4874057]=new thumbnail(4874057,"167895","PASSION ","passion_thumb.jpg",130,89,5);thumbnails[4874067]=new thumbnail(4874067,"167895","THOUGHT ","thought_thumb.jpg",130,189,5);thumbnails[4874068]=new thumbnail(4874068,"167895","WARMTH ","warmth_thumb.jpg",130,189,5);thumbnails[3242700]=new thumbnail(3242700,"168014","Centric ","Centric_thumb.jpg",130,218,5);thumbnails[2653233]=new thumbnail(2653233,"168014","Blue Whisper ","shahada whisper2_thumb.jpg",130,67,5);thumbnails[2653245]=new thumbnail(2653245,"168014","Muhamad wa rasul allah ","muhamad wa rasul allah_thumb.jpg",130,153,5);thumbnails[2653254]=new thumbnail(2653254,"168014","Wa La Ghaliba Il Allah - There is no conqueror but Allah <br>\r\nTHIS ITEM HAS BEEN SOLD ","wa la ghaliba_thumb.jpg",130,183,5);thumbnails[2653288]=new thumbnail(2653288,"168014","Allahu Akbar Glass ","Allah_hu_akbar -_thumb.jpg",130,98,5);thumbnails[2596959]=new thumbnail(2596959,"165300","3d eid ball","3d eid ball 1_thumb.jpg",130,92,5);thumbnails[2596960]=new thumbnail(2596960,"165300","Air round","Air round £2_thumb.jpg",130,183,5);thumbnails[2596088]=new thumbnail(2596088,"165300","Earth round","Earth round £2_thumb.jpg",130,183,5);thumbnails[2596090]=new thumbnail(2596090,"165300","eid sphere","sphere 1_thumb.jpg",130,183,5);thumbnails[2596091]=new thumbnail(2596091,"165300","eid star wish","eid star wish 1_thumb.jpg",130,183,5);thumbnails[2596965]=new thumbnail(2596965,"165300","blue bubble 1","blue bubble 1_thumb.jpg",130,183,5);thumbnails[2596092]=new thumbnail(2596092,"165300","eid swirls","swirls 1_thumb.jpg",130,183,5);thumbnails[2596093]=new thumbnail(2596093,"165300","Fire round","Fire round £2_thumb.jpg",130,183,5);thumbnails[2596967]=new thumbnail(2596967,"165300","eid rose diffused green 1","eid rose diffused green 1_thumb.jpg",130,183,5);thumbnails[2596094]=new thumbnail(2596094,"165300","fire shapes","fire shapes 1_thumb.jpg",130,183,5);thumbnails[2596968]=new thumbnail(2596968,"165300","eid rose diffused green light","eid rose diffused green light_thumb.jpg",130,183,5);thumbnails[2596969]=new thumbnail(2596969,"165300","eid rose diffused pink 1","eid rose diffused pink 1_thumb.jpg",130,183,5);thumbnails[2596970]=new thumbnail(2596970,"165300","eid rose diffused red 1","eid rose diffused red 1_thumb.jpg",130,183,5);thumbnails[2596097]=new thumbnail(2596097,"165300","gold stars","gold stars 1_thumb.jpg",130,183,5);thumbnails[2596971]=new thumbnail(2596971,"165300","eid star black red 1","eid star black red 1_thumb.jpg",130,195,5);thumbnails[2596098]=new thumbnail(2596098,"165300","jade whirls","jade whirls 1_thumb.jpg",130,183,5);thumbnails[2596974]=new thumbnail(2596974,"165300","Water round ","Water round £2_thumb.jpg",130,183,5);thumbnails[2596103]=new thumbnail(2596103,"165300","squirls","squirls eid 1_thumb.jpg",130,183,5);thumbnails[2596085]=new thumbnail(2596085,"165302","Air Square","Air Square £2_thumb.jpg",130,183,5);thumbnails[2596086]=new thumbnail(2596086,"165302","blue wave","blue wave shapes eid 1_thumb.jpg",130,183,5);thumbnails[2596087]=new thumbnail(2596087,"165302","dandelion","dandelion £2_thumb.jpg",130,183,5);thumbnails[2596961]=new thumbnail(2596961,"165302","fossil brown ","allah - fossil brown 1_thumb.jpg",130,183,5);thumbnails[2596962]=new thumbnail(2596962,"165302","allah layered","allah layered 1_thumb.jpg",130,183,5);thumbnails[2596089]=new thumbnail(2596089,"165302","Earth Square","Earth Square £2_thumb.jpg",130,183,5);thumbnails[2596963]=new thumbnail(2596963,"165302","allah maze blue 1","allah maze blue 1_thumb.jpg",130,183,5);thumbnails[2596964]=new thumbnail(2596964,"165302","bismillah circle purple 1","bismillah circle purple 1_thumb.jpg",130,183,5);thumbnails[2596966]=new thumbnail(2596966,"165302","blue rose ","blue rose £2_thumb.jpg",130,183,5);thumbnails[2596095]=new thumbnail(2596095,"165302","Fire Square","Fire Square £2_thumb.jpg",130,183,5);thumbnails[2596096]=new thumbnail(2596096,"165302","flower ball","flower ball £2_thumb.jpg",130,183,5);thumbnails[2596972]=new thumbnail(2596972,"165302","rose neopolitan","rose neopolitan £2_thumb.jpg",130,183,5);thumbnails[2596099]=new thumbnail(2596099,"165302","JazakAllah sun","JazakAllah sun 1_thumb.jpg",130,195,5);thumbnails[2596973]=new thumbnail(2596973,"165302","Rubies 1","Rubies 1_thumb.jpg",130,183,5);thumbnails[2596100]=new thumbnail(2596100,"165302","rosa neopolitan","colours roses £2_thumb.jpg",130,183,5);thumbnails[2596101]=new thumbnail(2596101,"165302","rose","rose £2_thumb.jpg",130,183,5);thumbnails[2596104]=new thumbnail(2596104,"165302","star twirls","star twirls 1_thumb.jpg",130,183,5);thumbnails[2596105]=new thumbnail(2596105,"165302","Water Square","Water Square £2_thumb.jpg",130,183,5);var galleries=new Object();galleries[188822]=new gallery(188822,"","Business Design ","gallery",[]);galleries[269930]=new gallery(269930,"5429078,5429053,5429038,5429036,5429033,5429027,5429020,5429017,5429014,5429012","NatashaButt ","gallery",[5429000,5429002,5429003,5429004,5429012,5429014,5429017,5429020,5429027,5429033,5429036,5429038,5429053,5429078]);galleries[163443]=new gallery(163443,"2650645,2650639,2650634,2650632,2650631,2650629,2650628,2650627,2650625,2650623,2650618,2562867","Name Frames","gallery",[2562239,2562283,2562867,2650560,2650582,2650587,2650590,2650615,2650618,2650623,2650625,2650627,2650628,2650629,2650631,2650632,2650634,2650639,2650645,2983138]);galleries[163442]=new gallery(163442,"2621918,2621893,2621877,2621825,2615589,2562013","Posters","gallery",[2562013,2562072,2615589,2621825,2621877,2621893,2621918,2621937]);galleries[167895]=new gallery(167895,"2650788,2650785,2650783,2650781,2650744,2650743,2650739,2650735,2650726,2650723,2650718,2650709","Digital Art ","gallery",[2650709,2650718,2650723,2650726,2650735,2650739,2650743,2650744,2650781,2650783,2650785,2650788,4874031,4874043,4874044,4874045,4874047,4874050,4874052,4874056,4874057,4874067,4874068]);galleries[165298]=new gallery(165298,"2596974,2596962,2596105,2596104,2596103,2596100,2596099,2596097,2596095,2596086","Greeting Cards ","gallery",[]);galleries[168014]=new gallery(168014,"3242700,2653245,2653233","Paintings ","gallery",[3242700,2653233,2653245,2653254,2653288]);galleries[165300]=new gallery(165300,"2596974,2596103,2596097","Eid Cards ","gallery",[2596959,2596960,2596088,2596090,2596091,2596965,2596092,2596093,2596967,2596094,2596968,2596969,2596970,2596097,2596971,2596098,2596974,2596103]);galleries[165302]=new gallery(165302,"2596962,2596105,2596104,2596100,2596099,2596095,2596086","All Occassion Cards ","gallery",[2596085,2596086,2596087,2596961,2596962,2596089,2596963,2596964,2596966,2596095,2596096,2596972,2596099,2596973,2596100,2596101,2596104,2596105]);var imageSets=new Object();imageSets[126551]="2650645,2650639,2650634,2650632,2650631,2650629,2650628,2650627,2650625,2650623,2650618,2650615,2650590,2650587,2650582,2650560,2562867,2562283,2562239";imageSets[232175]="2650582";imageSets[232863]="4874068,4874067,4874057,4874056,4874052,4874050,4874047,4874045,4874044,4874043,4874031";imageSets[1]="4874068,4874067,4874056,4874052,4874050,4874047,4874045,4874044,4874043,4874031,2650726,2650723,2650639,2650629";imageSets[2]="3242700,2653245,2653233,2650788,2650785,2650783,2650781,2650744,2650743,2650739,2650735,2650726,2650723,2650718,2650709,2650645,2650639,2650634,2650632,2650631,2650629,2650628,2650627,2650625,2650623,2650618,2621918,2621893,2621877,2621825,2615589,2596974,2596962,2596105,2596104,2596103,2596100,2596099,2596097,2596095,2596086,2562867,2562013";imageSets[3]="4874068,4874067,4874057,4874056,4874052,4874050,4874047,4874045,4874044,4874043,4874031,4691681,3242700,2983138,2653288,2653254,2653245,2653233,2650788,2650785,2650783,2650781,2650744,2650743,2650739,2650735,2650726,2650723,2650718,2650709,2650645,2650639,2650634,2650632,2650631,2650629,2650628,2650627,2650625,2650623,2650618,2650615,2650590,2650587,2650582,2650560,2621937,2621918,2621893,2621877";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/MAHEL/images";break}switch(a){case 1:b="http://www1.clikpic.com/MAHEL/images";break}switch(a){case 2:b="http://admin.clikpic.com/MAHEL/images";break}switch(a){case 24:b="http://tpc15/clikpic/MAHEL/images";break}switch(a){case 4:b="http://www.clikchurch.com/MAHEL/images";break}switch(a){case 5:b="http://www2.clikpic.com/MAHEL/images";break}switch(a){case 22:b="http://tpc5/clikpic/MAHEL/images";break}switch(a){case 23:b="http://tpc10/clikpic/MAHEL/images";break}switch(a){case 25:b="http://tpc16/clikpic/MAHEL/images";break}switch(a){case 15:b="http://www3.clikpic.com/MAHEL/images";break}switch(a){case 18:b="http://www4.clikpic.com/MAHEL/images";break}switch(a){case 19:b="http://www5.clikpic.com/MAHEL/images";break}switch(a){case 31:b="http://www7.clikpic.com/MAHEL/images";break}switch(a){case 32:b="http://admin2.clikpic.com/MAHEL/images";break}switch(a){case 33:b="http://www8.clikpic.com/MAHEL/images";break}switch(a){case 34:b="http://www9.clikpic.com/MAHEL/images";break}switch(a){case 35:b="http://admin3.clikpic.com/MAHEL/images";break}switch(a){case 37:b="http://admin4.clikpic.com/MAHEL/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="MAHEL                            A Palace of Ideas: "+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>Artist </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 </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="MAHEL">';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+'")'})}}};