function openNav(){$(".header").addClass("is-active");$(".header__primary-inner").fadeIn(100);$("body").addClass("nav-open")}function closeNav(){$(".header").removeClass("is-active");$(".header__primary-inner").fadeOut(100);$("body").removeClass("nav-open")}function openNavMobile(){$(".header").addClass("is-active");$(".header__nav-container").fadeIn(100);$("body").addClass("nav-open")}function closeNavMobile(){$(".header").removeClass("is-active");$(".header__nav-container").fadeOut(100);$("body").removeClass("nav-open")}function LoadSearchFilterDynamic(){$.ajax({url:"/SiteSearch/QuickfilterSearch",success:function(n){$("#js-filters-dropdown").replaceWith('<section class="dropdown-menu dropdown-menu__filter" id="js-filters-dropdown" aria-labelledby="keyword-filter">'+n+"<\/section>");LoadMakeModelFilter();LoadMoreFilterData();$("#js-filters-dropdown").toggle()}})}function ShowMobileSiteSearch(n){n!=null&&n=="sitesearch"?($(".js-div-mobile-vehicle-search").hide(),$(".js-div-mobile-site-search").show()):($(".js-div-mobile-site-search").hide(),$(".js-div-mobile-vehicle-search").show());$("#vehicle-search").modal()}function SetSiteSearchCookieValue(n){var t={searchType:n};$(".js-btn-mobile-vehicle-search").show();$(".js-btn-mobile-site-search").hide();$.ajax({url:appRootDir+"SiteHeader/SetSiteSearchCookieValue/",data:t,cache:!1,success:function(n){n.indexOf("true")>=0?($(".js-btn-mobile-vehicle-search").hide(),$(".js-btn-mobile-site-search").show(),window.location.href="/Marketing/Search?s="+encodeURIComponent($("#txtSiteSearch").val())):($(".js-btn-mobile-vehicle-search").show(),$(".js-btn-mobile-site-search").hide())}})}function CheckSiteSearchCookie(){$.ajax({url:appRootDir+"SiteHeader/CheckSiteSearchCookie/",cache:!1,success:function(n){n.indexOf("true")>=0?($(".js-btn-mobile-vehicle-search").hide(),$(".js-btn-mobile-site-search").show()):($(".js-btn-mobile-vehicle-search").show(),$(".js-btn-mobile-site-search").hide())}})}function BreakoutsInit(){var i,r,n,t,u,f;for(Breakouts=[],n=[],n.push({element:"breakout1",openElements:["open1"],closeElements:["open2","open3","close1"],highlightedClass:"openLanguage"}),n.push({element:"breakout2",openElements:["open2"],closeElements:["open1","open3","close2"],highlightedClass:"openLogin"}),n.push({element:"breakout3",openElements:["open3"],closeElements:["open1","open2","close3","timeOpenCancel"],highlightedClass:"openTime"}),t=0,u=n.length;t<u;t++)f=n[t].element,r=document.getElementById(f),r&&(i=new Breakout(n[t]),Breakouts.push(i))}function modifySearchPanel(){this.init=function(){n.toggleControl=document.getElementById("open4");n.cancelControl=getElementsByClassName("cancelModifySearch")[0];n.target=document.getElementById("breakout4");n.toggleControl&&n.target&&n.cancelControl&&(n.registerEvents(),n.target.style.display="none")};this.registerEvents=function(){n.toggleControl.onclick=function(){n.toggleTarget()};n.cancelControl.onclick=function(){n.toggleTarget()}};this.toggleTarget=function(){n.target.style.display=n.target.style.display==="none"?"block":"none";n.toggleControl.style.display=n.toggleControl.style.display==="none"?"":"none"};var n=this;n.init()}function initialize(){var n,t;GBrowserIsCompatible()&&(n=new GMap2(document.getElementById("map_canvas")),n.setCenter(new GLatLng(38.914344,-95.812025),4),t=new GLargeMapControl,n.addControl(t))}function adjustContainerForWideContent(t){var u={contentEls:["auctionData","testAuction"],containerEl:"sub-full"},f,r;for(f in t)u[f]=t[f];return this.contentEls=[],this.containerEl="",(container=document.getElementById(u.containerEl))&&(this.containerEl=container),this.auxiliaryContainerEl="",(auxContainer=document.getElementById("fullWidthContent"))&&(this.auxiliaryContainerEl=auxContainer),this.contentWidth=0,this.totalPadding=40,this.handleContentEls=function(){for(contents=u.contentEls,i=0,l=contents.length;i<l;i++)if(els=getElementsByClassName(contents[i]),els.length>0)for(m=0,n=els.length;m<n;m++)r.contentEls.push(els[m])},this.identifyWidestContent=function(){for(i=0,l=r.contentEls.length;i<l;i++)r.contentEls[i].offsetWidth>r.contentWidth&&(r.contentWidth=r.contentEls[i].offsetWidth)},this.setWidthCompare=function(){r.containerWidth=r.containerEl.offsetWidth;r.contentWidthLargest=r.contentWidth+r.totalPadding},this.compareContainerAndContent=function(){r.setWidthCompare();r.contentWidthLargest>r.containerWidth&&r.setContainerWidth()},this.setContainerWidth=function(){r.containerEl.style.width=r.contentWidthLargest+"px";r.auxiliaryContainerEl&&(r.auxiliaryContainerEl.style.width=r.contentWidthLargest-r.totalPadding+"px")},r=this,r.handleContentEls(),r.identifyWidestContent(),r.compareContainerAndContent(),!0}function lyteboxModInit(){(controlClose=document.getElementById("controlClose"))&&(controlClose.onclick=function(){return window.parent.myLytebox.end(),!1},controlClose.onmouseover=function(){return this.addClassName("hover"),!1},controlClose.onmouseout=function(){return this.removeClassName("hover"),!1});(ccApply=document.getElementById("customizeColumnsApply"))&&(ccApply.onclick=function(){return window.parent.adjustContainerForWideContent(),window.parent.myLytebox.end(),!1});(ccCancel=document.getElementById("customizeColumnsCancel"))&&(ccCancel.onclick=function(){return window.parent.myLytebox.end(),!1})}function buttonTextAddLineBreaks_init(){var n=new buttonTextAddLineBreaks}function buttonTextAddLineBreaks(){this.elementClassName="button-grey-inner";this.buttonCollection=getElementsByClassName(this.elementClassName);this.buttonString="";this.buttonStringArray=[];this.buttonStringArray_NEW=[];this.buttonLongestWord="";this.buttonWordArray=[];this.buttonWordArray_ORIG=[];this.longestWord=function(){for(var i="",t=0,r=n.buttonWordArray_ORIG.length;t<r;t++)n.buttonWordArray_ORIG[t].length>i.length&&(i=n.buttonWordArray_ORIG[t]);return i};this.trimStr=function(n){return n.replace(/^\s+/,"").replace(/\s+$/,"")};this.addBreaks=function(){for(var t="",r="",i=0,u=n.buttonCollection.length;i<u;i++)t=n.trimStr(n.buttonCollection[i].innerHTML),t=t.replace(/(<br\s*>|<br\s*\/\s*>)/i,""),t=t.replace(/\r/," "),n.buttonWordArray_ORIG=t.split(" ").reverse(),n.buttonWordArray=n.buttonWordArray_ORIG.slice(0),n.buttonWordArray.length>1&&(n.buttonStringArray_NEW=n.joinMinorWords(),r=n.buttonStringArray_NEW.join("<br/>"),n.buttonCollection[i].innerHTML=r,n.buttonStringArray_NEW=[])};this.joinMinorWords=function(){for(var t="",i=[],r=0,u=n.buttonWordArray.length;r<u;r++){if(t=n.extractNextLargestMinorWords(),t==="")break;i.push(t)}return i};this.extractNextLargestMinorWords=function(){for(var i="",e=n.longestWord(),r="",u="",t="",f=0,o=n.buttonWordArray.length;f<o;f++)if(i=n.buttonWordArray.pop(),u=t,t=t===""?i:t+" "+i,t.length>=e.length){u===""?r=i:(r=u,n.buttonWordArray.push(i));break}else if(n.buttonWordArray.length<1){r=t;break}return r};var n=this;n.addBreaks()}function toggleSelects(n){var t=document.getElementsByTagName("select"),r;for(i=0,l=t.length;i<l;i++)r=t[i],r.style.display=n==="hidden"?"none":""}function getScrollXY(){var n=0,t=0;return typeof pageYOffset=="number"?(t=window.pageYOffset,n=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,n=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,n=document.documentElement.scrollLeft),[n,t]}function getWindowSize(){var n=0,t=0;return typeof innerWidth=="number"?(n=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth,t=document.body.clientHeight),[n,t]}function toggleSelects(n){var t=document.getElementsByTagName("select"),r;for(i=0,l=t.length;i<l;i++)r=t[i],r.style.display=n==="hidden"?"none":""}function reinsert_modal(){var t=document.getElementById("modalPage"),i=document.getElementById("bodyInner"),n,r;t&&i&&(n=t.parentNode,r=n.parentNode,i.appendChild(n.cloneNode(!0)),r.removeChild(n))}function position_modal(){var n=document.getElementById("modalWrap"),i=getScrollXY(),r=i[1],u=document.body.scrollHeight,f=getWindowSize(),t=f[1],e=parseInt(t/2),o=r+e-150+"px";n&&(n.style.top=o,u>t&&toggle_scroll())}function toggle_scroll(){var n=document.getElementsByTagName("html").item(0),i=document.getElementById("aspnetForm"),r=17,t=getWindowSize()[0],f=Math.round(r/t*1e4)/100,u=Math.round(((t-r)/t*100+.1)*100)/100;n.style.overflow==="hidden"?(n.style.overflow="",i.style.width="100%"):(n.style.overflow="hidden",i.style.width=u+"%")}function toggle_modal(n){var r=isMSIE6(),i=document.getElementById("modalPage"),u=document.getElementById("bodyInner"),t;i&&(t=i.parentNode,t.className="modalPageWrap");t.nodeName==="DIV"&&(n==="on"?t.style.display="":n==="off"&&(t.style.display="none"))}function modal_close_button_init(){(button=document.getElementById("modalCloseButton"))&&(button.onclick=function(){toggle_modal("off")})}function adjustContainerForWideContent_init(){DocumentLayoutWidthAdjuster=new adjustContainerForWideContent}function GAEventTrack(n,t){if(EnableGA=="true")try{t=="DownLoadImages"?_gaq.push(["_trackEvent","DownLoad All Images",n+" Images"]):t=="EnlargeImages"?_gaq.push(["_trackEvent","Enlarge All Images",n+" Images"]):t=="DownLoad"?_gaq.push(["_trackEvent","DownLoad",n+" List"]):t=="Print"?_gaq.push(["_trackEvent","Print",n+" List"]):t=="PrintInvoice"?_gaq.push(["_trackEvent","Print Invoice",n+" List"]):t=="Receipt"?_gaq.push(["_trackEvent","Receipt",n+" List"]):t=="DownloadHistory"?_gaq.push(["_trackEvent","Download History",n+" List"]):t=="RetriveDataHistory"&&_gaq.push(["_trackEvent","Retrive Download History",n+" List"])}catch(i){}}function GASearchTab(n){if(EnableGA=="true")try{_gaq.push(["_trackEvent","Selected Tab:Search Page",n])}catch(t){}}function GABreadcrumbRefiner(n,t){if(EnableGA=="true")try{SessionPreviousScope=="ALL"?_gaq.push(["_trackEvent",t+":Search Page",n.lastChild.nodeValue,"ALL"]):SessionPreviousScope=="AUCTIONS"?_gaq.push(["_trackEvent",t+":Search Page",n.lastChild.nodeValue,"AT Auction Now"]):SessionPreviousScope=="AUCTIONSTBD"?_gaq.push(["_trackEvent",t+":Search Page",n.lastChild.nodeValue,"Auction Date TBD"]):SessionPreviousScope=="IBUYFAST"&&_gaq.push(["_trackEvent",t+":Search Page",n.lastChild.nodeValue,"I-Buy Fast"])}catch(i){}}function GAIBidLive(n,t){if(EnableGA=="true")try{_gaq.push(["_trackEvent","IBidLive",n,t])}catch(i){}}function GARegistration(n){if(EnableGA=="true")try{n=="LicensedBusinessBuyer"?_gaq.push(["_trackEvent","Registration Intro","Licensed Buyer",document.getElementById("ctl00_HeaderControl1_LanguageControl1_DisplayedLanguage").innerHTML]):n=="PublicBuyer"&&_gaq.push(["_trackEvent","Registration Intro","Public Buyer",document.getElementById("ctl00_HeaderControl1_LanguageControl1_DisplayedLanguage").innerHTML])}catch(t){}}function GARegistrationLang(){if(EnableGA=="true")try{var i=location.href,r=document.getElementById("FormSectionTitle").innerHTML,u=r.split("("),t=u[1].split(")"),n;t[0].match("1")?n="Step 1":t[0].match("2")?n="Step 2":t[0].match("3")?n="Step 3":t[0].match("4")?n="Step 4":t[0].match("5")&&(n="Step 5");i.match("PublicBuyer")?_gaq.push(["_trackEvent","Public Buyer Registration",n,document.getElementById("ctl00_HeaderControl1_LanguageControl1_DisplayedLanguage").innerHTML]):i.match("LicensedBusinessBuyer")&&_gaq.push(["_trackEvent","Licensed Buyer Registration",n,document.getElementById("ctl00_HeaderControl1_LanguageControl1_DisplayedLanguage").innerHTML])}catch(f){}}function GARegistrationwizard(n){if(EnableGA=="true")try{_gaq.push(["_trackEvent","Registration Wizard","Question "+n,document.getElementById("ctl00_HeaderControl1_LanguageControl1_DisplayedLanguage").innerHTML])}catch(t){}}function GAIBuyFast(n){if(EnableGA=="true")try{var t=location.pathname.split("/"),i=t[2].split(".");_gaq.push(["_trackEvent","IBuyFast",n,i[0]])}catch(r){}}function GASearchAuction(){if(EnableGA=="true")try{var n=location.href;n.match("VehicleAdvSearch")?ctl00_ContentPlaceHolder1_divFV.style.display=="none"&&_gaq.push(["_trackEvent","Auction After Search","Vehicle Advanced Search"]):n.match("Search")&&ctl00_ContentPlaceHolder1_divFV.style.display=="none"&&_gaq.push(["_trackEvent","Auction After Search","Fast search"])}catch(t){}}function GAHomeEventTracker(n,t,i){var f,u,r;if(EnableGA=="true")try{f=window.location.hostname.toLowerCase();u=window.location.pathname.toLowerCase();(u=="/"||u.match("default")||u==""&&f.match("iaai.com"))&&((i=="Vehicles"||i=="Auctions"||i=="Services"||i=="Support"||i=="AboutIAA"||i=="MyAuctionCenter"||i=="Canadian"||i=="AFCLogo"||i=="IAAAdvantageLogo"||i=="OneCarLogo"||i=="AuctionSchedule"||i=="Timer"||i=="Language"||i=="Login"||i=="Announcement"||i=="AnnouncementExpand"||i=="Email"||i=="AuctionDate"||i=="Header"||i=="Footer"||i=="Keyword"||i=="CSAToday"||i=="IAA Header"||i=="BranchName"||i=="PinBubble"||i=="BrokerPopup")&&_gaq.push(["_trackEvent",n,t]),i=="Links"&&(r=t+"-Link",_gaq.push(["_trackEvent",n,r])),i=="Year/Make/Model"&&(r=t+"-Year/Make/Model",_gaq.push(["_trackEvent",n,r])),i=="Images"&&(r=t+"-Picture",_gaq.push(["_trackEvent",n,r])),i=="Location"&&(r=t+"-Location",_gaq.push(["_trackEvent",n,r])),(i==" Automobiles"||i==" Motorcycles"||i==" Commercial"||i==" Recreational"||i==" Equipment"||i==" Other")&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Vehicle Type",i]),(i==" Dismantler"||i==" Scrapper"||i==" Dealer"||i==" Rebuilder"||i==" Exporter"||i==" Available To The Public"||i=="See More")&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Buyer  Type",i]),(i==" Collision"||i==" Other"||i==" Theft"||i==" Fire"||i==" Water/flood")&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Loss  Type",i]))}catch(e){}}function GAVehicleSearch(n,t,i){var f;if(EnableGA=="true")try{if(n=="Fast Search")if(document.getElementById("ctl00_ContentPlaceHolder1_BreadCrumbswithRP_displayRs")==null)t.match("Keyword Search")||t.match("keyword search")?_gaq.push(["_trackEvent",n,"Keyword Search","0 Refiner"]):_gaq.push(["_trackEvent",n,"Non Keyword Search","0 Refiner"]);else{var u=document.getElementById("ctl00_ContentPlaceHolder1_BreadCrumbswithRP_displayRs").innerText,e=u.split(">"),r=e.length;u.match("Keyword Search")||u.match("keyword search")?t.match("Breadcrumb")||t.match("breadcrumb")?_gaq.push(["_trackEvent",n,"Keyword Search",i+" Refiner"]):(Refiner=r-1>0?r-1:0,_gaq.push(["_trackEvent",n,"Keyword Search",Refiner+" Refiner"])):t.match("Breadcrumb")||t.match("breadcrumb")?(f=i+1,_gaq.push(["_trackEvent","Fast Search","Non Keyword Search",f+" Refiner"])):(Refiner=r>1?r:0,_gaq.push(["_trackEvent",n,"Non Keyword Search",Refiner+" Refiner"]))}n=="Advance Search"&&(t=="Start Over"?_gaq.push(["_trackEvent",n,t]):_gaq.push(["_trackEvent",n,t,i]))}catch(o){}}function GAAuctionPage(n,t,i){if(EnableGA=="true")try{if(n=="Auction Listing"){switch(t){case"1":_gaq.push(["_trackEvent",n,"Earliest Date",i]);break;case"2":_gaq.push(["_trackEvent",n,"2nd Auction Date",i]);break;case"3":_gaq.push(["_trackEvent",n,"3rd Auction Date",i]);break;default:t>"3"&&_gaq.push(["_trackEvent",n,t+"th Auction Date",i])}_gaq.push(["_trackEvent",n,i])}}catch(r){}}function GABrokerPage(n,t,i){if(EnableGA=="true")try{n=="Broker Listing"&&_gaq.push(["_trackEvent",n,t,i])}catch(r){}}function GAQuickLink(n,t,i){if(EnableGA=="true")try{n=="Fast Search"&&_gaq.push(["_trackEvent",n,t,i])}catch(r){}}function TrackEventInGA(n,t,i){if(EnableGA=="true")try{var r="false";switch(n){case"Left Nav - Support":r=GAEventCategObj.LeftNavSupport!="false"?"true":"false";break;case"Buyer Services Chat":r=GAEventCategObj.BuyerServicesChat!="false"?"true":"false";break;case"Contact Us Form":r=GAEventCategObj.ContactUsForm!="false"?"true":"false";break;case"Contextual Navigation":r=GAEventCategObj.ContextualNavigation!="false"?"true":"false";break;case"Downloads":r=GAEventCategObj.Downloads!="false"?"true":"false";break;case"Email":r=GAEventCategObj.Email!="false"?"true":"false";break;case"Errors":r=GAEventCategObj.Errors!="false"?"true":"false";break;case"External Links":r=GAEventCategObj.ExternalLinks!="false"?"true":"false";break;case"FAQ":r=GAEventCategObj.FAQ!="false"?"true":"false";break;case"Footer - External Links":r=GAEventCategObj.FooterExternalLinks!="false"?"true":"false";break;case"Footer - Internal Links":r=GAEventCategObj.FooterInternalLinks!="false"?"true":"false";break;case"Section Nav - FAQ":r=GAEventCategObj.SectionNavFAQ!="false"?"true":"false";break;case"Section Nav - HowToBuy":r=GAEventCategObj.SectionNavHowToBuy!="false"?"true":"false";break;case"Videos":r=GAEventCategObj.Videos!="false"?"true":"false";break;case"Vehicle History Report":r=GAEventCategObj.VehicleHistoryReport!="false"?"true":"false";break;default:r="false"}r=="true"&&_gaq.push(["_trackEvent",n,t,i])}catch(u){}}function AppAndroidAndMBrowser(n,t,i){if(EnableGA=="true")try{_gaq.push(["_trackEvent",n,t,i])}catch(r){}}function check(n){var i,t;return window.event?i=n.keyCode:n.which&&(i=n.which),t=String.fromCharCode(i),t=="'"||t=="`"||t=="~"||t=="@"||t=="#"||t=="$"||t=="%"||t=="^"||t=="&"||t=="*"||t=="("||t==")"||t=="{"||t=="}"||t=="["||t=="]"||t==";"||t=="/"||t==">"||t=="<"||t=="="||t=="-"||t==","||t=="!"||t=="+"||t=="|"||t==":"||t=="\\"||t=='"'?!1:!0}function TrackEventForIBidLiveDemoVersion(n,t,i){var f,r,u;switch(n){case"IBLPreferenceChangeViaProfile":f=GAIBidLiveEventCategObj.IBLPreferenceChangeViaProfile;break;case"IBLDemoViewsI-BidLive":f=GAIBidLiveEventCategObj["IBLDemoViewsI-BidLive"];break;case"IBLPreferenceChangeViaDemo":f=GAIBidLiveEventCategObj.IBLPreferenceChangeViaDemo}switch(t){case"IBLPreferenceAvoidFullVersion":r=GAIBidLiveActionObj.IBLPreferenceAvoidFullVersion;break;case"IBLPreferenceLeaveFullVersion":r=GAIBidLiveActionObj.IBLPreferenceLeaveFullVersion;break;case"IBLPreferenceChooseFullVersion":r=GAIBidLiveActionObj.IBLPreferenceChooseFullVersion;break;case"IBLDemoSplashByLaunchingEvent":r=GAIBidLiveActionObj.IBLDemoSplashByLaunchingEvent;break;case"IBLDemoFeatureViewMoreVehicleDetails":r=GAIBidLiveActionObj.IBLDemoFeatureViewMoreVehicleDetails;break;case"IBLDemoFeatureViewAllImages":r=GAIBidLiveActionObj.IBLDemoFeatureViewAllImages;break;case"IBLDemoFeatureEnlargeImage":r=GAIBidLiveActionObj.IBLDemoFeatureEnlargeImage;break;case"IBLDemoFeatureViewPreviousVehicles":r=GAIBidLiveActionObj.IBLDemoFeatureViewPreviousVehicles;break;case"IBLDemoFeatureViewUpcomingVehicles":r=GAIBidLiveActionObj.IBLDemoFeatureViewUpcomingVehicles;break;case"IBLDemoFeatureAuctions":r=GAIBidLiveActionObj.IBLDemoFeatureAuctions;break;case"IBLPreference(demo)DeferChoice":r=GAIBidLiveActionObj["IBLPreference(demo)DeferChoice"];break;case"IBLPreference(demo)DeclineUpdate":r=GAIBidLiveActionObj["IBLPreference(demo)DeclineUpdate"];break;case"IBLPreference(demo)AcceptUpdate":r=GAIBidLiveActionObj["IBLPreference(demo)AcceptUpdate"]}switch(i){case"IBLPreferenceDownloadToLight":u=GAIBidLiveLabelObj.IBLPreferenceDownloadToLight;break;case"IBLPreferenceLightToDownload":u=GAIBidLiveLabelObj.IBLPreferenceLightToDownload;break;case"IBLPreferenceFullToLight":u=GAIBidLiveLabelObj.IBLPreferenceFullToLight;break;case"IBLPreferenceFullToDownload":u=GAIBidLiveLabelObj.IBLPreferenceFullToDownload;break;case"IBLPreferenceLightToFull":u=GAIBidLiveLabelObj.IBLPreferenceLightToFull;break;case"IBLPreferenceDownloadToFull":u=GAIBidLiveLabelObj.IBLPreferenceDownloadToFull;break;case"IBLDemoNewVersionAvailableAuctionTimesPage":u=GAIBidLiveLabelObj.IBLDemoNewVersionAvailableAuctionTimesPage;break;case"IBLDemoNewVersionAvailableProfilePage":u=GAIBidLiveLabelObj.IBLDemoNewVersionAvailableProfilePage;break;case"IBLDemoIBLAuctionEntry":u=GAIBidLiveLabelObj.IBLDemoIBLAuctionEntry;break;case"IBLPreference(demo)FullFromLight":u=GAIBidLiveLabelObj["IBLPreference(demo)FullFromLight"];break;case"IBLPreference(demo)FullFromDownload":u=GAIBidLiveLabelObj["IBLPreference(demo)FullFromDownload"];break;case"null":u=null;break;default:u=null}if(EnableGA=="true")try{u!=null?_gaq.push(["_trackEvent",f,r,u]):_gaq.push(["_trackEvent",f,r])}catch(e){}}function GetProfilePagePreferenceChangeGA(){var n,t;n=document.getElementById("ctl00_ContentPlaceHolder1_ProfilePreferencesControl1_hiddenConnectionSpeed").value;t=document.getElementById("ctl00_ContentPlaceHolder1_ProfilePreferencesControl1_hiddenNewConnectionSpeed").value;n!=null&&(n=="WebClient"&&t=="NA"&&TrackEventForIBidLiveDemoVersion("IBLPreferenceChangeViaProfile","IBLPreferenceLeaveFullVersion","IBLPreferenceFullToLight"),n=="NA"&&t=="WebClient"&&TrackEventForIBidLiveDemoVersion("IBLPreferenceChangeViaProfile","IBLPreferenceChooseFullVersion","IBLPreferenceLightToFull"))}function UpdateIBidLiveVersionGA(){var n;document.getElementById("IBidLiveProfileControlID_hiddenConnectionSpeed").value!=null&&(n=document.getElementById("IBidLiveProfileControlID_hiddenConnectionSpeed").value,n=="NA"&&TrackEventForIBidLiveDemoVersion("IBLPreferenceChangeViaProfile","IBLPreference(demo)AcceptUpdate","IBLPreference(demo)FullFromLight"))}function UpdateIBidLiveVersionFromGatewayGA(){var n;document.getElementById("IBidLiveReminderID_hiddenConnectionSpeed").value!=null&&(n=document.getElementById("IBidLiveReminderID_hiddenConnectionSpeed").value,n=="NA"&&TrackEventForIBidLiveDemoVersion("IBLPreferenceChangeViaDemo","IBLPreference(demo)AcceptUpdate","IBLPreference(demo)FullFromLight"))}function IBidLiveNewVersionReminderControlEventsGA(n,t,i){TrackEventForIBidLiveDemoVersion(n,t,i)}function IBidLiveNewVersionGA(n){n=="AuctionsPage"&&TrackEventForIBidLiveDemoVersion("IBLDemoViewsI-BidLive","IBLDemoSplashByLaunchingEvent","IBLDemoNewVersionAvailableAuctionTimesPage");n=="ProfilePage"&&TrackEventForIBidLiveDemoVersion("IBLDemoViewsI-BidLive","IBLDemoSplashByLaunchingEvent","IBLDemoNewVersionAvailableProfilePage");n=="Gateway"&&TrackEventForIBidLiveDemoVersion("IBLDemoViewsI-BidLive","IBLDemoSplashByLaunchingEvent","IBLDemoIBLAuctionEntry")}function IBidLiveDemoEventsGA(n,t,i){TrackEventForIBidLiveDemoVersion(n,t,i)}function GetBrowserInfo(){var n,t,i;if(document.getElementById("ctl00_ContentPlaceHolder1_hdnConnectionSpeed").value==""){n="";BrowserDetect.init();n=BrowserDetect.browser+" "+BrowserDetect.version;document.getElementById("ctl00_ContentPlaceHolder1_hdnBrowserVersion").value=n;t=swfobject.getFlashPlayerVersion();n=t.release>0?"Flash player "+t.major+"."+t.minor+"."+t.release+" installed":"Not available/detectable with this browser";document.getElementById("ctl00_ContentPlaceHolder1_hdnFlashInstalled").value=n;n="";i=perform_acrobat_detection();n=i.acrobat!=null?i.acrobat+" . Version: "+i.acrobat_ver:"Not available/detectable with this browser";document.getElementById("ctl00_ContentPlaceHolder1_hdnAcrobatInstalled").value=n;var u="../images/IAA_Logo_ForConnectionSpeed.jpg?n="+Math.random(),f=60,r=new Image;startTime=(new Date).getTime();r.src=u;r.onload=function(){CalculateSpeed(f)}}}function CalculateSpeed(n){endTime=(new Date).getTime();var t=(endTime-startTime)/1e3,i=n*8,r=Math.round(i/t);document.getElementById("ctl00_ContentPlaceHolder1_hdnConnectionSpeed").value=r+" bps\n"}function TrackGoogleAnalyticsEvents(n,t,i,r){if(EnableGA=="true")try{n=="true"&&_gaq.push(["_trackEvent",t,i,r])}catch(u){}}function presalemorehide(){var n=$find("presalemorepopup");n.hidePopup()}function vramorehide(){var n=$find("vramorepopup");n.hidePopup()}function setControls(){setLinkControls();setTextboxSearchName()}function setLinkControls(){var n=document.getElementById(savedDDLID),t=document.getElementById(editBtnID),i=document.getElementById(deleteAllBtnID);n.options!=null&&n.options.length>1?n.value!=null&&n.value!=""?setLoadButton(!1):setLoadButton(!0):setLoadButton(!0)}function setTextboxSearchName(){var n=document.getElementById(savedDDLID),t=document.getElementById(txtSearchID);n!=null&&n.options!=null&&(t.value=n.options[n.selectedIndex].text)}function setLoadButton(n){for(var r=document.getElementById("divLoadSavedGo"),i=r.getElementsByTagName("A"),t=0;t<i.length;t++)disableButton(i[t],n),n||(i[t].onclick=function(){TrackGoogleAnalyticsEvents("true","DashboardRecentActivity","Searches","Saved Searches")})}function disableButton(n,t){disableRef(n,t);t?(n.style.color="gray",n.style.backgroundImage="url(../images/buttons/button.gray.go_non-sprite.png)",n.onclick=function(){return!1}):(n.style.color="red",n.style.backgroundImage="url(../images/buttons/button.red.go.png)")}function disableRef(n,t){if(t){var i=n.getAttribute("href");i&&i!=""&&i!=null&&n.setAttribute("href_bak",i);n.removeAttribute("href")}else n.attributes.href_bak!=null&&n.setAttribute("href",n.attributes.href_bak.nodeValue)}function highlightSelectedValue(n){var i,t;if(n!=null){for(i=n.selectedIndex,t=0;t<n.options.length;t++)n.options[t].style.fontWeight="normal";n.value.length<=0||i>=0&&(n.options[i].style.fontWeight="bold")}}function keyPressRuleForNumericA(n){var t=n.charCode||n.keyCode;if(t!=8&&t!=0&&(t<48||t>57))return!1;var u=document.getElementById("ctl00_ContentPlaceHolder1_yearTextA"),i=u.value.length,f=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB"),r=f.value.length;i==4&&r==4?document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!1:i!=4&&r!=4&&(document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!0,SetGhostTextToYYYY())}function keyPressRuleForNumericB(n){var e=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB"),t=n.charCode||n.keyCode;if(t!=8&&t!=0&&(t<48||t>57))return!1;var u=document.getElementById("ctl00_ContentPlaceHolder1_yearTextA"),i=u.value.length,f=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB"),r=f.value.length;i==4&&r==4?document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!1:i!=4&&r!=4&&(document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!0)}function reflecta(){var n=document.getElementById("ctl00_ContentPlaceHolder1_yearTextA").value,t=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB").value;(t==""||t.length<4)&&(document.getElementById("ctl00_ContentPlaceHolder1_yearTextB").value=n);n.length==4&&(document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!1);n.length!=4&&(document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!0);event.keyCode==13&&n.length==4&&t.length==4&&document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").click()}function reflectb(){var t=document.getElementById("ctl00_ContentPlaceHolder1_yearTextA").value,n=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB").value;(t==""||t.length<4)&&(document.getElementById("ctl00_ContentPlaceHolder1_yearTextA").value=n);n.length==4&&(document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!1);n.length!=4&&(document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").disabled=!0);event.keyCode==13&&t.length==4&&n.length==4&&document.getElementById("ctl00_ContentPlaceHolder1_RangeSubmit").click()}function checkLengthA(){var t=document.getElementById("ctl00_ContentPlaceHolder1_yearTextA").value.length,n;if(t<=4)return!0;n=document.getElementById("ctl00_ContentPlaceHolder1_yearTextA").value;n=n.substring(0,n.length-1);document.getElementById("ctl00_ContentPlaceHolder1_yearTextA").value=n}function checkLengthB(){var t=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB").value.length,n;if(t<=4)return!0;n=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB").value;n=n.substring(0,n.length-1);document.getElementById("ctl00_ContentPlaceHolder1_yearTextB").value=n}function RefreshYearSearchGhostText(){CurrentEndYearSearch==""&&CurrentStartYearSearch!=""?SetGhostTextToNewer():NewYearSearch==!1&&SetGhostTextToYYYY()}function SetGhostTextToYYYY(){var n=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB");$(n).attr("placeholder","yyyy")}function SetGhostTextToNewer(){var n=document.getElementById("ctl00_ContentPlaceHolder1_yearTextB");$(n).attr("placeholder","newer")}function unloadtooltip(n){return document.getElementById("ctl00_ContentPlaceHolder1_OnlineBiddingInformation_PasswordReqs").style.display=n?"visible":"none",!0}function DownloadFAQPdf(n){$.ajax({type:"POST",url:n,data:null,success:function(n){window.open(n,"_blank")},error:function(){}})}function submitForm(n){$.ajax({type:"POST",url:n,data:null,success:function(){},error:function(){}})}function SearchText(){var n=document.getElementById("userid").value;if(n!=undefined&&$.trim(n).length>1){SearchText_KeywordSuggestions();return}$.ajax({type:"POST",url:appRootDir+"SuggestionData.aspx/GetsuggestionData",global:!1,data:"{'prefixText':'"+document.getElementById("txtSearch").value+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var t=0;for($("#SuggestionList").empty(),t=0;t<n.d.length;t++)$("#SuggestionList").append('<li id="suggestion" class="suggestionlst suggestionData">'+n.d[t]+"<\/li>");$(".suggestionlst").click(function(){doKeywordSearch($(this).html())})},error:function(){}})}function UpgradeBrowserClick(){$("#fadeRegModalPopUp").show();$("#BrowserUpgradeModalPopUp").show()}function hidePopup(){$("#fadeRegModalPopUp").hide();$("#BrowserUpgradeModalPopUp").hide()}function GetUserKeywordSuggestions(){var n=document.getElementById("txtSearch").value,t=document.getElementById("userid").value;if(t==undefined||$.trim(t).length<=0){if(n==undefined||$.trim(n).length<=0){$.ajax({type:"POST",url:appRootDir+"SuggestionData.aspx/GetKeywordSuggestionData",global:!1,data:"{'prefixText':'"+$.trim(n)+"','userid':'"+t+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var t=0;for($("#SuggestionList").empty(),t=0;t<n.d.length;t++)$("#SuggestionList").append('<li id="suggestion" class="suggestionlst">'+n.d[t].Keyword+"<\/li>");$("#drop").slideDown("fast");$(".suggestionlst").click(function(){doKeywordSearch($(this).html())})},error:function(){}});return}return}n==undefined||$.trim(n).length>0||GetKeywordSuggestionData(n,t)}function GetKeywordSuggestionData(n,t){var i="";$.ajax({type:"POST",url:appRootDir+"SuggestionData.aspx/GetKeywordSuggestionData",global:!1,data:"{'prefixText':'"+$.trim(n)+"','userid':'"+t+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){var r=0,u;for($("#SuggestionList").empty(),r=0;r<n.d.length;r++)u=n.d[r].SuggestionType,u=="fssavedsearch"&&i==""&&($("#SuggestionList").append('<li  class="suggestionlstLable">Saved Searches:<\/li>'),i="fssavedsearch"),u=="searchsuggestion"&&i=="fssavedsearch"&&($("#SuggestionList").append('<li  class="suggestionlstLable">Suggestions:<\/li>'),i="searchsuggestion"),$("#SuggestionList").append('<li  class="suggestionlst"><span class="suggestionData" >'+n.d[r].Keyword+'<\/span> <span class="suggestionDataType" style="display:none">'+n.d[r].SuggestionType+'<\/span><span class="FastSearchSavedSearchLogID" style="display:none">'+n.d[r].SuggestionUniqueId+"<\/span><\/li>");$("#drop").slideDown("fast");$(".suggestionlst").click(function(){doKeywordSearch_KeywordSuggestion($(this).find(".suggestionData").html(),$(this).find(".suggestionDataType").html(),$(this).find(".FastSearchSavedSearchLogID").html(),t)})},error:function(){}})}function SearchText_KeywordSuggestions(){var n=document.getElementById("txtSearch").value,t=document.getElementById("userid").value;GetKeywordSuggestionData(n,t)}function GlobalLocationHotLead(n){var t=document.getElementById("userid").value;if(t!==undefined||$.trim(t).length>=0){$.ajax({type:"POST",url:"/SiteHeader/GlobalLocationHotLead",global:!1,data:"{'location':'"+n+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:function(){return},error:function(){}});return}}function initKeywordSearchVM(){var n={KeywordEntered:ko.observable(),KeywordSearchClick:function(){doKeywordSearch($("#txtSearch").val())}};try{ko.applyBindings(n,document.getElementById("keywordSearchSection"))}catch(t){}}function inputNumeric(n){var t=n.charCode||n.keyCode;if(t!=8&&t!=0&&(t<48||t>57))return!1}function doKeywordSearch(n){var i=!1,t,r;(n=="Vehicles by Stock, VIN, Location, Specs"&&(n=""),n!=""&&(i=!0),i!=!1)&&(t=$("#userid").val(),t!=undefined&&$.trim(t).length>1&&$("#SuggestionList li span.suggestionData").filter(function(){var u=$(this).html(),i,r;if($.trim(n.toLowerCase())==$.trim(u.toLowerCase())){i=$(this).next(".suggestionDataType").html();r=$(this).next(".suggestionDataType").next(".FastSearchSavedSearchLogID").html();doKeywordSearch_KeywordSuggestion(n,i,r,t);return}}),r={search:n},SetSiteSearchCookieValue("false"),GAVehicleSearch("Fast Search","Keyword Search"),GAHomeEventTracker("Home Page Clicks","Keyword Search","Keywordbutton"),$.ajax({type:"POST",global:!1,url:appRootDir+"SiteSearch/SearchKeyword/",data:r,success:function(n){var t=window.location.pathname;window.location.href=n},dataType:"json"}))}function doKeywordSearch_KeywordSuggestion(n,t,i,r){var u=!1,f;(n=="Vehicles by Stock, VIN, Location, Specs"&&(n=""),n!=""&&(u=!0),u!=!1)&&(f={search:n,suggestionType:t,FastSearchSavedSearchLogID:i,userid:r},SetSiteSearchCookieValue("false"),GAVehicleSearch("Fast Search","Keyword Search"),GAHomeEventTracker("Home Page Clicks","Keyword Search","Keywordbutton"),$.ajax({type:"POST",global:!1,url:appRootDir+"SiteSearch/SearchKeyword_KeywordSuggestion/",data:f,success:function(n){var t=window.location.pathname;window.location.href=n},dataType:"json"}))}function GAHomeEventTracker(n,t,i){var f,u,r;if(EnableGA=="true")try{f=window.location.hostname.toLowerCase();u=window.location.pathname.toLowerCase();(u=="/"||u.match("default")||u==""&&f.match("iaai.com"))&&((i=="Vehicles"||i=="Auctions"||i=="Services"||i=="Support"||i=="AboutIAA"||i=="MyAuctionCenter"||i=="Timer"||i=="Language"||i=="Login"||i=="Announcement"||i=="Header"||i=="Keyword"||i=="CSAToday"||i=="Footer")&&_gaq.push(["_trackEvent",n,t]),i=="ViewMore"&&_gaq.push(["_trackEvent",n,"Buy Now - View More",i]),t=="VehicleType"&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Vehicle Type",i]),t=="VehicleSubType"&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Vehicle Sub Type",i]),i=="OpenToThePublic"&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Open To The Public",i]),i=="Year/Make"&&(r=t+"-Year/Make",_gaq.push(["_trackEvent",n,r])),i=="Model"&&(r=t+"-Model",_gaq.push(["_trackEvent",n,r])),i=="Images"&&(r=t+"-Picture",_gaq.push(["_trackEvent",n,r])),i=="Location"&&(r=t+"-Location",_gaq.push(["_trackEvent",n,r])),i=="LossType"&&(r=t+"-LossType",_gaq.push(["_trackEvent",n,r])),i.indexOf("VT-")==0&&(i=i.substring(3),(i=="Automobiles"||i=="Motorcycles"||i=="Commercial"||i=="Recreational"||i=="Equipment"||i=="Other")&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Vehicle Type",i])),i.indexOf("LT-")==0&&(i=i.substring(3),(i=="Collision"||i=="Other"||i=="Theft"||i=="Fire"||i=="Water/flood")&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Loss  Type",i])),(i=="2009 & Newer"||i=="2005 & Newer"||i=="2003 - 2008"||i=="1994 - 2004"||i=="Over 15 Years Old"||i=="Over 20 Years Old")&&_gaq.push(["_trackEvent",n,"Find a Vehicle - Year",i]),i=="iPad app store"&&_gaq.push(["_trackEvent",n,t,i]))}catch(e){}}function TrackEventInGA(n,t,i){if(EnableGA=="true")try{var r="false";switch(n){case"Footer - External Links":r=GAEventCategObj.FooterExternalLinks!="false"?"true":"false";break;case"Footer - Internal Links":r=GAEventCategObj.FooterInternalLinks!="false"?"true":"false"}r=="true"&&_gaq.push(["_trackEvent",n,t,i])}catch(u){}}function GAVehicleSearch(n,t,i){var f;if(EnableGA=="true")try{if(n=="Fast Search")if(document.getElementById("ctl00_ContentPlaceHolder1_BreadCrumbswithRP_displayRs")==null)t.match("Keyword Search")||t.match("keyword search")?_gaq.push(["_trackEvent",n,"Keyword Search","0 Refiner"]):_gaq.push(["_trackEvent",n,"Non Keyword Search","0 Refiner"]);else{var u=document.getElementById("ctl00_ContentPlaceHolder1_BreadCrumbswithRP_displayRs").innerText,e=u.split(">"),r=e.length;u.match("Keyword Search")||u.match("keyword search")?t.match("Breadcrumb")||t.match("breadcrumb")?_gaq.push(["_trackEvent",n,"Keyword Search",i+" Refiner"]):(Refiner=r-1>0?r-1:0,_gaq.push(["_trackEvent",n,"Keyword Search",Refiner+" Refiner"])):t.match("Breadcrumb")||t.match("breadcrumb")?(f=i+1,_gaq.push(["_trackEvent","Fast Search","Non Keyword Search",f+" Refiner"])):(Refiner=r>1?r:0,_gaq.push(["_trackEvent",n,"Non Keyword Search",Refiner+" Refiner"]))}n=="Advance Search"&&(t=="Start Over"?_gaq.push(["_trackEvent",n,t]):_gaq.push(["_trackEvent",n,t,i]))}catch(o){}}function TrackGoogleAnalyticsEvents(n,t,i,r){if(EnableGA=="true")try{n=="true"&&_gaq.push(["_trackEvent",t,i,r])}catch(u){}}function GAForNewListingAndDetails(n,t,i){if(EnableGA=="true")try{_gaq.push(["_trackEvent",n,t,i])}catch(r){}}function GAForProductDetails(n,t,i){if(EnableGA=="true")try{_gaq.push(["_trackEvent",n,t,i])}catch(r){}}function initTZViewModel(){var n=JSON.parse(document.getElementById("tzVM").innerHTML),t;ko.utils.arrayForEach(n.LstCountry,function(n){timeZoneVM.Countries.push(n)});ko.utils.arrayForEach(n.LstCity,function(n){timeZoneVM.Citys.push(n)});timeZoneVM.DisplayTime(n.DisplayTime);timeZoneVM.TzAbbreviationText(n.TZAbbreviation);timeZoneVM.CurrentTime(n.CurentTimeText);timeZoneVM.CountryText(n.CountryText);timeZoneVM.CityText(n.CityText);timeZoneVM.TZSaveText(n.SaveText);timeZoneVM.TZCancelText(n.CancelText);timeZoneVM.TimeWithAbbreviation(n.DisplayTime+"  "+n.TZAbbreviation);timeZoneVM.SelectedCountryValue(n.SelectedCountry);t=$.grep(n.LstCity,function(t){return t.Key==n.SelectedCity});t!=null&&t.length>0&&(timeZoneVM.SelectedCityValue(t[0].Value),timeZoneVM.TimeZoneMapId(t[0].Value));timeZoneVM.SelectedCountryValue.subscribe(function(n){timeZoneVM.IsCountryCityChanged(!0);var t=n,i={SelectedCountry:t};$.ajax({type:"POST",url:appRootDir+"SiteTimeZone/GetCityList/",data:i,success:function(n){timeZoneVM.Citys.removeAll();ko.utils.arrayForEach(n.LstCity,function(n){timeZoneVM.Citys.push(n)})},dataType:"json"})});timeZoneVM.SelectedCityValue.subscribe(function(n){timeZoneVM.IsCountryCityChanged(!0);var t=n,i={SelectedCity:t};$.ajax({type:"POST",url:appRootDir+"SiteTimeZone/GetTime/",data:i,success:function(n){timeZoneVM.DisplayTime(n.DisplayTime);timeZoneVM.TzAbbreviationText(n.TZAbbreviation);timeZoneVM.TimeWithAbbreviation(n.DisplayTime+"  "+n.TZAbbreviation)},dataType:"json"})});ko.applyBindings(timeZoneVM,document.getElementById("timezoneSection"))}function isIE8Hack(n,t){var i=!1;try{$.browser.msie&&parseInt($.browser.version)<9&&n&&n.target.tagName.toUpperCase()===t.toUpperCase()&&(i=!0)}catch(r){}return i}function submitForm(n,t,i){var r,f,u;i=i||"post";t=t||[];r=document.createElement("form");r.setAttribute("method",i);r.setAttribute("action",n);t.source=window.location.pathname+window.location.search;for(f in t)t.hasOwnProperty(f)&&(u=document.createElement("input"),u.setAttribute("type","hidden"),u.setAttribute("name",f),u.setAttribute("value",t[f]),r.appendChild(u));document.body.appendChild(r);r.submit()}function timeZoneToggle(n){n.stopPropagation();$(".lang_timebg").toggleClass("timeHover").toggleClass("lang_timebgSel");$(".lang_bg").removeClass("langHover").removeClass("lang_bgSel");$(".LoginArrow").removeClass("loginHover").removeClass("LoginArrowSel");$(".time_change").toggle();$(".lang, .LoginSub").hide();try{$("#_RegisterNow").tooltipster("hide")}catch(t){}}function scrollFooter(){$("html, body").animate({scrollTop:$("#footerContainer").offset().top},300)}function cancelTimeZone(){$("#timeContainer").slideUp("fast",function(){$(".prefBtn").removeClass("activeSelection")})}function hidemodal(n,t){return document.getElementById(n).style.display="none",document.getElementById(t).style.display="none",!1}function dontshow(n,t){return createCookie(iebrowserValidationCookie.cookieName,iebrowserValidationCookie.value,iebrowserValidationCookie.cookieExpiryDays),hidemodal(n,t)}function DisplayBrowserUpgradeMessage(n,t){var i,r;if(t!="False"){if(i=navigator.appName,i.indexOf("Microsoft",0)<0)return;r=getInternetExplorerVersion();r<n&&$("#browserupgradediv").show()}}function showmodal(n,t,i,r){var u,f,e;if(r!="False"){if(u=navigator.appName,u.indexOf("Microsoft",0)<0){document.getElementById(n).style.display="none";document.getElementById(t).style.display="none";return}f=getInternetExplorerVersion();f<i&&(e=readCookie(iebrowserValidationCookie.cookieName),e||(document.getElementById(n).style.display="block",document.getElementById(t).style.display="block",isBrowserUpgradePopupLoaded=!0))}}function createCookie(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"}function readCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function appendCookie(n,t,i){var t=t||{};createCookie(n,createCookieValue(n,t),i)}function createCookieValue(n,t){var i=readCookieValues(n),r,u;$.extend(i,t);r=[];for(u in i)r.push(u+"="+i[u]);return r.join("&")}function readCookieValues(n){var r={},f=readCookie(n),u,t,i;if(!f)return r;for(u=f.split("&"),i=0;i<u.length;i++)t=u[i].split("="),r[t[0]]=t.length>1?t[1]:"";return r}function getInternetExplorerVersion(){var n=-1,t,i;return navigator.appName=="Microsoft Internet Explorer"&&(t=navigator.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),i.exec(t)!=null&&(n=parseFloat(RegExp.$1))),n}function FormatPhoneNumber(n){var i,t;return n!=null&&n.match("^\\d{3}-\\d{3}-\\d{4}$")?n:(n!=null&&(i="(?:[^a-z0-9 ]|(?<=['\"])s)",n=n.replace(i,""),n.length>=10&&(n=n.replace("s*",""),t=n.match(/^(\d{3})(\d{3})(\d{4})$/),n=t?+t[1]+"-"+t[2]+"-"+t[3]:null),n.length==9&&(n=n.replace("s*",""),t=n.match(/^(\d{3})(\d{3})(\d{3})$/),n=t?+t[1]+"-"+t[2]+"-"+t[3]:null),n.length==8&&(n=n.replace("s*",""),t=n.match(/^(\d{3})(\d{3})(\d{2})$/),n=t?+t[1]+"-"+t[2]+"-"+t[3]:null),n.length==7&&(n=n.replace("s*",""),t=n.match(/^(\d{3})(\d{3})(\d{1})$/),n=t?+t[1]+"-"+t[2]+"-"+t[3]:null)),n)}function FormatZip(n){var i,t;return n!=null&&(n.length<=5||n.match("^\\d{5}-\\d{4}$"))?n:(n!=null&&(i="(?:[^a-z0-9 ]|(?<=['\"])s)",n=n.replace(i,""),n.length>=6&&(n=n.replace("s*",""),t=n.match(/^(\d{5})(\d{4})$/),n=t?+t[1]+"-"+t[2]:null)),n)}function OpenWindow(n){window.open(n,null,"toolbar=no,status=yes,menubar=no,scrollbars=yes,location=no,resizable=yes,height=900,width=900")}function launchIBidLive(n,t){t||GAForNewListingAndDetails("New AC Listing","Auction List Ibid Live Click","");var r=t?"VDaIbid_":"aIbid_",u=t?"VDimgIbid_":"imgIbid_",i=appRootDir+"IBidLiveGateway.aspx?branchCode="+n+"&ReturnURL="+appRootDir+"Auctions/AuctionVehicles";IsLoggedIn=="true"?openWindows(r+n,i,null,"width=952,height=600,left=25,top=50,resizable=yes,scrollbars=no",isGuestUser,ibidliveDelayTime,u+n,imgfadedPath,imgIbidlive):openWindow(i,null,"width=952,height=600,left=25,top=50,resizable=yes,scrollbars=no",isGuestUser)}function launchBidLive(n,t,i,r){var u="imgIbid_"+n,f=appRootDir+"IBidLiveGateway.aspx?branchCode="+n+"&ReturnURL="+location.pathname+location.search;t=="True"?(openWindow(f,null,"width=952,height=600,left=25,top=50,resizable=yes,scrollbars=no",i),$("#"+u).prop("disabled",!0),setTimeout(function(){$("#"+u).prop("disabled",!1)},r)):openWindow(f,null,"width=952,height=600,left=25,top=50,resizable=yes,scrollbars=no",i)}function launchBidLiveWithTracking(n,t,i,r,u){console.log("launchBidLive optimizely Tracking in Scriptsglobal.js");TrackActionClick("vd_buynow_click",u);launchBidLive(n,t,i,r)}function openWindow(n,t,i,r){navigator.userAgent.match(/Android/i)?window.open(n,t):r=="True"?window.open(n,t,i):(t==null&&(t=(new Date).getTime().toString()),window.open(n,t,i))}function openIBLWindow(n,t,i,r,u){navigator.userAgent.match(/Android/i)?(window.open(n,t),$("#btnIbidLive_"+u).attr("disabled",!0),setTimeout(function(){$("#btnIbidLive_"+u).attr("disabled",!1)},5e3)):r=="True"?(window.open(n,t,i),$("#btnIbidLive_"+u).attr("disabled",!0),setTimeout(function(){$("#btnIbidLive_"+u).attr("disabled",!1)},5e3)):(t==null&&(t=(new Date).getTime().toString()),window.open(n,t,i),$("#btnIbidLive_"+u).attr("disabled",!0),setTimeout(function(){$("#btnIbidLive_"+u).attr("disabled",!1)},5e3))}function openWindows(n,t,i,r,u,f,e,o,s){var h,c;f==undefined&&(f=5e3);h=document.getElementById(e);h!=null&&h.setAttribute("src",o);c=document.getElementById(n);navigator.userAgent.match(/Android/i)?window.open(t,i):(i==null&&(i=(new Date).getTime().toString()),window.open(t,i,r),c!=null&&c.removeAttribute("href"),setTimeout("TimeDelay('"+n+"','"+t+"','"+u+"','"+f+"','"+e+"','"+o+"','"+s+"')",f))}function TimeDelay(n,t,i,r,u,f,e){var s=document.getElementById(u),o,h;s!=null&&s.setAttribute("src",e);o=document.getElementById(n);h="javascript: openWindows('"+o.id+"', '"+t+"', null, 'width=952,height=600,left=25,top=50,resizable=yes,scrollbars=no', '"+i+"','"+r+"','"+u+"','"+f+"','"+e+"');";o.setAttribute("href",h)}function GASearchLink(n){if(EnableGA=="true")try{n=="Advanced Search"?_gaq.push(["_trackEvent","Search Option","Advanced Search"]):n=="New Search"?_gaq.push(["_trackEvent","Search Option","Fast Search"]):n=="Start Over"&&_gaq.push(["_trackEvent","Search Option","Start Over"])}catch(t){}}function GetTranslation(n,t){var u="",f,i,r;if(t!=null)for(f=n.length,i=0;i<f;i++)if(r=n[i],r.key.toLowerCase()==t.toLowerCase()){u=r.value;break}return u}function TriggerEmail(n,t,i,r){var u=window.location.href,f,e;u!=null&&(f=u.split("?"),f!=null&&f.length>0&&u.indexOf("?")>0&&(u=u.indexOf("?RowNumber=")>0?f[0]:f[0]+"?itemID="+i),e=encodeURIComponent(n+"\n\n"+u),r||(r="I think you'd like this vehicle at IAA."),window.location.href="mailto:?body="+e+"&subject="+r)}function TriggerUKCanadaEmail(n,t,i,r){var u=window.location.href,f,e;u!=null&&(f=u.split("?"),f!=null&&f.length>0&&u.indexOf("?")>0&&(u=u.indexOf("?RowNumber=")>0?f[0]:f[0]+"?tenant="+t+"&RowNumber=0"),e=encodeURIComponent(n+"\n\n"+u),r||(r="I think you'd like this vehicle at IAA."),window.location.href="mailto:?body="+e+"&subject="+r)}function TriggerEmailSalesList(n,t,i,r){var f=window.location.href,u,e;console.log("url- "+f);f!=null&&(u=f.split("?"),u!=null&&u.length>0&&(console.log("split- "+u),console.log("split[0]- "+u[0]),f=f.toLowerCase().indexOf("saleslist?")!=-1?u[0]+"?branchCode="+t+"&aucDate="+i:u[0]),e=encodeURIComponent(n+"\n\n"+f),r||(r="I think you'd like this auction at IAA"),window.location.href="mailto:?body="+e+"&subject="+r)}function CreateOpenSeadragonViewer(){return openSeadragonViewer&&(openSeadragonViewer.destroy(),openSeadragonViewer=null),openSeadragonViewer=OpenSeadragon({id:"deepzoom",prefixUrl:"../Images/SeaDragon/",blendTime:.5,zoomInButton:"zoomin",zoomOutButton:"zoomout",visibilityRatio:1,minZoomImageRatio:1,homeButton:"home",hash:generateUniqueHash(),fullPageButton:"fullscreen"})}function formatCurrency(n){n=n.toString().replace(/\$|\,/g,"");isNaN(n)&&(n="0");sign=n==(n=Math.abs(n));n=Math.floor(n*100+.50000000001);cents=n%100;n=Math.floor(n/100).toString();cents<10&&(cents="0"+cents);for(var t=0;t<Math.floor((n.length-(1+t))/3);t++)n=n.substring(0,n.length-(4*t+3))+","+n.substring(n.length-(4*t+3));return(sign?"":"-")+"$"+n+"."+cents}function removeCurrency(n){var t=/\(/;return t=/\)|\(|[,]/g,n=n.replace(t,""),n.indexOf("$")>=0&&(n=n.replace("$","")),n}function CloseOutageMessage(n){var t={msg:n};$.ajax({url:appRootDir+"SiteHeader/CloseSiteHeaderLink/",data:t,cache:!1,success:function(){$("#jsoutagemessage").hide()}})}function ReloadLazyLoadImages(){lazyLoadModule.lazyLoadImages()}var getElementsByClassName,customIE_old_onload,custom_old_onload,isMSIE,customIE_old_onload_2,GAIBidLiveEventCategObj,GAIBidLiveActionObj,GAIBidLiveLabelObj,startTime,endTime,speedBps,perform_acrobat_detection,BrowserDetect,timeZoneVM,monthNamesAbbrArray,dayNameAbbrArray,iebrowserValidationCookie,generateUniqueHash,openSeadragonViewer,lazyLoadModule,prmLazyLoadInstance;$(document).ready(function(){$(".js-iaai-search").click(function(){$(".js-div-mobile-site-search, .js-div-mobile-vehicle-search").toggle()});$(".js-vehicle-search").click(function(){$(".js-div-mobile-site-search, .js-div-mobile-vehicle-search").toggle()});$("#js-keyword-filter").on("click",function(){LoadSearchFilterDynamic()});$("#js-btn-header-filters").on("click",function(){var n=$(this),i=n.find(".btn-view-filters"),t=$("#js-accordion-header-filters"),r=t.is(":visible");r?(t.slideUp("fast"),i.text("View More"),n.addClass("collapsed")):(t.slideDown("fast"),i.text("View Less"),n.removeClass("collapsed"))});$(document).mouseup(function(n){var t=$("#js-filters-dropdown");t.is(n.target)||t.has(n.target).length!==0||$("#js-filters-dropdown").fadeOut("fast")});$("#js-btn-nav").on("click",function(){var n=$(".header").hasClass("is-active");n?closeNav():openNav()});$(".js-dropdown-toggle").on("click",function(){var n=$(this),t=n.siblings(".dropdown-menu"),i=t.is(":visible");i?(t.slideUp("fast"),n.removeClass("is-open")):(t.slideDown("fast"),n.addClass("is-open"))})});addDOMLoadEvent=function(){var t=[],i,r,u,f,n=function(){for(r=!0,clearInterval(i);u=t.shift();)u();f&&(f.onreadystatechange="")};return function(u){if(r)return u();if(!t[0]){document.addEventListener&&document.addEventListener("DOMContentLoaded",n,!1);/*@cc_on@if(@_win32)var f="src='javascript:void(0)'";location.protocol=="https:"&&(f="src=//0");document.write("<script id=__ie_onload defer "+f+"><\/script>");var e=document.getElementById("__ie_onload");e.onreadystatechange=function(){if(this.readyState=="complete")var t=setInterval(function(){n()},100)};@end@*//WebKit/i.test(navigator.userAgent)&&(i=setInterval(function(){/loaded|complete/.test(document.readyState)&&n()},10));old_onload=window.onload;window.onload=function(){n();old_onload&&old_onload()}}t.push(u)}}();getElementsByClassName=function(n,t,i){return getElementsByClassName=document.getElementsByClassName?function(n,t,i){var r,s;i=i||document;var f=i.getElementsByClassName(n),e=t?new RegExp("\\b"+t+"\\b","i"):null,o=[],u;for(r=0,s=f.length;r<s;r+=1)u=f[r],(!e||e.test(u.nodeName))&&o.push(u);return o}:document.evaluate?function(n,t,i){var r,c;t=t||"*";i=i||document;var e=n.split(" "),u="",o="http://www.w3.org/1999/xhtml",l=document.documentElement.namespaceURI===o?o:null,s=[],f,h;for(r=0,c=e.length;r<c;r+=1)u+="[contains(concat(' ', @class, ' '), ' "+e[r]+" ')]";try{f=document.evaluate(".//"+t+u,i,l,0,null)}catch(a){f=document.evaluate(".//"+t+u,i,null,0,null)}while(h=f.iterateNext())s.push(h);return s}:function(n,t,i){var u,a,f,v,e,y;t=t||"*";i=i||document;var h=n.split(" "),o=[],c=t==="*"&&i.all?i.all:i.getElementsByTagName(t),s,l=[],r;for(u=0,a=h.length;u<a;u+=1)o.push(new RegExp("(^|\\s)"+h[u]+"(\\s|$)"));for(f=0,v=c.length;f<v;f+=1){for(s=c[f],r=!1,e=0,y=o.length;e<y;e+=1)if(r=o[e].test(s.className),!r)break;r&&l.push(s)}return l},getElementsByClassName(n,t,i)};addDOMLoadEvent_OLD=function(){var i=[],u,n,f,e,r,t=function(){for(f=!0,clearInterval(u);e=i.shift();)e();n&&(n.onreadystatechange="")};return function(e){if(f)return e();if(!i[0]){document.addEventListener&&document.addEventListener("DOMContentLoaded",t,!1);/*@if(@_win32)document.write("<script id=__ie_onload defer src=//0><\/script>");n=document.getElementById("__ie_onload");n.onreadystatechange=function(){this.readyState=="complete"&&t()};@end@*//WebKit/i.test(navigator.userAgent)&&(u=setInterval(function(){/loaded|complete/.test(document.readyState)&&t()},10));r=window.onload;window.onload=function(){t();r&&r()}}i.push(e)}}();isMSIE=/*@!@*/!1;isMSIE?(customIE_old_onload=window.onload,window.onload=function(){BreakoutsInit();SearchPanel=new modifySearchPanel;customIE_old_onload&&customIE_old_onload()}):(addDOMLoadEvent(BreakoutsInit),addDOMLoadEvent(function(){SearchPanel=new modifySearchPanel}));addDOMLoadEvent(lyteboxModInit);addDOMLoadEvent(buttonTextAddLineBreaks_init);custom_old_onload=window.onload;window.onload=function(){adjustContainerForWideContent_init();custom_old_onload&&custom_old_onload()};isMSIE=/*@!@*/!1;isMSIE?(customIE_old_onload_2=window.onload,window.onload=function(){modal_close_button_init();customIE_old_onload_2&&customIE_old_onload_2()}):addDOMLoadEvent(modal_close_button_init);GAIBidLiveEventCategObj=[];GAIBidLiveEventCategObj.IBLPreferenceChangeViaProfile="IBL Preference Change - Via Profile";GAIBidLiveEventCategObj["IBLDemoViewsI-BidLive"]="IBL Demo Views(I-Bid Live)";GAIBidLiveEventCategObj.IBLPreferenceChangeViaDemo="IBL Preference Change - via Demo";GAIBidLiveActionObj=[];GAIBidLiveActionObj.IBLPreferenceAvoidFullVersion="IBL Preference - Avoid Full Version";GAIBidLiveActionObj.IBLPreferenceLeaveFullVersion="IBL Preference - Leave Full Version";GAIBidLiveActionObj.IBLPreferenceChooseFullVersion="IBL Preference - Choose Full version";GAIBidLiveActionObj.IBLDemoSplashByLaunchingEvent="IBL Demo Splash by launching event";GAIBidLiveActionObj.IBLDemoFeatureViewMoreVehicleDetails="IBL Demo Feature - View More Vehicle Details";GAIBidLiveActionObj.IBLDemoFeatureViewAllImages="IBL Demo Feature - View all Images";GAIBidLiveActionObj.IBLDemoFeatureEnlargeImage="IBL Demo Feature - Enlarge Image";GAIBidLiveActionObj.IBLDemoFeatureViewPreviousVehicles="IBL Demo Feature - View Previous Vehicles";GAIBidLiveActionObj.IBLDemoFeatureViewUpcomingVehicles="IBL Demo Feature - View Upcoming Vehicles";GAIBidLiveActionObj.IBLDemoFeatureAuctions="IBL Demo Feature - Auctions";GAIBidLiveActionObj["IBLPreference(demo)DeferChoice"]="IBL Preference(demo) - Defer choice";GAIBidLiveActionObj["IBLPreference(demo)DeclineUpdate"]="IBL Preference(demo) - Decline update";GAIBidLiveActionObj["IBLPreference(demo)AcceptUpdate"]="IBL Preference(demo) - Accept update";GAIBidLiveLabelObj=[];GAIBidLiveLabelObj.IBLPreferenceDownloadToLight="IBL Preference - Download to Light";GAIBidLiveLabelObj.IBLPreferenceLightToDownload="IBL Preference - Light to Download";GAIBidLiveLabelObj.IBLPreferenceFullToLight="IBL Preference - Full to Light";GAIBidLiveLabelObj.IBLPreferenceFullToDownload="IBL Preference - Full to Download";GAIBidLiveLabelObj.IBLPreferenceLightToFull="IBL Preference - Light to Full";GAIBidLiveLabelObj.IBLPreferenceDownloadToFull="IBL Preference - Download to Full";GAIBidLiveLabelObj.IBLDemoNewVersionAvailableAuctionTimesPage="IBL Demo - New Version Available - Auction Times page";GAIBidLiveLabelObj.IBLDemoNewVersionAvailableProfilePage="IBL Demo - New Version Available - Profile page";GAIBidLiveLabelObj.IBLDemoIBLAuctionEntry="IBL Demo - IBL auction entry";GAIBidLiveLabelObj["IBLPreference(demo)FullFromLight"]="IBL Preference(demo) - Full from Light";GAIBidLiveLabelObj["IBLPreference(demo)FullFromDownload"]="IBL Preference(demo) - Full from Download";perform_acrobat_detection=function(){var n={name:null,acrobat:null,acrobat_ver:null},t,i;n.name=navigator&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1?"chrome":navigator&&navigator.userAgent.toLowerCase().indexOf("msie")>-1?"ie":navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1?"firefox":"other";try{if(n.name=="ie"){t=null;try{t=new ActiveXObject("AcroPDF.PDF")}catch(r){}if(!t)try{t=new ActiveXObject("PDF.PdfCtrl")}catch(r){}if(!t)return n.acrobat=null,n;version=t.GetVersions().split(",");version=version[0].split("=");n.acrobat="Adobe Acrobat installed";n.acrobat_ver=parseFloat(version[1])}else if(n.name=="chrome")for(key in navigator.plugins)(navigator.plugins[key].name=="Chrome PDF Viewer"||navigator.plugins[key].name=="Adobe Acrobat")&&(n.acrobat="Adobe Acrobat installed",n.acrobat_ver=parseInt(navigator.plugins[key].version)||"Chome PDF Viewer");else if(navigator.plugins!=null){if(i=navigator.plugins["Adobe Acrobat"],i==null)return n.acrobat=null,n;n.acrobat="Adobe Acrobat installed";n.acrobat_ver=parseInt(i.version[0])}}catch(r){n.acrobat_ver=null}return n};BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version"},searchString:function(n){for(var i,r,t=0;t<n.length;t++)if(i=n[t].string,r=n[t].prop,this.versionSearchString=n[t].versionSearch||n[t].identity,i){if(i.indexOf(n[t].subString)!=-1)return n[t].identity}else if(r)return n[t].identity},searchVersion:function(n){var t=n.indexOf(this.versionSearchString);if(t!=-1)return parseFloat(n.substring(t+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera",versionSearch:"Version"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}]};$(document).ready(function(){$.ajax({url:"/ACSiteHeader/BrokerPopup",type:"GET",success:function(n){n=="True"?$(".georgia-flag-link").show():$(".georgia-flag-link").hide()}});$("#txtSearch").keydown(function(n){if(n.which===38)return!1});var t=function(){var n=0;return function(t,i){clearTimeout(n);n=setTimeout(t,i)}}(),n;$("#txtSearch").keyup(function(i){var u=$(".suggestionlst"),r;i.which===40?(n?(n.removeClass("selected"),next=n.next(),n=next.length>0?next.addClass("selected"):u.eq(0).addClass("selected")):n=u.eq(0).addClass("selected"),r=n.addClass("selected").find(".suggestionData").text(),(r==undefined||r.length<=0)&&(r=n.hasClass("suggestionlstLable")?"":n.addClass("selected").text()),$(this).val(r)):i.which===38?(n?(n.removeClass("selected"),next=n.prev(),n=next.length>0?next.addClass("selected"):u.last().addClass("selected")):n=u.last().addClass("selected"),r=n.addClass("selected").find(".suggestionData").text(),(r==undefined||r.length<=0)&&(r=n.hasClass("suggestionlstLable")?"":n.addClass("selected").text()),$(this).val(r)):$("#txtSearch").val()!=""?t(function(){$("#drop").slideDown("fast");SearchText()},700):($("#SuggestionList").empty(),$("#drop").slideUp("fast"))});$("#txtSearch").focus(function(){typeof bannerController!="undefined"&&(bannerController.slider=null);$(document).bind("focusin.example click.example",function(n){$(n.target).closest("#drop, #txtSearch").length||($(document).unbind("#drop"),$("#drop").slideUp("fast"))})});$("#txtSearch").focusout(function(){typeof bannerController!="undefined"&&(bannerController.slider=$(".sliderBanner").data("sliderBanner"))});$(window).scroll(function(){$(this).scrollTop()>0?$(".siteDownMes").fadeOut():$(".siteDownMes").fadeIn()})}),function(n){n&&(n.fn.headroom=function(t){return this.each(function(){var u=n(this),i=u.data("headroom"),r=typeof t=="object"&&t;r=n.extend(!0,{},Headroom.options,r);i||(i=new Headroom(this,r),i.init(),u.data("headroom",i));typeof t=="string"&&i[t]()})},n("[data-headroom]").each(function(){var t=n(this);t.headroom(t.data())}))}(window.Zepto||window.jQuery);$(document).ready(function(){$("#btnClearSearch").hide();$("#btnClearSearch").on("click",function(){$("#txtSearch").val("");$("#btnClearSearch").hide()});$("#txtSearch").on("keyup",function(){$("#txtSearch").val()!=""?$("#btnClearSearch").show():$("#btnClearSearch").hide()})});$(document).on("keyup",function(n){var t=$("#drop").attr("style");t!=undefined&&(n.keyCode||n.which)==13&&t!="undefined"&&t.indexOf("display: block;")!=-1&&doKeywordSearch($("#txtSearch").val())});timeZoneVM={Countries:ko.observableArray([]),Citys:ko.observableArray([]),SelectedCountryValue:ko.observable(),SelectedCityValue:ko.observable(),TimeZoneMapId:ko.observable().publishOn("TimeZoneMapId"),DisplayTime:ko.observable(),TzAbbreviationText:ko.observable(),CurrentTime:ko.observable(),CountryText:ko.observable(),CityText:ko.observable(),TZSaveText:ko.observable(),TZCancelText:ko.observable(),TimeWithAbbreviation:ko.observable(),IsCountryCityChanged:ko.observable(!1),save:function(n,t){if(!isIE8Hack(t,"SELECT")){var i=timeZoneVM.SelectedCityValue(),r={SelectedCity:i};submitForm(appRootDir+"SiteTimeZone/Save/",r)}},cancel:function(n,t){isIE8Hack(t,"SELECT")||(timeZoneVM.IsCountryCityChanged()==!0?window.location.reload(!0):cancelTimeZone())}};$(function(){initTZViewModel()});!function(n,t,i){function h(t,i){this.bodyOverflowX;this.callbacks={hide:[],show:[]};this.checkInterval=null;this.Content;this.$el=n(t);this.$elProxy;this.elProxyPosition;this.enabled=!0;this.options=n.extend({},f,i);this.mouseIsOverProxy=!1;this.namespace="tooltipster-"+Math.round(1e5*Math.random());this.Status="hidden";this.timerHide=null;this.timerShow=null;this.$tooltip;this.options.iconTheme=this.options.iconTheme.replace(".","");this.options.theme=this.options.theme.replace(".","");this._init()}function e(t,i){var r=!0;return n.each(t,function(n){if("undefined"==typeof i[n]||t[n]!==i[n])return(r=!1,!1)}),r}function o(){return!s&&r}function u(){var u=i.body||i.documentElement,r=u.style,n="transition",t;if("string"==typeof r[n])return!0;for(v=["Moz","Webkit","Khtml","O","ms"],n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<v.length;t++)if("string"==typeof r[v[t]+n])return!0;return!1}var f={animation:"fade",arrow:!0,arrowColor:"",autoClose:!0,content:null,contentAsHTML:!1,contentCloning:!0,debug:!0,delay:200,minWidth:0,maxWidth:null,functionInit:function(){},functionBefore:function(n,t){t()},functionReady:function(){},functionAfter:function(){},hideOnClick:!1,icon:"(?)",iconCloning:!0,iconDesktop:!1,iconTouch:!1,iconTheme:"tooltipster-icon",interactive:!1,interactiveTolerance:350,multiple:!1,offsetX:0,offsetY:0,onlyOne:!1,position:"top",positionTracker:!1,positionTrackerCallback:function(){"hover"==this.option("trigger")&&this.option("autoClose")&&this.hide()},restoration:"current",speed:350,timer:0,theme:"tooltipster-default",touchDevices:!0,trigger:"hover",updateAnimation:!0},r,s;h.prototype={_init:function(){var t=this,u,f;i.querySelector&&(u=null,void 0===t.$el.data("tooltipster-initialTitle")&&(u=t.$el.attr("title"),void 0===u&&(u=null),t.$el.data("tooltipster-initialTitle",u)),null!==t.options.content?t._content_set(t.options.content):t._content_set(u),f=t.options.functionInit.call(t.$el,t.$el,t.Content),"undefined"!=typeof f&&t._content_set(f),t.$el.removeAttr("title").addClass("tooltipstered"),!r&&t.options.iconDesktop||r&&t.options.iconTouch?("string"==typeof t.options.icon?(t.$elProxy=n('<span class="'+t.options.iconTheme+'"><\/span>'),t.$elProxy.text(t.options.icon)):t.$elProxy=t.options.iconCloning?t.options.icon.clone(!0):t.options.icon,t.$elProxy.insertAfter(t.$el)):t.$elProxy=t.$el,"hover"==t.options.trigger?(t.$elProxy.on("mouseenter."+t.namespace,function(){(!o()||t.options.touchDevices)&&(t.mouseIsOverProxy=!0,t._show())}).on("mouseleave."+t.namespace,function(){(!o()||t.options.touchDevices)&&(t.mouseIsOverProxy=!1)}),r&&t.options.touchDevices&&t.$elProxy.on("touchstart."+t.namespace,function(){t._showNow()})):"click"==t.options.trigger&&t.$elProxy.on("click."+t.namespace,function(){(!o()||t.options.touchDevices)&&t._show()}))},_show:function(){var n=this;"shown"!=n.Status&&"appearing"!=n.Status&&(n.options.delay?n.timerShow=setTimeout(function(){("click"==n.options.trigger||"hover"==n.options.trigger&&n.mouseIsOverProxy)&&n._showNow()},n.options.delay):n._showNow())},_showNow:function(i){var f=this;f.options.functionBefore.call(f.$el,f.$el,function(){var e,s,o;if(f.enabled&&null!==f.Content){if(i&&f.callbacks.show.push(i),f.callbacks.hide=[],clearTimeout(f.timerShow),f.timerShow=null,clearTimeout(f.timerHide),f.timerHide=null,f.options.onlyOne&&n(".tooltipstered").not(f.$el).each(function(t,i){var r=n(i),u=r.data("tooltipster-ns");n.each(u,function(n,t){var i=r.data(t),u=i.status(),f=i.option("autoClose");"hidden"!==u&&"disappearing"!==u&&f&&i.hide()})}),e=function(){f.Status="shown";n.each(f.callbacks.show,function(n,t){t.call(f.$el)});f.callbacks.show=[]},"hidden"!==f.Status)s=0,"disappearing"===f.Status?(f.Status="appearing",u()?(f.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-"+f.options.animation+"-show"),f.options.speed>0&&f.$tooltip.delay(f.options.speed),f.$tooltip.queue(e)):f.$tooltip.stop().fadeIn(e)):"shown"===f.Status&&e();else{f.Status="appearing";s=f.options.speed;f.bodyOverflowX=n("body").css("overflow-x");n("body").css("overflow-x","hidden");var h="tooltipster-"+f.options.animation,c="-webkit-transition-duration: "+f.options.speed+"ms; -webkit-animation-duration: "+f.options.speed+"ms; -moz-transition-duration: "+f.options.speed+"ms; -moz-animation-duration: "+f.options.speed+"ms; -o-transition-duration: "+f.options.speed+"ms; -o-animation-duration: "+f.options.speed+"ms; -ms-transition-duration: "+f.options.speed+"ms; -ms-animation-duration: "+f.options.speed+"ms; transition-duration: "+f.options.speed+"ms; animation-duration: "+f.options.speed+"ms;",l=f.options.minWidth?"min-width:"+Math.round(f.options.minWidth)+"px;":"",a=f.options.maxWidth?"max-width:"+Math.round(f.options.maxWidth)+"px;":"",v=f.options.interactive?"pointer-events: auto;":"";if(f.$tooltip=n('<div class="tooltipster-base '+f.options.theme+'" style="'+l+" "+a+" "+v+" "+c+'"><div class="tooltipster-content"><\/div><\/div>'),u()&&f.$tooltip.addClass(h),f._content_insert(),f.$tooltip.appendTo("body"),f.reposition(),f.options.functionReady.call(f.$el,f.$el,f.$tooltip),u()?(f.$tooltip.addClass(h+"-show"),f.options.speed>0&&f.$tooltip.delay(f.options.speed),f.$tooltip.queue(e)):f.$tooltip.css("display","none").fadeIn(f.options.speed,e),f._interval_set(),n(t).on("scroll."+f.namespace+" resize."+f.namespace,function(){f.reposition()}),f.options.autoClose)if(n("body").off("."+f.namespace),"hover"==f.options.trigger){if(r&&setTimeout(function(){n("body").on("touchstart."+f.namespace,function(){f.hide()})},0),f.options.interactive){r&&f.$tooltip.on("touchstart."+f.namespace,function(n){n.stopPropagation()});o=null;f.$elProxy.add(f.$tooltip).on("mouseleave."+f.namespace+"-autoClose",function(){clearTimeout(o);o=setTimeout(function(){f.hide()},f.options.interactiveTolerance)}).on("mouseenter."+f.namespace+"-autoClose",function(){clearTimeout(o)})}else f.$elProxy.on("mouseleave."+f.namespace+"-autoClose",function(){f.hide()});f.options.hideOnClick&&f.$elProxy.on("click."+f.namespace+"-autoClose",function(){f.hide()})}else"click"==f.options.trigger&&(setTimeout(function(){n("body").on("click."+f.namespace+" touchstart."+f.namespace,function(){f.hide()})},0),f.options.interactive&&f.$tooltip.on("click."+f.namespace+" touchstart."+f.namespace,function(n){n.stopPropagation()}))}f.options.timer>0&&(f.timerHide=setTimeout(function(){f.timerHide=null;f.hide()},f.options.timer+s))}})},_interval_set:function(){var t=this;t.checkInterval=setInterval(function(){if(0===n("body").find(t.$el).length||0===n("body").find(t.$elProxy).length||"hidden"==t.Status||0===n("body").find(t.$tooltip).length)("shown"==t.Status||"appearing"==t.Status)&&t.hide(),t._interval_cancel();else if(t.options.positionTracker){var i=t._repositionInfo(t.$elProxy),r=!1;e(i.dimension,t.elProxyPosition.dimension)&&("fixed"===t.$elProxy.css("position")?e(i.position,t.elProxyPosition.position)&&(r=!0):e(i.offset,t.elProxyPosition.offset)&&(r=!0));r||(t.reposition(),t.options.positionTrackerCallback.call(t,t.$el))}},200)},_interval_cancel:function(){clearInterval(this.checkInterval);this.checkInterval=null},_content_set:function(n){"object"==typeof n&&null!==n&&this.options.contentCloning&&(n=n.clone(!0));this.Content=n},_content_insert:function(){var n=this,t=this.$tooltip.find(".tooltipster-content");"string"!=typeof n.Content||n.options.contentAsHTML?t.empty().append(n.Content):t.text(n.Content)},_update:function(n){var t=this;t._content_set(n);null!==t.Content?"hidden"!==t.Status&&(t._content_insert(),t.reposition(),t.options.updateAnimation&&(u()?(t.$tooltip.css({width:"","-webkit-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-moz-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-o-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms","-ms-transition":"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms",transition:"all "+t.options.speed+"ms, width 0ms, height 0ms, left 0ms, top 0ms"}).addClass("tooltipster-content-changing"),setTimeout(function(){"hidden"!=t.Status&&(t.$tooltip.removeClass("tooltipster-content-changing"),setTimeout(function(){"hidden"!==t.Status&&t.$tooltip.css({"-webkit-transition":t.options.speed+"ms","-moz-transition":t.options.speed+"ms","-o-transition":t.options.speed+"ms","-ms-transition":t.options.speed+"ms",transition:t.options.speed+"ms"})},t.options.speed))},t.options.speed)):t.$tooltip.fadeTo(t.options.speed,.5,function(){"hidden"!=t.Status&&t.$tooltip.fadeTo(t.options.speed,1)}))):t.hide()},_repositionInfo:function(n){return{dimension:{height:n.outerHeight(!1),width:n.outerWidth(!1)},offset:n.offset(),position:{left:parseInt(n.css("left")),top:parseInt(n.css("top"))}}},hide:function(i){var r=this,f,e;return i&&r.callbacks.hide.push(i),r.callbacks.show=[],clearTimeout(r.timerShow),r.timerShow=null,clearTimeout(r.timerHide),r.timerHide=null,f=function(){n.each(r.callbacks.hide,function(n,t){t.call(r.$el)});r.callbacks.hide=[]},"shown"==r.Status||"appearing"==r.Status?(r.Status="disappearing",e=function(){r.Status="hidden";"object"==typeof r.Content&&null!==r.Content&&r.Content.detach();r.$tooltip.remove();r.$tooltip=null;n(t).off("."+r.namespace);n("body").off("."+r.namespace).css("overflow-x",r.bodyOverflowX);n("body").off("."+r.namespace);r.$elProxy.off("."+r.namespace+"-autoClose");r.options.functionAfter.call(r.$el,r.$el);f()},u()?(r.$tooltip.clearQueue().removeClass("tooltipster-"+r.options.animation+"-show").addClass("tooltipster-dying"),r.options.speed>0&&r.$tooltip.delay(r.options.speed),r.$tooltip.queue(e)):r.$tooltip.stop().fadeOut(r.options.speed,e)):"hidden"==r.Status&&f(),r},show:function(n){return this._showNow(n),this},update:function(n){return this.content(n)},content:function(n){return"undefined"==typeof n?this.Content:(this._update(n),this)},reposition:function(){function k(){var i=n(t).scrollLeft();0>u-i&&(o=u-i,u=i);u+e-i>b&&(o=u-(b+i-e),u=b+i-e)}function d(r,u){i.offset.top-n(t).scrollTop()-c-s-12<0&&u.indexOf("top")>-1&&(f=r);i.offset.top+i.dimension.height+c+12+s>n(t).scrollTop()+n(t).height()&&u.indexOf("bottom")>-1&&(f=r,l=i.offset.top-c-s-12)}var r=this,y,vt,p,ut,ft,w,dt,a,g,kt,nt,gt,ni;if(0!==n("body").find(r.$tooltip).length){r.$tooltip.css("width","");r.elProxyPosition=r._repositionInfo(r.$elProxy);var o=null,b=n(t).width(),i=r.elProxyPosition,e=r.$tooltip.outerWidth(!1),c=(r.$tooltip.innerWidth()+1,r.$tooltip.outerHeight(!1));if(r.$elProxy.is("area")){var yt=r.$elProxy.attr("shape"),ti=r.$elProxy.parent().attr("name"),et=n('img[usemap="#'+ti+'"]'),ot=et.offset().left,st=et.offset().top,v=void 0!==r.$elProxy.attr("coords")?r.$elProxy.attr("coords").split(","):void 0;if("circle"==yt){var pt=parseInt(v[0]),wt=parseInt(v[1]),ht=parseInt(v[2]);i.dimension.height=2*ht;i.dimension.width=2*ht;i.offset.top=st+wt-ht;i.offset.left=ot+pt-ht}else if("rect"==yt){var pt=parseInt(v[0]),wt=parseInt(v[1]),ii=parseInt(v[2]),ri=parseInt(v[3]);i.dimension.height=ri-wt;i.dimension.width=ii-pt;i.offset.top=st+wt;i.offset.left=ot+pt}else if("poly"==yt){for(var tt=0,it=0,ct=0,lt=0,bt="even",rt=0;rt<v.length;rt++)y=parseInt(v[rt]),"even"==bt?(y>ct&&(ct=y,0===rt&&(tt=ct)),tt>y&&(tt=y),bt="odd"):(y>lt&&(lt=y,1==rt&&(it=lt)),it>y&&(it=y),bt="even");i.dimension.height=lt-it;i.dimension.width=ct-tt;i.offset.top=st+it;i.offset.left=ot+tt}else i.dimension.height=et.outerHeight(!1),i.dimension.width=et.outerWidth(!1),i.offset.top=st,i.offset.left=ot}var u=0,at=0,l=0,s=parseInt(r.options.offsetY),h=parseInt(r.options.offsetX),f=r.options.position;"top"==f&&(vt=i.offset.left+e-(i.offset.left+i.dimension.width),u=i.offset.left+h-vt/2,l=i.offset.top-c-s-12,k(),d("bottom","top"));("top-left"==f&&(u=i.offset.left+h,l=i.offset.top-c-s-12,k(),d("bottom-left","top-left")),"top-right"==f&&(u=i.offset.left+i.dimension.width+h-e,l=i.offset.top-c-s-12,k(),d("bottom-right","top-right")),"bottom"==f)&&(vt=i.offset.left+e-(i.offset.left+i.dimension.width),u=i.offset.left-vt/2+h,l=i.offset.top+i.dimension.height+s+12,k(),d("top","bottom"));("bottom-left"==f&&(u=i.offset.left+h,l=i.offset.top+i.dimension.height+s+12,k(),d("top-left","bottom-left")),"bottom-right"==f&&(u=i.offset.left+i.dimension.width+h-e,l=i.offset.top+i.dimension.height+s+12,k(),d("top-right","bottom-right")),"left"==f)&&(u=i.offset.left-h-e-12,at=i.offset.left+h+i.dimension.width+12,p=i.offset.top+c-(i.offset.top+i.dimension.height),(l=i.offset.top-p/2-s,0>u&&at+e>b)?(ut=2*parseFloat(r.$tooltip.css("border-width")),ft=e+u-ut,r.$tooltip.css("width",ft+"px"),c=r.$tooltip.outerHeight(!1),u=i.offset.left-h-ft-12-ut,p=i.offset.top+c-(i.offset.top+i.dimension.height),l=i.offset.top-p/2-s):0>u&&(u=i.offset.left+h+i.dimension.width+12,o="left"));"right"==f&&(u=i.offset.left+h+i.dimension.width+12,at=i.offset.left-h-e-12,p=i.offset.top+c-(i.offset.top+i.dimension.height),(l=i.offset.top-p/2-s,u+e>b&&0>at)?(ut=2*parseFloat(r.$tooltip.css("border-width")),ft=b-u-ut,r.$tooltip.css("width",ft+"px"),c=r.$tooltip.outerHeight(!1),p=i.offset.top+c-(i.offset.top+i.dimension.height),l=i.offset.top-p/2-s):u+e>b&&(u=i.offset.left-h-e-12,o="right"));r.options.arrow&&(w="tooltipster-arrow-"+f,dt=r.options.arrowColor.length<1?r.$tooltip.css("background-color"):r.options.arrowColor,(o?"left"==o?(w="tooltipster-arrow-right",o=""):"right"==o?(w="tooltipster-arrow-left",o=""):o="left:"+Math.round(o)+"px;":o="","top"==f||"top-left"==f||"top-right"==f)?(a=parseFloat(r.$tooltip.css("border-bottom-width")),g=r.$tooltip.css("border-bottom-color")):"bottom"==f||"bottom-left"==f||"bottom-right"==f?(a=parseFloat(r.$tooltip.css("border-top-width")),g=r.$tooltip.css("border-top-color")):"left"==f?(a=parseFloat(r.$tooltip.css("border-right-width")),g=r.$tooltip.css("border-right-color")):"right"==f?(a=parseFloat(r.$tooltip.css("border-left-width")),g=r.$tooltip.css("border-left-color")):(a=parseFloat(r.$tooltip.css("border-bottom-width")),g=r.$tooltip.css("border-bottom-color")),a>1&&a++,kt="",0!==a&&(nt="",gt="border-color: "+g+";",-1!==w.indexOf("bottom")?nt="margin-top: -"+Math.round(a)+"px;":-1!==w.indexOf("top")?nt="margin-bottom: -"+Math.round(a)+"px;":-1!==w.indexOf("left")?nt="margin-right: -"+Math.round(a)+"px;":-1!==w.indexOf("right")&&(nt="margin-left: -"+Math.round(a)+"px;"),kt='<span class="tooltipster-arrow-border" style="'+nt+" "+gt+';"><\/span>'),r.$tooltip.find(".tooltipster-arrow").remove(),ni='<div class="'+w+' tooltipster-arrow" style="'+o+'">'+kt+'<span style="border-color:'+dt+';"><\/span><\/div>',r.$tooltip.append(ni));r.$tooltip.css({top:Math.round(l)+"px",left:Math.round(u)+"px"})}return r},enable:function(){return this.enabled=!0,this},disable:function(){return this.hide(),this.enabled=!1,this},destroy:function(){var t=this,i,r;return t.hide(),t.$el[0]!==t.$elProxy[0]&&t.$elProxy.remove(),t.$el.removeData(t.namespace).off("."+t.namespace),i=t.$el.data("tooltipster-ns"),1===i.length?(r=null,"previous"===t.options.restoration?r=t.$el.data("tooltipster-initialTitle"):"current"===t.options.restoration&&(r="string"==typeof t.Content?t.Content:n("<div><\/div>").append(t.Content).html()),r&&t.$el.attr("title",r),t.$el.removeClass("tooltipstered").removeData("tooltipster-ns").removeData("tooltipster-initialTitle")):(i=n.grep(i,function(n){return n!==t.namespace}),t.$el.data("tooltipster-ns",i)),t},elementIcon:function(){if(this.$el[0]!==this.$elProxy[0])return this.$elProxy[0]},elementTooltip:function(){if(this.$tooltip)return this.$tooltip[0]},option:function(n,t){return"undefined"==typeof t?this.options[n]:(this.options[n]=t,this)},status:function(){return this.Status}};n.fn["tooltipster"]=function(){var t=arguments,r,i;if(0===this.length){if("string"==typeof t[0]){r=!0;switch(t[0]){case"setDefaults":n.extend(f,t[1]);break;default:r=!1}return r?!0:this}return this}if("string"==typeof t[0])return i="#*$~&",this.each(function(){var f=n(this).data("tooltipster-ns"),r=f?n(this).data(f[0]):null,u;if(!r)throw new Error("You called Tooltipster's \""+t[0]+'" method on an uninitialized element');if("function"!=typeof r[t[0]])throw new Error('Unknown method .tooltipster("'+t[0]+'")');return u=r[t[0]](t[1],t[2]),u!==r?(i=u,!1):void 0}),"#*$~&"!==i?i:this;var u=[],e=t[0]&&"undefined"!=typeof t[0].multiple,o=e&&t[0].multiple||!e&&f.multiple,s=t[0]&&"undefined"!=typeof t[0].debug,c=s&&t[0].debug||!s&&f.debug;return this.each(function(){var f=!1,i=n(this).data("tooltipster-ns"),r=null;i?o?f=!0:c&&console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.'):f=!0;f&&(r=new h(this,t[0]),i||(i=[]),i.push(r.namespace),n(this).data("tooltipster-ns",i),n(this).data(r.namespace,r));u.push(r)}),o?u:this};r=!!("ontouchstart"in t);s=!1;n("body").one("mousemove",function(){s=!0})}(jQuery,window,document);monthNamesAbbrArray=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];dayNameAbbrArray=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];jQuery(document).ready(function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(n){var i=this.length>>>0,t=Number(arguments[1])||0;for(t=t<0?Math.ceil(t):Math.floor(t),t<0&&(t+=i);t<i;t++)if(t in this&&this[t]===n)return t;return-1})});$(document).ready(function(){try{$(".tool_ItemNumberTootTipText,.georgia-flag-link, #ctl00_ContentPlaceHolder1_imgRunNDrive, #ctl00_ContentPlaceHolder1_imgVehicleStarts, #ctl00_ContentPlaceHolder1_imgPublic, #ctl00_ContentPlaceHolder1_ShrinkWrapImg, #ctl00_ContentPlaceHolder1_lblStockNumber, #ctl00_ContentPlaceHolder1_lblSaleDoc, #ctl00_ContentPlaceHolder1_InternetLiveImage, .tool_ACVTooltipText,.tool_DataLastUpdatedTooltipText, #ctl00_ContentPlaceHolder1_spanemail, #ctl00_ContentPlaceHolder1_InternetLiveImageTop, .tooltip_VehicleRunandDrive, .tooltip_VehicleStarts,.tooltip_iBidLive,.tooltip_publicVechile,.tooltip_publicAuction,.tooltip_estimatedRepairCost,.tooltip_VehiclesSpecialtyBody,.tooltip_VehiclesBRABody,.tooltip_MyPrebidAuction,.tooltip_financeTermsWhatIsthis, .tooltip_AFCFloorPlanWhatIsThis, .tooltip_toBePaid,.tooltip_IBuyTooltip,.tooltip_IBidTooltip,.tooltip_IbidNow,.tooltip_openVehiclesTool,.tooltip_currentHighPre_Bid,.tooltip_MakeModelNote ,.tooltip_BuyFastPriceText,.tooltip_keywordSearch,.tooltip_PreBiddingHelpText,.tooltip_minbidWhatIsthis,.tooltip_offsiteTooltip,.tooltip_VHRFormattedText,.tooltip_VIN,.tooltip_errorToolTip,.tooltip_announcementmessage,.tooltip_IBuyTooltip, .imgiBidLive, .imgRunNDrive, .imgIbuyFastlisting, .AuctionInformationIbfSoldImage, .imgVehicleStarts, .imgPublic, .WatchListHelpText").tooltipster({theme:"tooltipster-listing",position:"top",animation:"fade",offsetY:0,maxWidth:280,contentAsHTML:!0})}catch(t){}try{$(".prefBtn").on("click",function(){var t=$(this),i=t.next("div"),r=t.closest("div").siblings("div").find(".prefContainer"),u=$(window).width();u<963&&$("#devicesContainer").animate({left:"-"+n+"px"},350,"swing",function(){$(this).hide()});r.is(":visible")?r.slideUp(300,function(){r.siblings(".prefBtn").removeClass("activeSelection");t.addClass("activeSelection");i.slideDown(300);u<963&&scrollFooter()}):i.is(":visible")?i.slideUp(300,function(){t.removeClass("activeSelection")}):(i.slideDown(300),t.addClass("activeSelection"),u<963&&scrollFooter())});var n=$("#devicesContainer").outerWidth();$(window).resize(function(){n=$("#devicesContainer").outerWidth()});$(".footerIcon").on("click",function(){var t=$("#devicesContainer"),i=$(".prefContainer");i.is(":visible")&&i.slideUp(300,function(){i.prev(".prefBtn").removeClass("activeSelection")});t.css("left")=="0px"?t.animate({left:"-"+n+"px"},350,"swing",function(){t.hide()}):t.css("left","-"+n+"px").show().animate({left:0},350,"swing")});$(document).mouseup(function(n){var t=$("#languageSection"),i=$("#timezoneSection");$(".prefContainer").is(":visible")&&(t.is(n.target)||t.has(n.target).length!==0||$("#langContainer").slideUp("fast",function(){t.find(".prefBtn").removeClass("activeSelection")}),i.is(n.target)||i.has(n.target).length!==0||$("#timeContainer").slideUp("fast",function(){i.find(".prefBtn").removeClass("activeSelection")}))});$(".bidbenchUpper").height(function(){return $(window).height()*.7});$("body").click(function(n){var t=$("#"+n.target.id).hasClass("rsNavItem")?bannerController!=null?bannerController.shouldBodyClickTrigger:!0:!0;t&&($(".time_change").hide(),$(".lang_timebg").removeClass("lang_timebgSel").removeClass("timeHover"),$(".LoginSub").hide(),$(".LoginArrow").removeClass("loginHover").removeClass("LoginArrowSel"),$(".lang").hide(),$(".lang_bg").removeClass("langHover").removeClass("lang_bgSel"))});$(".searchbox").each(function(){var n=this.value;$(this).focus(function(){this.value==n&&(this.value="",$(".searchbox").css("color","#434343"))});$(this).blur(function(){this.value==""&&(this.value=n,$(".searchbox").css("color","#c1c1c1"))})});$(".datepickerPast").datepicker({dateFormat:"mm/dd/yy",changeMonth:!0,changeYear:!0,yearRange:((new Date).getFullYear()-150).toString().concat(":",(new Date).getFullYear().toString()),defaultDate:$(this).val(),maxDate:new Date});$(".datepickerFuture").datepicker({dateFormat:"mm/dd/yy",changeMonth:!0,changeYear:!0,yearRange:(new Date).getFullYear().toString().concat(":",((new Date).getFullYear()+100).toString()),defaultDate:$(this).val(),minDate:1})}catch(t){}});iebrowserValidationCookie={cookieName:"IEBrowserValidation",cookieExpiryDays:365,value:"Y"};generateUniqueHash=function(){var n=0;return function(){return"openseadragon_"+n++}}();!function(n,t,i,r){var u=n(t);n.fn.lazyload=function(f){function s(){var t=0;o.each(function(){var i=n(this);if((!e.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,e)&&!n.leftofbegin(this,e))if(n.belowthefold(this,e)||n.rightoffold(this,e)){if(++t>e.failure_limit)return!1}else i.trigger("appear"),t=0})}var h,o=this,e={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return f&&(r!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),r!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),n.extend(e,f)),h=e.container===r||e.container===t?u:n(e.container),0===e.event.indexOf("scroll")&&h.bind(e.event,function(){return s()}),this.each(function(){var t=this,i=n(t);t.loaded=!1;i.one("appear",function(){if(!this.loaded){if(e.appear){var r=o.length;e.appear.call(t,r,e)}n("<img />").bind("load",function(){var r,u;i.hide().attr("src",i.data(e.data_attribute))[e.effect](e.effect_speed);t.loaded=!0;r=n.grep(o,function(n){return!n.loaded});(o=n(r),e.load)&&(u=o.length,e.load.call(t,u,e))}).attr("src",i.data(e.data_attribute))}});0!==e.event.indexOf("scroll")&&i.bind(e.event,function(){t.loaded||i.trigger("appear")})}),u.bind("resize",function(){s()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&u.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&o.each(function(){n(this).trigger("appear")})}),n(i).ready(function(){s()}),this};n.belowthefold=function(i,f){var e;return e=f.container===r||f.container===t?u.height()+u.scrollTop():n(f.container).offset().top+n(f.container).height(),e<=n(i).offset().top-f.threshold};n.rightoffold=function(i,f){var e;return e=f.container===r||f.container===t?u.width()+u.scrollLeft():n(f.container).offset().left+n(f.container).width(),e<=n(i).offset().left-f.threshold};n.abovethetop=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollTop():n(f.container).offset().top,e>=n(i).offset().top+f.threshold+n(i).height()};n.leftofbegin=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollLeft():n(f.container).offset().left,e>=n(i).offset().left+f.threshold+n(i).width()};n.inviewport=function(t,i){return!(n.rightoffold(t,i)||n.leftofbegin(t,i)||n.belowthefold(t,i)||n.abovethetop(t,i))};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})}(jQuery,window,document);lazyLoadModule=function(){return{logErrorMessage:function(n,t,i,r,u,f){var e={errMsg:n,pageUrl:t,documentUrl:i,errLineno:r,errColNo:u,userAgent:f};$.ajax({type:"POST",url:"/CarsService.asmx/LogJsError",data:JSON.stringify(e),contentType:"application/json; charset=utf-8",dataType:"json"})},lazyLoadImages:function(){try{$(".lazy").lazyload({effect:"fadeIn",skip_invisible:!1,appear:function(){$(this).attr("src",$(this).attr("data-original"))}})}catch(n){}},lazyLoadImagesNew:function(){try{$(".lazyNew").lazyload({effect:"fadeIn",skip_invisible:!1,appear:function(){$(this).attr("src",$(this).attr("data-original"))}})}catch(n){}},lazyLoadNewSearchPageImagesNew:function(){try{$(".lazyNewSearchPage").lazyload({effect:"fadeIn",skip_invisible:!1,appear:function(){$(this).attr("data-original",$(this).attr("src"))}})}catch(n){}}}}();$(document).ready(function(){window.onerror=function(n,t,i,r){t.indexOf("jquery.lazyload.js")!=-1&&lazyLoadModule.logErrorMessage(n,t,document.location.href,i,r,navigator.userAgent)};lazyLoadModule.lazyLoadImages();lazyLoadModule.lazyLoadImagesNew();lazyLoadModule.lazyLoadNewSearchPageImagesNew()});typeof Sys!="undefined"&&(prmLazyLoadInstance=Sys.WebForms.PageRequestManager.getInstance(),prmLazyLoadInstance.add_endRequest(lazyLoadModule.lazyLoadImages))