function ridimensiona_finestra() {
if (self.Width < 810) or (self.height < 730)
{
	win_width = 810;
	win_height = 730;
	x_coord = ((screen.width - win_width) / 2);
	y_coord = ((screen.height - win_height) / 2);
	window.moveTo(x_coord,y_coord);
	window.resizeTo(win_width,win_height);
}
}

function start() {
	window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
}

function start_home_it() {
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) {
			var lingua = window.navigator.systemLanguage;
			if (lingua == "it") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}			
	}		
	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
			var lingua = window.navigator.language;
			if (lingua == "it") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}
	}		
	if (/Chrome[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
			var lingua = window.navigator.Language;
			if (lingua == "it") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}
	}		
	if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
			var lingua = window.navigator.language;
			if (lingua == "it") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}
	}	
	if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
			var lingua = window.navigator.language;
			if (lingua == "it-IT") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}
	}	
	if (/SeaMonkey[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
			var lingua = window.navigator.language;
			if (lingua == "it") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}
	}
	if (/Mozilla[\/\s](\d+\.\d+);/.test(navigator.userAgent)) {
			var lingua = window.navigator.language;
			if (lingua == "it") 
			{
			window.setTimeout ("location.href=('http://www.everelettronica.com')", 1);
			}
			else
			{
			window.setTimeout ("location.href=('http://www.everelettronica.it/pages_en/home.asp')", 1);
			}
	}		
}

function start_home() {
	var lingua = window.navigator.systemLanguage;
	if (lingua == "it") 
{
	window.setTimeout ("location.href=('pages_it/home.asp')", 5000);
}
else
{
	window.setTimeout ("location.href=('pages_en/home.asp')", 5000);
}
}

function popupFAQ(myform, windowname) {
		if (! window.focus)return true;
		window.open('', windowname, 'width=555,height=400,left=50,top=50,scrollbars=yes');
		myform.target=windowname;
		return true;
}

