var ShortStat = function() {
	this.domain = 'savagetournaments.com'; // Without the www. or subdomain
	this.flashVersion = 0;
	this.getCookie = function(name) { var p=name+'='; var c=document.cookie; var i=c.indexOf(p); if (i==-1) { return ''; }; var e=c.indexOf(";",i+p.length); if (e==-1) {e = c.length; }; return unescape(c.substring(i+p.length,e)); };
	
	this.id = this.getCookie('ShortStat'); // Set by ShortStat include
	this.resolution = screen.width+' x '+screen.height;
	
	this.detectFlashVersion = function () {
		var m =16;
		var ua = navigator.userAgent.toLowerCase();
		if (navigator.plugins && navigator.plugins.length) {
			var p = navigator.plugins['Shockwave Flash'];
			if (typeof p == 'object') {
				for (var i=m;i>=3;i--) {
					if (p.description && p.description.indexOf(i + '.') != -1) { this.flashVersion = i; break; }
					}
				}
			}
		else if (ua.indexOf("msie") != -1 && ua.indexOf("win")!=-1 && parseInt(navigator.appVersion) >= 4 && ua.indexOf("16bit")==-1) {
			var vb = '<scr' + 'ipt language="VBScript"\> \nOn Error Resume Next \nDim obFlash \nFor i = ' + m + ' To 3 Step -1 \n   Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n   If IsObject(obFlash) Then \n      ShortStat.flashVersion = i \n      Exit For \n   End If \nNext \n<'+'/scr' + 'ipt\> \n';
			document.write(vb);
			}
		else if (ua.indexOf("webtv/2.5") != -1) this.flashVersion = 3;
		else if (ua.indexOf("webtv") != -1) this.flashVersion = 2;
		return this.flashVersion;
		}
	
	this.save = function() {
		var expires = new Date();
		expires.setTime(expires.getTime() + 365 * 24 * 60 * 60 * 1000);
		var c = "ShortStat=" + escape(this.id+'|'+this.resolution+'|'+this.flashVersion) + ";expires=" + expires.toGMTString() + ";path=/; domain=" + this.domain;
		document.cookie = c;
		}
	return this;
	}();
ShortStat.detectFlashVersion();
ShortStat.save();
