var _x = 0;
var _y = 0;

var isIE = document.all ? true : false;
if (! isIE) {
	document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove = getMousePosition;

function getMousePosition(e) {
	if (isIE) {
		_x = event.clientX + document.body.scrollLeft;
		_y = event.clientY + document.body.scrollTop;
	} else {
		_x = e.pageX;
		_y = e.pageY;
	}

	return true;
}

function rolloverAbstract(AbstractValue){


    var txt = '<b>Article Abstract:</b><br>' + AbstractValue;
    if(document.getElementById){
    	document.getElementById("floatText").innerHTML=txt;
	document.getElementById("floatLayer").style.visibility = 'visible';
    }else if(document.all){
    	document.all["floatText"].innerHTML=txt;
    	document.all["floatLayer"].style.visibility = 'hidden';
    }else if(document.layers){
    	with(document.layers["floatText"].document){
              open();
              write(txt);
              close();
        }
    }
	control=1;
	adjust(_y);

}

function rolloutAbstract(){
	var txt = '<b>Article Abstract:</b><br>Please roll over an article title to see its abstract.';
    if(document.getElementById){
    	document.getElementById("floatText").innerHTML=txt;
	document.getElementById("floatLayer").style.visibility = 'hidden';
    }else if(document.all){
    	document.all["floatText"].innerHTML=txt;
    	document.all["floatLayer"].style.visibility = 'hidden';
    }else if(document.layers){
    	with(document.layers["floatText"].document){
              open();
              write(txt);
              close();
        }
    }
	control=0;
}

// This script is copyright (c) Henrik Petersen, NetKontoret
// Feel free to use this script on your own pages as long as you do not change it.
// It is illegal to distribute the script as part of a tutorial / script archive.
// Updated version available at: http://www.echoecho.com/toolfloatinglayer.htm
// This comment and the 4 lines above may not be removed from the code.
NS6=false;
IE4=(document.all);
if (!IE4) {NS6=(document.getElementById);}
NS4=(document.layers);

function adjust(height)
{
	height -= 100;

	if (NS4) {
		document.layers['floatLayer'].pageY = height;
	} else if (NS6) {
		document.getElementById('floatLayer').style.top = height;
	} else if (IE4) {
		document.all['floatLayer'].style.posTop = height;
	}
}
