function showPeephole(){if(!$peepholeVisible&&detailsAvailable&&$currentView=="main"){$peepholeVisible=true;setPeepHoleSize();$("#peephole").fadeIn("slow")}}function setPeepHoleSize(){var a=gallery.insetWidth(curImageNum);var b=gallery.insetHeight(curImageNum);var c;if(a>b){c=a/gallery.origImageX(curImageNum)}else{c=b/gallery.origImageY(curImageNum)}$("#peepholeimage").css({width:Math.round(c*gallery.insetWidth(curImageNum))+"px",height:Math.round(c*gallery.insetHeight(curImageNum))+"px"});$("#peephole").css({left:parseInt(gallery.insetX(curImageNum))*c+findPosX(document.images.mainImage)+"px",top:parseInt(gallery.insetY(curImageNum))*c+findPosY(document.images.mainImage)+"px"})}function hidePeephole(){if($peepholeVisible&&$currentView=="main"){$peepholeVisible=false;$("#peephole").fadeOut("fast")}}function initThumbs(){$("img.thumbnail").slice(0,photosOnPage).each(function(){var a=parseInt($(this).attr("id").substring(3));$(this).attr("src",gallery.imagelist[startIndex+a].thumb);$(this).mouseover(function(){$(this).css("cursor","pointer");$(this).css("border","1px solid black")});$(this).mouseout(function(){$(this).css("cursor","default");$(this).css("border","1px solid white")});$(this).click(function(){stopSlideshow();setphoto(a)})});$("img.thumbnail").slice(photosOnPage,photosPerPage-1).each(function(){$(this).attr("src","/images/1x1.gif");$(this).unbind("mouseover");$(this).unbind("mouseout");$(this).unbind("click")})}function findPosY(a){var b=0;if(a.offsetParent)while(1){b+=a.offsetTop;if(!a.offsetParent)break;a=a.offsetParent}else if(a.y)b+=a.y;return b}function findPosX(a){var b=0;if(a.offsetParent)while(1){b+=a.offsetLeft;if(!a.offsetParent)break;a=a.offsetParent}else if(a.x)b+=a.x;return b}function scrollY(){var a=0;if(typeof window.pageYOffset=="number"){a=window.pageYOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop}return a}function scrollX(){var a=0;if(typeof window.pageYOffset=="number"){a=window.pageXOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollLeft}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollLeft}return a}function gotoPurchase(){location.href="/purchase.htm?title="+escape(gallery.imagelist[(pageNum-1)*photosPerPage+which].index)+"&num="+gallery.imagelist[startIndex+which].i}function gotoInquiry(){location.href="/inquiry.htm?title="+escape(gallery.imagelist[(pageNum-1)*photosPerPage+which].index)+"&num="+gallery.imagelist[startIndex+which].i}function navigationStr(a){}function updateNavStr(a){}function updateNavStr1(){}function clickOnNavstr(a,b){}function mouseOutNavstr(a){}function mouseOverNavstr(a,b){}function startpreload(a,b){}function swapnextoff(){}function swapprevoff(){}function swapnexton(){}function swapprevon(){}function stopSlideshow(){}function startSlideshow(){}function restartSlideshow(){}function slower(){}function faster(){}function nextSlide(){}function pollForwardDone(){}function clickForward(){restartSlideshow();forward();swapnexton()}function clickBackward(){restartSlideshow();backward();swapprevon()}function forward(){}function backward(){}function setphoto(a){}function drawthumbs(){}function gotoPage(a,b){}function initPage(a){}function initPageN(a,b){}function qs(){var a=window.location.search.substring(1);var b=a.split("&");for(var c=0;c<b.length;c++){var d=b[c].indexOf("=");if(d>0){var e=b[c].substring(0,d);var f=b[c].substring(d+1);qsParm[e]=f}}}function startGallery(){gallery.imagelist[startIndex+which].imgsrc.src=gallery.imagelist[startIndex+which].content;gallery.pollImageDone(0)}function pollMenuDone(){if(!document.getElementById("menuspan")||!Loadd)setTimeout("pollMenuDone();",100);else{gallery.pollImageDone(0)}}function paintThumbs(){drawthumbs()}function pollImageDone(a){if(typeof this.imagelist=="undefined"||!this.imagelist[startIndex+which].imgsrc.complete||!document.images["img"+(photosPerPage-1)]||!document.images.mainImage){if(a>150){alert("pollImageDone Timed out");return}a=a+1;setTimeout("gallery.pollImageDone("+a+");",100)}else{gallery.imagelist[startIndex+which].imgsrc.src=gallery.imagelist[startIndex+which].content;imagesLoaded=1;this.paintThumbs();this.startBackgroundLoad();this.setImage(startIndex+which)}}function pollThumbsDone(a){var b;var c=true;for(b=0;b<this.imagelist.length&&b<8;b++){if(!this.imagelist[b].done){c=false;break}}if(!c){if(a>50){return}a=a+1;setTimeout("gallery.pollThumbsDone("+a+");",100)}else{this.startBackgroundLoad()}}function setImage(a){if(a>=0&&a<this.imagelist.length){if(!this.imagelist[a].imgsrc.src){loadSuspended=true;this.imagelist[a].imgsrc.src=this.imagelist[a].content}this.pollFinishSetImage(a)}}function filename(){return"LiquidSculpture"+this.imagelist[curImageNum].index+".jpg"}function origfilename(){return this.imagelist[curImageNum].filename}function origImageY(){return this.imagelist[curImageNum].h}function origImageX(){return this.imagelist[curImageNum].w}function insetY(a){return this.imagelist[a].insetY}function insetX(a){return this.imagelist[a].insetX}function insetHeight(a){return this.imagelist[a].insetHeight}function insetWidth(a){return this.imagelist[a].insetWidth}function pollFinishSetImage(a){}function showDetail(){}function showMainImage(){}function setShieldPos(a){}function setShieldSize(a){}function switchMainImage(a){}function swapBuffer(){}function mainFadeDone(){$mainFading=false}function startBackgroundLoad(){}function pollBackgroundLoad(){}function index(a){}function title(a){}function thumbLoaded(a){}function order(a){}function initSlideshow(){stopSlideshow()}function clearmsg(){document.getElementById("message").innerHTML=""}function msg(a){document.getElementById("message").innerHTML=document.getElementById("message").innerHTML+a+"<br>"}function m_liquidsculpture(a){document.write(String.fromCharCode(60,97,32,104)+String.fromCharCode(114,101,102,61,34,109,97,105)+String.fromCharCode(108,116,111,58)+m_emailStr(a)+String.fromCharCode(34,62)+m_emailStr(a)+String.fromCharCode(60,47,97,62))}function m_emailStr(a){return a+String.fromCharCode(64,102,97,109,111,117,115,45,99,101,108,101,98,114,105,108,116,121,45,97,117,116,111,103,114,97,112,104,115,46,99,111,109)}function Gallery(){}function gallerySortTitle(a,b){}function gimage(a,b,c,d,e,f,g,h,i){}Gallery.prototype.pollImageDone=pollImageDone;Gallery.prototype.pollThumbsDone=pollThumbsDone;Gallery.prototype.setImage=setImage;Gallery.prototype.pollFinishSetImage=pollFinishSetImage;Gallery.prototype.paintThumbs=paintThumbs;Gallery.prototype.startBackgroundLoad=startBackgroundLoad;Gallery.prototype.pollBackgroundLoad=pollBackgroundLoad;Gallery.prototype.thumbLoaded=thumbLoaded;Gallery.prototype.order=order;Gallery.prototype.faster=faster;Gallery.prototype.slower=slower;Gallery.prototype.origImageX=origImageX;Gallery.prototype.origImageY=origImageY;Gallery.prototype.origfilename=origfilename;Gallery.prototype.filename=filename;Gallery.prototype.insetWidth=insetWidth;Gallery.prototype.insetHeight=insetHeight;Gallery.prototype.insetX=insetX;Gallery.prototype.insetY=insetY;Gallery.prototype.title=title;Gallery.prototype.index=index;Gallery.prototype.showMainImage=showMainImage;Gallery.prototype.showDetail=showDetail;$load_images_in_background=true;$pageJustLoaded=true;$mainFading=false;$peepholeVisible=false;$currentView="none";$fadeSpeed="slow";var imagesLoaded=0;var speed=5;var curImageNum;var loadSuspended=false;var qsParm=new Array;qsParm["page"]=1;qsParm["photo"]=0;qs();var pageNum;var which;var photosPerPage=20;var totalPhotos;var pageCnt;var photosOnPage;var startIndex;var endIndex;var timerID=-1;var gallery;gallery=new Gallery;var slideShowOn=false;var slideShowTimer=null;var detailsAvailable=false;$().ready(function(){$("#shield").click(function(){if($currentView=="detail"){gallery.showMainImage()}});$("#shield1").click(function(){if($currentView=="detail"){gallery.showMainImage()}});$(document).bind("contextmenu",function(a){return false});$("#shield").bind("contextmenu",function(a){alert("For licensing our check images, please email us through our Contact Us page.");return false});$("#shield1").bind("contextmenu",function(a){alert("For licensing our check images, please email us through our Contact Us page.");return false});$("#peephole").bind("contextmenu",function(a){alert("For licensing our check images, please email us through our Contact Us page.");return false});$("#shield").mouseover(function(){showPeephole();return true});$("#shield1").mouseover(function(){showPeephole();return true});setShieldPos();$("#shield").mousemove(function(a){var b=parseInt(findPosX(this));var c=parseInt(findPosY(this));if(detailsAvailable){if(a.pageX>b&&a.pageX<b+$("#shield").width()&&a.pageY>c&&a.pageY<c+$("#shield").height()){showPeephole()}}return true});$("#shield").mouseout(function(a){var b=parseInt(findPosX(this));var c=parseInt(findPosY(this));if(a.pageX<=b||a.pageX>=b+$("#shield").width()||a.pageY<=c||a.pageY>=c+$("#shield").height()){if($currentView=="main"){hidePeephole()}else{gallery.showMainImage()}}return true});$(window).resize(function(a){setShieldPos();setPeepHoleSize()});$("img.thumbnail").each(function(a){$(this).attr("id","img"+a)});$("mainImageBuffer").hide();initThumbs();return true})
