$(function(){var e=10,t=0,n=$("#visitSessionStat").data("secondsincestart"),r=setInterval(function(){t++;if(t%e===0){clearInterval(r);var i=new Date,s="Aggregage-popUpSub";$.cookie(s)==null&&$(".modal.in").length===0&&(showPopUpSignUpForm(),$.cookie(s,i.getFullYear()+"-"+i.getMonth()+"-"+i.getDate(),{expires:30,path:"/"}))}$("#visitSessionStat").data("secondonpage",t),$("#pageSeconds").text(n+" + "+t)},1e3),i=2,s=$("#visitSessionStat").data("searchcount"),o="Aggregage-popUpSub";$("#timeOnPage").html(''+n+"");if(s>i){var u=new Date;clearInterval(r),$.cookie(o)==null&&$(".modal.in").length===0&&(showPopUpSignUpForm(),$.cookie(o,u.getFullYear()+"-"+u.getMonth()+"-"+u.getDate(),{expires:30,path:"/"}))}$(window).scroll(function(){var e=new Date;$(window).scrollTop()==$(document).height()-$(window).height()&&$.cookie(o)==null&&$(".modal.in").length===0&&(showPopUpSignUpForm(),$.cookie(o,e.getFullYear()+"-"+e.getMonth()+"-"+e.getDate(),{expires:30,path:"/"}))}),$("a").on("click",function(e){var t=e.target.href,n=$("#visitSessionStat").data("clickcount")+1,r=new Date;$("#visitSessionStat").data("clickcount",n),n>5&&$.cookie(o)==null&&$(".modal.in").length===0&&(showPopUpSignUpForm(),$.cookie(o,r.getFullYear()+"-"+r.getMonth()+"-"+r.getDate(),{expires:30,path:"/"}))});if($("#visitSessionStat").data("clickcount")>5){var u=new Date;$.cookie(o)==null&&$(".modal.in").length===0&&(showPopUpSignUpForm(),$.cookie(o,u.getFullYear()+"-"+u.getMonth()+"-"+u.getDate(),{expires:30,path:"/"}))}})