
var lock = false;

function doLock(){ lock = true; }
function doUnLock(){ lock = false; }
/*
jQuery.jFastMenu = function(id){

	$(id + ' ul li').hover(function(){
		

			$(this).find('ul:first').stop(true,true).fadeIn(150);
	},function(){
			
					$(this).find('ul:first').stop(true,true).fadeOut(100);
				
	});

}
       */


jQuery.menu = function(id){
    
    if (jQuery.browser.msie)
        if (parseInt(jQuery.browser.version) < 8)  
            $(id + ' li').css('z-index','11');
    
    $(id + ' li').hover(function(e){
        
        var elem = $(this).find('ul:first');
        
        if (elem != null) {
            $(elem).css('z-index','10');
             

            
            var width = $(this).find('a:first').width();
            var padding = 12;
            
/*            var temp_item = ('<span class="temp_item" style="display:none; font-size: 11px">'+ $(elem).find('a:first').html() +'</span>');
            $(temp_item).appendTo('body');
            var newwidth = $('span.temp_item').width() + 12;   */
         //   $('span.temp_item').remove();
                      

           $(elem).stop(true,true).fadeIn(250);           
        }
     
    },
    function(){
        $(this).find('ul:first').stop(true,true).fadeOut(150);
    });

}