$(function(){function f(n,t){var i=$(n).data("trackinglabel"),r=$(n).data("pageposition"),o=$.now(),f=o-u,e;f>=500&&i!==""&&typeof i!="undefined"&&typeof r!="undefined"&&(e=r.toString().toLowerCase(),_gaObj.GATrackEvent(null,t,i,f,!0,{pagePosition:e},!1))}function r(n){_gaObj.GATrackEvent(null,"Scroll",n,null,!0,undefined,!1)}var u,t,a;$(".cat").length&&_gaObj.GATrackEvent(null,"pageload","activecatalert",null,!1,undefined,!1);u=$.now();$(".tiles .item, .badges .item, #navmenu li a, .train li").on("mouseenter",function(){u=$.now()}).on("mouseleave",function(){f(this,"Hover")}).on("click",function(){f(this,"HoverAndClick")});$(".train li a").not(".button a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();(n==""||n==null||n==undefined)&&(n=$(this).data("trackinglabel"));_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"train"},!1)});$(".no-touch #ols").on("mouseenter",function(){u=$.now()}).on("mouseleave",function(){f(this,"Hover")});$("a[href^='tel:']").not("#header .phone a").on("click",function(){var n=$(this).attr("href").split(":")[1].replace(/\W/g,"").toLowerCase(),t=$(this).closest("[id]").attr("id").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:t})});$("a[href^='mailto:']").on("click",function(){var n="email-"+$(this).attr("href").split("@")[0].split(":")[1],t=$(this).closest("[id]").attr("id").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:t})});$("#breadCrumb a").on("click",function(){var i=$(this).text(),t=$(this).data("trackinglabel"),n;t==null||t==undefined||t==""?(n=i.replace(/\W/g,"").toLowerCase(),_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"breadcrumb"},!1)):(n=t.replace(/\W/g,"").toLowerCase(),_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"breadcrumb"},!1))});$("#footer a:not(.mark)").not("#footer .breadcrumb a").on("click",function(){var t=$(this).attr("href").search("tel:"),n;t==-1&&(n=$(this).text().replace(/\W/g,"").toLowerCase(),_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"footer"},!1))});$("#footer .mark").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","logo",null,!1,{pagePosition:"footer"},!1)});$("#legal .social a").on("click",function(){var n=$($(this).parent()[0]).attr("class");_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"footer"},!1)});$("#legal .nav a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"footer"},!1)});$("#header .logo").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","logo",null,!1,{pagePosition:"header"})});$("#header #menu").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","menu",null,!1,{pagePosition:"header"})});$("#header .phone a").on("click",function(){var n=$(this).attr("href").split(":")[1].replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"header"})});$("#header .login a").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","login",null,!1,{pagePosition:"header"})});$("#local-nav a").not("#local-nav .button a, #local-nav .close").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"localnav"},!1)});$("#local-nav .close").on("click",function(){var n=$(this).data("trackinglabel");_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"localnav"},!1)});$("#local-nav .button a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"localnav"},!1)});$("#quote-overlay .close").on("click",function(){_gaObj.GATrackEvent(null,"ButtonClick","close",null,!1,{pagePosition:"quoteoverlay"},!1)});$(".flyout a, #sub-report").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();(n==""||n==null||n==undefined)&&(n=$(this).data("trackinglabel"));_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"menu"},!1)});$(".badges .item").on("click",function(){var n=$(this).data("trackinglabel");typeof n!="undefined"&&n!==""&&_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"badges"},!1)});$(".bg-image .copy-block .button a").on("click",function(){var i=$(this).attr("href"),r=$(this).text().replace(/\W/g,"").toLowerCase(),n=$(this).data("pageposition"),t;n!=null&&(t=n.replace(/\W/g,"").toLowerCase(),_gaObj.GATrackEvent(null,"ButtonClick",r,null,!1,{pagePosition:t},function(){window.location.href=i}))});$(".bg-image .copy-block p a").on("click",function(){var i=$(this).text().replace(/\W/g,"").toLowerCase(),n=$(this).data("pageposition"),t;n!=null&&(t=n.replace(/\W/g,"").toLowerCase(),_gaObj.GATrackEvent(null,"LinkClick",i,null,!1,{pagePosition:t},!1))});$(".box a").on("click",function(){var n=$(this).attr("data-trackinglabel"),t=$(this).attr("data-pageposition"),i;typeof n!=typeof undefined&&n!==!1&&typeof t!=typeof undefined&&t!==!1&&(i=t.toString().toLowerCase(),$(this).closest("button").length!=0?_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:i},!1):_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:i},!1))});$(".cards-v2 .item a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();typeof n!="undefined"&&n!==""&&_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"cards"},!1)});$(".cards .item").on("click",function(){var n=$(this).data("trackinglabel");typeof n!="undefined"&&n!==""&&_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"cards"},!1)});$("footer .button a, #main .cta-pill:last .button a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"cta"},!1)});$("#bottom-jobs .social a").on("click",function(){var n=$($(this).parent()[0]).attr("class");_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"cta"},!1)});$("#mma-mini .button").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"mma"},!1)});$("#overlay .modal a").on("click",function(){var t=$(this).text(),n;$(this).parent().hasClass("close")?(n="close",_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"modal"},!1)):(t!=null||t!=""||t!=undefined)&&(n=t.replace(/\W/g,"").toLowerCase(),_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"modal"},!1))});$("[id^='searchTerm']").on("focus",function(){var n=$(this).parents("form").parents("[id]").filter(":first").attr("id").replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"TextBoxFocus","search",null,!1,{pagePosition:n},!1)});$("[id^='SiteSearch'] .button input").on("click",function(){var n=$(this).parents("form").parents("[id]").filter(":first").attr("id").replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"ButtonClick","search",null,!1,{pagePosition:n},!1)});$(".steps ul li").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase()+"-control";_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"steps"},!1)});$(".steps .item").on("touchstart",function(){setTimeout(function(){var n=$(".steps ul li.active").text().replace(/\W/g,"").toLowerCase()+"-panel";_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"steps"},!1)},800)});$(".tiles .item").on("click",function(){var n=$(this).data("trackinglabel");typeof n!="undefined"&&n!==""&&_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"tiles"},!1)});$(".train li").not(".train li.button a").on("click",function(){var n=$(this).parent().data("trackinglabel");typeof n!="undefined"&&n!==""&&_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"train"},!1)});$(".train li.button a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"train"},!1)});$(".quoteLinks-agent").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","FAA",null,!1,{pagePosition:"quotestart"},!1)});$(".quoteLinks-retrieve").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","retrieve",null,!1,{pagePosition:"quotestart"},!1)});$(".quoteLinks-snapshotresults").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","snapshotresults",null,!1,{pagePosition:"quotestart"},!1)});$(".quoteLinks-30daytrial").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","30daytrial",null,!1,{pagePosition:"quotestart"},!1)});$(".strip .qs-trigger").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","startquote",null,!1,{pagePosition:"strip"},!1)});t=!1;$("form .dropdown-list li a").not("#quote-overlay form .dropdown-list li a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"DropdownChange",n,null,!1,{pagePosition:"quotestart"},!1)});$("form .display").not("#quote-overlay form .display").on("click",function(){$(".dropdown-list:visible").hasClass("show")||(_gaObj.GATrackEvent(null,"DropdownClick","open",null,!1,{pagePosition:"quotestart"},!1),t=!0)});$(document).on("click",function(){t==!0&&setTimeout(function(){$(".dropdown-list:visible").hasClass("show")||(_gaObj.GATrackEvent(null,"DropdownClick","close",null,!1,{pagePosition:"quotestart"},!1),t=!1)},100)});$("form .dropdown-list .close a").on("click",function(){_gaObj.GATrackEvent(null,"DropdownClick","close",null,!1,{pagePosition:"quotestart"},!1);t=!1});a=!1;$("#quote-overlay form .dropdown-list li a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"DropdownChange",n,null,!1,{pagePosition:"quoteoverlay"},!1)});$("#quote-overlay form .display").on("click",function(){$("#quote-overlay .dropdown-list").hasClass("show")||(_gaObj.GATrackEvent(null,"DropdownClick","open",null,!1,{pagePosition:"quoteoverlay"},!1),a=!0)});$("#quote-overlay .close a").on("click",function(){_gaObj.GATrackEvent(null,"DropdownClick","close",null,!1,{pagePosition:"quoteoverlay"},!1)});$("#QuoteStartForm #product, #QuoteStartForm_modal #product_modal").data("open",!1);$("#QuoteStartForm #product, #QuoteStartForm_modal #product_modal").on("change",function(){var n=$("option:selected",this).text().replace(/\W/g,"").toLowerCase();$(this).is("#QuoteStartForm #product")?_gaObj.GATrackEvent(null,"DropdownChange",n,null,!1,{pagePosition:"quotestart"},!1):_gaObj.GATrackEvent(null,"DropdownChange",n,null,!1,{pagePosition:"quoteoverlay"},!1);$("#QuoteStartForm #product, #QuoteStartForm #product_modal").data("open",!1)});$("#QuoteStartForm #product, #QuoteStartForm_modal #product_modal").on("click",function(){$("#QuoteStartForm #product, #QuoteStartForm_modal #product_modal").data("open")===!1?($("#QuoteStartForm #product, #QuoteStartForm_modal #product_modal").data("open",!0),$(this).is("#QuoteStartForm #product")?_gaObj.GATrackEvent(null,"DropdownClick","open",null,!1,{pagePosition:"quotestart"},!1):_gaObj.GATrackEvent(null,"DropdownClick","open",null,!1,{pagePosition:"quoteoverlay"},!1)):($("#QuoteStartForm #product, #QuoteStartForm_modal #product_modal").data("open",!1),$(this).is("#QuoteStartForm #product")?_gaObj.GATrackEvent(null,"DropdownClick","close",null,!1,{pagePosition:"quotestart"},!1):_gaObj.GATrackEvent(null,"DropdownClick","close",null,!1,{pagePosition:"quoteoverlay"},!1))});$(".quoteStartForm .bundle li a").on("click",function(){if(!$(this).parent().hasClass("on")){var n=$($(this)[0]).parent().data("action").replace(/\W/g,"").toLowerCase();n=="auho"?_gaObj.GATrackEvent(null,"LinkClick","home",null,!1,{pagePosition:"quotestartbundle"},!1):n=="aurt"?_gaObj.GATrackEvent(null,"LinkClick","renters",null,!1,{pagePosition:"quotestartbundle"},!1):n=="auco"&&_gaObj.GATrackEvent(null,"LinkClick","condo",null,!1,{pagePosition:"quotestartbundle"},!1)}});$(".cta.singleProduct .button a").on("click",function(){var n=$(this).data("trackinglabel").replace(/\W/g,"");_gaObj.GATrackEvent(null,"QuoteStart",n,null,!1,{pagePosition:"quotestart"},!1)});$(".inline-qs").on("click",function(){var n=$(this).data("trackinglabel").replace(/\W/g,"");_gaObj.GATrackEvent(null,"QuoteStart",n,null,!1,{pagePosition:"inlinequoteStart"},!1)});$(".quoteStartForm").each(function(){var n=$(this).parents("[data-trackingposition]").filter(":first").attr("data-trackingposition"),t;n!=undefined?(t=n.replace(/\W/g,"").toLowerCase(),($(this).attr("data-page-position")==""||$(this).attr("data-page-position")==null||$(this).attr("data-page-position")==undefined)&&$(this).attr("data-page-position",t)):(n=$(this).parents().prevAll("[data-trackingposition]").filter(":first").attr("data-trackingposition"),n!=undefined&&(t=n.replace(/\W/g,"").toLowerCase(),($(this).attr("data-page-position")==""||$(this).attr("data-page-position")==null||$(this).attr("data-page-position")==undefined)&&$(this).attr("data-page-position",t)))});$("#mma .qsDisclaimer a").on("click",function(){_gaObj.GATrackEvent(null,"LinkClick","third-party-disclaimer",null,!1,{pagePosition:"mma"},!1)});$(".email-form #topic").on("change",function(){var n=$("option:selected",this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"DropdownChange",n,null,!1,{pagePosition:"emailform"},!1)});$(".email-form .button").on("click",function(){var n=$(this).data("trackinglabel");_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"emailform"},!1)});$(".accordion .trigger").on("click",function(){var n=$(this).data("trackinglabel");_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"content"},!1)});$(".perk a").on("click",function(){var n=$(this).data("trackinglabel").replace(/\W/g,"").toLowerCase(),t=$(this).html().replace(/\W/g,"").toLowerCase(),i="perkshare|"+n+"-"+t;_gaObj.GATrackEvent(null,"LinkClick",i,null,!1,undefined,!1)});$(".cta.ols .button").on("click",function(){var n=$(this).find("a").attr("href");return _gaObj.GATrackEvent(null,"ButtonClick","login",null,!1,{pagePosition:"mma"},function(){window.location.href=n}),!1});$(".cta.ols p a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"mma"},!1)});$(".strip .button a").on("click",function(){var n=$($(this)[0]).data("trackinglabel");_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"strip"},!1)});$(".claims.cta .button a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"ButtonClick",n,null,!1,{pagePosition:"mma"},!1)});$(".claims.cta p a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"mma"},!1)});$(".ctaRetrieve a").on("click",function(){var n=$(this).text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"LinkClick",n,null,!1,{pagePosition:"mma"},!1)});$(".homeownersRetrieveByProviderForm input[type=radio]").on("click",function(){var n=$(this).next("label").text().replace(/\W/g,"").toLowerCase();_gaObj.GATrackEvent(null,"RadioButtonChange",n,null,!1,{pagePosition:"mma"},!1)});var e=$(document).height(),n=$(window).height(),i=parseInt(e/5,10),v=parseInt(i*2,10),y=parseInt(i*3,10),p=parseInt(i*4,10),w=e,o,s,h,c,l=!1;n>i&&(o=!0);n>v&&(s=!0);n>y&&(h=!0);n>p&&(c=!0);n>w&&(l=!0);$(window).bind("scroll",function(){var t=n+$(window).scrollTop();if(t>=e){if(l)return;r("100percent");l=!0}else if(t>p){if(c)return;r("80percent");c=!0}else if(t>y){if(h)return;r("60percent");h=!0}else if(t>v){if(s)return;r("40percent");s=!0}else if(t>i){if(o)return;r("20percent");o=!0}})})