$(document).ready(function(){
			
			
				windowWidth = (document.body.clientWidth) ? document.body.clientWidth : window.innerWidth;
				windowHeight = (document.body.clientHeight) ? document.body.clientHeight : window.innerHeight;
				
				container = $("<div id='interstitial'></div>").appendTo("body");
							
				$('<IFRAME SRC="/interstitial.htm" NORESIZE SCROLLING="NO" HSPACE="0" VSPACE="0" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" WIDTH="640" HEIGHT="480" allowTransparency="true">').appendTo(container).css('opacity',0).load(function(){
					$(container).css({
						width: '100%',
						height: windowHeight+'px'
					}).append("<div class='toolbar'><a class='textButton' href='#'>Close this Window &raquo;</a></div>");
					$("<div class='whiteout'></div>").css('height',windowHeight+'px').appendTo(container);	
					$("#interstitial div.whiteout").css('opacity',0).fadeTo('slow',.75);
					$("a.textButton").click(function(){
						$("div#interstitial").fadeTo("slow",0,function(){
							$(this).remove();
						});
						return false;
					});
					$(this).fadeTo("slow",1);
					
					//path = window.location.pathname;
					setTimeout("redirectSite('http://next.inman.com')", 10000);
					//setTimeout("redirectSite('http://next.inman.com"+path+"')", 10000);
					
					
				});
				
				
				
			
});


function redirectSite(url) {
	window.location = url;	
}
