$(function(){
	var trailer = $('#trailer');
	var panel = $('.panel');

	$('#watch_trailer').click(function(evt){
		evt.preventDefault();
		panel.animate({top: '-210px'},function(){
			$('.introtext').fadeOut('normal');
			trailer.fadeIn('normal');
		});
	});
	$('#close-trailer').click(function(evt){
		evt.preventDefault();
		$('.introtext').fadeIn('normal');
		trailer.fadeOut('normal');
		panel.animate({top: '90px'});
	});

	//rounded corner
	$('<div class="topRight"></div><div class="topLeft"></div><div class="bottomRight"></div><div class="bottomLeft"></div>').appendTo(".roundedBox");

	$('#freeform').submit(function(){
		if($('#name').val() == '' || $('#email').val() == ''){
			alert('Vul de verplichte velden in aub.');
			return false;
		}
		
	});
});



var amount = 3-1;


getTwitters('tweets', { id: 'tastethewastenl', count: amount, enableLinks: true, newwindow: true, ignoreReplies: true, clearContents: true, template: '<img src="http://www.tastethewaste.nl/img/twitter_icon.png"/> %text% <em>%time%</em>' });
