/* --------------------------------------------------
	Created:	March 6, 2007
	Purpose:	Functions to create and print logos. 
				Used primarily on:
				- displaySimpleEventList
				- displayGroupList 
-------------------------------------------------- */
	var defaultLogo = "na"; // custom code
	
	function makeLogo(name, logo, divider) {
		this.oname = name;
		this.ologo = logo;
		this.divider = (typeof(divider)!="undefined" && divider!="" ? divider : "");
	}

/* --------------------------------------------------
	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("Florida Int&#39;l", "fiu");	
	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("Cincinnati", "uc");
	logoList[i++] = new makeLogo("Western Michigan", "wmich");
	logoList[i++] = new makeLogo("Chicago State", "csu");
	logoList[i++] = new makeLogo("Georgetown (DH)", "georgetown");
	logoList[i++] = new makeLogo("Seton Hall (DH)", "shu");
	logoList[i++] = new makeLogo("Toledo", "utoledo");
	logoList[i++] = new makeLogo("Bowling Green", "bgsu");
	logoList[i++] = new makeLogo("Central Michigan", "cmich");
	logoList[i++] = new makeLogo("Connecticut", "uconn");
	logoList[i++] = new makeLogo("Connecticut (DH)", "uconn");
	logoList[i++] = new makeLogo("Valparaiso", "valpo");
	logoList[i++] = new makeLogo("Villanova", "villanova");
	logoList[i++] = new makeLogo("Cleveland State", "csuohio");
	logoList[i++] = new makeLogo("West Virginia", "wvu");
	logoList[i++] = new makeLogo("West Virginia (DH)", "wvu");
	logoList[i++] = new makeLogo("Oakland", "oakland");
	logoList[i++] = new makeLogo("ND Soccer vs. Mexico", "mexico");	
	logoList[i++] = new makeLogo("Big East Quarterfinals", "bigeast");
	logoList[i++] = new makeLogo("Big East Finals", "bigeast");
	logoList[i++] = new makeLogo("Big East Semifinals", "bigeast");
	logoList[i++] = new makeLogo("Friday NCAA Softball", "ncaa");
	logoList[i++] = new makeLogo("Saturday NCAA Softball", "ncaa");
	logoList[i++] = new makeLogo("Sunday NCAA Softball", "ncaa");
	logoList[i++] = new makeLogo("Michigan", "umich");
	logoList[i++] = new makeLogo("Seton Hall", "shu");
	logoList[i++] = new makeLogo("Georgetown", "georgetown");
	logoList[i++] = new makeLogo("Louisville", "louisville");
	logoList[i++] = new makeLogo("St. Louis", "wustl");
	logoList[i++] = new makeLogo("Rutgers", "rutgers");
	logoList[i++] = new makeLogo("DePaul", "depaul");
	logoList[i++] = new makeLogo("Providence", "providence");
	logoList[i++] = new makeLogo("Bradley", "bradley");
	logoList[i++] = new makeLogo("Indiana", "indiana");
	logoList[i++] = new makeLogo("Michigan State", "msu");
	logoList[i++] = new makeLogo("BYU", "byu");
	logoList[i++] = new makeLogo("Tennessee", "utk");
	logoList[i++] = new makeLogo("Navy", "usna");
	logoList[i++] = new makeLogo("Syracuse", "syr");
	logoList[i++] = new makeLogo("Indianapolis", "uindy");
	logoList[i++] = new makeLogo("Indianapolis (exh.)", "uindy");
	logoList[i++] = new makeLogo("Ferris State", "ferris");
	logoList[i++] = new makeLogo("Ferris State (exh.)", "ferris");
	logoList[i++] = new makeLogo("Iona", "iona");
	logoList[i++] = new makeLogo("Marquette", "marquette");
	logoList[i++] = new makeLogo("South Florida", "usf");
	logoList[i++] = new makeLogo("Pittsburgh", "pitt");
	logoList[i++] = new makeLogo("Indianapolis (exhibition)", "uindy");
	logoList[i++] = new makeLogo("Ferris State (exhibition)", "ferris");
	logoList[i++] = new makeLogo("Princeton", "princeton");
	logoList[i++] = new makeLogo("Ohio State", "osu");
	logoList[i++] = new makeLogo("Minnesota State-Mankato", "msus-mankato");
	logoList[i++] = new makeLogo("Lake Superior State", "lssu");
	logoList[i++] = new makeLogo("Miami", "muohio");
	logoList[i++] = new makeLogo("Alaska-Fairbanks", "uaf");
	logoList[i++] = new makeLogo("Lafayette", "lafayette");
	logoList[i++] = new makeLogo("Hofstra", "hofstra");
	logoList[i++] = new makeLogo("Florida International", "fiu");
	logoList[i++] = new makeLogo("Niagara", "niagara");
	logoList[i++] = new makeLogo("Columbia", "columbia");
	logoList[i++] = new makeLogo("Fordham", "fordham");
	logoList[i++] = new makeLogo("Wofford", "wofford");
	logoList[i++] = new makeLogo("Lewis (exh)", "lewisflyers");
	logoList[i++] = new makeLogo("Quincy (exh)", "quincy");
	logoList[i++] = new makeLogo("Fort McDowell Fiesta Bowl Parade", "parade");
	logoList[i++] = new makeLogo("Fiesta Bowl Block Party", "blockparty");
	logoList[i++] = new makeLogo("College Football&#39;s Biggest Party", "tailgate");
	logoList[i++] = new makeLogo("F17 - Fort McDowell Fiesta Bowl Parade", "parade");
	logoList[i++] = new makeLogo("F18 - Tempe Tostitos Fiesta Bowl Block Party", "blockparty");
	logoList[i++] = new makeLogo("F19 - College Football&#39;s Biggest Party ", "tailgate");
	logoList[i++] = new makeLogo("John Mellencamp", "johnmellencamp");
	logoList[i++] = new makeLogo("Illinois vs. Mexico", "mexico");
	logoList[i++] = new makeLogo("Vanderbilt", "vanderbilt");
	logoList[i++] = new makeLogo("Northern Illinois", "niu");
	logoList[i++] = new makeLogo("Providence College", "providence");
	logoList[i++] = new makeLogo("Iowa State", "iastate");	
	logoList[i++] = new makeLogo("Windsor", "windsor");
	logoList[i++] = new makeLogo("Northern Michigan", "nmu");
	logoList[i++] = new makeLogo("Robert Morris", "robert-morris");
	logoList[i++] = new makeLogo("Nebraska-Omaha", "unomaha");
	logoList[i++] = new makeLogo("Rockhurst - Exhibition Game", "rockhurst_exhibition");
	logoList[i++] = new makeLogo("Bellarmine - Exhibition Game", "bellarmine_exhibition");
	logoList[i++] = new makeLogo("IPFW", "ipfw");
	logoList[i++] = new makeLogo("The Citadel", "citadel");
	logoList[i++] = new makeLogo("Lehigh", "lehigh");
	logoList[i++] = new makeLogo("Winston-Salem State", "wssu");
	logoList[i++] = new makeLogo("Alabama", "ua");
	logoList[i++] = new makeLogo("Elon", "elon");
	logoList[i++] = new makeLogo("Portland", "up");
	logoList[i++] = new makeLogo("Army", "usma");
	logoList[i++] = new makeLogo("Rider", "rider");
	logoList[i++] = new makeLogo("Stony Brook", "sunysb");
	logoList[i++] = new makeLogo("Lake Superior State (Exh)", "lssu");
	logoList[i++] = new makeLogo("Northwood (Exh)", "northwood");
	logoList[i++] = new makeLogo("Richmond", "richmond");
	logoList[i++] = new makeLogo("Purdue", "purdue");
	logoList[i++] = new makeLogo("IUPUI", "iupui");
	logoList[i++] = new makeLogo("Prairie View A & M", "pvamu");
	logoList[i++] = new makeLogo("St. John&#39;s", "stjohns");
	logoList[i++] = new makeLogo("Men&#39;s Basketball", "basketball");
	logoList[i++] = new makeLogo("Women&#39;s Basketball", "basketball");
	logoList[i++] = new makeLogo("Hockey", "hockey-puck");
	logoList[i++] = new makeLogo("Volleyball", "volleyball");
	logoList[i++] = new makeLogo("Men&#39;s Soccer", "soccer");
	logoList[i++] = new makeLogo("Women&#39;s Soccer", "soccer");
	logoList[i++] = new makeLogo("NIT Season Tip-Off First Round", "nit-tipoff");
	logoList[i++] = new makeLogo("NIT Season Tip-Off - Second Round", "nit-tipoff");
	logoList[i++] = new makeLogo("Football Season Ticket Lottery Wait List", "nd_helmet");
	logoList[i++] = new makeLogo("Baseball Dinner", "baseball");
	logoList[i++] = new makeLogo("Softball", "softball");
	logoList[i++] = new makeLogo("Baseball", "baseball");
	logoList[i++] = new makeLogo("CCHA Playoffs", "ccha-champ-07");
	logoList[i++] = new makeLogo("Ball State", "bsu");
	logoList[i++] = new makeLogo("Univ. of Illinois - Chicago", "uic");
	logoList[i++] = new makeLogo("ND Men vs. Mexico", "mexico");
	logoList[i++] = new makeLogo("ND Women vs. Mexico", "mexico");
	logoList[i++] = new makeLogo("Blue-Gold Spring Football Festival", "nd_helmet");	
	logoList[i++] = new makeLogo("Soccer Adult Season Pass", "soccer");
	logoList[i++] = new makeLogo("Soccer Youth Season Pass", "soccer");
	logoList[i++] = new makeLogo("Soccer Season 4-Ticket Fan Pack", "soccer");
	logoList[i++] = new makeLogo("North Carolina", "unc");
	logoList[i++] = new makeLogo("FRIDAY - The Inn at Saint Mary&#39;s Classic", "soccer");
	logoList[i++] = new makeLogo("SUNDAY - The Inn at Saint Mary&#39;s Classic", "soccer");
	logoList[i++] = new makeLogo("Penn State", "psu");
	logoList[i++] = new makeLogo("Volleyball Adult Season Pass", "volleyball");
	logoList[i++] = new makeLogo("Volleyball Youth/Senior Pass", "volleyball");
	logoList[i++] = new makeLogo("Volleyball Season 4-Ticket Fan Pack", "volleyball");
	logoList[i++] = new makeLogo("Minnesota", "umn");
	logoList[i++] = new makeLogo("Florida", "ufl");
	logoList[i++] = new makeLogo("Shamrock Invitational - Day 1", "volleyball");
	logoList[i++] = new makeLogo("Shamrock Invitational - Day 2", "volleyball");
	logoList[i++] = new makeLogo("Shamrock Invitational - Day 3", "volleyball");
	logoList[i++] = new makeLogo("Denver", "du");
	logoList[i++] = new makeLogo("US National U-18 Team", "usa_hockey");	
	logoList[i++] = new makeLogo("Southern Indiana (exh.)", "southern_in");
	logoList[i++] = new makeLogo("Hillsdale (exh.)", "hillsdale");
	logoList[i++] = new makeLogo("WNIT - Miami (OH)", "womens_nit");
	logoList[i++] = new makeLogo("WNIT - Western Kentucky/ETSU", "womens_nit");
	logoList[i++] = new makeLogo("WNIT 3rd Round", "womens_nit");
	logoList[i++] = new makeLogo("WNIT 4th Round", "womens_nit");
	logoList[i++] = new makeLogo("St. Ambrose (exh)", "st_ambrose");
	logoList[i++] = new makeLogo("St. Edward's (exh)", "st_edwards");
	logoList[i++] = new makeLogo("Long Island Univ", "liunet");
	logoList[i++] = new makeLogo("Youngstown St", "ysu");
	logoList[i++] = new makeLogo("Colgate", "colgate");
	logoList[i++] = new makeLogo("Eastern Michigan", "emich");
	logoList[i++] = new makeLogo("San Francisco", "usfca");
	logoList[i++] = new makeLogo("Brown", "brown");
	logoList[i++] = new makeLogo("North Florida", "unf");
	logoList[i++] = new makeLogo("Boston College", "bc");
	logoList[i++] = new makeLogo("Canisius", "canisius");
	logoList[i++] = new makeLogo("Saint Francis", "st_francis_PA");
	logoList[i++] = new makeLogo("Michigan State vs. Mexico", "mexico");
	logoList[i++] = new makeLogo("Wisconsin", "wisc");
	logoList[i++] = new makeLogo("Loyola-Chicago", "luc");
	logoList[i++] = new makeLogo("Xavier", "xu");
	logoList[i++] = new makeLogo("Wisconsin-Milwaukee", "uwm");
	logoList[i++] = new makeLogo("Mississippi Valley State", "mvsu2");
	logoList[i++] = new makeLogo("San Diego State", "sdsu");
	logoList[i++] = new makeLogo("Stanford", "stanford");
	logoList[i++] = new makeLogo("SMU", "smu");
	logoList[i++] = new makeLogo("Big East Semifinals", "bigeast");
	logoList[i++] = new makeLogo("Big East Final", "bigeast");
	logoList[i++] = new makeLogo("NCAA All-Session (First and Second Round)", "ncaa-nd");
	logoList[i++] = new makeLogo("Women&#39;s Basketball Season Tickets", "basketball");
	logoList[i++] = new makeLogo("Women&#39;s Big East All-Session Package", "bigeast_bball");
	logoList[i++] = new makeLogo("Briar Cliff (exh)", "briarcliff");
	logoList[i++] = new makeLogo("Stonehill (exh)", "stonehill");
	logoList[i++] = new makeLogo("USC Upstate", "uscUpstate");
	logoList[i++] = new makeLogo("Furman", "furman");
	logoList[i++] = new makeLogo("South Dakota", "usd");
	logoList[i++] = new makeLogo("Boston University", "bu");
	logoList[i++] = new makeLogo("Delaware State", "dsc");
	logoList[i++] = new makeLogo("Savannah State", "savstate");
	logoList[i++] = new makeLogo("Triple Threat Pack", "basketball");
	logoList[i++] = new makeLogo("Gannon (exhibition)", "gannon");
	logoList[i++] = new makeLogo("Evansville", "evansville");
	logoList[i++] = new makeLogo("Georgia Southern", "gasou");
//	logoList[i++] = new makeLogo("NCAA First Round", "ncaa-nd");
//	logoList[i++] = new makeLogo("NCAA Second Round", "ncaa-nd");
	logoList[i++] = new makeLogo("Nevada", "unr");
	logoList[i++] = new makeLogo("Washington State", "wsu");
	logoList[i++] = new makeLogo("Alabama-Huntsville", "uah");
	logoList[i++] = new makeLogo("Arkansas-Pine Bluff", "uapb");
	logoList[i++] = new makeLogo("Charlotte", "uncc");
	logoList[i++] = new makeLogo("Big East All-Session", "bigeast_bball");
	logoList[i++] = new makeLogo("PINK ZONE DONATION", "pink_ribbon");
	logoList[i++] = new makeLogo("Women&#39;s Basketball Season Ticket", "nd");
	logoList[i++] = new makeLogo("Quincy University (exh)", "quincy");
	logoList[i++] = new makeLogo("Kennesaw St.", "kennesaw");
	logoList[i++] = new makeLogo("Bucknell", "bucknell");
	logoList[i++] = new makeLogo("Iona", "iona");
	logoList[i++] = new makeLogo("Men's Lacrosse", "lacrosse2010");
	logoList[i++] = new makeLogo("Women's Lacrosse", "lacrosse2010");
	logoList[i++] = new makeLogo("Season Adult Lacrosse Pass", "lacrosse2010");
	logoList[i++] = new makeLogo("Youth/Senior Lacrosse Season Pass", "lacrosse2010");
	logoList[i++] = new makeLogo("Lacrosse Season 4-Tix Fan Pack", "lacrosse2010");
	logoList[i++] = new makeLogo("Season Adult Lacrosse Pass", "lacrosse2010");
	logoList[i++] = new makeLogo("Youth/Senior Lacrosse Season Pass", "lacrosse2010");
	logoList[i++] = new makeLogo("Lacrosse Season 4-Tix Fan Pack", "lacrosse2010");
	logoList[i++] = new makeLogo("Duquesne", "duquesne");
	logoList[i++] = new makeLogo("Tulsa", "utulsa");
	logoList[i++] = new makeLogo("Utah", "utah");
	logoList[i++] = new makeLogo("Irish Spikers Membership", "volleyball");
	logoList[i++] = new makeLogo("California-Berkley", "cal");
	logoList[i++] = new makeLogo("Northern Iowa", "uni");

	logoList[i++] = new makeLogo("Michigan Tech (Exhibition)", "mtu");
	logoList[i++] = new makeLogo("New Hampshire", "unh");
	logoList[i++] = new makeLogo("Morehead State", "morehead-st");
	logoList[i++] = new makeLogo("Wake Forest", "wfu");
	logoList[i++] = new makeLogo("Butler", "butler");
	logoList[i++] = new makeLogo("Creighton", "creighton2");
	logoList[i++] = new makeLogo("SE Missouri State", "semo2");

	logoList[i++] = new makeLogo("Marian (exh)", "marian");
	logoList[i++] = new makeLogo("Catholic (exh)", "catholic");
	logoList[i++] = new makeLogo("Liberty", "liberty");
	logoList[i++] = new makeLogo("Maine", "umaine");
	logoList[i++] = new makeLogo("Indiana State", "indstate");
	logoList[i++] = new makeLogo("Gonzaga", "gonzaga");
	logoList[i++] = new makeLogo("UMBC", "umbc");
	
	logoList[i++] = new makeLogo("SUN BOWL", "sun-bowl");
	logoList[i++] = new makeLogo("Providence", "providence");
	logoList[i++] = new makeLogo("Bowling Green", "bgsu");
	logoList[i++] = new makeLogo("Loyola of Chicago", "luc");
	logoList[i++] = new makeLogo("Pittsburgh", "pitt2"); 
	logoList[i++] = new makeLogo("St. John&#39;s", "st_john");
	logoList[i++] = new makeLogo("Air Force", "air_force");
	logoList[i++] = new makeLogo("Maryland", "umd");
	logoList[i++] = new makeLogo("South Florida", "south_fl");
	logoList[i++] = new makeLogo("Fight Like a Champion", "MIkeLee");

	logoList[i++] = new makeLogo("Harlem Globetrotters", "HarlemGlobetrotters");
	logoList[i++] = new makeLogo("Harlem Globetrotter Magic Pass", "HarlemGlobetrotters");
	logoList[i++] = new makeLogo("Courtside VIP Package", "HarlemGlobetrotters");

	logoList[i++] = new makeLogo("St. Xavier Univ (exh)", "sxu");
	logoList[i++] = new makeLogo("Stonehill College (exh)", "stonehill");
	logoList[i++] = new makeLogo("Mississippi Valley St", "mvsu2");
	logoList[i++] = new makeLogo("Bryant", "Bryant_University");
	logoList[i++] = new makeLogo("Dartmouth", "dartmouth");
	logoList[i++] = new makeLogo("Sacred Heart", "sacredheart");

	logoList[i++] = new makeLogo("Progressive CBE Classic Notre Dame vs. Detroit", "progressive_cbe");
	logoList[i++] = new makeLogo("Progressive CBE Classic Notre Dame vs. Sam Houston St.", "progressive_cbe");
	logoList[i++] = new makeLogo("Brian Boitano Skating Spectacular", "BrianBoitano");
	logoList[i++] = new makeLogo("Marquette", "MarquetteU");

	logoList[i++] = new makeLogo("Akron", "uakron");
	logoList[i++] = new makeLogo("Pennsylvania", "upenn");
	logoList[i++] = new makeLogo("Kentucky", "kentucky");
	logoList[i++] = new makeLogo("Central Florida", "UCF3");
	logoList[i++] = new makeLogo("Longwood", "longwood");
	logoList[i++] = new makeLogo("USF", "south_fl");
	logoList[i++] = new makeLogo("CBE Classic Championship", "progressive_cbe");
	logoList[i++] = new makeLogo("Northeastern", "northeastern");
	logoList[i++] = new makeLogo("Russian Stars", "RussianRedStars");
	logoList[i++] = new makeLogo("Champs Sports Bowl", "ChampsSportsBowl");
	logoList[i++] = new makeLogo("Northwestern", "northwestern");

/* --------------------------------------------------
	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++] = " (DH)";
	
	// 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","FBWL2","FB1","FBS","FBI"), "nd_helmet");
//	logoGroupList[i++] = new makeLogo(new Array("BB"), "baseball");
//	logoGroupList[i++] = new makeLogo(new Array("SB"), "softball3");
//	logoGroupList[i++] = new makeLogo(new Array("MB","WB"), "basketball");
	logoGroupList[i++] = new makeLogo(new Array("VBS","VB","MVB","WVB"), "volleyball2");
	logoGroupList[i++] = new makeLogo(new Array("H"), "hockey2");
	logoGroupList[i++] = new makeLogo(new Array("SOC","MS","WS", "SFF"), "soccer2");
	logoGroupList[i++] = new makeLogo(new Array("ML"), "ncaa_lacrosse2011");
	logoGroupList[i++] = new makeLogo(new Array("HOC"), "hockey-puck");
	logoGroupList[i++] = new makeLogo(new Array("HG"), "globetrotters");
	logoGroupList[i++] = new makeLogo(["BB"], "boxing");
	logoGroupList[i++] = new makeLogo(["BX"], "MIkeLee");

/* --------------------------------------------------
	MAIN LOGO FUNCTIONS
-------------------------------------------------- */
	function printLogo(name, group) {
		var logo = "";
		var divider = "";
		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;
				divider = logoList[i].divider;
				break;
			}
		}
		
		// 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
		if(logo=="") logo = defaultLogo;
		
		// 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+'">';
			} else {
				for(var k=0; k<logo.length; k++) {
					if(k>0 && divider!="") {
						imgSrc += '<span class="logoDivider">'+divider+'</span>';
					} else {
						imgSrc += ' ';
					}
					imgSrc += '<img src="'+imageWWWPath+'/logos/'+logo[k]+'.gif" border="0" width="60" height="60" alt="'+extraName+'">';
				}
			}
			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 (for mini cart)
	function printSmallLogo(name, group) {
		var imgSrc = printLogo(name, group);
		if(imgSrc!="") {
			imgSrc = imgSrc.replace(/width="60" height="60"/ig, 'width="25" height="25" align="absmiddle"');
			
			//remove full size code
			imgSrc = imgSrc.replace(/((<a href[^>]+>){1}|(<br>(<([^>]+)>)+ view large(<([^>]+)>)+ click to close(<([^>]+)>)+))/ig, "");
		}
		return(imgSrc);
	}
