google.setOnLoadCallback(function() {

    
    $("#top-nav>li").hover(
        function() { 
            $(this).addClass("sfHover");
            $(this).find("img").attr("src", $(this).find("img").attr("src").replace("_up.gif", "_over.gif"));
		},
        function() { 
            $(this).removeClass("sfHover");
			if ($(this).find("img").attr("status")!=1)
            $(this).find("img").attr("src", $(this).find("img").attr("src").replace("_over.gif", "_up.gif"));
         }
    );

	height=getWindowHeight();
	if (height <615)
	reduce=49;
	else
	reduce=89;
    $("#content").height(getWindowHeight() - reduce);
   $(window).resize(function() {
		//$("#content").height(getWindowHeight() - reduce);
    });

});



function getWindowHeight() {
    var windowHeight = 0;
    if (typeof(window.innerHeight) == 'number') {
        windowHeight = window.innerHeight;
    }
    else {
        if (document.documentElement && document.documentElement.clientHeight) {
            windowHeight = document.documentElement.clientHeight;
        }
        else {
            if (document.body && document.body.clientHeight) {
                windowHeight = document.body.clientHeight;
            }
        }
    }
    return windowHeight;
}
