function createCookie(name, value, days) {
        if (days) {
                var date = new Date();
                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                var expires = "; expires=" + date.toGMTString();
        }
        else var expires = "";
        document.cookie = name + "=" + value + expires + "; path=/";
}

function readCookie(name) {
        var nameEQ = name + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
                var c = ca[i];
                while (c.charAt(0) == ' ') c = c.substring(1, c.length);
                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
        }
        return null;
}

function eraseCookie(name) {
        createCookie(name, "", -1);
}

$(document).ready(function () {
//        var xSplash = readCookie('splash');

//        if (($("#dnn_ctr_Login_pnlLogin").length != 1) && (!xSplash)) {
//                $('#wrapper').after('<div id="splash" style="display:none;"><img src="' + document.skinPath + '/images/splash.png" id="splashImg"/></div>');
//                $('#splash').css({ 'width': $(document).width(), 'height': $(document).height() });
//                hT = ($(document).height() - 358) / 2;
//                $('#splash img').css({ 'marginTop': hT + 'px' });
//                $('#splash').fadeIn('slow');
//                $(document).click(function () { $('#splash').fadeOut() });
//                createCookie('splash', 'true', 7);
//        }
});
