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[6654478]=new thumbnail(6654478,"352926","","Smoke_thumb.jpg",130,163,18);thumbnails[6654485]=new thumbnail(6654485,"352926","","Viridian_thumb.jpg",130,163,18);thumbnails[6584748]=new thumbnail(6584748,"352926","Reflections","Reflections_thumb.jpg",130,130,18);thumbnails[6519105]=new thumbnail(6519105,"352926","Schwarzenegger in Times Square","Times_Square_thumb.jpg",130,104,18);thumbnails[6457470]=new thumbnail(6457470,"352926","Bovine Skull","Bovine_thumb.jpg",130,104,18);thumbnails[6378838]=new thumbnail(6378838,"352926","Car Wash","Car_Wash_thumb.jpg",130,130,18);thumbnails[6338762]=new thumbnail(6338762,"352926","Toothbrush","Toothpaste_thumb.jpg",130,104,18);thumbnails[5790954]=new thumbnail(5790954,"352926","Manufactured Indulgence_1","Toffee_Apple_thumb.jpg",130,195,18);thumbnails[4375268]=new thumbnail(4375268,"352926","Cups","Cups_thumb.jpg",130,160,18);thumbnails[4375539]=new thumbnail(4375539,"352926","Belly Button","BellyButton_thumb.jpg",130,130,18);thumbnails[4375855]=new thumbnail(4375855,"352926","Aqua Gem","AquaGem_thumb.jpg",130,87,18);thumbnails[4388646]=new thumbnail(4388646,"352926","Glass Dolphins","Dolphins_thumb.jpg",130,173,18);thumbnails[4388647]=new thumbnail(4388647,"352926","Icy Leaf","Icy_Leaf_thumb.jpg",130,165,18);thumbnails[4388650]=new thumbnail(4388650,"352926","Strawberry Splash !","DSCF0123_thumb.jpg",130,208,18);thumbnails[4388651]=new thumbnail(4388651,"352926","Cocktail Splash 1","DSCF0206_thumb.jpg",130,208,18);thumbnails[4388821]=new thumbnail(4388821,"352926","Toohey's EXTRA DRY","Tooheys_thumb.jpg",130,160,18);thumbnails[4388831]=new thumbnail(4388831,"352926","Cuisine","Prawns_thumb.jpg",130,178,18);thumbnails[4388834]=new thumbnail(4388834,"352926","Taylor T-410","Taylor_thumb.jpg",130,160,18);thumbnails[4398094]=new thumbnail(4398094,"352926","Film Ballet","Fil_Ballet_thumb.jpg",130,160,18);thumbnails[4398279]=new thumbnail(4398279,"352926","Frozen Rose","Frozen_Rose_thumb.jpg",130,195,18);thumbnails[4398283]=new thumbnail(4398283,"352926","4X4 Action","4x4_thumb.jpg",130,65,18);thumbnails[4474117]=new thumbnail(4474117,"352926","Fruit Loops","FruitLoops_thumb.jpg",130,173,18);thumbnails[4754062]=new thumbnail(4754062,"352926","BOMBA","BOMBA_thumb.jpg",130,173,18);thumbnails[4979789]=new thumbnail(4979789,"352926","T2 - Terminator","Terminator_thumb.jpg",130,87,18);thumbnails[5449077]=new thumbnail(5449077,"352926","Tooradin Airfield, Victoria. Australia","Tooradinjpg_thumb.jpg",130,80,18);thumbnails[5486285]=new thumbnail(5486285,"352926",'Sub-Zero "Lemon"',"3988969831_405ae10bd4_thumb.jpg",130,166,18);thumbnails[5486298]=new thumbnail(5486298,"352926","Wicked Energy Drink - P&N Beverages","4324264411_a871b5d305_thumb.jpg",130,161,18);thumbnails[6507531]=new thumbnail(6507531,"256993","Young Blood_1","Young_Blood_1_thumb.jpg",130,160,18);thumbnails[6507533]=new thumbnail(6507533,"256993","Young Blood_2","Young_Blood_2_thumb.jpg",130,160,18);thumbnails[6507535]=new thumbnail(6507535,"256993","Young Blood_3","Young_Blood_3_thumb.jpg",130,160,18);thumbnails[6235984]=new thumbnail(6235984,"256993","Rainy Days","Abby_Window_thumb.jpg",130,87,18);thumbnails[5636497]=new thumbnail(5636497,"256993","Abby Rose Nichols - 11 weeks","Abby_triple_thumb.jpg",130,81,18);thumbnails[5625814]=new thumbnail(5625814,"256993","Jonah Nichols","Jonah_4CE7E9ED-1EC9-D45B-1CD75B19FA34B830_thumb.jpg",130,183,18);thumbnails[4897445]=new thumbnail(4897445,"256993","Me and my Kids - Jonah + Kayla","KidsMeCP_thumb.jpg",130,173,18);thumbnails[4375281]=new thumbnail(4375281,"256993","Profile - Self Portrait","Self1_thumb.jpg",130,130,18);thumbnails[4375845]=new thumbnail(4375845,"256993","Simone","Simone_D075E4B3-1D09-001F-99E4101F5BFD1246_thumb.jpg",130,101,18);thumbnails[4375849]=new thumbnail(4375849,"256993","Simone","Simone_thumb.jpg",130,184,18);thumbnails[4375912]=new thumbnail(4375912,"256993","Jonah & Anna","First_Kiss_thumb.jpg",130,104,18);thumbnails[4376317]=new thumbnail(4376317,"256993","Jonah","1446_thumb.jpg",130,86,18);thumbnails[4381116]=new thumbnail(4381116,"256993","Kayla","Kayla_D076E77D-1D09-001F-998321E80E47AA6D_thumb.jpg",130,178,18);thumbnails[4381117]=new thumbnail(4381117,"256993","Kayla","Kayla_thumb.jpg",130,178,18);thumbnails[4381119]=new thumbnail(4381119,"256993","Jonah","Young_Apprentice_thumb.jpg",130,182,18);thumbnails[4381123]=new thumbnail(4381123,"256993","Jonah","Braids_thumb.jpg",130,160,18);thumbnails[4388824]=new thumbnail(4388824,"256993","Anthony","Anthony_thumb.jpg",130,92,18);thumbnails[4388825]=new thumbnail(4388825,"256993","Sarah","Sarah_thumb.jpg",130,102,18);thumbnails[4388826]=new thumbnail(4388826,"256993","Roger","Roger_thumb.jpg",130,182,18);thumbnails[4388828]=new thumbnail(4388828,"256993","Ros","Ros_thumb.jpg",130,169,18);thumbnails[4398089]=new thumbnail(4398089,"256993","Mel & Poppi","MelPoppie_thumb.jpg",130,98,18);thumbnails[4398098]=new thumbnail(4398098,"256993","Day & Richardson Family","P1030858_thumb.jpg",130,173,18);thumbnails[4398101]=new thumbnail(4398101,"256993","Day + Richardson Family","P1030731_thumb.jpg",130,78,18);thumbnails[4398229]=new thumbnail(4398229,"256993","James Family","P1010777_thumb.jpg",130,173,18);thumbnails[4398232]=new thumbnail(4398232,"256993","James Family","P1010788_thumb.jpg",130,98,18);thumbnails[4403972]=new thumbnail(4403972,"256993","Talissa","Talissa_thumb.jpg",130,173,18);thumbnails[4403982]=new thumbnail(4403982,"256993","Cat Ba - Vietnam","Sisters_thumb.jpg",130,98,18);thumbnails[4404186]=new thumbnail(4404186,"256993","LK Diesel Service","LKD_Group_thumb.jpg",130,92,18);thumbnails[5104468]=new thumbnail(5104468,"256993","","R3_20_thumb.jpg",130,104,18);thumbnails[5134552]=new thumbnail(5134552,"256993","","Dubay_thumb.jpg",130,104,18);thumbnails[5461829]=new thumbnail(5461829,"256993","","Sarah_9DC7967C-1D09-001F-99F54EB615F5FB6B_thumb.jpg",130,101,18);thumbnails[5849057]=new thumbnail(5849057,"256993","Kayla","Kayla_33E6B261-1D09-001F-991739357BF96334_thumb.jpg",130,188,18);thumbnails[5849088]=new thumbnail(5849088,"256993","Simone & Abby","SimoneAbby_thumb.jpg",130,201,18);thumbnails[6463627]=new thumbnail(6463627,"256994","Climber on the Fence","Lizard_thumb.jpg",130,104,18);thumbnails[4375269]=new thumbnail(4375269,"256994","Dandelion","Dandilion_thumb.jpg",130,163,18);thumbnails[4375533]=new thumbnail(4375533,"256994","Badger Creek Weir","BadgerWeir_thumb.jpg",130,215,18);thumbnails[4375611]=new thumbnail(4375611,"256994","Craig's Hut, Mt Stirling, Victoria, Australia.","Craigshut_thumb.jpg",130,87,18);thumbnails[4375616]=new thumbnail(4375616,"256994","Rose","Rose_thumb.jpg",130,93,18);thumbnails[4375843]=new thumbnail(4375843,"256994","Autumn Ghost - A self portrait.","Self_Autumn_thumb.jpg",130,78,18);thumbnails[4376284]=new thumbnail(4376284,"256994","Badger Creek Weir, Healsville, Victoria.","BW4_thumb.jpg",130,221,18);thumbnails[4381121]=new thumbnail(4381121,"256994","Hydranger","Hydranger_thumb.jpg",130,87,18);thumbnails[4381122]=new thumbnail(4381122,"256994","Dusk Field","Dusk_Field_thumb.jpg",130,79,18);thumbnails[4388643]=new thumbnail(4388643,"256994","Country Shed, Wangaratta. Victoria, Australia","Rustic_Backyard_thumb.jpg",130,57,18);thumbnails[4388656]=new thumbnail(4388656,"256994","Succulent","Succulent_thumb.jpg",130,89,18);thumbnails[4388658]=new thumbnail(4388658,"256994","Curious Ant","Ant_thumb.jpg",130,88,18);thumbnails[4388660]=new thumbnail(4388660,"256994","Protea","Protea_thumb.jpg",130,160,18);thumbnails[4388670]=new thumbnail(4388670,"256994","Lily","Lily_thumb.jpg",130,130,18);thumbnails[4397052]=new thumbnail(4397052,"256994","Yukka","Yukka_thumb.jpg",130,160,18);thumbnails[4397053]=new thumbnail(4397053,"256994","Sculpture - St Kilda Rd Gardens","Sculpture_thumb.jpg",130,167,18);thumbnails[4397063]=new thumbnail(4397063,"256994","Tulips","Tulips_thumb.jpg",130,92,18);thumbnails[4404075]=new thumbnail(4404075,"256994","Old Pick-Up","Pick-up_thumb.jpg",130,78,18);thumbnails[4481362]=new thumbnail(4481362,"256994","Palm","Palm_thumb.jpg",130,160,18);thumbnails[4481363]=new thumbnail(4481363,"256994","Backyard Triangles","Backyard_triangles_thumb.jpg",130,106,18);thumbnails[5457127]=new thumbnail(5457127,"256994","","Cactusjpg_thumb.jpg",130,130,18);thumbnails[6392590]=new thumbnail(6392590,"256994","Caterpillar's Sculpture","Leaf_thumb.jpg",130,130,18);thumbnails[6392591]=new thumbnail(6392591,"256994","Shaded Falls","Shaded_Falls_thumb.jpg",130,104,18);thumbnails[5875754]=new thumbnail(5875754,"331695","Heaven's Bedroom_#1","H_Bed1_thumb.jpg",130,85,18);thumbnails[5875764]=new thumbnail(5875764,"331695","Heaven's Bedroom_#2","H_Bed2_thumb.jpg",130,87,18);thumbnails[5875767]=new thumbnail(5875767,"331695","Heaven's Bedroom_#3","H_Bed3_thumb.jpg",130,85,18);thumbnails[5875790]=new thumbnail(5875790,"331695","Heaven's Bedroom_#4","H_Bed4_thumb.jpg",130,83,18);thumbnails[5875794]=new thumbnail(5875794,"331695","Heaven's Bedroom_#5","H_Bed5_thumb.jpg",130,81,18);thumbnails[5875801]=new thumbnail(5875801,"331695","Heaven's Bedroom_#6","H_Bed6_thumb.jpg",130,80,18);thumbnails[5875805]=new thumbnail(5875805,"331695","Heaven's Bedroom_#7","H_Bed7_thumb.jpg",130,87,18);thumbnails[5875809]=new thumbnail(5875809,"331695","Heaven's Bedroom_#8","H_Bed8_thumb.jpg",130,87,18);thumbnails[5875814]=new thumbnail(5875814,"331695","Heaven's Bedroom_#9","H_Bed9_thumb.jpg",130,85,18);thumbnails[5879556]=new thumbnail(5879556,"331695","Heaven's Bedroom_#10","H_Bed10_thumb.jpg",130,85,18);thumbnails[5879574]=new thumbnail(5879574,"331695","Heaven's Bedroom_#11","H_Bed11_thumb.jpg",130,87,18);thumbnails[5879577]=new thumbnail(5879577,"331695","Heaven's Bedroom_#12","H_Bed12_thumb.jpg",130,83,18);thumbnails[5879585]=new thumbnail(5879585,"331695","Heaven's Bedroom_#13","H_Bed13_thumb.jpg",130,80,18);thumbnails[5879589]=new thumbnail(5879589,"331695","Heaven's Bedroom_#14","H_Bed14_thumb.jpg",130,83,18);thumbnails[5879597]=new thumbnail(5879597,"331695","Heaven's Bedroom_#15","H_Bed15_thumb.jpg",130,85,18);thumbnails[5879602]=new thumbnail(5879602,"331695","Heaven's Bedroom_#16","H_Bed16_thumb.jpg",130,83,18);thumbnails[5879606]=new thumbnail(5879606,"331695","Heaven's Bedroom_#17","H_Bed17_thumb.jpg",130,84,18);var galleries=new Object();galleries[352926]=new gallery(352926,"6654485,6338762,4474117,4398094","Commercial","gallery",[6654478,6654485,6584748,6519105,6457470,6378838,6338762,5790954,4375268,4375539,4375855,4388646,4388647,4388650,4388651,4388821,4388831,4388834,4398094,4398279,4398283,4474117,4754062,4979789,5449077,5486285,5486298]);galleries[256993]=new gallery(256993,"6507533,5625814,4375281","People & Portraits","gallery",[6507531,6507533,6507535,6235984,5636497,5625814,4897445,4375281,4375845,4375849,4375912,4376317,4381116,4381117,4381119,4381123,4388824,4388825,4388826,4388828,4398089,4398098,4398101,4398229,4398232,4403972,4403982,4404186,5104468,5134552,5461829,5849057,5849088]);galleries[256994]=new gallery(256994,"6463627,6392591,6392590","Landscape & Nature","gallery",[6463627,4375269,4375533,4375611,4375616,4375843,4376284,4381121,4381122,4388643,4388656,4388658,4388660,4388670,4397052,4397053,4397063,4404075,4481362,4481363,5457127,6392590,6392591]);galleries[331695]=new gallery(331695,"5879574","Fine Art Projects: HEAVEN'S BEDROOM","gallery",[5875754,5875764,5875767,5875790,5875794,5875801,5875805,5875809,5875814,5879556,5879574,5879577,5879585,5879589,5879597,5879602,5879606]);var imageSets=new Object();imageSets[1]="6654485,6654478,6584748,6519105,6507535,6507533,6507531,6463627,6457470,6392591,6392590,6378838,6338762,6235984,5849088,5849057,5790954,5636497,5625814,5486298,5486285,5461829,5457127,5449077,5134552,5104468,4979789,4897445,4754062,4481362,4474117,4404075,4403982,4403972,4398283,4398279,4398229,4398101,4398098,4398094,4398089,4397052,4388834,4388831,4388828,4388826,4388825,4388824,4388821,4388670,4388660,4388658,4388656,4388651,4388647,4388646,4388643,4381123,4381122,4381121,4381119,4381117,4381116,4376317,4376284,4375912,4375849,4375843,4375616,4375611,4375539,4375533,4375281,4375269,4375268";imageSets[2]="6654485,6507533,6463627,6392591,6392590,6338762,5879574,5625814,4474117,4398094,4375281";imageSets[3]="6654485,6654478,6584748,6519105,6507535,6507533,6507531,6463627,6457470,6392591,6392590,6378838,6338762,6235984,5879606,5879602,5879597,5879589,5879585,5879577,5879574,5879556,5875814,5875809,5875805,5875801,5875794,5875790,5875767,5875764,5875754,5849088,5849057,5790954,5636497,5625814,5486298,5486285,5461829,5457127,5449077,5134552,5104468,4979789,4897445,4754062,4481363,4481362,4474117,4404186";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/tdn14277/images";break}switch(a){case 1:b="http://www1.clikpic.com/tdn14277/images";break}switch(a){case 2:b="http://admin.clikpic.com/tdn14277/images";break}switch(a){case 24:b="http://tpc15/clikpic/tdn14277/images";break}switch(a){case 4:b="http://www.clikchurch.com/tdn14277/images";break}switch(a){case 5:b="http://www2.clikpic.com/tdn14277/images";break}switch(a){case 22:b="http://tpc5/clikpic/tdn14277/images";break}switch(a){case 23:b="http://tpc10/clikpic/tdn14277/images";break}switch(a){case 25:b="http://tpc16/clikpic/tdn14277/images";break}switch(a){case 15:b="http://www3.clikpic.com/tdn14277/images";break}switch(a){case 18:b="http://www4.clikpic.com/tdn14277/images";break}switch(a){case 19:b="http://www5.clikpic.com/tdn14277/images";break}switch(a){case 31:b="http://www7.clikpic.com/tdn14277/images";break}switch(a){case 32:b="http://admin2.clikpic.com/tdn14277/images";break}switch(a){case 33:b="http://www8.clikpic.com/tdn14277/images";break}switch(a){case 34:b="http://www9.clikpic.com/tdn14277/images";break}switch(a){case 35:b="http://admin3.clikpic.com/tdn14277/images";break}switch(a){case 37:b="http://admin4.clikpic.com/tdn14277/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="Tim Nichols 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].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> 				AU$"+(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="tim.nichols25@yahoo.com.au">';b=b+'<input type="hidden" name="currency_code" value="AUD">';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="tim.nichols25@yahoo.com.au">';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<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+'")'})}}};