jQuery.noConflict();

(function($){
	$(function(){ 

		// Séparateurs menu
		$('#nav li')
			.prepend('<span class="navsep"></span>')
			.filter(':has(ul)')
			.each(function() {
				if($(this).hasClass('active')) {
					$(" > ul", this).show();
				}
			})
			.children('a')
			.click(function() {
				$('#nav ul ul').hide();
				if ($.browser.msie && $.browser.version.substr(0,1)<9) {
					$(" ~ ul", this).show();
				}
				else {
					$(" ~ ul", this).fadeTo(200, 1);
				}
				return false;
			});
		
		// Cufon
		Cufon.replace('h1', { fontFamily: 'Rockwell Condensed Bold',color: '-linear-gradient(black, black, 0.8=rgb(126,124,137),rgb(126,124,137))'});
	});
})(jQuery);
/*
function resize(el) {
	if($(window).height() > $(window).height()) {
		var newheight = $(window).height()-$(el).offset().top;
	}
	else {
		var newheight = $(document).height()-$(el).offset().top;
	}
	
	$(el).height(newheight);	
}*/
