<!--//--><![CDATA[//><!--
function getElementsByClass(node,searchClass,tag) {	var classElements = new Array();	if ( node == null )		node = document;	if ( tag == null )		tag = '*';	var els = node.getElementsByTagName(tag);	var elsLen = els.length;	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");	for (i = 0, j = 0; i < elsLen; i++) {		if ( pattern.test(els[i].className) ) {			classElements[j] = els[i];			j++;		}	}	return classElements;}
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	
}	

rollover = function(){
		
		if (document.getElementById) {
	var el = getElementsByClass(document,'rollover','*');
	for(i=0;i<el.length;i++)
	{
					el[i].onmouseover=function() {
						old = this.src;
						l = old.indexOf("out");
						t1 = old.substr(0,l);
						t2 = old.substr((l+3),(old.length-(l+3)));
						testo = t1+"over"+t2;
						this.old = old;
						this.src = testo
					}
					el[i].onmouseout=function() {
						this.src = this.old;
					}
	}
	
	}


}



maps = function() {
	if (document.getElementById) {
		navRoot2 = document.getElementById("mappa");
ii=0;
		
		for (i=0; i<navRoot2.childNodes.length; i++) {
			node = navRoot2.childNodes[i];
			if (node.nodeName=="LI") {
			/*ii++;
			im = document.createElement("img");
			imid="im"+ii;			im.id=imid;
			im.className='im';
			im.src="/i/dot.gif";
			aa=node.getElementsByTagName("a");
			an = aa[0];
			an.appendChild(im);
			*/				node.onmouseover=function() {
				id=this.className;
				map=document.getElementById('imm');
				flag=" "+id;
					map.className+=flag;
				}
				node.onmouseout=function() {
				id=this.className;
				flag=" "+id;
								map=document.getElementById('imm');
					map.className=map.className.replace(flag, "");
				}
			}
		}
	}
	}
	



/* window.onload=startList; */

function showmap(){
	if (document.getElementById) {
		m = document.getElementById("mappa");
		mt = document.getElementById("tmappa");
		if (!(m.i)){m.i=0;}
		if (m.i!=1)
		{
		m.style.display='block';
		mt.className="chiudi";
		m.i=1;
		}
		else
		{
		m.style.display='none';
		mt.className="apri";
		m.i=0;
		}
	}
}


//--><!]]>