	function check_all_days(){
		if(document.form1.all_days.checked==true){
			document.form1.day_1.checked=true;
			document.form1.day_2.checked=true;
			document.form1.day_3.checked=true;
			document.form1.day_4.checked=true;
			document.form1.day_5.checked=true;
			document.form1.day_6.checked=true;
			document.form1.day_7.checked=true;
		}else{
			document.form1.day_1.checked=false;
			document.form1.day_2.checked=false;
			document.form1.day_3.checked=false;
			document.form1.day_4.checked=false;
			document.form1.day_5.checked=false;
			document.form1.day_6.checked=false;
			document.form1.day_7.checked=false;		
		}
	}
	
	function Hide(d) {
		document.getElementById(d).style.display = "none";
	}

	function Show(d) {
		document.getElementById(d).style.display = "block";
	}

	function ShowInline(d) {
		document.getElementById(d).style.display = "inline";
	}

	function ReverseDisplay(d) {
		if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
		else { document.getElementById(d).style.display = "none"; }
	}


function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}


function SelectMajorCity(city){
	var tbox = document.getElementById('s');
	if(tbox){
		tbox.value = city;
	}	
}



function hhSearchLostFocus(){
	if(document.getElementById('s').value==''){
		document.getElementById('s').style.backgroundImage="url(../img/hh_search_bg.png)";
	}
}
 
function hhSearchFocus(){
	document.getElementById('s').style.backgroundImage="url(../img/trans.gif)";
}



function hhSearchNameLostFocus(){
	if(document.getElementById('n').value==''){
		document.getElementById('n').style.backgroundImage="url(../img/hh_search_name_bg.png)";
	}
}
 
function hhSearchNameFocus(){
	document.getElementById('n').style.backgroundImage="url(../img/trans.gif)";
}



function returnFromHHResults(){
	if(document.getElementById('s').value!=''){
		hhSearchFocus();
	}
	
	if(document.getElementById('n').value!=''){
		hhSearchNameFocus();
	}
}


function moreSearchOpts(){
	document.getElementById('moreSearchOptsLinkDiv').style.display = "none";
	document.getElementById('lessSearchOptsLinkDiv').style.display = "block";
	document.getElementById('moreSearchOptsDiv').style.display = "block";
}

function lessSearchOpts(){
	document.getElementById('lessSearchOptsLinkDiv').style.display = "none";
	document.getElementById('moreSearchOptsLinkDiv').style.display = "block";
	document.getElementById('moreSearchOptsDiv').style.display = "none";
}

function moreResultSearchOpts(){
	document.getElementById('moreSearchOptsLinkDiv').style.display = "none";
	document.getElementById('lessSearchOptsLinkDiv').style.display = "block";
	document.getElementById('moreSearchOptsDiv').style.display = "block";
	document.getElementById('moreSearchOptsLineDiv').style.display = "block";
}

function lessResultSearchOpts(){
	document.getElementById('lessSearchOptsLinkDiv').style.display = "none";
	document.getElementById('moreSearchOptsLinkDiv').style.display = "block";
	document.getElementById('moreSearchOptsDiv').style.display = "none";
	document.getElementById('moreSearchOptsLineDiv').style.display = "none";
}

function moreRecipeSearchOpts(){
	document.getElementById('moreSearchOptsLinkDiv').style.display = "none";
	document.getElementById('lessSearchOptsLinkDiv').style.display = "block";
	document.getElementById('lessSearchOptsDiv').style.display = "none";
	document.getElementById('moreSearchOptsDiv').style.display = "block";
}

function lessRecipeSearchOpts(){
	document.getElementById('lessSearchOptsLinkDiv').style.display = "none";
	document.getElementById('moreSearchOptsLinkDiv').style.display = "block";
	document.getElementById('moreSearchOptsDiv').style.display = "none";
	document.getElementById('lessSearchOptsDiv').style.display = "block";
}


// Local Happy Hours Menu.
sfHoverLocalHH = function() {
   var sfEls = document.getElementById("menu_hh").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverLocalHH);


