﻿// Função para alterar o tamanho da DIV para o tamanho do documento
function ResizeDivFullScreen(divID) {
    $("#" + divID).css('top', 0);
    $("#" + divID).css('left', 0);
    $("#" + divID).css('height', $(document).height());
    $("#" + divID).css('width', $(document).width());
}

// Função para centrar uma DIV no meio do ecrã (JQuery)
function CenterFixedDiv(divID) {
    var div = document.getElementById(divID);
    if (div) {
        $(div).css('top', ($(window).height() / 2) - ($(div).height() / 2));
        $(div).css('left', ($(window).width() / 2) - ($(div).width() / 2));
    }
}
