/*
CHANGE LOG:
110728-MD	added option for "club"
*/

// GLOBAL VARIABLES
DIALOG_X_OFFSET = 60;



// ###################################  UI NAVIGATION LINKS  ###################################
// 
function HQsetup(sportType) {
	BuildOrgStructFromString(setupStructs[sportType]);
	if(curSportType) {
		document.getElementById(curSportType + "LI").style.backgroundImage = "url(/sportswebsites/images/sportshqdemo/radioOFF.gif)";
	}
	
	curSportType = sportType;
	document.getElementById(sportType + "LI").style.backgroundImage = "url(/sportswebsites/images/sportshqdemo/radioON.gif)";
	if(("school" == sportType) || ("club" == sportType)) sportType = "htosports";
	document.getElementById("sportProfile").src = "/images/sports/" + sportType + "char120.gif";	
}

var username = "DEMOLEAGUE";
orgStruct.orgTog = false;
orgStruct.trialtog = false;
orgStruct.adminTog = false;
var curSportType = "";

var setupStructs = new Array();
setupStructs["football"] = "DEMOLEAGUE|2`-1|2`FOOTBALL DEMO|2`sport|2`champion|2`football|2`174015|3`174036|1`174015|2`DEMOLEAGUE|2`National|2`teamDiv1|2`prostyle|2`football|2`174016|3`174021|3`174026|3`174031|1`174016|2`174015|2`East|2`teamDiv2|2`prostyle|2`football|2`174017|3`174018|3`174019|3`174020|1`174017|2`174016|2`Giants|2`team|2`prostyle|2`football|2`|1`174018|2`174016|2`Cowboys|2`team|2`prostyle|2`football|2`|1`174019|2`174016|2`Redskins|2`team|2`prostyle|2`football|2`|1`174020|2`174016|2`Eagles|2`team|2`prostyle|2`football|2`|1`174021|2`174015|2`North|2`teamDiv2|2`prostyle|2`football|2`174022|3`174023|3`174024|3`174025|1`174022|2`174021|2`Vikings|2`team|2`prostyle|2`football|2`|1`174023|2`174021|2`Bears|2`team|2`prostyle|2`football|2`|1`174024|2`174021|2`Packers|2`team|2`prostyle|2`football|2`|1`174025|2`174021|2`Lions|2`team|2`prostyle|2`football|2`|1`174026|2`174015|2`South|2`teamDiv2|2`prostyle|2`football|2`174027|3`174028|3`174029|3`174030|1`174027|2`174026|2`Buccaneers|2`team|2`prostyle|2`football|2`|1`174028|2`174026|2`Panthers|2`team|2`prostyle|2`football|2`|1`174029|2`174026|2`Falcons|2`team|2`prostyle|2`football|2`|1`174030|2`174026|2`Saints|2`team|2`prostyle|2`football|2`|1`174031|2`174015|2`West|2`teamDiv2|2`prostyle|2`football|2`174032|3`174033|3`174034|3`174035|1`174032|2`174031|2`Cardinals|2`team|2`prostyle|2`football|2`|1`174033|2`174031|2`49ers|2`team|2`prostyle|2`football|2`|1`174034|2`174031|2`Seahawks|2`team|2`prostyle|2`football|2`|1`174035|2`174031|2`Rams|2`team|2`prostyle|2`football|2`|1`174036|2`DEMOLEAGUE|2`American|2`teamDiv1|2`prostyle|2`football|2`174037|3`174042|3`174047|3`174052|1`174037|2`174036|2`East|2`teamDiv2|2`prostyle|2`football|2`174038|3`174039|3`174040|3`174041|1`174038|2`174037|2`Jets|2`team|2`prostyle|2`football|2`|1`174039|2`174037|2`Patriots|2`team|2`prostyle|2`football|2`|1`174040|2`174037|2`Dolphins|2`team|2`prostyle|2`football|2`|1`174041|2`174037|2`Bills|2`team|2`prostyle|2`football|2`|1`174042|2`174036|2`North|2`teamDiv2|2`prostyle|2`football|2`174043|3`174044|3`174045|3`174046|1`174043|2`174042|2`Steelers|2`team|2`prostyle|2`football|2`|1`174044|2`174042|2`Ravens|2`team|2`prostyle|2`football|2`|1`174045|2`174042|2`Browns|2`team|2`prostyle|2`football|2`|1`174046|2`174042|2`Bengals|2`team|2`prostyle|2`football|2`|1`174047|2`174036|2`South|2`teamDiv2|2`prostyle|2`football|2`174048|3`174049|3`174050|3`174051|1`174048|2`174047|2`Titans|2`team|2`prostyle|2`football|2`|1`174049|2`174047|2`Colts|2`team|2`prostyle|2`football|2`|1`174050|2`174047|2`Texans|2`team|2`prostyle|2`football|2`|1`174051|2`174047|2`Jaguars|2`team|2`prostyle|2`football|2`|1`174052|2`174036|2`West|2`teamDiv2|2`prostyle|2`football|2`174053|3`174054|3`174055|3`174056|1`174053|2`174052|2`Broncos|2`team|2`prostyle|2`football|2`|1`174054|2`174052|2`Chargers|2`team|2`prostyle|2`football|2`|1`174055|2`174052|2`Raiders|2`team|2`prostyle|2`football|2`|1`174056|2`174052|2`Chiefs|2`team|2`prostyle|2`football|2`";

