var Site = function(){
	
    return {
    	
        init : function() {
    		this.verticalAligner();
    		
			// Use this example, or...
			$('a[rel=group]').lightBox(); // Select all links that contains lightbox in the attribute rel
			// This, or...
			//$('#gallery a').lightBox(); // Select all links in object with gallery ID
			// This, or...
			//$('a.lightbox').lightBox(); // Select all links with lightbox class
			// This, or...
			//$('a').lightBox(); // Select all links in the page
			// ... The possibility are many. Use your creative or choose one in the examples above
			
    		//this.initPhotosFancybox();
        },
        
        initPhotosFancybox : function() {
			$("a[rel=group]").fancybox({
				'titleShow'		: false,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
        },
        
        verticalAligner : function() {
        	var browserHeight = $(window).height();
        	var wrapperHeight = $("div[class=wrapper]").height();
        	if (browserHeight > wrapperHeight) {
        		var marginTop = (browserHeight - wrapperHeight) / 2;
        		$("div[class=wrapper]").css('margin-top', marginTop+'px');
        	}
        	setTimeout('Site.verticalAligner()', 10);
        }
        
    };
    
}();

$(document).ready(function(){
	Site.init();
});
