    
    // Fix flicker in IE6...
    try {
      document.execCommand("BackgroundImageCache", false, true);
    } catch(err) {}
    
    function expandcollapse (postid) { 
       whichpost = document.getElementById(postid); 
       if ( whichpost.className=="postshown" ) { whichpost.className="posthidden"; } 
       else { whichpost.className="postshown"; }       
    } 

    function expandcollapseStories (postid,letter) { 
    
        whichpost = document.getElementById(postid); 
        var status = true;
        var parent = postid.replace("List", "");   
        
        if ( whichpost.className=="postshown" ) { 
            whichpost.className="posthidden"; 
            status = false;
        } else { 
            whichpost.className="postshown";
        }     
   
        
        whichpost = document.getElementById(postid);
        
        if (status == true) {
            whichpost.className="postshown";            
            whichpost = document.getElementById(parent); 
            whichpost.className="selected";  
            getStory(letter);
        } else {
            whichpost.className="posthidden";
            whichpost = document.getElementById(parent); 
            whichpost.className="unselected";              
        }     
        
        whichpost = document.getElementById('writer_'+letter);        
        whichpost.className="selected"; 
                  
    } 
    
    function toggleView (hide,show) { 
       // Hide the first area
       whichpost = document.getElementById(hide); 
       whichpost.className="posthidden";
       // Show the second area
       whichpost = document.getElementById(show); 
       whichpost.className="postshown";
    }     
    
    
    function switchNav(postid) {

        whichpost = document.getElementById(postid); 
        
        var children = whichpost.childNodes;
        
        var parent = whichpost.parentNode;
        var topChildren = parent.childNodes;

        for(var i=0; i < topChildren.length; i++) {            
            if( (topChildren[i].nodeName == "LI") && (topChildren[i].id != whichpost.id) ) {
                var level2 = topChildren[i];
                var level2Children = level2.childNodes;
                
                for(var j=0; j < level2Children.length; j++) {        
                    if (level2Children[j].nodeName == "UL") {
                        level2Children[j].className="posthidden";
                    }    
                }               
            }    
        }        

        for(var x=0; x < children.length; x++) {            
            if(children[x].nodeName == "UL") {
                
                // Make sure we have a className
                if (children[x].className=="") {children[x].className="posthidden";}
            
                if ( children[x].className=="postshown" ) { children[x].className="posthidden"; } 
                else { children[x].className="postshown"; }   
            }    
        }       

    }
