<!--
	$(document).ready(function(){
		toolTipFadeIn();
		
		$(".tooltip").bind("mouseenter",doOnToolTipMouseOver);
		$(".tooltip").bind("mouseleave",doOnToolTipMouseLeave);
		$("#tooltip_close").bind("click",doOnCloseClicked);
		$("#tooltip_open").bind("click",doOnOpenClicked);
		
		$(window).resize();
	});
	
	function toolTipFadeOut(){
		$(".tooltip_bright").fadeOut(1000,toolTipFadeIn);
	}
	
	function toolTipFadeIn(){
		$(".tooltip_bright").fadeIn(900,toolTipFadeOut);
	}
	
	function doOnToolTipMouseOver(e){
		$("#content_paragraph").stop(true,true).fadeTo(0,0);
		$("#info_paragraph").stop(true,true).fadeTo(0,0);
		$("#content_paragraph").stop(true,true).html($(this).find("img").attr("data"));
		$("#content_paragraph").stop(true,true).fadeTo(600,1);
		$("#info_paragraph").stop(true,true).delay(150).fadeTo(600,1);	
	}
	
	function doOnToolTipMouseLeave(e){
		$("#content_paragraph").stop(true,true).fadeTo(0,0);
		$("#info_paragraph").stop(true,true).fadeTo(0,0);
		$("#content_paragraph").stop(true,true).html(window["indextxt"]);
		$("#content_paragraph").stop(true,true).fadeTo(600,1);		
		$("#info_paragraph").stop(true,true).delay(150).fadeTo(600,1);		
	}
	function doOnCloseClicked(e){
		closed_info = 1;
		
		e.preventDefault();
		$(".tooltip_container").fadeTo(200,0,function(){
			$(this).css("display","none");
		});
		
		$.get(wamplink+"/includes/setclose.php?close="+closed_info);
		
	}
	function doOnOpenClicked(e){
		e.preventDefault();
		
		if(closed_info == 1){
			closed_info = 0;
			$(".tooltip_container").fadeTo(300,1);
		}
		
		$.get(wamplink+"/includes/setclose.php?close="+closed_info);
	}
	
	if(closed_info == 0){
		$(".tooltip_container").show();
	}else{
		$(".tooltip_container").hide();
	}
	
	$(window).resize(function(){
		if($(window).height() < 600){
			$("#horizon").css("top","290px");
		}else{
			$("#horizon").css("top","50%");
		}
	});
-->
