replaceImages = new Array(
  'Welcome to myers and co|i/h/welcometomyersandco.gif',
  'About Us|i/h/about_us.gif',
  'Careers|i/h/careers.gif',
  'Commercial Property|i/h/commercial_property.gif',
  'Contact Us|i/h/contact_us.gif',
  'Employment|i/h/employment.gif',
  'Litigation|i/h/litigation.gif',
  'Litigation For Businesses|i/h/litigation_for_businesses.gif',
  'Litigation For Individuals|i/h/litigation_for_individuals.gif',
  'News|i/h/news.gif',
  'Residential Conveyancing|i/h/residential_conveyancing.gif',
  'The Team|i/h/the_team.gif',
  'Wills and Probate|i/h/wills_and_probate.gif',
  'Testimonials|i/h/testimonials.gif',
  'Financial Services|i/h/financial_services.gif',
  
  'Commercial disputes|i/h/commercial_disputes.gif',
  'Construction and Engineering|i/h/construction.gif',
  'Contractual Disputes|i/h/contractual_disputes.gif',
  'Debt recovery|i/h/debt_recovery.gif',
  'Health and Safety|i/h/health_and_safety.gif',
  'Insolvency|i/h/insolvency.gif',
  'Disputes involving intellectual property rights|i/h/int_property_rights.gif',
  'Professional negligence|i/h/professional_negligence.gif',
  'Property disputes|i/h/property_disputes.gif',
  'Debt collection|i/h/debt_collection.gif',
  'Building, construction and engineering disputes|i/h/building_disputes.gif'
  
);

/*
	firdom() version 1.1 (24.11.2003)
	written by Chris Heilmann (http://www.onlinetools.org)
*/
function firdom(){
	if(document.getElementsByTagName && document.createElement){
		for (var l=1;l<=6;l++){
			var h1s=document.getElementsByTagName('h'+l);
			scanandreplace(h1s,'h'+l);
		}
	}
}
function scanandreplace(h1s,tag){
	for(var i=0;i<h1s.length;i++){
		for(var f=0;f<replaceImages.length;f++){
			var chunks=replaceImages[f].split('|');
			var thish1=document.getElementsByTagName(tag)[i];
			if(thish1.firstChild.nodeValue==chunks[0]){
				var newImg=document.createElement('img');			
				newImg.setAttribute('alt',chunks[0]);
				newImg.setAttribute('src',chunks[1]);
				thish1.replaceChild(newImg,thish1.firstChild);
				break;
			}
		}
	}
}
window.onload=firdom;