<!--
//Popup normale
function openWindow(url, name, w, h,scroll ) {
  popupWin = window.open(url, name, 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars='+scroll+',resizable=no,width='+ w + ',height='+ h + ',top=10,left=10')
}

//Popup centrata x form
function aprialcentro(larghezza,altezza) {
 open("", "popup", "width="+larghezza+",height="+altezza+", left="+((screen.width-larghezza)/2)+",top="+((screen.height-altezza)/2)+"");
}

//Popup centrata x link
function aprialcentro1(url,larghezza,altezza) {
 open(url, "popup", "width="+larghezza+",height="+altezza+", left="+((screen.width-larghezza)/2)+",top="+((screen.height-altezza)/2)+"");
}

function ingrandisci(immagine,descrizione,larghezza,altezza,scroll)
{ 
eval("NewWin=window.open('','popup','resizable=no,status=no,scrollbars='+scroll+',width='+larghezza+',height='+altezza+',left=5,top=5');"); 
NewWin.document.write ("<HTML><HEAD><TITLE>");
NewWin.document.write (" Historic Club Schio - ");
NewWin.document.write (descrizione + "</TITLE>");
NewWin.document.write ("<link rel='stylesheet' type='text/css' href='text.css'>\n");
NewWin.document.write ("</HEAD>\n"); 
NewWin.document.write ("<BODY Onload='top.window.focus()' MARGINWIDTH='0' MARGINHEIGHT='0' TOPMARGIN='0' LEFTMARGIN='0'>\n"); 
NewWin.document.write ("<a href='javascript:this.close();'><IMG SRC='");
NewWin.document.write (immagine);
NewWin.document.write ("' WIDTH='");
NewWin.document.write (larghezza);
NewWin.document.write ("' HEIGHT='");
NewWin.document.write (altezza);
NewWin.document.write ("' BORDER='0'  ALT='Clicca per chiudere' STYLE=position:absolute;left=0px;top=0px></a>"); 
NewWin.document.write ("</BODY></HTML>"); 
NewWin.document.close();
} 

function PrevFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+25;
  stringa="width="+largh+",height="+altez+",top=5,left=5";
  finestra=window.open(img,"",stringa);
}

function clearFocus()
{
no_bordo = function(){this.blur()}
for(i=0;i<document.links.length;i++)
{ 
document.links[i].onfocus=no_bordo;
} 
}


function preload() {
  if (!document.images) return;
  var wl = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    wl[i] = new Image();
    wl[i].src = arguments[i];
  }
}


var nn=document.layers?true:false;
var NS6=navigator.userAgent.toLowerCase().indexOf("gecko")!=-1?true:false;
var tlayer=null,cx=null,cy=null;
var m=new Array(),s=new Array()
function Start()
	{
	tlayer=nn?document.layers.track:NS6?document.getElementById("track"):document.all.track;
	for (i=0;i<1;i++)
		{
		m[i]=nn?document.layers["menu"+i]:NS6?document.getElementById(["menu"+i]).style:document.all["menu"+i].style;
		s[i]=nn?document.layers["sec"+i]:NS6?document.getElementById(["sec"+i]).style:document.all["sec"+i].style;
		}
	cx=nn?tlayer.pageX:NS6?document.body.offsetLeft+tlayer.offsetLeft+5:document.body.clientLeft+tlayer.offsetLeft;
	cy=nn?tlayer.pageY:NS6?document.body.offsetTop+tlayer.offsetTop:document.body.clientTop+tlayer.offsetTop;

	for (i=0;i<1;i++)
		{
		m[i].left=cx-5;
		m[i].top=cy-50;
		m[i].visibility="visible";
		s[i].left=cx-5;
		s[i].top=cy+12;
		}
	}

function Mostra(n)
	{
	s[n].visibility="visible";
	}

function Nascondi(n)
	{
	s[n].visibility="hidden";
	}


var checkobj
function accetta(el){
checkobj=el
	if (document.all||document.getElementById){
		for (i=0;i<checkobj.form.length;i++){  
var tempobj=checkobj.form.elements[i]
	if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
							}
						}
					}

function disabilita(el){
	if (!document.all&&!document.getElementById){
			if (window.checkobj&&checkobj.checked)
return true
		else{
alert("Per favore accetta i termini del contratto")
return false
						}
					}
				}


function richiamaOnload() {
clearFocus();
Start();
preload ('../images/p_home01.gif')
}
onload=richiamaOnload;

// -->
