/////////////////////////////////////////////////////////////
////	HEADER ROLLOVER		/////////////////////////////////
/////////////////////////////////////////////////////////////
header = new Image();
header.src= "../../images/logo_uncommonSchools.gif";	

header_e = new Image();
header_e.src= "../../images/logo_uncommonSchools_e.gif";	

header_n = new Image();
header_n.src= "../../images/logo_uncommonSchools_n.gif";	

header_c = new Image();
header_c.src= "../../images/logo_uncommonSchools_c.gif";	

header_t = new Image();
header_t.src= "../../images/logo_uncommonSchools_t.gif";	

header_p = new Image();
header_p.src= "../../images/logo_uncommonSchools_p.gif";	

// Function to be activated when 'onmouseover' event occurs... 
function headerAct(imgName,strValue) {
	document[imgName].src = eval(imgName + "_" + strValue + ".src");
}
// Function to be activated when 'onmouseout' event occurs...
function headerInact(imgName) {
	document[imgName].src = header.src;
}

// Function to be activated when 'onmouseout' event occurs...
function headerInact2(imgName,strValue) {
	document[imgName].src = eval(imgName + "_" + strValue + ".src");
}

/////////////////////////////////////////////////////////////
////	ROTATE QUOTES		/////////////////////////////////
/////////////////////////////////////////////////////////////

var number = 0;

function rotateQuotes() {
	// Currently, there are 7 images that rotate. If more images are added, please change the number value below...
   if (++number > 7)  number = 1;
   
   // All images should follow the naming convention of "quote0" + *...
   document['quote'].src = "../../images/quote0" + number + ".gif";
   
   // To manipulate the speed, change the "5000" value...
   window.setTimeout('rotateQuotes();',5000);
}

/////////////////////////////////////////////////////////////
////	RANDOM QUOTES		/////////////////////////////////
/////////////////////////////////////////////////////////////
/*
function randomQuotes() {
	//store the quotations in arrays
	quotes = new Array(6);
	quotes[0] = "../../images/quote01.gif";	
	quotes[1] = "../../images/quote02.gif";	
	quotes[2] = "../../images/quote03.gif";	
	quotes[3] = "../../images/quote04.gif";	
	quotes[4] = "../../images/quote05.gif";	
	quotes[5] = "../../images/quote06.gif";	
	quotes[6] = "../../images/quote07.gif";	
	
	//calculate a random index
	index = Math.floor(Math.random() * quotes.length);
	
	document['quote'].src = quotes[index];
}
*/

/////////////////////////////////////////////////////////////
////	POPUP WINDOW		/////////////////////////////////
/////////////////////////////////////////////////////////////
function pop(strURL,intWidth, intHeight) {
	window.open(strURL,'0','toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width='+intWidth+', height='+intHeight)
}



// "zpop" Function...
var p; 
function zpop(url,id,h,w,mb,tb) { 
p = window.open(url,id,"height="+h+",width="+w+",menubar="+mb+",resizable=yes,toolbar="+tb+",scrollbars=yes"); 
p.window.focus()
} 

function emptyLink() {}


//////////////////////////////////////////////
////////	Show/Hide Control	//////////////
//////////////////////////////////////////////

// 2 variables used here are "A_0" and "A_1". These variables are used in the corresponding <div></div> tag...
// To add multiple blocks on the HTML page, please add more variables such as "B_0", "B_1"...
var p_score_layers = new Array("A_0","A_1");
var p_score_objs = new Array( p_score_layers.length );
function p_score_getObjs()
{
    var p_nObjMax = p_score_layers.length;
    for( p_nCount = 0; p_nCount < p_nObjMax; p_nCount++ )
    {
        p_score_objs[p_nCount] = document.getElementById( p_score_layers[p_nCount] );
    }
}
function p_setMultitap(strValue)
{
 	var p_layerID = strValue;
 
    p_score_objs[0] != null ? "" : p_score_getObjs();
 	if( p_layerID == p_score_objs[0].id )
    {
      	p_score_objs[0].style.display = "";
    	p_score_objs[1].style.display = "none";
    }
    else if( p_layerID == p_score_objs[1].id )
 	{
  		p_score_objs[0].style.display = "none";
  		p_score_objs[1].style.display = "";
 	}
}