var simpleLightbox = {
	current: null,
	
	show: function(el) {
		simpleLightbox.current = el;
		$('body').append('<div id="lightboxbg"></div>');
		var bg = $('#lightboxbg');
		bg.css({
			opacity: 0.8,
			zIndex: 1,
			height: $(document).height() + 'px'
		});
		el.css({
			display: 'block',
			zIndex: 1000,
			left: ($(window).width() - el.width()) / 2
		});
		
		// close
		bg.click(simpleLightbox.hide);
	},
	
	hide: function() {
		$('#lightboxbg').remove();
		if(simpleLightbox.current != null) {
			simpleLightbox.current.css('display', 'none');
			simpleLightbox.current = null;
		}
		return false;
	}
};