setupStructs["basketball"] = "DEMOLEAGUE|2`-1|2`BASKETBALL DEMO|2`sport|2`champion|2`basketball|2`173976|3`173995|1`173976|2`DEMOLEAGUE|2`Eastern|2`teamDiv1|2`prostyle|2`basketball|2`173977|3`173983|3`173989|1`173977|2`173976|2`Atlantic|2`teamDiv2|2`prostyle|2`basketball|2`173978|3`173979|3`173980|3`173981|3`173982|1`173978|2`173977|2`Celtics|2`team|2`prostyle|2`basketball|2`|1`173979|2`173977|2`Knicks|2`team|2`prostyle|2`basketball|2`|1`173980|2`173977|2`Nets|2`team|2`prostyle|2`basketball|2`|1`173981|2`173977|2`Raptors|2`team|2`prostyle|2`basketball|2`|1`173982|2`173977|2`76ers|2`team|2`prostyle|2`basketball|2`|1`173983|2`173976|2`Central|2`teamDiv2|2`prostyle|2`basketball|2`173984|3`173985|3`173986|3`173987|3`173988|1`173984|2`173983|2`Cavaliers|2`team|2`prostyle|2`basketball|2`|1`173985|2`173983|2`Pistons|2`team|2`prostyle|2`basketball|2`|1`173986|2`173983|2`Bulls|2`team|2`prostyle|2`basketball|2`|1`173987|2`173983|2`Pacers|2`team|2`prostyle|2`basketball|2`|1`173988|2`173983|2`Bucks|2`team|2`prostyle|2`basketball|2`|1`173989|2`173976|2`Southeast|2`teamDiv2|2`prostyle|2`basketball|2`173990|3`173991|3`173992|3`173993|3`173994|1`173990|2`173989|2`Magic|2`team|2`prostyle|2`basketball|2`|1`173991|2`173989|2`Heat|2`team|2`prostyle|2`basketball|2`|1`173992|2`173989|2`Hawks|2`team|2`prostyle|2`basketball|2`|1`173993|2`173989|2`Bobcats|2`team|2`prostyle|2`basketball|2`|1`173994|2`173989|2`Wizards|2`team|2`prostyle|2`basketball|2`|1`173995|2`DEMOLEAGUE|2`Western|2`teamDiv1|2`prostyle|2`basketball|2`173996|3`174002|3`174008|1`173996|2`173995|2`Northwest|2`teamDiv2|2`prostyle|2`basketball|2`173997|3`173998|3`173999|3`174000|3`174001|1`173997|2`173996|2`Nuggets|2`team|2`prostyle|2`basketball|2`|1`173998|2`173996|2`Trail Blazers|2`team|2`prostyle|2`basketball|2`|1`173999|2`173996|2`Jazz|2`team|2`prostyle|2`basketball|2`|1`174000|2`173996|2`Timberwolves|2`team|2`prostyle|2`basketball|2`|1`174001|2`173996|2`Thunder|2`team|2`prostyle|2`basketball|2`|1`174002|2`173995|2`Pacific|2`teamDiv2|2`prostyle|2`basketball|2`174003|3`174004|3`174005|3`174006|3`174007|1`174003|2`174002|2`Lakers|2`team|2`prostyle|2`basketball|2`|1`174004|2`174002|2`Suns|2`team|2`prostyle|2`basketball|2`|1`174005|2`174002|2`Warriors|2`team|2`prostyle|2`basketball|2`|1`174006|2`174002|2`Kings|2`team|2`prostyle|2`basketball|2`|1`174007|2`174002|2`Clippers|2`team|2`prostyle|2`basketball|2`|1`174008|2`173995|2`Southwest|2`teamDiv2|2`prostyle|2`basketball|2`174009|3`174010|3`174011|3`174012|3`174013|1`174009|2`174008|2`Rockets|2`team|2`prostyle|2`basketball|2`|1`174010|2`174008|2`Hornets|2`team|2`prostyle|2`basketball|2`|1`174011|2`174008|2`Spurs|2`team|2`prostyle|2`basketball|2`|1`174012|2`174008|2`Mavericks|2`team|2`prostyle|2`basketball|2`|1`174013|2`174008|2`Grizzlies|2`team|2`prostyle|2`basketball|2`";

