function scheck () {
  if(document.forms.wqsuche.bezeichnung.value == 'Ihr Suchbegriff') document.forms.wqsuche.bezeichnung.value = '';
  if(document.forms.wqsuche.bezeichnung.value.length < 3) {
    alert("Bitte geben Sie mindestens 3 Buchstaben ein!");
    return false;
  }
  document.forms.wqsuche.submit();
}

$(function(){
    /* mainnav */
    $("ul.mainnav ul").parent().hover(function(){
        $(this).children("a").addClass("hover").siblings("ul").show();
    },function(){
        $(this).children("a").removeClass("hover").siblings("ul").hide();
    });

    $(".addItemShoppingList").click(function(event){
        event.stopPropagation();
    });
});



function spalteon(spaltenr) {
document.getElementById(spaltenr).style.backgroundColor = "#d6d1c4";
}

function spalteoff(spaltenr) {
document.getElementById(spaltenr).style.backgroundColor = "";
}

function checkblock(block) {
    if (document.forms['uebersicht'].elements[''+block].checked) {
        document.getElementById(block).style.backgroundColor = "#c5a29d";
    } else {
        document.getElementById(block).style.backgroundColor = "#ebe7d0";
    }
}


function oeffnen(ziel) {
window.location.href = ziel;
}


$(function () {
    $(".wq_hover").hover(function () {
        $(this).addClass("hover");
    }, function () {
        $(this).removeClass("hover");
    }).find(".img-holder").hover(function () {
        var img = $(this).find("img");
        var tmp = img.clone().addClass("hover-img").removeAttr("width").removeAttr("height");
        img.parent().prepend(tmp);
    }, function () {
        $(this).find(".hover-img").remove();
    })
/* .end().click(function () {
        $(this).find(".hover-link").eq(0).click();
        return false;
    }).find(".hover-link").click(function () {
        $(this).parents(".wq_hover, .wq_hover img").trigger("mouseout");
    }) 
*/;
});

