﻿
function popupSplashPage() {


    //Get the A tag
    var id = document.getElementById('dialog');

    //Get the screen height and width
    var maskHeight = '100%';
    var maskWidth = '100%';

    //Set heigth and width to mask to fill up the whole screen
    $('#mask').css({ 'width': maskWidth, 'height': maskHeight });

    //transition effect		
    $('#mask').fadeIn(1000);
    $('#mask').fadeTo("slow", 0.8);

    //Get the window height and width
    var winH = $(window).height();
    var winW = $(window).width();   
    //Set the popup window to center
    $(id).css('margin-top', Math.floor((winH / 2) - (198)));
    $(id).css('left',Math.floor(winW / 2 - 408));

    //transition effect
    $(id).fadeIn(2000);

    $('.window').show();

}

function ClosePopUp() {   
        $('#mask').hide();
        $('.window').hide();
        return false;

    }


    function popupContactInfoPage() {


        //Get the A tag
        var id = document.getElementById('dialog1');

        //Get the screen height and width
        var maskHeight = '100%';
        var maskWidth = '100%';

        //Set heigth and width to mask to fill up the whole screen
        $('#mask').css({ 'width': maskWidth, 'height': maskHeight });

        //transition effect		
        $('#mask').fadeIn(1000);
        $('#mask').fadeTo("slow", 0.8);

        //Get the window height and width
        var winH = $(window).height();
        var winW = $(window).width();
        //Set the popup window to center
        $(id).css('margin-top', Math.floor((winH / 2) - (198)));
        $(id).css('left', Math.floor(winW / 2 - 408));

        //transition effect
        $(id).fadeIn(2000);

        $('.window1').show();

    }

    function ClosePopUp() {
        $('#mask').hide();
        $('.window').hide();
        return false;

    }
    function ClosePopUp1() {
        $('#mask').hide();
        $('.window1').hide();
        return false;

    }
    
