jQuery(document).ready(function(){
	var totalprojects = $(".listEntry.twoCols").length;
	
	if(totalprojects <= 2){
		$('#showMoreEntries').hide();
	}else{
		var projectlines = Math.round(totalprojects/2);
		var totalheight = projectlines*170;
		$('#showMoreEntries').toggle(
		function(){	
		     $('.listDefault').animate({		
				height: "170"
			}, 500, function() {
				$('#showMoreEntries a').html("Mehr Projekte");
				$('#showMoreEntries').css("background-image","url(/wGlobal/wGlobal/layout/images/backgrounds/open.gif)");		
			});	
			
			
		},
		function(){
			$('.listDefault').animate({
				height: totalheight
			}, 500, function() {
				$('#showMoreEntries a').html("schliessen");
				$('#showMoreEntries').css("background-image","url(/wGlobal/wGlobal/layout/images/backgrounds/close.gif)");		
			});
			
		});
	
	}
});





