function TvDataLayerPushEvent(n,t,i,r,u){try{if(typeof dataLayer=="undefined"||dataLayer===null)return;(typeof r=="undefined"||r===null)&&(r="undefined");(typeof u=="undefined"||u===null)&&(u=0);dataLayer.push({event:n,eventCategory:t,eventAction:i,eventLabel:r,eventValue:u})}catch(f){}}function TvDataLayerPushEventToParent(n,t,i,r,u){try{if(typeof dataLayer=="undefined"||dataLayer===null)return;(typeof r=="undefined"||r===null)&&(r="undefined");(typeof u=="undefined"||u===null)&&(u=0);window.parent.dataLayer.push({event:n,eventCategory:t,eventAction:i,eventLabel:r,eventValue:u})}catch(f){}}function TvDataLayerPushEventForAnchor(n,t,i,r,u,f){try{if(typeof n=="undefined"||n===null||typeof dataLayer=="undefined"||dataLayer===null)return!0;if((typeof u=="undefined"||u===null)&&(u="undefined"),(typeof f=="undefined"||f===null)&&(f=0),n.target==="_blank")return dataLayer.push({event:t,eventCategory:i,eventAction:r,eventLabel:u,eventValue:f}),!0;if(n.target!=="_self"&&n.target!=="_parent"&&n.target!=="_top"&&n.target!=="")return!0;dataLayer.push({event:t,eventCategory:i,eventAction:r,eventLabel:u,eventValue:f,eventCallback:function(){if(n.target==="_self"||n.target==="")document.location.href=n.href;else if(n.target==="_parent")window.top.document.location.href=n.href;else if(n.target==="_top"){for(var t=window.self;t.top!==t;)t=t.top;t.document.location.href=n.href}}})}catch(e){}return!1}function TvGetUrlPath(){var n,t;try{return n=window.location.href.toLowerCase(),n.indexOf("?")>-1&&(n=n.substr(0,n.indexOf("?"))),n.indexOf("index.aspx")>-1&&(n=n.substr(0,n.indexOf("index.aspx"))),n=n.replace(window.location.origin,""),(n.indexOf("http://")>-1||n.indexOf("https://")>-1)&&(n=n.replace("http://",""),n=n.replace("https://",""),t=n.indexOf("/"),n=n.substr(t,n.length-t)),n}catch(i){}return"error"}