<!--
var stagione = "2009 - 2010"
function banner() {
index = Math.floor(Math.random()*5);
document.write("<img src='_img/caso/photo"+index+".jpg' border=1><br />");
}

function MovieDiv(into) {
	document.getElementById("movie3").innerHTML ="<img src='"+into+"' usemap=\"#Map\" border=\"0\"><map name=\"Map\"><area shape=\"rect\" coords=\"10,7,33,29\" href=\"#\" onClick='scompari()' alt=\"::: Fai click per chiudere :::\"></map><br> &nbsp;<br><a href='squadra_album.asp' target='_self'>Clicca qui<br>per vedere l'album della tua squadra.</a>";
}
function MovieDiv22(into) {
	document.getElementById("movie3").innerHTML ="<a href=# onClick='scompari()'><img src='"+into+"'><br></a>";
}

function MovieDiv2(into) {
	document.getElementById("movie3").innerHTML ="<a href='#' onClick='scompari()'><img src='_img/Chiudi_x.gif' border='0' width='18' height='16' align='right' alt='Clicca per chiudere'></a><p>Benvenuti  nel nuovo sito della<br>  <b>DiPo Settore calcio</b><br>  STAGIONE 2008-2009<br>  <br>  La stagione &egrave; appena iniziata e<br>  alcune pagine del sito sono ancora<br>  vuote, aspettando risultati, classifiche <br>  e liste aggiornate delle squadre.<br>  Pian piano le notizie arriveranno e<br>  il sito torner&agrave;,come sempre, aggiornato e ricco di <br>  informazioni.</p><p>Grazie.</p>";
}

function popupGen(cric) {
	document.getElementById("output").innerHTML ="<div align=center><img src='"+cric+"' width=250 height=187 border=1>";
}
function VideoGen(cric,testo) {
var s='<object width="450" height="365"><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="450" height="365"></embed></object>';
document.getElementById("output").innerHTML ="..:.. Dipo Video ..:..<br /><br />"+s+"<br />";
document.getElementById("titolo").innerHTML =testo+"<hr />";
}
function titolazione(cric,testo) {
	document.getElementById("output").innerHTML ="<div align=center><img src='"+cric+"' width=120height=>";
	document.getElementById("titolo").innerHTML =testo;
}

function finestra(){
	tipo = 'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=100,height=100,top=0,left=0'
	newWindow=window.open("default_3.asp?joy=3","",tipo);
	newWindow.moveTo(0,0)
	newWindow.resizeTo(screen.width,(screen.height-30))
	newWindow.setTimeout("window.focus()", 10000);
}

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>');	
}
}

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 carspot(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="mainMovie">');
	document.write('<PARAM NAME=movie VALUE="'+swf+'.swf?chiave='+marca+'&lingua='+lingua+'"><PARAM NAME=quality VALUE=high> <PARAM NAME=menu VALUE=false> <param name="WMode" value="transparent">\n <EMBED src="'+swf+'.swf?chiave='+marca+'&lingua='+lingua+'" quality=high menu=false bgcolor=#FFFFFF WIDTH='+largo+' HEIGHT='+alto+' name="mainMovie" swLiveconnect=true id="mainMovie" 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 resize() { 
	window.resizeTo(document.picture.width+15,document.picture.height+60);
}

function stato() {
		var today = new Date();
		var year = today.getFullYear();
window.status="NiqueDeAngelis©"+year
}
stato();

function novite(data,titolo,id) {
var	color = (c_News %2 == 0) ? "#FFFFFF" : "#EEEEEE"
document.write('<tr bgcolor="'+color+'">');
document.write('<td width="80" align="right" class="data">'+data+'</td>');
document.write('<td width="350" class="data">| <a href="rispondi.asp?id='+id+'">'+titolo+'</a></td></TR>');
c_News++
}

function novitu() {
var	color = (c_News %2 == 0) ? "#FFFFFF" : "#EEEEEE"
document.write('<tr bgcolor="'+color+'">');
c_News++
}

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 eximgLoadingError(n) {
	document.images(n.toString()).src="_img/notFound.gif";
}

function imgLoadingError(n) {
document.images[n].src="_img/notFound.gif";
}
	
function imgNews(n) {
var frasi = new Array(); //array delle frasi
frasi[0] = "_img/LogoDipo.gif"
frasi[2] = "_img/Io-Dipo-33.jpg"
frasi[1] = "_img/leone.gif"
frasi[4] = "_img/pallone1.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 scrivi(nome, valore, scadenza, percorso, dominio, sicurezza){
	document.cookie = nome + "=" + escape (valore) +
	((scadenza == null) ? "" : ("; expires=" + scadenza.toGMTString())) +
	((percorso == null) ? "" : ("; path=" + percorso)) +
	((dominio == null) ? "" : ("; domain=" + dominio)) +
	((sicurezza == true) ? "; secure" : "");
}

function visita(){
	var termine = new Date();
	termine.setTime(termine.getTime() +  (86400 * 1000));
	var sottostringa = "saltapreloader";
	var stringa = document.cookie;
	if(stringa.indexOf(sottostringa) != -1){
		vai();
	}else{
		scrivi("preloader", sottostringa, termine, "/", null, false);
	}
}
function vai() {
	var IE = navigator.appName.indexOf("Microsoft") != -1;
	var filmato = IE ? window.mainMovie : window.document.mainMovie;
	if(filmato.PercentLoaded() == 100){
		filmato.GotoFrame(9);
	}
}

function appari()
{ if (document.all)
  { document.getElementById("movie3").style.visibility =  "visible"; }
  else
  { document.movie3.visibility = "visible" }
}
function scompari()
{ if (document.all)
  { movie3.style.visibility = "hidden" }
  else
  { document.getElementById("movie3").style.visibility = "hidden"; }
}

function squadra(chi) {
	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 = 20;
	document.getElementById('FotoSquadra').style.left = 20;
	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="'+chi+'/BigSquadra.jpg" border="1" title="'+chi+' - Foto Ufficiale"><div id="Layer2" style="position:absolute; width:580px; height:11px; z-index:5; left: 10px; top: 437px" class="testolayer"> '+chi+' - Stagione '+stagione+'&nbsp;&nbsp;</div><div id="Layer3" style="position:absolute; width:590px; height:30px; z-index:2; left: 5px; top: 437px; background-color: white" class="opacity50"></div><div id="Layer1" style="position:absolute; width:59px; height:67px; z-index:1; left: 18; top: 37"> <img src="_img/dipo_loghino_tr.gif" width="58" height="84"></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 ::"></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" title="'+titlo+'"></a>';
	}
	}																									 

	function chiudi_maggio() {
	document.getElementById("FotoSquadra").style.visibility = "hidden";
	}
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 NoAlbum(n,s) { //squadra_album2.asp
document.getElementById(n).innerHTML = '<div><img src="_img/NoFigu.jpg" border="0"></div><div align="center" style="margin-top: -17px">'+s+'</div>';
}

function Dipoit() {
document.write ('<img src="_img/dipo-it.gif" style="position:absolute; z-index:1; bottom: 2px; left:50%; margin-left:-530px;">');  }


function Lotteria() {
document.write ('<a href="festa_sport.asp"><img src="_img/Lotteria-trans.png" border="0" title="Lotteria DiPo" style="position:absolute; z-index:1; top: 80px; left: 68%;"></a>');  }

//-->
