/*/ JavaScript file for the Pearson Education 'FRED' project /*/
/*/ Date: Dec 2006 /*/
/*------ what to do onload of document ------*/
// W3C DOM-standards user agents //
if(window.addEventListener){
window.addEventListener("load",init_page,false);
}
// IE 6 and lower //
else if(window.attachEvent){
window.attachEvent("onload",init_page);
}
/*-------------------------------------------*/
function init_page(){
/*------ remove the 'marching ants' from the specified element type ------*/
stopTheAnts('a');
/*------ find all the hrefs where type = popup and apply the pop-up javascript function ------*/
setPopUps();
/*------ swap the background graphic of a nested line item's parentnode (up 3) -- used for the PDF links ------*/
phoneHome();
/*------ highlight the audio table control cells when hovered over ------*/
highlight();
/*------ uncheck any checkable elements onload of page ------*/
unCheck();
}
//-----------------------------------------------------------------------------
// The following scripts are called from the init_page function //
//-----------------------------------------------------------------------------
/*------ uncheck hidden checkbox controls onload of page ------*/
function unCheck(){
var inputs = document.getElementsByTagName('input');
for(var i=0; i