jQuery(document).ready(function(){

	/** Navigation **/
	jQuery("#navigation ul").superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 800,
		animation	: {opacity:"show",width:"show"},
		speed		: "normal"
	}).find(">li:has(ul)")
		.mouseover(function(){
			jQuery("ul", this).bgIframe({opacity:true});
		})
		.find("a")
			.focus(function(){
				jQuery("ul", $("#navigation>li:has(ul)")).bgIframe({opacity:false});
			});
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#navigation li ul:empty").remove();

	/** Remove border from last menu item **/
	jQuery("#navigation ul >li:last-child").css("border","none");

	/** Apply the png fix for IE6 **/
	jQuery(document).pngFix();
	
	/** Remove link outlines onclick **/
	jQuery("a").click(function(){
		this.blur();
	});

});