<!--
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  MM_reloadPage(true);
}

function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}


function regenerate(){
window.location.reload()
}

function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",450)
}
}
// function changetext - for classes
function ch(whichc1){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML=whichc1
}
else if (document.layers){
document.d1.document.d2.document.write(whichc1)
document.d1.document.d2.document.close()
}

}

function appear(){
document.d1.visibility='show'
}

// end of 1
function regenerate_two(){
window.location.reload()
}
function regenerate2_two(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate_two",450)
}
}
// function changetext2 - for sections
function ch2(whichc2){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions2"):document.all.descriptions2
cross_el.innerHTML=whichc2
}
else if (document.layers){
document.d3.document.d4.document.write(whichc2)
document.d3.document.d4.document.close()
}

}

function appear2(){
document.d3.visibility='show'
}
function regenerate_two(){
window.location.reload()
}
function regenerate2_two(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate_two",450)
}
}

///
function regenerate_three(){
window.location.reload()
}

function regenerate2_three(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate_three",450)
}
}
// function changetext - for classes
function ch3(whichc3){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions3"):document.all.descriptions3
cross_el.innerHTML=whichc3
}
else if (document.layers){
document.d5.document.d6.document.write(whichc3)
document.d5.document.d6.document.close()
}

}

function appear3(){
document.d5.visibility='show'
}

function initPrimary()
{
	vCtlPri.length = 0;
	for ( var i=0; i<selData.length; i++ )
	{
		vCtlPri.options[i] = new Option( selData[i][1], selData[i][0] );
	}
	
	if (loading && initPri != 0) {
		idx = getSelectorIndex( selData, initPri );
		if ( idx != null )
			vCtlPri.selectedIndex = idx;
	}
	
	initSecondary();
}

function initSecondary()
{
	//This happens when the page is first loaded or when an item in the Primary Menu is selected 
	// Fill up secondary selector with labels/values
	/* var priIndex = vCtlPri.selectedIndex;
	// vCtlSec.length = 0;

	if (priIndex > 0 && selData[ priIndex ][2].length > 0)
	{
		for ( var i=0; i<selData[ priIndex ][2].length; i++ )
		{
			vCtlSec.options[i] = new Option( selData[ priIndex ][2][i][1], selData[ priIndex ][2][i][0] );
		}
		if ( loading && initSec != 0)
		{
			idx = getSelectorIndex( selData[ priIndex ][2], initSec );
			if ( idx != null )
				vCtlSec.selectedIndex = idx;
		}

		secondaryVisibility("visible");
	} else {
		secondaryVisibility("hidden");
		/*if ( !loading )
			selectorGo();*/
	//}
	loading = false;
}

function secondaryVisibility(show) {
	/* vCtlSec.style.visibility = show;
	if (!show)
	  vCtlSec.selectedIndex = noAction;*/
}

function primaryChanged() {
	//This happens when an item in the Secondary Menu is selected
	if ( vCtlPri.options[ vCtlPri.selectedIndex ].value != noAction ) {
		initSecondary();
	}
}

function getSelectorIndex( ar, val ) {
	for ( i=0; i<ar.length; i++ ) {
		if ( ar[i][0] == val ) {
			return i;
			break;
		}
	}
	return null;
}

//-->

