var showState = true;
var insert = document.getElementById( 'insert' );

function _showIt ( text ) {
	showState = true;
	insert.innerHTML = decodeURI( text );
	document.onmouseover = _sustain;
}

function _sustain ( Event ) {
	if ( showState ) {
		showState = false;
		if ( navigator.appName == "Netscape" || navigator.appName == "Opera" ) {
			windowWidth = window.innerWidth;
			windowHeight = window.innerHeight;
			horzPosition = Event.pageX;
			vertPosition = Event.pageY;
		} else if ( document.documentElement.clientWidth ) {
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
			horzPosition = event.x;
			vertPosition = document.documentElement.scrollTop + event.y;
		}
		offset = ( insert.innerHTML.indexOf( 'url(img' ) > 0 ) ? 315 : 0 ;
		insert.style.left = ( horzPosition < ( windowWidth / 2 )) ? ( horzPosition + 12 ) + "px" : ( horzPosition - offset - 12 ) + "px" ;
		insert.style.top = ( vertPosition + 10 ) + "px";
		insert.style.visibility = "visible";
	}
}

function _hideIt () {
	insert.style.visibility = "hidden";
}
