/**
* Removes certain characters from search string to avoid errors.
**/
function fixSpecialCharacter(input) {
    input.value = input.value.replace(/[^a-zA-Z0-9\u00E4\u00F6\u00FC\u00C4\u00D6\u00DC\u00DF\u0022\&\+\-\:\? ]/g, " ");
}
/**
* Removes input field inline label when user focuses 'empty' input field.
**/
function fixFocusQuestion(input) {
    if (input.value == 'Suchbegriff eingeben') {
        input.value = '';
    }
}
/**
* Sets input field inline label when user leaves input field
* and did not enter any search keyword.
**/
function fixBlurQuestion(input) {
    if (input.value) {
        return;
    }
    else {
        input.value = 'Suchbegriff eingeben';
    }
}

$(document).ready(function(){
	$('.slider ul').css('display','none');
	$('.slider .first').css('background','#FFFFFF');

	$('.slider').mouseover(function(){
		$(this).addClass('hover');
		$('.hover ul').css('display','block');
		$('.hover .first').css('background','#EDEDED');
	});
});
