<!--
var stagione = ""
var today = new Date();
var year = today.getFullYear();

function VideoGen(cric,testo) {
var s='<object width="500" height="406"><param name="movie" value="'+cric+'&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+'&rel=0&border=1&color1=0x234900&color2=0x4e9e00" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="406"></embed></object>';
document.getElementById("output").innerHTML ="..:.. Dipo Video ..:..<br /><br />"+s+"<br />";
document.getElementById("titolo").innerHTML =testo+"<hr />";
	}

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 ');
	document.write('<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>');	
	}
	}
	
function stato() {
		var today = new Date();
		var year = today.getFullYear();
window.status="NiqueDeAngelis©"+year
	}
stato();

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 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 squadra(chi,stagione) {
	document.getElementById("FotoSquadra").style.visibility = "visible";
	document.getElementById("FotoSquadra").style.borderWidth = "2px";
	document.getElementById("FotoSquadra").style.borderColor = "#CCCCCC";
	document.getElementById("FotoSquadra").style.borderStyle = "solid";
	document.getElementById('FotoSquadra').style.padding = '0px';
	document.getElementById('FotoSquadra').style.top = "20px";
	document.getElementById('FotoSquadra').style.left = "20px";
	document.getElementById('FotoSquadra').innerHTML = '  <div  align="right"><a href="javascript:chiudi_maggio()"><img src="_img/chiudi.gif" border="0" alt=":: Chiudi ::" title=":: Chiudi ::" /></a></div><img src="'+chi+'/BigSquadra.jpg" border="1" alt="'+chi+' - Foto Ufficiale" title="'+chi+' - Foto Ufficiale" /><div id="NomeSquadra" class="testolayer" style="position:absolute; width:99%; height:30px; z-index:20; right: 2px; bottom:12px;"> '+chi+' - Stagione '+stagione+'&nbsp;&nbsp;</div><div id="SfondoOpaco" class="opacity50" style="position:absolute; width:99%; height:30px; z-index:2; right: 2px; bottom:12px; background-color: white;"></div><div id="Layer1" style="position:absolute; width:59px; height:67px; z-index:1; left: 18px; top: 37px"> <img src="_img/dipo_loghino_tr.gif" width="58" height="84" alt="dipo.it" /></div>';
	}
	function chiudi_maggio() {
	document.getElementById("FotoSquadra").style.visibility = "hidden";
	}

function fotoDiV(che,dove,cosa,titlo) {
	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 = '20px';
	document.getElementById('FotoSquadra').style.left = '20px';  
 if (dove == undefined)	
{	document.getElementById('FotoSquadra').innerHTML = '<div align="right"><a href="javascript:chiudi_maggio()"><img src="_img/chiudi.gif" border="0" title=":: Chiudi ::" alt="dipo.it" /></a></div><img src="'+che+'" border="1" alt="dipo.it" />';
	} else {
	document.getElementById('FotoSquadra').innerHTML = '<div align="right"><a href="javascript:chiudi_maggio()"><img src="_img/chiudi.gif" border="0" title=":: Chiudi ::" alt="dipo.it" /></a></div><a href="'+dove+'" target="'+cosa+'"><img src="'+che+'" border="01" title="'+titlo+'" alt="dipo.it" /></a>';
	}
	}																									 

function soap() {
	document.getElementById('caso').style.padding = '20px';
	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 FotoDivo2(quanto) {  // viene richiamato da FotoDivo dopo il load della foto
	var quanto = (screen.width/2)-(document.misura.width/2)-(8);
	var vertico =	(screen.height/2)-(document.misura.height/2)-170;
	document.getElementById("FotoGallery").style.visibility = "visible";
	document.getElementById('FotoGallery').style.padding = '0px';
	document.getElementById("FotoGallery").style.borderWidth = "1px";
	document.getElementById("FotoGallery").style.borderColor = "#ebebeb";
	document.getElementById("FotoGallery").style.borderStyle = "solid"; 	
	document.getElementById("FotoGallery").style.left = quanto+"px";
	//document.getElementById("FotoGallery").style.height = (document.misura.height+15);
	//document.getElementById("FotoGallery").style.top = "10px";
	document.getElementById("FotoGallery").style.top = vertico+"px";
	document.getElementById("FotoGallery").style.height = (document.misura.height+15)+"px";
	//document.getElementById("FotoGallery").style.bottom = "200px";
	}

function fotoDiVo(che) {   // richiama FotoDivo2 per posizionare in centro la Foto
	document.getElementById('FotoGallery').innerHTML = '<div align="right"><a href="javascript:chiudi_Gallery()" title="Chiudi l\'immagine"><img src="_img/chiudi.gif" border="0" title=":: Chiudi ::" alt="dipo.it" /></div><img src="'+che+'" border="01" name="misura" onload="FotoDivo2()" alt="dipo.it" /></a>';
	document.getElementById("FotoGallery").style.visibility = "visible";
	document.getElementById("FotoGallery").style.left = "65px";
	document.getElementById("FotoGallery").style.position = "absolute";
	}	
	
function chiudi_Gallery() {  //chiude fotoDivo2
	document.getElementById("FotoGallery").style.visibility = "hidden";
	}
	
function NoAlbum(n,s) { //squadra_album2.asp
document.getElementById(n).innerHTML = '<div style="margin-top:-17px;"><div class="nomeSquadra">'+s+'</div><img src="_img/NoFigu.jpg" border="0" alt="dipo.it" /></div>';
	}


//-->

