/* --------------------------------------------------
	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("Film & Video Makers at Cal", "filmAndVideoCal");
	//logoList[i++] = new makeLogo("A Theater Near You", "atny");
	logoList[i++] = new makeLogo("Ball of Fire: Barbara Stanwyck Centennial", "barb");
	logoList[i++] = new makeLogo("Abbas Kiarostami: Image Maker", "kiar");
	logoList[i++] = new makeLogo("Eco-Amok! An Inconvenient Film Fest", "amok");
	logoList[i++] = new makeLogo("Max Ophuls: Motion and Emotion", "maxo");
	logoList[i++] = new makeLogo("Max Ophuls", "maxo");
	logoList[i++] = new makeLogo("From the Tsars to the Stars: A Journey Through Russian Fantastik Cinema", "russ");
	//logoList[i++] = new makeLogo("A Theater Near You", "TNY_LightsinDusk_01");
	logoList[i++] = new makeLogo("Look Back at England: The British New Wave", "British_LonelinessofLongDis");
	//logoList[i++] = new makeLogo("Alternative Visions", "AltVis_Kuchar_HoldMe_SERIES");
	logoList[i++] = new makeLogo("Fearless Females: Three Films by Shyam Benegal", "Benegal_ZubeidaaCOL");
	logoList[i++] = new makeLogo("Tomu Uchida: Japanese Genre Master", "Uchida_Outsiders02");
	logoList[i++] = new makeLogo("Girls Will Be Boys", "GWBB_QueenChristina");
	logoList[i++] = new makeLogo("Olivier Assayas in Residence: Cahiers du cinema Week", "Assayas_IrmaVep");
	logoList[i++] = new makeLogo("Spotlight: International Animation", "Anim_Chi_MonkeysFishMoon");
	logoList[i++] = new makeLogo("Movie Matinees for All Ages", "mmaa3");
	logoList[i++] = new makeLogo("Once upon a Time in Widescreen: The Films of Sergio Leone", "Leone_GoodBadUgly1");
	logoList[i++] = new makeLogo("Highly Defined: New Works from the Voom HD Lab", "HD_P1_LonelyGirlCOL");
	logoList[i++] = new makeLogo("Special Halloween Screening", "Halloween_LastManonEarth2");  	
	logoList[i++] = new makeLogo("Readings on Cinema: Daisuke Miayo on Sessue Hayakawa", "read2");
	logoList[i++] = new makeLogo("Closely Watched Films: Terence Davies", "close");	
	logoList[i++] = new makeLogo("The Medieval Remake", "medi");
	logoList[i++] = new makeLogo("Cool World: Jazz and the Movies", "jazz");
	logoList[i++] = new makeLogo("Animal, Vegetable, Mineral: Recent Experimental Documentaries", "docs");
	logoList[i++] = new makeLogo("Jean-Pierre Leaud: The New Wave and After", "wave");
	logoList[i++] = new makeLogo("African Film Festival", "aff");
	logoList[i++] = new makeLogo("Screenagers", "screen");
	logoList[i++] = new makeLogo("Human Rights Watch Film Festival", "hrwff");
	logoList[i++] = new makeLogo("A Theater Near You", "atny");
	logoList[i++] = new makeLogo("Still Lives: The Films of Pedro Costa", "pedro");
	logoList[i++] = new makeLogo("Heinz Emigholz: Architecture as Autobiography", "heinz");
	logoList[i++] = new makeLogo("The Magnificent Orson Welles", "orson");
	logoList[i++] = new makeLogo("26th San Francisco International Asian American Film Festival", "caam08");
	logoList[i++] = new makeLogo("The Clash of &#39;68", "clashof68");
	logoList[i++] = new makeLogo("Cine/Spin", "bunuel");
	logoList[i++] = new makeLogo("Shoot Shoot Shoot: British Avant-Garde Film of the 1960s and 1970s", "shoot");
	logoList[i++] = new makeLogo("Direct Engagement: New Digital Films from Palestine and Lebanon", "newdig");
	logoList[i++] = new makeLogo("Intimate Communication: Films by Audrius Stonys", "stonys");
	logoList[i++] = new makeLogo("American Nonsense: Frank Tashlin", "tash");
	logoList[i++] = new makeLogo("Movie Matinees for All Ages", "mmaa");
	logoList[i++] = new makeLogo("51st San Francisco International Film Festival", "sfiff");
	logoList[i++] = new makeLogo("United Artists: 90 Years", "UnitedArtists");
	logoList[i++] = new makeLogo("Manoel de Oliveira: Talking Pictures", "ManoeldeOliveira");
	logoList[i++] = new makeLogo("Hecho por Mexico: The Films of Gabriel Figueroa", "HechoporMexico");
	logoList[i++] = new makeLogo("Streets of No Return: The Dark Cinema of David Goodis", "StreetsofNoReturn");
	logoList[i++] = new makeLogo("The Long View: A Celebration of Widescreen", "TheLongView");
	// item group going live on aug 20 /2008
	//logoList[i++] = new makeLogo("Alternative Visions", "AltVis_Breer_Eyewash");
	logoList[i++] = new makeLogo("Czeching Out: The Early Films of Milos Forman", "Forman_LovesofaBlonde");
	logoList[i++] = new makeLogo("Jean-Luc Godard: Movie Love in the Sixties", "Godard_WomanIsWoman");
	logoList[i++] = new makeLogo("Unknown Pleasures: The Films of Jia Zhangke", "Jia_Platform2");
	logoList[i++] = new makeLogo("Before Big: The Early Films of David Lean", "Lean_BriefEncounter");
	logoList[i++] = new makeLogo("Movie Matinees for All Ages", "Matinees_RedShoes1Col");
	logoList[i++] = new makeLogo("Campus Connections", "CampusConn_UCarmen");
	logoList[i++] = new makeLogo("No Wave: The Cinema of Jean Eustache", "Eustache_MotherandWhore");
	logoList[i++] = new makeLogo("Envisioning Russia: A Century of Filmmaking", "Russia_Sadko");
	logoList[i++] = new makeLogo("Home Movie Day", "HomeMovieDay_HMDlogo");
	logoList[i++] = new makeLogo("I Love Beijing: The Films of Ning Ying", "Ning_ILoveBeijing");
	logoList[i++] = new makeLogo("Special Event: Ghost World", "GhostWorld_keyart");
	logoList[i++] = new makeLogo("An Election Year Halloween: The Werewolf of Washington", "Halloween_WerewolfofWashing"); 	  
	logoList[i++] = new makeLogo("Halloween Screening: The Werewolf of Washington", "Halloween_WerewolfofWashing");
	logoList[i++] = new makeLogo("Mahjong: New Independent Chinese Cinema", "MahjongFilm_OrphanofAnyang");
	logoList[i++] = new makeLogo("Cinema Japan: A Wreath for Madame Kawakita", "Kawakita_BrandedtoKillCover");
	//logoList[i++] = new makeLogo("Alternative Visions", "AltVis_Colburn_DestinyManifesto1");
	logoList[i++] = new makeLogo("A Dirty Dozen: The Films of Robert Aldrich", "Aldrich_BigKnife2");
	logoList[i++] = new makeLogo("Merce Cunningham: Dance of Film", "Cunningham_Cage_BeachBirdsforCamera");
	logoList[i++] = new makeLogo("Merce Cunningham: Dance on Film", "Cunningham_Cage_BeachBirdsforCamera");	
	logoList[i++] = new makeLogo("Moments of Truth: Italian Cinema Classics", "Italy_Investigation");
	logoList[i++] = new makeLogo("Movie Matinees for All Ages", "Matinees_GoWest1");
	logoList[i++] = new makeLogo("Discovering Teuvo Tulio", "Tulio_WayYouWantedMe_2");
	logoList[i++] = new makeLogo("FILM 50: History of Cinema", "FILM50"); 	
	logoList[i++] = new makeLogo("African Film Festival", "AFF");
	logoList[i++] = new makeLogo("Fellini&#39;s Amarcord", "Fellini");
	logoList[i++] = new makeLogo("The Way of the Termite: The Essay in Cinema", "TWT");
	logoList[i++] = new makeLogo("Human Rights Watch International Film Festival", "HRW");
	logoList[i++] = new makeLogo("The Human Condition", "HC");
	logoList[i++] = new makeLogo("Member&#39;s Special Event: Letters from Iwo Jima", "MSE");
	logoList[i++] = new makeLogo("Movie Matinees for All Ages", "MM");
	logoList[i++] = new makeLogo("One-Two Punch: Pulp Writers on Film", "OTP");
	logoList[i++] = new makeLogo("Screenagers", "Screenagers");
	logoList[i++] = new makeLogo("Josef von Sternberg: Eros and Abstraction", "JVS");
	logoList[i++] = new makeLogo("Man of Marvel: Andrzej Wajda", "MMAW");
	logoList[i++] = new makeLogo("Unknown Orson Welles", "UOW");
	logoList[i++] = new makeLogo("Womena&#39;s Cinema from Tangiers to Tehran", "WCFTTT");
	logoList[i++] = new makeLogo("Thinking About Not Thinking: Buddhism, Meditation, and Film", "TANT");
	logoList[i++] = new makeLogo("Martin Rejtman in Person", "MTP");
	logoList[i++] = new makeLogo("Agnes Varda: Cinecriture", "AVC");
	logoList[i++] = new makeLogo("27th San Francisco International Asian American Film Festival", "SFIAAFF");
	logoList[i++] = new makeLogo("Movie Matinees for All Ages", "MMAA");
	logoList[i++] = new makeLogo("From Riches to Rags: Hollywood and the New Deal", "RTR");
	logoList[i++] = new makeLogo("Ventana al Sur: An Evening of Argentine Experimental Films", "VAS");
	logoList[i++] = new makeLogo("Film & Video Makers at Cal", "FVMC");
	logoList[i++] = new makeLogo("Cine/Spin", "CS");
	logoList[i++] = new makeLogo("The Way of the Termite: The Essay in Cinema", "TWOTT"); 	
	logoList[i++] = new makeLogo("52nd San Francisco International Film Festival at PFA", "52FSFF");
	logoList[i++] = new makeLogo("Women&#39;s Cinema from Tangiers to Tehran", "WCFTTT");
	logoList[i++] = new makeLogo("2009 San Francisco International Film Festival", "52nd");
	logoList[i++] = new makeLogo("Kazuo Hara in Person", "KHP");
	logoList[i++] = new makeLogo("Film & Video Makers at Cal", "FVMC");
	logoList[i++] = new makeLogo("In the Realm of Oshima", "ITROO");
	logoList[i++] = new makeLogo("Quality Control: Selected Works from Zaentz Films", "QCSWZF");
	logoList[i++] = new makeLogo("Karel Vachek: Poet Provocateur", "KVPP");
	logoList[i++] = new makeLogo("Tight Spot: Phil Karlson in the Fifties", "TSPKF");
	logoList[i++] = new makeLogo("Tight Spot: Phil Karlson in the Fifties", "TightSpot"); 	
	logoList[i++] = new makeLogo("Tower Sounds: Ancient Music and Media Mix", "tower");	
	logoList[i++] = new makeLogo("A Tribute to Hayao Miyazaki", "miyazaki2");
	logoList[i++] = new makeLogo("Free Outdoor Screening: The Fast and the Furious", "thumb_FastandtheFurious");	
	logoList[i++] = new makeLogo("Special Screening: Vertigo", "thumb_Vertigo");	
	logoList[i++] = new makeLogo("Secrets Beyond the Door: Treasures from the UCLA Festival of Preservation", "thumb_PreservationFestival");	
	logoList[i++] = new makeLogo("Ecco l&#39;uomo: Celebrating Italian Actors", "thumb_ItalianActors");	
	logoList[i++] = new makeLogo("Into the Vortex: Female Voice in Film", "thumb_Into_the_Vortex");	
	logoList[i++] = new makeLogo("A Theater Near You", "thumb_TheaterNearYou");	
	logoList[i++] = new makeLogo("Eccentric Cinema: Overlooked Curiosities and Ecstasies, 1963-82", "thumb_EccentricCinema");
	logoList[i++] = new makeLogo("Sneak Preview: Taking Woodstock", "woodstock");	
	
	//logoList[i++] = new makeLogo("Alternative Visions", "AV");	
	logoList[i++] = new makeLogo("Tea and Larceny: Classic British Crime Films", "TL");	
	logoList[i++] = new makeLogo("A Theater Near You", "TNY");	
	logoList[i++] = new makeLogo("Special Screening with Live Music: Always Been a Rambler", "ABR");	
	logoList[i++] = new makeLogo("Top Bill: The Films of William Klein", "TB");	
	logoList[i++] = new makeLogo("Another Border: Films and Videos from the Cinematheque de Tanger Archives", "AB");	
	logoList[i++] = new makeLogo("Metaphysical Medium: The Video Works of Bill Viola", "MM2");	
	logoList[i++] = new makeLogo("What&#39;s a Matta U? Considering the College Experience Through Film", "WMU");	
	logoList[i++] = new makeLogo("Life&#39;s Work: The Cinema of Ermanno Olmi", "LW");	
	logoList[i++] = new makeLogo("Julien Duvivier: Poetic Craftsman of Cinema", "JD");	
	logoList[i++] = new makeLogo("Robert Beavers: My Hand Outstretched to the Winged Distance and Sightless Measure", "RB");	
	logoList[i++] = new makeLogo("Home Movie Day", "HMD");	
	logoList[i++] = new makeLogo("Chilean Directors in Person", "CD");	
	logoList[i++] = new makeLogo("BAM/PFA Memberships", "pfa_memberships");
	
	logoList[i++] = new makeLogo("Watching the Unwatchable: Films Confront Torture", "Torture_S21_vann_nath");
	//logoList[i++] = new makeLogo("Alternative Visions", "altvis_InComparison");
	logoList[i++] = new makeLogo("A Woman&#39;s Face: Ingrid Bergman in Europe", "Bergman_AWomansFace");
	logoList[i++] = new makeLogo("New Spanish Cinema", "Spanish_Shame");
	logoList[i++] = new makeLogo("In Time: The Films of Alain Resnais", "Resnais_JeTaime");
	logoList[i++] = new makeLogo("After the Wall: Silent Country", "SilentCountry");
	logoList[i++] = new makeLogo("Fiercely Freestyle: Ari Marcopoulos", "marcopoulos_claremont");
	logoList[i++] = new makeLogo("Jesters and Gestures: Performing Yiddish Culture from Silent Cinema to Avant-Garde Film", "Yiddish_LittleMother");
	logoList[i++] = new makeLogo("What&#39;s a Matta U? Considering the College Experience Through Film", "Wristcutters");
	logoList[i++] = new makeLogo("Alexander Black: Cinema Pioneer", "ablack_magiccircle6");
	logoList[i++] = new makeLogo("Otto Preminger: Anatomy of a Movie", "Preminger_BonjourTristesse");
	logoList[i++] = new makeLogo("Screening and Conversation: Godard’s Made in U.S.A.", "MadeinUSA2");
	logoList[i++] = new makeLogo("Four by Hungarian Master Miklós Jancsó", "Jancso_RedPsalm.jpeg");
	logoList[i++] = new makeLogo("Readings on Cinema: Hitchcock&#39;s Psycho", "Readings_Psycho");
	logoList[i++] = new makeLogo("An Evening with Mark Morris", "Morris_FallingDownStairs");
	logoList[i++] = new makeLogo("L@TE: Friday Nights @ BAM/PFA", "l8te");
	logoList[i++] = new makeLogo("Halloween Screening: The Krays","the_krays");
	logoList[i++] = new makeLogo("In Time: Alain Resnais","in_time");
	logoList[i++] = new makeLogo("Screening and Conversation: Godard&#39;s Made in U.S.A.","godards");
	logoList[i++] = new makeLogo("Four by Hungarian Master Miklos Jancso","Hungarian");
	
	logoList[i++] = new makeLogo("Playtime: The Modern Comedy of Jacques Tati","Playtime6");
	logoList[i++] = new makeLogo("Before &quot;Capraesque&quot;: Early Frank Capra","Capra_AmericanMadness1");
	logoList[i++] = new makeLogo("Film 50: History of Cinema","Film50_CabinetCaligari");
	logoList[i++] = new makeLogo("Watching the Unwatchable: Films Confront Torture","ArcheologyofMemory_photAdamKufeld");
	logoList[i++] = new makeLogo("Complicated Shadows: The Films of Val Lewton","I_walked_w_zombie");
	//logoList[i++] = new makeLogo("Alternative Visions","AltVis_AmPsych_LonelyChickenDream.tiff");
	logoList[i++] = new makeLogo("African Film Festival","nora14");

	logoList[i++] = new makeLogo("The Kids Are Alright: Post-Fifties Musicals and the Rise of Youth Culture","WestSideStory4");
	logoList[i++] = new makeLogo("What&#39;s a Matta U? Considering the College Experience Through Film","PiecesofApril");
	logoList[i++] = new makeLogo("Screenagers","Screenagers");
	logoList[i++] = new makeLogo("Alfred Leslie: Cool Man in a Golden Age","Leslie_PullMyDaisy");
	logoList[i++] = new makeLogo("Masters of Asian Cinema: Yasujiro Ozu and Hou Hsiao-hsien","ThatNightsWife");
	logoList[i++] = new makeLogo("Celebrating Amateur Film","Laverents_MultipleSidosisSMALL");
	
	logoList[i++] = new makeLogo("Jan Troell in Person","Jan-Troell");
	logoList[i++] = new makeLogo("Joseph Losey: Pictures of Provocation","Losey_Servant");
	logoList[i++] = new makeLogo("Love Letters and Live Wires: Highlights from the GPO Film Unit","love-letters");
	logoList[i++] = new makeLogo("Film & Video Makers at Cal","FilmVidCal_Girls");
	logoList[i++] = new makeLogo("San Francisco International Asian American Film Festival","SFIAAFF_ForbiddenDoor");
	logoList[i++] = new makeLogo("Life, Death, and Technicolor: A Tribute to Jack Cardiff","Technicolor_Matinees");
	logoList[i++] = new makeLogo("Celebrating Chekhov","Chekhov_UncleVanya");
	logoList[i++] = new makeLogo("What&#39;s It All Mean: Films by William T. Wiley and Friends","Wiley_Great");
	logoList[i++] = new makeLogo("Private Lives: The Films of Alain Cavalier","Cavalier_Theresa");
	logoList[i++] = new makeLogo("Frederick Wiseman: La Danse","LaDanse_RehearsalNutcracker");
	logoList[i++] = new makeLogo("Dotted Lines: Women Filmmakers Connect the Past and the Present","Dotted-Lines");
	logoList[i++] = new makeLogo("What&#39;s a Matta U? Considering the College Experience Through Film","saMattaU_Somersault");
	logoList[i++] = new makeLogo("Cine/Spin","cine_spin");
	logoList[i++] = new makeLogo("San Francisco International Film Festival at PFA","SFIFF");
	logoList[i++] = new makeLogo("La Danse: The Paris Opera Ballet", "LaDanse_RehearsalNutcracker");	
	logoList[i++] = new makeLogo("BAM/PFA Gala Honoring William T. Wiley", "Wiley");
	logoList[i++] = new makeLogo("San Francisco International Film Festival", "SFIFF-0410");
	logoList[i++] = new makeLogo("Film & Video Makers at Cal", "Cal_hourorafis3");
	logoList[i++] = new makeLogo("Strange Tales of the Whistler", "Whistler_PoweroftheWhistler");
	logoList[i++] = new makeLogo("Brought to Light: Recent Acquisitions to the PFA Collection", "PFA_Collection_Varda_Bonheur2");
	logoList[i++] = new makeLogo("Akira Kurosawa Centennial", "Kurosawa_Ran2");
	logoList[i++] = new makeLogo("Icky Flix Remix: Videos by The Residents, 1975 - 2010", "LATE_Residentsweb");
	logoList[i++] = new makeLogo("Tales from the Golden Age: Recent Romanian Cinema", "Romanian_PoliceAdjective3");
	logoList[i++] = new makeLogo("West Coast Premiere: Gravity Way Everywhere Back Then", "Brent_Green_cover");
	logoList[i++] = new makeLogo("El Futuro Esta Aqui: Sci-Fi Classics from Mexico", "Mex_SciFi_ShipofMonsters2"); 	
	logoList[i++] = new makeLogo("West Coast Premiere: Gravity Was Everywhere Back Then", "Brent_Green");
	
	logoList[i++] = new makeLogo("KUROSAWA", "Rosi_3Brothers");
	logoList[i++] = new makeLogo("ATNY", "TNY_Kiarostami");
	logoList[i++] = new makeLogo("CRIME", "RiseandFallofLegsDiamond");
	logoList[i++] = new makeLogo("VIVA", "Mexican_CompadreMendoza");
	logoList[i++] = new makeLogo("OUTDOOR", "ShelfLife");	
	logoList[i++] = new makeLogo("Modernist Master: The Cinema of Francesco Rosi", "Rosi");	
	logoList[i++] = new makeLogo("Criminal Minds", "Criminals");
	logoList[i++] = new makeLogo("Viva la Revolucion: Celebrating the Hundredth Anniversary of Mexico&#39;s Revolution", "Mexican_CompadreMendoza");
	logoList[i++] = new makeLogo("Shelf Life: PFA Collection Shorts Outdoor Screening", "ShelfLife");
	logoList[i++] = new makeLogo("NEW Membership", "pfa_memberships");
	logoList[i++] = new makeLogo("Membership Renewal", "pfa_memberships");	
	
	//logoList[i++] = new makeLogo("Alternative Visions", "AltVisions_Chant");
  logoList[i++] = new makeLogo("ALTV2", "ALTV2");	
	logoList[i++] = new makeLogo("Drawn from Life: The Graphic Novel on Film", "GraphicNovel_Hellboy5");	
	logoList[i++] = new makeLogo("Days of Glory: Revisiting Italian Neorealism", "ItalianNeoReal_Riz-amer---Photo-2499");	
	logoList[i++] = new makeLogo("Elegant Perversions: The Cinema of Joao Cesar Monteiro", "Monteiro_RecollectionsYellowHouse");	
	logoList[i++] = new makeLogo("Radical Light: Alternative Film and Video in the San Francisco Bay Area", "RadicalLight_Sept29_LeadShoes");	
	logoList[i++] = new makeLogo("Shakespeare on Screen", "Shakespeare_Next");	
	logoList[i++] = new makeLogo("Behind the Scenes: The Art and Craft of Cinema", "Special_BehindScenes_AkeelahandtheBee");	
	logoList[i++] = new makeLogo("Special Events", "Special_HMD_ladywithcamera");	
	logoList[i++] = new makeLogo("Swoon: Great Leading Men in Gorgeous 35mm Prints", "Swoon_FromHereToEternity2");
  
  logoList[i++] = new makeLogo("Afterimage: Filmmakers and Critics: Kelly Reichardt with B. Ruby Rich", "AFTER");
  logoList[i++] = new makeLogo("Radical Light: Alternative Film and Video in the Bay Area", "ALTV");
  logoList[i++] = new makeLogo("Grin, Smile, Smirk: The Films of Burt Lancaster", "BURT");
  logoList[i++] = new makeLogo("Special Screening", "SPECIAL");
  
  logoList[i++] = new makeLogo("2011 BAM/PFA Annual Gala", "gala");
  logoList[i++] = new makeLogo("Film 50: History of Cinema", "film50");
  
  logoList[i++] = new makeLogo("African Film Festival 2011", "AFF");
  //logoList[i++] = new makeLogo("Alternative Visions", "ALTV");
  logoList[i++] = new makeLogo("Suspicion: The Films of Claude Chabrol and Alfred Hitchcock", "suspicion");
  logoList[i++] = new makeLogo("Cruel Cinema: New Directions in Tamil Film", "tamil");
  logoList[i++] = new makeLogo("Special Event: School Days", "SPECIAL");
  logoList[i++] = new makeLogo("Radical Light", "radical");
  logoList[i++] = new makeLogo("Twenty-Fifth Anniversary Screening: Shoah", "shoah");
  logoList[i++] = new makeLogo("World Cinema Foundation", "wcf");
  
  logoList[i++] = new makeLogo("Special Events: School Days", "School-Days");
  logoList[i++] = new makeLogo("Cinema Across Media: The 1920s", "Cinema");
  
  logoList[i++] = new makeLogo("Merce Cunningham Dance Company: The Legacy Tour Special Event: Craneway Event", "merce");
  //logoList[i++] = new makeLogo("Alternative Visions", "alternative-visions");
  logoList[i++] = new makeLogo("Under the Skin: The Films of Claire Denis", "under-the-skin");
  logoList[i++] = new makeLogo("Film & Video Makers at Cal", "film");
  logoList[i++] = new makeLogo("San Francisco International Asian American Film Festival", "sanfran");
  logoList[i++] = new makeLogo("First Person Rural: The New Nonfiction", "rural");
  logoList[i++] = new makeLogo("Behind the Scenes: The Art and Craft of Cinema Patricia Woodbridge on Art Direction", "behind");
  logoList[i++] = new makeLogo("Afterimage: Filmmakers and Critics in Conversation Patricio Guzman with Jorge Ruffinelli", "after-image");
  logoList[i++] = new makeLogo("San Francisco International Film Festival", "spiff");
  
  logoList[i++] = new makeLogo("Film & Video Makers at Cal, Works from the Eisner Prize Competition", "FilmAndVideo");
  logoList[i++] = new makeLogo("The Cult of the Kuchars", "Cult-of-the-Kuchars");
  logoList[i++] = new makeLogo("Arthur Penn, A Liberal Helping", "Arthur-Penn");
  logoList[i++] = new makeLogo("Japanese Divas", "Japanese-Divas");
  
  logoList[i++] = new makeLogo("Going South: American Noir in Mexico", "south");
  logoList[i++] = new makeLogo("Bernardo Bertolucci: In Search of Mystery", "bernardo");
  logoList[i++] = new makeLogo("Hands Up! Essential Skolimowski", "HandsUp");
  logoList[i++] = new makeLogo("Behind the Scenes: The Art and Craft of Cinema", "behind");
  logoList[i++] = new makeLogo("The Timeless Cinema of Marcel Pagnol", "pagnol");
  logoList[i++] = new makeLogo("Special Screening: The Makioka Sisters", "special");
  logoList[i++] = new makeLogo("Bay Area Animation", "animation");
  logoList[i++] = new makeLogo("Free Outdoor Screening: It Conquered the World", "free");
  
  logoList[i++] = new makeLogo("L@TE: Friday Nights @ BAM/PFA", "Late Night");
  
  logoList[i++] = new makeLogo("UCLA Festival of Preservation", "UCLA");
  logoList[i++] = new makeLogo("The Outsiders: New Hollywood Cinema in the Seventies", "The-Outsiders");
  logoList[i++] = new makeLogo("Sounding Off: Portraits of Unusual Music", "Souding-Off");
  //logoList[i++] = new makeLogo("Alternative Visions", "Alternative-Visions");
  logoList[i++] = new makeLogo("Anatolian Outlaw: Yilmaz Guney", "Anatolian-Outlaw");
  logoList[i++] = new makeLogo("Kino-Eye: The Revolutionary Cinema of Dziga Vertov", "Kino-eye");
  logoList[i++] = new makeLogo("A Theater Near You", "A-Theater-Near-You");
  logoList[i++] = new makeLogo("Paul Sharits: An Open Cinema", "Paul-Sharits");
  logoList[i++] = new makeLogo("Rainer Werner Fassbinder: Two Great Epics", "Rainer-Werner-Fassbinder");
  logoList[i++] = new makeLogo("Amateur Night: Home Movies from American Archives", "Amateur-Night");

	extraList = new Array;
	var i = 0;
	
	extraList[i++] = "";

	function printLogo(name, group) {
		var logo = "";
		name = name.toUpperCase();

		for(var i=0; i < logoList.length; i++) {
			var listName = logoList[i].oname.toUpperCase();
			for(var j=0; j < extraList.length; j++) {
				var listExtra = extraList[j].toUpperCase();
				if(listName + listExtra == name || listExtra + listName == name) {
					logo = logoList[i].ologo;
				}
			}
		}
    //alert(group+": "+logo);

		if(logo == "") {
			switch(group) {
				case "FB": case "F": case "FB3": case "STFB": // football
					logo = "foot"; break;
				case "BB": // baseball
					logo = "baseball"; break;
				case "SB": // softball
					logo = "softball"; break;
				case "MBB": case "WB": case "MB":  // basketball
					logo = "basketball"; break;
				case "H": // volleyball
					logo = "volleyball"; break;
				case "H": // hockey
					logo = "hockey"; break;
				case "WCFF":
					logo = "WOC_RhymesLikeGirl"; break;
				case "MMMA":
					logo = "Antonioni_RedDesert"; break;
				case "TRIB":
					logo = "SFIFFTrib_Aparajito"; break;
				case "NAUM":
					logo = "NotNauman_Pryings"; break;
				case "MMAT":
					logo = "Matinees_Silly_MusicLand"; break;
				case "AAFF":
					logo = "SFIAAFF_GirlLeapt"; break;
				case "AGFP":
					logo = "AGPres_NewLeftNote"; break;
				case "CLOSE":
					logo = "CWF_TropicalMalady"; break;
				case "SOUND":
					logo = "SoundOff_BackwardsBlow"; break;
				case "CAL":
					logo = "Film_WindowCleaner"; break;
				case "ATNY":
					logo = "theater_near"; break;	
				case "PFAP":
					logo = "preservation"; break;			
				case "IMAM":
					logo = "shohei"; break;			
				case "HILL":
					logo = "walter_hill"; break;							
				case "CZEC":
					logo = "czech"; break;							
				case "RIVE":
					logo = "rivette"; break;							
				case "F50":
					logo = "film50"; break;
				case "SFIFF":
					logo = "sfiff50"; break;
        case "ALTV2":
					logo = "altv2"; break;
				case "ALTV3":
					logo = "altv3"; break;
				case "BERG":
					logo = "berg"; break;
				case "CHAP":
					logo = "chap"; break;
				case "JOAN":
					logo = "joan"; break;
				case "LECH":
					logo = "lech"; break;
				case "MMAA2":
					logo = "mmaa2"; break;
				case "OWOA":
					logo = "owoa"; break;
				case "PASO":
					logo = "paso"; break;
				case "READ":
					logo = "read"; break;
				case "ROMA":
					logo = "roma"; break;
				case "USAF":
					logo = "usaf"; break; 

				case "FASSB":
					logo = "fassb"; break;
				case "FIZZ":
					logo = "fizz"; break;
				case "CORTI":
					logo = "corti"; break;
				case "ZEKI":
					logo = "zeki"; break;
				case "FVMC8":
					logo = "fvmc8"; break;
				case "LYNN":
					logo = "lynn"; break;
				case "PUNK":
					logo = "punk"; break;
				case "SFIFF":
					logo = "sfiff"; break;
				case "HKGTO":
					logo = "hkgto"; break;					
				case "ATNY3":
					logo = "atny3"; break;	
				case "ROSI":
					logo = "Rosi"; break;						
				case "CRIMINAL":
					logo = "Criminals"; break;	
				case "VIVA":
					logo = "Mexican_CompadreMendoza"; break;	
				case "SHELF":
					logo = "ShelfLife"; break;
				case "L@TE":
					logo = "Late Night"; break;
				case "AFF12":
					logo = "AFF12"; break;
        case "BEHIND":
					logo = "BEHIND"; break;	
				case "BRESSON":
					logo = "BRESSON"; break;
				case "CLOUZOT":
					logo = "CLOUZOT"; break;
				case "DIZZY":
					logo = "DIZZY"; break;
				case "FILM50":
					logo = "FILM50"; break;
				case "HAWKS":
					logo = "HAWKS"; break;
				case "MARKOPOULOS":
					logo = "MARKOPOULOS"; break;
				case "SCREENAGERS":
					logo = "SCREENAGERS"; break;
				case "VOICES":
					logo = "VOICES"; break;
					
        	            
				/* custom code (no default logo)
				default: // not avail
					logo = "na"; break;
				end custom code (no default logo) */
				
			}
			
		}
		var imgSrc = "";

		if(logo != "") {
			imgSrc = '<img src="'+imageWWWPath+'/logos/'+logo+'.gif" border="0" width="60" height="60" alt="'+name+'">';
		} else {
			imgSrc = '&nbsp;';
		}
		return(imgSrc);
	}

