﻿
    $(window).resize(function () {
        $('.centerDiv').css({
            position: 'absolute',
            left: ($(window).width() - $('.centerDiv').outerWidth()) / 2,
            top: ($(window).height() - $('.centerDiv').outerHeight()) / 2
        });
        $('.footerLinks').css({
            position: 'absolute',
            left: ($(window).width() - $('.footerLinks').outerWidth()) / 2,
            top: ($(window).height() - $('.footerLinks').outerHeight()) - 11 + "px"
        });
        var pos = $(".centerDiv").offset();
        $(".MainMenu").css({ left: pos.left + 2 + "px", top: pos.top - 20 - 28 - 1 + "px" }); //submenu - self - spacing
        $(".BackToGrolsch").css({ left: pos.left + $(".MainMenu").width() + 1 + "px", top: pos.top - 20 - 28 - 1 + "px" }); //submenu - self - spacing
        $(".SubMenu").css({ left: pos.left + 2 + "px", top: pos.top - 19 + "px" }); //self
        $(".geenDruppel").css({
            left: "5px",
            top: $(window).height() - 119 - 5 + "px"
        });
        $(".grolschLogo").css({
            left: "0",
            top: "0"
        });
    });

