/* --------------------------------------------------
	Created:	March 6, 2007
	Purpose:	Functions to create and print logos. 
				Used primarily on:
				- displaySimpleEventList
				- displayGroupList 
-------------------------------------------------- */
	function makeLogo(name, logo) {
		this.oname = name;
		this.ologo = logo;
	}

/* --------------------------------------------------
	LOGO LIST
-------------------------------------------------- */
	logoList = new Array;
	var i = 0;
//	logoList[i++] = new makeLogo("Florida Int&#39;l", "fiu");
//	logoList[i++] = new makeLogo("Rutgers Student Test", "StudentShirt");
//	logoList[i++] = new makeLogo("UCLA - Homecoming 2", new Array("ucla","berkeley"));
	logoList[i++] = new makeLogo("UCLA - Homecoming 2", new Array("ucla","berkeley"));
	logoList[i++] = new makeLogo("Cal", "berkeley");
	logoList[i++] = new makeLogo("Oregon", "uoregon");
	logoList[i++] = new makeLogo("Oregon State", "oregonstate");
	logoList[i++] = new makeLogo("UCLA", "ucla");
	logoList[i++] = new makeLogo("USC", "usc");
	logoList[i++] = new makeLogo("Washington", "washington");
	logoList[i++] = new makeLogo("East Carolina", "ecu");
	logoList[i++] = new makeLogo("Creighton", "creighton");
	logoList[i++] = new makeLogo("Wichita State", "wichita");
	logoList[i++] = new makeLogo("North Texas", "unt");
	logoList[i++] = new makeLogo("Wisconsin", "wisc");
	logoList[i++] = new makeLogo("MTSU", "mtsu");
	logoList[i++] = new makeLogo("TCU", "tcu");
	logoList[i++] = new makeLogo("USF", "usf");
	logoList[i++] = new makeLogo("ECU", "ecu");
	logoList[i++] = new makeLogo("Charlotte", "uncc");
	logoList[i++] = new makeLogo("McNeese State", "mcneese");
	logoList[i++] = new makeLogo("Grambling Univ.", "gram");
	logoList[i++] = new makeLogo("Southeastern Louisiana", "selu");
	logoList[i++] = new makeLogo("New Orleans", "uno");
	logoList[i++] = new makeLogo("LSU", "lsu");
	logoList[i++] = new makeLogo("Louisville", "louisville");
	logoList[i++] = new makeLogo("Southern Miss", "usm");
	logoList[i++] = new makeLogo("Centenary", "centenary");
	logoList[i++] = new makeLogo("Rice", "rice");
	logoList[i++] = new makeLogo("Pepperdine", "pepperdine");
	logoList[i++] = new makeLogo("Loyola Marymount", "lmu");
	logoList[i++] = new makeLogo("Sam Houston State", "shsu");
	logoList[i++] = new makeLogo("Texas A&M", "tamu");
	logoList[i++] = new makeLogo("Saint Louis", "slu");
	logoList[i++] = new makeLogo("Sam Houston State Bearkats", "shsu   ");
	logoList[i++] = new makeLogo("Southern Miss Golden Eagles", "usm");
	logoList[i++] = new makeLogo("Memphis Tigers", "memphis    ");
	logoList[i++] = new makeLogo("SMU Mustangs", "smu    ");
	logoList[i++] = new makeLogo("Virginia Commonwealth", "vcu");
	logoList[i++] = new makeLogo("Arizona Wildcats", "arizona");
	logoList[i++] = new makeLogo("North Texas Mean Green", "unt");
	logoList[i++] = new makeLogo("Rhode Island", "uri");
	logoList[i++] = new makeLogo("Texas A&M-Corpus Christi", "tamucc");
	logoList[i++] = new makeLogo("Marshall Thundering Herd", "marshall");
	logoList[i++] = new makeLogo("UTEP Miners", "umr");
	logoList[i++] = new makeLogo("West Virginia", "wvu");
	logoList[i++] = new makeLogo("Charlotte 49ers", "uncc");
	logoList[i++] = new makeLogo("Tulane Green Wave", "tulane");
	logoList[i++] = new makeLogo("Long Beach State", "csulb");
	logoList[i++] = new makeLogo("Prairie View A&M", "pvamu");
	logoList[i++] = new makeLogo("Tulsa Golden Hurricane", "utulsa");
	logoList[i++] = new makeLogo("Dartmouth", "dartmouth");
	logoList[i++] = new makeLogo("Lamar", "lamar");
	logoList[i++] = new makeLogo("San Diego", "acusd");
	logoList[i++] = new makeLogo("Tulane", "tulane");
	logoList[i++] = new makeLogo("Memphis (DH)", "memphis");
	logoList[i++] = new makeLogo("Grambling State (DH)", "gram");
	logoList[i++] = new makeLogo("Southern Miss (DH)", "usm");
	logoList[i++] = new makeLogo("Arkansas Pine Bluff (DH)", "uapb");
	logoList[i++] = new makeLogo("UTEP", "utep");
	logoList[i++] = new makeLogo("UTEP (DH)", "utep");
	logoList[i++] = new makeLogo("East Carolina (DH)", "ecu");
	logoList[i++] = new makeLogo("C-USA MEN&#39;S TOURNAMENT ALL-SESSION", "conferenceusa");
	logoList[i++] = new makeLogo("Grambling State", "gram");
	logoList[i++] = new makeLogo("Oklahoma State", "okstate");
	logoList[i++] = new makeLogo("Louisiana-Lafayette", "louisiana");
	logoList[i++] = new makeLogo("UCF", "ucf");
	logoList[i++] = new makeLogo("Tulsa", "utulsa");
	logoList[i++] = new makeLogo("Monmouth", "monmouth");
	logoList[i++] = new makeLogo("UNLV", "unlv");
	logoList[i++] = new makeLogo("St. Louis", "slu");
	logoList[i++] = new makeLogo("South Alabama", "southalabama");
	logoList[i++] = new makeLogo("Texas Tech", "ttu");
	logoList[i++] = new makeLogo("Michigan State", "msu");
	logoList[i++] = new makeLogo("Miami", "miami");
	logoList[i++] = new makeLogo("SMU", "smu");
	logoList[i++] = new makeLogo("Memphis", "memphis");
	logoList[i++] = new makeLogo("Liberty Bowl", "liberty_bowl");
	logoList[i++] = new makeLogo("Stephen F. Austin Lumberjacks", "sfasu");
	logoList[i++] = new makeLogo("UC Irvine Anteaters", "uci");
	logoList[i++] = new makeLogo("Northwestern St. Demons", "nsula");
	logoList[i++] = new makeLogo("McNeese St Cowboys", "mcneese");
	logoList[i++] = new makeLogo("Lamar Cardinal", "lamar");
	logoList[i++] = new makeLogo("Princeton Tigers", "princeton");
	logoList[i++] = new makeLogo("Louisiana-Lafayette Ragin&#39; Cajuns", "louisiana");
	logoList[i++] = new makeLogo("UAB Blazers", "uab");
	logoList[i++] = new makeLogo("Rice Owls", "rice");
	logoList[i++] = new makeLogo("East Carolina Pirates", "ecu");
	logoList[i++] = new makeLogo("Southern Miss Eagles", "usm");
	logoList[i++] = new makeLogo("Texas A&M Aggies", "tamu");
	logoList[i++] = new makeLogo("Tulsa Golden Hurricanes", "utulsa");
	logoList[i++] = new makeLogo("UAB", "uab");
	logoList[i++] = new makeLogo("UCF Golden Knights", "ucf");
	logoList[i++] = new makeLogo("Marshall", "marshall");
	logoList[i++] = new makeLogo("Football Season", "football-uh");
	logoList[i++] = new makeLogo("Colorado State", "colostate");
	logoList[i++] = new makeLogo("Colorado St", "colostate");
	logoList[i++] = new makeLogo("Texas Southern", "tsu");
	logoList[i++] = new makeLogo("Alabama", "ua");
	logoList[i++] = new makeLogo("Media Guide", "football-uh");
	logoList[i++] = new makeLogo("UT-San Antonio", "utsa");
	logoList[i++] = new makeLogo("Colorado College", "coloradocollege");
	logoList[i++] = new makeLogo("Texas-Arlington", "uta");
	logoList[i++] = new makeLogo("Texas", "utexas");
	logoList[i++] = new makeLogo("New Mexico State", "nmsu");
	logoList[i++] = new makeLogo("Cal State Bakersfield", "calstatebakersfield");
	logoList[i++] = new makeLogo("Men&#39;s Basketball Season Tickets", "basketball-m");
	logoList[i++] = new makeLogo("Morehead State", "morehead-st");
	logoList[i++] = new makeLogo("Coastal Carolina", "coastal");
	logoList[i++] = new makeLogo("Toledo", "utoledo");
	logoList[i++] = new makeLogo("Middle Tennessee State", "mtsu");
	logoList[i++] = new makeLogo("Southern", "subr");
	logoList[i++] = new makeLogo("Kentucky", "uky");
	logoList[i++] = new makeLogo("Arkansas-Pine Bluff", "uapb");
	logoList[i++] = new makeLogo("Arizona", "Arizona");
	logoList[i++] = new makeLogo("Three Point Play", "basketball-uh");
	logoList[i++] = new makeLogo("Kentucky - Pack 1 (Middle Tennesse & Southern)", "basketball-uh");
	logoList[i++] = new makeLogo("Kentucky - Pack 2 (Arkansas-Pine Bluff & SMU)", "basketball-uh");
	logoList[i++] = new makeLogo("Kentucky - Pack 3 (Grambling St. & Rice)", "basketball-uh");
	logoList[i++] = new makeLogo("Kentucky - Pack 4 (UTEP & Rice)", "basketball-uh");
	logoList[i++] = new makeLogo("Arizona - Pack 1 (Middle Tennessee & Southern)", "basketball-uh");
	logoList[i++] = new makeLogo("Arizona - Pack 2 (Arkansas-Pine Bluff & SMU)", "basketball-uh");
	logoList[i++] = new makeLogo("Arizona - Pack 3 (Grambling St. & Rice)", "basketball-uh");
	logoList[i++] = new makeLogo("Arizona - Pack 4 (Tulsa & Rice)", "basketball-uh");
	logoList[i++] = new makeLogo("Memphis - Pack 1 (Middle Tennesse & Southern)", "basketball-uh");
	logoList[i++] = new makeLogo("Memphis - Pack 2 (Arkansas-Pine Bluff & SMU)", "basketball-uh");
	logoList[i++] = new makeLogo("Memphis - Pack 3 (Grambling St. & Rice)", "basketball-uh");
	logoList[i++] = new makeLogo("Memphis - Pack 4 (UTEP & Rice)", "basketball-uh");
	logoList[i++] = new makeLogo("Shrine Game", "eastWestShrineGame");
	logoList[i++] = new makeLogo("Middle Tennessee", "mtsu");
	logoList[i++] = new makeLogo("Duke", "duke");
	logoList[i++] = new makeLogo("Texas Bowl Parking-Blue Lot", "Texas_Bowl_2007");
