/*!
	Slimbox v2.02 - The ultimate lightweight Lightbox clone for jQuery
	(c) 2007-2009 Christophe Beyls <http://www.digitalia.be>
	MIT-style license.
*/

(function($) {

	// Variables globales de la classe	
	
	/*
		Initialization
	*/

	$(function() {
	});


	/*
		API
	*/

	// Open Slimbox with the specified parameters
	$.align = function() {
		
	};
	
	$.fn.align = function(object) {
		
		object = object || 'li';
		
		var StageWidth = $(this).width();
		var StageHeight = $(this).height();
		
		$( object, $(this) ).each( function( intIndex ){
		
	    	var width = $(this).width();
	    	var height = $(this).height();
	    	
	    	var left = ( StageWidth-width )/2;
	    	var top = ( StageHeight-height )/2;
	    	
	    	$(this).css( { 'top':top, 'left':left, 'position': 'absolute' } );
	    	
	    });
	};


	/*
		Internal functions
	*/


})(jQuery);
