function searchBlur(sterms){
  var sterm = $("search_field").value;
  if(sterm == ""){
      sterm = sterms;
  }
  $("search_field").value = sterm;
}

function show_shopping_cart(){
  if($('small_shop_cart')){
    if($('small_shop_cart').style.display == 'block'){
      $('small_shop_cart').style.display = 'none';
    }else{
      $('small_shop_cart').style.display = 'block';
    }
    //test = setTimeout("hide_shopping_cart()", 10000);
  }
}

function hide_shopping_cart(){
  $('small_shop_cart').style.display = 'none';
  clearTimeout('test');
}

function show_login(){
  if($('login_form').style.display == 'block'){
    $('login_form').style.display = 'none';
  }else{
    $('login_form').style.display = 'block';
  }
}

// navHover = function() {
//  var lis = $("main_navigation").getElementsBySelector("LI");
//  for (var i=0; i<lis.length; i++) {  
//    lis[i].onmouseover=function() {
//      this.className+=" iehover";
//    }
//    lis[i].onmouseout=function() {
//      this.className=this.className.replace(new RegExp(" iehover\\b"), ""); // geht nicht in firefox
//    }
//  }
// }

// && window.location.pathname.indexOf('admin') == -1
//if (Prototype.Browser.IE){ window.attachEvent("onload", navHover); }