
$(document).ready(function() { 
	
	$('#adv-text').fadeIn(2000, function(){
        
        $("#adv-text div").animate(
        {
            height: 'toggle'
        }, 2000, function() {
            
        }).show();
        
//            $("#adv-text").ticker({
//                cursorList:  " ",
//                rate:        10,
//                delay:       4000
//            }).trigger("play");
    });
    
    $('#restaurantBoxList').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
    
   $('#slide').slidy({
        animation:  'fade',
        children:   'a',
        menu:       true,
        pause:      true,
        speed:      400,
        time:       4000,
        height:     428,
        width:      979
    });
    
    $('#mealBox').slidy({
        animation:  'fade',
        children:   'li',
        menu:       false,
        pause:      false,
        speed:      400,
        time:       4000,
        height:     233,
        width:      333
    });
    
    function rand ( n ){
      return ( Math.floor ( Math.random ( ) * n + 1 ) );
    }
    
      
    $('#footerFlash').flash({
        swf: '/frontend/swf/'+ rand(2) +'.swf',
        width: 323,
        height: 233,
        wmode: 'transparent'
    });
    
});

