﻿$(document).ready(function(){$('.featureMealInfo').hide();$('.featureMealInfo:first').show();$('.lgImg').hide();$('.lgImg:first').show();$('#featureNav li:first').addClass('on');$('#featureNav li:last').css('margin-right','0px');$('#featureNav li').click(function(){if(!$(this).hasClass('on')){var thisID=$(this).attr('class');$('.featureMealInfo').hide();$('.lgImg').hide();$('.'+thisID+'').fadeIn(2000);$('#featureNav li').removeClass('on');$(this).addClass('on');removeRotator();}});$('.featureMealInfo, .lgImg').mouseover(function(){removeRotator();}).mouseout(function(){if($('#featureNav li').length>1)
theRotator();});if($('#featureNav li').length>1)
theRotator();});var interval;function theRotator(){interval=setInterval('rotate()',5000);}
function removeRotator(){clearInterval(interval);}
function rotate(){var current=($('#featureNav li.on')?$('#featureNav li.on'):$('#featureNav li:first'));var next=((current.next().length)?((current.next().hasClass('on'))?$('#featureNav li:first'):current.next()):$('#featureNav li:first'));var nextID=next.attr('class');$('.featureMealInfo').hide();$('.lgImg').hide();$('.'+nextID+'').fadeIn(2000);current.removeClass('on');next.addClass('on');}