setupStructs["baseball"] = "DEMOLEAGUE|2`-1|2`BASEBALL DEMO|2`sport|2`champion|2`baseball|2`173937|3`173955|1`173937|2`DEMOLEAGUE|2`American|2`teamDiv1|2`prostyle|2`baseball|2`173938|3`173944|3`173950|1`173938|2`173937|2`East|2`teamDiv2|2`prostyle|2`baseball|2`173939|3`173940|3`173941|3`173942|3`173943|1`173939|2`173938|2`Yankees|2`team|2`prostyle|2`baseball|2`|1`173940|2`173938|2`Red Sox|2`team|2`prostyle|2`baseball|2`|1`173941|2`173938|2`Rays|2`team|2`prostyle|2`baseball|2`|1`173942|2`173938|2`Blue Jays|2`team|2`prostyle|2`baseball|2`|1`173943|2`173938|2`Orioles|2`team|2`prostyle|2`baseball|2`|1`173944|2`173937|2`Central|2`teamDiv2|2`prostyle|2`baseball|2`173945|3`173946|3`173947|3`173948|3`173949|1`173945|2`173944|2`White Sox|2`team|2`prostyle|2`baseball|2`|1`173946|2`173944|2`Twins|2`team|2`prostyle|2`baseball|2`|1`173947|2`173944|2`Indians|2`team|2`prostyle|2`baseball|2`|1`173948|2`173944|2`Tigers|2`team|2`prostyle|2`baseball|2`|1`173949|2`173944|2`Royals|2`team|2`prostyle|2`baseball|2`|1`173950|2`173937|2`West|2`teamDiv2|2`prostyle|2`baseball|2`173951|3`173952|3`173953|3`173954|1`173951|2`173950|2`Angels|2`team|2`prostyle|2`baseball|2`|1`173952|2`173950|2`Rangers|2`team|2`prostyle|2`baseball|2`|1`173953|2`173950|2`Athletics|2`team|2`prostyle|2`baseball|2`|1`173954|2`173950|2`Mariners|2`team|2`prostyle|2`baseball|2`|1`173955|2`DEMOLEAGUE|2`National|2`teamDiv1|2`prostyle|2`baseball|2`173956|3`173962|3`173969|1`173956|2`173955|2`East|2`teamDiv2|2`prostyle|2`baseball|2`173957|3`173958|3`173959|3`173960|3`173961|1`173957|2`173956|2`Mets|2`team|2`prostyle|2`baseball|2`|1`173958|2`173956|2`Phillies|2`team|2`prostyle|2`baseball|2`|1`173959|2`173956|2`Braves|2`team|2`prostyle|2`baseball|2`|1`173960|2`173956|2`Marlins|2`team|2`prostyle|2`baseball|2`|1`173961|2`173956|2`Nationals|2`team|2`prostyle|2`baseball|2`|1`173962|2`173955|2`Central|2`teamDiv2|2`prostyle|2`baseball|2`173963|3`173964|3`173965|3`173966|3`173967|3`173968|1`173963|2`173962|2`Cubs|2`team|2`prostyle|2`baseball|2`|1`173964|2`173962|2`Brewers|2`team|2`prostyle|2`baseball|2`|1`173965|2`173962|2`Astros|2`team|2`prostyle|2`baseball|2`|1`173966|2`173962|2`Cardinals|2`team|2`prostyle|2`baseball|2`|1`173967|2`173962|2`Reds|2`team|2`prostyle|2`baseball|2`|1`173968|2`173962|2`Pirates|2`team|2`prostyle|2`baseball|2`|1`173969|2`173955|2`West|2`teamDiv2|2`prostyle|2`baseball|2`173970|3`173971|3`173972|3`173973|3`173974|1`173970|2`173969|2`Dodgers|2`team|2`prostyle|2`baseball|2`|1`173971|2`173969|2`Diamondbacks|2`team|2`prostyle|2`baseball|2`|1`173972|2`173969|2`Rockies|2`team|2`prostyle|2`baseball|2`|1`173973|2`173969|2`Giants|2`team|2`prostyle|2`baseball|2`|1`173974|2`173969|2`Padres|2`team|2`prostyle|2`baseball|2`";

