function showDlnr( id ) {
	var target = document.getElementById( 'dnr' + id ) ;
	var arrow = document.getElementById( 'imgdnr' + id ) ;
	
	if ( target.style.display == 'none' ) {
		target.style.display = 'block' ;
		arrow.src = 'graphics/arrow_b.gif' ;
	} else {
		target.style.display = 'none' ;
		arrow.src = 'graphics/arrow_r.gif' ;
	} ;
} ;

function showTab( id ) {
	if ( window.activeTAB == null ) {
		window.activeTAB = window._searchActiveTab() ;
		
		if ( window.activeTAB == null ) {
			return ;
		} ;
	} ;
	
	if ( window.activeTAB == id ) {
		return ;
	} ;
	
	document.getElementById( 'tab_' + window.activeTAB + '_content' ).className = 'contenttab' ;
	document.getElementById( 'tab_' + window.activeTAB ).className = 'tab' ;
	document.getElementById( 'tab_' + id + '_content' ).className = 'contenttabActive' ;
	document.getElementById( 'tab_' + id ).className = 'tabActive' ;
	
	window.activeTAB = id ;
} ;

function _searchActiveTab() {
	var _divs = document.getElementsByTagName( 'div' ) ;
	var id ;
	
	for ( var i = 0; i < _divs.length; i++ ) {
		if ( _divs[ i ].className == 'contenttabActive' ) {
			id = _divs[ i ].id.replace( 'tab_' , '' ) ;
			id = id.replace( '_content' , '' ) ;
			return id ;
		} ;
	} ;
	
	return null ;
} ;
