/* --------------------------------------------------
	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("USC", "usc");
	logoList[i++] = new makeLogo("UCLA", "ucla");
	logoList[i++] = new makeLogo("Cal", "berkeley");
	logoList[i++] = new makeLogo("Oregon", "uoregon");
	logoList[i++] = new makeLogo("Oregon State", "oregonstate");
	logoList[i++] = new makeLogo("Washington", "washington");
	logoList[i++] = new makeLogo("Appalachian State", "appstate");
	logoList[i++] = new makeLogo("Ole Miss", "olemiss");
	logoList[i++] = new makeLogo("Louisiana-Monroe", "ulm");
	logoList[i++] = new makeLogo("SDSU", "sdsu");
	logoList[i++] = new makeLogo("Air Force", "usafa");
	logoList[i++] = new makeLogo("Utah", "utah");
	logoList[i++] = new makeLogo("Texas A&M", "tamu");
	logoList[i++] = new makeLogo("Colorado State", "colostate");
	logoList[i++] = new makeLogo("New Mexico", "unm");
	logoList[i++] = new makeLogo("Brigham Young", "byu");
	logoList[i++] = new makeLogo("Nevada-Las Vegas ", "unlv");
	logoList[i++] = new makeLogo("Chris LeDoux", "chris");
	logoList[i++] = new makeLogo("@ Brigham Young", "byu");
	logoList[i++] = new makeLogo("@ Nevada-Las Vegas", "unlv");
	logoList[i++] = new makeLogo("@ New Mexico", "unm");
	logoList[i++] = new makeLogo("Colorado School of Mines", "mines");
	logoList[i++] = new makeLogo("Colorado @ Colorado Springs", "coloradocollege");
	logoList[i++] = new makeLogo("Alcorn State", "alcorn");
	logoList[i++] = new makeLogo("Princeton", "princeton");
	logoList[i++] = new makeLogo("Texas Arlington", "uta");
	logoList[i++] = new makeLogo("Washington State", "wsu");	
	logoList[i++] = new makeLogo("University of San Diego", "acusd");
	logoList[i++] = new makeLogo("University of Denver", "du");
	logoList[i++] = new makeLogo("Indiana Purdue @ Fort Wayne", "iupui");
	logoList[i++] = new makeLogo("BYU", "byu");		
	logoList[i++] = new makeLogo("CSU", "colostate");
	logoList[i++] = new makeLogo("UNLV", "unlv");			
//	logoList[i++] = new makeLogo("Las Vegas Bowl", "vegasbowl");				
	logoList[i++] = new makeLogo("Emerald Bowl", "emeraldbowl");					
	logoList[i++] = new makeLogo("Las Vegas Bowl", "lasvegasbowl");				
	logoList[i++] = new makeLogo("MWC Tournament", "mwc");			
	logoList[i++] = new makeLogo("Louisiana Monroe Indians", "ulm");
	logoList[i++] = new makeLogo("UNLV Rebels", "unlv");
	logoList[i++] = new makeLogo("Texas Christian University - Horned Frogs", "tcu");
	logoList[i++] = new makeLogo("New Mexico Lobos", "unm");
	logoList[i++] = new makeLogo("Brigham Young Cougars", "byu");
	logoList[i++] = new makeLogo("TCU - Horned Frogs", "tcu");
	logoList[i++] = new makeLogo("@ Florida", "ufl");
	logoList[i++] = new makeLogo("@ Air Force - Falcons", "usafa");
	logoList[i++] = new makeLogo("@ Ole Miss - Rebels", "olemiss");
	logoList[i++] = new makeLogo("@ CSU - Rams", "colostate");
	logoList[i++] = new makeLogo("@ Utah - Utes", "utah");
	logoList[i++] = new makeLogo("@ San Diego State - Aztecs", "sdsu");
	logoList[i++] = new makeLogo("LA - Monroe", "ulm");
	logoList[i++] = new makeLogo("Southern Illinois", "siu-siuc");
	logoList[i++] = new makeLogo("SMU", "smu");
	logoList[i++] = new makeLogo("Wisconsin-Milwaukee", "uwm");
	logoList[i++] = new makeLogo("Weber State", "weber");
	logoList[i++] = new makeLogo("San Diego State", "sdsu");
	logoList[i++] = new makeLogo("TCU", "tcu");
	logoList[i++] = new makeLogo("Chadron State", "csc");
	logoList[i++] = new makeLogo("Colorado", "mountainlion");
	logoList[i++] = new makeLogo("Colorado State - Pueblo", "coloradostate");
	logoList[i++] = new makeLogo("Metro State", "metrostate");
	logoList[i++] = new makeLogo("Kansas State", "ksu");
	logoList[i++] = new makeLogo("Montana", "montana");
	logoList[i++] = new makeLogo("Boise State", "boisestate");
	logoList[i++] = new makeLogo("Idaho State", "isu");
	logoList[i++] = new makeLogo("@ BYU", "byu");
	logoList[i++] = new makeLogo("@ Colorado State", "colostate");
	logoList[i++] = new makeLogo("@ UNLV", "unlv");
	logoList[i++] = new makeLogo("@ Air Force", "usafa");
	logoList[i++] = new makeLogo("@ Utah", "utah");
	logoList[i++] = new makeLogo("Women&#39;s NIT First Round", "womensnit");
	logoList[i++] = new makeLogo("MONTANA", "montana");
	logoList[i++] = new makeLogo("MONTANA STATE", "montana_state");
	logoList[i++] = new makeLogo("Northern Colorado", "northern_colorado");
	logoList[i++] = new makeLogo("SOUTHERN OREGON", "southern_oregon");
	logoList[i++] = new makeLogo("EASTERN WASHINGTON", "ewu");
	logoList[i++] = new makeLogo("PORTLAND STATE", "pdx");
	logoList[i++] = new makeLogo("CAL POLY", "cal_poly");	
	logoList[i++] = new makeLogo("Utah Valley State College", "utvs");
	logoList[i++] = new makeLogo("CSU Bakersfield", "csub");
	logoList[i++] = new makeLogo("Northern Arizona University", "nau");
	logoList[i++] = new makeLogo("University of Northern Colorado", "northern_colorado");
	logoList[i++] = new makeLogo("University of Montana", "montana_new");
	logoList[i++] = new makeLogo("Weber State University", "weber");	
	logoList[i++] = new makeLogo("Montana-Western", "montana_western");
	logoList[i++] = new makeLogo("Utah Valley State", "utah_valley_university");
	logoList[i++] = new makeLogo("Northern Arizona", "northern_arizona");	
	logoList[i++] = new makeLogo("Utah Valley", "utah_valley_university");
	logoList[i++] = new makeLogo("Montana State", "montana_state");
	logoList[i++] = new makeLogo("Boise State", "boise_state");
	//logoList[i++] = new makeLogo("TCU", "tcu");
	logoList[i++] = new makeLogo("Governor&#39;s Cup - U of Idaho vs Southern Utah", "idaho_vs_suu");
	logoList[i++] = new makeLogo("Governor&#39;s Cup - Idaho State vs Boise State", "idsu_vs_boisest");	
	logoList[i++] = new makeLogo("Governor&#39;s Cup - Southern Utah vs Boise State", "suu_vs_boisest");
	logoList[i++] = new makeLogo("ISU Tourn: Air Force vs Northern Iowa", "af_vs_northiowa");
	logoList[i++] = new makeLogo("ISU Tourn: Idaho State vs San Jose State", "idahost_vs_sanjose");
	logoList[i++] = new makeLogo("ISU Tourn: Northern Iowa vs San Jose State", "nothiowa_vs_sanjose");
	logoList[i++] = new makeLogo("ISU Tourn: Idaho State vs Air Force", "idahost_vs_af");
	logoList[i++] = new makeLogo("Governor&#39;s Cup - Idaho State vs U of Idaho", "idahost_vs_uofidaho");
	logoList[i++] = new makeLogo("An Evening with Sawyer Brown - 7pm", "sawyer_brown");
	logoList[i++] = new makeLogo("An Evening with Sawyer Brown - 9pm", "sawyer_brown");
	logoList[i++] = new makeLogo("ZUM", "zum");
	logoList[i++] = new makeLogo("Irvin Mayfield & the New Orleans Jazz Orchestra", "irvin_mayfield");
	logoList[i++] = new makeLogo("Turtle Island Quartet", "turtleisland");
	logoList[i++] = new makeLogo("Kurt Bestor Christmas", "kurt_bestor");
	logoList[i++] = new makeLogo("Jim Brickman", "jim_brickman");
	logoList[i++] = new makeLogo("Ladysmith Black Mambazo", "mambazo");
	logoList[i++] = new makeLogo("Golden Dragon Acrobats", "golden_dragon");
	logoList[i++] = new makeLogo("Imago Theatre FROGZ", "frogz");
	logoList[i++] = new makeLogo("Chanticleer", "chanticleer");
	logoList[i++] = new makeLogo("Rocky Mountain College (Exhibition)", "Rocky_Mountain_College");
	logoList[i++] = new makeLogo("Montana State - Northern", "MSU_Northern_GIF");
	logoList[i++] = new makeLogo("Northwest Nazarene", "Northwest_Nazarene");
	logoList[i++] = new makeLogo("Sacamento State", "Sacramento_State");
	logoList[i++] = new makeLogo("Women&#39;s Basketball Season Ticket", "bball");
	logoList[i++] = new makeLogo("Montana Tech", "montana_tech");
	logoList[i++] = new makeLogo("Utah State", "usu");
	logoList[i++] = new makeLogo("Southern Utah", "suu");
	logoList[i++] = new makeLogo("Wednesday Rodeo Performance", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Thursday Rodeo Performance", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Friday Rodeo Performance", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Saturday Matinee Performance", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Saturday Evening Championship Performance", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("3 Session Series Ticket", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("5 Session SeriesTicket", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Monster Trucks 2008", "monstertrucks2008");
	logoList[i++] = new makeLogo("Jimmy Eat World / Paramore concert", "jimmyeatworld");
	logoList[i++] = new makeLogo("BSC Playoffs: ISU vs Montana", "montana");
	logoList[i++] = new makeLogo("BSC Playoffs ISU vs Montana", "montana");
	logoList[i++] = new makeLogo("The &quot;World Famous&quot; Lipizzaner Stallions", "lipizzaner_stallions");
	logoList[i++] = new makeLogo("ISU @ Boise State", "boisestate");
	logoList[i++] = new makeLogo("North Dakota", "und");
	logoList[i++] = new makeLogo("Northern Arizona - HC", "northernarizona");
	logoList[i++] = new makeLogo("ISU @ Montana", "montana");
	logoList[i++] = new makeLogo("Northwest Nazarene (exhib)", "northwest_nazarene");
	logoList[i++] = new makeLogo("Gonzaga", "gonzaga");
	logoList[i++] = new makeLogo("Football Season Ticket", "idaho-state");
	logoList[i++] = new makeLogo("ISU @ Idaho", "idaho");
	logoList[i++] = new makeLogo("Montgomery Gentry Concert", "montgomery_gentry");
	logoList[i++] = new makeLogo("Seattle", "seattle_university");
	logoList[i++] = new makeLogo("Eastern Oregon", "eastern_oregon");
	logoList[i++] = new makeLogo("Rocky Mountain", "Rocky_Mountain_College");
	logoList[i++] = new makeLogo("Long Beach State", "csulb");
	logoList[i++] = new makeLogo("BYU 2-Game Pre-Sale Special", "byu");
	logoList[i++] = new makeLogo("Brigham Young University", "byu");
	logoList[i++] = new makeLogo("Idaho", "uidaho");
	logoList[i++] = new makeLogo("Montana State - H of F", "montana_state");
	logoList[i++] = new makeLogo("Samarabalouf", "samarabalouf");
	logoList[i++] = new makeLogo("Natalie MacMaster", "nicole-macmaster");
	logoList[i++] = new makeLogo("ABBA-Mania", "ABBAMANIA4");
	logoList[i++] = new makeLogo("Eric Bibb", "eric-bibb");
	logoList[i++] = new makeLogo("JIGU! Thunder Drums", "Jigu");
	logoList[i++] = new makeLogo("Blue Suede Shoes", "BlueSuede-Scot-4");
	logoList[i++] = new makeLogo("Collin Raye Christmas", "CollinRaye2");
	logoList[i++] = new makeLogo("Harlem Gospel Choir", "HarlemGospelChoir");
	logoList[i++] = new makeLogo("Jason Farnham Valentine's Show", "JasonFarnham");
	logoList[i++] = new makeLogo("Time for Three", "TF3-4");
	logoList[i++] = new makeLogo("Red Chamber", "RedChamber");
	logoList[i++] = new makeLogo("A Christmas Carol", "christmascarol");
	logoList[i++] = new makeLogo("Kurt Bestor Christmas", "kurt-bestor-christmas");
	logoList[i++] = new makeLogo("Scrap Arts Music", "scrap-arts-music");
	logoList[i++] = new makeLogo("Bearfoot Bluegrass", "bearfootbluegrass");
	logoList[i++] = new makeLogo("Barrage", "barrage");
	logoList[i++] = new makeLogo("Ailey II", "aileyII");
	logoList[i++] = new makeLogo("Roger Williams", "roger-williams");
	logoList[i++] = new makeLogo("Forgotten Carols w/Michael McLean", "forgotten-carols");
	logoList[i++] = new makeLogo("Living Legends", "living-legends");
	logoList[i++] = new makeLogo("Marcus Eaton Trio", "marcuseatontrio");
	logoList[i++] = new makeLogo("Jeff Dunham, SPARK OF INSANITY", "jeff_dunham");
	logoList[i++] = new makeLogo("Wednesday Rodeo & Concert", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Saturday Matinee Rodeo Performance", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("Championship Round", "dodge-finals-rodeo");
	logoList[i++] = new makeLogo("I~MOVE PG", "imove_pg");
	logoList[i++] = new makeLogo("Picasso, Lapin Agile PG-13", "picasso_lapinagile");
	logoList[i++] = new makeLogo("Monster Truck Grand Nationals", "monstertrucks2009");
	logoList[i++] = new makeLogo("Archuleta", "archuleta");
	logoList[i++] = new makeLogo("Circus Gatti", "circus_gatti"); 	
	logoList[i++] = new makeLogo("Great Russian Nutcracker 11/24", "nutcracker");
	logoList[i++] = new makeLogo("Great Russian Nutcracker 11/25", "nutcracker");
	logoList[i++] = new makeLogo("Central Washington Wildcats", "cwu");
	logoList[i++] = new makeLogo("Eastern Washington Eagles", "ewu");
	logoList[i++] = new makeLogo("Northern Colorado Bears", "northern_colorado2");
	logoList[i++] = new makeLogo("Montana Grizzlies", "montana");
	logoList[i++] = new makeLogo("Portland State Vikings", "pdx");
	logoList[i++] = new makeLogo("ISU @ Arizona State", "asu");
	logoList[i++] = new makeLogo("ISU @ Oklahoma", "ou");
	logoList[i++] = new makeLogo("ISU @ Weber State", "weber");
	logoList[i++] = new makeLogo("Northwest Nazarene Crusaders", "Northwest_Nazarene");
	logoList[i++] = new makeLogo("Maine Black Bears", "umaine");
	logoList[i++] = new makeLogo("Utah Valley Wolverines", "utah_valley_state");
	logoList[i++] = new makeLogo("Northern Arizona Lumberjacks", "northernArizona");
	logoList[i++] = new makeLogo("Weber State Wildcats", "weber");
	logoList[i++] = new makeLogo("Eastern Washington Eagles (Homecoming)", "ewu");
	logoList[i++] = new makeLogo("ISU @ Montana State", "montanastate");
	logoList[i++] = new makeLogo("UC-Colorado Springs (Exhibition)", "colorado_springs2");
	logoList[i++] = new makeLogo("Rocky Mountain (Exhibition)", "Rocky_Mountain_College");
	logoList[i++] = new makeLogo("Colorado Christian", "colorado_christian");
	logoList[i++] = new makeLogo("Cal State Bakersfield", "csub");
	logoList[i++] = new makeLogo("SAB presents Homecoming Concert 2009 - Nuttin&#39; But Stringz", "sabtattoo");
	logoList[i++] = new makeLogo("The 5 Browns - Classical Piano", "5browns");
	logoList[i++] = new makeLogo("The King&#39;s Singers", "kingssingers");
	logoList[i++] = new makeLogo("Jim Witter - The Piano Men", "jimwitter");
	logoList[i++] = new makeLogo("A Rockapella Holiday", "rockapella");
	logoList[i++] = new makeLogo("At Iowa State", "iastate2");
	logoList[i++] = new makeLogo("At Bradley", "bradley");
	logoList[i++] = new makeLogo("At Weber State (lower, near team bench)", "weber");
	logoList[i++] = new makeLogo("At Weber State (upper - away from floor)", "weber");
	logoList[i++] = new makeLogo("Colbie Caillat", "colbie_caillat");
	logoList[i++] = new makeLogo("Medicine Ball", "medicineball");
	logoList[i++] = new makeLogo("James Otto", "jamesotto");
//	logoList[i++] = new makeLogo("Bengal Football Season Tickets", "isu");
	logoList[i++] = new makeLogo("Montana-Western Bulldogs", "montana_western");
	logoList[i++] = new makeLogo("Montana State Bobcats", "montanastate");
	logoList[i++] = new makeLogo("Sacramento State Hornets", "sacstate");
	logoList[i++] = new makeLogo("ISU at Utah State", "usu");
	logoList[i++] = new makeLogo("ISU at Montana", "montana");
	logoList[i++] = new makeLogo("ISU at Georgia", "uga");
	logoList[i++] = new makeLogo("College of Idaho", "college_of_idaho");
	logoList[i++] = new makeLogo("Idaho: Governor&#39;s Cup Day 1", "uidaho");
	logoList[i++] = new makeLogo("Boise State: Governor's Cup Day 2", "boisestate"); 
	logoList[i++] = new makeLogo("Texas Pan-Am", "panam");
	logoList[i++] = new makeLogo("MSU-Billings (Exhibition)", "montanastate_billings");
	logoList[i++] = new makeLogo("Carroll College (Exhibition)", "carroll_college");
	logoList[i++] = new makeLogo("Great Falls", "great_falls");
	logoList[i++] = new makeLogo("Kansas City", "UMKC3");
	logoList[i++] = new makeLogo("Loyola Marymount", "lmu");
	logoList[i++] = new makeLogo("Sacramento State", "sacstate");	
	logoList[i++] = new makeLogo("BYU International Folkdance Ensemble", "folkdance");
	logoList[i++] = new makeLogo("Red Chamber", "redchamber");
	logoList[i++] = new makeLogo("All Inclusive Rodeo Package", "rodeo");
	logoList[i++] = new makeLogo("Weekend Rodeo Package", "rodeo");
	logoList[i++] = new makeLogo("Wednesday Xtreme Bulls", "wed_rodeo");
	logoList[i++] = new makeLogo("Thursday Rodeo", "rodeo");
	logoList[i++] = new makeLogo("Friday Rodeo", "rodeo");
	logoList[i++] = new makeLogo("Saturday Rodeo", "rodeo");
	logoList[i++] = new makeLogo("Sick Puppies Concert", "sick_puppies");
	logoList[i++] = new makeLogo("Jeff Dunham, Identity Crisis Tour", "idsu-dunham");
	logoList[i++] = new makeLogo("Western States Mountaineers", "western_states");
	logoList[i++] = new makeLogo("ISU at Washington State", "wsu");
	logoList[i++] = new makeLogo("ISU at Weber State", "weber");
	logoList[i++] = new makeLogo("ISU at BYU", "byu");
	logoList[i++] = new makeLogo("ISU at Montana State", "montanastate");
	logoList[i++] = new makeLogo("New Mexico State", "nmsu");
	logoList[i++] = new makeLogo("Nevada", "nevada");

	logoList[i++] = new makeLogo("University of Wyoming", "wyoming");
	logoList[i++] = new makeLogo("University of Montana Grizzlies", "montana");
	logoList[i++] = new makeLogo("Oklahoma Panhandle State", "opsu");
	
	logoList[i++] = new makeLogo("Harlem Globetrotters", "globetrotters");
	logoList[i++] = new makeLogo("Magic Pass", "globetrotters");
	logoList[i++] = new makeLogo("In The Mood 1940&#39;s Big Band Revue", "ISU_Mood");

/*
>SPEC (Stephen's Center Special Events)
image: (use default for parent group)

>M (ISU Music)
image: (use default logo for parent group)

>TR (Track and Field)
image: (image from parent group) 
*/

