// Cufon
Cufon.replace('.memphis', { fontFamily: 'Memphis', hover: true });
Cufon.replace('.extranet .generic_right h2', { fontFamily: 'Memphis', hover: true });
Cufon.replace('.memphisreg, .utils a', { fontFamily: 'MemphisReg', hover: true });
Cufon.replace('.serifa', { fontFamily: 'Serifa', hover: true });
Cufon.replace('#what_game li a, #what_game a.extra strong', { fontFamily: 'Serifa', hover: true });
Cufon.replace('#subnav a.active', { fontFamily: 'Serifa' });
Cufon.replace('#subnav a', { fontFamily: 'Serifa', textShadow: '0px 1px #a51419', hover: { textShadow: '0px 1px #000000' } });
Cufon.replace('#subnav a.active', { fontFamily: 'Serifa', textShadow: '0px 1px #000', hover: { textShadow: '0px 1px #000000' } });

$(document).ready(function() {

	// Fade Button on Hover
	$('.hoverFade').removeClass('noJs').append('<span class="hover"></span>').each(function () {
        var $span = $('> span.hover', this).css('opacity', 0);
        $(this).hover(
            function() { $span.stop().fadeTo(350, 1); },
         	function() { $span.stop().fadeTo(350, 0); }
        );
	});
	
	
	// Difference Landing, Click anywhere link
	$(".list_difference_item").each(function() {
		var gotoURL = $("a.read",this).attr("href");
		
		$(this).click(function() {
			window.location = gotoURL;
		});
	});
	
	
	// Drop Down
	if(!($.browser.msie)) {
		$("ul.mainnav ul.dropnav").css("opacity",0);
	}
	
	$("#nav li").hover(
		function() {
			if($("ul.dropnav",this).length) {
				$("a",this).addClass("active");
				if($.browser.msie) {
					$("ul.dropnav",this).stop().show().animate({
						height: "166px",
						top: "40px"
					}, 300);
				} else {
					$("ul.dropnav",this).stop().animate({
						opacity: 1,
						height: "166px",
						top: "40px"
					}, 300);
				}
			}
		},
		function() {
			if($("ul.dropnav",this).length) {
				$("a",this).removeClass("active");
				if($.browser.msie) {
					$("ul.dropnav",this).stop().show().animate({
						height: "0px",
						top: "30px"
					}, 300);
				} else {
					$("ul.dropnav",this).stop().animate({
						opacity: 0,
						height: "0px",
						top: "30px"
					}, 300);
				}
			}
		}
	);

	
});
