jQuery.noConflict();

jQuery(document).ready(function($){

	$('#sitemapBottom ul').css('height', $('#sitemapBottom').height() - 30 + 'px');


	$('.menu-main').each(function() {

		$(this).mouseenter(function() {
			$(this).children('.menu-sub').stop(true, true).height('131px');
			$(this).children('.menu-sub').slideDown(); // IE8 needs this in a separate line
			$(this).toggleClass('menu-main-hover');
		});
		$(this).mouseleave(function() {
			$(this).children('.menu-sub').stop(true, true).slideUp();
			$(this).toggleClass('menu-main-hover');
		});
	});

	if($('#loginForm')) {
		$('body').css('backgroundPosition', 'left 28px');
	}

    $("#quickSearchText").focus();

});

// ueberprueft Input-Felder auf Inhalt
function checkForContent(fieldname, message, defaultContent, minLength)
{
    var def = "";
	var minlength = 0;
	var val = $F(fieldname).strip();

    if(typeof defaultContent != "undefined")
        def = defaultContent;

    if(typeof minLength != "undefined")
        minlength = minLength;

	if(val == def || val.empty() || val.length < minLength)	{
		showMessage(message, true);

		try {
		    $(fieldname).activate();
		}
		catch(e) {
		}

		return false;
	}
	else {
		return true;
	}
}



