
jQuery.noConflict();
jQuery(function($){

	if ($("side").height() < 300) $('side').css('height', '300px');
	if ($("side").height() < $("food").height()) $('side').css('height', $('food').css('height'));

	$(".modal").click(function(e){ e.preventDefault(); return false; }).colorbox({ iframe: true });

	// Open external links in a new window and track
	$("a[href^=http], area[href^=http]").not("a.youtube")
		.each(function(){ if (this.href.indexOf(location.hostname) == -1){ $(this).attr({ "target":"_blank", "rel":"external" }); } })
		.click(function(){ _gaq.push(["_trackEvent", "External Links", "click", $(this).attr("href")]); });

    $('form.popup').submit(function() {
        window.open('', 'frmPopup', 'width=700,height=450,resizeable,scrollbars');
        this.target = 'frmPopup';
    });

		$("input[type='email']:first", document.forms[1]).focus();

});

