
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 arrange() {
    oknoW=document.body.clientWidth;
    oknoH=document.body.clientHeight;
	if(document.layers[firstInd]) {
		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 expandIt(el) {
 expand(el);
	/* expandIE(el); */
}

function expand(el) { 

	try {
		whichEl = document.getElementsByName( el + "Child" )[0];
	}
	catch( e ){	
		whichEl = document.getElementById( el + "Child" ); 	
	}
	if ( !whichEl )
		whichEl = document.getElementById( el + "Child" );
		
	if ( ! whichEl.isExpanded ) { 
		whichEl.style.display="block";
		whichEl.isExpanded=true;
	} 
	else {
		whichEl.style.display="none";
		whichEl.isExpanded=false;
	}
}

function externalLinks()
{
	if ( ! document.getElementsByTagName ) return;
	var anchors = document.getElementsByTagName( "a" );
	for ( var i=0; i < anchors[i].length; i++ )
	{
		var anchor = anchors[i];
		if ( anchor.getAttribute( "href" ) && anchor.getAttribute( "rel" ) )
		{
			anchor.target = "_blank";
			alert( anchor );
		}
	}
}

function expandIE(el) { 

	whichEl = document.getElementsByName( el + "Child" )[0];
	if ( ! whichEl.isExpanded ) { 
		whichEl.style.display="block";
		whichEl.isExpanded=true;
	} 
	else {
		whichEl.style.display="none";
		whichEl.isExpanded=false;
	}
}

s = "<style type='text/css'><!--\n";
s+= ".child { display:none; }\n" ;
s+= "--></style>";

document.write(s);
