var brWidth = 0, xCoord, yCoord;
if (typeof(window.innerWidth)=='number') { 
	brWidth = window.innerWidth;
} 
else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
	brWidth = document.documentElement.clientWidth;
} 

function rollOn(icon) {
	icon = document.getElementById(icon);
	icon.style.position='absolute';
	if (xCoord <= (brWidth-200)) { 
		icon.style.left = xCoord + 5 + "px";
	} else { 
		icon.style.left = xCoord - 205 + "px";
	}
	icon.style.top = yCoord+5+"px";
	icon.style.visibility = 'visible';
}

function rollOut(icon) {
		icon = document.getElementById(icon);
		icon.style.visibility='hidden';
}

function checkwhere(e) {
	if (document.all) {
		xCoord = event.clientX+document.documentElement.scrollLeft;
		yCoord = event.clientY+document.documentElement.scrollTop;
	}
	else if (document.getElementById) {
		xCoord = e.clientX+document.documentElement.scrollLeft;
		yCoord = e.clientY+document.documentElement.scrollTop;
	}
}

document.onmousemove = checkwhere;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}

