/* Declare a namespace for the site */
var Site = window.Site || {};

/* Create a closure to maintain scope of the '$'
   and remain compatible with other frameworks.  */
(function($) {
	
	//same as $(document).ready();
	$(function() {
		$(function() {

			// Using default configuration
			//$("#koe").carouFredSel();
			
			// Using custom configuration
			/*	CarouFredSel: an infinite, circular jQuery carousel.
				Configuration created by the "Configuration Robot"
				at caroufredsel.frebsite.nl
			*/
			$("#carousel ul").carouFredSel({
				items: {
					visible: 3,
				},
				scroll: {
					easing: "jswing",
					duration: 1200,
					items: 1
				},
				direction: "left",
				auto: true,
				pauseDuration: 1500,
				prev : {   
					button  : "button.prev",
					key     : "left"
				},
				next : {
					button  : "button.next",
					key     : "right"
				}
		
			});	
			
			$(".tweet").tweet({
				query: "roegenroem OR rrjong",
				avatar_size: 32,
				count: 3,
				loading_text: "tweets laden..."
			});

				
		});
	});

	$(window).bind("load", function() {
	});
	
})(jQuery);
