function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.min = (this.ns||this.ie)
}
is = new BrowserCheck()

function TTT_initMouseEvents(doc) {
	if (doc==null) doc='document';
	if (is.ns) {
	    if (doc=='document') {
	    	eval(doc+'.onmousemove = TTT_mouseMove');
	    	eval(doc+'.captureEvents(Event.MOUSEMOVE)');
	    }
	    else {
		eval('document.'+doc+'.onmousemove = TTT_mouseMove');
	    	eval('document.'+doc+'.captureEvents(Event.MOUSEMOVE)');
	    }

	}
	else eval(doc+'.onmousemove = TTT_mouseMove');


	parent.winW = (is.ns)? window.innerWidth-16 : document.body.offsetWidth-20
	parent.winH = (is.ns)? window.innerHeight : document.body.offsetHeight
}

function TTT_mouseMove(e) {
	var x = (is.ns)? e.pageX : event.x+document.body.scrollLeft
	var y = (is.ns)? e.pageY : event.y+document.body.scrollTop
	return TTT_mouse(x,y)
}

function TTT_mouse(x,y){
 parent.mousex = x+2;
 parent.mousey = y+2;
}