setupStructs["hockey"] = "DEMOLEAGUE|2`-1|2`HOCKEY DEMO|2`sport|2`champion|2`hockey|2`174925|3`174944|1`174925|2`DEMOLEAGUE|2`Eastern|2`teamDiv1|2`prostyle|2`hockey|2`174926|3`174932|3`174938|1`174926|2`174925|2`Atlantic|2`teamDiv2|2`prostyle|2`hockey|2`174927|3`174928|3`174929|3`174930|3`174931|1`174927|2`174926|2`Rangers|2`team|2`prostyle|2`hockey|2`|1`174928|2`174926|2`Devils|2`team|2`prostyle|2`hockey|2`|1`174929|2`174926|2`Islanders|2`team|2`prostyle|2`hockey|2`|1`174930|2`174926|2`Penguins|2`team|2`prostyle|2`hockey|2`|1`174931|2`174926|2`Flyers|2`team|2`prostyle|2`hockey|2`|1`174932|2`174925|2`Northeast|2`teamDiv2|2`prostyle|2`hockey|2`174933|3`174934|3`174935|3`174936|3`174937|1`174933|2`174932|2`Bruins|2`team|2`prostyle|2`hockey|2`|1`174934|2`174932|2`Sabres|2`team|2`prostyle|2`hockey|2`|1`174935|2`174932|2`Canadiens|2`team|2`prostyle|2`hockey|2`|1`174936|2`174932|2`Senators|2`team|2`prostyle|2`hockey|2`|1`174937|2`174932|2`Maple Leafs|2`team|2`prostyle|2`hockey|2`|1`174938|2`174925|2`Southeast|2`teamDiv2|2`prostyle|2`hockey|2`174939|3`174940|3`174941|3`174942|3`174943|1`174939|2`174938|2`Panthers|2`team|2`prostyle|2`hockey|2`|1`174940|2`174938|2`Hurricanes|2`team|2`prostyle|2`hockey|2`|1`174941|2`174938|2`Lightning|2`team|2`prostyle|2`hockey|2`|1`174942|2`174938|2`Capitals|2`team|2`prostyle|2`hockey|2`|1`174943|2`174938|2`Thrashers|2`team|2`prostyle|2`hockey|2`|1`174944|2`DEMOLEAGUE|2`Western|2`teamDiv1|2`prostyle|2`hockey|2`174945|3`174951|3`174957|1`174945|2`174944|2`Central|2`teamDiv2|2`prostyle|2`hockey|2`174946|3`174947|3`174948|3`174949|3`174950|1`174946|2`174945|2`Blackhawks|2`team|2`prostyle|2`hockey|2`|1`174947|2`174945|2`Red Wings|2`team|2`prostyle|2`hockey|2`|1`174948|2`174945|2`Blues|2`team|2`prostyle|2`hockey|2`|1`174949|2`174945|2`Blue Jackets|2`team|2`prostyle|2`hockey|2`|1`174950|2`174945|2`Predators|2`team|2`prostyle|2`hockey|2`|1`174951|2`174944|2`Northwest|2`teamDiv2|2`prostyle|2`hockey|2`174952|3`174953|3`174954|3`174955|3`174956|1`174952|2`174951|2`Oilers|2`team|2`prostyle|2`hockey|2`|1`174953|2`174951|2`Canucks|2`team|2`prostyle|2`hockey|2`|1`174954|2`174951|2`Avalanche|2`team|2`prostyle|2`hockey|2`|1`174955|2`174951|2`Flames|2`team|2`prostyle|2`hockey|2`|1`174956|2`174951|2`Wild|2`team|2`prostyle|2`hockey|2`|1`174957|2`174944|2`Pacific|2`teamDiv2|2`prostyle|2`hockey|2`174958|3`174959|3`174960|3`174961|3`174962|1`174958|2`174957|2`Kings|2`team|2`prostyle|2`hockey|2`|1`174959|2`174957|2`Ducks|2`team|2`prostyle|2`hockey|2`|1`174960|2`174957|2`Stars|2`team|2`prostyle|2`hockey|2`|1`174961|2`174957|2`Coyotes|2`team|2`prostyle|2`hockey|2`|1`174962|2`174957|2`Sharks|2`team|2`prostyle|2`hockey|2`";

