function mOver() {
	if (document.all) {
		var eSrc = window.event.srcElement ;
		if (eSrc.className == "item") {
			window.event.srcElement.className = "highlight";
		}
	}
}

function mOut() {
	if (document.all) {
		var eSrc = window.event.srcElement ;
		if (eSrc.className == "highlight") {
			window.event.srcElement.className = "item";
		}
	}
}

var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))? true : false;
ver4 = (NS4 || IE4) ? true : false;

document.onmouseover = mOver ;
document.onmouseout = mOut ;

isExpanded = false;

function getIndex($1) {
	ind = null;
	for (i=0; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.id == $1) {
			ind = i;
			break;
		}
	}
	return ind;
}

function arrange() {
	nextY = document.layers[firstInd].pageY + document.layers[firstInd].document.height;
	for (i=firstInd+1; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		if (whichEl.visibility != "hide") {
			whichEl.pageY = nextY;
			nextY += whichEl.document.height;
		}
	}
}

function FolderExpand($1,$2) {
//	if (!ver4) return;
ExpandIE($1,$2);
//	if (IE4) { ExpandIE($1,$2) } 
//	else { ExpandNS($1,$2) }
}

function ATxt(chaine) {
/*  parent.frames[0].document.write( chaine + "\n" );*/
  document.writeln( chaine + "\n" );
}

function ExpandIE($1,$2) {
	var Expanda     = document.getElementById($1 + "a");
	var ExpandChild = document.getElementById($1 + "Child");
	var ExpandTree  = document.getElementById($1 + "Tree");

	if (ExpandChild.style.display == "none") {
		ExpandChild.style.display = "block";
		if ($2 == "last") { ExpandTree.src = "../images/lminus.gif"; }
		else { ExpandTree.src = "../images/tminus.gif"; }
	}
	else {
		ExpandChild.style.display = "none";
		if ($2 == "last") { ExpandTree.src = "../images/lplus.gif"; }
		else { ExpandTree.src = "../images/tplus.gif"; }
	}

}
function ExpandNS($1,$2) {
	ExpandChild = document.getElementById("document." + $1 + "Child")
	ExpandTree = document.getElementById("document." + $1 + "Parent.document." + $1 + "Tree")
	if (ExpandChild.visibility == "hide") {
		ExpandChild.visibility = "show";
//		if ($2 == "last") { ExpandTree.src = "../images/lminus.gif"; }
//		else { ExpandTree.src = "../images/tminus.gif"; }
	}
	else {
		ExpandChild.visibility = "hide";
//		if ($2 == "last") { ExpandTree.src = "../images/lplus.gif"; }
//		else { ExpandTree.src = "../images/tplus.gif"; }
	}
	arrange();
}

function showAll() {
	for (i=firstInd; i<document.layers.length; i++) {
		whichEl = document.layers[i];
		whichEl.visibility = "show";
	}
}




