$(document).ready(function(){
	$("#nav-one li").hover(
		function(){ $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	if (document.all) {
		$("#nav-one li").hoverClass ("sfHover");
	}
	//$("#info").css({display: "none", opacity: "0"});
	//$("#info").appendTo("#header");
	
	$.get("/info.php", function(data){
		$("#header").append(data);
		$("#info").click(
			function(){
				if ($(this).css('opacity') > 0 && $(this).css('display') == 'block') {
					$(this).fadeOut("slow",function(){
						$(this).css({display: "none"});
					});
				}
			}
		);
	});
	
	$("#header").append('<div id="show"></div>');
	
	
	$("#show").click(
		function(){
			if ($("#info").css('opacity') == 0 && $("#info").css('display') == 'none') {
				$("#info").css({display: "block"});
				//$("#info").fadeIn("slow");
				$("#info").fadeIn("slow",function(){
					$(this).append('<div id="close"></div>');
				});
			}
			else {
				$("#info").fadeOut("slow",function(){
					$(this).css({display: "none"});
				});
			}
		}
	);
	
});
  
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};