//Move along, there's absolutely nothing to see here...

//##### NAVI #####
$(document).ready(function(){
$("#ani li[class!='current_page_item,current_page_parent'] a").hover(function(){
  $(this).stop().animate({ 
	marginTop: "-5px"
  }, 150 );
})
.mouseout(function(){
		    	 $(this).stop().animate({ 
	marginTop: "0px"

  }, 200 );
});

//##### BIO #####

$(".biohover img").hover(function () {
$(this).stop().animate({
	opacity: 0
	}, "500");
},

function () {	
$(this).stop().animate({
	opacity: 1 }, "");
});


		
		$(".animelinkki img").hover(function () {
			// Fade out
			$(this).stop().animate({
				opacity: 0.5
			}, "500");
		},
		// mouseoutis
		function () {
			// Fade in
			$(this).stop().animate({
				opacity: 1 }, "500");
		});


//####GALLERIA####
	$(".livevideot").click(function(){
                    if ($("#livevideot").is(":hidden")){
                        
                        $("#livevideot").slideDown("slow");
                                               
                    }
                    else{
                        $("#livevideot").slideUp("slow");
                      }
                });

	$(".dokumentit").click(function(){
                    if ($("#dokumentit").is(":hidden")){
                        
                        $("#dokumentit").slideDown("slow");
                                               
                    }
                    else{
                        $("#dokumentit").slideUp("slow");
                      }
                });			
				
		$(".keikkakuvat").click(function(){
                    if ($("#keikkakuvat").is(":hidden")){
                        
                        $("#keikkakuvat").slideDown("slow");
                                               
                    }
                    else{
                        $("#keikkakuvat").slideUp("slow");
                      }
                });					
				
		$(".promokuvat").click(function(){
                    if ($("#promokuvat").is(":hidden")){
                        
                        $("#promokuvat").slideDown("slow");
                                               
                    }
                    else{
                        $("#promokuvat").slideUp("slow");
                      }
                });			
				
});
