//<![CDATA[

/** Below deals with the hover box under the General link 

Notes: to initialize, your html body tag should contain a
onload="hide(this);
<body onload="hide(this);">
**/

function hide()
{

        document.getElementById('hover_box_mpc_home_a').style.display='none'; //show data sent message 
        

}

function flip_mpc_home_a()
{
    hide();
    
    if (document.getElementById('hover_box_mpc_home_a').style.display !== 'block') //if it doesnt already show 
    {
        document.getElementById('hover_box_mpc_home_a').style.display='block'; //show data sent message
        document.getElementById('hover_box_mpc_home_a').style.width='134px'; //show data sent message
       
    }
}


/** 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 flip(myID,myLinkID){
	    if (document.getElementById) { /*if can do JS*/
	        /* Hide all panels via JS.*/            
	        document.getElementById('body_playoff_fixtures').style.display='none';
	        document.getElementById('body_player_stats').style.display='none';                
	        document.getElementById('body_awards').style.display='none';
	
	
	        /* Here we do the work   */        
	        link_class_modifier(myLinkID);                          // Do the link changeing
	        document.getElementById(myID).style.display='block';    // Display the chosen panel
	        
	        return false;    
	    }
	    else {  
	        return true; 
	    }
	}
	            
	            
	function link_class_modifier(myLinkID){
	    if (document.getElementById) { /*if can do JS*/
	        /* Set all link styles to link_off via JS.*/            
	        document.getElementById('link_playoff_fixtures').className='link_off';
	        document.getElementById('link_player_stats').className='link_off';         
	        document.getElementById('link_awards').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; 
	    }
	}


/** Below deals with the Group flipping 

Notes: to initialize, your html body tag should contain a
flipGroupStandings('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 flipGroupStandings(myID,myLinkID){
	    if (document.getElementById) { /*if can do JS*/
	        /* Hide all panels via JS.*/            
	        document.getElementById('body_group_a').style.display='none';
	        document.getElementById('body_group_b').style.display='none';
	        document.getElementById('body_group_c').style.display='none';
	        document.getElementById('body_group_d').style.display='none';
	        document.getElementById('body_group_e').style.display='none';
	        document.getElementById('body_group_f').style.display='none';
	        document.getElementById('body_group_g').style.display='none';
	        document.getElementById('body_group_h').style.display='none';       
	        
	
	
	        /* Here we do the work   */        
	        link_class_modifier_GroupStandings(myLinkID);           // Do the link changeing
	        document.getElementById(myID).style.display='block';    // Display the chosen panel
	        
	        return false;    
	    }
	    else {  
	        return true; 
	    }
	}
	            
	            
	function link_class_modifier_GroupStandings(myLinkID){
	    if (document.getElementById) { /*if can do JS*/
	        /* Set all link styles to link_off via JS.*/            
	        document.getElementById('link_group_a').className='link_off';
	        document.getElementById('link_group_b').className='link_off';
	        document.getElementById('link_group_c').className='link_off';
	        document.getElementById('link_group_d').className='link_off';
	        document.getElementById('link_group_e').className='link_off';
	        document.getElementById('link_group_f').className='link_off';
	        document.getElementById('link_group_g').className='link_off';
	        document.getElementById('link_group_h').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; 
	    }
	}            

//]]>
