/*
 Copyright 2011 Trinity Innovations LTD. All rights reserved
*/
var analyticsProvider,analyticsKey;
$(document).ready(function(){$.ajax({url:"https://pressjack.com/analyticsProvider/getAnalytics/",data:{url:encodeURIComponent(window.location.href)},success:function(a){a?(analyticsProvider=a.userAnalyticsDTO.providerName,analyticsKey=a.userAnalyticsDTO.analyticsKey,setupAnalytics()):''},error:function(a){},complete:function(){},type:"GET",mimeType:"application/json; charset=UTF-8",dataType:"jsonp",
crossDomain:!0})});function setupAnalytics(){if(analyticsProvider)switch(analyticsProvider.toLowerCase()){case "google":_gaq.push(["_setAccount",analyticsKey]),_gaq.push(["_trackPageview"]),function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()}};
