agent = navigator.userAgent;
yes = 0;
if(agent.substring(0,7) == "Mozilla")
{
  if( parseInt(agent.substring(8,9)) >= 3)
  {
	yes = 1;
  }
}

if(yes)
{
	pm0n = new Image();
	pm0n.src = "../images/nm0.gif";
	pm0h = new Image();
	pm0h.src = "../images/nam0.gif";
																
	pm1n = new Image();
	pm1n.src = "../images/nm1.gif";
	pm1h = new Image();
	pm1h.src = "../images/nam1.gif";
																																		
	pm2n = new Image();
	pm2n.src = "../images/nm2.gif";
	pm2h = new Image();
	pm2h.src = "../images/nam2.gif";
																		
	pm3n = new Image();
	pm3n.src = "../images/nm3.gif";
	pm3h = new Image();
	pm3h.src = "../images/nam3.gif";
																		
	pm4n = new Image();
	pm4n.src = "../images/nm4.gif";
	pm4h = new Image();
	pm4h.src = "../images/nam4.gif";
																		
	pm5n = new Image();
	pm5n.src = "../images/nm5.gif";
	pm5h = new Image();
	pm5h.src = "../images/nam5.gif";
	
	pm7n = new Image();
	pm7n.src = "../images/nm7.gif";
	pm7h = new Image();
	pm7h.src = "../images/nam7.gif";
	
	pm8n = new Image();
	pm8n.src = "../images/nm8.gif";
	pm8h = new Image();
	pm8h.src = "../images/nam8.gif";
}
 
function CI(imgNum,imgName) 
{
  if(yes)
  {
    document.images[imgNum].src = eval(imgName + ".src")
  }
} 

function modifyEmails() {
  for(var i=document.getElementsByName("a").length-1; i>=0;i--){
    str=document.getElementsByName("a")[i].parentNode.innerHTML.replace(/<img.+?>/ig,"\@").replace(/<.+?>/ig,"");
    document.getElementsByName("a")[i].parentNode.innerHTML="<a href='mailto:"+str+"'>"+str+"</a>";
  }
}


