function center_me(w,h){
	if(navigator.appName.indexOf('Explorer')+1){
		var win_width=w;
		var win_height=h;
	} else {
		var win_width=window.outerWidth;
		var win_height=window.outerHeight;
	}
	var pos_x=(screen.width-win_width)/2;
	var pos_y=(screen.height-win_height)/2;
	moveTo(pos_x,pos_y);
}

function open_flash(url,lingua){
	now=new Date();
	window.open('pop_up.php?flash='+url+'&lingua='+lingua,'catalogo'+now.getMinutes()+now.getMilliseconds(),'height=450,width=550,location=no,scrollbars=no,resizable=yes');
}

function open_pop(url){
	window.open(url,'pop','height=500, width=550, status=no, location=no, scrollbars=no, resizable=no');
}

function open_pop_alto(url){
	window.open(url,'pop','height=700, width=490, status=no, location=no, scrollbars=no, resizable=no');
}

function open_scroll(url){
	window.open(url,'pop','height=700, width=600, status=no, location=no, scrollbars=yes, resizable=no');
}

function RunIntro(){
	    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="98%">\n');
	    	document.write('<param name="movie" value="main.swf" />\n');
	    	document.write('<param name="quality" value="high" />\n');
	    	document.write('<param name="scale" value="showall" />\n');
	    	document.write('<param name="wmode" value="transparent" />\n');
			if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
				document.write("<embed src='main.swf' quality=high  width='100%' height='100%' wmode='transparent' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
			}
	    	document.write('</object>\n');
}

function HideDiv(ID){
			document.getElementById(ID).style.display='none';
		}
		
		function ShowDiv(ID){
			document.getElementById(ID).style.display='';
		}
		
		function ShowHideDiv(ID){
			if(document.getElementById(ID).style.display==''){
				HideDiv(ID);
			}else{
				HideAll("contenuto",4);
				ShowDiv(ID);
			}
		}
