$(document).ready(function() {
	$('.newska').slideUp(400);
//  $('.hover').fadeTo("slow", 0.4);
//	
//	$('.hover').mouseover(function(){
//	  $('.hover').animate( { opacity: 1.0, marginLeft: "10px" }  );						   
//    
//	},function(){
//   		$('.hover').fadeTo("slow", 0.4);
//	});
//	
//	$('.hover').mouseout(function(){
//      $('.hover').animate({ 
//        opacity: 0.4,
//        marginLeft: "0px"
//      }, 500 );
//    
//		
//	},function(){
//   		$('.hover').fadeTo("slow", 0.4);
//	});
//	
//	//$("button").click(function () {
//      //$("ul.odrazky").slideToggle("slow"); funkcia na vyrolovanie a zrolovanie
//    //});
//	
//});

	 $('#header').hover(function()
     {
     $(this).children(".flash_cnt").animate( { opacity: 1.0 }, 800  );
     },
     function()
     {
        $(this).children(".flash_cnt").animate( { opacity: 0 }, 800  );
     });
	 
	 $('.portfolioitem').hover(function()
     {
     $(this).children(".title").animate( { opacity: 0.9 }, 400  );
     },
     function()
     {
        $(this).children(".title").animate( { opacity: 0 }, 800  );
     });
	 
     $('.hover').hover(function()
     {
     $(this).children("a").animate( { marginLeft: "5px" }, 200  );
     },
     function()
     {
        $(this).children("a").animate( { opacity: 1.0, marginLeft: "0px" }, 200  );
     });
	 
	 $('.hover1').hover(function()
     {
     $(this).animate( { marginLeft: "5px" }, 200  );
     },
     function()
     {
        $(this).animate( { opacity: 1.0, marginLeft: "0px" }, 200  );
     });
	 
	 // toggle
	$('#toggle').click(function() {
    	$('.newska').slideToggle(400);
    	return false;
  	});
	
	// button
	$(function() {
	// set opacity to nill on page load
	$(".hovering span").css("opacity","0");
	// on mouse over
	$(".hovering span").hover(function () {
		// animate opacity to full
		$(this).stop().animate({
			opacity: 1
		}, 'slow');
	},
	// on mouse out
	function () {
		// animate opacity to nill
		$(this).stop().animate({
			opacity: 0
		}, 'slow');
	});
	});
	
});
