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[5116633]=new thumbnail(5116633,"289116","Urban Landscape 1","urban_lanscape_1_Final_thumb.jpg",130,267,18);thumbnails[5116634]=new thumbnail(5116634,"289116","Woolloomoolloo Street","Urban_Lanscape2_thumb.jpg",130,169,18);thumbnails[5116635]=new thumbnail(5116635,"289116","Two & one half","two__half_thumb.jpg",130,100,18);thumbnails[5116637]=new thumbnail(5116637,"289116","Origami 2","Origami_2_thumb.jpg",130,106,18);thumbnails[5116670]=new thumbnail(5116670,"289116","Major Minor","lanscape2_thumb.jpg",130,97,18);thumbnails[5116672]=new thumbnail(5116672,"289116","Shadows","landscape6_thumb.jpg",130,101,18);thumbnails[5116674]=new thumbnail(5116674,"289116","Timberyard","lanscape1_thumb.jpg",130,98,18);thumbnails[5173087]=new thumbnail(5173087,"291899","San Francisco Hydrant - Turquoise","Hydrant_Turquoise_thumb.jpg",130,310,18);thumbnails[5173088]=new thumbnail(5173088,"291899","San Francisco Hydrant - Red ","Hydrant_Red_thumb.jpg",130,308,18);thumbnails[5173089]=new thumbnail(5173089,"291899","Hydrant x 4","Hydrant_x4_thumb.jpg",130,308,18);thumbnails[5173090]=new thumbnail(5173090,"291899","Shadows","Shadows_thumb.jpg",130,135,18);thumbnails[1811853]=new thumbnail(1811853,"24454","Long Journey","Long Journey2_thumb.jpg",130,70,18);thumbnails[1835861]=new thumbnail(1835861,"24454","Somewhere","Somewhere_thumb.jpg",130,129,18);thumbnails[3697339]=new thumbnail(3697339,"24454","Colours 1","the_maddening_crowd_thumb.JPG",130,159,18);thumbnails[325855]=new thumbnail(325855,"24454","Elements series - 6","117 Elements 3_thumb.JPG",130,130,18);thumbnails[531709]=new thumbnail(531709,"24454","Elements - Opal","118 Elements - Opal_thumb.JPG",130,132,18);thumbnails[534761]=new thumbnail(534761,"24454","Elements - Gold Too<br>\r\n","096 Elements Gold Too1_thumb.JPG",130,131,18);thumbnails[460041]=new thumbnail(460041,"24454","Elements - Gold","095 Elements_thumb.JPG",130,131,18);thumbnails[460042]=new thumbnail(460042,"24454","Wild River","100 Wild River_thumb.JPG",130,163,18);thumbnails[645661]=new thumbnail(645661,"24454","Nectar","106_thumb.JPG",130,132,18);thumbnails[275432]=new thumbnail(275432,"24454","Desert Flowers 1","280 Field of flowers3_thumb.JPG",130,103,18);thumbnails[275595]=new thumbnail(275595,"24454","Approaching Storm","264 Approaching Storm_thumb.JPG",130,130,18);thumbnails[3697316]=new thumbnail(3697316,"24454","Shadows","2003_0114Image0005_thumb.JPG",130,98,18);thumbnails[275378]=new thumbnail(275378,"24447","Rusty Buckets","283 Rusty Buckets_thumb.JPG",130,172,18);thumbnails[277857]=new thumbnail(277857,"24447","Mini x 3","C-205-Vast-x-3-PGMV_thumb.jpg",130,70,18);thumbnails[337335]=new thumbnail(337335,"24447","Fusion","271 Dried up City_thumb.JPG",130,96,18);thumbnails[337336]=new thumbnail(337336,"24447","Harbour Bridge Pylon","Southern Pylon_thumb.JPG",98,200,18);thumbnails[3697184]=new thumbnail(3697184,"24447","Distant Window","Distant_Window1_thumb.jpg",130,181,18);thumbnails[3697188]=new thumbnail(3697188,"24447","Cityscape 1","Cityscape_1_thumb.JPG",130,155,18);thumbnails[3697338]=new thumbnail(3697338,"24447","Broken Hill Bound","Self_Direct_3_thumb.JPG",130,157,18);thumbnails[3697344]=new thumbnail(3697344,"24447","Blue Lake","Self_Direct__thumb.JPG",130,195,18);thumbnails[614652]=new thumbnail(614652,"24447","Opal Country","258 Opal Country_thumb.JPG",130,131,18);thumbnails[460043]=new thumbnail(460043,"24447","Vast Series - Five","210 Vast Series -Five_thumb.JPG",130,131,18);thumbnails[277865]=new thumbnail(277865,"24447","Vastness","C 207 Vast 5 PGMV_thumb.3.JPG",130,42,18);thumbnails[277841]=new thumbnail(277841,"24447","Broken Dreams 1","110-Broken-Dreams_thumb.jpg",130,127,18);thumbnails[531711]=new thumbnail(531711,"24447","Red Door - Newtown","304 Red Door_thumb.JPG",130,86,18);thumbnails[275551]=new thumbnail(275551,"24447","Mexican Door","302 Mexican Door_thumb.JPG",130,172,18);thumbnails[275593]=new thumbnail(275593,"24447","Out in the Bush","262 Out in the bush _thumb.JPG",130,104,18);thumbnails[275599]=new thumbnail(275599,"24447","Summer Wave","284 Summer wave1_thumb.JPG",130,93,18);thumbnails[276452]=new thumbnail(276452,"225939","Endless Horizons","C - 362 Endless Horizon_thumb.JPG",130,163,18);thumbnails[3697195]=new thumbnail(3697195,"225939","Me, Myself & my room","2003_0114Image0026_thumb.JPG",130,170,18);thumbnails[4291078]=new thumbnail(4291078,"225939","Quiet Time","Double_Nude_Diptich_thumb.JPG",130,88,18);thumbnails[277854]=new thumbnail(277854,"225942","2 + 1","C---354-2+11_thumb.jpg",130,222,18);thumbnails[3697180]=new thumbnail(3697180,"225942","Red Bottle","2003_0419Image0006_thumb.JPG",130,158,18);thumbnails[4291059]=new thumbnail(4291059,"225942","Tension","Origami_1_thumb.jpg",130,129,18);thumbnails[275606]=new thumbnail(275606,"24455","Escape From","150 Graffitti-Escape From_thumb..JPG",130,100,18);thumbnails[275609]=new thumbnail(275609,"24455","The Street","356 The Street_thumb.JPG",130,172,18);thumbnails[275392]=new thumbnail(275392,"24455","Graffiti 1<br>\r\n","L -Graffitti 11_thumb.JPG",130,65,18);thumbnails[277846]=new thumbnail(277846,"24448","Quadrant","131-Quadrant_thumb.jpg",130,174,18);thumbnails[337347]=new thumbnail(337347,"24448","Fields","123 Fields1_thumb.JPG",130,191,18);thumbnails[343416]=new thumbnail(343416,"24448","Blue 1","G - 124_thumb.JPG",130,166,18);thumbnails[3697335]=new thumbnail(3697335,"24448","Repetition","Grid_5_thumb.JPG",130,261,18);thumbnails[4291107]=new thumbnail(4291107,"107806","Opening Night - Gallery 307 - Abstract Series ","DSCF3085_thumb.JPG",130,98,18);thumbnails[4340539]=new thumbnail(4340539,"107806","Global Gallery Exhibtion","DSCF3109_thumb.JPG",130,98,18);var galleries=new Object();galleries[289116]=new gallery(289116,"5116674,5116672,5116670,5116637,5116635,5116634,5116633","New Works","gallery",[5116633,5116634,5116635,5116637,5116670,5116672,5116674]);galleries[291899]=new gallery(291899,"5173090,5173089,5173088,5173087","Prints","gallery",[5173087,5173088,5173089,5173090]);galleries[24454]=new gallery(24454,"275432","Abstract","gallery",[1811853,1835861,3697339,325855,531709,534761,460041,460042,645661,275432,275595,3697316]);galleries[24447]=new gallery(24447,"3697344,3697338,3697188,3697184,614652,531711,460043,337336,337335,277865","Landscapes","gallery",[275378,277857,337335,337336,3697184,3697188,3697338,3697344,614652,460043,277865,277841,531711,275551,275593,275599]);galleries[225939]=new gallery(225939,"4291078,3697195,276452","Figurative","gallery",[276452,3697195,4291078]);galleries[225942]=new gallery(225942,"4291059,3697180,277854","Still Life","gallery",[277854,3697180,4291059]);galleries[24455]=new gallery(24455,"275609,275606,275392","X","gallery",[275606,275609,275392]);galleries[24448]=new gallery(24448,"3697335,343416,337347,277846","Geometric","gallery",[277846,337347,343416,3697335]);galleries[107806]=new gallery(107806,"4340539,4291107","Photos","gallery",[4291107,4340539]);var imageSets=new Object();imageSets[1]="4340539,4291107";imageSets[2]="275432";imageSets[3]="5173090,5173089,5173088,5173087,5116674,5116672,5116670,5116637,5116635,5116634,5116633,4340539,4291107,4291078,4291059,3697344,3697339,3697338,3697335,3697316,3697195,3697188,3697184,3697180,1835861,1811853,645661,614652,534761,531711,531709,460043,460042,460041,343416,337347,337336,337335,325855,277865,277857,277854,277846,277841,276452,275609,275606,275599,275595,275593";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/michaely/images";break}switch(a){case 1:b="http://www1.clikpic.com/michaely/images";break}switch(a){case 2:b="http://admin.clikpic.com/michaely/images";break}switch(a){case 24:b="http://tpc15/clikpic/michaely/images";break}switch(a){case 4:b="http://www.clikchurch.com/michaely/images";break}switch(a){case 5:b="http://www2.clikpic.com/michaely/images";break}switch(a){case 22:b="http://tpc5/clikpic/michaely/images";break}switch(a){case 23:b="http://tpc10/clikpic/michaely/images";break}switch(a){case 25:b="http://tpc16/clikpic/michaely/images";break}switch(a){case 15:b="http://www3.clikpic.com/michaely/images";break}switch(a){case 18:b="http://www4.clikpic.com/michaely/images";break}switch(a){case 19:b="http://www5.clikpic.com/michaely/images";break}switch(a){case 31:b="http://www7.clikpic.com/michaely/images";break}switch(a){case 32:b="http://admin2.clikpic.com/michaely/images";break}switch(a){case 33:b="http://www8.clikpic.com/michaely/images";break}switch(a){case 34:b="http://www9.clikpic.com/michaely/images";break}switch(a){case 35:b="http://admin3.clikpic.com/michaely/images";break}switch(a){case 37:b="http://admin4.clikpic.com/michaely/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="ART - is it?   : "+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+'")'})}}};