function animateBottom(){
	
	$('.news_short').css("top","440px");
	//$('#main_box_bg img').attr('src', url);
	$('.news_short').animate({
    top: '+330px',
	opacity:0.80
  }, 3000, function() {
    // Animation complete.
  }).clearQueue();
$('.news_short').css("top","440px");
}

function hoverNews(box){
	$('.news_short').html($(box).attr('title'));
	animateBottom();
}

function hoverWeekday(selected){
	$(selected).animate({
    width: '270px',
	height: '350px',
	opacity:1
  }, 2000, function() {
    // Animation complete.
  }).clearQueue();
	;
}

function hoverOutWeekday(selected){
	$(selected).animate({
    width: '100px',
	height: '260px',
	opacity:0.50
  }, 2000, function() {
    // Animation complete.
  }).clearQueue();
	;
}

function calendarNavigation(target){
	$(".calendar_selected").removeClass("calendar_selected").addClass('calendar_controls');
	
	switch (target){
		case 0:
			
			$("#calendar_container").scrollTo( $('#calendar_container').children().get(0), 1500 );
			$($("#calendar_navigation_bar a").get(0)).removeClass('calendar_controls').addClass('calendar_selected');
			break;
		case 1:
			$("#calendar_container").scrollTo( $('#calendar_container').children().get(1), 1500 );
			$($("#calendar_navigation_bar a").get(1)).removeClass('calendar_controls').addClass('calendar_selected');
			break;
		case 2:
			
			$("#calendar_container").scrollTo( $('#calendar_container').children().get(2), 1500 );
			$($("#calendar_navigation_bar a").get(2)).removeClass('calendar_controls').addClass('calendar_selected');
			break;
	}
}

