// dim page

$(document).ready(function(){
		
    		$("#dim").css("height", $(document).height());
    		
// use this with something like <a class="alert" href="#" >Alert Me!</a> to activate via link instead of onload
//    		$(".alert").click(function(){
//    			$("#dim").fadeIn();
//    			return false;
//			});
			
    		$(window).load(function(){
    			$("#dim").fadeIn();
				// begin auto-close
				//.animate({opacity: 1.0}, 20000);
				//$("#dim").fadeOut('slow');
				// end auto-close
    			return false;
			});		
			
    		$(".close").click(function(){
    			$("#dim").fadeOut();
    			return false;
			});
			
		
		});
		
		$(window).bind("resize", function(){
		 	$("#dim").css("height", $(window).height());
		});