function addEvent(elm, evType, fn, useCapture){if(elm.addEventListener){elm.addEventListener(evType, fn, useCapture);return true;}else if (elm.attachEvent){var r = elm.attachEvent('on' + evType, fn);return r;}else{elm['on' + evType] = fn;}}
/*
if(window.addEventListener){
   window.addEventListener('load',showlinks,false);
 }
else { 
if(window.attachEvent){
   window.attachEvent('onload',showlinks);
  }
 }

function showlinks() {

lis=document.getElementById('ESWuserMenu').getElementsByTagName('a');

for(c=0;c<lis.length;c++){

	lis[c].onmouseover=function() {
	   input = new RegExp("change me","gi"); 
    output = 'CHANGE ME'; 
    document.body.innerHTML = document.body.innerHTML.replace(input,output); 

	   var tmp = this.innerHTML;
	   this.innerHTML=this.title;
	   this.title=tmp;
	 }

   lis[c].onmouseout=function() {
   var tmp = this.title;
   this.title=this.innerHTML;
   this.innerHTML=tmp;
   }
  }
 }*/
