m1_on=new Image;
m1_on.src="img/menu_01.gif";
m1_off=new Image;
m1_off.src="img/menu_00.gif";

m2_on=new Image;
m2_on.src="img/menu_11.gif";
m2_off=new Image;
m2_off.src="img/menu_10.gif";

m3_on=new Image;
m3_on.src="img/menu_21.gif";
m3_off=new Image;
m3_off.src="img/menu_20.gif";

m4_on=new Image;
m4_on.src="img/menu_31.gif";
m4_off=new Image;
m4_off.src="img/menu_30.gif";

m5_on=new Image;
m5_on.src="img/menu_41.gif";
m5_off=new Image;
m5_off.src="img/menu_40.gif";

m6_on=new Image;
m6_on.src="img/menu_51.gif";
m6_off=new Image;
m6_off.src="img/menu_50.gif";


function on(name) {
document[name].src=eval(name + "_on.src");
}

function off(name){
document[name].src=eval(name + "_off.src");
}


function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, true); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}

function hideFocusBorders(){
var theahrefs = document.getElementsByTagName("a");
if (!theahrefs){return;}
for(var x=0;x!=theahrefs.length;x++){
theahrefs[x].onfocus = function stopLinkFocus(){this.hideFocus=true;};
}
}

addEvent(window, 'load', hideFocusBorders);

