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[2010808]=new thumbnail(2010808,"","","ozstock btn_thumb.jpg",130,44,15);thumbnails[2178250]=new thumbnail(2178250,"","Ozimages International banner","logo_black_thumb.jpg",130,25,15);thumbnails[5268009]=new thumbnail(5268009,"","Wet Tropics combination","combo2_thumb.jpg",130,131,15);thumbnails[2054933]=new thumbnail(2054933,"121791","Rainbow","atherton 157_thumb.jpg",130,87,15);thumbnails[2054934]=new thumbnail(2054934,"121791","Firetail","gypsy4042_thumb.jpg",130,87,15);thumbnails[1838330]=new thumbnail(1838330,"121791","I Spy","gypsy4010_thumb.jpg",130,87,15);thumbnails[1830110]=new thumbnail(1830110,"121791","Flight home","17c1_thumb.jpg",130,84,15);thumbnails[2055041]=new thumbnail(2055041,"121791","On Parade","gypsy4015_thumb.jpg",130,87,15);thumbnails[2055044]=new thumbnail(2055044,"121791","Partners","gypsy458_thumb.jpg",130,87,15);thumbnails[2054930]=new thumbnail(2054930,"121791","White-breasted Sea-Eagle","gypsy4045_thumb.jpg",130,87,15);thumbnails[1830386]=new thumbnail(1830386,"121791","Blowing Bubbles","gypsy401_thumb.jpg",130,87,15);thumbnails[1832818]=new thumbnail(1832818,"121791","Don't Disturb","gypsy4057_thumb.jpg",130,87,15);thumbnails[2055022]=new thumbnail(2055022,"121791","Grazing","_MG_0109_thumb.jpg",130,87,15);thumbnails[1832816]=new thumbnail(1832816,"121791","Sorry!","gypsy450_thumb.jpg",130,87,15);thumbnails[1829824]=new thumbnail(1829824,"121791","Swamp wallaby","athert1_thumb.jpg",130,87,15);thumbnails[2054960]=new thumbnail(2054960,"121791","What a Poser","monitor_thumb.jpg",130,87,15);thumbnails[1832815]=new thumbnail(1832815,"121791","Watching","420743sm1_thumb.jpg",130,87,15);thumbnails[2054988]=new thumbnail(2054988,"121791","Going Walkabout","gypsy426_thumb.jpg",130,87,15);thumbnails[2054931]=new thumbnail(2054931,"121791","Exposed","gypsy468_thumb.jpg",130,143,15);thumbnails[1832826]=new thumbnail(1832826,"121791","Leap","gypsy467_thumb.jpg",130,172,15);thumbnails[1838392]=new thumbnail(1838392,"121791","Hugtime","gypsy416_thumb.jpg",130,195,15);thumbnails[6224429]=new thumbnail(6224429,"137507","Fly eye view","fly_thumb.jpg",130,95,15);thumbnails[2057401]=new thumbnail(2057401,"137507","Honey Worker","429736sm_thumb.jpg",130,96,15);thumbnails[2057437]=new thumbnail(2057437,"137507","Red Dragonfly","_MG_0328_thumb.jpg",130,87,15);thumbnails[2277926]=new thumbnail(2277926,"137507","Oleander Butterfly","427077_thumb.jpg",130,87,15);thumbnails[2057449]=new thumbnail(2057449,"137507","Hercules Moth","hercules_thumb.jpg",130,98,15);thumbnails[2057451]=new thumbnail(2057451,"137507","Windows in Velvet","herc2a1_thumb.jpg",130,87,15);thumbnails[2277909]=new thumbnail(2277909,"137507","Huntsman Spider","426666sm2_thumb.jpg",130,87,15);thumbnails[2277852]=new thumbnail(2277852,"137507","Hover Fly","b_hover_thumb.jpg",130,89,15);thumbnails[2277856]=new thumbnail(2277856,"137507","Spitfire grubs","IMG_8088sm_thumb.jpg",130,87,15);thumbnails[2277870]=new thumbnail(2277870,"137507","Paper Wasps","426670a_thumb.jpg",130,87,15);thumbnails[2277872]=new thumbnail(2277872,"137507","Tussock Moth Caterpillar","429735lg_thumb.jpg",130,87,15);thumbnails[2277874]=new thumbnail(2277874,"137507","Giant Hedge Grasshopper","gr2_desk_thumb.jpg",130,87,15);thumbnails[2277857]=new thumbnail(2277857,"137507","Cherrynose Cicada","c2_thumb.jpg",130,87,15);thumbnails[2277876]=new thumbnail(2277876,"137507","Robber Fly","IMG_7907_robber_flyadj1_thumb.jpg",130,87,15);thumbnails[2277878]=new thumbnail(2277878,"137507","Cairns Birdwing","birdwing1_thumb.jpg",130,87,15);thumbnails[1812722]=new thumbnail(1812722,"121803","Rainforest Retreat","harris319_thumb.jpg",130,98,15);thumbnails[1830346]=new thumbnail(1830346,"121803","Heart of a Billabong","gypsy005_thumb.jpg",130,87,15);thumbnails[1830385]=new thumbnail(1830385,"121803","Whitsunday Wanderings","gypsy061_thumb.jpg",130,106,15);thumbnails[1830404]=new thumbnail(1830404,"121803","Tropical wetlands","gypsy053_thumb.jpg",130,87,15);thumbnails[1832806]=new thumbnail(1832806,"121803","River Dreaming","gypsy054_thumb.jpg",130,87,15);thumbnails[1832825]=new thumbnail(1832825,"121803","Landing","gypsy038_thumb.jpg",130,87,15);thumbnails[2181269]=new thumbnail(2181269,"121803","Pool of Beauty","gypsy021_thumb.jpg",130,87,15);thumbnails[2181284]=new thumbnail(2181284,"121803","In the Spotlight","gypsy060_thumb.jpg",130,87,15);thumbnails[2181297]=new thumbnail(2181297,"121803","Tidal Mangroves","gypsy2029_thumb.jpg",130,98,15);thumbnails[1829846]=new thumbnail(1829846,"121806","Ghost Gum","gypsy044_thumb.jpg",130,87,15);thumbnails[1830191]=new thumbnail(1830191,"121806","Bleached Bones","gypsy012_thumb.jpg",130,87,15);thumbnails[1830398]=new thumbnail(1830398,"121806","Looking Back","gypsy015_thumb.jpg",130,87,15);thumbnails[1830622]=new thumbnail(1830622,"121806","Shifting Sands","gypsy007_thumb.jpg",130,87,15);thumbnails[1832805]=new thumbnail(1832805,"121806","Wandering","gypsy041_thumb.jpg",130,85,15);thumbnails[1832807]=new thumbnail(1832807,"121806","Sunkissed","gypsy031_thumb.jpg",130,87,15);thumbnails[2010781]=new thumbnail(2010781,"121806","Lace Fringe at Sunrise","gypsy025a_thumb.jpg",130,87,15);thumbnails[2010782]=new thumbnail(2010782,"121806","River Dreams","IMG_5978b_thumb.jpg",130,87,15);thumbnails[2010783]=new thumbnail(2010783,"121806","Mist on the Farm","IMG_4274_thumb.jpg",130,87,15);thumbnails[2738070]=new thumbnail(2738070,"121806","City Tour","435763sm_thumb.jpg",130,87,15);thumbnails[2738092]=new thumbnail(2738092,"121806","Twelve Apostles","439515sm_thumb.jpg",130,87,15);thumbnails[2738116]=new thumbnail(2738116,"121806","Remote & restful","438916sm_thumb.jpg",130,84,15);thumbnails[1829984]=new thumbnail(1829984,"121804","Illumination","gypsy508_thumb.jpg",130,87,15);thumbnails[1830349]=new thumbnail(1830349,"121804","Hope","gypsy025_thumb.jpg",130,87,15);thumbnails[1832809]=new thumbnail(1832809,"121804","Serenity","gypsy0011_thumb.jpg",130,87,15);thumbnails[1832810]=new thumbnail(1832810,"121804","Tranquility","gypsy023_thumb.jpg",130,92,15);thumbnails[1832811]=new thumbnail(1832811,"121804","Peace","gypsy066_thumb.jpg",130,90,15);thumbnails[1832812]=new thumbnail(1832812,"121804","Reflection","gypsy011_thumb.jpg",130,87,15);thumbnails[2181207]=new thumbnail(2181207,"121804","Fascination","gypsy504_thumb.jpg",130,87,15);thumbnails[2181208]=new thumbnail(2181208,"121804","Anticipation","IMG_5978_thumb.jpg",130,87,15);thumbnails[2181227]=new thumbnail(2181227,"121804","Evening Fire","darwin11_thumb.jpg",130,87,15);thumbnails[1829930]=new thumbnail(1829930,"121805","The Ghan","gypsy518_thumb.jpg",130,98,15);thumbnails[1830022]=new thumbnail(1830022,"121805","Winding road","gypsy524_thumb.jpg",130,87,15);thumbnails[1830406]=new thumbnail(1830406,"121805","Riverboat","gypsy514_thumb.jpg",130,87,15);thumbnails[1832808]=new thumbnail(1832808,"121805","Parked","gypsy521_thumb.jpg",130,87,15);thumbnails[1832820]=new thumbnail(1832820,"121805","Truckies' Test","lake ballard 113_thumb.jpg",130,87,15);thumbnails[1832822]=new thumbnail(1832822,"121805","Waiting","gypsy507_thumb.jpg",130,87,15);thumbnails[1838276]=new thumbnail(1838276,"121805","Roadtrains Rule","barkly_395a_thumb.jpg",130,87,15);thumbnails[1838277]=new thumbnail(1838277,"121805","Wagon wheels","grampians4_thumb.jpg",130,87,15);thumbnails[1838281]=new thumbnail(1838281,"121805","Hoofing It","gypsy232_thumb.jpg",130,87,15);thumbnails[2366513]=new thumbnail(2366513,"123628","Tropical Shower","421281_thumb.jpg",130,87,15);thumbnails[1838313]=new thumbnail(1838313,"123628","Fun!","gypsy135_thumb.jpg",130,87,15);thumbnails[1838324]=new thumbnail(1838324,"123628","Mud bath","gypsy133_thumb.jpg",130,107,15);thumbnails[1838325]=new thumbnail(1838325,"123628","Worn Out","wallaroo_mines_011e1_thumb.jpg",130,87,15);thumbnails[1838329]=new thumbnail(1838329,"123628","Girl Power","gypsy103_thumb.jpg",130,87,15);thumbnails[1838328]=new thumbnail(1838328,"123628","The Hat","gypsy110_thumb.jpg",130,87,15);var galleries=new Object();galleries[121791]=new gallery(121791,"2055044,2055041,2055022,2054988,2054960,2054934,2054933,2054931,2054930,1838392,1838330,1832826,1832818,1832816,1832815,1830386,1830110,1829824","Aussie Wildlife","gallery",[2054933,2054934,1838330,1830110,2055041,2055044,2054930,1830386,1832818,2055022,1832816,1829824,2054960,1832815,2054988,2054931,1832826,1838392]);galleries[137507]=new gallery(137507,"2277926,2277878,2277876,2277874,2277870,2277856,2277852,2057451,2057449,2057437,2057401","Insect World","gallery",[6224429,2057401,2057437,2277926,2057449,2057451,2277909,2277852,2277856,2277870,2277872,2277874,2277857,2277876,2277878]);galleries[121803]=new gallery(121803,"2181297,2181284,2181269,1832825,1832806,1830404,1830385,1830346,1812722","Precious Water","gallery",[1812722,1830346,1830385,1830404,1832806,1832825,2181269,2181284,2181297]);galleries[121806]=new gallery(121806,"2738116,2738092,2010783,2010782,2010781,1832807,1832805,1830622,1830398,1830191,1829846","All Over Oz","gallery",[1829846,1830191,1830398,1830622,1832805,1832807,2010781,2010782,2010783,2738070,2738092,2738116]);galleries[121804]=new gallery(121804,"2181227,2181208,2181207,1832812,1832811,1832810,1832809,1830349,1829984","Skyscapes","gallery",[1829984,1830349,1832809,1832810,1832811,1832812,2181207,2181208,2181227]);galleries[121805]=new gallery(121805,"1838281,1832822,1832820,1832808,1830406,1830022,1829930","Moving Aussie-style","gallery",[1829930,1830022,1830406,1832808,1832820,1832822,1838276,1838277,1838281]);galleries[123628]=new gallery(123628,"2366513,1838329,1838328,1838325,1838324,1838313","People Power","gallery",[2366513,1838313,1838324,1838325,1838329,1838328]);var imageSets=new Object();imageSets[1]="2738116,2738092,2738070,2366513,2277926,2277878,2277876,2277870,2277852,2181297,2181284,2181269,2181208,2181207,2057451,2057449,2057437,2057401,2055044,2055041,2055022,2054988,2054960,2054934,2054933,2054931,2054930,2010782,1838330,1838324,1832826,1832825,1832822,1832818,1832815,1832812,1832811,1832810,1832809,1832807,1832806,1830622,1830406,1830404,1830398,1830386,1830385,1830349,1830346,1830191,1829930,1829846,1812722";imageSets[2]="2738116,2738092,2366513,2277926,2277878,2277876,2277874,2277870,2277856,2277852,2181297,2181284,2181269,2181227,2181208,2181207,2057451,2057449,2057437,2057401,2055044,2055041,2055022,2054988,2054960,2054934,2054933,2054931,2054930,2010783,2010782,2010781,1838392,1838330,1838329,1838328,1838325,1838324,1838313,1838281,1832826,1832825,1832822,1832820,1832818,1832816,1832815,1832812,1832811,1832810,1832809,1832808,1832807,1832806,1832805,1830622,1830406,1830404,1830398,1830386,1830385,1830349,1830346,1830191,1830110,1830022,1829984,1829930,1829846,1829824,1812722";imageSets[3]="5268009,2738116,2738092,2738070,2366513,2277926,2277909,2277878,2277876,2277874,2277872,2277870,2277857,2277856,2277852,2181297,2181284,2181269,2181227,2181208,2181207,2178250,2057451,2057449,2057437,2057401,2055044,2055041,2055022,2054988,2054960,2054934,2054933,2054931,2054930,2010808,2010783,2010782,2010781,1838392,1838330,1838329,1838328,1838325,1838324,1838313,1838281,1838277,1838276";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/aussiegypsy/images";break}switch(a){case 1:b="http://www1.clikpic.com/aussiegypsy/images";break}switch(a){case 2:b="http://admin.clikpic.com/aussiegypsy/images";break}switch(a){case 24:b="http://tpc15/clikpic/aussiegypsy/images";break}switch(a){case 4:b="http://www.clikchurch.com/aussiegypsy/images";break}switch(a){case 5:b="http://www2.clikpic.com/aussiegypsy/images";break}switch(a){case 22:b="http://tpc5/clikpic/aussiegypsy/images";break}switch(a){case 23:b="http://tpc10/clikpic/aussiegypsy/images";break}switch(a){case 25:b="http://tpc16/clikpic/aussiegypsy/images";break}switch(a){case 15:b="http://www3.clikpic.com/aussiegypsy/images";break}switch(a){case 18:b="http://www4.clikpic.com/aussiegypsy/images";break}switch(a){case 19:b="http://www5.clikpic.com/aussiegypsy/images";break}switch(a){case 31:b="http://www7.clikpic.com/aussiegypsy/images";break}switch(a){case 32:b="http://admin2.clikpic.com/aussiegypsy/images";break}switch(a){case 33:b="http://www8.clikpic.com/aussiegypsy/images";break}switch(a){case 34:b="http://www9.clikpic.com/aussiegypsy/images";break}switch(a){case 35:b="http://admin3.clikpic.com/aussiegypsy/images";break}switch(a){case 37:b="http://admin4.clikpic.com/aussiegypsy/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="All Over Down Under 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> 							"+(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+'")'})}}};
