/**
 * @author lyykfi
**/
 
var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
var IE7 = false /*@cc_on || @_jscript_version == 5.7 @*/;
var gteIE7 = false /*@cc_on || @_jscript_version >= 5.7 @*/;
var isMSIE = /*@cc_on!@*/false;

//Cufon.replace('test', { fontFamily: 'test',hover: true });

$(document).ready(function(){
	var obj = null;
	var obj2 = null;

	function checkHover() {
		if (obj) {
			obj.find('.hover').fadeOut('fast');
		}
	}
	
	function checkHover2() {
		if (obj) {
			obj.find('.hover').fadeOut('fast');
		}
	}

	if($("#footerNavBox ul li ul").height() > $("#footerLayout").height() ) {
		var use_height = $("#footerNavBox ul li ul").height() - $("#footerLayout").height() + 20;
		$("#footerNavBox ul li ul:first").css("top","-"+use_height+"px");
	}

	$("#footerNavBox ul li").hover(
		function() {

        if ($(this).find(".hover").find("li").length > 20) {
            $(this).find(".hover").css("height","300px");
            $(this).find(".hover").animate({ top: "-300px"}, 900 );
        }

			obj = $(this);

		}, function() {
			obj = $(this);
		}
	);
});
