$(document).ready(function(){
	var searchWord = $('#searchfield').val();
	$('#social_facebook').mouseenter(function(){$('#social_facebook > img').attr('src','fileadmin/system/templates/res/images/facebook_active.gif');});
	$('#social_facebook').mouseleave(function(){$('#social_facebook > img').attr('src','fileadmin/system/templates/res/images/facebook_inactive.gif');});	
	$('#social_twitter').mouseenter(function(){$('#social_twitter > img').attr('src','fileadmin/system/templates/res/images/twitter_active.gif');});
	$('#social_twitter').mouseleave(function(){$('#social_twitter > img').attr('src','fileadmin/system/templates/res/images/twitter_inactive.gif');});	
	$('#social_youtube').mouseenter(function(){$('#social_youtube > img').attr('src','fileadmin/system/templates/res/images/youtube_active.gif');});
	$('#social_youtube').mouseleave(function(){$('#social_youtube > img').attr('src','fileadmin/system/templates/res/images/youtube_inactive.gif');});	
	$('#social_xing').mouseenter(function(){$('#social_xing > img').attr('src','fileadmin/system/templates/res/images/xing_active.gif');});
	$('#social_xing').mouseleave(function(){$('#social_xing > img').attr('src','fileadmin/system/templates/res/images/xing_inactive.gif');});	
	$('#wechsler').innerfade({
		animationtype: 'fade',
		speed: 'slow',
		timeout: 4000,
		type: 'sequence'
	});	
	$('.rounded').corner('cc:#e6e4e4');
	$('.roundedWhite').corner('cc:#FFFFFF');
	$('.item').corner("keep");
	$(".roundedIMG").load(function() {
	    $(this).wrap(function(){
			return '<div class="imagewrapper">';
	    });
		$('.imagewrapper').corner('cc:#FFF');
	  });
	$('#searchfield').click(function(){
		if ($(this).val() == searchWord){
			$(this).val('');
		}
	});
	$('#searchfield').blur(function(){
		if ($(this).val() == ''){
			$(this).val(searchWord);
		}
	});
});
