// JavaScript Document
$(document).ready(function() {	
	/*
	$('.tabular').hover(function(event) {			
		//setTimeout("i++",700);
		$(this).animate({top: 0},200);
		//event.preventDefault();
	}
	, function() {				
		$(this).animate({top: 110},200);
	});
	*/
	$("#headerCurtain").fadeTo("fast",0);
	var config = {    
		sensitivity: 1, // number = sensitivity threshold (must be 1 or higher)    
		interval: 20, // number = milliseconds for onMouseOver polling interval    
		over: makeTall, // function = onMouseOver callback (REQUIRED)    
		timeout: 10, // number = milliseconds delay before onMouseOut    
		out: makeShort // function = onMouseOut callback (REQUIRED)    
	};
	$(".tabular").hoverIntent(config);
});

function makeTall()
{
	var currentId;
	currentId = $(this).attr("id");
	$(this).animate({top: 0},200);
	$("#headerCurtain").addClass(currentId+"BackImage");
	$("#headerCurtain").fadeTo(50,1);
}
function makeShort()
{
	var currentId;
	currentId = $(this).attr("id");
	$("#headerCurtain").fadeTo(50,0);
	$(this).animate({top: 110},200);
	$("#headerCurtain").removeClass(currentId+"BackImage");
}