function setVersioni(chooser) {
   var versionidb = new Object()
   versionidb["GWC"] = [{value:"B221", text:"B221"}];
   versionidb["SDLWA160"] = [{value:"vAB14E", text:"vAB14E"}];
   versionidb["SDLWD170"] = [{value:"vB211", text:"vB211"}];
   versionidb["SDLWA170"] = [{value:"v2211", text:"v2211"}];
   versionidb["SDLWD180"] = [{value:"vA114", text:"vA114"}];
   versionidb["SDLWA180"] = [{value:"vA114", text:"vA114"}];
   versionidb["SDLWT180"] = [{value:"vA114", text:"vA114"}];
   versionidb["SDMWA130"] = [{value:"vA126", text:"vA126"},
			     {value:"vA136", text:"vA136"}];
   versionidb["SDMWD170"] = [{value:"vB221", text:"vB221"},
			     {value:"vB221D", text:"vB221D"},
			     {value:"vB231", text:"vB231"},
			     {value:"vB231D", text:"vB231D"},
			     {value:"vB242", text:"vB242"}];
   versionidb["SDMWA170"] = [{value:"v2221", text:"v2221"},
			     {value:"v2231", text:"v2231"},
			     {value:"v2242", text:"v2242"},
			     {value:"v4221", text:"v4221"},
			     {value:"v4231", text:"v4231"},
			     {value:"v4242", text:"v4242"}];
   versionidb["SDMWD180"] = [{value:"vA123", text:"vA123"},
			     {value:"vA133", text:"vA133"},
			     {value:"vA143", text:"vA143"}];
   versionidb["SDMWA180"] = [{value:"vA123", text:"vA123"},
			     {value:"vA133", text:"vA133"}];
   versionidb["SDMWT180"] = [{value:"vA123", text:"vA123"},
			     {value:"vA133", text:"vA133"}];
   versionidb["SDHWA160"] = [{value:"v9B0DF", text:"v9B0DF"},
			     {value:"v9B0FF", text:"v9B0FF"},
			     {value:"v9B10F", text:"v9B10F"},
			     {value:"vAF0FF", text:"vAF0FF"},
			     {value:"v9E0DF", text:"v9E0DF"},
			     {value:"v9D10F", text:"v9D10F"}];
   versionidb["SDHWA161"] = [{value:"v9B12F", text:"v9B12F"},
			     {value:"v9E12F", text:"v9E12F"}];
   versionidb["SDHWA262"] = [{value:"v9L10F", text:"v9L10F"}];
   versionidb["LW1D2042N081-00"] = [{value:"-", text:"-"}];
   versionidb["LW1D3050N081-00"] = [{value:"-", text:"-"}];
   versionidb["LW1D4080N061-00"] = [{value:"-", text:"-"}];
   versionidb["LW1A4080N061-00"] = [{value:"-", text:"-"}];
   versionidb["LW1A9060N081-00"] = [{value:"-", text:"-"}];
   versionidb["SW1D2042C061-00"] = [{value:"SW1D2042C061-00", text:"-"}];
   versionidb["SW1D2042N361-00"] = [{value:"SW1D2042N361-00", text:"-"}];
   versionidb["SW1D4080C061-00"] = [{value:"SW1D4080C061-00", text:"-"}];
   versionidb["SW1D4080N361-00"] = [{value:"SW1D4080N361-00", text:"-"}];
   versionidb["SW1D4080N3B1-00"] = [{value:"SW1D4080N3B1-00", text:"-"}];
   versionidb["SW1A4080C061-00"] = [{value:"SW1A4080C061-00", text:"-"}];
   versionidb["SW1A4080N361-00"] = [{value:"SW1A4080N361-00", text:"-"}];
   versionidb["SW1A4080N3B1-00"] = [{value:"SW1A4080N3B1-00", text:"-"}];
   versionidb["SW1A9060C061-00"] = [{value:"SW1A9060C061-00", text:"-"}];
   versionidb["SW1A9060N361-00"] = [{value:"SW1A9060N361-00", text:"-"}];
   versionidb["SW1A9060N3C1-00"] = [{value:"SW1A9060N3C1-00", text:"-"}];
   versionidb["SM2A560PC043_40"] = [{value:"SM2A560PC043_40", text:"-"}];
   versionidb["SM2A560PC043_N0"] = [{value:"SM2A560PC043_N0", text:"-"}];
   versionidb["SM2A660PC043_40"] = [{value:"SM2A660PC043_40", text:"-"}];
   versionidb["SM2A660PC043_N0"] = [{value:"SM2A660PC043_N0", text:"-"}];
   versionidb["SM2A560PN243_40"] = [{value:"SM2A560PN243_40", text:"-"}];
   versionidb["SM2A560PN243_N0"] = [{value:"SM2A560PN243_N0", text:"-"}];
   versionidb["SM2A660PN243_40"] = [{value:"SM2A660PN243_40", text:"-"}];
   versionidb["SM2A660PN243_N0"] = [{value:"SM2A660PN243_N0", text:"-"}];
   versionidb["SM2A560PN343_40"] = [{value:"SM2A560PN343_40", text:"-"}];
   versionidb["SM2A560PN343_N0"] = [{value:"SM2A560PN343_N0", text:"-"}];
   versionidb["SM2A660PN343_40"] = [{value:"SM2A660PN343_40", text:"-"}];
   versionidb["SM2A660PN343_N0"] = [{value:"SM2A660PN343_N0", text:"-"}];
   versionidb["MDK3_ _ _ _N"] = [{value:"vPA26", text:"vPA26"},
			         {value:"vPA36", text:"vPA36"}];
   versionidb["MDK3_ _ _ _H"] = [{value:"vPA26", text:"vPA26"},
			         {value:"vPA36", text:"vPA36"}];
   versionidb["Mpp16"] = [{value:"v04", text:"v04"},
                          {value:"v01", text:"v01"},
                          {value:"v02", text:"v02"},
                          {value:"v03", text:"v03"}];
   versionidb["M5A"] = [{value:"v10R02", text:"v10R02"},
                        {value:"v11", text:"v11"}];
   versionidb["Smc01-09"] = [{value:"v00", text:"v00"},
                             {value:"v01-", text:"v01"},
                             {value:"v04-", text:"v04"},
                             {value:"v14", text:"v14"},
                             {value:"v24", text:"v24"}];
   versionidb["Mpp14-01"] = [{value:"v00S", text:"v00S"},
                             {value:"v01S", text:"v01S"},
                             {value:"v23S", text:"v23S"},
                             {value:"v25S", text:"v25S"}];
   versionidb["WPW08"] = [{value:"v01", text:"v01"}];
   versionidb["Altro"] = [{value:"-", text:"-"}];
   var newElem;
    var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
    var cityChooser = chooser.form.elements["versioni"];
    while (cityChooser.options.length) {
        cityChooser.remove(0);
    }
    var choice = chooser.options[chooser.selectedIndex].value;
    var db = versionidb[choice];
    newElem = document.createElement("option");
    newElem.text = "Seleziona una versione";
    newElem.value = "";
    cityChooser.add(newElem, where);
    if (choice != "") {
        for (var i = 0; i < db.length; i++) {
            newElem = document.createElement("option");
            newElem.text = db[i].text;
            newElem.value = db[i].value;
            cityChooser.add(newElem, where);
        }
    }
}

