// Wisconsin RFU Collegiate Club Result Tracking Javascript
// Created 7/16/2005 by J. Scot Prunckle of Scot Technologies, LLC
// Originally Created for the UW-Miwlaukee Lady Panther Rugby Football Club Web Site
// Located at http://www.uwm.edu/StudentOrg/lprfc

// Variable assignment to Arrays
// Array name=team name
// Array Order = RANK,NAME,Playd,Win,Loss,Draw,Tries,Conv,Post,For,Aga,Mar,S14
//                        Midwest D1 Western Conference
var EIU       = new Array("0","EIU","5","5","0","0","35","17","2","221","52","169","24");
var UNI       = new Array("1","UNI","5","4","1","0","31","13","1","179","39","140","21");
var UWM       = new Array("2","UWM","5","3","2","0","39","18","0","231","58","173","17");
var MINN      = new Array("3","MINN","4","1","3","0","6","4","0","38","156","-118","5");
var IaSU      = new Array("4","IaSU","5","1","4","0","11","2","0","59","199","-140","5");
var UofI      = new Array("5","UofI","4","0","3","0","0","0","0","0","224","-224","0");
//                        Midwest D1 Eastern Conference
var Mich      = new Array("6","Mich","5","5","0","0","28","11","0","162","46","116","24");
var OSU       = new Array("7","OSU","5","3","1","1","20","5","1","113","76","37","17");
var Indy      = new Array("8","Indy","5","2","2","1","25","13","0","151","123","28","14");
var GVSU      = new Array("9","GVSU","5","2","2","1","16","4","1","91","81","10","12");
var PU        = new Array("10","PU","4","0","3","1","6","2","0","24","108","-84","2");
var MSU       = new Array("11","MSU","4","0","4","0","5","2","0","29","146","-117","0");
var standings = new Array();
var teams     = 12;

// concatenate arrays into the standings array based on rank of the team 
// which is assigned in field 0 of each team array
for( var i=0; i < teams; i++ ){
	if ( EIU[0]==i ){
		standings = standings.concat( EIU );
	}
	else if ( UNI[0]==i ){
		standings = standings.concat( UNI );
	}
	else if ( UWM[0]==i ){
		standings = standings.concat( UWM );
	}
	else if ( MINN[0]==i ){
		standings = standings.concat( MINN );
	}
	else if ( IaSU[0]==i ){
		standings = standings.concat( IaSU );
	}
	else if ( UofI[0]==i ){
		standings = standings.concat( UofI );
	}
	else if ( Mich[0]==i ){
		standings = standings.concat( Mich );
	}
	else if ( OSU[0]==i ){
		standings = standings.concat( OSU );
	}
	else if ( Indy[0]==i ){
		standings = standings.concat( Indy );
	}
	else if ( GVSU[0]==i ){
		standings = standings.concat( GVSU );
	}
	else if ( PU[0]==i ){
		standings = standings.concat( PU );
	}
	else if ( MSU[0]==i ){
		standings = standings.concat( MSU );
	}

}