scores = new Array(20);
images = new Array(40);
var numTotal=0;
var imgTotal=0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
if (ver4)
 {
    with (document)
    {        
	write("<STYLE TYPE='text/css'>");        
	if (NS4) 
	{            
	write(".father {position:absolute; visibility:visible}");            
	write(".son {position:absolute; visibility:visible}");            
	}        
	else 
	{            
	write(".son {display:none}")        
	}        
	write("</STYLE>");    
	}
	}

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 MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
 
function initIt()
{
	if (!ver4) return;
    if (NS4) 
	{        
		for (i=0; i<document.layers.length; i++) 
		{            
	 		whichEl = document.layers[i];
	 		if (whichEl.id.indexOf("Son") != -1)
	  		whichEl.visibility = "hide";
	     }
		arrange();
	}
	else
	{
        divColl = document.all.tags("DIV");
		for (i=0; i<divColl.length; i++) 
		{
            whichEl = divColl(i);
			if (whichEl.className == "son")
			 whichEl.style.display = "none"; 
		}
    }
}
			
			
function expandIt(el)
{
	if (!ver4) return;
	if (IE4)
	{ 
		whichEl1 = eval(el + "Son");
		for(i=1;i<=numTotal;i++)
		{			
			whichEl = eval(scores[i] + "Son");
			if(whichEl!=whichEl1) 
			{	
				whichEl.style.display = "none";	
			}
		}       
		whichEl1 = eval(el + "Son");
		if (whichEl1.style.display == "none") 
		{           
			whichEl1.style.display = "block";       
		}      
	} 
	else 
	{   
		whichEl = eval("document." + el + "Son");	
		for(i=1;i<=numTotal;i++)
		{	
			whichEl = eval("document." + scores[i] + "Son");		
			if(whichEl!=whichEl1) 
			{				
				whichEl.visibility = "hide";			
			}		
		}  
		if (whichEl.visibility == "hide")
		{       
			whichEl.visibility = "show"; 
		}     
		else
		{     
			whichEl.visibility = "hide";  
		}   
			arrange();    
	}
}

