var mouseX = 1;
var mouseY = 1;

document.onmousemove = getMouseXY;
google.load("jquery", "1.3.2");

google.setOnLoadCallback(function() {
	$('#jobresults .bodytext').click( function(){toggleJob(this);});
	$('#jobautoscroll').animate({scrollTop: $('#jobscroller').height()}, ($('#jobscroller').height()*30));	
});

function toggleJob(that) {
	//if ($(that).height() < 100) { $(that).animate({height: '150px'}); } else { $(that).animate({height: '16px'}); }
}

function getMouseXY(e) {
	try {
		if (!e) var e = window.event||window.Event;
		if('undefined'!=typeof e.pageX) {
			mouseX = e.pageX;
			mouseY = e.pageY;
		} else {
			mouseX = e.clientX + document.body.scrollLeft;
			mouseY = e.clientY + document.body.scrollTop;
		}		
	} catch(err) {
		/* Do Nothing And Wonder What's Happening */
	}
}
