var button_on1 = document.createElement('img');
var button_go1 = document.createElement('img');
button_on1.setAttribute('src','images/bhomeo.gif');
button_go1.setAttribute('src','images/bhome.gif');

var button_on2 = document.createElement('img');
var button_go2 = document.createElement('img');
button_on2.setAttribute('src','images/babouto.gif');
button_go2.setAttribute('src','images/babout.gif');

var button_on3 = document.createElement('img');
var button_go3 = document.createElement('img');
button_on3.setAttribute('src','images/bserviceso.gif');
button_go3.setAttribute('src','images/bservices.gif');

var button_on4 = document.createElement('img');
var button_go4 = document.createElement('img');
button_on4.setAttribute('src','images/bsectorso.gif');
button_go4.setAttribute('src','images/bsectors.gif');

var button_on5 = document.createElement('img');
var button_go5 = document.createElement('img');
button_on5.setAttribute('src','images/bcontacto.gif');
button_go5.setAttribute('src','images/bcontact.gif');

onload = function() {
    var nav1x = document.getElementById('nav1');
    if(nav1x) {
        nav1x.onmouseover = function() { this.src='images/bhomeo.gif'; }
        nav1x.onmouseout = function() { this.src='images/bhome.gif'; }
        nav1x.onfocus = function() { this.src='images/bhomeo.gif'; }
        nav1x.onblur = function() { this.src='images/bhome.gif'; }
        nav1x.onclick = function() { this.src='images/bhomeo.gif'; }
	}
//    var nav2 = document.getElementById('nav2');
//    if(nav2) {
//        nav2.onmouseover = function() { this.src='images/babouto.gif'; }
//        nav2.onmouseout = function() { this.src='images/babout.gif'; }
//        nav2.onfocus = function() { this.src='images/babouto.gif'; }
//        nav2.onblur = function() { this.src='images/babout.gif'; }
//        nav2.onclick = function() { this.src='images/babouto.gif';}
//	}
//    var nav3 = document.getElementById('nav3');
//    if(nav3) {
//        nav3.onmouseover = function() { this.src='images/bserviceso.gif'; }
//        nav3.onmouseout = function() { this.src='images/bservices.gif'; }
//        nav3.onfocus = function() { this.src='images/bserviceso.gif'; }
//        nav3.onblur = function() { this.src='images/bservices.gif'; }
//        nav3.onclick = function() { this.src='images/bserviceso.gif'; }
//	}
//    var nav4 = document.getElementById('nav4');
//    if(nav4) {
 //       nav4.onmouseover = function() { this.src='images/bsectorso.gif'; }
 //       nav4.onmouseout = function() { this.src='images/bsectors.gif'; }
 //       nav4.onfocus = function() { this.src='images/bsectorso.gif'; }
 //       nav4.onblur = function() { this.src='images/bsectors.gif'; }
//        nav4.onclick = function() { this.src='images/bsectorso.gif'; }
//	}
//    var nav5 = document.getElementById('nav5');
//    if(nav5) {
//        nav5.onmouseover = function() { this.src='images/bcontacto.gif'; }
//        nav5.onmouseout = function() { this.src='images/bcontact.gif'; }
//        nav5.onfocus = function() { this.src='images/bcontacto.gif'; }
//        nav5.onblur = function() { this.src='images/bcontact.gif'; }
//        nav5.onclick = function() { this.src='images/bcontacto.gif'; }
//}

}

function closem()
{
	document.getElementById('open1').style.display="none";
	document.getElementById('open2').style.display="none";
	document.getElementById('open3').style.display="none";
}
function open1()
{
closem();
document.getElementById('open1').style.display="block";
}
function open2()
{
closem();
document.getElementById('open2').style.display="block";
}
function open3()
{
closem();
document.getElementById('open3').style.display="block";
}


