function reasonsBG(e){
if(window.event){
   var temp = window.event.srcElement;
}
else{
   var temp = e.target;
}
temp.className = 'newBG';
}

function reasonsBGremove(e){
if(window.event){
  var temp = window.event.srcElement;
}
else {
  var temp = e.target;
}
temp.className = '';
}



function addListeners(){
  for(var i = 3; i < 9; i++){
    var temp2 = document.getElementById('topreasonslink' + i);
    addEvent(temp2, 'mouseover', reasonsBG);
    addEvent(temp2, 'mouseout', reasonsBGremove );
   }
  
   var links = document.getElementsByTagName('a');

   for(var i = 1; i < 6; i++){
      addEvent(links[i], 'mouseover', linksMouseOver);
      addEvent(links[i], 'mouseout', linksMouseOut);
   }

   for(var i = 1; i < 7; i++){
      var temp3 = document.getElementById('td' + i);
      addEvent(temp3, 'mouseover', bottomLinksOver);
      addEvent(temp3, 'mouseout', bottomLinksOut);
    }
}



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 linksMouseOver(e){
if(window.event){
   window.event.srcElement.className = 'linksOverImg';
}

else{
  e.target.className = 'linksOverImg';
  }
}


function linksMouseOut(e){
if(window.event){
   window.event.srcElement.className = 'mainLinks';
}

else{
e.target.className = 'mainLinks';
  }
}



function bottomLinksOver(e){
if(window.event){
   window.event.srcElement.className = 'bottomLinksOver';
}

else{
e.target.className = 'bottomLinksOver';
  }
}

function bottomLinksOut(e){
if(window.event){
   window.event.srcElement.className = 'bottomLinksOut';
}

else{
e.target.className = 'bottomLinksOut';
  }
}


addEvent(window, 'load', addListeners);




if (document.images)
{
  pic1 = new Image(144,47); 
  pic1.src = "buttonmouseover.png"; 
}