$(document).ready(function(){  
 	 //twitter functie
	$.fn.getTwitter = function(options) {
		var o = $.extend({}, options);
		
		$(this).append('<ul id="twitter_update_list"><li></li></ul>');

		var pl = $('<p id="'+o.preloaderId+'">'+o.loaderText+'</p>');
		$(this).append(pl);
		
		// add Twitter profile link to container element

	 
		$.getScript("js/blogger.js");
		$.getScript("http://twitter.com/statuses/user_timeline/"+o.userName+".json?callback=twitterCallback2&count="+o.numTweets, function() {
			// remove preLoader from container element
			$(pl).remove();

			 
				$("ul#twitter_update_list").show();
	 

			// give first list item a special class
			$("ul#twitter_update_list li:first").addClass("active");
		
 			$("ul#twitter_update_list li").addClass("block-content left");

		});
		

	}

	
	$("#more").click(function() {  
  
		 $(this).parent().find(".block-content").slideDown('fast').show(); //Drodown
  
		$(this).parent().hover(function() {  
		}, function(){  
			$(this).parent().find(".block-content:not(.active)").slideUp('slow'); //gaat weer terug waneer de muis er van af is  
		});  
  
		//Following events are applied to the trigger (Hover events for the trigger)  
		}).hover(function() {  
			$(this).css({"background-position": "0px -6px"}); //On hover over, add class "subhover"  
		}, function(){  //On Hover Out  
			$(this).css({"background-position": "0px -3px"}); //On hover over, add class "subhover"  
		//On hover out, remove class "subhover"  
	});  
	

 
 	$("#foursquare-more").click(function() { 
 			$("#foursquare-content").animate({
				height: "400px"
			}, { "duration": "slow" , "easing": "swing"})
			$("span.hidden").fadeIn();
			
			
			
			$(this).parent().hover(function() {  
			}, function(){  
				$("#foursquare-content").animate({
				height: "115px"
			}, { "duration": "slow" , "easing": "swing"})
			
			$("span.hidden").hide()
			
			; //gaat weer terug waneer de muis er van af is  
		})
	}).hover(function() {  
			$(this).css({"background-position": "0px -6px"}); 
		}, function(){ 
			$(this).css({"background-position": "0px -3px"});  
		});
		
	
	var strCollection = '';
	var year = (new Date).getFullYear();
	var date = new Date();
	var vandaag = (date).getTime();
	var aug = (new Date(year,"08","01")).getTime();
	var feb = (new Date(year,"02","01")).getTime();
	
	var iRemoveFactor = 0;
	if(vandaag >= aug) {
		strCollection = "WINTER";
	}
	if(vandaag < feb) {
		strCollection = "WINTER";
		iRemoveFactor = 1;
	}
	if(vandaag >= feb) {
		strCollection = "ZOMER";
	}
	
	$("#jaarlabel span").html((year-iRemoveFactor) + "&nbsp;" + strCollection);
	
}); 
