
$(document).ready(function(){
 

  $("#odi a").ready(function(){});


    $("#test a").click(function(event){

        $("#odi ").removeClass("iccsubmenu_selected");
        $("#test ").addClass("iccsubmenu_selected");
        document.getElementById("teamTestRank").style.display='block';
        document.getElementById("teamOdiRank").style.display='none';

    });



    $("#odi a").click(function(event){

        $("#test ").removeClass("iccsubmenu_selected");
        $("#odi ").addClass("iccsubmenu_selected");
        document.getElementById("teamTestRank").style.display='none';
        document.getElementById("teamOdiRank").style.display='block';

    });

      $("#batsmen a").click(function(event){

        $("#bowler ").removeClass("playerranking_selected");
        $("#batsmen ").addClass("playerranking_selected");
        document.getElementById("playerBattingRank").style.display='block';
        document.getElementById("playerBowlingRank").style.display='none';

    });



    $("#bowler a").click(function(event){

        $("#batsmen ").removeClass("playerranking_selected");
        $("#bowler ").addClass("playerranking_selected");
        document.getElementById("playerBowlingRank").style.display='block';
        document.getElementById("playerBattingRank").style.display='none';
       

    });




     $("#testbatsmen a").click(function(event){

        $("#testbowler ").removeClass("playerranking_selected");
        $("#testbatsmen ").addClass("playerranking_selected");
        document.getElementById("playerTestBattingRank").style.display='block';
        document.getElementById("playerTestBowlingRank").style.display='none';

    });



    $("#testbowler a").click(function(event){

        $("#testbatsmen ").removeClass("playerranking_selected");
        $("#testbowler ").addClass("playerranking_selected");
        document.getElementById("playerTestBowlingRank").style.display='block';
        document.getElementById("playerTestBattingRank").style.display='none';


    });



    $("#testteamrank a").ready(function(){});


    $("#testteamrank a").click(function(event){

      
        $("#testbattingrank").removeClass("records_menunor_selected");
        $("#testbowlingrank").removeClass("records_menunor_selected");
        $("#testallrank").removeClass("records_menunor_selected");       
        $("#testteamrank").addClass("records_menunor_selected");

        document.getElementById("testteamrank1").style.display='block';
        document.getElementById("testbattingrank1").style.display='none';
        document.getElementById("testbowlingrank1").style.display='none';
        document.getElementById("testallrounderrank1").style.display='none';

    });

 $("#testbattingrank a").click(function(event){
        
        $("#testteamrank").removeClass("records_menunor_selected");
      
        $("#testbowlingrank").removeClass("records_menunor_selected");
        $("#testallrank").removeClass("records_menunor_selected");       
        $("#testbattingrank ").addClass("records_menunor_selected");

        document.getElementById("testbattingrank1").style.display='block';
        document.getElementById("testteamrank1").style.display='none';        
        document.getElementById("testbowlingrank1").style.display='none';
        document.getElementById("testallrounderrank1").style.display='none';

    });

$("#testbowlingrank a").click(function(event){
        
        $("#testteamrank").removeClass("records_menunor_selected");
      
        $("#testallrank").removeClass("records_menunor_selected");       
        $("#testbattingrank ").removeClass("records_menunor_selected");

        $("#testbowlingrank").addClass("records_menunor_selected");

        document.getElementById("testbattingrank1").style.display='none';
        document.getElementById("testteamrank1").style.display='none';        
       
        document.getElementById("testallrounderrank1").style.display='none';
       document.getElementById("testbowlingrank1").style.display='block';

    });

$("#testallrank a").click(function(event){
        
        $("#testteamrank").removeClass("records_menunor_selected");
      
        $("#testbowlingrank").removeClass("records_menunor_selected");
            
        $("#testbattingrank ").removeClass("records_menunor_selected");
         $("#testallrank").addClass("records_menunor_selected");  

        document.getElementById("testbattingrank1").style.display='none';
        document.getElementById("testteamrank1").style.display='none';        
        document.getElementById("testbowlingrank1").style.display='none';
        document.getElementById("testallrounderrank1").style.display='block';

    });





$("#oditeamrank a").ready(function(){});


    $("#oditeamrank a").click(function(event){

      
        $("#odibattingrank").removeClass("records_menunor_selected");
        $("#odibowlingrank").removeClass("records_menunor_selected");
        $("#odiallrank").removeClass("records_menunor_selected");       
        $("#oditeamrank").addClass("records_menunor_selected");

        document.getElementById("oditeamrank1").style.display='block';
        document.getElementById("odibattingrank1").style.display='none';
        document.getElementById("odibowlingrank1").style.display='none';
        document.getElementById("odiallrounderrank1").style.display='none';

    });

 $("#odibattingrank a").click(function(event){
        
        $("#oditeamrank").removeClass("records_menunor_selected");
      
        $("#odibowlingrank").removeClass("records_menunor_selected");
        $("#odiallrank").removeClass("records_menunor_selected");       
        $("#odibattingrank ").addClass("records_menunor_selected");

        document.getElementById("odibattingrank1").style.display='block';
        document.getElementById("oditeamrank1").style.display='none';        
        document.getElementById("odibowlingrank1").style.display='none';
        document.getElementById("odiallrounderrank1").style.display='none';

    });

$("#odibowlingrank a").click(function(event){
        
        $("#oditeamrank").removeClass("records_menunor_selected");
      
        $("#odiallrank").removeClass("records_menunor_selected");       
        $("#odibattingrank ").removeClass("records_menunor_selected");

        $("#odibowlingrank").addClass("records_menunor_selected");

        document.getElementById("odibattingrank1").style.display='none';
        document.getElementById("oditeamrank1").style.display='none';        
       
        document.getElementById("odiallrounderrank1").style.display='none';
       document.getElementById("odibowlingrank1").style.display='block';

    });

   $("#odiallrank a").click(function(event){
        
        $("#oditeamrank").removeClass("records_menunor_selected");
      
        $("#odibowlingrank").removeClass("records_menunor_selected");
            
        $("#odibattingrank ").removeClass("records_menunor_selected");
        $("#oditallrank").addClass("records_menunor_selected");  

        document.getElementById("odibattingrank1").style.display='none';
        document.getElementById("oditeamrank1").style.display='none';        
        document.getElementById("odibowlingrank1").style.display='none';
        document.getElementById("odiallrounderrank1").style.display='block';

    });

    $("#news1 a").ready(function(){
        $("#news1").removeClass("news_contentheading_onselect");
        $("#news1").addClass("news_contentheading_select");
    });
    $("#news2 a").ready(function(){});

    $("#news3 a").ready(function(){});

    $("#news4 a").ready(function(){});



    $("#news1 a").mouseover(function(event){     
       
        $("#news2").removeClass("news_contentheading_select");
        $("#news3").removeClass("news_contentheading_select");       
        $("#news4").removeClass("news_contentheading_select");
        $("#news1").addClass("news_contentheading_select");

        document.getElementById("1").style.display='block';
        document.getElementById("2").style.display='none';
        document.getElementById("3").style.display='none';
        document.getElementById("4").style.display='none';

    });
   
  
    $("#news2 a").mouseover(function(event){     
        
        $("#news1").removeClass("news_contentheading_select");
        $("#news3").removeClass("news_contentheading_select");       
        $("#news4").removeClass("news_contentheading_select");
        $("#news2").addClass("news_contentheading_select");
        document.getElementById("2").style.display='block';
        document.getElementById("1").style.display='none';       
        document.getElementById("3").style.display='none';
        document.getElementById("4").style.display='none';
       

    });
   $("#news3 a").mouseover(function(event){     
       
        $("#news1").removeClass("news_contentheading_select");
        $("#news2").removeClass("news_contentheading_select");       
        $("#news4").removeClass("news_contentheading_select");
        $("#news3").addClass("news_contentheading_select");
        document.getElementById("3").style.display='block';
        document.getElementById("1").style.display='none';       
        document.getElementById("2").style.display='none';
        document.getElementById("4").style.display='none';
       

    });
     $("#news4 a").mouseover(function(event){
       
        $("#news1").removeClass("news_contentheading_select");
        $("#news2").removeClass("news_contentheading_select");       
        $("#news3").removeClass("news_contentheading_select");
        $("#news4").addClass("news_contentheading_select");
        document.getElementById("4").style.display='block';
        document.getElementById("1").style.display='none';       
        document.getElementById("2").style.display='none';
        document.getElementById("3").style.display='none';
       

    });

$("#battinghighest a").ready(function(){
       
    });
    $("#battinghighest a").click(function(event){

        $("#battingscore").removeClass("records_menunor_selected");
        $("#battingaverages").removeClass("records_menunor_selected");
        $("#batting50 ").removeClass("records_menunor_selected");
        $("#batting100 ").removeClass("records_menunor_selected");
        $("#battinghighest").addClass("records_menunor_selected");

        document.getElementById("battingscore1").style.display='none';
        document.getElementById("battingaverages1").style.display='none';
        document.getElementById("batting501").style.display='none';
        document.getElementById("batting1001").style.display='none';
        document.getElementById("battinghighest1").style.display='block';

    });

    $("#battingscore a").click(function(event){

        $("#battingscore").addClass("records_menunor_selected");

        $("#battingaverages").removeClass("records_menunor_selected");

        $("#batting50 ").removeClass("records_menunor_selected");
        $("#batting100 ").removeClass("records_menunor_selected");
        $("#battinghighest").removeClass("records_menunor_selected");

        
        document.getElementById("battingaverages1").style.display='none';
        document.getElementById("batting501").style.display='none';
        document.getElementById("batting1001").style.display='none';
        document.getElementById("battinghighest1").style.display='none';
        document.getElementById("battingscore1").style.display='block';

    });
    $("#battingaverages a").click(function(event){

        $("#battingscore").removeClass("records_menunor_selected");
        $("#battingaverages").addClass("records_menunor_selected");
        $("#batting50 ").removeClass("records_menunor_selected");
        $("#batting100 ").removeClass("records_menunor_selected");
        $("#battinghighest").removeClass("records_menunor_selected");

        document.getElementById("battingscore1").style.display='none';        
        document.getElementById("batting501").style.display='none';
        document.getElementById("batting1001").style.display='none';
        document.getElementById("battinghighest1").style.display='none';
        document.getElementById("battingaverages1").style.display='block';

    });
    $("#batting50 a").click(function(event){

        $("#battingscore").removeClass("records_menunor_selected");
        $("#battingaverages").removeClass("records_menunor_selected");
        $("#batting50 ").addClass("records_menunor_selected");
        $("#batting100 ").removeClass("records_menunor_selected");
        $("#battinghighest").removeClass("records_menunor_selected");

        document.getElementById("battingscore1").style.display='none';
        document.getElementById("battingaverages1").style.display='none';        
        document.getElementById("batting1001").style.display='none';
        document.getElementById("battinghighest1").style.display='none';
        document.getElementById("batting501").style.display='block';

    });
    $("#batting100 a").click(function(event){

        $("#battingscore").removeClass("records_menunor_selected");
        $("#battingaverages").removeClass("records_menunor_selected");
        $("#batting50 ").removeClass("records_menunor_selected");
        $("#batting100 ").addClass("records_menunor_selected");
        $("#battinghighest").removeClass("records_menunor_selected");

        document.getElementById("battingscore1").style.display='none';
        document.getElementById("battingaverages1").style.display='none';
        document.getElementById("batting501").style.display='none';        
        document.getElementById("battinghighest1").style.display='none';
        document.getElementById("batting1001").style.display='block';

    });
    $("#bowlingbest a").ready(function(){

    });

    $("#bowlingbest a").click(function(event){

        $("#bowlingbest").addClass("records_menunor_selected");
        $("#bowlingleading").removeClass("records_menunor_selected");
        $("#bowlingeconomical ").removeClass("records_menunor_selected");
        $("#bowlingexpensive ").removeClass("records_menunor_selected");
       

        document.getElementById("bowlingbest1").style.display='block';
        document.getElementById("bowlingleading1").style.display='none';
        document.getElementById("bowlingeconomical1").style.display='none';
        document.getElementById("bowlingexpensive1").style.display='none';
       

    });

    $("#bowlingleading a").click(function(event){

        $("#bowlingbest").removeClass("records_menunor_selected");
        $("#bowlingleading").addClass("records_menunor_selected");
        $("#bowlingeconomical ").removeClass("records_menunor_selected");
        $("#bowlingexpensive ").removeClass("records_menunor_selected");


        document.getElementById("bowlingbest1").style.display='none';
        document.getElementById("bowlingleading1").style.display='block';
        document.getElementById("bowlingeconomical1").style.display='none';
        document.getElementById("bowlingexpensive1").style.display='none';


    });


    $("#bowlingeconomical a").click(function(event){

        $("#bowlingbest").removeClass("records_menunor_selected");
        $("#bowlingleading").removeClass("records_menunor_selected");
        $("#bowlingeconomical ").addClass("records_menunor_selected");
        $("#bowlingexpensive ").removeClass("records_menunor_selected");


        document.getElementById("bowlingbest1").style.display='none';
        document.getElementById("bowlingleading1").style.display='none';
        document.getElementById("bowlingeconomical1").style.display='block';
        document.getElementById("bowlingexpensive1").style.display='none';


    });
    $("#bowlingexpensive a").click(function(event){

        $("#bowlingbest").removeClass("records_menunor_selected");
        $("#bowlingleading").removeClass("records_menunor_selected");
        $("#bowlingeconomical ").removeClass("records_menunor_selected");
        $("#bowlingexpensive ").addClass("records_menunor_selected");


        document.getElementById("bowlingbest1").style.display='none';
        document.getElementById("bowlingleading1").style.display='none';
        document.getElementById("bowlingeconomical1").style.display='none';
        document.getElementById("bowlingexpensive1").style.display='block';


    });



$("#fieldingcatches a").ready(function(){

    });
    $("#fieldingcatches a").click(function(event){

        $("#fieldingcatches").addClass("records_menunor_selected");
        $("#fieldingdismissals ").removeClass("records_menunor_selected");
        document.getElementById("fieldingcatches1").style.display='block';
        document.getElementById("fieldingdismissals1").style.display='none';


    });

     $("#fieldingdismissals a").click(function(event){

        $("#fieldingcatches").removeClass("records_menunor_selected");
        $("#fieldingdismissals ").addClass("records_menunor_selected");
        document.getElementById("fieldingcatches1").style.display='none';
        document.getElementById("fieldingdismissals1").style.display='block';


    });



});




































function viewrank(data){
    if(data==0){
         document.getElementById('player_odi').style.display='block';
         document.getElementById('player_test').style.display='none';
    }
    else{
       document.getElementById('player_odi').style.display='none';
       document.getElementById('player_test').style.display='block';
    }
    
}
function showplayer(arg)
{

    var aryTest =['2','3','4'];
 
    if(arg==1)
    {
        for (i=0;i<aryTest.length;i++)
        {
            document.getElementById(aryTest[i]).style.display='none';
        }
        document.getElementById(arg).style.display='block';
    }
    else
    {
        for (i=0;i<aryTest.length;i++)
        {
            document.getElementById(aryTest[i]).style.display='none';
        }
        document.getElementById(1).style.display='none';
        document.getElementById(arg).style.display='block';
 
    }

}