function setConfigurazioni(chooser) {
   var configurazionidb = new Object()
   configurazionidb["B221"] = [{value:"c0000", text:"c0000"},
			       {value:"cfpo300", text:"cfpo300"},
			       {value:"cfpv300", text:"cfpv300"},
			       {value:"c0325", text:"c0325"},
			       {value:"c0326", text:"c0326"},
			       {value:"c0370", text:"c0370"},
			       {value:"c0500", text:"c0500"},
			       {value:"c0550", text:"c0550"},
	                       {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vA114"] = [{value:"c0200", text:"c0200"},
                                {value:"c0201", text:"c0201"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vB211"] = [{value:"c0200", text:"c0200"},
                                {value:"c0201", text:"c0201"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v2211"] = [{value:"c0200", text:"c0200"},
                                {value:"c0201", text:"c0201"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vAB14E"] = [{value:"-", text:"-"},
	                         {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vB221"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vB221D"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
 	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vB231"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vB231D"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vB242"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
				{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v2221"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v2231"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v2242"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
				{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v4221"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v4231"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v4242"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
				{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0480", text:"c0480"},
                                {value:"c0481", text:"c0481"},
                                {value:"c0482", text:"c0482"},
                                {value:"c0483", text:"c0483"},
                                {value:"c0484", text:"c0484"},
                                {value:"c0485", text:"c0485"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vA123"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vA133"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vA143"] = [{value:"c0370", text:"c0370"},
                                {value:"c0499", text:"c0499"},
                                {value:"c0500", text:"c0500"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vA126"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vA136"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0499", text:"c0499"},
	                        {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v9B0DF"] = [{value:"-", text:"-"}];
   configurazionidb["v9B0FF"] = [{value:"-", text:"-"}];
   configurazionidb["v9B10F"] = [{value:"-", text:"-"}];
   configurazionidb["vAF0FF"] = [{value:"-", text:"-"}];
   configurazionidb["v9E0DF"] = [{value:"-", text:"-"}];
   configurazionidb["v9D10F"] = [{value:"-", text:"-"}];
   configurazionidb["v9B12F"] = [{value:"-", text:"-"}];
   configurazionidb["v9E12F"] = [{value:"-", text:"-"}];
   configurazionidb["v9L10F"] = [{value:"-", text:"-"}];
   configurazionidb["-"] = [{value:"-", text:"-"}];
   configurazionidb["SW1D2042C061-00"] = [{value:"c0300", text:"c0300"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1D2042N361-00"] = [{value:"c0400", text:"c0400"},
					  {value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1D4080C061-00"] = [{value:"c0300", text:"c0300"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1D4080N361-00"] = [{value:"c0400", text:"c0400"},
					  {value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1D4080N3B1-00"] = [{value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1A4080C061-00"] = [{value:"c0300", text:"c0300"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1A4080N361-00"] = [{value:"c0400", text:"c0400"},
					  {value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1A4080N3B1-00"] = [{value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1A9060C061-00"] = [{value:"c0300", text:"c0300"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1A9060N361-00"] = [{value:"c0400", text:"c0400"},
					  {value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SW1A9060N3C1-00"] = [{value:"c0490", text:"c0490"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A560PC043_40"] = [{value:"c0300", text:"c0300"},
				          {value:"c0302", text:"c0302"},
				          {value:"c0325", text:"c0325"},
				          {value:"c0326", text:"c0326"},
				          {value:"c0370", text:"c0370"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A560PC043_N0"] = [{value:"c0300", text:"c0300"},
				          {value:"c0302", text:"c0302"},
				          {value:"c0325", text:"c0325"},
				          {value:"c0326", text:"c0326"},
				          {value:"c0370", text:"c0370"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A660PC043_40"] = [{value:"c0300", text:"c0300"},
				          {value:"c0302", text:"c0302"},
				          {value:"c0325", text:"c0325"},
				          {value:"c0326", text:"c0326"},
				          {value:"c0370", text:"c0370"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A660PC043_N0"] = [{value:"c0300", text:"c0300"},
				          {value:"c0302", text:"c0302"},
				          {value:"c0325", text:"c0325"},
				          {value:"c0326", text:"c0326"},
				          {value:"c0370", text:"c0370"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A560PN243_40"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A560PN243_N0"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A660PN243_40"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A660PN243_N0"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A560PN343_40"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A560PN343_N0"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A660PN343_40"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["SM2A660PN343_N0"] = [{value:"c0400", text:"c0400"},
                                          {value:"c0402", text:"c0402"},
                                          {value:"c0404", text:"c0404"},
                                          {value:"c0405", text:"c0405"},
                                          {value:"c0420", text:"c0420"},
                                          {value:"c0450", text:"c0450"},
                                          {value:"c0499", text:"c0499"},
     	                                  {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vPA26"] = [{value:"c0300", text:"c0300"},
                                {value:"c0302", text:"c0302"},
                                {value:"c0325", text:"c0325"},
                                {value:"c0326", text:"c0326"},
                                {value:"c0370", text:"c0370"},
                                {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["vPA36"] = [{value:"c0400", text:"c0400"},
                                {value:"c0402", text:"c0402"},
                                {value:"c0404", text:"c0404"},
                                {value:"c0405", text:"c0405"},
                                {value:"c0420", text:"c0420"},
                                {value:"c0450", text:"c0450"},
                                {value:"c0499", text:"c0499"},
                                {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v04"] = [{value:"-", text:"-"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v01"] = [{value:"-", text:"-"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v02"] = [{value:"-", text:"-"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v03"] = [{value:"-", text:"-"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v10R02"] = [{value:"c0400", text:"c0400"},
                                 {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v11"] = [{value:"c0400", text:"c0400"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v00"] = [{value:"c01", text:"c01"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v01-"] = [{value:"c00", text:"c00"},
                               {value:"c65", text:"c65"},
                               {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v04-"] = [{value:"cXX", text:"CXX"},
                               {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v14"] = [{value:"cXX", text:"CXX"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v24"] = [{value:"cXX", text:"CXX"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v00S"] = [{value:"c00", text:"c00"},
                               {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v01S"] = [{value:"c00", text:"c00"},
                               {value:"c01", text:"c01"},
                               {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v23"] = [{value:"cXX", text:"CXX"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   configurazionidb["v25"] = [{value:"cXX", text:"CXX"},
                              {value:"Altro", text:"Altro (indicare nella descrizione)"}];
   var newElem;
    var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
    var cityChooser = chooser.form.elements["configurazioni"];
    while (cityChooser.options.length) {
        cityChooser.remove(0);
    }
    var choice = chooser.options[chooser.selectedIndex].value;
    var db = configurazionidb[choice];
    newElem = document.createElement("option");
    newElem.text = "Seleziona una configurazione";
    newElem.value = "";
    cityChooser.add(newElem, where);
    if (choice != "") {
        for (var i = 0; i < db.length; i++) {
            newElem = document.createElement("option");
            newElem.text = db[i].text;
            newElem.value = db[i].value;
            cityChooser.add(newElem, where);
        }
    }
}

function Schiaccia(NomeProdURL, name, NomeProdURL2, name1) {
			document.images[name].src = NomeProdURL
			document.images[name1].src = NomeProdURL2
}


function Schiaccia1(NomeProdURL,name) {
		document.images[name].src = NomeProdURL
}

function openWindow(fin,nom,vari) { 
  var popupWin = window.open(fin,nom,vari);popupWin.focus();
}


function aprilista(fin,nom,vari) { 
  var popupWin = window.open(fin,nom,vari);popupWin.focus();
}


function openWindows(fin,met,vari) {
  popupWin = window.open(fin,met,vari)
}

function Form_Validator(theForm)
{
  if (Form.selection.selectedIndex <=0)
  {
    alert("Indicare una scelta.");
    theForm.selection.focus();
    return (false);
  }
  return (true);
}

function jump(sel) {
  if (sel.options[sel.selectedIndex].value) {
  top.location.href ="download_datasheet.asp?para1="+sel.options[sel.selectedIndex].value
		}
}

function jump1(sel) {
  if (sel.options[sel.selectedIndex].value) {
  top.location.href ="download_manuali.asp?para1="+sel.options[sel.selectedIndex].value
		}
}


function jump2(sel) {
  if (sel.options[sel.selectedIndex].value) {
  top.location.href ="download_"+sel.options[sel.selectedIndex].value+".asp"
		}
}


function jump3(sel) {
  if (sel.options[sel.selectedIndex].value) {
  top.location.href ="supporto_applicazioni.asp?a="+sel.options[sel.selectedIndex].value
		}
}


function Form1_Validators(theForm) {
  if (Form1.selection.selectedIndex <=0)
  {
    alert("Selezionare una famiglia di motori.");
    theForm.selection.focus();
    return (false);
  }
  return (true);
}

function Form2_Validators(theForm){
  if (Form2.selection.selectedIndex <=0)
  {
    alert("Indicare una scelta.");
    theForm.selection.focus();
    return (false);
  }
  return (true);
}


function Form1_Validator(theForm)
{
  if (theForm.firstName.value == "")
   {
    alert("Indicare un valore valido per il campo \"First name\" !");
    theForm.firstName.focus();
    return(false);
  }

  if (theForm.lastName.value == "")
  {
    alert("Indicare un valore valido per il campo \"Last name\" !");
    theForm.lastName.focus();
    return(false);
  }

  if (theForm.companyName.value == "")
  {
    alert("Indicare un valore valido per il campo \"Company name\" !");
    theForm.companyName.focus();
    return (false);
  }

  if (theForm.address.value == "")
  {
    alert("Indicare un valore valido per il campo \"Address\" !");
    theForm.address.focus();
    return (false);
  }

  if (theForm.city.value == "")
  {
    alert("Indicare un valore valido per il campo \"City\" !");
    theForm.city.focus();
    return (false);
  }

  if (theForm.stateProvince.value == "")
  {
    alert("Indicare un valore valido per il campo \"State / Province\" !");
    theForm.State_Province.focus();
    return (false);
  }

  if (theForm.zipPostalcode.value == "")
  {
    alert("Indicare un valore valido per il campo \"Zip Postal Code\" !");
    theForm.Zip_Postal_code.focus();
    return (false);
  }
  var checkOK = "0123456789-,.";
  var checkStr = theForm.zipPostalcode.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ",")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ".")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Inserire solo caratteri numerici nel campo \"Zip Postal Code\" !");
    theForm.zipPostalcode.focus();
    return (false);
  }
  if (decPoints > 1)
  {
    alert("Inserire un valore valido nel campo \"Zip Postal Code\" !");
    theForm.zipPostalcode.focus();
    return (false);
  }

  if (theForm.country.value == "")
  {
    alert("Indicare un valore valido per il campo \"Country\" !");
    theForm.country.focus();
    return (false);
  }

  if (theForm.phone.value == "")
  {
    alert("Indicare un valore valido per il campo \"Phone\" !");
    theForm.phone.focus();
    return (false);
  }
  var checkOK = "0123456789-,.";
  var checkStr = theForm.phone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ",")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ".")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Inserire solo caratteri numerici nel campo \"Phone\" !");
    theForm.phone.focus();
    return (false);
  }
  if (decPoints > 1)
  {
    alert("Indicare un valore valido per il campo \"Phone\" !");
    theForm.phone.focus();
    return (false);
  }
  if (theForm.fax.value == "")
  {
    alert("Indicare un valore valido per il campo \"Fax\" !");
    theForm.fax.focus();
    return (false);
  }
  var checkOK = "0123456789-,.";
  var checkStr = theForm.fax.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ",")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch != ".")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Inserire solo caratteri numerici nel campo \"Fax\" !");
    theForm.fax.focus();
    return (false);
  }
  if (decPoints > 1)
  {
    alert("Indicare un valore valido per il campo \"Fax\" !");
    theForm.fax.focus();
    return (false);
  }
  if (theForm.EmailAddress.value == "")
  {
    alert("Indicare un valore valido per il campo \"E-mail Address\" !");
    theForm.EmailAddress.focus();
    return (false);
  }

  return (true);
}

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 MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.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+' deve contenere 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 compreso tra '+min+' e '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+args[i+1]+' \n'; }
  } if (errors) alert('Le seguenti informazioni sono mancanti:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function MA_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MA_validateForm.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+' deve contenere un indirizzo di 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 compreso tra '+min+' e '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+args[i+1]+' \n'; }
  } if (errors) alert('Le seguenti informazioni sono mancanti:\n'+errors);
  document.MA_returnValue = (errors == '');
}

function controlloRadio() {
var test1 = document.FormRMA.accettazione[0].checked;
var test2 = document.FormRMA.accettazione[1].checked;
		if (test1=="") {
			if (test2=="") {
				alert("Indicare se si accettano le informative sulla richiesta di RMA, i costi e le procedure di riparazione.");
			}
		}
} 

var ma=new Array();
var mx=new Array();
var my=new Array();
var mc=new Array();
var mal=0;
var main=0;
var menuw=200;
var psrc=0;
var pname="";
var al="";
var NS6=(!document.all&&document.getElementById);
var NS4=(!document.getElementById);
var IE5=(!NS4&&!NS6&&navigator.userAgent.indexOf('MSIE 5.0')!=-1);
if(navigator.userAgent.indexOf('Opera')!=-1)NS4=1;

function startMainMenu(file,h,w,dir,space,align){if(w>0)menuw=w;main=dir;if(main==1||main==2)document.write("<table border=\"0\" cellspacing=\""+space+"\" cellpadding=\"0\">");if(file!=""){al="";if(align==1)al=" align=\"right\"";if(align==2)al=" align=\"center\"";if(main==1||main==2)document.write("<tr><td"+al+">");document.write("<img src=\""+loc+file+"\" border=\"0\"");if(h>0)document.write(" height=\""+h+"\"");if(w>0)document.write(" width=\""+w+"\"");document.write(" />");if(main==1||main==2)document.write("</td>");if(main==1)document.write("</tr>");if(main==3)document.write("<br></br>");}}

function endMainMenu(file,h,w){if(file!=""){if(main==1)document.write("<tr>");if(main==1||main==2)document.write("<td"+al+">");document.write("<img src=\""+loc+file+"\" border=\"0\"");if(h>0)document.write(" height=\""+h+"\"");if(w>0)document.write(" width=\""+w+"\"");document.write(" />");if(main==1||main==2)document.write("</td></tr>");}if(main==1||main==2)document.write("</table>");main=0;}

function mainMenuItem(name,ext,h,w,url,tar,alt,dir,state,s){if(NS4&&main==0)return;var isgraphic=ext.charAt(0)==".";if(main==1)document.write("<tr>");if(main==1||main==2)document.write("<td"+al+">");document.write("<a ");if(url!=""||!isgraphic)document.write("href=\""+url+"\" ");if(tar!="")document.write("target=\""+tar+"\" ");document.write("onmouseout=\"");if(dir>0)document.write("tidyMenu(event);");document.write("\" onmouseover=\"");if(dir>0)document.write("openMenu(event, '"+name+"',"+dir+","+bc+","+fc+");");if(state>1&&isgraphic){document[name+"_over"]=new Image();document[name+"_over"].src=loc+name+"_over"+ext;document.write("setGraphic(event, '"+loc+name+"_over"+ext+"');");}document.write("return false;\"");if(!isgraphic)document.write(" class=\""+s+"\" style=\"width:"+(w>0?w:menuw)+"px\"");document.write(">");if(isgraphic){document.write("<img src=\""+loc+name+ext+"\" border=\"0\"");if(h>0)document.write(" height=\""+h+"\"");if(w>0)document.write(" width=\""+w+"\"");if(alt!="")document.write(" alt=\""+alt+"\"");document.write(" />");}else{document.write("&nbsp;"+ext+"&nbsp;");}document.write("</a>");if(main==1||main==2)document.write("</td>");if(main==1)document.write("</tr>");if(main==3)document.write("<br></br>");}

function startSubmenu(name,style,sw){if(NS4)return;if(sw>0)menuw=sw;document.write("<div id=\""+name+"\" class=\""+style+"\"  style=\"width:"+(menuw+(NS6?bd*2:0))+"px\">");}

function endSubmenu(name){if(NS4)return;document.write("</div>");if(!NS6)document.getElementById(name).onmouseout=tidyMenu;}

function submenuItem(text,url,tar,s){if(NS4)return;if(text.charAt(0)=='<')document.write(text);else{document.write("<a ");if(url!="")document.write("href=\""+url+"\" ");if(tar!="")document.write("target=\""+tar+"\" ");document.write("class=\""+s+"\" style=\"width:"+menuw+"px\">&nbsp;"+text+"&nbsp;</a>");}}

function setGraphic(event,name){if(NS4)return;psrc=(NS6)?event.target:event.srcElement;pname=psrc.src;if(NS6)event.target.src=name;else event.srcElement.src=name;}

function openMenu(event,id,pos,bc,fc){if(NS4)return;var el,x,y;if(mal>0){el=document.getElementById(ma[mal-1]);if(mx[mal-1]!=el.offsetLeft||my[mal-1]!=el.offsetTop){el.style.left=mx[mal-1];el.style.top=my[mal-1];}tidyMenu(event);}if(NS6){if(mal==0){x=event.target.x-bd;y=event.target.y;dx=event.target.offsetWidth;dy=event.target.offsetHeight;if(typeof(event.target.x)=="undefined"){x=event.target.offsetLeft;y=event.target.offsetTop;}}else{var p=event.target;if(p.nodeName!="A"&&p.parentNode.nodeName=="A")p=p.parentNode;dx=p.offsetWidth;dy=p.offsetHeight;el=document.getElementById(ma[mal-1]);x=el.offsetLeft-bd;y=el.offsetTop+p.offsetTop;}}else{x=event.clientX-event.offsetX+document.body.scrollLeft-document.body.clientLeft;y=event.clientY-event.offsetY+document.body.scrollTop-document.body.clientTop-bd;dx=event.srcElement.offsetWidth;dy=event.srcElement.offsetHeight;if(mal>0)x-=2*bd;}el=document.getElementById(id);if(el&&el.style.visibility!="visible"){if(pos==1){x+=dx;el.style.left=x-el.offsetWidth;el.style.top=y;nspeed=el.offsetWidth/frames;}else if(pos==2){y+=dy;el.style.left=x;el.style.top=y-el.offsetHeight;nspeed=el.offsetHeight/frames;}else if(pos==3){x-=el.offsetWidth;el.style.left=x+el.offsetWidth;el.style.top=y;nspeed=el.offsetWidth/frames;}mx[mal]=x;my[mal]=y;if(NS6||IE5||frames==0){el.style.left=x;el.style.top=y;}if(!IE5)clipMenu(mal,el);el.style.visibility="visible";ma[mal]=id;if(NS6){var p=event.target;if(p.nodeName!="A"&&p.parentNode.nodeName=="A")p=p.parentNode;mc[mal]=p.style;el.onmouseout=tidyMenu;}else{mc[mal]=event.srcElement.style;if(mal>0){mc[mal].backgroundColor=bc;mc[mal].color=fc;}}mal++;}}

function overMenu(x,y){for(i=0;i<mal;i++){var el=document.getElementById(ma[i]);if(el.offsetLeft+el.offsetWidth>x&&el.offsetLeft<=x&&el.offsetTop+el.offsetHeight>y&&el.offsetTop<=y){return ma[i];}}return "";}

function tidyMenu(e){if(NS4)return;if(NS6){t=overMenu(e.pageX,e.pageY);if(t!=""&&(e.target.firstChild==e.relatedTarget||e.target==e.relatedTarget.firstChild))return;}else t=overMenu(event.clientX+document.body.scrollLeft-document.body.clientLeft,event.clientY+document.body.scrollTop-document.body.clientTop);om=0;for(i=0;i<mal;i++){var mail=ma[i].length;if(mail>t.length||t.substring(0,mail)!=ma[i]){var el=document.getElementById(ma[i]);el.style.visibility="hidden";mc[i].backgroundColor="";mc[i].color="";}else{ma[om]=ma[i];mx[om]=mx[i];my[om]=my[i];om++;}}mal=om;if(mal==0&&psrc)psrc.src=pname;}

function animate(){for(i=0;i<mal;i++){var el=document.getElementById(ma[i]);if(el.style.visibility=="visible"){if(el.offsetLeft<mx[i])el.style.left=Math.min(el.offsetLeft+nspeed,mx[i])+"px";if(el.offsetLeft>mx[i])el.style.left=Math.max(el.offsetLeft-nspeed,mx[i])+"px";if(el.offsetTop<my[i])el.style.top=Math.min(el.offsetTop+nspeed,my[i])+"px";clipMenu(i,el);}}if(mal!=0||frames!=0)setTimeout("animate()",50);}

function clipMenu(i,el){if(el.offsetLeft>mx[i])el.style.clip="rect("+(my[i]-el.offsetTop)+"px "+(el.offsetWidth+(mx[i]-el.offsetLeft))+"px "+el.offsetHeight+"px "+0+"px)";else el.style.clip="rect("+(my[i]-el.offsetTop)+"px "+el.offsetWidth+"px "+el.offsetHeight+"px "+(mx[i]-el.offsetLeft)+"px)";}


var delay=100;
var space=100;
var msg="Sistemi servo assistiti allo stato dell'arte per soluzioni di primo piano nel controllo del movimento.";

function scroll_start() {
timed = 0;
scrollGo = false;
i=0;
for (i=0;i<space;i++)
msg=" "+msg;
scrollGo=true;
timerid=window.setTimeout("scrollmsg(0)",delay);
}

function scrollmsg(pos) {
out = "";
scrollGo=false;
if (pos < msg.length)
self.status = msg.substring(pos, msg.length);
else
pos=-1;
++pos;
scrollGo=true;
timerid=window.setTimeout("scrollmsg("+pos+")",delay);
}

