// init $VOM namespace 
var $B = window.$B || {};

//
// createLink(): Given a jQuery selector and a URL, add an onclick event that 
// lets you click on a div to go to a new page 
//
$B.createLink = function(cssSelector, url) {
	$(cssSelector).click(function() { 
		if ($(this).hasClass('external')) {
			window.open( url );
        	return false;
		} else {
			location.href=url;
		}
	});
}



// init namespace 
$B.sf = {};

$(document).ready(function() {
	// init the link
	$B.createLink($('#wine'), '/pdfs/b-sf_wine.pdf');
	$B.createLink($('#cocktails'), 'pdfs/b-sf_cocktails.pdf');	
	$B.createLink($('#dinner'), '/pdfs/b-sf_kitchen.pdf');
	$B.createLink($('#lunch'), '/pdfs/b-sf_lunch.pdf');
	$B.createLink($('#brunch'), '/pdfs/b-sf_brunch.pdf');		
	// show the ticker. Was hidden by CSS so it doesn't show if JS is turned off
});