<!--
document.write("<link rel='stylesheet' href='js/Home.css' type='text/css' />");
document.write("<link rel='stylesheet' href='js/Goccia_Style.css' type='text/css' />");
document.write("<link rel='stylesheet' href='js/ListaEventi-5.css' type='text/css' />");
document.write("<link rel='stylesheet' href='js/bottonci.css' type='text/css' />");
if (screen.width <"1030") {  //se il monitor è meno di 1024 aggiunge style_850
    document.write("<link rel='stylesheet' href='js/Goccia_Style_850.css' type='text/css' />");
}

var stagione = "2009 - 2010"
document.write ('<div  id="FotoSquadra" class="inserto"></div>');

function ApriStampa (pagina,id,tipo) {
window.open('stampalo.asp?page='+pagina+'&id='+id+'&tipo='+tipo+'','Stampa'+id+'','width=150,height=150,top=70,left=20,scrollbars=yes');
}

function ApriMail (pagina,id,destinat,tipo) {
window.open('MandaMail2.asp?page='+pagina+'&id='+id+'&destinaz='+destinat+'&tipo='+tipo+'','Mail'+id+'','width=150,height=150,top=30,left=20,scrollbars=yes');
}

function ApriMailing (pagina,id,destinat,tipo) {
window.open('MandaMail3.asp?page='+pagina+'&id='+id+'&destinaz='+destinat+'&tipo='+tipo+'','Mail'+id+'','width=150,height=150,top=30,left=20,scrollbars=yes');
}

function VideoGen(cric,testo) {
var s='<object width="520" height="430"><param name="movie" value="'+cric+'&fs=1&amp;hl=it_IT&rel=0&border=1&color1=0x234900&color2=0x4e9e00"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>';
var s =s+'<embed src="'+cric+'&fs=1&amp;hl=it_IT&rel=0&border=1&color1=0x234900&color2=0x4e9e00" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="520" height="430"></embed></object>';
document.getElementById("output").innerHTML =""+s+"<br />";
document.getElementById("titolo").innerHTML ="<br />"+testo+"<hr style=\"width:530px;\" />";
	}

function carigo(swf,marca,lingua,largo,alto) {
	if (window.screen) {
	document.write('<center><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="'+largo+'" height="'+alto+'" id="passflash">');
	document.write('<param name="movie" value="'+swf+'.swf?chiave='+marca+'&lingua='+lingua+'"><param name="quality" value="best"> <param name="menu" value="false"> <param name="wmode" value="transparent">\n <embed src="'+swf+'.swf?chiave='+marca+'&lingua='+lingua+'" quality="best" menu="false" width="'+largo+'" height="'+alto+'" name="passflash" swliveconnect="true" id="passflash" type="application/x-shockwave-flash"');
	document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash" wmode="transparent"</embed></object></center>');	return 0;
}
}

function carFigu(swf,nome,cognome,squadra,ruolo,maglia,largo,alto) {
	if (window.screen) {
	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="'+largo+'" height="'+alto+'" id="passflash">');
	document.write('<param name=movie value="'+swf+'.swf?nome='+nome+'&cognome='+cognome+'&squadra='+squadra+'&ruolo='+ruolo+'&numero_maglia='+maglia+'"><param name="quality" value="best"> <param name="menu" value="false"> <param name="wmode" value="transparent">\n <embed src="'+swf+'.swf?nome='+nome+'&cognome='+cognome+'&squadra='+squadra+'&ruolo='+ruolo+'&numero_maglia='+maglia+'" quality="best" menu="false" bgcolor="#ffffff" width="'+largo+'" height="'+alto+'" name="passflash" swliveconnect="true" id="passflash" type="application/x-shockwave-flash"');
	document.write('pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash" wmode="transparent"</embed></object>');	
}
}

function goToURL() { //v3.0
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function imgLoadingError(n) {
document.images[n].src="_img/notFound.gif";
}
	
function imgNews(n) {
var frasi = new Array(); //array delle frasi
frasi[0] = "_img/Castello.gif"
frasi[2] = "_img/Noe.jpg"
frasi[1] = "_img/Pinocchio.jpg"

var id = Math.round(Math.random() * (frasi.length - 1)); //ne prende una a caso
var quote = frasi[id]
	document.images[n].src=quote;
	}

function fotoDiV(che,dove,cosa) {
	document.getElementById("FotoSquadra").style.visibility = "visible";
	document.getElementById('FotoSquadra').style.padding = '0px';
	document.getElementById("FotoSquadra").style.borderWidth = "1px";
	document.getElementById("FotoSquadra").style.borderColor = "#ebebeb";
	document.getElementById("FotoSquadra").style.borderStyle = "solid";
	document.getElementById('FotoSquadra').style.top = 20;
	document.getElementById('FotoSquadra').style.left = 20;  
 if (dove == undefined)	
{	document.getElementById('FotoSquadra').innerHTML = '<div align="right"><a href="javascript:chiudi_maggio()"><img src="_img/chiudi.gif" border="0" title=":: Chiudi ::"></a></div><img src="'+che+'" border="01">';
	} else {
		document.getElementById('FotoSquadra').innerHTML = '<div align="right"><a href="javascript:chiudi_maggio()"><img src="_img/chiudi.gif" border="0" title=":: Chiudi ::"></a></div><a href="'+dove+'" target="'+cosa+'"><img src="'+che+'" border="01"></a>';
	}
	}																									 

	function chiudi_maggio() {
	document.getElementById("FotoSquadra").style.visibility = "hidden";
	}
function soap() {
	document.getElementById('caso').style.padding = '1px';
	document.getElementById("caso").style.visibility = "visible";
	document.getElementById("caso").style.borderWidth = "1px";
	document.getElementById("caso").style.borderColor = "#333333";
	document.getElementById("caso").style.borderStyle = "solid";

}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function ControlloForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=ControlloForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' non è un indirizzo e-mail valido.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+'deve contenere un numero.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' deve contenere un numero tra '+min+' e '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' è obbligatorio.\n'; }
  } if (errors) alert('I seguenti campi sono obbligatori:\n\n'+errors);
  document.MM_returnValue = (errors == '');
}

function Dipoit() {
document.write ('<img src="_img/goccia-it-trans.png" class="dipoit">');  }
Dipoit();

function stato() {
		var today = new Date();
		var year = today.getFullYear();
window.status="NiqueDeAngelis©"+year; return 0;
}
stato();

//-->

