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 initImageResize() {
		var wH = jQuery(window).height(),
		    wW = jQuery(window).width(),
		    newImgW = imgW,
			newImgH = imgH,
			fW = imgW / imgH,
			fH = imgH / imgW;
		if (wH < newImgH) {
				newImgH = wH;
				newImgW = newImgH * fW;
		}
		if (wW < newImgW) {
				newImgW = wW;
				newImgH = newImgW * fH;
		}
		jQuery('#splash-image').attr({
				width: newImgW,
				height: newImgH
		});
		jQuery('#page').css({
				padding: 0
		});
}
