$(document).ready(function(){

	$("#portfolio").hide().removeClass("hidden");

	//$("#screen").hover(function(){$(this).fadeOut(100); $(this).fadeIn(500);});
	$("#screen").hover(
		function(){
			$("#ahoj").stop(true,true).fadeOut(100);
			$("#portfolio").stop(true,true).fadeIn(500);
		},
		function(){
			$("#portfolio").fadeOut(100);
			$("#ahoj").fadeIn(500);
		}
	);

	//$("#logo.hover").css({'opacity':'0'});
	$("#logo").hover(
		function(){$(this).addClass("hover");},
		function(){$(this).removeClass("hover");}
  		//function(){$(this).stop().animate({backgroundPosition:"0px -40px"},500)},
		//function(){$(this).stop().animate({backgroundPosition:"0px 0px"},500)}
		//function(){ $(this).stop().animate({backgroundPosition:"0 -40px"},500),
		//function(){ $(this).stop().animate({backgroundPosition:"0 0"},500)
  		//function() {$(this).find('.hover').stop().fadeTo(500, 1);},
  		//function() {$(this).find('.hover').stop().fadeTo(500, 0);}
		);

	$("#exopolitika")
		.mouseenter( function(){ $(this).stop().fadeTo(100,0.5); $(this).animate({top:"0px"},300); $(this).fadeTo(500,1); } )
		.mouseout( function(){ $(this).stop().animate({top:"-10px"},300); } );


	var socialColor;

	$("#social li a").hover(
		function(){socialColor = $(this).css('backgroundColor'); $(this).stop().animate({opacity:0.4},"slow");},
		function(){$(this).stop().animate({opacity:1, backgroundColor:socialColor},"slow");}
		).mousedown(
		function(){$(this).animate({backgroundColor:"#330a33"}, 800);}
		);

});
