function navMenu(pag){
	document.getElementById("m"+pag).style.color = "#36c"; //"#c06"; //"#036";
	document.getElementById("m"+pag).style.fontSize = "12px";
	//document.getElementById("m"+pag).style.fontWeight = "bold";
}


function showCategories(id){
	if(document.getElementById("tr-"+id).style.display == "none"){
		document.getElementById("tr-"+id).style.display = '';
	}else{
		document.getElementById("tr-"+id).style.display = "none";
	}
}


function navCategories(pag){
	document.getElementById("m-c"+pag).style.color = "#606";
	document.getElementById("m-c"+pag).style.fontWeight = "bold";
	document.getElementById("m-c"+pag).focus();
}


function stampa(){
	var a = window.open('','','width=800, height=600, scrollbars=yes');
	a.document.open("text/html");
	a.document.write(document.getElementById('divStampa').innerHTML);
	a.document.close();
	a.print();
	a.close();
}


function lingua(val){
   	document.getElementById('lingua').linguaSelezionata.value = val;
 	document.getElementById('lingua').submit();
}


//<![CDATA[
function load(nome, coordinate){
	nuoveCoordinate = coordinate.split("/");
	latitudine = nuoveCoordinate[0];
	longitudine = nuoveCoordinate[1];
	
	if (GBrowserIsCompatible()){
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GOverviewMapControl());
		map.setCenter(new GLatLng(latitudine, longitudine), 17);
		var icon1 = new GIcon();
		icon1.shadow = "images/mm_20_shadow.png";
		icon1.iconSize = new GSize(32, 22);
		icon1.shadowSize = new GSize(22, 20);
		icon1.iconAnchor = new GPoint(16, 11);
		icon1.infoWindowAnchor = new GPoint(5, 1);
		var marker = new GMarker(map.getCenter());
		GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml("<img src='immagini/header/logo-marphingroup_mappa.png' alt='' />");});
		map.addOverlay(marker);
		GEvent.trigger(marker, "click");
 	}
}
//]]>



