var newwindow = '';

function fotoWebcam(url)
{
  if (newwindow.location && !newwindow.closed)
  {
    newwindow.location.href = url;
  }
  else
  {
    newwindow=window.open(url,'scheda','toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1,width=1024,height=768');
    if (!newwindow.opener) newwindow.opener = self;
  }
  if (window.focus) {newwindow.focus()}
}

function fotoMappa(url)
{
	if (newwindow.location && !newwindow.closed)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'scheda','scrollbars=1,menubar=0,resizable=0,width=860,height=400,left=100,screenX=100,top=100,screenY=100');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
}

function foto(url)
{
	if (newwindow.location && !newwindow.closed)
	{
		newwindow.location.href = url;
	}
	else
	{
		newwindow=window.open(url,'scheda','scrollbars=1,menubar=0,resizable=0,width=520,height=400,left=100,screenX=100,top=100,screenY=100');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus()}
}


// Webcam
function rotateIt(){
	if (halt!=1){
		sctr++;
		if (sctr>number_of_sponsors-1) {
			sctr=0;
		}
		document.novita.src=isn[sctr].src;
		setTimeout("rotateIt()",3000);
	}
}

function doIt(){
	//halt=1;
	location.href=durl[sctr];
}

function formButtonFever(formName,action){
  var myString = "document."+formName+"."+action+"();";
  eval(myString);
}
