$(document).ready(function() {
	var now = new Date();

	var date = now.getDate();
	var month = now.getMonth();
	var year = now.getFullYear();
	var displayedDate;

	switch(month) {
		case(0): 
			month = 'Januar';
			break;
		case(1): 
			month = 'Februar';
			break;
		case(2): 
			month = 'März';
			break;
		case(3): 
			month = 'April';
			break;
		case(4): 
			month = 'Mai';
			break;
		case(5): 
			month = 'Juni';
			break;
		case(6): 
			month = 'Juli';
			break;
		case(7): 
			month = 'August';
			break;
		case(8): 
			month = 'September';
			break;
		case(9): 
			month = 'Oktober';
			break;
		case(10): 
			month = 'November';
			break;
		case(11): 
			month = 'Dezember';
			break;
	}

	displayedDate = date + ". " + month + " " + year;

	$("#rb-date").text(displayedDate);

	//fund list dropdown
	$("#fundList").load("/de/jsp/app/ajax_html.jsp?content=homepage_fundlist&siteIndicator=de;");
	$("#fundListLink").click(function(){
		$("#fundList").slideToggle('fast');
                $("#bodyElement").click(function(){  
                $("#fundList").hide();
           });     
	});            
        

});

