/* Author: 

*/



function doNewsScroller() {
	var theLength = $('aside .news_articles > article').length;
	if(theLength > 3){
		$('aside .news_articles > article:first-child').addClass("top").animate({"marginTop":"-69px"}, function(){
			theparent = $(this).parent();
					$('aside .news_articles > article:first-child').css({"margin-top":"0"}).appendTo(theparent).removeClass("top");
		});

		
	}
	setTimeout(doNewsScroller, 4000);
}

$(function(){
	setTimeout(doNewsScroller, 4000);
});



$('.partner img').hover(function() {
	$(this).fadeTo('slow', .3);
});

$('.partner img').mouseleave(function() {
	$(this).fadeTo('fast', 1);
});











$(document).ready(function(){
	$( ".datepicker" ).datepicker( { dateFormat : "dd/mm/yy" } );
	
	$("img[rel='lbox']").colorbox({transition:"fade", maxHeight: "90%", photo: "true", scalePhotos: "true", preloading: "true"});
	
});







