function swapClass(obj, new_style) {
    obj.className = new_style;
}
function go11() {
	first.filters('Alpha').Opacity=100;
}
function down11() {
	first.filters('Alpha').Opacity=50;
}

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("TD");
	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;
	}
}
