	var agent = navigator.userAgent.toLowerCase();
	
	var is_ie = (agent.indexOf("msie") != -1);

	var is_mozilla = ((agent.indexOf("mozilla") != -1) && (agent.indexOf("spoofer") == -1) && (agent.indexOf("compatible") == -1) && (agent.indexOf("opera") == -1) && (agent.indexOf("webtv") == -1) && (agent.indexOf("hotjava") == -1));

	if (!is_ie) {
		document.captureEvents(Event.MOUSEMOVE)
	}

	document.onmousemove = getMouseXY;

	var mousePosX = 0;
	var mousePosY = 0;

	function getMouseXY(e) {
		if (is_ie) {
			mousePosX = event.clientX + document.body.scrollLeft;
			mousePosY = event.clientY + document.body.scrollTop;
		}
		else {
			mousePosX = e.pageX;
			mousePosY = e.pageY;
		}
	
		if (mousePosX < 0) {
			mousePosX = 0;
		}
	
		if (mousePosY < 0) {
			mousePosY = 0;
		}
	
		return true;
	}
	

	today = new Date ();
	weekDayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	monthName = new Array ("January","February","March","April","May","June","July","August","September","October","November","December")

	function dateToString(date)
	{
		return weekDayName[date.getDay()]+ ", " + monthName[date.getMonth()] + " " + date.getDate();
	}

 
	function dateTimeToString(date)
	{
		var dateStr = dateToString (date);
		var hours = date.getHours();
		var minutes = date.getMinutes();
		var seconds = date.getSeconds();
		var ampm = "AM";
		if (hours >= 13) {
			ampm = "PM";
			hours = hours - 12;
		} else if (hours == 12) {
			ampm = "PM";
		} else if (hours == 0) {
			hours = 12;
		} 
		if (hours < 10) {
			hours = "0" + hours;
		}
		if (minutes < 10) {
			minutes = "0" + minutes ;
		}
		if (seconds < 10) {
			seconds = "0" + seconds;
		}
		return dateStr = dateStr + " " + hours + ":" + minutes + " " + ampm;
	}
        