var player;

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 go_top_left(){

	moveTo(10,10);
}

function open_pop(url,w,h){
	window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=yes,scrollbars=yes');
}

function open_it(url,w,h){
	window.open(url,'pop','height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}

function open_01(url,w,h){
	now=new Date();
	v1=window.open(url,'pop'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=no,resizable=no,scrollbars=yes');
}

function open_02(url,w,h){
	now=new Date();
	v1=window.open(url,'pop'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
}


function open_player(url,w,h){

	now=new Date();
	if(!player){
				setcookie('pop_player',1,"","","","");
			player=window.open(url,'pop'+now.getMinutes()+now.getMilliseconds(),'height='+h+',width='+w+'location=no,resizable=no,scrollbars=no');
 }

	}




function setcookie(name, value, expires, path, domain, secure)
{
document.cookie= name + "=" + escape(value) +
((expires)? "; expires=" + expires.toGMTString() : "") +
((path)? "; path=" + path : "") +
((domain)? "; domain=" + domain : "") +
((secure)? "; secure" : "");
}




////////


function RunSlideHome(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="300">\n');
    	document.write('<param name="movie" value="else/slide_home.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_home.swf' quality=high wmode='transparent' width='500' height='300' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideGruppo(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_gruppo.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_gruppo.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideProdotti(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_prodotti.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_prodotti.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideServizi(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_servizi.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_servizi.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideAmbiente(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_ambiente.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_ambiente.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideNovita(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_news.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_news.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideContatti(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_contatti.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_contatti.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlideUtilita(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1004" height="154">\n');
    	document.write('<param name="movie" value="else/slide_utilita.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide_utilita.swf' quality=high wmode='transparent' width='1004' height='154' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunSlide(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="1000" height="150">\n');
    	document.write('<param name="movie" value="else/slide.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/slide.swf' quality=high wmode='transparent' width='1000' height='150' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}

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

function RunProdotti(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="220" height="157">\n');
    	document.write('<param name="movie" value="else/prodotti.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/prodotti.swf' quality=high wmode='transparent' width='220' height='157' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunContatti(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="220" height="157">\n');
    	document.write('<param name="movie" value="else/contatti.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/contatti.swf' quality=high wmode='transparent' width='220' height='157' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunEventi(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="220" height="157">\n');
    	document.write('<param name="movie" value="else/eventi.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/eventi.swf' quality=high wmode='transparent' width='220' height='157' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunEventiAereo(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="220" height="157">\n');
    	document.write('<param name="movie" value="eventi_aereo.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='eventi_aereo.swf' quality=high wmode='transparent' width='220' height='157' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunServizi(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="220" height="157">\n');
    	document.write('<param name="movie" value="else/servizi.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/servizi.swf' quality=high wmode='transparent' width='220' height='157' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function HomePage(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="770" height="347">\n');
    	document.write('<param name="movie" value="else/home_page.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='else/home_page.swf' quality=high wmode='transparent' width='770' height='347' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}
function RunPlayer(){
    	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="150">\n');
    	document.write('<param name="movie" value="player.swf" />\n');
    	document.write('<param name="quality" value="high" />\n');
    	document.write('<param name="wmode" value="transparent" />\n');
    	document.write('<param name="scale" value="showall" />\n');
		if((navigator.appName.indexOf('Netscape')!=(-1))||(navigator.appVersion.indexOf('Mac')!=(-1))||(navigator.appVersion.indexOf('PPC')!=(-1))){
			document.write("<embed src='player.swf' quality=high wmode='transparent' width='200' height='150' TYPE='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>");
		}
    	document.write('</object>\n');
}

