function beginGenerating() {
	document.write("<script language=\"Javascript\">\n");
	document.write("<!--\n");
}

function generateSetCssScript(name, property) {
	var tmp = property + " = x;";
	document.write("function " + name + "(whichLayer, x) {");
	if (document.getElementById) { // this is the way the standards work
		document.write("document.getElementById(whichLayer).style." + tmp);
	} else if (document.all) { // this is the way old msie versions work
		document.write("document.all[whichlayer].style."  + tmp);
	} else if (document.layers) { // this is the way nn4 works
		document.write("document.layers[whichLayer]." + tmp);
	}
	document.write("}");
}


function endGenerating() {
	document.write("// -->\n");
	document.write("</script>\n");
}


beginGenerating();
generateSetCssScript('setVisibility', 'visibility');
generateSetCssScript('setBgimg', 'backgroundImage');
generateSetCssScript('setCursor', 'cursor');
generateSetCssScript('setLeft', 'left');
generateSetCssScript('setTop', 'top');
generateSetCssScript('setWidth', 'width');
generateSetCssScript('setHeight', 'height');
generateSetCssScript('setColor', 'color');
endGenerating();