//
// (c) Scripts en bijbehorende stylesheets en HTML-code:
//     LIQUA Tekst & Vormgeving, ir. Walter Goyen, www.liqua.nl
//


if (top.frames.length <1)
	{top.location.href= "../index.htm"} ;


function show(w,object) 
{
    if (w.document.layers && w.document.layers[object] != null)
        w.document.layers[object].visibility = 'visible';
    else if (document.all)
        w.document.all[object].style.visibility = 'visible';
}

function hide(w,object) 
{
    if (w.document.layers && w.document.layers[object] != null)
        w.document.layers[object].visibility = 'hidden';
    else if (document.all)
        w.document.all[object].style.visibility = 'hidden';
} 

function ShowMenu() 		
{ 
	show(top.menuhome,'menu'); 
}

function HideMenu() 		
{ 
	hide(top.menuhome,'menu');
}

function ShowNoText()
{ 
	SetVarTxt('', false );
}

function ShowTextMetMenuHome( MyTxt )
{ 
	SetVarTxt( MyTxt, false );
}

function ShowTextZonderMenuHome( MyTxt )
{ 
	SetVarTxt( MyTxt, true );
}

function SetVarTxt( varTxt, bUseHomeMenu )
{
	objVarTxt = top.menuhome.document.all["ID_varTxt"];
	
	// Maak de text
	MyInnerHTML = "<b class=\"menubalk";
	if( bUseHomeMenu )
	{
		HideMenu();		
		MyInnerHTML += "2";
	}
	else
	{
		ShowMenu();
	}
	MyInnerHTML = MyInnerHTML + "\">" + varTxt + "</b>";
	
	// Set de tekst
	objVarTxt.innerHTML = MyInnerHTML;
}



function zetmenuboven(optie, toestand) {
	identity=top.bovenmenu.document.getElementById(optie);
	identity.className=toestand;
} 
function zetmenuonder(optie, toestand) {
	identity=top.ondermenu.document.getElementById(optie);
	identity.className=toestand;
} 

function zetheelmenu(toestand) {
	zetmenuboven ('button1',toestand); 
	zetmenuboven ('button2',toestand);
	zetmenuboven ('button3',toestand);
	zetmenuboven ('button4',toestand);
	zetmenuboven ('button5',toestand);
	zetmenuonder ('button1',toestand);
	zetmenuonder ('button2',toestand);
	zetmenuonder ('button3',toestand);
	zetmenuonder ('button4',toestand);
}

function selectboven(optie, toestand) {
	zetheelmenu ('uit');
	zetmenuboven (optie, toestand);
}

function selectonder(optie, toestand) {
	zetheelmenu ('uit');
	zetmenuonder (optie, toestand);
}
