// JavaScript Document
function zoom() { 
var UrlToOpen = "/gmaps.htm";
larg=640; 
alt=460; 
toptop=(screen.height/2)-(alt/2)
leftleft=(screen.width/2)-(larg/2); 
window.open(UrlToOpen,'zoomwindow','top='+toptop+',left='+leftleft+',scrollbars=no,resizable=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
} 

function seleziona(id) {
  if (!document.getElementById) return;
  selDiv = document.getElementById(id);
  selDiv.style.color = "#008030";
//	selDiv.style.fontWeight = "Bold";
}
function deseleziona(id) {
  if (!document.getElementById) return;
  selDiv = document.getElementById(id);
		selDiv.style.color = "#000000";
//		selDiv.style.fontWeight = "Normal";
}

function addbookmark(){
	url="http://www.utensilline.it/";
title="UTENSIL LINE S.r.l. - Utensileria e attrezzature industriali - Centro SIT";
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Premere i tasti CTRL-D (per Netscape)oppure CTRL-T (per Opera)\nper aggiungere il sito ai segnalibri...");
  }
}

function contatti() { 
larg=495; 
alt=535; 
toptop=20;//(screen.height/2)-(alt/2); 
leftleft=(screen.width/2)-(larg/2); 
window.open('http://www.ideaup.com/_UL/modulo.asp','popup','top='+toptop+',left='+leftleft+',width='+larg+',height='+alt+',scrollbars=yes,status=no,location=no,toolbar=no'); 
} 

function doEmail() { 
var emailriddlerarray=[105,110,102,111,64,117,116,101,110,115,105,108,108,105,110,101,46,105,116]
var encryptedemail_id42='' //variable to contain encrypted email 
for (var i=0; i<emailriddlerarray.length; i++)
encryptedemail_id42+=String.fromCharCode(emailriddlerarray[i])
document.write('<a href="mailto:'+encryptedemail_id42+'?subject=Richiesta di informazioni dal sito web..." style="color:#FFFFFF;">'+encryptedemail_id42+'</a>')
} 

function pop1() { 
var UrlToOpen = "/news/foto1big.jpg";
var larg=800; 
var alt=600; 
toptop=(screen.height/2)-(alt/2)
leftleft=(screen.width/2)-(larg/2); 
window.open(UrlToOpen,'zoomwindow','top='+toptop+',left='+leftleft+',scrollbars=no,resizable=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
} 
function pop2() { 
var UrlToOpen = "/news/foto2big.jpg";
var larg=800; 
var alt=600; 
toptop=(screen.height/2)-(alt/2)
leftleft=(screen.width/2)-(larg/2); 
window.open(UrlToOpen,'zoomwindow','top='+toptop+',left='+leftleft+',scrollbars=no,resizable=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
} 
function pop3() { 
var UrlToOpen = "/news/foto3big.jpg";
var larg=800; 
var alt=600; 
toptop=(screen.height/2)-(alt/2)
leftleft=(screen.width/2)-(larg/2); 
window.open(UrlToOpen,'zoomwindow','top='+toptop+',left='+leftleft+',scrollbars=no,resizable=no,width='+larg+',height='+alt+',status=no,location=no,toolbar=no'); 
} 

