var principale = Class.create();
principale.prototype = {
	initialize: function() {
		this.agente = navigator.userAgent.toLowerCase();
		this.gestisciBrowser();
	},

	gestisciBrowser: function() {
		if (this.agente.indexOf("safari") != -1) {
			this.browser = "safari";
		} else if (this.agente.indexOf("camino") != -1) {
			this.browser = "camino";
		} else if (this.agente.indexOf("firefox") != -1) {
			this.browser = "firefox";
		}
	},
		
	gestisciComandi: function() {
		$$('a.comandi').each(function(ancora) {
			ancora.observe('mouseover', function(evento) {			
				if (ancora.hasClassName('attivo')) {
					new Tip(ancora, ancora.rel, {
						title: ancora.innerHTML,
						className: 'tipAnnuncio',
						delay: 0.5
					});
				}	
			});
		});
	}
}