<!--

//GET SOME BROWSER VARIABLES GOING
var isIE = (document.all)? true : false;
var isNS = (document.layers)? true : false;
var isDOM = (document.getElementById && !document.all)? true : false;


//MAKE ARRAY OF CELL ID NAMES AND COLORS TO LOOP THRU
var allCells = new Array("cellhome", "#ccff99", "cellmem", "#ffcccc", "cellsub", "#f7f7a9","cellmeet", "#d5eaff", "cellour", "#dbdbff", "cellres", "#cccccc", "cellget", "#ffd4aa", "cellcon", "#c6ffe2");


function swapColor(whichCell)
{
    
    //TURN 'OFF' ALL CELL BACKGROUND COLORS
    for(var i = 0; i < allCells.length;  i += 2)
    {
        if (isDOM)
        {
            document.getElementById(allCells[i]).style.background = "#ffffff";    
        }
        else if (isIE)
        {
            document.all[allCells[i]].style.background = "#ffffff";
        }
        
                
        if (whichCell == allCells[i])
        {  
        
            //SET NEW CELL BACKGROUND COLOR
            if (isDOM)
            {
                document.getElementById(whichCell).style.backgroundColor = allCells[i + 1];    
            }
            else if (isIE)
            {
                document.all[whichCell].style.backgroundColor = allCells[i +1];
            }
    
        
            //SET LEFT CORNER BACKGROUND COLOR
            if (isDOM)
            {      
                document.getElementById("leftBlock").style.backgroundColor  = allCells[i +1];    
            }
            else if (isIE)
            {       
                document.all["leftBlock"].style.backgroundColor  = allCells[i +1];
            }
            
       } 
        
    
    }        
    


}



//-->