$(document).ready(function(){
	/**$("#wrapper").append("<div id='popupdiv'><a id='ticket_link' href='http://sa1.seatadvisor.com/sabo/servlets/EventSearch?presenter=BGCO&event=BEATBGBP' target='_blank'></a><a href='#' id='close_pop'>Close</a></div>");
	
	var css = {
		'background' : 'url("/images/beatlespopup.gif")',
		'width' : '412px',
		'height' : '322px'
	};
	$('#popupdiv').css(css).center();
	
	css = {
		'display' : 'block',
		'width' : '57px',
		'height' : '13px',
		'position': 'absolute',
		'top' : '10px',
		'left' : '350px',
		'color' : '#9ad721'
	};
	
	$('#close_pop').css(css);
	$('#close_pop').click(function(){
		$('#popupdiv').remove();
		return false;
	});
	
	css = {
		'display' : 'block',
		'width' : '291px',
		'height' : '314px',
		'position': 'absolute',
		'top' : '0px',
		'left' : '5px'
	};
	
	$('#ticket_link').css(css);**/
	
});

jQuery.fn.center = function (absolute) {
	return this.each(function () {
		var t = jQuery(this);

		t.css({
			position:	absolute ? 'absolute' : 'fixed', 
			left:		'50%', 
			top:		'50%', 
			zIndex:		'99'
		}).css({
			marginLeft:	'-' + (t.outerWidth() / 2) + 'px', 
			marginTop:	'-' + (t.outerHeight() / 2) + 'px'
		});

		if (absolute) {
			t.css({
				marginTop:	parseInt(t.css('marginTop'), 10) + jQuery(window).scrollTop(), 
				marginLeft:	parseInt(t.css('marginLeft'), 10) + jQuery(window).scrollLeft()
			});
		}
	});
};
