try {
	document.execCommand("BackgroundImageCache",false,true);
} catch(e) {
	// NOOP
}

$(document).ready(function(){
	$("ul.nav").superfish({
		hoverClass	: "sfHover",
		currentClass	: "overideThisToUse", /*new to Superfish v1.2a*/
		delay		: 800,
		animation	: {opacity:"show"},
		speed		: "fast"
	});
});

$(function() {
	$('.language li a').mouseover(function() {
		$(this.parentNode).css('background','#6e7074');
	}).mouseout(function() {
		$(this.parentNode).css('background','none');
	});
	$('.em').each(function() {
		var addr = this.innerHTML
			.replace(/\+\+\+/g,"@")
			.replace(/\+\+/g,".")
			.replace(/\+/g,"");
		this.innerHTML = '<a href="mailto:' + addr + '">' + addr + '</a>';
		this.style.display = "inline";
	});
	$('.fgbtn-img').mouseover(function() {
		$(this.previousSibling).show();
	});
	$('.fgbtn').hover(function() {
		 // NOOP
	},function() {
		$(this).find('.fgbtn-bgl').hide();
	});
});