//	logoList[i++] = new makeLogo("Florida Int&#39;l", "fiu");

/* --------------------------------------------------
	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("DREYER"), "dreyer");
	logoGroupList[i++] = new makeLogo(new Array("ALTV"), "Alternative-Visions");
	logoGroupList[i++] = new makeLogo(new Array("ALTV2"), "altv");
	logoGroupList[i++] = new makeLogo(new Array("GALA"), "gala");
	logoGroupList[i++] = new makeLogo(new Array("MOREAU"), "moreau");
	logoGroupList[i++] = new makeLogo(new Array("BEHIND"), "behind");
	logoGroupList[i++] = new makeLogo(new Array("AFTERIMAGE"), "afterimage");
	logoGroupList[i++] = new makeLogo(new Array("SOUTH"), "south");
	logoGroupList[i++] = new makeLogo(new Array("ROMANI"), "romani");
	logoGroupList[i++] = new makeLogo(new Array("ABBAS"), "abbas");
	logoGroupList[i++] = new makeLogo(new Array("SPECIAL"), "special");
	logoGroupList[i++] = new makeLogo(new Array("AFF12"), "AFF12");
	logoGroupList[i++] = new makeLogo(new Array("BRESSON"), "BRESSON");
	logoGroupList[i++] = new makeLogo(new Array("CLOUZOT"), "CLOUZOT");
	logoGroupList[i++] = new makeLogo(new Array("DIZZY"), "DIZZY");
	logoGroupList[i++] = new makeLogo(new Array("HAWKS"), "HAWKS");
	logoGroupList[i++] = new makeLogo(new Array("FILM50"), "FILM50");
	logoGroupList[i++] = new makeLogo(new Array("MARKOPOULOS"), "MARKOPOULOS");
	logoGroupList[i++] = new makeLogo(new Array("SCREENAGERS"), "SCREENAGERS");
	logoGroupList[i++] = new makeLogo(new Array("VOICES"), "VOICES");

/* --------------------------------------------------
	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
		//template enhancement, no default logo for renewals
		if(group!="renewals") {
		if(logo=="") logo = "na";
		} else {
			if(logo=="") logo = "football";  //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);
	}
	
