/* http://www.digital-web.com/tutorials/tutorial_2000-7.shtml */
/* helpful site :) */

IE = (document.all) ? 1 : 0;
N4 = (document.layers) ? 1 : 0;
W3 = (document.getElementsByTagName("*")) ? 1 : 0;

function showhidelayer(name, action) {
	for (var x = 0; x < (arguments.length - 1); x += 2)	{
		if (IE)
			document.all[arguments[x]].style.display = arguments[x + 1];
		else if (N4)
			document.layers[arguments[x]].display = arguments[x + 1];
		else if (W3) {
			document.getElementById(arguments[x]).style.display = arguments[x + 1];
			if (arguments[x+1] == 'block') {
				var foo = document.getElementById(arguments[x]).firstChild;
				foo.src = foo.src;
			}
		}
	}
}
