/// <reference path="jquery-1.6.2.min.js" />

tvVest = {};

tvVest.topMenu = function (selectorTopMenu) {
    var private = {};
    var public = {};


    private.setAllEvents = function() {
        //on mouse over 1.level
        $(selectorTopMenu).find("> li > a").live("mouseover", function (event) {
            var item = this;
            //hide any previous sublevels
            $(selectorTopMenu).find("ul").fadeOut(200);
            //display this sublevel
            $(item).find("~ ul").fadeIn(600);
        });
    }
    
    //Init
    private.setAllEvents();


    //*** PUBLIC
    return public;
}
