
/*
	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])
				newImg.setAttribute('border',"0")
				// or newImg.src=chunks[1];
				thish1.replaceChild(newImg,thish1.firstChild)
				break;
			}
		}
	}
}
window.onload=firdom;
replaceImages = new Array(	//this is case sensitive!!!
		
		'Your Images|../images/headers/yourimages.gif',
		'Custom Art|../images/headers/customarttemplates.gif',
		'Colour Matching|../images/headers/colourmatching.gif',
		
		//Gallery
		'Gallery|../images/headers/gallery.gif',
		
		//Products
		'Canvas Wraps|../images/headers/canvaswraps.gif',
		'framed prints|../images/headers/framedprints.gif',
		'MDF Block Mount|../images/headers/mdfblockmount.gif',
		'Foamex Block Mount|../images/headers/foamexblockmount.gif', 
		'Acrylic Block Mount|../images/headers/acrylicblockmount.gif',
		'digital acrylic printing|../images/headers/digitalacrylic.gif',
		'Transparent Acrylic Print|../images/headers/transparent.gif',
		'Acrylic Sandwich|../images/headers/acrylicsandwich.gif',
		'Acrylic Desktop Block|../images/headers/acrylicdesktopblock.gif',
		'Acrylic Desktop Frame|../images/headers/acrylicdesktopframe.gif',
		'Acrylic Fotoslot|../images/headers/acrylicfotoslot.gif',
		'Acrylic Fotoblok|../images/headers/acrylicfotoblok.gif',
		'Large Photo Prints|../images/headers/largeprints.gif',
		'Metallic Prints|../images/headers/metallicprints.gif',
		'photo light box|../images/headers/photolightbox.gif',
		'Printed Vinyl Banners|../images/headers/banners.gif',
		'Roller Banner Stands|../images/headers/rollerbanners.gif',
		'Pop Up Display Stands|../images/headers/popupdisplay.gif',
		 
		//display options
		'canvas|../images/headers/canvas.gif',
		
		'perspex float|../images/headers/perspexfloat.gif',
		'block mount|../images/headers/blockmount.gif',
		
		
		//interior products
		'canvas|../images/headers/canvas.gif',
		'cushions|../images/headers/cushions.gif',
		'blinds|../images/headers/blinds.gif',
		'room screens|../images/headers/roomscreens.gif',
		'floormats|../images/headers/doormats.gif',
		'ceramic tiles|../images/headers/ceramictiles.gif',
		'wallpaper|../images/headers/wallpaper.gif',
		'deckchairs|../images/headers/deckchairs.gif',
		'lightboxes|../images/headers/lightboxes.gif',
		
		//about us
		'The Company|../images/headers/thecompany.gif',
		'Terms and Conditions|../images/headers/terms.gif',
		'Gift Tokens|../images/headers/gifttoken.gif',
		'Artist Submissions|../images/headers/artist.gif',
		'Contact Us|../images/headers/contactus.gif' ,
		 
		//faq
		'Frequently Asked Questions|../images/headers/faq.gif',	 
		
		 //imagey corporate
		'Interior Design|../images/headers/interiordesign.gif',
		'Commercial Service|../images/headers/commercialservice.gif',
		'Commission Photography|../images/headers/commissionphotography.gif',
		'Commercial Service|../images/headers/commercialservice.gif',
		
		//order
		'Order|../images/headers/order.gif',
		
		//shopping basket
		'Add to Basket|../images/headers/addtobasket.gif',
		'Your Basket|../images/headers/yourbasket.gif',
		'Checkout|../images/headers/checkout.gif',
		
		'Thank You|../images/headers/thanks.gif'
	);

