// browser sniffing
var nn4 = (document.layers) ? true : false;
var ie = (document.all) ? true : false;
var dom = (document.getElementById && !document.all) ? true : false;
	
//browser layer function
function browser(id){
	if(nn4) {
		path = document.layers[id];
	 }
	else if(ie) {
		path = document.all[id];
	}
	else {
		path = document.getElementById(id);
	}
	return path  //return the path to the css layer depending on which browser is looking at the page
}
	
// write the content
function writeContent(id) {
	var layer = browser(id)  //get path to layer using global browser function
	//var content = "HELLO WORLD";	

	if(nn4) {	
		layer.document.open();
		layer.document.write(content); //write content to layer
		layer.document.close();
	}
	else {		     
		layer.innerHTML = content; //write content to layer
	}
}
