$(document).ready(function () {
    var config = {
        sensitivity: 7,
        interval: 200,
        over: showSub,
        timeout: 500,
        out: hideSub
    };
    function showSub() {
        $(this).find(".sub").stop().css('zIndex', '9999');
        if (!$.browser.msie && $.browser.version.substr(0, 1) != 6) {
            $(this).find(".sub").fadeTo(100, 1).show()
        } else {
            $(this).find(".sub").show()
        }
        $(this).find(".sub").height($(this).find(".sub ul").outerHeight())
    }
    function hideSub() {
        $(this).find(".sub").stop();
        if (!$.browser.msie && $.browser.version.substr(0, 1) != 6) {
            $(this).find(".sub").fadeTo(100, 0, function () {
                $(this).hide()
            })
        } else {
            $(this).find(".sub").hide()
        }
    }
    $("#teams").hoverIntent(config);
	$('#header').corner("10px tr tl");
	$('#footer').corner("10px br bl");
	
});
