function fedChmpBanner250(region, youngOld, league, group) { 
	if(!arrayIsUndefinedChmpBanner("fedChmpBannerList250", region, youngOld, league, group)) { 
  	document.write('<span id="bannercontent1">' + fedChmpBannerList250[region][youngOld][league][group][new Date().getMinutes() % fedChmpBannerList250[region][youngOld][league][group].length] + '</span>');
	} else if(!arrayIsUndefinedChmpBanner("fedChmpBannerList250", region, youngOld, league, "*")) { 
  	document.write('<span id="bannercontent1">' + fedChmpBannerList250[region][youngOld][league]["*"][new Date().getMinutes() % fedChmpBannerList250[region][youngOld][league]["*"].length] + '</span>');
	} else if(!arrayIsUndefinedChmpBanner("fedChmpBannerList250", region, youngOld, "*", "*")) { 
  	document.write('<span id="bannercontent1">' + fedChmpBannerList250[region][youngOld]["*"]["*"][new Date().getMinutes() % fedChmpBannerList250[region][youngOld]["*"]["*"].length] + '</span>');
	} else if(!arrayIsUndefinedChmpBanner("fedChmpBannerList250", region, "*", "*", "*")) { 
  	document.write('<span id="bannercontent1">' + fedChmpBannerList250[region]["*"]["*"]["*"][new Date().getMinutes() % fedChmpBannerList250[region]["*"]["*"]["*"].length] + '</span>');
	} else { 
		if(splitRegion(region).split(".").length >= 1 && region != "AT") {
  		fedChmpBanner250(splitRegion(region), youngOld, league, group); 
		} 
	} 
}

function fedBanner100() { 
  if(typeof fedBannerList100 != "undefined" && fedBannerList100.length > 0) { 
    document.write('<span id="bannerframe1">' + fedBannerList100[new Date().getMinutes() % fedBannerList100.length] + '</span>');
  } else {
  	document.write('<span id="bannerframe1"></span>');
  }
}

function fedBanner101() { 
  if(typeof fedBannerList101 != "undefined" && fedBannerList101.length > 0) { 
    document.write('<span id="bannerframe2">' + fedBannerList101[new Date().getMinutes() % fedBannerList101.length] + '</span>');
  } else {
  	document.write('<span id="bannerframe2"></span>');
  }
}

function fedBanner102() { 
  if(typeof fedBannerList102 != "undefined" && fedBannerList102.length > 0) { 
    document.write('<span id="bannerframe3">' + fedBannerList102[new Date().getMinutes() % fedBannerList102.length] + '</span>');
  } else {
  	document.write('<span id="bannerframe3"></span>');
  }
}

function fedBanner103() { 
  if(typeof fedBannerList103 != "undefined" && fedBannerList103.length > 0) { 
    document.write('<span id="bannerframe4">' + fedBannerList103[new Date().getMinutes() % fedBannerList103.length] + '</span>');
  } else {
  	document.write('<span id="bannerframe4"></span>');
  }
}

function fedBanner104() { 
  if(typeof fedBannerList104 != "undefined" && fedBannerList104.length > 0) { 
    document.write('<span id="bannerframe5">' + fedBannerList104[new Date().getMinutes() % fedBannerList104.length] + '</span>');
  } else {
  	document.write('<span id="bannerframe5"></span>');
  }
}

function fedBanner105() { 
  if(typeof fedBannerList105 != "undefined" && fedBannerList105.length > 0) { 
    document.write('<span id="bannercontent1">' + fedBannerList105[new Date().getMinutes() % fedBannerList105.length] + '</span>');
  } else {
  	document.write('<span id="bannercontent1"></span>');
  }
}

function fedBanner106() { 
  if(typeof fedBannerList106 != "undefined" && fedBannerList106.length > 0) { 
    document.write('<span id="bannercontent1">' + fedBannerList106[new Date().getMinutes() % fedBannerList106.length] + '</span>');
  } else {
  	document.write('<span id="bannercontent1"></span>');
  }
}

function fedBanner107() { 
  if(typeof fedBannerList107 != "undefined" && fedBannerList107.length > 0) { 
    document.write('<span id="bannercontent1">' + fedBannerList107[new Date().getMinutes() % fedBannerList107.length] + '</span>');
  } else {
  	document.write('<span id="bannercontent1"></span>');
  }
}


function arrayIsUndefined(arrName, region, contestType, group) { 
   try { 
       return typeof eval(arrName)[region][contestType][group] == "undefined";   } catch(e) { 
      return true; 
   } 
} 

function arrayIsUndefinedContestType(arrName, region, contestType) { 
   try { 
       return typeof eval(arrName)[region][contestType] == "undefined";   } catch(e) { 
      return true; 
   } 
} 

function arrayIsUndefinedChmpBanner(arrName, region, youngOld, league, group) { 
   try { 
       return typeof eval(arrName)[region][youngOld][league][group] == "undefined";   } catch(e) { 
      return true; 
   } 
} 

function splitRegion(region)	{ 
    var splitRegion = region.split("."); 
	splitRegion.pop(); 
	return splitRegion.join(".") 
} 


