// JavaScript Document




$(document).ready(function(){
				
				
			
				
			/*
			fix de container padding, zodat ook het laatste artikel mooi uitlijnd
			*/
		var lastheight = $('.inspire_entry:last').height();
		var windowheight = $(window).height();   // returns height of browser viewport
		var uitkomst = windowheight-lastheight;
		
		$("#content").css("padding-bottom", uitkomst);
		
		
		/// kleine windowsizes		
		var screenwidth = $(window).width();
		if( screenwidth < 1090)
		{ 
		$('#container').css( 'marginLeft', 213);
		$('#column').css('width', 153);
		$('#columnbottom').css('width', 153);	}
		else
		{
		$('#container').css( 'marginLeft', 295);
		$('#column').css('width', 235);
		$('#columnbottom').css('width', 235);	}
		
		
		$(window).resize(	
		function screenfixwidth() {
			var screenwidth = $(window).width();
			if( screenwidth < 1090)
				{ 
				$('#container').css( 'marginLeft', 213);
				$('#column').css('width', 153);
				$('#columnbottom').css('width', 153);
				}
			else
				{
				$('#container').css( 'marginLeft', 295);
				$('#column').css('width', 235);
				$('#columnbottom').css('width', 235);
				}
		});
		
		
	
		
			
						   

		// hover inspirediv show more button					   
			$(".inspire_entry").hover(
  			function () {
    		$('.inspire_content > span',this).removeClass("formore");
  			},
  			function () {
    		$('.inspire_content > span',this).addClass("formore");
  			}
			);
		

			
	/*		
		$('.expander').toggle(function() {

  $(this).parent().parent().find('.inspire_footer p').slideUp('slow', function() { });
  return false;
  
}, function(){
	
	 $(this).parent().parent().find('.inspire_footer p').slidedown('slow', function() { });
  return false;
	
	
});	*/
			
		
$('.expander').toggle(
  function () {
	  	$(this).parent().parent().find('.inspire_footer p').stop();
		$(this).parent().parent().parent().find('.inspire_footer p').slideDown('fast', function() { });
  		return false;
  },
  function () {
		$(this).parent().parent().find('.inspire_footer p').stop();
		$(this).parent().parent().parent().find('.inspire_footer p').slideUp('fast', function() { });
		return false;
  }
);
			
	
	
	
$(".shortcuts").toggle(
  function () {
    $('.menu li a span').css("display","inline");
	$('.navigation span').css("display","inline");
  },
  function () {
    $('.menu li a span').css("display","none");
	$('.navigation span').css("display","none");
  }
);





			
});