//<![CDATA[


/** Below deals with the tab flipping on the Prizes page 

Notes: to initialize, your html body tag should contain a
flip('ID_you_want_initially_on','Link_ID_you_want_initially_on');"> declaration, eg:
<body onload="flip('body_player_prizes','link_player_prizes');hide(this);">
**/
function newsFlip (myID1,myLinkID){
    if (document.getElementById) { /*if can do JS*/
        /* Hide all panels via JS.*/            
        document.getElementById('mpc_news_body').style.display='none';        
        document.getElementById('tournament_news_body').style.display='none';        
        document.getElementById('playoffs_news_body').style.display='none';                        
        document.getElementById('bayhill_news_body').style.display='none';                       
        document.getElementById('soccer_news_body').style.display='none';                
                      


        /* Here we do the work   */        
        link_class_modifier_news(myLinkID);                          // Do the link changeing
        
        document.getElementById(myID1).style.display='block';    // Display the chosen panel
        
        return false;    
    }
    else {  
        return true; 
    }
}
            
            
function link_class_modifier_news(myLinkID){
    if (document.getElementById) { /*if can do JS*/
        /* Set all link styles to link_off via JS.*/            
        document.getElementById('link_mpc_news').className='link_off';
        document.getElementById('link_tournament_news').className='link_off';
        document.getElementById('link_playoffs_news').className='link_off';         
        document.getElementById('link_bayhill_news').className='link_off';          
        document.getElementById('link_soccer_news').className='link_off';          

        /* Here we do the work   */        
        document.getElementById(myLinkID).className='link_on';   // Set selected link style to link_on
        return false;    
    }
    else {  
        return true; 
    }
}
            

//]]>
