replaceImages = new Array (
	'Biographies|images/title_biographies.gif',
	'Facility|images/title_facility.gif',
	'Philosophy|images/title_philosophy.gif',
	'Questions and Answers|images/title_questions.gif',
	'Before and After|images/title_before.gif',
	'Financial Arrangements|images/title_financial.gif',
	'Contact|images/title_contact.gif',
	'Dr. Amir Larijani DDS|images/title_amir.gif',
	'Dr. John A Aguilera DDS|images/title_john.gif',
	'Dr. Leif Loberg DDS|images/title_leif.gif',
	'Dr. Arian Mowlavi MD|images/title_arian.gif',
	'Intra oral cameras|images/title_intra_oral.gif',
	'Digital X-rays|images/title_digitalx.gif',
	'Digital Photography|images/title_digital_photo.gif',
	'Zoom II|images/title_zoom.gif',
	'Twilight Sedation|images/title_twilight.gif',
	'DVDs and Music|images/title_dvd.gif',
	'Dentures|images/title_dentures.gif',
	'Smile Design (veneers)|images/title_smile_design.gif',
	'Implants|images/title_implants.gif',
	'Inlays/Onlays|images/title_inlays.gif',
	'Lava or Procera Crowns|images/title_lava.gif',
	'Crowns and bridges|images/title_crowns.gif',
	'Tooth colored composite fillings (White Fillings)|images/title_tooth.gif',
	'Invisalign|images/title_invisalign.gif',
	'Sports Guards/TMJ Appliance|images/title_sport.gif',
	'Periodontal Therapy (Gum Therapy)|images/title_periodontal.gif'
	);

function firdom(){
	if(document.getElementsByTagName && document.createElement){
		for (l=1;l<=6;l++){
			h1s=document.getElementsByTagName('h'+l);
			scanandreplace(h1s,'h'+l);
		}
	}
}

function scanandreplace(h1s,tag){
	for(i=0;i<h1s.length;i++){
		for(f=0;f<replaceImages.length;f++){
			chunks=replaceImages[f].split('|');
			thish1=document.getElementsByTagName(tag)[i];
			if(thish1.firstChild.nodeValue==chunks[0]){
				newImg=document.createElement('img');
				newImg.setAttribute('alt',chunks[0])
				newImg.setAttribute('src',chunks[1])
				// or newImg.src=chunks[1];
				thish1.replaceChild(newImg,thish1.firstChild)
			}
		}
	}
}

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

window.onload = function() {
	firdom();
	MM_preloadImages('images/menu_telekommunikation1.gif','images/menu_computer_and_zubehor1.gif','images/menu_unterhaltung_freizeit1.gif','images/menu_geld_finanzierung1.gif','images/menu_gesundheit_wellness1.gif','images/menu_immobilien1.gif','images/menu_internet1.gif','images/menu_jobs_karriere1.gif','images/menu_auto_motor1.gif','images/menu_shopping1.gif','images/menu_sport1.gif','images/menu_reisen1.gif');
	}
// ===========================================================

