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[1470906]=new thumbnail(1470906,"","","guestbook_thumb.jpg",130,103,1);thumbnails[794524]=new thumbnail(794524,"",'"Blend"',"paint001_thumb.jpg",130,183,1);thumbnails[1584733]=new thumbnail(1584733,"46879","<strong>Firelight Comfort<strong/>","038_thumb.JPG",130,173,1);thumbnails[611406]=new thumbnail(611406,"46879","<strong> Time n' Tide <strong/>","tide_thumb.JPG",130,173,1);thumbnails[612376]=new thumbnail(612376,"46879","Love-worn.","Teddy_thumb.JPG",130,173,1);thumbnails[612398]=new thumbnail(612398,"46879","Colour Meditation.","Colour_Meditaion_thumb.JPG",130,182,1);thumbnails[613042]=new thumbnail(613042,"46879","Soul Awakening.","soul1_thumb.JPG",130,78,1);thumbnails[612359]=new thumbnail(612359,"46879","Reflective-serenity.","still_waters_thumb.JPG",130,169,1);thumbnails[624405]=new thumbnail(624405,"46879","Homeward Bound.","home j_thumb.jpg",130,97,1);thumbnails[769323]=new thumbnail(769323,"46879",'"Celestial Beings"',"Mum13_thumb.jpg",130,94,1);thumbnails[624407]=new thumbnail(624407,"46879","Breaking Free","010_thumb.jpg",130,98,1);thumbnails[873161]=new thumbnail(873161,"46879",'"Sumo"',"Sumo2_thumb.JPG",130,182,1);thumbnails[986534]=new thumbnail(986534,"46879",'"Mannequin\'s Daydream"',"Manequin_014dn1_thumb.jpg",130,145,1);thumbnails[1514853]=new thumbnail(1514853,"46879","Misty blue.","007_02_thumb.jpg",130,93,1);thumbnails[1577397]=new thumbnail(1577397,"46879","Innocence.","028_thumb.JPG",130,173,1);thumbnails[1577387]=new thumbnail(1577387,"46879","Cleavage","statue1 055_thumb.JPG",130,105,1);thumbnails[611428]=new thumbnail(611428,"46896","Prickly Pear","cacti_en_thumb.JPG",130,176,1);thumbnails[612380]=new thumbnail(612380,"46896","Matt.","Son_thumb.JPG",130,184,1);thumbnails[768480]=new thumbnail(768480,"46896","<strong>Healer</strong>","Healercropped_thumb.JPG",130,167,1);thumbnails[1516786]=new thumbnail(1516786,"46896","Time-Out","statue1_058_thumb.JPG",130,106,1);thumbnails[1516862]=new thumbnail(1516862,"46896","Pastel","Sketch_C29BBA25-1D09-001F-99D99CFCEDE545D2_thumb.jpg",130,95,1);thumbnails[1895312]=new thumbnail(1895312,"46896",'"CONCENTRATION"',"OC_thumb.jpg",130,192,1);thumbnails[1576099]=new thumbnail(1576099,"46896","REST","017_-_Copy_thumb.JPG",130,173,1);thumbnails[611459]=new thumbnail(611459,"46898","Cashtal yn Ard","cashtal01_thumb.JPG",130,91,1);thumbnails[611528]=new thumbnail(611528,"46898","Cashtal yn Ard (blue)","cashtal02_thumb.JPG",130,86,1);thumbnails[2143461]=new thumbnail(2143461,"46898","1st Stage of Painting","face01_thumb.JPG",130,192,1);thumbnails[2143467]=new thumbnail(2143467,"46898","2nd Stage of painting","face02_thumb.JPG",130,206,1);thumbnails[640858]=new thumbnail(640858,"46898","...  <strong>I AM.</strong> last and Final stage of the painting.","face03_thumb.JPG",130,203,1);thumbnails[4790013]=new thumbnail(4790013,"329424",'"Earth Angel"',"DSCN2102_onclik_thumb.jpg",130,166,1);thumbnails[1193045]=new thumbnail(1193045,"46899","Watercolour.","Portrait_finished_thumb.jpg",130,173,1);thumbnails[3950308]=new thumbnail(3950308,"46899","Mouth<br>\r\n","mthclik_thumb.jpg",130,106,1);thumbnails[3950318]=new thumbnail(3950318,"46899","Eye","Eye_clik01_thumb.jpg",130,114,1);thumbnails[958940]=new thumbnail(958940,"46899",'"Tigger\'s friend"',"tigger_thumb.jpg",130,181,1);thumbnails[958955]=new thumbnail(958955,"46899",'"David\'s mate"',"Davidsmate_thumb.jpg",130,177,1);thumbnails[958984]=new thumbnail(958984,"46899",'"TT" rider.',"TT_clik_thumb.jpg",130,173,1);thumbnails[1193040]=new thumbnail(1193040,"46899",'Pencil 11"x14"',"pencil_finished_thumb.jpg",130,188,1);thumbnails[1505164]=new thumbnail(1505164,"46899",'PENCIL 20" X 16"',"028crop (2)_thumb.jpg",130,173,1);thumbnails[1193047]=new thumbnail(1193047,"46899","Labradors.","Labrador cli_thumb.jpg",130,87,1);thumbnails[1517061]=new thumbnail(1517061,"46900","Peaceful Slumber. ","statue1 043_thumb.JPG",130,114,1);thumbnails[1533678]=new thumbnail(1533678,"46900","<strong>Pillow talk<strong/>","statue1 042_thumb.JPG",130,88,1);thumbnails[1577344]=new thumbnail(1577344,"46900","Repose","016 (2)_thumb.JPG",130,107,1);thumbnails[619937]=new thumbnail(619937,"46900","Childhood recalled.","Image-04_thumb.JPG",130,138,1);thumbnails[614875]=new thumbnail(614875,"46900","Have No Fear.","havenoefear en_thumb.JPG",130,163,1);thumbnails[809883]=new thumbnail(809883,"46900",'"Doll\'s Head"',"Dollorig_thumb.jpgclik.jpg",130,184,1);thumbnails[880472]=new thumbnail(880472,"46900","Marilyn","mar_thumb.jpg",130,175,1);thumbnails[880478]=new thumbnail(880478,"46900","DETAIL :Marilyn.","mar3_thumb.jpg",130,97,1);thumbnails[1516836]=new thumbnail(1516836,"46900","Eye Practice","statue1 032_thumb.JPG",130,140,1);thumbnails[1947494]=new thumbnail(1947494,"46900","A2 approx Sketch in pastel","Sketch_thumb.jpg",130,95,1);thumbnails[1516878]=new thumbnail(1516878,"46900","Stretch","034 (2)_thumb.JPG",130,173,1);thumbnails[6616183]=new thumbnail(6616183,"46900","The Gift","afasite_thumb.jpg",130,178,1);thumbnails[1516867]=new thumbnail(1516867,"46900","Connected","statue1 033_thumb.JPG",130,131,1);thumbnails[1517037]=new thumbnail(1517037,"46900","<strong>Housefly.<strong/>","statue1 036_thumb.JPG",130,120,1);thumbnails[1517057]=new thumbnail(1517057,"46900","DETAIL of Housefly.","statue1 035_thumb.JPG",130,137,1);thumbnails[1534847]=new thumbnail(1534847,"46900","<strong>ONE MINUTE MODEL SKETCH<strong/>","009 (4)_thumb.JPG",130,178,1);thumbnails[1534858]=new thumbnail(1534858,"46900","<strong>ONE MINUTE MODEL SKETCH<strong/>","0012 (3)_thumb.JPG",130,189,1);thumbnails[1577341]=new thumbnail(1577341,"46900","Shiny.","statue1 050_thumb.JPG",130,173,1);thumbnails[624410]=new thumbnail(624410,"46901","<strong>My Space</strong>","Image-08_thumb.JPG",130,200,1);thumbnails[1952074]=new thumbnail(1952074,"46901","<strong>Earth Angel<strong/> Half Way there.","17032008_thumb.jpg",130,173,1);thumbnails[5820009]=new thumbnail(5820009,"46901","Stillness of Being<br>\r\n 1st stage.","062_thumb.JPG",130,179,1);thumbnails[5820024]=new thumbnail(5820024,"46901","Stillness of Being<br>\r\n 2nd Stage.","AB02_thumb.jpg",130,179,1);thumbnails[5820032]=new thumbnail(5820032,"46901","Stillness of Being<br>\r\n 3rd Stage.","AB04_thumb.JPG",130,176,1);thumbnails[5833806]=new thumbnail(5833806,"46901","Stillness of Being","AB081_thumb.JPG",130,173,1);thumbnails[6627569]=new thumbnail(6627569,"46901","Stillness of Being<br>\r\nFINISHED PAINTING<br>\r\n","DSCN2454_thumb.JPG",130,179,1);thumbnails[6627570]=new thumbnail(6627570,"46901","Stillness of Being<br>\r\nFINISHED PAINTING<br>\r\n","DSCN24541_thumb.JPG",130,179,1);thumbnails[612075]=new thumbnail(612075,"46916","Mojave Sunset","Mojave sunsett_thumb.JPG",130,92,1);thumbnails[613039]=new thumbnail(613039,"46916","PHOTOGRAPHY...Desert footprints","Desert sand_thumb.JPG",130,200,1);thumbnails[622315]=new thumbnail(622315,"46916","Waiting","Peel01_thumb.jpg",130,173,1);thumbnails[873894]=new thumbnail(873894,"46916",'"Leaving LA."',"LA01web_thumb.jpg",130,93,1);thumbnails[873908]=new thumbnail(873908,"46916",'"Oceanside Surf"',"Oceanside01web_thumb.jpg",130,91,1);thumbnails[873916]=new thumbnail(873916,"46916","Oceanside resident.","Pelican02web_thumb.jpg",130,184,1);thumbnails[1444507]=new thumbnail(1444507,"46916","CANYON DE CHELLY.","Canyon_thumb.jpg",130,98,1);thumbnails[1444510]=new thumbnail(1444510,"46916","WHITE HOUSE RUINS Canyon De Chelly","00023 (2)_thumb.jpg",130,173,1);thumbnails[1444570]=new thumbnail(1444570,"46916","Over LA.","LosA_thumb.jpg",130,98,1);thumbnails[1444582]=new thumbnail(1444582,"46916","<strong>LAX<strong/>","LAX 02_thumb.jpg",130,98,1);thumbnails[878680]=new thumbnail(878680,"67361","Bryan","Bryan01_thumb.JPG",130,175,1);thumbnails[878691]=new thumbnail(878691,"67361","Lightening","BonJoviSambora_thumb.XX 002.jpg",130,175,1);thumbnails[878694]=new thumbnail(878694,"67361","Air guitar","March 015_thumb.jpg",130,173,1);thumbnails[1272154]=new thumbnail(1272154,"67361","Surrounding Magic.","The Ards Weekend 063_thumb.JPG",130,173,1);thumbnails[2143432]=new thumbnail(2143432,"67361","LIFESIZE Mural","croplast 009 (2)_thumb.JPG",130,239,1);var galleries=new Object();galleries[46879]=new gallery(46879,"1584733,1577397,1577387,1514853,986534,873161,769323,624407,624405,613042","<strong>Watercolours.<strong/>","gallery",[1584733,611406,612376,612398,613042,612359,624405,769323,624407,873161,986534,1514853,1577397,1577387]);galleries[46896]=new gallery(46896,"612380","<strong>Pastels and Charcoal<strong/>","gallery",[611428,612380,768480,1516786,1516862,1895312,1576099]);galleries[46898]=new gallery(46898,"2143467,2143461,640858,611528,611459","<strong>Oils.<strong/>","gallery",[611459,611528,2143461,2143467,640858]);galleries[329424]=new gallery(329424,"4790013","<strong>Airbrush and Acrylic<strong>","gallery",[4790013]);galleries[46899]=new gallery(46899,"3950318,3950308,1505164,1193047,1193045,1193040,958984,958955,958940","<strong>Commissions.<strong/>","gallery",[1193045,3950308,3950318,958940,958955,958984,1193040,1505164,1193047]);galleries[46900]=new gallery(46900,"1517061","<strong>Sketches and studies.<strong/>","gallery",[1517061,1533678,1577344,619937,614875,809883,880472,880478,1516836,1947494,1516878,6616183,1516867,1517037,1517057,1534847,1534858,1577341]);galleries[46901]=new gallery(46901,"6627570,6627569,5833806,5820032,5820024,5820009,1952074,624410","<strong>Wet Paint</strong> ","gallery",[624410,1952074,5820009,5820024,5820032,5833806,6627569,6627570]);galleries[46916]=new gallery(46916,"1444582,1444570,1444510,1444507,873916,873908,873894,622315,613039,612075","<strong>Photography.<strong/>","gallery",[612075,613039,622315,873894,873908,873916,1444507,1444510,1444570,1444582]);galleries[67361]=new gallery(67361,"878691","<strong>MURALS<strong/>","gallery",[878680,878691,878694,1272154,2143432]);var imageSets=new Object();imageSets[1]="2143467,2143461,1193047,958984,880478,640858,612398,612359,611406";imageSets[2]="1517061,1470906,878691,612380";imageSets[3]="6627570,6627569,6616183,5833806,5820032,5820024,5820009,4790013,3950318,3950308,2143467,2143461,2143432,1952074,1947494,1895312,1584733,1577397,1577387,1577344,1577341,1576099,1534858,1534847,1533678,1517061,1517057,1517037,1516878,1516867,1516862,1516836,1516786,1514853,1505164,1470906,1444582,1444570,1444510,1444507,1272154,1193047,1193045,1193040,986534,958984,958955,958940,880478,880472";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/jangell/images";break}switch(a){case 1:b="http://www1.clikpic.com/jangell/images";break}switch(a){case 2:b="http://admin.clikpic.com/jangell/images";break}switch(a){case 24:b="http://tpc15/clikpic/jangell/images";break}switch(a){case 4:b="http://www.clikchurch.com/jangell/images";break}switch(a){case 5:b="http://www2.clikpic.com/jangell/images";break}switch(a){case 22:b="http://tpc5/clikpic/jangell/images";break}switch(a){case 23:b="http://tpc10/clikpic/jangell/images";break}switch(a){case 25:b="http://tpc16/clikpic/jangell/images";break}switch(a){case 15:b="http://www3.clikpic.com/jangell/images";break}switch(a){case 18:b="http://www4.clikpic.com/jangell/images";break}switch(a){case 19:b="http://www5.clikpic.com/jangell/images";break}switch(a){case 31:b="http://www7.clikpic.com/jangell/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jangell/images";break}switch(a){case 33:b="http://www8.clikpic.com/jangell/images";break}switch(a){case 34:b="http://www9.clikpic.com/jangell/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jangell/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jangell/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="Janice Gell Paintings: "+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>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 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="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="JANGELL">';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+'")'})}}};