function removeMore(){
	$("div.moreDiv").fadeOut(600);
}
function removeProfile(){
	$("a.myprofile").removeClass("active");
	$("div.myprofile").hide();
}

$(document).ready(function(){
	// Site network list
	$("a.moreLink").mouseover(function(){
					if (typeof removeTimeOut != "undefined")
						removeTimeOut = clearTimeout(removeTimeOut);
						
					$("div.moreDiv").css("left",$("a.moreLink").offset().left).fadeIn(600);
				}).
				mouseout(function(){
					removeTimeOut = setTimeout("removeMore()",500);
				});
				
	$("div.moreDiv").mouseover(function(){
					removeTimeOut = clearTimeout(removeTimeOut);
				}).mouseout(function(){
					removeTimeOut = setTimeout("removeMore()",500);
				});
				
	// My profile
	$("a.myprofile").mouseover(function(){
					if (typeof removeProfileTimeOut != "undefined")
						removeProfileTimeOut = clearTimeout(removeProfileTimeOut);
						
					$("div.myprofile").css("left",$("a.myprofile").offset().left)
									  .css("width",$("a.myprofile").innerWidth())
									  .fadeIn(600);
					$("a.myprofile").addClass("active");
				}).
				mouseout(function(){
					removeProfileTimeOut = setTimeout("removeProfile()",500);
				});
				
	$("div.myprofile").mouseover(function(){
					removeProfileTimeOut = clearTimeout(removeProfileTimeOut);
				}).mouseout(function(){
					removeProfileTimeOut = setTimeout("removeProfile()",500);
				});
});
