/**
 * Ukrycie lub pokazanie warstwy w zależności od aktualnego stanu widoczności.
 * @param layerId - identyfikator warstwy
 */
function showHideLayerId( layerId ) {
	if ( document.getElementById ) {
		// this is the way the standards work
		var style = document.getElementById(layerId).style;
		style.display = style.display? "":"block";
	} else if (document.all) {
		// this is the way old msie versions work
		var style = document.all[layerId].style;
		style.display = style.display? "":"block";
	} else if (document.layers) {
		// this is the way nn4 works
		var style = document.layers[layerId].style;
		style.display = style.display? "":"block";
	}
}
// -----------------------------------------------------------------------------

/**
 * Ukrycie lub pokazanie warstwy o podanym id.
 */
function showHideLayerValue( layerId, displayValue ) {
	if (document.getElementById) {
		// this is the way the standards work
		var style = document.getElementById(layerId).style;
	} else if (document.all) {
		// this is the way old msie versions work
		var style = document.all[layerId].style;
	} else if (document.layers) {
		// this is the way nn4 works
		var style = document.layers[layerId].style;
	}
	if ( style != null ) {
		style.display = displayValue;
	}
}
// -----------------------------------------------------------------------------

/**
 * Ukrycie warstwy o podanym id.
 */
function hideLayerId( layerId ) {
	showHideLayerValue( layerId, "" );
}
// -----------------------------------------------------------------------------

/**
 * Pokazanie warstwy o podanym id.
 */
function showLayerId( layerId ) {
	showHideLayerValue( layerId, "block" );
}
// -----------------------------------------------------------------------------

/*
// TODO - do raportow - podmiana obrazka ikonki
function showData( layerId ) {
	showLayerId( ( layerId + 'd' ) );
	hideLayerId( ( layerId + 'w' ) );
	
	//layerClasshideLayerId( ( 'i' + layerId + 'w' ), 'show' );
}
// -----------------------------------------------------------------------------
function showChart( layerId ) {
 //ino2w
}
// -----------------------------------------------------------------------------
*/

