/*Sample Rankings*/
/*Rankings= new Array ("Sport|Rank|C or F","MWP| 9|C","MVB|10|F","WBB|19|F")*/

Rankings= new Array ("MWP| 7|F", "MS|8|F", "MBB*|10|C", "WCC|26|F", "WWP|17|C", "MVB|13|C" )

/*Just to change the length*//*Just to change the length*//*Just to change the length*//*Just to change the length*//*Just to change the length*/

function WrRankings() {
  if (navigator.appVersion.indexOf("MSIE 4") == -1){
	CurRank=document.getElementById("Rk0405");
	if(document.location.href.indexOf("ezboard")!=-1) {
		var CRContents='<div align="center" class="Gauchorankings"><table></tr><td width="140px"><b>National Rankings:</b></td>';
	} else if(document.location.href=="http://www.gaucholocos.com/"||document.location.href=="http://www.gaucholocos.com/index.html"||document.location.href=="http://www.gaucholocos.com/test/"||document.location.href=="http://www.gaucholocos.com/test/index.html") {
		var CRContents='<table></tr><td id="rk_lbl"><b>Gaucho National Rankings:</b></td>';
	} else {
		var CRContents='<div align="center" class="Gauchorankings"><table></tr>';
	}
	var PartRk=new Array();
	var Sport="";
	var SportRk="";
	var CurrFlag="";
	var RankPerLine=Rankings.length==4?4:3;
	for(n=0;n<Rankings.length;n++) {
		PartRk=Rankings[n].split("|");
		Sport=PartRk[0];
		SportRk=PartRk[1];
		CurrFlag=PartRk[2];
		if(CurrFlag=="C") {
			CRContents+='<td>'+Sport+':</td><td class="glow" nowrap><a href="http://www.gaucholocos.com/getLoco/rankings.html"># '+SportRk+'</a></td>';
		} else {
			CRContents+='<td>'+Sport+':</td><td class="glow" nowrap># '+SportRk+'</td>';
		}
		if((n+1)/RankPerLine==parseInt((n+1)/RankPerLine)) {
			CRContents+="</tr><tr><td width='140px'></td>";
		}
	}
	CRContents+="</tr></table>";
	if(document.location.href.indexOf("ezboard")!=-1) {
		CRContents='<table width="100%"><tr><td width="12%"></td><td>'+CRContents+'</td><td width="0px"></td></tr></table>';
	}
	if(document.location.href=="http://www.gaucholocos.com/"||document.location.href=="http://www.gaucholocos.com/index.html"||document.location.href=="http://www.gaucholocos.com/test/"||document.location.href=="http://www.gaucholocos.com/test/index.html") {

	} else {
		CRContents+='</div>';
	}
	CurRank.innerHTML=CRContents;
  }
}
