var Lightbox = {
	show : function()
	{
		var elem=jQuery('#lightbox');
		elem.parent(this).attr('style','display:block');
		var top = (document.documentElement.clientHeight - elem.attr('offsetHeight')) / 2;
		var left = (document.documentElement.clientWidth - elem.attr('offsetWidth')) / 2;
		if (top < 0) top = 0;
		if (left < 0) left = 0;
		elem.css({'left' : left + 'px','top' : top + 'px'});
		if(box) { box.css('top',jQuery(document).scrollTop()+'px') }
	},
	hide:function()
	{
		jQuery('#lightbox').parent(this).attr('style','display:none')
	}
};