
 
	var Delay = 15;//Seconds after them clicking the link, the gateway vanishes. 
 
	function setupgateway()
	{
		var Left = $(window).width() /2;
		Left = Left - $('#gatewaydiv').width()/2;
 
		var Top = $(window).height() /2;
		Top = Top - $('#gatewaydiv').height()/2;
 
		$('#gatewaydiv').css('top', Top+'px').css('left', Left+'px').css('display', 'inline');

	}
 
	function removegateway()
	{
		$('#gatewaydiv').css('display', 'none');
		$('#gatewayDimmer').css('display','none');
	}
 
	$(document).ready(function()
	{
		$('.offerlink').click(function()
		{
			setTimeout('removegateway()', Delay*1000);
		});
 
		setupgateway();
	});
