// JavaScript Document

jQuery(document).ready (function()
{
	jQuery ("#profile").each (function() {
		this.onmouseover=onProfileOver;
		this.onmouseout=onProfileOut;
	});
});

function onProfileOver ()
{
	if (this.menuOutTimeoutId != null) {
		clearInterval(this.menuOutTimeoutId);
		this.menuOutTimeoutId = null;
	}
	
	jQuery ("#loginmenu").show ();
}

function onProfileOut ()
{
	var eltId = this.id;
	
	if (this.menuOutTimeoutId == null) {
		this.menuOutTimeoutId = setTimeout(function()
		{
			jQuery ("#loginmenu").hide ();
		}, 100);
	}
	
}
