
// facelift image replacement
FLIR.init( { path: 'scms/designs/schilcherhof/facelift/' } );
FLIR.replace( ['h1','h2', 'h3', 'h4', 'h5', 'h6'], new FLIRStyle({mode: 'wrap', realFontHeight: true}))



// initialize hover animation
$('#mainnavigation li.notonpath').css("padding-top", "5px").css("height", "28px").css("overflow", "hidden");
$('#mainnavigation li.notonpath').bind("mouseenter", function() {
	// hover effect
	var caption = $("img", this).attr("alt");
	$("img", this).attr("src", "scms/designs/schilcherhof/images/tabs/rendertab.php?state=h&caption=" + caption);
	$(this).animate({ 
			paddingTop: "2px",
			height: "33px"
		}, 100, "swing" );
			
		
}).each(function() {
	// image preloading
	var caption = $("img", this).attr("alt");
	jQuery("<img>").attr("src", "scms/designs/schilcherhof/images/tabs/rendertab.php?state=h&caption=" + caption);
}); 
		
$('#mainnavigation li.notonpath').bind("mouseleave", function() {
	// de-hover effect
	var caption = $("img", this).attr("alt");
	$("img", this).attr("src", "scms/designs/schilcherhof/images/tabs/rendertab.php?state=i&caption=" + caption);
	$(this).animate({ 
			paddingTop: "5px",
			height: "28px"
		}, 100, "swing" );
		
});