var jQ=jQuery.noConflict();var lastStartRow;var FLfader="";var UAfader="";var frVar="FALSE";eval(function(h,b,j,f,g,i){g=function(a){return(a<b?"":g(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(j--){i[g(j)]=f[j]||g(j)}f=[function(a){return i[a]}];g=function(){return"\\w+"};j=1}while(j--){if(f[j]){h=h.replace(new RegExp("\\b"+g(j)+"\\b","g"),f[j])}}return h}("(b(7){7.i=b(4,5,3){8(l 4==='m'||l 5==='m')9 t;c 6=4+'='+u(5);8(3.d)6+='; d='+3.d;8(3.e)6+='; e='+3.e;8(3.f){c a=r x();a.y(a.p()+3.f*q*j*j*o);6+='; w='+a.z()}8(3.h)6+='; h';9 k.n=6};7.D=b(4){9 7.i(4,'',{f:-1})};7.A=b(4){c 5=k.n.C('(?:^|;)\\\\s*'+4.F(/([-.*+?^${}()|[\\]\\/\\\\])/g,'\\\\$1')+'=([^;]*)');9(5)?B(5[1]):H};7.G='v 2.0'})(E);",44,44,"|||options|name|value|str|jq|if|return|date|function|var|domain|path|duration||secure|setCookie|60|document|typeof|undefined|cookie|1000|getTime|24|new||false|encodeURIComponent||expires|Date|setTime|toGMTString|readCookie|decodeURIComponent|match|delCookie|jQuery|replace|CooQueryVersion|null".split("|"),0,{}));jQ.extend({getUrlParams:function(){var g=[],h;var f=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");for(var e=0;e<f.length;e++){h=f[e].split("=");g.push(h[0]);g[h[0]]=h[1]}return g},getUrlParam:function(b){return jQ.getUrlParams()[b]}});function toggleForgotPwd(){jQ("#loginInfo").toggle();jQ("div#forgotpasswordContent").toggle()}function textFocus(b){var a=b.target;if(jQ(a).val()=="Recherche dans les ventes Ã  venir"){jQ(a).val("");frVar="TRUE"}if(jQ(a).val()=="Search Upcoming Auctions"||jQ(a).val()=="Search Forthcoming Auctions"||jQ(a).val()=="Email Address"){jQ(a).val("")}}function textBlur(c){var b=c.target;var a=b.id;if(a=="searchBox"&&jQ(b).val()==""){if(document.domain.match("artfact")&&frVar=="FALSE"){jQ("input#"+a).val("Search Upcoming Auctions")}else{if(document.domain.match("artfact")&&frVar=="TRUE"){jQ("input#"+a).val("Recherche dans les ventes Ã  venir")}else{jQ("input#"+a).val("Search Forthcoming Auctions")}}}if(a=="nwsltremail"&&jQ(b).val()==""){jQ("input#"+a).val("Email Address")}else{if(a=="ntSignUp-Email"&&jQ(b).val()==""){jQ("input#"+a).val("Email Address")}}}function copyURL(){var b=jQ("ul#FLUL li:visible a").attr("href");var a=jQ("div#featuredlots div#FLnav a#FLinfo");a.attr("href",b)}function restartProgBar(){jQ("img#progbar").attr("src","/wwwImages/FLprog.gif")}function startTimerSlow(){if(jQ("ul#FLUL li").length>1){FLfader=setTimeout(FLnextAuto,13000)}}function FLnextAuto(){if(jQ("ul#FLUL li:visible").next().length){jQ("ul#FLUL li:visible").fadeOut(function(){jQ(this).next().fadeIn();copyURL()});restartProgBar();startTimerSlow()}else{jQ("ul#FLUL li:visible").fadeOut(function(){jQ("ul#FLUL li:first").fadeIn();copyURL()});restartProgBar();startTimerSlow()}}function FLprevAuto(){if(jQ("ul#FLUL li:visible").prev().length){jQ("ul#FLUL li:visible").fadeOut(function(){jQ(this).prev().fadeIn();copyURL()});restartProgBar();startTimerSlow()}else{jQ("ul#FLUL li:visible").fadeOut(function(){jQ("ul#FLUL li:last").fadeIn();copyURL()});restartProgBar();startTimerSlow()}}function FLnext(){if(jQ("ul#FLUL li:visible").next().length){jQ("ul#FLUL li:visible").fadeOut(function(){jQ(this).next().fadeIn();copyURL()})}else{jQ("ul#FLUL li:visible").fadeOut(function(){jQ("ul#FLUL li:first").fadeIn();copyURL()})}}function FLprev(){if(jQ("ul#FLUL li:visible").prev().length){jQ("ul#FLUL li:visible").fadeOut(function(){jQ(this).prev().fadeIn();copyURL()})}else{jQ("ul#FLUL li:visible").fadeOut(function(){jQ("ul#FLUL li:last").fadeIn();copyURL()})}}function FLright(){if(!jQ("ul#FLUL li").is(":animated")){clearTimeout(FLfader);restartProgBar();FLnext()}}function FLleft(){if(!jQ("ul#FLUL li").is(":animated")){clearTimeout(FLfader);restartProgBar();FLprev()}}function UAnext(){if(jQ("div.UAitem:visible").next().length){jQ("div.UAitem:visible").animate({top:"-100px",opacitcy:0},function(){jQ(this).hide().css("top","0px")}).next().fadeIn();startTimerFast()}else{jQ("div.UAitem:last").animate({top:"-100px",opacitcy:0},function(){jQ(this).hide().css("top","0px")});jQ("div.UAitem:first").fadeIn();startTimerFast()}}function UAprev(){if(jQ("div.UAitem:visible").prev().length){jQ("div.UAitem:visible").animate({top:"100px",opacitcy:0},function(){jQ(this).hide().css("top","0px")}).prev().fadeIn();startTimerFast()}else{jQ("div.UAitem:first").animate({top:"100px",opacitcy:0},function(){jQ(this).hide().css("top","0px")});jQ("div.UAitem:last").fadeIn();startTimerFast()}}function startTimerFast(){if(jQ("div.UAitem").length>1){UAfader=setTimeout(UAnext,5000)}}function UAup(){if(!jQ("div.UAitem").is(":animated")){clearTimeout(UAfader);UAnext()}}function UAdown(){if(!jQ("div.UAitem").is(":animated")){clearTimeout(UAfader);UAprev()}}function accordion(c){var b=c.target;if(b.tagName=="SPAN"||b.tagName=="IMG"){b=jQ(b).parent().get(0)}else{a=jQ(b)}var a=jQ(b);if('!$target.next.css("display","none")'){a.next("div:visible").slideUp("normal")}a.next("div:hidden").slideDown("slow").siblings("div:visible").slideUp("normal")}function openPanel(){var b=jQ("div#loginWrapper div#loginPanel");var a;if(jQ(b).css("top")!="0px"){jQ("div#loginWrapper").show(0);jQ(b).animate({top:"60px"}).animate({top:"0px"},"fast");jQ("ul#navigation a.login").removeClass("login").addClass("loginOpen");if(jQ.browser.msie&&jQ.browser.version==8){if(jQ("div#featuredlots").length){a=jQ("div#featuredlots")}else{if(jQ("#sidenavcontainer").length){a=jQ("#sidenavcontainer")}}if(a){a.css("visibility","hidden");a=""}}}else{if(jQ("div#featuredlots").length){a=jQ("div#featuredlots")}else{if(jQ("#sidenavcontainer").length){a=jQ("#sidenavcontainer")}}if(a){a.css("visibility","visible");a=""}jQ(b).animate({top:"60px"},"fast").animate({top:"-321px"},function(){jQ("div#loginWrapper").hide(0)});jQ("ul#navigation a.loginOpen").removeClass("loginOpen").addClass("login")}jQ("div#searchFilterMenu").hide()}function closeIt(b){var a=b.target;jQ(a).parent().parent().parent().hide()}function closeFilter(){jQ("div.filterWrap").hide()}function bubble(){var f=10;var e=500;var d=false;var b=false;content="";content+="<div class='infoBubble clearfix'>";content+="<div class='bubbleTop left2'></div>";content+="<div class='bubbleBody left2'>";content+="<p>This auction will begin shortly. Please check back and refresh your browser to join the live bidding.</p>";content+="</div>";content+="<div class='bubbleBottom left2'></div>";content+="</div>";var c=jQ("img.apStartingSoon");c.before(content);var a=jQ("div.infoBubble");a.hide();c.mouseover(function(){if(d||b){return}else{d=true;a.css({top:-100,display:"block"}).animate({top:"-="+f+"px",opacity:1},e,"swing",function(){d=false;b=true})}}).mouseout(function(){a.animate({top:"-="+f+"px",opacity:0},e,"swing",function(){b=false;a.css("display","none")})})}function getCampaignCookie(){var a=jQ.readCookie("CAMPAIGN")}function initNewsletterSignup(){jQ("#nlSignUpWrapper .errormsg, #nlSignUpWrapper p").hide()}function validEmail(b){var a=new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return a.test(b)}function loadPage(b,j,l,h,k,d,a){var e="?type=newsletter",g="services/userInfo.cfm",c,i,f;switch(d){case"artfact.com":c="secure.artfact.com";i="https";break;case"invaluable.com":c="secure.invaluable.com";i=k;break;case"secure.artfact.com":c=d;i="https";break;case"secure.invaluable.com":c=d;i=k;break;case"www.artfact.com":c="secure.artfact.com";i="https:";break;case"www.invaluable.com":c="secure.invaluable.com";i="https:";break;case"stage.artfact.com":c="stagesec.artfact.com";i=k;break;case"stage.invaluable.com":c="stagesec.invaluable.com";i=k;break;case"joeysec.artfact.com":c=d;i=k;break;case"shawnsec.artfact.com":c=d;i=k;break;case"joeysec.invaluable.com":c=d;i=k;break;case"shawnsec.invaluable.com":c=d;i=k;break;case"alexsec.artfact.com":c=d;i=k;break;case"alexsec.invaluable.com":c=d;i=k;break;case"joey.artfact.com":c="joeysec.artfact.com";i=k;break;case"shawn.artfact.com":c="shawnsec.artfact.com";i=k;break;case"joey.invaluable.com":c="joeysec.arinvaluabletfact.com";i=k;break;case"shawn.invaluable.com":c="shawnsec.arinvaluabletfact.com";i=k;break;case"alex.artfact.com":c="alexsec.artfact.com";i=k;break;case"alex.invaluable.com":c="alexsec.arinvaluabletfact.com";i=k;break;default:c=d;i=k}f=i+"//"+c+"/"+g+e+"&emailAddy="+b;location.href=f}function sayThanks(){var f,b,e,i,g,j=window.location,d=location.href,h=location.protocol,c=location.host,a=location.hostname;i="";b=jQ(this).prev("input").val();f=jQ("#companyRef").val();e=jQ("#nlSignUpWrapper .errormsg");g=jQ("#ntSignUp-Email");if(b==""||b=="Email Address"){e.text("Please enter a valid email address.").fadeIn();g.focus();return}else{if(!validEmail(b)){e.text("Email address is of an improper format.").fadeIn();g.focus();return}else{submitSignupInfo(b,f);getCampaignCookie();loadPage(b,g,j,d,h,c,a);return false}}}function submitSignupInfo(b,a){if(!jQ.readCookie("CAMPAIGN")){jQ.getJSON("/lib/jQueryObj/jUserSubscription.cfc?wsdl",{method:"addUserSignup",mbrEmailAddress:b,companyID:a})}else{jQ.getJSON("/lib/jQueryObj/jUserSubscription.cfc?wsdl",{method:"addUserSignup",mbrEmailAddress:b,companyID:a,campaign:jQ.readCookie("CAMPAIGN")})}location.path}jQ(function(){jQ("a.nowhere").attr("href","javascript:void(0);");if(jQ("ul#FLUL li").length>1){jQ("div#featuredlots").hover(function(){jQ("div#FLnav").stop().animate({top:"0"},250);clearTimeout(FLfader);jQ("img#progbar").hide()},function(){jQ("div#FLnav").stop().animate({top:"-42px"},250);startTimerSlow();jQ("img#progbar").show();restartProgBar()})}if(jQ("div.UAitem").length>1){jQ("div#UAcontainer").hover(function(){clearTimeout(UAfader)},function(){startTimerFast()})}else{jQ("div#UAnav").hide()}jQ("div#filters div.filters a").click(function(){var a=jQ("div.filterWrap");if(jQ(a.filter(this.hash)).is(":hidden")){a.hide().filter(this.hash).show();return false}});jQ("img#btnSearchFilter").click(function(){window.location="/catalog/advancedSearch.cfm?srchScope=p"});if(jQ("div#results div.resultsRight div.auctionButton img").hasClass("apStartingSoon")){bubble()}jQ("ul#FLUL li:first").fadeIn(startTimerSlow);jQ("img#progbar").show().attr("src","/wwwImages/FLprog.gif").css("opacity","0.5");jQ("div.UAitem:first").fadeIn(startTimerFast);jQ("a#FLnext").click(FLright);jQ("a#FLprev").click(FLleft);jQ("a#UAup").click(UAup);jQ("a#UAdown").click(UAdown);jQ("input#searchBox,#loginPanel input, #newslettersignup input, #nlSignUpWrapper input").focus(textFocus);jQ("input#searchBox, #loginPanel input, #newslettersignup input, #nlSignUpWrapper input").blur(textBlur);jQ("a#forgotpassword, a#cancelForgotPwd").click(toggleForgotPwd);jQ("div.filterWrap > div").filter(".accordion").hide();jQ("div.filterWrap").click(accordion);jQ("div.filterWrap > h3 span.close").click(closeIt);jQ("div#filters, div#navContainer").click(closeFilter);jQ("#nlSignUpWrapper input[type='submit']").live("click",sayThanks);copyURL();initNewsletterSignup()});(function(a){a.fn.equalHeights=function(c,b){tallest=(c)?c:0;this.each(function(){if(a(this).height()>tallest){tallest=a(this).height()}});if((b)&&tallest>b){tallest=b}return this.each(function(){a(this).height(tallest).css("overflow","auto")})}})(jQuery);(function(e){var k={};var c={};var j={};var f=[];var d;jQuery.fn.jBreadCrumb=function(m){k=e.extend({},e.fn.jBreadCrumb.defaults,m);return this.each(function(){c=e(this);h()})};function h(){if(typeof(jQuery.easing)=="object"){d="easeOutQuad"}else{d="swing"}j=jQuery(c).find("li");jQuery(c).find("ul").wrap('<div style="overflow:hidden; position:relative;  width: '+jQuery(c).css("width")+';"><div>');jQuery(c).find("ul").width(5000);if(j.length>0){jQuery(j[j.length-1]).addClass("last");jQuery(j[0]).addClass("first");if(j.length>k.minimumCompressionElements){l()}}}function l(){var m=jQuery(j[j.length-1]);if(jQuery(m).width()>k.maxFinalElementLength){if(k.beginingElementsToLeaveOpen>0){k.beginingElementsToLeaveOpen--}if(k.endElementsToLeaveOpen>0){k.endElementsToLeaveOpen--}}if(jQuery(m).width()<k.maxFinalElementLength&&jQuery(m).width()>k.minFinalElementLength){if(k.beginingElementsToLeaveOpen>0){k.beginingElementsToLeaveOpen--}}var n=j.length-1-k.endElementsToLeaveOpen;jQuery(j[j.length-1]).css({background:"none"});e(j).each(function(p,q){if(p>k.beginingElementsToLeaveOpen&&p<n){jQuery(q).find("a").wrap("<span></span>").width(jQuery(q).find("a").width()+10);jQuery(q).append(jQuery('<div class="'+k.overlayClass+'"></div>').css({display:"block"})).css({background:"none"});if(g()){a(jQuery(q).find("."+k.overlayClass).css({width:"20px",right:"-1px"}))}var o={id:p,width:jQuery(q).width(),listElement:jQuery(q).find("span"),isAnimating:false,element:jQuery(q).find("span")};jQuery(q).bind("mouseover",o,i).bind("mouseout",o,b);jQuery(q).find("a").unbind("mouseover",i).unbind("mouseout",b);q.autoInterval=setInterval(function(){clearInterval(q.autoInterval);jQuery(q).find("span").animate({width:k.previewWidth},k.timeInitialCollapse,k.easing)},(150*(p-2)))}})}function i(n){var m=n.data.id;var o=n.data.width;jQuery(n.data.element).stop();jQuery(n.data.element).animate({width:o},{duration:k.timeExpansionAnimation,easing:k.easing,queue:false});return false}function b(n){var m=n.data.id;jQuery(n.data.element).stop();jQuery(n.data.element).animate({width:k.previewWidth},{duration:k.timeCompressionAnimation,easing:k.easing,queue:false});return false}function g(){var m=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent);return m}function a(m){var n;if(jQuery(m).is("img")){n=jQuery(m).attr("src")}else{n=e(m).css("backgroundImage");n.match(/^url\(["']?(.*\.png)["']?\)$/i);n=RegExp.$1}e(m).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='"+n+"')"})}jQuery.fn.jBreadCrumb.defaults={maxFinalElementLength:100,minFinalElementLength:100,minimumCompressionElements:1,endElementsToLeaveOpen:1,beginingElementsToLeaveOpen:2,timeExpansionAnimation:300,timeCompressionAnimation:500,timeInitialCollapse:300,overlayClass:"chevronOverlay",previewWidth:25}})(jQuery);function searchPhrase(){jQ('#searchContainer input[type="radio"]').change(function(){var c=jQ(this).val();var b='Search over <span class="highlight">62 million auction price results</span>';var a='Search from over <span class="highlight">100,000 items available at auction</span> now';if(c=="p"){jQ("#searchContainer h2").html(b)}else{if(c=="u"){jQ("#searchContainer h2").html(a)}}})}function zebrastripes(){jQ("ul.zebra li:nth-child(even)").addClass("odd")}function collaspeContent(){jQ(".showmore-btn").live("click",function(){var a=jQ(this).next(".collapse ");if(jQ(a).hasClass("closed")){jQ(a).removeClass("closed");jQ(this).addClass("open").html("view less")}else{jQ(a).addClass("closed");jQ(this).removeClass("open").html("view more")}})}function listSplit(a){jQ(".two-cols, .three-cols, .four-cols").easyListSplitter({colNumber:a,direction:"vertical"})}function showLogin(){var a=jQ("#loginPanel");var b=jQ("#panel_button  a");jQ(b).live("click",function(){if(jQ(this).hasClass("login")){jQ(a).slideDown("slow",function(){jQ("#mbrUName").focus()});jQ(this).removeClass("login").addClass("loginOpen")}else{jQ(a).slideUp("slow");jQ(this).addClass("login").removeClass("loginOpen")}});jQ(".closer").live("click",function(){jQ(a).slideUp("slow");jQ(b).addClass("login").removeClass("loginOpen")})}function showHide(){jQ(".expander").live("click",function(){var a=jQ(this).next(".expander-content");if(jQ(this).hasClass("open")){jQ(a).slideUp("fast");jQ(this).removeClass("open").html("view more")}else{jQ(this).addClass("open").html("view less");jQ(a).slideDown("fast")}})}function helpInit(){var a=jQ(".helpWrapper"),c=location.hostname,b="";isArtfact=c.indexOf("artfact.com");isInvaluable=c.indexOf("invaluable.com");if(isArtfact>-1){b="artfact"}else{if(isInvaluable>-1){b="invaluable"}}a.addClass(b)}function updateNotify(c,a,b){var d="updateWatchedLotNotification";doWatchLot=jQ.getJSON("/lib/jQueryObj/jFineArtObj.cfc?wsdl",{method:d,lotRef:b,memberRef:a,notification:c},function(){return});return false}function setAlert(){var a=jQ(this).parent().siblings().find("a"),e="",c=jQ(this).text(),f,b=jQ(this).parent("li").parent("ul#emailAlerts").attr("memberref"),d=jQ(this).parent("li").parent("ul#emailAlerts").attr("lotref");switch(c){case"Do not send email":c="You are NOT set to receive email Alerts";e="Send alerts via email";f=0;break;case"Send alerts via email":c="You are set to receive email Alerts";e="Do not send email";f=1;break;default:return}jQ(this).text(e).parent().siblings().find("a").text(c);updateNotify(f,b,d)}function updateAlert(){var d="updateWatchedLotNotification",a=jQ("#updateAlert").attr("memberref"),b=jQ("#updateAlert").attr("lotref"),c=1;doWatchLot=jQ.getJSON("/lib/jQueryObj/jFineArtObj.cfc?wsdl",{method:d,lotRef:b,memberRef:a,notification:c},function(){jQ("#updateAlert").prev("span").hide();jQ("#updateAlert").html("Alert added to your <a href='/myLive/myWatchedLots.cfm'>watched lots</a>")})}jQ(document).ready(function(){jQ(".footerBox").equalHeights();jQ("#breadCrumb").jBreadCrumb();jQ("#emailAlerts > li > a").live("click",setAlert);jQ("#updateAlert > a").live("click",function(){if(jQ(this).parent().attr("id")=="updateAlert"){updateAlert()}});zebrastripes();searchPhrase();showLogin();helpInit()});
