
function ETProtrackercode () {
	var d=document;
	var scripts = d.getElementsByTagName("script");
	var login;
	var pageid;
	var section;
	ETProLogin=null;
	ETProServer=null;
	ETProSection=null;
	ETProPageID=null;
	for (var i=0;i<scripts.length;i++) {
		if (scripts[i].src && scripts[i].src.indexOf('extreme-dm.com/t.js') > -1) {
			var split=scripts[i].id.split('-');
			login=split[1];
			section=split[2];
			pageid=split[3];
		}
	}

	if (login) {
		ETProLogin=login;

		if (section === '2') {
			ETProServer=2;
		}
		else if (section === '3') {
			ETProServer=2;
		}
		else if (section === '4') {
			ETProServer=3;
		}
		ETProPageID=pageid;
		ETProSection=section;
		var TrackURL=escape(d.URL);
		var ETProPageBit='';
		if (ETProPageID) {
			ETProPageBit='&auto=y&pid='+escape(ETProPageID)+'';
		}
		else {
			ETProPageBit='&url='+TrackURL+'';
		}
		var TrackNormal=1;
		if( typeof eXTReMeProConfig !== 'undefined' ) {

		}
		var referrer=d.referrer;
		try {
			referrer=top.document.referrer;
		}
		catch(err) {

		}
		if (TrackNormal===1) {

			var q="login="+login+""+ETProPageBit+"&d="+screen.width+"x"+screen.height+"&jv="+navigator.javaEnabled()+"&c="+screen.colorDepth+"&l="+escape(referrer)+"";
			var i=new Image();
			i.src="//nht-"+ETProServer+".extreme-dm.com/n"+ETProSection+".g?"+q+"";


			// track pdf and zip:
			setTimeout(function() {
				var hrefs=document.getElementsByTagName("a");
				for (var i=0;i<hrefs.length;i++) {
					if (hrefs[i].href.match(/\.pdf|\.zip$/i)) {
						if (hrefs[i].addEventListener) {
							hrefs[i].addEventListener("click", function(){

								var q="login="+login+"&url="+escape(this.href)+"&d="+screen.width+"x"+screen.height+"&jv="+navigator.javaEnabled()+"&c="+screen.colorDepth+"&l="+escape(referrer)+"";
								var i=new Image();
								i.src="//nht-"+ETProServer+".extreme-dm.com/n"+ETProSection+".g?"+q+"";

							}, false);
						}
					}
				}
			}, 1500);


		}
	}

	if( typeof eXTReMeProConfig !== 'undefined' ) {

	}
	else {

	}

}

ETProtrackercode();

function ETProTrack (Event) {

}

window['ETProTrack'] = ETProTrack;



