$.fn.pause = function(milli,type) {
	milli = milli || 1000;
	type = type || "fx";
	return this.queue(type,function(){
		var self = this;
		setTimeout(function(){
			$.dequeue(self);
		},milli);
	});
};

$(document).ready(function() {
	
	$('#myPanel').hide();
	
	$("#linkPanel").hover(
		function () {
			if ($("#myPanel").css("display") == 'none'){
				$("#myPanel").slideDown("slow");
	    	}			
						
		}
	);
	
	$("#toolbar").hover(
		function () {
			
		},
		function () {
			if ($("#myPanel").css("display") != 'none'){
				$("#myPanel").pause(1000);
				$("#myPanel").slideUp("normal");
	    	}
		}
	);

});