/* --------------------------------------------------
	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";
	
	// 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", "C"), "football");
	logoGroupList[i++] = new makeLogo(new Array("BB"), "baseball");
	logoGroupList[i++] = new makeLogo(new Array("SB"), "softball");
	logoGroupList[i++] = new makeLogo(new Array("MB","MBS","MBI"), "basketball");
	logoGroupList[i++] = new makeLogo(new Array("WB","WBS","WBI"), "basketball");
	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("SOC","SO","MS","WS", "S"), "soccer");
	logoGroupList[i++] = new makeLogo(new Array("CLD"), "calendar");

	logoGroupList[i++] = new makeLogo(new Array("H"), "hockey");
	logoGroupList[i++] = new makeLogo(new Array("SYM"), "symphony");
	logoGroupList[i++] = new makeLogo(new Array("SOC"), "soccer2");
	logoGroupList[i++] = new makeLogo(new Array("TMD"), "idahost_theatre");
	logoGroupList[i++] = new makeLogo(new Array("PK"), "parking");
	logoGroupList[i++] = new makeLogo(new Array("SPEV"), "holt_side");
	logoGroupList[i++] = new makeLogo(new Array("SPAC"), "stephens_center");
	logoGroupList[i++] = new makeLogo(new Array("ATHL"), "idsu_athletics");
	logoGroupList[i++] = new makeLogo(new Array("SN"), "season_of_note");
	logoGroupList[i++] = new makeLogo(new Array("SPEC"), "stephens_center");
	logoGroupList[i++] = new makeLogo(new Array("FB"), "idsu_helmet");
	logoGroupList[i++] = new makeLogo(new Array("MBB"), "basketball");
	logoGroupList[i++] = new makeLogo(new Array("WBB"), "basketball");
	logoGroupList[i++] = new makeLogo(new Array("M"), "music2");
	logoGroupList[i++] = new makeLogo(new Array("XXXX"), "xxxx");


/* --------------------------------------------------
	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, "");
		
		// 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;
			}
		}

		// custom code
		if(logo=="") {
			var str = name
			if (name.match("JASON ALDEAN")) {
				logo = "jason_aldean";
			} else if(name.indexOf("DNCFR") > -1) {
				logo = "dncfr";
			} else if(name.indexOf("SOUTH DAKOTA") > -1) {
				logo = "usd";
			} else if(name.indexOf("PARKING") > -1) {
				logo = "parking";
			} else if(name.indexOf("BRIAN REGAN") > -1) {
				logo = "brian-regan";
			}
		}
		// end cc
		
		// 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") {
				imgSrc = '<img src="'+imageWWWPath+'/logos/'+logo+'.gif" border="0" width="60" height="60" alt="'+extraName+'" align="absmiddle">';
			} 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"> ';
				}
			}
			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
	function printSmallLogo(name, group) {
		var imgSrc = printLogo(name, group);
		if(imgSrc!="") {
			imgSrc = imgSrc.replace(/width="60" height="60"/ig, 'width="30" height="30" align="absmiddle"');
			
			//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);
	}
