var $lu = jQuery.noConflict();
var popupLoaded;

$lu(document).ready(function() { 
    if ($lu('#popup').length > 0) {
        $lu('#overlay').css('height', $lu(document).height()+'px');
        $lu('#overlay').show();

        // Only need to resize in JS if class=manual.  Otherwise is fullscreen or % which is dealt with purely in CSS
        $lu('.manual').css('top', (($lu(window).height()/2)-($lu('#popup').height()/2))+'px');
        $lu('.manual').css('left', (($lu(document).width()/2)-($lu('#popup').width()/2))+'px');
        
        $lu('#popup').show();
        
        popupLoaded = true;
    }    
});
