﻿// place the ids of every DIV element required// previous scores and upcoming gamesvar id1=new Array('dataset1','dataset2');// coach profile and videovar id2=new Array('coachprofile','coachvideo');// district leadersvar id3=new Array('leaders5a','leaders4a','leaders3a','leaders2a','leaders1a','leaders6man');// fantasy teamvar id4=new Array('offense','defense');// additional team infovar id5=new Array('thecoach','teamsummary','stadium','superfan');// superfan applicationvar id6=new Array('theform');function switchid(id,arr){		hideallids(arr);	showdiv(id);}function hideallids(arr){	//var arr = arr;	var a = eval(arr);	//loop through the array and hide each element by id	for (var i=0;i<a.length;i++){		hidediv(a[i]);	}		  }function hidediv(id) {	//safe function to hide an element with a specified id	if (document.getElementById) { // DOM3 = IE5, NS6		document.getElementById(id).style.display = 'none';	}	else {		if (document.layers) { // Netscape 4			document.id.display = 'none';		}		else { // IE 4			document.all.id.style.display = 'none';		}	}}function showdiv(id) {	//safe function to show an element with a specified id		  	if (document.getElementById) { // DOM3 = IE5, NS6		document.getElementById(id).style.display = 'block';	}	else {		if (document.layers) { // Netscape 4			document.id.display = 'block';		}		else { // IE 4			document.all.id.style.display = 'block';		}	}}