var ns_data,ns_hp,ns_tz,ns_rf,ns_sr,ns_img,ns_pageName;

// The pageName variable can be customized if needed
ns_pageName=location.pathname;

document.cookie='__support_check=1';ns_hp='http';
ns_rf=document.referrer;ns_sr=window.location.search;
ns_tz=new Date();if(location.href.substr(0,6).toLowerCase()=='https:')
ns_hp='https';ns_data='&an='+escape(navigator.appName)+ 
'&sr='+escape(ns_sr)+'&ck='+document.cookie.length+
'&rf='+escape(ns_rf)+'&sl='+escape(navigator.systemLanguage)+
'&av='+escape(navigator.appVersion)+'&l='+escape(navigator.language)+
'&pf='+escape(navigator.platform)+'&pg='+escape(ns_pageName);
ns_data=ns_data+'&cd='+
screen.colorDepth+'&rs='+escape(screen.width+ ' x '+screen.height)+
'&tz='+ns_tz.getTimezoneOffset()+'&je='+ navigator.javaEnabled();
ns_img=new Image();ns_img.src=ns_hp+'://counter.hitslink.com/statistics.asp'+
'?v=1&s=29&acct=parenttimenet'+ns_data+'&tks='+ns_tz.getTime();

function goToURL() { window.location = "http://www.parenttime.net/login/signup.php?price_group=-2569"; }

function isGoodBrowser(w){
	goodBrowser = (is_ie6up || is_safari);
	if(!goodBrowser){
		document.write("<div style='background-color: #3399cc; border: 1px solid black; padding: 5px; width: " + w + "px; color: #ffffff; font-weight: bold;'>");
		document.write("Currently this tool is optimized for Microsoft Internet Explorer 6 and up (for Windows users) and Safari (for Macintosh users).<br>");
		document.write("<br>We are currently working to improve the compatibility so it works with other browsers.<br><br>");
		document.write("If you choose to sign up and use a browser other than what's listed above, the tool may work for you but ParentTime.net can make no guarantees.");
		document.write("</div>");
	}
}
