// initialize the jquery code
 $(document).ready(function(){
//close all the content divs on page load
$('.menu h5').sifr({
font: 'edwardian',
path: '/flash'
});

$('h5').sifr({
font: 'edwardian',
path: '/flash'
});

$('#all-day-menu').hide();
$('#gourmet-menu').hide();

// regular toggle with speed of 'slow'
$('#toggleSlow').click(function(){
$('.mover').toggle('slow');
});

$('a.music').click(function() {
window.document.fm_xspf_jukebox_2.stopTrack();
});

});
 
 
$(function() {
//$('#menu-gallery a').tooltip({
//showURL: false,
//track: true,
//delay: 0,
//fixPNG: true,
//extraClass: "pretty"
//});
//
//$('#vertical-ribbon a').tooltip({
//showURL: false,
//track: true,
//delay: 0,
//fixPNG: true,
//extraClass: "pretty2"
//});
//
//$('#ribbon a').tooltip({
//showURL: false,
//track: true,
//delay: 0,
//fixPNG: true,
//extraClass: "pretty2"
//});


// Benefits page stuff


//


$('#footer-text').defuscate();
$('.email').defuscate();

$('#fade').innerfade({ animationtype: 'fade', speed: 1000, timeout: 3000, type: 'sequence', containerheight: '280px' }); } );



Shadowbox.loadSkin('classic', '/css/skins'); // use the "classic" skin

window.onload = function(){
	
	var options = {
        overlayOpacity:     '0'
    };


    Shadowbox.init(options);

    // open a welcome message as soon as the window loads

if (show_event == 'friday') {
    Shadowbox.open({
        content:    '/posters/poster-narrow.asp?img=latin.jpg',
        player:     "iframe",
        width:      370,
        height:     849
    });

}

if (show_event == 'recital-menu') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=recital-menu-eng.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'recital-menu-es') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=recital-menu-span.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'anniversary-menu') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=anniversary-menu.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'anniversary-menu-es') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=anniversary-menu-es.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'anniversary') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=anniversary.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'bubbly-bites') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=bubbly-bites.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'anniversary-es') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=anniversary-es.jpg',
        player:     "iframe",
        width:      600,
        height:     1200
    });

}

if (show_event == 'fabfav-en') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=fab-favourites-en-1.jpg',
        player:     "iframe",
        width:      600,
        height:     849
    });

}

if (show_event == 'fabfav-es') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=fab-favourites-es-1.jpg',
        player:     "iframe",
        width:      600,
        height:     849
    });

}

if (show_event == 'sundays-en') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=sunday-lunch.jpg',
        player:     "iframe",
        width:      600,
        height:     849
    });

}

if (show_event == 'sundays-es') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=sunday-lunch-es.jpg',
        player:     "iframe",
        width:      600,
        height:     849
    });

}

if (show_event == 'wine-pres') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=wine-pres.jpg',
        player:     "iframe",
        width:      600,
        height:     849
    });

}

if (show_event == 'wine-pres-es') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=wine-pres-es.jpg',
        player:     "iframe",
        width:      600,
        height:     849
    });

}

if (show_event == 'saturday') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=snss.jpg',
        player:     "iframe",
        width:      616,
        height:     849
    });

}


if (show_event == 'valentines') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=valentines2010.jpg',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}


if (show_event == 'new-favourites') {
    Shadowbox.open({
        content:    '/menus/favourites-en-1.asp',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}

if (show_event == 'fab-faves') {
    Shadowbox.open({
        content:    '/menus/fab-favourites-en-1.asp',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}

if (show_event == 'fab-faves-es') {
    Shadowbox.open({
        content:    '/menus/fab-favourites-es-1.asp',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}

if (show_event == 'fab-faves-eve') {
    Shadowbox.open({
        content:    '/menus/favourites-en-1.asp',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}

if (show_event == 'new-gourmet') {
    Shadowbox.open({
        content:    '/menus/gourmet.asp',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}

if (show_event == 'nyd') {
    Shadowbox.open({
        content:    '/menus/christmas/new-years-day.asp',
        player:     "iframe",
        width:      616,
        height:     1200
    });

}


if (show_event == 'sunday-best') {
    Shadowbox.open({
        content:    '/posters/poster.asp?img=sunday-best.jpg',
        player:     "iframe",
        width:      616,
        height:     849
    });

}

if (show_event == 'oasis') {
    Shadowbox.open({
        content:    '/menus/oasis-en.asp',
        player:     "iframe",
        width:      616,
        height:     849
    });

}

if (show_event == 'oasis-es') {
    Shadowbox.open({
        content:    '/menus/oasis-es.asp',
        player:     "iframe",
        width:      616,
        height:     849
    });

}


};
 
