nn4=(document.layers)?true:false;
ie4=(document.all)?true:false;
niemac=(navigator.appVersion.indexOf("Macintosh")==-1);
ie4=ie4 && niemac;
v4 = ie4 || nn4;

isExpanded=false;
function reDo(){window.location.reload()}

function getIndex(el) {
	var ind=null;
	for (i=0; i<document.layers.length; i++) {
		whichEl=document.layers[i];
		if (whichEl.id==el) {
			ind=i;
			break;
		}
	}
	return ind;
}

function expandIt(el) {
	if (!v4) {return}
	if (nn4) {expandNN(el); 
	//moveTo("stopka",-5,oknoH-70);
	} else {

		isOpen= 1;

		whichEl=eval(el + "Child");

		if (!whichEl.isExpanded) { 
			isOpen = 1;
		} else {
			isOpen = 2;
		}

		closeAll();

		if (isOpen == 1) { 
			whichEl.style.display="block";
			whichEl.isExpanded=true;
		} else {
			whichEl.style.display="none";
			whichEl.isExpanded=false;
		}
	}
}


function closeAll() {
	divColl=document.all.tags("DIV");
	for (i=0; i<divColl.length; i++) {
		if (divColl(i).className == "child") {
			divColl(i).style.display="none";
			divColl(i).isExpanded=false;
		}
	}
}

function expandIE(el) { 
	whichEl=eval(el + "Child");
	if (!whichEl.isExpanded) { 
		whichEl.style.display="block";
		whichEl.isExpanded=true;
	} else {
		whichEl.style.display="none";
		whichEl.isExpanded=false;
	}
}

function expandNN(el) {
	whichEl= document.layers[el + "Child"];
	if (whichEl.visibility == "hide") {
		whichEl.visibility="show";
		whichEl.isExpanded=true;
	} else {
		whichEl.visibility="hide";
		whichEl.isExpanded=false;
	}
}

//*******************************************************************************************

function over1(){
 event.srcElement.style.color="#980000";
 r2.background='../pictures/menu_l.gif'}
 
function out1(){
 event.srcElement.style.color="White";
 r2.background='../pictures/menu_l.jpg'}
 
 function over2(){
 event.srcElement.style.color="#980000";
 r3.background='../pictures/menu_l.gif'}
 
function out2(){
 event.srcElement.style.color="White";
 r3.background='../pictures/menu_l.jpg'}
 
 function over3(){
 event.srcElement.style.color="#980000";
 r4.background='../pictures/menu_l.gif'}
 
function out3(){
 event.srcElement.style.color="White";
 r4.background='../pictures/menu_l.jpg'}
 
 function over4(){
 event.srcElement.style.color="#980000";
 r5.background='../pictures/menu_l.gif'}
 
function out4(){
 event.srcElement.style.color="White";
 r5.background='../pictures/menu_l.jpg'}
