DY=window.DY||{};
jQuery.noConflict();
jQuery(document).ready(function(){
    
    //gestione menu
    DY.larghezzaCompleta=jQuery('#menu').width();
    DY.numeroBottoni=jQuery('.btnMenu').length;
    DY.larghezaBottoniTotale=0;
    jQuery('.btnMenu').each(function(){
        DY.larghezaBottoniTotale+=jQuery(this).outerWidth(true);
    })
    DY.paddingBottoni=Math.floor((DY.larghezzaCompleta-(DY.larghezaBottoniTotale))/(DY.numeroBottoni)/2);
    jQuery('.btnMenu').each(function(index){

        /*if(index==0){
            jQuery(this).css({
                'paddingLeft':DY.paddingBottoni+'px'
            });
        }else if (index==(DY.numeroBottoni-1)){
            jQuery(this).css({
                'paddingRight':DY.paddingBottoni+'px'
                });
        }else{*/
            jQuery(this).css({
                'paddingLeft':DY.paddingBottoni+'px',
                'paddingRight':DY.paddingBottoni+'px'
            });
       // }
    });
 jQuery('.btnMenu').last().css('background-image','none'); 
 
    if(jQuery('.news-descrizione').length<1){
        jQuery('#news').hide();
    }
//fine gestione menu

});


