function openPopUp(linkURL) {
	window.open(linkURL,'popup','width=380,height=650')
}

function wantToTry(restarantID)
{
	new Ajax.Request('/want_to_try.php', {
  	method: 'post',
  	parameters: {restID: restarantID},
  	onComplete: function(){
		document.getElementById('want_to_try').src="/images/in_queue_button.png";
  	}
  	});
}

function removeFromQueue(restarantID)
{
	new Ajax.Request('/want_to_remove.php', {
  	method: 'post',
  	parameters: {restID: restarantID},
  	onComplete: function(){
		document.getElementById('wants_'+restarantID+'_container').style.display = 'none';
  	}
  	});
}

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



