// Web Analyzer
function pco() {
	var anImg = new Image();
	anImg.src = '/beacon.gif?' + _nt();
	var unique = P5_getCookie('_aP5');
	if (unique == null) {
		var now = new Date();
		unique = now.getTime() + Math.floor(Math.random()*10000)/10000;
		P5_setCookie('_aP5', unique, 365, '/', '.plus-5.com');
	}
}

function _nt() {
    var now = new Date();
    var query = 'T=';
	query += now.getTime();
	query += "?l=" + escape(window.location.pathname);
	query += escape(location.search);
	query += "&r=" + escape(document.referrer);
	query += "&mw=" + escape(screen.width);
	query += "&mh=" + escape(screen.height);
	query += "&md=" + escape(screen.colorDepth);
	query += "&sw=" + escape(_windowWidth());
	query += "&sh=" + escape(_windowHeight());
    return query;
}

function _void() {
	return;
}

function _windowWidth() {
	if (window.innerWidth) {
		return window.innerWidth;
	} else {
		return document.body.clientWidth;
	}
}

function _windowHeight() {
	if (window.innerHeight) {
		return window.innerHeight;
	} else {
		return document.body.clientHeight;
	}
}
if (window.addEventListener) {
    window.addEventListener('load', pco, false);
	window.addEventListener('unload', _void, false);
} else if (window.attachEvent) {
    window.attachEvent('onload', pco);
    window.attachEvent('onunload', _void);
}