function showDetail( id, detail ) {
	
	browName = navigator.appName;
	browVerze = parseInt(navigator.appVersion);
	
	var dt = document.getElementById( 'detail'+id );
	var nDiv = document.createElement( 'div' );
	
	css = 'float:left; width:97%; margin-left:5px; text-align:justify;';
	// nastaveni vlastnosti hlavicky
	if (browName=="Microsoft Internet Explorer") {
		nDiv.style.setAttribute('cssText', css, 0);
		dt.onclick = '';
	} else {
		nDiv.setAttribute('style',css);
		nDiv.setAttribute('id',id);
		dt.setAttribute('onclick','hideDetail(\''+id+'\',\''+detail+'\')');
	}
	
	var arrDetail = detail.split('|');
	
	dt.appendChild( nDiv );
	var row;
	var css = 'float:left;width:100%;min-height:13px;';
	for( i = 0; i < arrDetail.length; i++ ) {
		row = document.createElement('span');
		if (browName=="Microsoft Internet Explorer" & browVerze >=4 ) {
			row.style.setAttribute('cssText', css, 0);
		} else {
			row.setAttribute('style',css);
		}
		row.appendChild( document.createTextNode(arrDetail[i]) );
		nDiv.appendChild( row );
	}
}

function hideDetail( id, detail ) {
	
	browName = navigator.appName;
	browVerze = parseInt(navigator.appVersion);
	
	var dt = document.getElementById( id );
	var pdt = dt.parentNode;
	
	pdt.removeChild( dt );
	
	pdt.setAttribute('onclick','showDetail(\''+id+'\',\''+detail+'\')');
	
}
