// JavaScript Document

$(document).ready(function(){

$("#mainNav li.roll").hover(function() { //When item is rolled over... 

//Following events are applied to the subnav itself (moving subnav up and down)  
$(this).find("ul.subNav").stop(true,true).slideDown('400').show(); //Drop down the subnav on rollover 

$(this).hover(function() {  
}, function(){  
$(this).find("ul.subNav").slideUp('fast'); //When the mouse hovers out of the subnav, move it back up  
});  

//Following events are applied to the trigger (Hover events for the trigger)  
});


// Order Online Prompt Popup
/*
$('.orderButton').click(function() {
      	$('#orderPromptWrap').css('display', 'block');
		$('#orderPromptFade').css('filter', 'alpha(opacity=80)');
      	$('#orderPromptFade').fadeIn('slow', function() {
        // Animation complete
      });
    });


*/

});

// GOOGLE ANALYTICS

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21542749-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


