/* --------------------------------------------------
	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("Barbie Live in Fairytopia!", "barbieFairytopia");
	logoList[i++] = new makeLogo("India.Arie", "indiaArie");
	logoList[i++] = new makeLogo("Crown Jewels of Jazz With Eartha Kitt", "earthaKitt");
	logoList[i++] = new makeLogo("BTO 5th Annual Gala of International Ballet Stars", "IntBalletStars");
	logoList[i++] = new makeLogo("An Evening with David Sedaris", "DavidSedaris");
	logoList[i++] = new makeLogo("The Light In The Piazza", "lightpiazza");
	logoList[i++] = new makeLogo("So You Think You Can Dance", "soyouthink");
	logoList[i++] = new makeLogo("A Prairie Home Companion", "prairieHomeCompanion");
	logoList[i++] = new makeLogo("Disney&#39;s The Lion King", "lionKing");
	logoList[i++] = new makeLogo("Richard Thomas & George Wendt in 12 Angry Men", "12_angry_men");
	logoList[i++] = new makeLogo("Chita Rivera: The Dancer&#39;s LIfe", "chita");
	logoList[i++] = new makeLogo("Rent", "rent");
	logoList[i++] = new makeLogo("Richard Thomas & George Wendt in Twelve Angry Men", "12AngryMen");
	logoList[i++] = new makeLogo("Exhale Dance Tribe", "knowTheater");
	logoList[i++] = new makeLogo("Songs from an Unmade Bed", "knowTheater");
	logoList[i++] = new makeLogo("All Shook Up", "allShookUp");
	logoList[i++] = new makeLogo("Celtic Woman: A New Journey", "celticWoman");
	logoList[i++] = new makeLogo("Smart Talk Presents Madeleine Albright: Telling It Like It Is", "madeleineAlbright");
	logoList[i++] = new makeLogo("Broadway Across America Presents Mamma Mia!", "mamma_mia");
	logoList[i++] = new makeLogo("Wilco", "wilco");
	logoList[i++] = new makeLogo("Bernadette Peters", "bernadette_peters");
	logoList[i++] = new makeLogo("Smart Talk Presents Nancy Grace: Amazing Grace", "nacy_grace");
	logoList[i++] = new makeLogo("Smart Talk Presents Geena Davis: A Commanding Presence", "geena_davis");
	logoList[i++] = new makeLogo("Don&#39;t Make A Black Woman Take Off Her Earrings", "dontMake");
	logoList[i++] = new makeLogo("Tyler Perry&#39;s Don&#39;t Make A Black Woman Take Off Her Earrings", "dontMake");
	logoList[i++] = new makeLogo("My Fair Lady", "MyFairLady");
	logoList[i++] = new makeLogo("Annie", "Annie");
	logoList[i++] = new makeLogo("Camelot", "Camelot");
	logoList[i++] = new makeLogo("The Drowsy Chaperone", "DrowsyChaperone");
	logoList[i++] = new makeLogo("Wicked", "Wicked");
	logoList[i++] = new makeLogo("Wicked Pre-Show Dinner", "Wicked");
	logoList[i++] = new makeLogo("Sweeney Todd", "SweeneyTodd");
	logoList[i++] = new makeLogo("The Color Purple", "ColorPurple");
	logoList[i++] = new makeLogo("Jersey Boys", "JerseyBoys");
	logoList[i++] = new makeLogo("Jersey Boys Pre-Show Dinner", "JerseyBoys");
	logoList[i++] = new makeLogo("Rise For Freedom", "riseForFreedom");
	logoList[i++] = new makeLogo("The Solid Gold Dance Party", "solidGoldDanceParty");
	logoList[i++] = new makeLogo("B.B. King", "bbKing");
	logoList[i++] = new makeLogo("Jesus Christ Superstar", "jesusChristSuperstar");
	logoList[i++] = new makeLogo("Kenny G Holiday Tour 2007", "kennyG");
	logoList[i++] = new makeLogo("2008 Smart Talk Women's Lecture Series", "smart_talk");
	logoList[i++] = new makeLogo("Smart Talk Lecture Series Presents Marlo Thomas: Still &#39;That Girl&#39;", "marlo_thomas");
	logoList[i++] = new makeLogo("Smart Talk Lecture Series Presents Geralyn Lucas: Why I Wore Lipstick", "geralyn_lucas");
	logoList[i++] = new makeLogo("Smart Talk Lecture Series Presents Tina Brown: Princess Diaries", "tina_brown");
	logoList[i++] = new makeLogo("Smart Talk Lecture Series Presents Isabella Rossellini: Some Of Me", "isabella_rossellini");
	logoList[i++] = new makeLogo("Smart Talk Lecture Series Presents An Evening With Maya Angelou", "maya_angelou");
	logoList[i++] = new makeLogo("High School Musical", "highSchoolMusical");
	logoList[i++] = new makeLogo("Smart Talk Lecture Series Presents Patty Duke: A Brilliant Madness", "pattyDuke");
	logoList[i++] = new makeLogo("Gordon Lightfoot: The Legend in Concert", "gordonLightfoot");
	logoList[i++] = new makeLogo("A Special Acoustic Evening with Vince Gill", "vinceGill");
	logoList[i++] = new makeLogo("The High Kings", "highKings");
	logoList[i++] = new makeLogo("2008 Cincinnati Fringe Festival Passes", "fringeFest");
	logoList[i++] = new makeLogo("Chris Rock - No Apologies Tour", "chrisRock");
	logoList[i++] = new makeLogo("Last Comic Standing Live Tour", "lastComicStanding");
	logoList[i++] = new makeLogo("Alicia Keys", "aliciaKeys");
	logoList[i++] = new makeLogo("Jazz at Lincoln Center Orchestra with Wynton Marsalis", "Wynton-Marsalis");
	logoList[i++] = new makeLogo("West Side Story", "JP-West-Side-Story");
	logoList[i++] = new makeLogo("Nunsense", "JP-Nunsense");
	logoList[i++] = new makeLogo("The Sound of Music", "JP-Sound-Of-Music");
	logoList[i++] = new makeLogo("GYPSY", "gypsy");
	logoList[i++] = new makeLogo("HMS PINAFORE", "hmsPinafore");
	
	logoList[i++] = new makeLogo("Hairspray", "Hairspray");
	logoList[i++] = new makeLogo("The Wizard of Oz", "WizardofOz");
	logoList[i++] = new makeLogo("STOMP", "Stomp");
	logoList[i++] = new makeLogo("Spamalot", "Spamalot");
	logoList[i++] = new makeLogo("Spamalot and Pre-Show Dinner", "Spamalot");
	logoList[i++] = new makeLogo("Grease", "Grease");
	logoList[i++] = new makeLogo("Frost/Nixon", "FrostNixon");
	logoList[i++] = new makeLogo("Cirque Dreams", "CirqueDreams");
	logoList[i++] = new makeLogo("Cirque Dreams and Pre-Show Dinner", "CirqueDreams");
	logoList[i++] = new makeLogo("Avenue Q", "AvenueQ");
	logoList[i++] = new makeLogo("Avenue Q and Pre-Show Dinner", "AvenueQ");
	logoList[i++] = new makeLogo("Riverdance", "Riverdance");
	logoList[i++] = new makeLogo("A Chorus Line", "ChorusLine");
	logoList[i++] = new makeLogo("A Chrous Line", "ChorusLine");
	logoList[i++] = new makeLogo("A Chorus Line and Pre-Show Dinner", "ChorusLine");
	logoList[i++] = new makeLogo("Mamma Mia!", "MammaMia");
	
	logoList[i++] = new makeLogo("Midpoint Music Festival 3-Day Pass", "MidpointMusicFestival");
	logoList[i++] = new makeLogo("CAA / CPI New Voices Staged Reading", "CincinnatiPlaywrightsInitia");
	logoList[i++] = new makeLogo("Cincinnati Arts Association: Michael W. Smith & Steven Curtis Chapman", "UnitedTour");
	logoList[i++] = new makeLogo("The United Tour with Michael W. Smith and Steven Curtis Chapman", "UnitedTour");
	logoList[i++] = new makeLogo("Late Nite Catechism", "lateNightCatechism");
	logoList[i++] = new makeLogo("Late Night Catechism", "lateNightCatechism");
	logoList[i++] = new makeLogo("Ballet Tech Cincinnati - Family Friendly Package", "balletTechCinn");
	logoList[i++] = new makeLogo("ballet tech cincinnati - Total Subscription Package", "balletTechCinn");
	logoList[i++] = new makeLogo("Lisa Williams: Messages From Beyond", "lisaWilliams");
	logoList[i++] = new makeLogo("A Prairie Home Companion (Live Radio Broadcast)", "prairieHomeCompanion2");
	logoList[i++] = new makeLogo("Cats", "cats");
	logoList[i++] = new makeLogo("Mannheim Steamroller", "steamroller");
	
	logoList[i++] = new makeLogo("Monty Python&#39;s Spamalot", "Spamalot");
	logoList[i++] = new makeLogo("Cirque Dreams Jungle Fantasy", "CirqueDreams");
	logoList[i++] = new makeLogo("Soul Funk Festival", "soulFunkFestival");
	logoList[i++] = new makeLogo("Cincinnati Entertainment Awards", "cincinnatiEntertainmentAwards");
	logoList[i++] = new makeLogo("Lyle Lovett & John Hiatt", "lyleLovettJohnHiatt");
	logoList[i++] = new makeLogo("Blake Shelton", "blakeShelton");
	logoList[i++] = new makeLogo("Cincinnati Blues Festival", "cincinnatiBluesFest");
	logoList[i++] = new makeLogo("Frankie Valli & The Four Seasons", "frankieValli");

	logoList[i++] = new makeLogo("Lily Tomlin", "LilyTomlin");
	logoList[i++] = new makeLogo("100 Years of Broadway", "100YearsofBroadway");
	logoList[i++] = new makeLogo("DrumLine Live!", "Drumline");
	logoList[i++] = new makeLogo("Afro-Cuban All-Stars", "AfroCuban");
	logoList[i++] = new makeLogo("Hal Holbrook in Mark Twain Tonight", "MarkTwain");

	logoList[i++] = new makeLogo("Cincinnati Christian: Les Miserables", "christianSchools");
	logoList[i++] = new makeLogo("St Ursula Academy: Once Upon A Mattress", "stUrsula");
	logoList[i++] = new makeLogo("Stop AIDS Lily Tomlin Fundraiser", "stopAids");
	logoList[i++] = new makeLogo("Dora The Explorer Live! Search for the City of Lost Toys", "doraTheExplorer");

	logoList[i++] = new makeLogo("Overture Awards", "overture");
	logoList[i++] = new makeLogo("MamLuft&Co Dance: Black Box", "mamluft");
	logoList[i++] = new makeLogo("Celtic Woman: Isle of Hope", "celticWoman");
	logoList[i++] = new makeLogo("SCPA: Moon Over Buffalo", "moonOverBuffalo");
	logoList[i++] = new makeLogo("Aronoff Center Backstage Tour", "aronoffBackstage");
	logoList[i++] = new makeLogo("Keyshia Cole: A Different Me Tour", "keyshiaCole");
	logoList[i++] = new makeLogo("Jerry Seinfeld", "jerrySeinfeld");

	logoList[i++] = new makeLogo("Ballet Tech Ohio presents Spring Loose!", "balletTechOhio");
	logoList[i++] = new makeLogo("2009 Acclaim Awards", "acclaimAwards");
	logoList[i++] = new makeLogo("Exhale Dance Tribe: Humanimals", "exhaleDanceTribe");
	logoList[i++] = new makeLogo("Cincinnati Taps, Inc Presents 15th Annual Tap Dance Day Celebration", "cinTaps");
	logoList[i++] = new makeLogo("An Evening With Diane Keaton", "dianeKeaton");

	logoList[i++] = new makeLogo("Cappies Gala 2009", "cappies_gala");
	logoList[i++] = new makeLogo("Rickey Smiley: A Night of Love and Laughter", "rickey_smiley");
	logoList[i++] = new makeLogo("SCPA: Almost, Maine", "almost_maine");
	logoList[i++] = new makeLogo("Secrets . . . What's Swept Under The Rug!", "sweptUnderRug");
	logoList[i++] = new makeLogo("Cincinnati Opera: Opera Idol Cincinnati", "operaIdol");

	logoList[i++] = new makeLogo("World Piano Competition: Young Artist Finals", "WorldPianoComp");
	logoList[i++] = new makeLogo("World Piano Competition: Young Artist Awards Ceremony", "WorldPianoComp");
	logoList[i++] = new makeLogo("World Piano Competition: Artist Finals", "WorldPianoComp");
	logoList[i++] = new makeLogo("Concert on the Green", "ConcertOnTheGreen");
	logoList[i++] = new makeLogo("Oklahoma", "oklahoma");
	logoList[i++] = new makeLogo("Little Shop of Horrors", "littleShopOfHorrors");
	logoList[i++] = new makeLogo("Once Upon a Mattress", "onceUponAMattress");
	
	logoList[i++] = new makeLogo("2009 Eyes Open Festival", "2009EyesOpenFestival");
	logoList[i++] = new makeLogo("Al Jarreau - Tomorrow Today", "AlJarreau");
	logoList[i++] = new makeLogo("Al Jarreau", "AlJarreau");
	logoList[i++] = new makeLogo("WVXU 91.7 & WMUB 88.5: The Capitol Steps", "TheCapitolSteps");

	logoList[i++] = new makeLogo("The Color Purple", "TheColorPurple");
	logoList[i++] = new makeLogo("White Christmas", "WhiteChristmas");
	logoList[i++] = new makeLogo("Chicago", "Chicago");
	logoList[i++] = new makeLogo("Spring Awakening", "SpringAwakening");
	logoList[i++] = new makeLogo("The 39 Steps", "39Steps");
	logoList[i++] = new makeLogo("Mary Poppins", "MaryPoppins");
	logoList[i++] = new makeLogo("Legally Blonde", "LegallyBlonde");
	logoList[i++] = new makeLogo("Dreamgirls", "Dreamgirls");
	logoList[i++] = new makeLogo("RAIN: A Tribute To The Beatles", "rain");
	logoList[i++] = new makeLogo("B. B. King", "bbKing");

	logoList[i++] = new makeLogo("101.1 The Wiz & MOJO 100.3 : Tracy Morgan's Bulletproof Comedy Show", "TracyMorgan");
	logoList[i++] = new makeLogo("Broadway Across America: Oprah Winfrey Presents The Color Purple", "TheColorPurple09");
	logoList[i++] = new makeLogo("Cincinnati Playwrights Initiative: New Voices Series", "CPI");
	logoList[i++] = new makeLogo("Broadway Across America: Irving Berlin&#39;s White Christmas", "WhiteChristmas09");
	logoList[i++] = new makeLogo("A Night of Love & Laughter starring John Witherspoon with Special Guest Ginuwine", "JohnWitherspoon");

	logoList[i++] = new makeLogo("Shaolin Warriors","ShaolinWarriors");
	logoList[i++] = new makeLogo("Kenny G: The Holiday Show","KennyGHolidayShow");
	logoList[i++] = new makeLogo("The Irish Tenors Christmas Show","IrishTenors");
	logoList[i++] = new makeLogo("The Opera Show","TheOperaShow");
	logoList[i++] = new makeLogo("Peking Acrobats","PekingAcrobats");
	logoList[i++] = new makeLogo("Porgy & Bess","PorgyAndBess");
	logoList[i++] = new makeLogo("The Albee Theatre Mighty Wurlitzer Dedication and Concert", "Wurlitzer");
	logoList[i++] = new makeLogo("Magic of the Night", "MagicOfTheNight");
	logoList[i++] = new makeLogo("David Brenner: Leave &#39;Em Laughing","DavidBrenner");
	logoList[i++] = new makeLogo("R. Kelly","RKelly");
	logoList[i++] = new makeLogo("Curtains", "Curtains");
	logoList[i++] = new makeLogo("Guys And Dolls", "GuysAndDolls");

	logoList[i++] = new makeLogo("Sexy Soul Tour with Eric Benet and special guests Mint Condition & Ledisi", "EricBenet");
	logoList[i++] = new makeLogo("SCPA: Fame - The Musical", "Fame");
	logoList[i++] = new makeLogo("Tyler Perry&#39;s Laugh to Keep From Crying", "LaughToKeepFromCrying");
	logoList[i++] = new makeLogo("Gospel Superfest", "GospelSuperfest");
	logoList[i++] = new makeLogo("Queen City Paranormal Convention", "QueenCityParaCon");

	logoList[i++] = new makeLogo("Contemporary Dance Theater: Rhythm In Shoes", "RhythmInShoes");
	logoList[i++] = new makeLogo("Contemporary Dance Theater: ZviDance", "ZviDance");
	logoList[i++] = new makeLogo("Contemporary Dance Theater: olive Dance Theatre", "OliveDance");
	logoList[i++] = new makeLogo("Contemporary Dance Theater: Bridgman/Packer Dance", "BridgmanPacker");
	logoList[i++] = new makeLogo("Contemporary Dance Theater: Choreographers Without Companies", "Choreographers2010");
	logoList[i++] = new makeLogo("2010 Smart Talk Connected Conversations", "SmartTalk2010");
	logoList[i++] = new makeLogo("SMART TALK: Valerie Bertinelli - Taking Back Your Life", "ValerieBertinelli");
	logoList[i++] = new makeLogo("SMART TALK: Ann Compton - Stories Behind The Headlines", "AnnCompton");
	logoList[i++] = new makeLogo("SMART TALK: Patricia Heaton - Motherhood And Hollywood", "PatriciaHeaton");
	logoList[i++] = new makeLogo("SMART TALK: Lee Woodruff - Life Changes In An Instant", "LeeWoodruff");
	logoList[i++] = new makeLogo("SMART TALK: Helen Hunt - Mad About Her", "HelenHunt");
	logoList[i++] = new makeLogo("Shen Yun", "ShenYun");

/* --------------------------------------------------
	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++] = "Disney&#39;s ";
	extraList[i++] = "CAA Member Night - ";
	extraList[i++] = "Cincinnati Opera Presents ";
	extraList[i++] = "Cincinnati Music Theatre Presents ";
	extraList[i++] = "Cincinnati Music Theatre: ";
	extraList[i++] = "Cincinnati Arts Association: ";
	extraList[i++] = "CAA Member Night - ";
	extraList[i++] = "Cincinnati Arts Association: ";
	extraList[i++] = "Broadway Across America: ";
	extraList[i++] = "Jersey Productions: ";
	
	// 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"), "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"), "soccer");
	logoGroupList[i++] = new makeLogo(new Array("CLD"), "calendar");
	*/
	
	logoGroupList[i++] = new makeLogo(new Array("BIF"), "barbieFairytopia");
	logoGroupList[i++] = new makeLogo(new Array("KSL"), "kingSolomon");
	logoGroupList[i++] = new makeLogo(new Array("MSP"), "spamalot");
	logoGroupList[i++] = new makeLogo(new Array("KTT","GOM","HAM","VAT","LLS","PR:PR:43544342415245"), "knowTheater");
	logoGroupList[i++] = new makeLogo(new Array("CC0","SCI","SCII","BSI","BSII"), "cinChamberOrch");
	logoGroupList[i++] = new makeLogo(new Array("PIL"), "pillowman");
	logoGroupList[i++] = new makeLogo(new Array("CFT"), "fringeFest");
	logoGroupList[i++] = new makeLogo(new Array("CM"), "cmt");
	logoGroupList[i++] = new makeLogo(new Array("BALLET"), "cinballet");
	logoGroupList[i++] = new makeLogo(new Array("MMF"), "MidpointMusicFestival");
	logoGroupList[i++] = new makeLogo(new Array("CCF"), "celticFestival");
	logoGroupList[i++] = new makeLogo(new Array("BTC"), "balletTechCinn");
	logoGroupList[i++] = new makeLogo(new Array("CDTS"), "CDT");
	logoGroupList[i++] = new makeLogo(new Array("LLD"), "CDTLarLubovitch");
	logoGroupList[i++] = new makeLogo(new Array("PDC"), "CDTPhiladanco");
	logoGroupList[i++] = new makeLogo(new Array("JCC"), "CDTJaneComfort");
	logoGroupList[i++] = new makeLogo(new Array("MF"), "CDTMaureenFleming");
	logoGroupList[i++] = new makeLogo(new Array("GMD"), "CDTGeselMason");
	logoGroupList[i++] = new makeLogo(new Array("CC"), "CDTChoreographers");
	logoGroupList[i++] = new makeLogo(new Array("DPA"), "divinePerformingArts");
	logoGroupList[i++] = new makeLogo(new Array("WPC"), "WorldPianoComp");
	logoGroupList[i++] = new makeLogo(new Array("JERPRO"), "JerseyProduction");
	logoGroupList[i++] = new makeLogo(new Array("MBDC"), "MidWestBestDanceCrew");

/* --------------------------------------------------
	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}(,? ?(20)?\d{2})?\)?|\d{1,2}[/\- ]\d{1,2}([/\- ](20)?\d{2})?\)?))?(( |,|-|\(|\bon\b|\bat\b){0,2} ?\d{1,2}(:\d{2})? ?(am|pm)\)?)?$/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;
			}
		}
		
		// 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;
			}
		}
		
		// 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 = "cinarts";
		
		// 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="|'+name+'|'+extraName+'|">';
			} else {
				for(var k=0; k<logo.length; k++) {
					imgSrc += '<img src="'+imageWWWPath+'/logos/'+logo[k]+'.gif" border="0" width="60" height="60" alt="'+name+'"> ';
				}
			}
			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);
	}