$(document).ready(function() {
	var jetzt = new Date();
	var tag = jetzt.getDate();
	var el = $('#currentDate');
	if(tag < 10) {
		tag = "0"+tag;
	}
	el.attr('src', '/fileadmin/templates/thein/_img/1-31/'+tag+'.gif');
	
	
	$('.calenderDate').click(function() {
		window.location.href = '/index.php?id=29';
	});
	
	$('.sblock.networks a').hover(function() {
		switch($(this).attr('href')) {

			case 'http://www.facebook.com/pages/Alexandra-Thein/54732522198':
				$('.sblock.networks').css('backgroundPosition', '0 -109px');
			break;
			case "http://www.abgeordnetenwatch.de/alexandra_thein-602-21031.html":
				$('.sblock.networks').css('backgroundPosition', '0 -218px');
			break;
			case "http://www.europarl.europa.eu/members/expert/alphaOrder/view.do?language=DE&id=96874":
				$('.sblock.networks').css('backgroundPosition', '0 -327px');
			break;
			case "https://www.xing.com/profile/Alexandra_Thein":
				$('.sblock.networks').css('backgroundPosition', '0 -436px');
			break;
		}	
	}, 
	function() {
		$('.sblock.networks').css('backgroundPosition', '0 0');				
	});
	
});


