function nps_ToggleBox ( id ) {var e=document.getElementById(id);if(e.style.display!="block"){e.style.display="block";}else{e.style.display="none";};return false;}
function nps_ShowBox   ( id ) {var e=document.getElementById(id);e.style.display="block";return false;}
function nps_HideBox   ( id ) {var e=document.getElementById(id);e.style.display="none";return false;}
function nps_GetObj    ( id ) {return document.getElementById(id);}
function nps_SetClass  ( id, class_name) {var e=document.getElementById(id);e.className = class_name;return false;}

var nps_statics = new Array();
function nps_SetTab( tab_id ) {
	var e;
	if ( typeof nps_statics[ 'old_tab_id' ] == 'undefined' ) {
		nps_statics[ 'old_tab_id' ] = 'facts';
	}
	nps_HideBox ( 'tab_page_' + nps_statics[ 'old_tab_id' ]           );
	nps_SetClass( 'tab_leaf_' + nps_statics[ 'old_tab_id' ],       '' );
	nps_ShowBox ( 'tab_page_' + tab_id                                );
	nps_SetClass( 'tab_leaf_' + tab_id,                      'active' );
	e = nps_GetObj( 'tab_leaf_' + tab_id );
	e.blur();
	nps_statics[ 'old_tab_id' ] = tab_id;
	nps_EqualColumns.resetHeights();
	return false;
}