// Drink Recipes Menu.
sfHoverDrinkRecipes = function() {
   var sfEls = document.getElementById("menu_dr").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverDrinkRecipes);


// Drinking Games Menu.
sfHoverDrinkingGames = function() {
   var sfEls = document.getElementById("menu_dg").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverDrinkingGames);


// Drink Vault Menu.
sfHoverDrinkVault = function() {
   var sfEls = document.getElementById("menu_dv").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverDrinkVault);


// The Scene Menu.
sfHoverTheScene = function() {
   var sfEls = document.getElementById("menu_sc").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverTheScene);


// Events Menu.
sfHoverEvents = function() {
   var sfEls = document.getElementById("menu_ev").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverEvents);


// My Account Menu.
sfHoverMyAccount = function() {
   var sfEls = document.getElementById("menu_my").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverMyAccount);


// Company Menu.
sfHoverCompany = function() {
   var sfEls = document.getElementById("menu_co").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverCompany);


// Groups Menu.
sfHoverGroups = function() {
   var sfEls = document.getElementById("menu_gr").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverGroups);


// Go Local Menu.
sfHoverGoLocal = function() {
   var sfEls = document.getElementById("menu_gl").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverGoLocal);


// Back Home Menu.
sfHoverBackHome = function() {
   var sfEls = document.getElementById("menu_bh").getElementsByTagName("li");
   for (var i=0; i<sfEls.length; i++) {
      sfEls[i].onmouseover=function() {
         this.className+=" hover";
      }
      sfEls[i].onmouseout=function() {
         this.className=this.className.replace(new RegExp(" hover\\b"), "");
      }
   }
}
if (window.attachEvent) window.attachEvent("onload", sfHoverBackHome);


// Preload Menu roll-over images for Opera.
if (document.images) {
	preload_image_object = new Image();
	image_url = new Array();  

	image_url[2] = "img/menu_co.png";
	image_url[3] = "img/menu_co_sub.png";
	image_url[4] = "img/menu_co_sub_bg.png";
	image_url[5] = "img/menu_co_sub_bg_over.png";
	image_url[6] = "img/menu_dr.png";
	image_url[7] = "img/menu_dr_sub.png";
	image_url[8] = "img/menu_dr_sub_bg.png";
	image_url[9] = "img/menu_dr_sub_bg_over.png";
	image_url[10] = "img/menu_dg.png";
	image_url[11] = "img/menu_dg_sub.png";
	image_url[12] = "img/menu_dg_sub_bg.png";
	image_url[13] = "img/menu_dg_sub_bg_over.png";
	image_url[14] = "img/menu_hh.png";
	image_url[15] = "img/menu_hh_sub.png";
	image_url[16] = "img/menu_hh_sub_bg.png";
	image_url[17] = "img/menu_hh_sub_bg_over.png";
	image_url[18] = "img/menu_my.png";
	image_url[19] = "img/menu_my_sub.png";
	image_url[20] = "img/menu_my_sub_bg.png";
	image_url[21] = "img/menu_my_sub_bg_over.png";
	image_url[22] = "img/menu_gl.png";
	image_url[23] = "img/menu_gl_sub.png";
	image_url[24] = "img/menu_gl_sub_bg.png";
	image_url[25] = "img/menu_gl_sub_bg_over.png";
	image_url[26] = "img/menu_gr.png";
	image_url[27] = "img/menu_gr_sub.png";
	image_url[28] = "img/menu_gr_sub_bg.png";
	image_url[29] = "img/menu_gr_sub_bg_over.png";
	image_url[30] = "img/menu_bh.png";
	image_url[31] = "img/menu_bh_sub.png";
	image_url[32] = "img/menu_bh_sub_bg.png";
	image_url[33] = "img/menu_bh_sub_bg_over.png";
	
    var i = 2;
	
	for(i=2; i<=33; i++) 
         preload_image_object.src = image_url[i];
}
