/**
 * Le QG, café-concert à Saint-Lô et Cherbourg (50).
 * Romain Huet - http://romainhuet.com/
 */

var QG = {};

QG.splash = function() {
    if ($('#splash').length > 0 && $('#layer').length > 0) {
        $(document.body).css('overflow', 'hidden');
        setTimeout(function() {
            $('#splash').fadeTo(1500, 0, function() {
                $('#splash').hide();
                $('#layer').fadeTo(1500, 0, function() {
                    $('#layer').hide();
                    $(document.body).css('overflow', 'visible');
                });
            });
        }, 2000);
    }
}

$(document).ready(function() {
    QG.splash();
});
