var ie = (document.all) ? true : false;
/*
var ie = false;
if (navigator.appVersion.charAt(0) >= 4) {
	// Version4
	if (navigator.appName.charAt(0) == 'M') {
		// Microsoft(IE)
		ie = true;
	}
}
*/

//////////////////////////////////////////////////////////////////////////////
if (ie) {
	document.onmousemove = move;
} else {
	window.captureEvents(Event.MOUSEMOVE);
	onMouseMove = move;
}

function move(e) {
	if (ie) {
		document.all.tip.style.pixelLeft	= window.event.x + 5;
		document.all.tip.style.pixelTop		= window.event.y + 20;
	} else {
		if (e.type == "mousemove") {
			document.layers["tip"].moveTo(e.pageX + 5, e.pageY + 20);
		}
	}
}

function popup(newMessage) {
	src =	"<table style='background-color:#ffffe0'><tr><td>" +
				newMessage +
				"</td></tr></table>";
	var e = document.getElementById('tip');
	e.innerHTML		= src;
	e.style.display	= "block";
	return true;
}

function hide() {
	var e = document.getElementById('tip');
	e.style.display = "none";
	return true;
}

//////////////////////////////////////////////////////////////////////////////

var timerID = null;
function starttimer(name) {
	if (name == null) {
		name = animation;
	}
	setTimeout(name, 1000);
}

var count = 0;
var max = 50;
function animation() {
	// $B2?$rF0$+$9$+$M$((B
	count = (count + 1) % max;
/*
	sp = Math.abs(((count > max / 2 ? max : 0) - count) / 2) - 6;
	if (ie) {
		document.all("ani").style.letterSpacing = sp;
	} else {
//		document.layers["ani"].document.letterSpacing = sp;
	}
*/
//	document.all("ani").style.left = count * 10;
//	document.all("ani").style.top = count * 30:
	setTimeout(animation, 70);
}


