<!--
	if (window.addEventListener) {
		window.addEventListener('load', start, false);
	} else if (window.attachEvent) {
		window.attachEvent('onload', start);
	} else if (document.getElementById) {
		window.onload = start;
	};
	
	function GetE(elementId) {
		if (document.getElementById) {
			return document.getElementById(elementId);
		} else if (document.all) {
			return document.all[elementId];
		} else if (document.layers) {
			return document.layers[elementId];
		};
	};
	function start() {
		for (var i=0; i<document.links.length; i++) {
			if (document.links[i].className == 'blank') { document.links[i].target = '_blank'; };
		};
		
		initializemarquee();
		
		if (GetE('tabcont1')) {
			var tabber = new Yetii('tabcont1');
				tabber.init();
		};
	};
	function CheckFormSearch() {
		form = document.getElementById('frmSearch')
		re = /\s+$|^\s+/g;
		
		form.cerca.value = form.cerca.value.replace(re, '');
		
		if (form.cerca.value.length < 3) {
			window.alert('E\' necessario inserire almeno tre caratteri');
			form.cerca.focus();
			return false;
		};
		return true;
	};
	function CheckFormSearchAdvanced() {
		form = document.getElementById('frmSearchAdvanced')
		re = /\s+$|^\s+/g;
		
		form.cerca.value = form.cerca.value.replace(re, '');
		
		if (form.cerca.value.length < 3) {
			window.alert('E\' necessario inserire almeno tre caratteri');
			form.cerca.focus();
			return false;
		};
	};
	function imposeMaxLength(Object, MaxLen) {
		return (Object.value.length <= MaxLen);
	};
	
/*****************************************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
*****************************************************************/
	var delayb4scroll	= 500;
	var marqueespeed	= 1;
	var pauseit			= 1;
	var copyspeed		= marqueespeed
	var pausespeed		= (pauseit == 0) ? copyspeed : 0;
	var actualheight	= '';
	
	function scrollmarquee()		{ if (parseInt(cross_marquee.style.top) > (actualheight * (-1) + 8)) { cross_marquee.style.top = parseInt(cross_marquee.style.top) - copyspeed + 'px'; } else { cross_marquee.style.top = parseInt(marqueeheight) + 8 + 'px'; }; };
	function initializemarquee()	{ if (GetE('vmarquee')) { cross_marquee = GetE('vmarquee'); cross_marquee.style.top = 0; marqueeheight = GetE('marqueecontainer').offsetHeight; actualheight = cross_marquee.offsetHeight; if (window.opera || navigator.userAgent.indexOf('Netscape/7')!=-1) { cross_marquee.style.height = marqueeheight + 'px'; cross_marquee.style.overflow = 'scroll'; return; }; setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll); }; };

/*****************************************************************
*  Yetii - Yetii - Yet (E)Another Tab Interface Implementation   *
*  http://www.kminek.pl/lab/yetii/                               *
*  (c) 2007 Grzegorz Wojcik                                      *
*****************************************************************/
	function Yetii(obj,active) {
		this.active			= (active) ? active : 1,
		this.timeout		= null,
		this.tabclass		= 'tab',
		this.activeclass	= 'active',
		this.getTabs		= function() { var retnode = []; var elem = GetE(obj).childNodes; for (var i = 0; i < elem.length; i++) { if (elem[i].className == this.tabclass) { retnode[retnode.length]=elem[i]; }; }; return retnode; },
		this.links			= GetE(obj + '-nav').getElementsByTagName('a'),
		this.tabs			= this.getTabs();
		this.show			= function(number) { for (var i = 0; i < this.tabs.length; i++) { this.tabs[i].style.display = ((i+1)==number) ? 'block' : 'none'; this.links[i].className = ((i+1)==number) ? this.activeclass : ''; }; },
		this.rotate			= function(interval) { this.show(this.active); this.active++; if (this.active > this.tabs.length) this.active = 1; var self = this;  this.timeout = setTimeout(function(){self.rotate(interval);}, interval*1000); },
		this.init			= function(interval) { this.show(this.active); var self = this; for (var i = 0; i < this.links.length; i++) { this.links[i].customindex = i+1; this.links[i].onclick = function(){ if (self.timeout) clearTimeout(self.timeout); self.show(this.customindex); return false; }; } if (interval) this.rotate(interval); };
	};
//-->