﻿
$(document).ready(function() {
    GetRemainingWindowHeight()
    $(window).resize(function() {
        GetRemainingWindowHeight();
    });

    hs.fadeInOut = true;
});

function GetRemainingWindowHeight() {
    var windowRemainingHeight = ($(window).height() - 441) / 2;
    SetHeaderAndFooterHeight(windowRemainingHeight);
}

function SetHeaderAndFooterHeight(height) {
    $('.pnlHeaderWrapper').css('height', height);
    $('.pnlHeader').css('height', height);
    $('.pnlFooterWrapper').css('height', height);
}

function ShowStartMenu() {
    $('.pnlStartLinks').fadeIn('slow')
}

function HideStartMenu() {
    $('.pnlStartLinks').fadeOut('slow');
}

// Watermarks entfernen - Kontaktformular
$(document).ready(function() {
    CreateWatermark();
    $("form").each(function(idx, form) {
        $(form).submit(function() {
            $.Watermark.HideAll();
            setTimeout("$.Watermark.ShowAll()", 50);
        });
    });
});

function CreateWatermark() {
    $(".watermark").each(function(index) {
        $(this).Watermark($(this).attr("rel"));
    });
}