setupStructs["soccer"] = "DEMOLEAGUE|2`-1|2`SOCCER DEMO|2`sport|2`champion|2`soccer|2`174969|3`174977|1`174969|2`DEMOLEAGUE|2`Eastern|2`teamDiv1|2`prostyle|2`soccer|2`174970|3`174971|3`174972|3`174973|3`174974|3`174975|3`174976|1`174970|2`174969|2`Columbus|2`team|2`prostyle|2`soccer|2`|1`174971|2`174969|2`Chicago|2`team|2`prostyle|2`soccer|2`|1`174972|2`174969|2`New England|2`team|2`prostyle|2`soccer|2`|1`174973|2`174969|2`Kansas City|2`team|2`prostyle|2`soccer|2`|1`174974|2`174969|2`New York Red Bulls|2`team|2`prostyle|2`soccer|2`|1`174975|2`174969|2`DC United|2`team|2`prostyle|2`soccer|2`|1`174976|2`174969|2`Toronto FC|2`team|2`prostyle|2`soccer|2`|1`174977|2`DEMOLEAGUE|2`Western|2`teamDiv1|2`prostyle|2`soccer|2`174978|3`174979|3`174980|3`174981|3`174982|3`174983|3`174984|1`174978|2`174977|2`Houston|2`team|2`prostyle|2`soccer|2`|1`174979|2`174977|2`Chivas USA|2`team|2`prostyle|2`soccer|2`|1`174980|2`174977|2`Real Salt Lake|2`team|2`prostyle|2`soccer|2`|1`174981|2`174977|2`Colorado|2`team|2`prostyle|2`soccer|2`|1`174982|2`174977|2`Dallas|2`team|2`prostyle|2`soccer|2`|1`174983|2`174977|2`San Jose|2`team|2`prostyle|2`soccer|2`|1`174984|2`174977|2`Los Angeles|2`team|2`prostyle|2`soccer|2`";

