$(document).ready(function(){
	
	$.pir.options.php="/pir.php";
	$("h2").pir({font: "Chunkfive.ttf"});
	
	$(".lamp").lavaLamp({ fx: "easeInOutBack", speed: 400 });
	
	$("#header h3").everyTime(5000,function(i) {
						$(this).animate({ color: "#efcd9e" }, 2000).animate({ color: "#ffffff" }, 3000);
					});
	
	$("#highlight .col p").fadeTo("slow", 0.0);
	
	var config = {    
	     sensitivity: 50, // number = sensitivity threshold (must be 1 or higher)    
	     interval: 200, // number = milliseconds for onMouseOver polling interval    
	     over: makeTall, // function = onMouseOver callback (REQUIRED)    
	     timeout: 500, // number = milliseconds delay before onMouseOut    
	     out: makeShort // function = onMouseOut callback (REQUIRED)    
	};
	
	function makeTall(){  $(this).find('p').fadeTo(1000, 1.0);					
	}
	function makeShort(){ $(this).find('p').fadeTo(1000, 0.0);
	}

	$("#highlight .col").hoverIntent( config );
					
});

