function printMe(){
	if(!document.getElementById || !document.createElement || !document.createTextNode) return false;
	if(!document.getElementById ("map-container")|| !document.getElementById ("map-image")) return false;
	var printLink = document.createElement("a");
	//bit naughty but if no javascript then it will never be invoked anyway
	printLink.setAttribute("href", "#"); 
	printLink.setAttribute("id", "print");
	var printText = document.createTextNode("PRINT");
	printLink.appendChild(printText);
	var mapContainer = document.getElementById("map-container");
	var mapImage = document.getElementById("map-image");
	mapContainer.insertBefore(printLink, mapImage);
	printLink.onclick = function(){
		window.print(); return false;
	}
}

window.onload = function(){
	printMe();
}
