function showSpan(elt) {
  $("#" + elt).hide();
  $("#" + elt + "_more").fadeIn(1000);
}

function showMenu(which) {
//alert(which);
  hideMenus();
  $("#" + which).show();
  document.getElementById("tab_" + which).className = "menu_tab_" + which;
}

function hideMenus() {
  $("#dinner").hide();
  $("#bar").hide();
  $("#dessert").hide();
  $("#brunch").hide();

  document.getElementById("tab_dinner").className = "menu_tab_dinner_off";
  document.getElementById("tab_bar").className = "menu_tab_bar_off";
  document.getElementById("tab_dessert").className = "menu_tab_dessert_off";
  document.getElementById("tab_brunch").className = "menu_tab_brunch_off";
  //$("#tab_brunch").className = "menu_tab_brunch_off";

// 20110208 SELERUM - KL : Handling wine list menu
	  $("#wine_list").hide();
	  $("#tab_wine_list").removeClass('menu_tab_wine_list');
	  $("#tab_wine_list").addClass('menu_tab_wine_list_off');
	  //document.getElementById("tab_wine_list").className = "menu_tab_wine_list_off";

	hideMenu('tasting') ; 
}


function hideMenu(str_item){
	  $("#" + str_item).hide();
	  $("#tab_" + str_item).removeClass('menu_tab_' + str_item);
	  $("#tab_" + str_item).addClass('menu_tab_' + str_item + '_off');

}

function showDirections(which, elt) {
  var dirdiv = document.getElementById('contact_directions_' + which);
  if (dirdiv.style.display == "block") {
	elt.className = "contact_directions_title_closed";
    $("#contact_directions_" + which).hide();	
  } else {
	elt.className = "contact_directions_title_open";
    $("#contact_directions_" + which).fadeIn(1000);
  }
}

var links = document.getElementById('container').getElementsByTagName('a');
for ( var i = 0; i < links.length; i++ ) {
    links[i].onmousedown = function () {
        this.blur();
        return false;
    }
    /*links[i].onclick = function() {
        this.blur();
    }*/
    if ( /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ) {
        links[i].onfocus = function() {
            this.blur();
        }
    }
}


if (navigator.userAgent.indexOf("MSIE 7.0")) {
  //document.getElementById('background').height = document.body.offsetHeight;
  //document.getElementById('background').width = document.body.offsetWidth;
}
