function eFocus(field){
if (field.value == field.defaultValue){
field.value ='';
}
field.className="BEmail";
}

function eBlur(field){
if (field.value == ''){
field.value = field.defaultValue;
field.className="REmail";
}else{
field.className="BEmail";
}
}
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("button");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
if (document.all&&document.getElementById) {
navRoot = document.getElementById("button2");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
if (document.all&&document.getElementById) {
navRoot = document.getElementById("button3");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
if (document.all&&document.getElementById) {
navRoot = document.getElementById("button4");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

function roll(img_name, img_src)
   {
   document[img_name].src = img_src;
   }

function setBookmark(url,str){
if(str=='')str=url;
if (document.all)window.external.AddFavorite(url,str);
else alert('Press CTRL and D to add a bookmark to:\n"'+url+'".');
} 

function makeNewWindow(content,img,name) {    
	foto1=new Image();    
	foto1.src=(img);    
	if((foto1.width!=0)&&(foto1.height!=0)){    
		CreateWindow(content,img,name);}    
	else {    
	funzione="makeNewWindow('"+content+"','"+img+"','"+name+"')"; 
	intervallo=setTimeout(funzione,100);}
	}
function CreateWindow(content,img,name){    
	largeh=foto1.width+60;    
	altez=foto1.height+130;    
	newWindow = window.open("","sub","status=no,screenx=340,screeny=340,resizable=yes,titlebar=no,alwaysraised=yes,height=" + altez + ",width=" + largeh + ",scrollbars=no")    
	if(!newWindow.opener) {        
		newWindow.opener = window    
	}    
		//    setTimeout("writeToWindow()", 100)
		writeToWindow(content,name)        
		newWindow.focus()
	}
function writeToWindow(wincontent,name) {    
	content = "<html><title>Mcacsystems.com</title><body bgcolor=white leftmargin=10 topmargin=10 offset=10 marginheight=10 marginwidth=10><div align=center>"    
	content = content + wincontent    
	content = content + "<br><br><B><FONT SIZE=2 color='#000099' face='verdana'>"
	content = content + name
        content = content + "</font>"
         content = content + "<br><font size=1 face=verdana><a href=javascript:close()>close window</a></font></div></body></html>"    
	newWindow.document.write(content)    
	newWindow.document.close()}  

function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;