		function MM_reloadPage(init) {  //reloads the window if Nav4 resized
		  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
		  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
		}
		MM_reloadPage(true);
		
		function MM_findObj(n, d) { //v4.01
		  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		  if(!x && d.getElementById) x=d.getElementById(n); return x;
		}
		
		function flvFTL1(){// v1.0
		// Copyright 2003, Marja Ribbers (FlevOOware.nl)
		var v1=arguments,v2,v3,v4,v5;for (v3=0;v3<v1.length;v3++){v2=MM_findObj(v1[v3]);if (v2){if (document.layers){v4=v2;v5="show";}else {v4=v2.style;v5="visible";}v4.visibility=(v4.visibility==v5)?"hidden":"visible";}}}
		

			function GotoLeague(caller) {
				Selected_League = caller.options[caller.selectedIndex].value;
				if (Selected_League == 0) {
					window.location = "index.php";
				} else {
					window.location = "index.php?function=showteam&league=" + Selected_League;
				}
			}
			function GotoTeamInfo(caller) {
				Selected_Team = caller.options[caller.selectedIndex].value;
				Selected_League = document.HOLDER.LEAGUEVAL.value;
				if (Selected_Team == 0) {
					return;
				} else {
					window.location = "teamschedule.php?function=showteam&team=" + Selected_Team + "&league=" + Selected_League;
				}
			}
			function ShowLeague(caller) {
				Selected_League = caller.options[caller.selectedIndex].value;
				window.location = "leagueschedule.php?league=" + Selected_League;
			}

			document.LEAGUESELECT.LEAGUE.options.selectedIndex = document.HOLDER.LEAGUEVAL.value;
			for (i=0; i<=document.TEAMSELECT.TEAM.options.length; i++) {
				if (document.TEAMSELECT.TEAM.options[i].value == document.HOLDER.TEAMVAL.value) {
					document.TEAMSELECT.TEAM.options.selectedIndex = i;
					exit;
				}
			}
			

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  window.alert( 'Width = ' + myWidth );
  window.alert( 'Height = ' + myHeight );
}
