function switchTOC(toc_new){
//alert(toc_new)
    // turn off all table of contents divs
    /*document.getElementById('entrees').style.display = 'none';
    document.getElementById('sandwiches').style.display = 'none';
    document.getElementById('salads_sides_sauces').style.display = 'none';
    document.getElementById('school_egg').style.display = 'none';
    document.getElementById('school_chicken').style.display = 'none';
    */
    // turn on the new table of contents
    var element = document.getElementById(toc_new);
    var testHeight = document.getElementById("whitebody").offsetHeight;
    if (element != null){
        element.className = 'highlighted';
       
        if (testHeight < 635){
        	 //alert(testHeight + " changing to 650");
         document.getElementById("whitebody").style.height = "635px";
         }
        	
    }
        
}

function highlite(){
//    var locate = window.location.toString().split('=')[1];
    var locate = window.location.toString().split(".");
    locate = locate[(locate.length)-2].split("/");
    locate = locate[(locate.length)-1];
    
    if (locate != null){
        switchTOC(locate);
    }
}

function switchTo(display_new){
    document.getElementById('phonics_tt').style.display = 'none';
    document.getElementById('phonemic_awareness_tt').style.display = 'none';
    document.getElementById('games_tt').style.display = 'none';
    document.getElementById('special_activities_tt').style.display = 'none';
	
	document.getElementById(display_new+'_tt').style.display = 'block';

}