var Menu = new Class({
    initialize: function()
    {
        var m = $('top_menu').getChildren('li');
        if(Browser.Engine.trident && Browser.Engine.version == 4 )
            var add = 80;
        else
            var add = 33;

        m.each(function(e){
            e.addEvent('mouseenter', function(){
                var count = this.getProperty('class').split('_')[1] * 38 + add;
                //var id = this.getProperty('id');
                //var o = $(id).getChildren()[1].getChildren();
               // var count = this.getChildren()[1];//.childNodes.length * 38 + 33;
                //
              //  var a = this.getChildren()[1].childNodes[0].class;
                //alert(count.childNodes[1]);
                //alert(o);
                //;


                $('top_menu').set('style','height: '+count+'px !important; height: '+count+'px;');
           //$('top_menu').setProperty('style','height: '+count+'px !important; height: '+count+'px;');
          // Element.setProperty($('top_menu'), 'style','height: '+count+'px !important; height: '+count+'px;' );
           //     $('top_menu').setStyle('style', count+'px');
            });

           e.addEvent('mouseleave', function(){
               $('top_menu').set('style','height: '+add+'px !important; height: '+add+'px;');
            });
        });
    }
});
