﻿function initMenu(){
$(" #menu ul ").css({display: "none"}); // Opera Fix
$(" #menu li").hover(function(){
		$(this).find('ul:first').slideDown(300);
		},function(){
		$(this).find('ul:first').slideUp(300);
		});
}
 $(document).ready(function(){					
	initMenu();
});

function openMenu()
{
    
}

function initTopMenu(){
$(" #topmenu ul ").css({display: "none"}); // Opera Fix
$(" #topmenu li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}
 $(document).ready(function(){					
	initTopMenu();
});

function initBar(id)
{
    $("#" + id + " .TabContent div").hide();
    $("#" + id + " .BarItem:first").addClass("BarHover");
	$("#" + id + " .TabContent div:first").show();
    
    $("#" + id + " .BarItem").mouseover(function(){
		    $("#" + id + " .BarItem").removeClass("BarHover").css("color", "#646464");
		    $(this).addClass("BarHover").css("color", "#0093ba");
		    $("#" + id + " .TabContent div").hide();
		    $("#" + id + " .TabContent div:eq(" + $("#" + id + " .BarItem").index(this) + ")").fadeIn("normal");
		});
}

//function settooltip() 
//{
//    $("#TopRightMenu .btnTooltip").hover(function(){
//        $(this).children('.tooltip').fadeIn("normal");
//    },
//    function(){
//        
//        $("#TopRightMenu .tooltip").hide();
//    }
//    );
//}

