jQuery(function ($) {
        $("[title!='']").attr('title', '');
        $("[alt!='']").attr('alt', '');

        $('#open-imprint').click(function () {
                if ($('#imprint-wrap').is(':hidden')) return showImprint();
                else return hideImprint();
        });
        $('#close-imprint').click(hideImprint);
});

function showImprint() {
        jQuery('#imprint-wrap').show().find('#imprint').animate({
                'bottom': '35px'
        }, 1500);
        return false;
}

function hideImprint() {
        jQuery('#imprint').animate({
                'bottom': '-670px'
        }, 1500, function () {
                jQuery('#imprint-wrap').hide();
        });
        return false;
}

function reAllocateImg() {
        var h = jQuery('body').innerHeight();
        var w = jQuery('body').innerWidth();
        var factorW = ((imgW * 100) / w) / 100;
        var factorH = ((imgH * 100) / h) / 100;
        if (factorH > factorW) {
                jQuery('#splash-image').attr({
                        'height' : (imgH / factorH),
                        'width' : (imgW / factorH)
                });
        }
        else {
                jQuery('#splash-image').attr({
                        'height' : (imgH / factorW),
                        'width' : (imgW / factorW)
                });
        }
}

