
$(document).ready(function () {
	//Append a div with hover class to all the LI
	$("#menu,#home,#galeria,#video,#eventy,#team,#patroni,#partnerzy,#kontakt").stop().animate({opacity:0.7});
	$('#menu #tooltip,#galeria #tooltip,#video #tooltip,#eventy #tooltip,#team #tooltip,#patroni #tooltip,#partnerzy #tooltip,#kontakt #tooltip').stop().animate({opacity:0},50);
	//$('#home #tooltip,#galeria #tooltip,#video #tooltip,#eventy #tooltip,#team #tooltip,#patroni #tooltip,#partnerzy #tooltip,#kontakt #tooltip,').stop().animate({opacity:0},50);
	$('#menu').hover(
		function() {
		//var what = $(this).attr('alt');
		$(this).stop().animate({opacity:1},200);
		$('#menu #tooltip').stop().animate({opacity:1},200);
		//$(".tooltip").css({width:80, top:100, left:100;})
		//$(this).css({background:"url(ikony/menu_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#menu #tooltip').stop().animate({opacity:0},200);
		//$(this).css({background:"url(ikony/menu.png)"});	
		});
		$('#home').hover(
		function() {
		$(this).stop().animate({opacity:1},200);
//				$(this).css({background:"url(ikony/home_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
//			$(this).css({background:"url(ikony/home.png)"});	
		}),
	$('#galeria').hover(
		function() {
		$(this).stop().animate({opacity:1},200);
		$('#galeria #tooltip').stop().animate({opacity:1},200);
//		$(this).css({background:"url(ikony/galeria_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#galeria #tooltip').stop().animate({opacity:0},200);
	//	$(this).css({background:"url(ikony/galeria.png)"});	
		}),
	$('#video').hover(
		function() {				
		$(this).stop().animate({opacity:1},200);
		$('#video #tooltip').stop().animate({opacity:1},200);
//				$(this).css({background:"url(ikony/video_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#video #tooltip').stop().animate({opacity:0},200);
//			$(this).css({background:"url(ikony/video.png)"});	
		}),
	$('#eventy').hover(
		function() {
		$(this).stop().animate({opacity:1},200);
		$('#eventy #tooltip').stop().animate({opacity:1},200);
//		$(this).css({background:"url(ikony/eventy_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#eventy #tooltip').stop().animate({opacity:0},200);
	//	$(this).css({background:"url(ikony/eventy.png)"});	
		}),
	$('#team').hover(
		function() {				
		$(this).stop().animate({opacity:1},200);
		$('#team #tooltip').stop().animate({opacity:1},200);
//				$(this).css({background:"url(ikony/team_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#team #tooltip').stop().animate({opacity:0},200);
//			$(this).css({background:"url(ikony/team.png)"});	
		}),
	$('#patroni').hover(
		function() {				
		$(this).stop().animate({opacity:1},200);
		$('#patroni #tooltip').stop().animate({opacity:1},200);
//		$(this).css({background:"url(ikony/patroni_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#patroni #tooltip').stop().animate({opacity:0},200);
	//	$(this).css({background:"url(ikony/patroni.png)"});	
		}),
	$('#partnerzy').hover(
		function() {				
		$(this).stop().animate({opacity:1},200);
		$('#partnerzy #tooltip').stop().animate({opacity:1},200);
//				$(this).css({background:"url(ikony/partnerzy_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#partnerzy #tooltip').stop().animate({opacity:0},200);
//			$(this).css({background:"url(ikony/partnerzy.png)"});	
		}),
	$('#kontakt').hover(
		function() {				
		$(this).stop().animate({opacity:1},200);
		$('#kontakt #tooltip').stop().animate({opacity:1},200);
//		$(this).css({background:"url(ikony/kontakt_over.png)"});	
		}, 
		function() {
		$(this).stop().animate({opacity:0.7},200);
		$('#kontakt #tooltip').stop().animate({opacity:0},200);
	//	$(this).css({background:"url(ikony/kontakt.png)"});	
		});			
});  

	
		

	


