<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->



browserName = navigator.appName;

browserVer = parseInt(navigator.appVersion);



ns3up = (browserName == "Netscape" && browserVer >= 3);

ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);



function doPic(imgName) {

if (ns3up || ie4up) {

imgOn = ("" + imgName);

document.mainpic.src = imgOn;

   }

}



function NewWindow(mypage, myname, w, h, scroll) {

var winl = (screen.width - w) / 2;

var wint = (screen.height - h) / 2;

winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

win = window.open(mypage, myname, winprops)

if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}



var l1 =   0; // left of ticker in pixel, or 0 to position relative

var t1 =   0; // top of ticker in pixel, or 0 to position relative

var w1 = 650; // width of ticker in pixel

var ie = document.all ? true : false;

var first = true;

var l2 = l1 + w1;

var l3 = l1 - l2;

var l = l2;

function tickinit() {

if (ie) {

if (l1 == 0 && t1 == 0) {

pos = document.all['tickpos'];

l1 = getLeft(pos);

t1 = getTop(pos);

}

ticktext.style.posTop = t1;

}

else {

if (l1 == 0 && t1 == 0) {

pos = document.anchors['tickpos'];

l1 = pos.x;

t1 = pos.y;

}

document.ticktext.pageY = t1;

}

l2 = l1 + w1;

l3 = l1 - l2;

l = l2;

setInterval('tick()', 1);

}

function getLeft(ll) {

if (ll.offsetParent)

return (ll.offsetLeft + getLeft(ll.offsetParent));

else 

return (ll.offsetLeft);

}

function getTop(ll) {

if (ll.offsetParent)

return (ll.offsetTop + getTop(ll.offsetParent));

else

return (ll.offsetTop);

}

function tick() {

l = l - 0.5;

if (l < l3) l = l2;

cl = l1 - l;

cr = l2 - l;

if (ie) {

ticktext.style.posLeft = l;

ticktext.style.posTop = t1;

ticktext.style.clip = "rect(auto "+cr+"px auto "+cl+"px)";

if (first) ticktext.style.visibility = "visible";

}

else {

document.ticktext.pageX = l;

document.ticktext.clip.left = cl;

document.ticktext.clip.right = cr;

if (first) document.ticktext.visibility = "show";

}

first = false;

}
function CaricaFoto(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+22;
  altez=foto1.height+25;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}

function P7_swapClass(){ //v1.4 by PVII
 var i,x,tB,j=0,tA=new Array(),arg=P7_swapClass.arguments;
 if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);
  for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){
  if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}
  }else if(arg[0]==1 && arg[1]=='none'){if(tA[i].className==arg[2] || tA[i].className==arg[3]){
  tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}
  }else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}
}
function FormStep(step)
{ 
var measure = document.getElementById("measure"); 
var system = document.getElementById("system"); 
var contact = document.getElementById("contact"); 
var step1 = document.getElementById("step1"); 
var step2 = document.getElementById("step2"); 
var step3 = document.getElementById("step3"); 
switch(step) 
{ 
case 1: 
measure.style.display = "block"; 
system.style.display = "none"; 
contact.style.display = "none"; 
step1.style.color = "#333333"; 
step2.style.color = "#333333"; 
step3.style.color = "#333333"; 
step1.style.background = "#F9F0E4"; 
step2.style.background = "#F9F0E4"; 
step3.style.background = "#F9F0E4"; 
break; 
case 2: 
measure.style.display = "none"; 
system.style.display = "block"; 
contact.style.display = "none"; 
step1.style.color = "#F9F0E4"; 
step2.style.color = "#333333"; 
step3.style.color = "#333333"; 
step1.style.background = "#5C6466"; 
step2.style.background = "#F9F0E4"; 
step3.style.background = "#F9F0E4"; 
break; 
case 3: 
measure.style.display = "none"; 
system.style.display = "none"; 
contact.style.display = "block"; 
step1.style.color = "#F9F0E4"; 
step2.style.color = "#F9F0E4"; 
step3.style.color = "#333333"; 
step1.style.background = "#5C6466"; 
step2.style.background = "#5C6466"; 
step3.style.background = "#F9F0E4"; 
break; 
} 
}