function getSecure(){return"https:"==location.protocol?"https:":"http:"}function YqClass(){function c(c,d){var e=document.location.href;c.bof_profile=b,c.href=e;var f={json:JSON.stringify(c)},g={url:a,crossDomain:!0,dataType:"jsonp",data:f,error:function(){},success:function(a){d(a)}};jQuery.ajax(g)}var a=getSecure()+"//api.youneeq.ca/api/observe",b=yqs;this.observe=function(a,b){var d,e;try{var f=jzTimezoneDetector.determine_timezone();d=f.timezone.utc_offset,e=f.timezone.olson_tz}catch(a){}var g={href:document.location.href,referrer:document.referrer,tz_off:d,tz_name:e};a.page_hit=g,c(a,b)},this.observeMin=function(a,b){c(a,b)},this.scroll_event=function(a){a.bof_profile=b;var c={json:JSON.stringify(a)},d={url:getSecure()+"//api.youneeq.ca/api/scroll_event",crossDomain:!0,dataType:"jsonp",data:c,error:function(){},success:function(a){}};jQuery.ajax(d)},this.onready=function(a){a()},this.yq_panel_click=function(a,c,d){var e=getSecure()+"//api.youneeq.ca/api/panelaction",f=document.location.href,g={domain_name:document.location.hostname,user_id:b,recommendation_url:a,recommendation_title:c,recommendation_content_id:d,current_page:f},h={json:JSON.stringify(g)},i={url:e,crossDomain:!0,dataType:"jsonp",data:h};jQuery.ajax(i)},this.titleTrim=function(a){return String(a).replace(/'/g,"").replace(/"/g,"").replace(/"/g,"").replace(/'/g,"")}}var yqs="l4yrf3d5uxa33femz2tjj1h1",hasStorage=function(){try{return localStorage.setItem("yqt","t"),localStorage.removeItem("yqt"),!0}catch(a){return!1}}();hasStorage&&((null===localStorage.getItem("yq_session")||localStorage.getItem("yq_session").length<8)&&localStorage.setItem("yq_session","l4yrf3d5uxa33femz2tjj1h1"),yqs=localStorage.getItem("yq_session")),window.Yq||(window.Yq=new YqClass);