setupStructs["lacrosse"] = "DEMOLEAGUE|2`-1|2`LACROSSE DEMO|2`sport|2`champion|2`lacrosse|2`175109|3`175116|1`175109|2`DEMOLEAGUE|2`Eastern|2`teamDiv1|2`prostyle|2`lacrosse|2`175110|3`175111|3`175112|3`175113|3`175114|3`175115|1`175110|2`175109|2`Cannons|2`team|2`prostyle|2`lacrosse|2`|1`175111|2`175109|2`Lizards|2`team|2`prostyle|2`lacrosse|2`|1`175112|2`175109|2`Pride|2`team|2`prostyle|2`lacrosse|2`|1`175113|2`175109|2`Barrage|2`team|2`prostyle|2`lacrosse|2`|1`175114|2`175109|2`Rattlers|2`team|2`prostyle|2`lacrosse|2`|1`175115|2`175109|2`Bayhawks|2`team|2`prostyle|2`lacrosse|2`|1`175116|2`DEMOLEAGUE|2`Western|2`teamDiv1|2`prostyle|2`lacrosse|2`175117|3`175118|3`175119|3`175120|1`175117|2`175116|2`Machine|2`team|2`prostyle|2`lacrosse|2`|1`175118|2`175116|2`Outlaws|2`team|2`prostyle|2`lacrosse|2`|1`175119|2`175116|2`Riptide|2`team|2`prostyle|2`lacrosse|2`|1`175120|2`175116|2`Dragons|2`team|2`prostyle|2`lacrosse|2`";

setupStructs["school"] = "DEMOLEAGUE|2`-1|2`SCHOOL WEBSITE DEMO|2`sport|2`champion|2`htosports|2`175272|3`175274|3`175276|3`175278|1`175272|2`DEMOLEAGUE|2`Varsity|2`teamDiv1|2`prostyle|2`htosports|2`175273|1`175273|2`175272|2`Tigers|2`team|2`allstar|2`htosports|2`|1`175274|2`DEMOLEAGUE|2`Junior Varsity|2`teamDiv1|2`prostyle|2`htosports|2`175275|1`175275|2`175274|2`Junior Tigers|2`team|2`prostyle|2`htosports|2`|1`175276|2`DEMOLEAGUE|2`Freshman|2`teamDiv1|2`prostyle|2`htosports|2`175277|1`175277|2`175276|2`Fresh Tigers|2`team|2`prostyle|2`htosports|2`|1`175278|2`DEMOLEAGUE|2`Junior High|2`teamDiv1|2`prostyle|2`htosports|2`175279|3`175280|1`175279|2`175278|2`Blue Team|2`team|2`rookie|2`htosports|2`|1`175280|2`175278|2`Gold Team|2`team|2`rookie|2`htosports|2`";

setupStructs["club"] = "DEMOLEAGUE|2`-1|2`AAU Club Website Demo|2`sport|2`champion|2`htosports|2`176651|3`176652|3`176653|3`176654|1`176651|2`DEMOLEAGUE|2`11U|2`teamDiv1|2`prostyle|2`htosports|2`176655|3`176656|1`176655|2`176651|2`Tigers 11U-Blue|2`team|2`allstar|2`htosports|2`|1`176656|2`176651|2`Tigers 11U-Red|2`team|2`allstar|2`htosports|2`|1`176652|2`DEMOLEAGUE|2`12U|2`teamDiv1|2`prostyle|2`htosports|2`176657|3`176658|1`176657|2`176652|2`Tigers 12U-Blue|2`team|2`allstar|2`htosports|2`|1`176658|2`176652|2`Tigers 12U-Red|2`team|2`allstar|2`htosports|2`|1`176653|2`DEMOLEAGUE|2`14U|2`teamDiv1|2`prostyle|2`htosports|2`176659|1`176659|2`176653|2`Tigers 14U|2`team|2`allstar|2`htosports|2`|1`176654|2`DEMOLEAGUE|2`16U|2`teamDiv1|2`prostyle|2`htosports|2`176660|1`176660|2`176654|2`Tigers 16U|2`team|2`allstar|2`htosports|2`";
