function domlay(id,trigger) {
/*
 * Cross browser Layer visibility / Placement Routine
 * Done by Chris Heilmann (info@onlinetools.org)
 * Feel free to use with these lines included!
 * Created with help from Scott Andrews.
 * The marked part of the content change routine is taken
 * from a script by Reyn posted in the DHTML
 * Forum at Website Attraction and changed to work with
 * any layername. Cheers to that!
 * Welcome DOM-1, about time you got included... :)
 */
// Layer visible
if (trigger=="1"){
	if (document.layers) document.layers[''+id+''].visibility = "show"
	else if (document.all) document.all[''+id+''].style.visibility = "visible"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"				
	}
// Layer hidden
else if (trigger=="0"){
	if (document.layers) document.layers[''+id+''].visibility = "hide"
	else if (document.all) document.all[''+id+''].style.visibility = "hidden"
	else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"				
	}
}

function showHideLayers() {
        var i,p,v,obj,args=showHideLayers.arguments;
                for (i=0; i<(args.length-1); i+=2)	{
			domlay( args[i], args[i+1] );
		}
}

