$(document).ready(function(){

	FLIR.init( { path: '/facelift-1.2/' } );
	//FLIR.auto(); 

	// Or, you can pass an array of selectors to the auto function to be replaced.
	//FLIR.auto( [ 'h1', 'h2', 'h3.special', 'strong#important' ] );
	//FLIR.auto( [ 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'a' ] );
	FLIR.replace('div#nav-menu li', new FLIRStyle({ mode:'wrap' }));
	FLIR.replace('h1', new FLIRStyle({ mode:'wrap' }));
	FLIR.replace('h2', new FLIRStyle({ mode:'wrap' }));
	FLIR.replace('h3', new FLIRStyle({ mode:'wrap' }));
	FLIR.replace('h4', new FLIRStyle({ mode:'wrap' }));
	FLIR.replace('h5', new FLIRStyle({ mode:'wrap' }));
	FLIR.replace('h6', new FLIRStyle({ mode:'wrap' }));
	
	var parent_position = $("#nav-menu ul ul").parent().position();
	if (parent_position) {
		$("#nav-menu ul ul").css('left', parent_position.left);
		$("#nav-menu ul ul").css('top', parent_position.top + 25);
	}
	
	/*var container_bottom = $("#container_bottom").position();
	var subsection = $("#subsection").position();
	if (container_bottom) {
		//$("#subsection").fadeOut('slow');
		$("#subsection").css('height', container_bottom.top - 180);
		$("#subsection").after('<div id="subsectionfix"></div>');
		$("#subsectionfix").css('top', container_bottom.top - 9);
		$("#subsectionfix").css('left', subsection.left);
		//alert(container_bottom.left);
		//alert(container_bottom.top);
	}*/
	
	
});