// JavaScript Document
$(document).ready(function(){
   $('.menu').bind('mouseover', function() {
		$(this).children(':first').addClass('attivo');
	});

   $('.menu').bind('mouseout', function() {
		$(this).children(':first').removeClass('attivo');
	});
   
	$('#calendario').appuntamenti();
/*   
	$(".menuSF").mouseover( function() { 
		$(this).addClass("attivo_"+$(this).html().replace(' ','_')); 
	});	
	$(".menuSF").mouseout( function() { 
		$(this).removeClass("attivo_"+$(this).html().replace(' ','_')); 
	});
*/	

	$(".jqColumn").vjustify();
	
	$('#iscriviti').verifica();


	if (navigator.appName == 'Netscape'){
		l = navigator.language;}
	else{
		l=navigator.systemLanguage;}
	
	u=document.URL;
	
	w=screen.width;
	h=screen.height;
	
	r= escape(document.referrer)
	
	info='?l=' + l  + '&u=' + u + '&w=' + w + '&h=' + h + '&r=' + r;

	$('body').append('<img src="/webware_o/status/count.php' + info + '"  style="display:none;" border=0 width=1>')
});


jQuery.fn.vjustify=function() {
    var maxHeight=0;
    this.each(function(){
        if (this.offsetHeight>maxHeight) {maxHeight=this.offsetHeight;}
    });
    this.each(function(){
        $(this).height(maxHeight + "px");
        if (this.offsetHeight>maxHeight) {
            $(this).height((maxHeight-(this.offsetHeight-maxHeight))+"px");
        }
    });
};