jQuery(document).ready(function()
{
	var blanketHeight = parseInt(jQuery("body").height())+parseInt(jQuery("body").css("margin-top"))+parseInt(jQuery("body").css("margin-bottom"));
	
	if(blanketHeight < jQuery(window).height())
		blanketHeight = jQuery(window).height();
	
	var adMarginTop = (parseInt(jQuery(window).height())-parseInt(jQuery("#blanket #ad").css("height")))/2
		
	jQuery("#blanket #ad").css("margin-top",""+adMarginTop+"px");
	jQuery("#blanket").css("width",""+jQuery(window).width()+"px");
	jQuery("#blanket").css("height",""+blanketHeight+"px");	
	jQuery("#blanket").fadeIn("normal");
	setTimeout(function(){jQuery("#blanket").fadeOut("normal");},300000);
	
	jQuery("#blanket #ad").click(function(){jQuery("#blanket").fadeOut("normal");});
});
