<!--
	// create the element
		var clientID			= "SCID001";
		var folderName			= "wyattopia";
		var vidSize				= 25;
		chars						= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
	// get client variables
		var w						= screen.width + "";
		var h						= screen.height + "";
		var cd					= screen.colorDepth;
		var ref					= escape(document.referrer) + "";
		var vid 					= "";
		var nv					= 1;
		var uv					= "0"
		var minutesToUnique	= 30;
		var lv					= "";
	// Create date
		var theDate				= new Date();				// create Date object with the current date;
		var tempDate			= theDate.toGMTString();	// convert date to a GMT string;
		var theSecondDate		= new Date(tempDate);	// convert string to a Date object
	// check for cookies
		checkForVisitorID();
	// check for last visit
		checkForLastVisit();
	// get document location and title
		var docLoc				= "" + escape(document.location.toString());
		var docTitle			= "" + escape(document.title);
	// set cookie
		Set_Cookie("vid",vid,"365","","","");
		Set_Cookie("lv",theSecondDate,"365","","","");
	// set the timer
		try {
			setImageSource();
		} catch(er) {}

/* ===============================================================================
	// checks for visitor id
	=============================================================================== */
		function checkForVisitorID() {
			if (Get_Cookie("vid") && Get_Cookie("vid").length == vidSize) {
				nv=0;
				vid = Get_Cookie("vid");
				Delete_Cookie("vid","","");
			} else {
				vid = randomString(vidSize);
			}
		}
/* ===============================================================================
	// checks for last visit
	=============================================================================== */
		function checkForLastVisit() {
			if (Get_Cookie("lv")) {
				lv = new Date(Get_Cookie("lv"))
				Delete_Cookie("lv","","")
				try {
					if ((((theSecondDate.getTime() - lv.getTime()) / 1000) / 60) > minutesToUnique) {
						uv = "1";
					}
				} catch (er) {
					uv = "1";
				}
			} else {
				uv="1"
			}
		}

/* ===============================================================================
	// actually write the image
	=============================================================================== */
		function setImageSource() {
			try {
				document.writeln ("<img src='" + "http://stats.wyattopia.com/" + folderName + "/trans_pixel.aspx?&u=" + docLoc + "&je=1&w=" + w + "&h=" + h + "&cd=" + cd + "&nv=" + nv + "&uv=" + uv + "&vid=" + vid + "&t=" + docTitle + "&ref=" + ref + "' height='1' width='1' style='display:none;' />");
			} catch(er) {}
		}

/* ===============================================================================
	Creates a random id
	=============================================================================== */
	function randomString(length) {
  		var retVal = "";
  		var floorNum = chars.length;
  		for(x=0;x<length;x++) {
    		i = Math.floor(Math.random() * floorNum);
    		retVal += chars.charAt(i);
  		}
  		return retVal;
	}

/* ===============================================================================
	Gets a cookie
	=============================================================================== */
	function Get_Cookie(name) {
		var start = doc.cookie.indexOf( name + '=' );
		var len = start + name.length + 1;
		if ((!start) && (name != doc.cookie.substring( 0, name.length))) {
			return null;
		}
		if (start == -1) return null;
		var end = doc.cookie.indexOf(';',len);
		if ( end == -1 ) end = doc.cookie.length;
		return unescape( doc.cookie.substring(len,end));
	}
/* ===============================================================================
	Deletes a cookie
	=============================================================================== */
	function Delete_Cookie(name,path,domain) {
	//use -- Delete_Cookie("js","/","");
		if (Get_Cookie(name)) doc.cookie=name+"="+((path)?";path="+path:"")+((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT";
	}
/* ===============================================================================
	Sets a cookie
	=============================================================================== */
	function Set_Cookie(name,value,expires,path,domain,secure) {
		//use -- Set_Cookie("js","true","1","/","","");
		// set time, it's in milliseconds
			var today = new Date();
			today.setTime(today.getTime());
		// if the expires variable is set, make the correct expires time, the current script below will set it for x number of days, to make it for hours, delete * 24, for minutes, delete * 60 * 24
			if (expires) { expires = expires * 1000 * 60 * 60 * 24;}
			var expires_date = new Date(today.getTime()+(expires));
		// set the cookie
			doc.cookie = name+"="+escape(value)+((expires)?";expires="+expires_date.toGMTString():"")+((path)?";path="+path:"")+((domain )?";domain="+domain:"")+((secure)?";secure":"");
	}
-->
