/*
 * These Javascript functions are general to the MZU site
 *
 * @author David Cantwell <david.cantwell@gmail.com>
 */

// -------------- LIGHT BOX FUNCTIONS -------------- //

function showLB(uwidth){

	LBoxContainer = '#lightBoxContainer';
	LBox = '#lightBox';

    documentHeight = ($(document).height());
    documentWidth = ($(document).width());
    windowHeight = ($(window).height());
    windowWidth = ($(window).width());

    $(LBox).css('opacity',0);
    $(LBoxContainer).css('opacity',0);


    $(LBox).css('display','block');
    $(LBoxContainer).css('display','block');

    $(LBoxContainer).css('width',documentWidth);
    $(LBoxContainer).css('height',documentHeight);

    nlcLeftPos = (windowWidth - uwidth) / 2;
    nlcTopPos = 200;
    // nlcTopPos = ((windowHeight - 100) / 2);
    $(LBox).css('left',nlcLeftPos);
    $(LBox).css('top',nlcTopPos);

    $(LBoxContainer).fadeTo(100,.5);
    $(LBox).fadeTo(300,1);
}

function hideLB(){
	LBoxContainer = '#lightBoxContainer';
	LBox = '#lightBox';

    $(LBox).css('display','none');
    $(LBoxContainer).css('display','none');
}
