// functions for whole website
	
/*	function imgSize(name) {
		if ( self.screen ) {
			if ( screen.width < 1024 ) {
				origwidth = document[name].width;
				document[name].width = ( ( origwidth * screen.width ) / 1024 );
			}
		}
	}
	
	window.onload = function ImagesResize() {
		for ( x = 0; x < 20; x++ )
			if ( document['img'+x] )
				imgSize('img'+x);
	}*/
	
	function OpenCopyright() {
		window.open('http://www.nphitalia.org/contattaci/copyright.php','','toolbar=no,directories=no,location=no,status=yes,menubar=no,resizable=yes,scrollbars=no,width=600,height=350');
	}
	
	function OpenPrivacy() {
		window.open('http://www.nphitalia.org/contattaci/privacy.php','','toolbar=no,directories=no,location=no,status=yes,menubar=no,resizable=yes,scrollbars=no,width=600,height=450');
	}
	
	function OpenDisclaimer() {
		window.open('http://www.nphitalia.org/contattaci/disclaimer.php','','toolbar=no,directories=no,location=no,status=yes,menubar=no,resizable=yes,scrollbars=yes,width=600,height=400');
	}
	
	function ExpandAll() {
		for ( x = 1; x < 20; x++ ) {
			if ( document.getElementById('nr'+x) ) {
				document.getElementById('nr'+x).style.display = "inline";
				document.getElementById('href_nr'+x).style.fontWeight = "bold";
			}
		}
	}
	
	function CollapseAll() {
		for ( x = 1; x < 20; x++ ) {
			if ( document.getElementById('nr'+x) ) {
				document.getElementById('nr'+x).style.display = "none";
				document.getElementById('href_nr'+x).style.fontWeight = "normal";
			}
		}
	}
	
	function ExpandCollapse(nr) {
		if ( document.getElementById(nr).style.display == 'none' ) {
			CollapseAll();
			document.getElementById(nr).style.display = "inline";
			document.getElementById('href_'+nr).style.fontWeight = "bold";
		} else {
			document.getElementById(nr).style.display = "none";
			document.getElementById('href_'+nr).style.fontWeight = "normal";
		}
	}
