//equal height for listview teasers
/*function setEqualHeight(columns)
 {
 var tallestcolumn = 0;
 columns.each(
 function()
 {
 currentHeight = $(this).height();
 if(currentHeight > tallestcolumn)
 {
 tallestcolumn  = currentHeight;
 }
 }
 );
 columns.height(tallestcolumn);
 }*/

// JavaScript Document
$(document).ready(function() {
    $('#head .content .title a').click(function(){
        if ($('#head .content .title a').hasClass('active') == false) {
            $("#head .content").stop().animate({top:'323px'},{queue:false,duration:260});
            $("#head .content .title a").addClass('active');
        } else {
            $("#head .content").stop().animate({top:'419px'},{queue:false,duration:260});
            $("#head .content .title a").removeClass('active');				
        }
    });
    
    $('.teaser.caption').hover(function(){
        $(".cover", this).stop().animate({marginTop:'-80px'},{queue:false,duration:160});
    }, function() {
        $(".cover", this).stop().animate({marginTop:'-20px'},{queue:false,duration:160});
    });
	//$("#page_teaser_big_last .big_teaser").equalHeights();
	//$("#page_teaser_big_last .text").equalHeights();
	$(".page_teaser_big").equalHeights();	
	$(".page_teaser_big_last").equalHeights();	
	 //setEqualHeight($('#page_teaser_big_last > .text'));
});