//	logoList[i++] = new makeLogo("Shrine Game Donation", "eastWestShrineGame");
	logoList[i++] = new makeLogo("McNeese St.", "mcneese");
	logoList[i++] = new makeLogo("Nicholls St.", "nich");
	logoList[i++] = new makeLogo("Sam Houston St.", "shsu");
	logoList[i++] = new makeLogo("UTSA", "utsa");
	logoList[i++] = new makeLogo("Baylor", "baylor");
//	logoList[i++] = new makeLogo("Baylor", "baylor2");
	logoList[i++] = new makeLogo("Louisiana-Layfayette", "louisiana");
	logoList[i++] = new makeLogo("Pacific", "uop");
	logoList[i++] = new makeLogo("Texas State", "texas_state");
	logoList[i++] = new makeLogo("Sacred Heart", "sacredheart");
	logoList[i++] = new makeLogo("UC-Santa Barbara", "ucsb");
	logoList[i++] = new makeLogo("Stephen F. Austin", "sfasu");
	logoList[i++] = new makeLogo("San Fransisco", "usfca");
	logoList[i++] = new makeLogo("Southern University", "subr");
	logoList[i++] = new makeLogo("Air Force", "usafa");
	logoList[i++] = new makeLogo("Colorado State Ticket Request", "colostate");
	logoList[i++] = new makeLogo("NIT-Round 1", "nit_tipoff");
	logoList[i++] = new makeLogo("CBI Second Round-vs-Valparaiso", "CBI");
	logoList[i++] = new makeLogo("Calendar of Events", "calendar");
	logoList[i++] = new makeLogo("CBI Finals", "CBI");
	logoList[i++] = new makeLogo("Softball Super Regional - Day 1", "ncaaSoftball");
	logoList[i++] = new makeLogo("Softball Super Regional - Day 2", "ncaaSoftball");
	logoList[i++] = new makeLogo("Cougar Pride Donations", "cougarPride2");

	logoList[i++] = new makeLogo("Western Kentucky", "wku");
	logoList[i++] = new makeLogo("Alcorn State", "alcorn");
	logoList[i++] = new makeLogo("Mississippi Valley State", "mvsu2");
	logoList[i++] = new makeLogo("Iowa State", "iastate2");
	logoList[i++] = new makeLogo("UMASS", "umass");
	logoList[i++] = new makeLogo("Gardner-Webb", "gardner-webb");
	logoList[i++] = new makeLogo("Akron", "uakron");
	logoList[i++] = new makeLogo("Cal Poly", "cal_poly2");
	logoList[i++] = new makeLogo("Kansas State", "ksu");
	logoList[i++] = new makeLogo("Texas-Pan American", "panam");
	logoList[i++] = new makeLogo("Missouri", "missouri2");
	logoList[i++] = new makeLogo("Mississippi State", "miss_st_");
	logoList[i++] = new makeLogo("Northwestern State", "Northwestern_State");
	logoList[i++] = new makeLogo("Football 101 for Women Presented by State Farm", "football101Women");
	logoList[i++] = new makeLogo("Mini-Plan 1 (Northwestern State / Texas Tech / SMU)", new Array("Northwestern_State","ttu","smu"));
	logoList[i++] = new makeLogo("Mini-Plan 2 (Northwestern State / Texas Tech / Southern Miss)", new Array("Northwestern_State","ttu","usm"));
	logoList[i++] = new makeLogo("Mini-Plan 3 (Northwestern State / Texas Tech / Memphis)", new Array("Northwestern_State","ttu","memphis"));
	logoList[i++] = new makeLogo("Mini-Plan 4 (Northwestern State / Texas Tech / Rice)", new Array("Northwestern_State","ttu","Rice_Logo"));

	logoList[i++] = new makeLogo("Mini-Plan (SMU)", new Array("ttu","smu","memphis"));
	logoList[i++] = new makeLogo("Mini-Plan (Southern Miss)", new Array("ttu","usm","memphis"));
	logoList[i++] = new makeLogo("Mini-Plan (Rice)", new Array("ttu","memphis","Rice_Logo"));

	logoList[i++] = new makeLogo("Nicholls State", "Nicholls_State");
	logoList[i++] = new makeLogo("Troy", "troy");
	logoList[i++] = new makeLogo("The Citadel", "citadel");
	logoList[i++] = new makeLogo("Louisiana Tech", "latech");
	logoList[i++] = new makeLogo("Princeton", "princeton");
	logoList[i++] = new makeLogo("Kansas", "ku");

	logoList[i++] = new makeLogo("FedEx Orange Bowl", "orange");
	logoList[i++] = new makeLogo("Tostitos Fiesta Bowl", "fiesta");
	logoList[i++] = new makeLogo("Allstate Sugar Bowl", "AllstateSugarBowl");
	logoList[i++] = new makeLogo("Rose Bowl Game presented by Citi", "rosebowl_10");
	logoList[i++] = new makeLogo("AutoZone Liberty Bowl", "liberty2");
	logoList[i++] = new makeLogo("Bell Helicopter Armed Forces Bowl", "ArmedForcesBowl");
	logoList[i++] = new makeLogo("Texas Bowl", "Texas_Bowl");
	logoList[i++] = new makeLogo("Eagle Bank Bowl", "EagleBankBowl");
	logoList[i++] = new makeLogo("EagleBank Bowl", "EagleBankBowl");
	logoList[i++] = new makeLogo("Sheraton Hawai&#39;i Bowl", "hawaii2");
	logoList[i++] = new makeLogo("R&L Carriers New Orleans Bowl", "new_orleans_bowl");
	logoList[i++] = new makeLogo("St. Petersburg Bowl", "stPetersburgBowl");
	logoList[i++] = new makeLogo("Northwestern Oklahoma State", "Northwestern_OK"); 	
	logoList[i++] = new makeLogo("Rogers State", "RogersSt"); 
	logoList[i++] = new makeLogo("Nevada", "unr"); 
	logoList[i++] = new makeLogo("UT-Arlington", "uta"); 
	logoList[i++] = new makeLogo("Georgetown", "georgetown"); 	
	logoList[i++] = new makeLogo("R+L Carriers New Orleans Bowl - $40", "new_orleans_bowl");
	logoList[i++] = new makeLogo("Beef O'Brady's Bowl - $30", "beef_o_brady_s_bowl");
	logoList[i++] = new makeLogo("Sheraton Hawai'i Bowl - $40", "hawaii2");
	logoList[i++] = new makeLogo("Military Bowl - $65", "militarybowllogo");
	logoList[i++] = new makeLogo("AutoZone Liberty Bowl - $50", "liberty2");
	logoList[i++] = new makeLogo("Dallas Football Classic - $75", "dallas_football_classic_bowl");
	logoList[i++] = new makeLogo("Houston Hoops 4 Pack-UTEP", "utep");
	logoList[i++] = new makeLogo("Houston Hoops 4 Pack-UAB", "uab");	
	logoList[i++] = new makeLogo("Texas Arlington", "uta");
	logoList[i++] = new makeLogo("Ole Miss", "olemiss");
	logoList[i++] = new makeLogo("Kent State", "kent");
	logoList[i++] = new makeLogo("Kent State (Sat)", "kent");	
	logoList[i++] = new makeLogo("Houston Baptist", "houstonBaptist");
	logoList[i++] = new makeLogo("Texas A&M (Striking Out Breast Cancer)", "tamu");	
	logoList[i++] = new makeLogo("Cougar Baseball Pack-Ole Miss", "olemiss");
	logoList[i++] = new makeLogo("Cougar Baseball Pack-Kent State", "kent");
	logoList[i++] = new makeLogo("Georgia State", "gsu");		
	logoList[i++] = new makeLogo("Cougar Pride Donation", "cougarPride2");	
	logoList[i++] = new makeLogo("State Farm College Slam Dunk & 3-Point Championships", "houston_slamdunk");	 	

	logoList[i++] = new makeLogo("Santa Clara", "Santa_Clara");
	logoList[i++] = new makeLogo("North Dakota State", "ndsu2");
	logoList[i++] = new makeLogo("Georgia Tech", "gatech");
	logoList[i++] = new makeLogo("Rice (Fri)",  "baseball");
	logoList[i++] = new makeLogo("Rice (Sat)",  "baseball");
	logoList[i++] = new makeLogo("Rice (Sun)",  "baseball");		
	logoList[i++] = new makeLogo("Southern Miss (Fri)",  "baseball");
	logoList[i++] = new makeLogo("Southern Miss (Sat)",  "baseball");
	logoList[i++] = new makeLogo("Southern Miss (Sun)",  "baseball");
	logoList[i++] = new makeLogo("UTSA",  "baseball");
	logoList[i++] = new makeLogo("UCF (DH)",  "softball");		
	logoList[i++] = new makeLogo("UCF",  "softball");
	logoList[i++] = new makeLogo("2011 Softball Regional All-Session Pass",  "UH-softball-logo");
	logoList[i++] = new makeLogo("Softball Regional - Day 2",  "UH-softball-logo");
	logoList[i++] = new makeLogo("Softball Regional - Day 3",  "UH-softball-logo"); 		
	logoList[i++] = new makeLogo("2011-12 Shasta&#39;s Squad", "2011-Shastas-Squad");
	
	logoList[i++] = new makeLogo("Soccer Season","soccer2");
	logoList[i++] = new makeLogo("2011 Volleyball Season", "volleyball2");
	logoList[i++] = new makeLogo("Flo Hyman Invitational (Day 1)", "volleyball2");
	logoList[i++] = new makeLogo("Flo Hyman Invitational (Day 2)", "volleyball2");
	logoList[i++] = new makeLogo("Israeli National Team", "volleyball2");
	logoList[i++] = new makeLogo("La-Lafayette","louisiana");
	logoList[i++] = new makeLogo("UCF","UCF3");
	logoList[i++] = new makeLogo("2011-12 Men&#39;s Basketball Season Tickets", "basketball-m");
	logoList[i++] = new makeLogo("2011-12 Men&#39;s Basketball Season Tickets-Family Fun Plan", "basketball-m");
	logoList[i++] = new makeLogo("Cougar Football 4 Pack", "gsu"); 
	logoList[i++] = new makeLogo("Utah Valley", "utah_valley_state");
	logoList[i++] = new makeLogo("Oakland", "oakland");
	logoList[i++] = new makeLogo("Texas A&M Corpus Christi", "CCIslanders");
	logoList[i++] = new makeLogo("UTSA", "utsa2");
	logoList[i++] = new makeLogo("North Carolina A&T", "NCAT2_GIF");
	logoList[i++] = new makeLogo("Yale", "yale");
	logoList[i++] = new makeLogo("Oral Roberts", "oru");
	logoList[i++] = new makeLogo("2011-2012 Women&#39;s Basketball Season Tickets", "basketball-w");
	logoList[i++] = new makeLogo("Send-A-Kid", "na");		
	logoList[i++] = new makeLogo("Allstate BCS National Championship Game", "bcs_national_championship_2012");
	logoList[i++] = new makeLogo("Discover Orange Bowl", "orange_bowl");
	logoList[i++] = new makeLogo("Rose Bowl", "rosebowl_10");
	logoList[i++] = new makeLogo("R + L Carriers New Orleans Bowl", "new_orleans_bowl");
	logoList[i++] = new makeLogo("Beef O'Brady's Bowl St. Petersburg", "beef_o_brady_s_bowl");
	logoList[i++] = new makeLogo("Sheraton Hawaii Bowl", "hawaii2");
	logoList[i++] = new makeLogo("Ticket City Bowl", "TicketCity_Bowl");
	logoList[i++] = new makeLogo("Military Bowl", "militarybowllogo");
	
	logoList[i++] = new makeLogo("Allstate National Championship Bowl - base price $300", "bcs_national_championship_2012");
	logoList[i++] = new makeLogo("Tostitos Fiesta Bowl - $235", "fiesta2");
	logoList[i++] = new makeLogo("Discover Orange Bowl - $175", "orange_bowl");
	logoList[i++] = new makeLogo("Allstate Sugar Bowl - base price $140", "AllstateSugarBowl");
	logoList[i++] = new makeLogo("Rose Bowl presented by Vizio - $175", "rosebowl_10");
	logoList[i++] = new makeLogo("R + L Carriers New Orleans Bowl - $60", "new_orleans_bowl");
	logoList[i++] = new makeLogo("Beef O'Brady's Bowl St. Petersburg - $TBD", "beef_o_brady_s_bowl");
	logoList[i++] = new makeLogo("Ticket City Bowl - $75", "TicketCity_Bowl");
	logoList[i++] = new makeLogo("2011 CUSA Championship Game", "ConfUSA_2011");
	logoList[i++] = new makeLogo("TicketCity Bowl", "TicketCity_Bowl");
	logoList[i++] = new makeLogo("2012 Baseball Season Tickets", "baseball");
	logoList[i++] = new makeLogo("2012 Baseball Season Tickets Family Plan", "baseball");
	logoList[i++] = new makeLogo("Flex Season Pack", "baseball");
	logoList[i++] = new makeLogo("C-USA Women&#39;s Basketball Tournament", "CAUSA_2012");
	logoList[i++] = new makeLogo("2012 C-USA Men&#39;s Basketball Tournament", "CAUSA_2012");	

