/* Get some information about the current user */
var width=screen.width;
var height=screen.height;
var ref=document.referrer;
var loca=document.location;
var color=screen.colorDepth;
var cookie = (navigator.cookieEnabled) ? 'yes' : 'no';

ref = ref.replace(/%26/g,'%2526');
ref = ref.replace(/&/g,'%26');
ref = ref.replace(/%23/g,'%2523');
ref = ref.replace(/#/g,'%23');
ref = ref.replace(/%3F/g,'%253F');
ref = ref.replace(/\?/g,'%3F');

/* Single values */
ref = ref.replace(/"/g,'%22');

var flashinstalled = 0;
var flashversion = 0;
MSDetect = false;
if (navigator.plugins && navigator.plugins.length){
	x = navigator.plugins["Shockwave Flash"];
	if (x){
		flashinstalled = true;
		if (x.description){
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
			if(flashversion == 0)
				flashversion = 10;
		}
	}else
		flashinstalled = false;
	if (navigator.plugins["Shockwave Flash 2.0"]){
		flashinstalled = true;
		flashversion = 2;
	}
}else if (navigator.mimeTypes && navigator.mimeTypes.length){
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = true;
	else
		flashinstalled = false;
}
else
	MSDetect = true;

var to_str = '&flashV='+flashversion+'&cookies='+cookie+'&colorDepth='+color+'&location='+loca+'&amp;width='+width+'&amp;height='+height+'&amp;ref='+ref+'&amp;owner_id='+idNum+'&amp;project_id='+projectID+'&amp;projectCode='+projectCode;
if(!called){
	document.writeln('<script language="JavaScript" type="text/javascript" src="http://publicsize.com/sts/jsProcess?'+to_str+'"></script>');
}
var called = true;
