/* --------------------------------------------------
	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("Decker et Strauss/Decker and Strauss", "Hamelin_MA");
	logoList[i++] = new makeLogo("Un autre voyage d'Octavio/Adventure at Sea", "Dubois_Patrice");
	logoList[i++] = new makeLogo("Un autre voyage d'Octavio/Adventure at Sea", "Dubois_Patrice");
	logoList[i++] = new makeLogo("Soirée Viennoise/Viennese Night", "Decker_Franz_Paul");
	logoList[i++] = new makeLogo("Soirée Viennoise/Viennese Program", "Decker_Franz_Paul");
	logoList[i++] = new makeLogo("Marie-Nicole Lemieux chante Mahler/Marie-Nicole Lemieux Sings Malher", "Lemieux_Marie_Nicole");
	logoList[i++] = new makeLogo("Till Fellner et le 4e de Beethoven/Till Fellner and Beethoven's Fourth", "Fellner_Till");
	logoList[i++] = new makeLogo("Till Fellner et le 4e de Beethoven/Till Fellner and Beethoven's Fourth", "Fellner_Till");
	logoList[i++] = new makeLogo("Saint-François d&#39;Assise de Messiaen/Messiaen&#39;s Saint François D&#39;Assise", "Nagano_Directing");
	logoList[i++] = new makeLogo("Saint-François d'Assise de Messiaen/Messiaen's Saint François D'Assise", "Nagano_Directing");
	logoList[i++] = new makeLogo("Noël chez Charlie Brown/Christmas at Charlie Brown", "Charlie_Brown");
	logoList[i++] = new makeLogo("Chantons Noël avec l'OSM/Christmas Sing-Along", "Rivest_JF");
	logoList[i++] = new makeLogo("Chantons Noël avec l'OSM/Christmas Sing-Along", "Rivest_JF");
	logoList[i++] = new makeLogo("Concours OSM Standard Life/OSM Standard Life Competition", "wigglesworth_mark");
	logoList[i++] = new makeLogo("Le Sacre du printemps/The Rite of Spring", "Nagano_Directing");
	logoList[i++] = new makeLogo("Le Sacre du printemps/The Rite of Spring", "Nagano_Directing");
	logoList[i++] = new makeLogo("La Messe de Bach/Bach's Mass in B Minor", "Nagano_Directing");
	logoList[i++] = new makeLogo("La Messe de Bach/Bach's Mass in B Minor", "Nagano_Directing");
	logoList[i++] = new makeLogo("L'OSM en tournée!/OSM on Tour!", "guilmette");
	logoList[i++] = new makeLogo("L'OSM en Tournée!/The OSM on Tour!", "guilmette");
	logoList[i++] = new makeLogo("Les choix d&#39;Anne Dorval -Concert seulement/Anne Dorval&#39;s Choices - Concert Only", "Dorval_Anne");
	logoList[i++] = new makeLogo("Les choix d'Anne Dorval - CONCERT et COCKTAIL", "Dorval_Anne");
	logoList[i++] = new makeLogo("Le retour d'Anne Sophie Mutter/The Return of Anne-Sophie Mutter", "Mueter_Anne_Sophie");
	logoList[i++] = new makeLogo("Le retour d'Anne Sophie Mutter/The Return of Anne-Sophie Mutter", "Mueter_Anne_Sophie");
	logoList[i++] = new makeLogo("Radu Lupu et le Troisiéme de Beethoven/Radu Lupu and Beethoven's Third", "Lupu_Radu");
	logoList[i++] = new makeLogo("Radu Lupu et le Troisiéme de Beethoven/Radu Lupu and Beethoven's Third", "Lupu_Radu");
	logoList[i++] = new makeLogo("Une histoire à dormir debout!/A Sleepless Night", "lheureux_Jacques");
	logoList[i++] = new makeLogo("Une histoire à dormir debout/A sleepless night", "lheureux_Jacques");
	logoList[i++] = new makeLogo("Menu à la Française/French Connections", "Casadeus_Jean-Claude");
	logoList[i++] = new makeLogo("John Adams: Chef et compositeur/John Adams as Conductor and Composer", "josefowicz_leila");
	logoList[i++] = new makeLogo("John Adams: Chef et compositeur/John Adams as Conductor and Composer", "josefowicz_leila");
	logoList[i++] = new makeLogo("Jonh Adams dirige/John Adams Conducts|", "Adams_John");
	logoList[i++] = new makeLogo("La porte mystérieuse et si.../The Mysterious Door", "Drainville_Martin");
	logoList[i++] = new makeLogo("La porte mystérieuse et si.../The Mysterious Door", "Drainville_Martin");
	logoList[i++] = new makeLogo("C&#39;est bien meilleur avec Orchestre!/It&#39;s Better with Orchestra!", "Hagner_Viviane");
	logoList[i++] = new makeLogo("La Troisiéme de Brahms/Brahms's Third", "Nagano_head_13");
	logoList[i++] = new makeLogo("La Troisiéme de Brahms/ Brahm's Third Symphony", "Nagano_head_13");
	logoList[i++] = new makeLogo("Bronfman, Brahms et Bloch/Bronfman, Brahms and Bloch", "Nagano_head2");
	logoList[i++] = new makeLogo("Bronfman, Brahms et Bloch/Bronfman, Brahms and Bloch", "Nagano_head2");
	logoList[i++] = new makeLogo("Le premier concerto de piano de Beethoven/Beethoven's First Piano Concerto", "Parker_Jon_Kimura");
	logoList[i++] = new makeLogo("Le violon, star de cinéma!/The Violin as Film Star!", "Dacosta_Alexandre");
	logoList[i++] = new makeLogo("Vancouver Symphony Orchestra", "Tovey_Bramwell");
	logoList[i++] = new makeLogo("Gil Shaham joue Brahms/Gil Shaham Plays Brahms", "Nagano_head_13");
	logoList[i++] = new makeLogo("Gil Shaham joue Brahms/Gil Shaham Plays Brahms", "Nagano_head_13");
	logoList[i++] = new makeLogo("Gil Shaham joue Brahms/Gil Shaham Plays Brahms", "Nagano_head_13");
	logoList[i++] = new makeLogo("Lefévre et Laplante Réunis!/Lefevre and Laplante Together!", "AlainLefevre");
	logoList[i++] = new makeLogo("Lefévre et Laplante Réunis!/Lefevre and Laplante Together!", "AlainLefevre");
	logoList[i++] = new makeLogo("Daphnis et Chloé/Daphnis et Chloé", "Nagano_Directing");
	logoList[i++] = new makeLogo("Daphnis et Chloé/Daphnis et Chloé", "Nagano_Directing");	   
	logoList[i++] = new makeLogo("Premiére du Festival avec l'OSM/Festival premiere with the OSM", "na");
	logoList[i++] = new makeLogo("L'OSM avec Ben Heppner/OSM with Ben Heppner", "na");
	logoList[i++] = new makeLogo("L'OSM avec Thomas Hampson/OSM with Thomas Hampson", "na");
	logoList[i++] = new makeLogo("Concert de clôture avec l'OSM/Closing concert with the OSM", "na");
	
	logoList[i++] = new makeLogo("Nagano et Berlioz ouvrent la saison/Nagano and Berlioz open the season", "Nagano_Kent");
	//logoList[i++] = new makeLogo("Vienne éternelle/Eternal Vienna", "Gauvin_Anik");
	logoList[i++] = new makeLogo("L'apéro avec Marc Labrèche/Rush Hour with Marc Labrèche", "Labreche_Marc");
	logoList[i++] = new makeLogo("Dvorak et le nouveau monde/Dvorak and the new world", "Gomyo_Karen");
	logoList[i++] = new makeLogo("Rivest dirige Les Planètes/Rivest conducts The Planets", "Rivest_JF");
	logoList[i++] = new makeLogo("Vengerov dirige/Vengerov conducts", "Vengerov_Maxim");
	logoList[i++] = new makeLogo("Les tableaux d'une exposition de Moussorgski/Mussorgsky's pictures at an exhibition", "Kodama_Mari");
	logoList[i++] = new makeLogo("Halloween à l&#39;OSM/Halloween at the OSM", "Delorme_Melanie");	   
	logoList[i++] = new makeLogo("Halloween à l&#39;OSM/Haloween at the OSM", "Delorme_Melanie");	
	logoList[i++] = new makeLogo("America Forever/America Forever", "DaCosta_Alexandre");
	logoList[i++] = new makeLogo("Lang Lang joue Prokofiev/Lang Lang plays Prokofiev", "Lang_Lang");
	logoList[i++] = new makeLogo("Lang Lang en récital/Lang Lang in recital", "Lang_Lang2");
	logoList[i++] = new makeLogo("La passion selon Saint-Mathieu de Bach/Bach's St.Matthew passion", "Bach");
	logoList[i++] = new makeLogo("La passion selon Saint-Mathieu de Bach/Bach&#39;s St.Matthew de Bach", "Bach");
	logoList[i++] = new makeLogo("Koopman et Bach/Koopman and Bach", "Koopman_ton");
	logoList[i++] = new makeLogo("Michel Rivard symphonique/Michel Rivard symphonique", "Rivard_Michel");
	logoList[i++] = new makeLogo("Koopman dirige l'OSM/Koopman conducts the OSM", "Koopman_ton");
	logoList[i++] = new makeLogo("Chantons Noël avec Marie-Josée Lord/Christmas Sing-Along with Marie-Josée Lord", "Lord_MarieJosee");
	logoList[i++] = new makeLogo("Le chevalier à la rose de Strauss/DerRosenkavalier by Richard Strauss", "Orchestre-Strauss");
	logoList[i++] = new makeLogo("Baudo et Chapelle: deux générations à l'oeuvre/Baudo and Chapelle: two generations at work!", "Chapelle_Corinne");
	logoList[i++] = new makeLogo("James Box en vedette/Starring James Box", "Box_James");
	logoList[i++] = new makeLogo("Kent Nagano et l'Oiseau de feu de Stravinski/Kent Nagano and Stravinski Firebird", "Marsalis_Branford");
	logoList[i++] = new makeLogo("Till Fellner joue Beethoven/Till Fellner plays Beethoven", "Fellner_Till");
	logoList[i++] = new makeLogo("Nagano et Repin: rencontre au sommet !/Nagano and Repin: summit meeting !", "Repin_Vadim");
	logoList[i++] = new makeLogo("Nagano et Repin: rencontre au sommet/Nagano and Repin:summit meeting!", "Repin_Vadim");
	logoList[i++] = new makeLogo("Mystères du Japon/Mysteries of Japan", "Taiko");
	logoList[i++] = new makeLogo("Gergiev et le mariinsky à Montréal", "GergievJ_Valery");
	logoList[i++] = new makeLogo("Christian Tetzlaff pour la 1ère fois au Québec/Christian Tetzlaff makes is Quebec debut!", "Tetzlaff_Christian");
	logoList[i++] = new makeLogo("Christian Tetzlaff pour la 1ère fois au Québec!/Christian Tetzlaff makes is Quebec debut!", "Tetzlaff_Christian");
	logoList[i++] = new makeLogo("Odyssée dans l'espace/Escape into space", "Rivest_JF");
	logoList[i++] = new makeLogo("Paley et Davidovich à l&#39;OSM/Paley and Davidovich: two great pianists at the OSM!", "Davidovich_Bella");
	logoList[i++] = new makeLogo("Paley et Davidovich à l&#39;OSM/Paley and Davidovich: two great pianists at the OSM", "Davidovich_Bella");
	logoList[i++] = new makeLogo("Michel Plasson dirige Ravel/Michel Plasson conducts Ravel", "Plasson_Michel");
	logoList[i++] = new makeLogo("Rachmaninov et Ravel à l'honneur/Rachmaninoff and Ravel", "Morlot_Ludovic");
	logoList[i++] = new makeLogo("La Moldau de Smetana/Smetana and the Moldau", "brock_nathan");
	logoList[i++] = new makeLogo("La Mer par Kent Nagano/Kent Nagano conducts La Mer", "Nagano_Kent");
	logoList[i++] = new makeLogo("Alain Lefèvre joue André Mathieu/Alain Lefèvre plays André Mathieu", "Lefevre_Alain");
	logoList[i++] = new makeLogo("Beethoven au cube!/Beethoven cubed!", "Beethoven");
	logoList[i++] = new makeLogo("Triplement Beethoven!/ Beethoven times three!", "James_Ehnes");
	logoList[i++] = new makeLogo("Beethoven et la nature/ Beethoven and nature", "Nagano_Kent");
	//logoList[i++] = new makeLogo("Kent Nagano, Yann Martel, Roy Dupuis...Beethoven!/Kent Nagano, Yann Martel...Beethoven!", "Martel_Yann");
	logoList[i++] = new makeLogo("La neuvième clôture le festival /The ninth closes the festival", "Beethoven");
	logoList[i++] = new makeLogo("Shéhérazade/Shéhérazade", "Sheherazade");
	logoList[i++] = new makeLogo("L'apéro avec Michel Rivard/Rush Hour with Michel Rivard", "Rivard_Michel");
	logoList[i++] = new makeLogo("Karita Mattila chante Strauss/Karita Mattila sings Strauss", "Mattila_Karita");	
	logoList[i++] = new makeLogo("La Passion selon saint Matthieu de Bach/Bach's St.Matthew passion", "Bach");
	logoList[i++] = new makeLogo("La Passion selon saint Matthieu de Bach/Bach's St.Matthew de Bach", "Bach"); 
	
	logoList[i++] = new makeLogo("Stephan Jackiw joue Mendelssohn/Stephan Mendelssohn plays Mendelssohn", "jackiw");
	
	logoList[i++] = new makeLogo("Concert d&#39;ouverture-La 9e de Beethoven / Opening Concert-Beethoven&#39;s Ninth symphony", "BEETHOVENS_NINTH");
	logoList[i++] = new makeLogo("Le Quatuor Borodine joue Beethoven et Chostakovitch / The Borodin quartet: Beethoven and Shostakovitch", "BORODIN-QUARTET");	
	logoList[i++] = new makeLogo("Trois chefs-d&#39;oeuvre / Three masterpieces of music for the young", "KENT_MASTERPIECES_YOUNG");	
	logoList[i++] = new makeLogo("La Turangâlilâ de Messiaen / Kent Nagano and Messiaen&#39;s Turangalîla", "KENT_MESSIAENS-TURANGAL");	   
	
	logoList[i++] = new makeLogo("Rufus Wainwright symphonique / Rufus Wainwright goes symphonic", "RUFUS-WAINWRIGHT");	
	logoList[i++] = new makeLogo("La Symphonie Romantique / Bruckner&#39;s &#39;&#39;romantic&#39;&#39; symphon", "BRUCKNER_ROMANTIC");	
	logoList[i++] = new makeLogo("Gidon Kremer et le Tchaïkovski / Gidon Kremer and the Tchaikovsky concerto", "GIDON-KREMER");	
	logoList[i++] = new makeLogo("Orchestre mariinski de St-Petersbourg et Valery Gergiev / St.Petersburg&#39;s Marrinsky orchestra and Valery Gergiev", "stpetersburgs_marinsky");	
	logoList[i++] = new makeLogo("Marc-André Hamelin joue Franck et Fauré / Marc-André Hamelin plays Franck and Fauré", "MARC-ANDRE_FRANCK_FAURE");
		
	logoList[i++] = new makeLogo("Le Premier concerto de Beethoven / Leif Ove Andsnes and Beethoven&#39;s first concerto", "LEIF-OVE-ANDSNES");	
	logoList[i++] = new makeLogo("Récital d&#39; Hélène Grimaud / Hélène Grimaud Recital", "GRIMAUD");	
	logoList[i++] = new makeLogo("Ludovic Morlot et Les Planètes de Holst / Ludovic Morlot ans Holst&#39;s planets", "LUDOVIC-MORLOT");	
	logoList[i++] = new makeLogo("Ludovic Morlot et Les Planètes de Holst / Ludovic Morlot and Holst&#39;s planets", "LUDOVIC-MORLOT");	
	logoList[i++] = new makeLogo("Noël conté par Fred Pellerin / Christmas according to Fred Pellerin", "CHRISTMAS_PELLERIN");	
	logoList[i++] = new makeLogo("Le messie de Handel / Handel&#39;s Messiah", "HANDELGS_MESSIAH");	  
	
	logoList[i++] = new makeLogo("La Valse de Ravel / Kent Nagano and Ravel&#39;s La valse", "KENT_LA-VALSE-BY-RAVEL");	
	logoList[i++] = new makeLogo("Québec et France : paysages réunis / Quebec and France: Matching landscapes", "CHAMBER_QUEBEC_FRANCE");	
	
	logoList[i++] = new makeLogo("Alain Lefèvre et le concerto de Schumann / Alain Lefèvre and the Schumann concerto", "ALAIN_LEFEVRE_SCHUMANN_CONCERTO");	
	logoList[i++] = new makeLogo("Jacques Lacombe dirige Sibelius / Jacques Lacombe: Sibelius and Prokofiev", "JACQUES-LACOMBE");	
	logoList[i++] = new makeLogo("L&#39;Italie : Carnets de voyage / Italy : travel journals", "ITALY");	
	logoList[i++] = new makeLogo("Matinée italienne avec Marc Hervieux / Italian matinée with Marc Hervieux", "ITALIAN_WITH-MARC-HERVIEUX");	
	logoList[i++] = new makeLogo("Soirée italienne avec Marc Hervieux / Italian evening with Marc Hervieux", "ITALIAN_WITH-MARC-HERVIEUX");	
	logoList[i++] = new makeLogo("Menahem Pressler et ses amis / Menahem Pressler and friends", "MENAHEM-PRESSLER");	
	logoList[i++] = new makeLogo("Le Requiem de Mozart / Kent Nagano and Mozart&#39;s Requiem", "KENT_MOZARTS_REQUIEM");	
	
	
	logoList[i++] = new makeLogo("Borodine et l&#39;âme russe / Borodin and the russian spirit", "BORODIN_RUSSIAN_SPIRIT");	
	logoList[i++] = new makeLogo("ABACHADABRA", "ABACHADABRA");	
	logoList[i++] = new makeLogo("Benedetto Lupo joue Ravel / Benedetto Lupo plays Ravel", "BENEDETTO_LUPO");
	logoList[i++] = new makeLogo("Nagano dirige Strauss et Brahms / Kent Nagano conducts Strauss and Brahms", "KENT_STRAUSS_BRAHMS");	
	logoList[i++] = new makeLogo("La Symphonie fantastique / Kent Nagano and the symphonie fantastique", "KENT_SYMPHONIE-FANTASTIQUE");
		
	logoList[i++] = new makeLogo("Le Premier concerto de Prokofiev / Hilary Hahn and Prokofiev&#39;s first concerto", "PROKOFIEVS_HILARY-HAHN");	
	logoList[i++] = new makeLogo("L&#39;Allemagne: entre musique et littérature / Germany : between music and litterature", "GERMANY");	
	logoList[i++] = new makeLogo("James Ehnes et Mendelssohn / James Ehnes and Mendelssohn concerto", "JAMES-EHNES_MENDELSSOHN");	
	logoList[i++] = new makeLogo("Récital Evgeni Kissin recital", "EVGENY_KISSIN");	
	logoList[i++] = new makeLogo("Tableaux d&#39;Espagne / Spanish Tapestry", "SPANISH-TAPESTRY");	  
	
	logoList[i++] = new makeLogo("Symphonie du Nouveau Monde / Kent Nagano and the &#39;&#39;New World&#39;&#39; symphony", "KENT_NEW-WORLD");	
	logoList[i++] = new makeLogo("Schoenberg : Pierrot lunaire / Schoenberg : Pierrot lunaire", "SCHOENBERG_PIERROT-LUNAIRE");	
	logoList[i++] = new makeLogo("Récital de Lang Lang / Lang Lang recital", "LANG-LANG");	
	logoList[i++] = new makeLogo("Stravinski : l&#39;histoire du soldat / Stravinsky : the soldier&#39;s tale", "STRAVINSKYsoldiersTALE");	
	logoList[i++] = new makeLogo("Concert de clôture-Daphnis et Chloé avec Kent Nagano et le Cirque Éloize / Closing Concert: Daphnis et Chloé avec Kent Nagano and Cirque Éloize", "DAPHNIS_CIRQUE_ELOIZE");			
	
	logoList[i++] = new makeLogo("La Symphonie Romantique / Bruckner&#39;s &#39;&#39;romantic&#39;&#39; symphony", "BRUCKNER_ROMANTIC");
	logoList[i++] = new makeLogo("New York Philharmonic", "THE-NEW-YORK-PHILHARMONIC");	
	logoList[i++] = new makeLogo("La Passion selon Saint Jean / Bach and the St. John passion", "BACH_St_passion");	
	logoList[i++] = new makeLogo("e Petit Prince / The Little Prince", "THE-LITTLE-PRINCE");	
	logoList[i++] = new makeLogo("Sir James Galway, virtuose de la flûte / Sir James Galway, flute virtuoso", "SIR-JAMES-GALWAY");	
	logoList[i++] = new makeLogo("Kundera et la musique / Kundera and music", "KUNDERA");	
	logoList[i++] = new makeLogo("Simple Plan et l&#39;OSM", "osm_simpleplan");	
	logoList[i++] = new makeLogo("Angèle Dubeau et La Pieta", "dubeau");
	
	logoList[i++] = new makeLogo("Pierre Boulez et Répons / Pierre Boulez and Répons", "boulez_pierre");
	logoList[i++] = new makeLogo("Angèle Dubeau et La Pietà", "dubeau");
	logoList[i++] = new makeLogo("Hilary Hanh et Le Premier concerto de Prokofiev / Hilary Hahn and Prokofiev&#39;s first concerto", "hahn_hilary");
	logoList[i++] = new makeLogo("Récital d&#39;Evgeny Kissin / Recital with Evgeny Kissin", "kissin_evgeny");
	logoList[i++] = new makeLogo("Musique et Images : Le Quatrième de Tchaïkovski / Music and Imagery : Tchaïkovski&#39;s Sympnohy no.4", "rivest_jean-francois");
	logoList[i++] = new makeLogo("Deborah Voigt et l&#39;opéra romantique / Deborah Voigt: the passion of german opera", "voigh_deborah");		
	
/* --------------------------------------------------
	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"), "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("FK"), "fk");

/* --------------------------------------------------
	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;
			}
		}
		
		// 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 = "na";
		
		// 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++) {
					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
	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);
	}
	