/* --------------------------------------------------
	EXTRA LIST
-------------------------------------------------- */
	extraList = new Array;
	var i = 0;
	extraList[i++] = ""; // DO NOT remove
	extraList[i++] = "The ";
	extraList[i++] = "at ";
	extraList[i++] = "@ ";
	extraList[i++] = "vs ";
	extraList[i++] = "vs. ";
	extraList[i++] = " FAMILY 4 PACK";
	extraList[i++] = " - Family Four Packs";
	extraList[i++] = " - Group Tickets";
	extraList[i++] = " - Student Matinee";
	extraList[i++] = " Time TBA";
	extraList[i++] = " (Double-Header)";
	extraList[i++] = " (Double Header)";
	extraList[i++] = " (DH)";
	extraList[i++] = " (Day 1)";
	extraList[i++] = " (Day 2)";
	extraList[i++] = " (Day 3)";
	
	// sort extraList, greatest length first
	extraList.sort(function(a,b) {
		return (a.length > b.length) ? -1 : 1;
	});

/* --------------------------------------------------
	FULL-SIZED IMAGES LIST
-------------------------------------------------- */
	fullsizeList = new Array;
	var i = 0;
//	fullsizeList[i++] = new makeLogo("Rutgers Student Test", "StudentShirt");

/* --------------------------------------------------
	GROUP LIST
-------------------------------------------------- */
	logoGroupList = new Array;
	var i = 0;
	logoGroupList[i++] = new makeLogo(new Array("F","FB","FBS","FBI","FB3","STFB","FB1", "FC", "T"), "football-uh");
	logoGroupList[i++] = new makeLogo(new Array("BS"), "baseball");
	logoGroupList[i++] = new makeLogo(new Array("SB", "2011 Softball Season Ticket Renewal"), "softball");
	logoGroupList[i++] = new makeLogo(new Array("MB","MBS","MBI"), "basketball-m");
	logoGroupList[i++] = new makeLogo(new Array("WB","WBS","WBI"), "basketball-w");
	logoGroupList[i++] = new makeLogo(new Array("V","VB","MVB","WVB"), "volleyball");
	logoGroupList[i++] = new makeLogo(new Array("H"), "hockey");
	logoGroupList[i++] = new makeLogo(new Array("S","MS","WS", "SS1"), "soccer");
	logoGroupList[i++] = new makeLogo(new Array("CLD"), "calendar");
	logoGroupList[i++] = new makeLogo(new Array("SG"), "eastWestShrineGame");
	logoGroupList[i++] = new makeLogo(new Array("MT"), "cusaMBball");
	logoGroupList[i++] = new makeLogo(new Array("MMA"), "XP3");
	logoGroupList[i++] = new makeLogo(new Array("CUSAMB"), "cusaBball");
	logoGroupList[i++] = new makeLogo(new Array("FWB"), "armedforces-bowl");
	logoGroupList[i++] = new makeLogo(new Array("2011 Baseball Season Ticket Renewal"), "baseball");	
	logoGroupList[i++] = new makeLogo(new Array("SHASTA"), "2011-Shastas-Squad");	

