/*
		BEGIN code for lightbox function that can be called
	*/
	$.lightbox = function (a) {
		var c = '';
		if (typeof(a) == 'string') c = a;
		var o = {
			height: '400',
			width: '600',
			content: c,
			modalcss: {
				background: '#000000',
				filter: 'alpha(opacity=30)',
				opacity: .3
			},
			wincss: {
				background: '#FFFFFF',
				border: '1px solid #000000'
			},
			closeboxcss: {
				background: '#a0a0a0',
				border: '1px solid #000000',
				display: 'inline',
				padding: '0px 5px 2px 5px',
				'-moz-border-radius': '3px',
				'-webkit-border-radius': '3px',
				'border-radius': '3px'
			}
		};
		$.extend(o, a);
		$(document.body).css('overflow', 'hidden');
		var b = function () {
			$(d).remove();
			$(f).remove();
			$(window).unbind('resize scroll', g);
			$(document.body).css('overflow', '')
		};
		var d = document.createElement('div');
		$(d).css($.extend(o.modalcss, {
			position: 'absolute',
			top: $(document).scrollTop() + 'px',
			left: $(document).scrollLeft() + 'px',
			height: $(window).height() + 'px',
			width: $(window).width() + 'px'
		})).click(b).appendTo(document.body);
		var e = document.createElement('div');
		$(e).css($.extend(o.closeboxcss, {
			position: 'absolute',
			cursor: 'pointer',
			top: '-16px',
			left: (o.width - 30) + 'px'
		})).html('close').click(b).attr('id', 'closeButton');
		var f = document.createElement('div');
		$(f).css($.extend(o.wincss, {
			position: 'absolute',
			top: ($(document).scrollTop() + ($(window).height() - o.height) / 2) + 'px',
			left: ($(document).scrollLeft() + ($(window).width() - o.width) / 2) + 'px',
			height: o.height + 'px',
			width: o.width + 'px'
		})).html(o.content).prepend(e).appendTo(document.body);
		var g = function () {
			$(f).css({
				top: ($(document).scrollTop() + ($(this).height() - o.height) / 2) + 'px',
				left: ($(document).scrollLeft() + ($(this).width() - o.width) / 2) + 'px'
			});
			$(d).css({
				top: $(document).scrollTop() + 'px',
				left: $(document).scrollLeft() + 'px',
				height: $(this).height() + 'px',
				width: $(this).width() + 'px'
			})
		};
		$(window).bind('resize scroll', g)
	};
	/*
		END code for lightbox function that can be called
	*/