/* --------------------------------------------------
	MAIN LOGO FUNCTIONS
-------------------------------------------------- */
	function printLogo(name, group) {
		var logo = "";
		name = cleaner(name.toUpperCase());
		
		// remove appending dates/times (ie: "TITLE - Wed., Sept. 17 - 2pm")
		//name = name.replace(/(( |,|-|\(|\bon\b|\bat\b){0,2} ?\b(mon|tue(s)?|wed(nes)?|thu(r(s)?)?|fri|sat(ur)?|sun)(day)?\b\.?( morning| afternoon| eve| evening| mat)?\)?)?(( |,|-|\(|\bon\b|\bat\b){0,2} ?(\b(jan(uary)?|feb(ruary)?|mar(ch)?|apr(il)?|may|jun(e)?|jul(y)?|aug(ust)?|sep(t(ember)?)?|oct(ober)?|nov(ember)?|dec(ember)?)\b\.? \d{1,2}(th)?(,? ?(20)?\d{2})?\)?|\d{1,2}[/\- ]\d{1,2}([/\- ](20)?\d{2})?\)?))?(( |,|-|\(|\bon\b|\bat\b){0,2} ?\d{1,2}(:\d{2})? ?(a.?m.?|p.?m.?)\)?)?$/ig, "");
		
		// custom code case 227441 BELOW (text appended to bowl events)
		name = name.replace(/( - \$\d{2,3} - (Sideline|Lower Bowl|Loge Sideline))$/ig, "");
		
		// process extralist
		var extraName = name;
		for(var i=0; i<extraList.length; i++) {
			if(extraName.indexOf(extraList[i].toUpperCase())==0) {
				extraName = extraName.slice(extraList[i].length, extraName.length);
				break;
			}
		}
		for(var i=0; i<extraList.length; i++) {
			if(extraName.length - extraList[i].length>0 && extraName.indexOf(extraList[i].toUpperCase())==extraName.length - extraList[i].length) {
				extraName = extraName.slice(0, extraName.length - extraList[i].length);
				break;
			}
		}
		extraName = extraName.replace(/(( |,|-|\(|\bon\b|\bat\b){0,2} ?\b(mon|tue(s)?|wed(nes)?|thu(r(s)?)?|fri|sat(ur)?|sun)(day)?\b\.?( morning| afternoon| eve| evening| mat)?\)?)?(( |,|-|\(|\bon\b|\bat\b){0,2} ?(\b(jan(uary)?|feb(ruary)?|mar(ch)?|apr(il)?|may|jun(e)?|jul(y)?|aug(ust)?|sep(t(ember)?)?|oct(ober)?|nov(ember)?|dec(ember)?)\b\.? \d{1,2}(th)?(,? ?(20)?\d{2})?\)?|\d{1,2}[/\- ]\d{1,2}([/\- ](20)?\d{2})?\)?))?(( |,|-|\(|\bon\b|\bat\b){0,2} ?\d{1,2}(:\d{2})? ?(a.?m.?|p.?m.?)\)?)?$/ig, "");
		
		// find logo match (start from end for most recently added logos)
		for(var i=logoList.length-1; i>=0; i--) {
			var listName = logoList[i].oname.toUpperCase();
			if(name==cleaner(listName) || extraName==cleaner(listName)) {
				logo = logoList[i].ologo;
				break;
			}
		}

		if(logo=="" && name.indexOf("ARMED FORCES BOWL")>-1) logo = "armedforcesbowl";
		
		// find logo based on group
		if(logo=="") {
			if(typeof(fullGroupList)!="undefined" && group!="") {
				while(logo=="" && group!="") {
					for(var k=0; k<logoGroupList.length; k++) {
						for(var l=0; l<logoGroupList[k].oname.length; l++) {
							if(logoGroupList[k].oname[l]==group) {
								logo = logoGroupList[k].ologo;
								break;
							}
						}
						if(logo!="") break;
					}
					if(logo!="") break;
					var parent = "";
					for(var i=0; i<fullGroupList.length; i++) {
						if(fullGroupList[i].code==group) {
							parent = fullGroupList[i].parent;
						}
					}
					group = parent;
				}
			} else {
				for(var k=0; k<logoGroupList.length; k++) {
					for(var l=0; l<logoGroupList[k].oname.length; l++) {
						if(logoGroupList[k].oname[l]==group) {
							logo = logoGroupList[k].ologo;
							break;
						}
					}
				}
			}
		}
		
		// set DEFAULT LOGO if still not assigned
		//template enhancement, no default logo for renewals
		if(group!="renewals") {
			if(logo=="") logo = "na";
		} else {
			if(logo=="") logo = "na";  //change to different default renewal logo, or comment out to remove default logo function on Renewal Process	
		}	
		
		// determine if full sized image exists
		var fullSize = "";
		for(var i=0; i < fullsizeList.length; i++) {
			var listName = fullsizeList[i].oname.toUpperCase();
			if(name==cleaner(listName) || extraName==cleaner(listName)) {
				fullSize = fullsizeList[i].ologo;
				break;
			}
		}
		
		var imgSrc = "";
		
		// create and return logo source
		if(logo!="") {
			if(typeof(logo)=="string") {
				// custom code (remove w/h) BELOW
				imgSrc = '<img src="'+imageWWWPath+'/logos/'+logo+'.gif" border="0" alt="'+extraName+'" align="absmiddle">'; // custom code (add align)
			} else {
				for(var k=0; k<logo.length; k++) {
					imgSrc += '<img src="'+imageWWWPath+'/logos/'+logo[k]+'.gif" border="0" width="60" height="60" alt="'+extraName+'" align="absmiddle"> '; // custom code (add align)
				}
			}
			if(fullSize!="" && group!="ticketTransfers") {
				imgSrc = '<a href="#" onclick="toggleFullSize(this); return false;" class="thumbHide">' + imgSrc + '<br><small style="white-space:nowrap"><img src="'+imageWWWPath+'/fullsize/mag.gif" border="0" width="11" height="11" align="absmiddle"> view large</small><span><img src="'+imageWWWPath+'/fullsize/'+fullSize+'.gif" border="0" alt="'+name+'"><br><small style="white-space:nowrap"><img src="'+imageWWWPath+'/fullsize/close.gif" border="0" width="11" height="11" align="absmiddle"> click to close</small></span></a>';
			}
		}
		return(imgSrc);
	}
	
	function toggleFullSize(thumb) {
		if(thumb.className=="thumbHide") {
			thumb.className = 'thumbShow';
		} else if(thumb.className=="thumbShow") {
			thumb.className = 'thumbHide';
		}
	}
	
	// print smaller logo for calendar
	function printCalLogo(name, group) {
		var imgSrc = printLogo(name, group);
		if(imgSrc!="") {
			imgSrc = imgSrc.replace(/width="60" height="60"/ig, 'width="40" height="40"');
			
			//remove full size code
			imgSrc = imgSrc.replace(/((<a href[^>]+>){1}|(<br>(<([^>]+)>)+ view large(<([^>]+)>)+ click to close(<([^>]+)>)+))/ig, "");
		}
		return(imgSrc);
	}
	
	// print very small logo (custom code)
	function printSmallLogo(name, group) {
		var imgSrc = printLogo(name, group);
		if(imgSrc!="") {
			imgSrc = imgSrc.replace(/width="60" height="60"/ig, 'width="25" height="25"');
			
			//remove full size code
			imgSrc = imgSrc.replace(/((<a href[^>]+>){1}|(<br>(<([^>]+)>)+ view large(<([^>]+)>)+ click to close(<([^>]+)>)+))/ig, "");
		}
		return(imgSrc);
	}
	
	// custom code (print large logo - for displaygrouplist)
	function printBigLogo(name, group) {
		var logo = "";
		var imgSrc = "";
		
		switch(group) {
			case "PA": logo = "twuni"; break;
			case "GB": logo = "gbpac"; break;
			case "WS": logo = "wcfso"; break;
			case "SW": logo = "theatre"; break;
			case "SM": logo = "som"; break;
			case "EC": logo = "uniComplex"; break;
			default: logo = "twuni"; break;
		}
		
		if(logo!="") {
			imgSrc = '<img src="'+imageWWWPath+'/logos/'+logo+'.jpg" border="0" alt="'+name+'">';
			imgSrc = imgSrc.replace(/.gif"/ig, '.jpg"');
		}
		return(imgSrc);
	}
