/* --------------------------------------------------
	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("Alabama A&M", "aamu");
	logoList[i++] = new makeLogo("Alabama", "ua");
	logoList[i++] = new makeLogo("Arizona", "arizona");
	logoList[i++] = new makeLogo("Arkansas", "uark");
	logoList[i++] = new makeLogo("Auburn", "auburn");
	logoList[i++] = new makeLogo("Baseball Season Tickets", "lsu");
	logoList[i++] = new makeLogo("Centenary", "centenary");
	logoList[i++] = new makeLogo("Denver", "du");
	logoList[i++] = new makeLogo("Florida", "ufl");
	logoList[i++] = new makeLogo("Georgia", "uga");
	logoList[i++] = new makeLogo("Houston", "uh");
	logoList[i++] = new makeLogo("Jackson State", "jsums");
	logoList[i++] = new makeLogo("Jacksonville State", "jsu");
	logoList[i++] = new makeLogo("Kansas", "ku");
	logoList[i++] = new makeLogo("Kent State", "kent");
	logoList[i++] = new makeLogo("Kentucky", "kentucky");
	logoList[i++] = new makeLogo("Louisiana Tech", "latech");
	logoList[i++] = new makeLogo("McNeese St", "mcneese");
	logoList[i++] = new makeLogo("McNeese", "mcneese");
	logoList[i++] = new makeLogo("Mississippi St", "msstate");
	logoList[i++] = new makeLogo("Mississippi State", "msstate");
	logoList[i++] = new makeLogo("Mississippi", "olemiss");
	logoList[i++] = new makeLogo("Ms. State", "msstate");
	logoList[i++] = new makeLogo("N.W. State", "nsula");
	logoList[i++] = new makeLogo("New Orleans", "uno");
	logoList[i++] = new makeLogo("Nicholls ST.", "nich");
	logoList[i++] = new makeLogo("Nicholls State", "nich");
	logoList[i++] = new makeLogo("Northwestern ST.", "nsula");
	logoList[i++] = new makeLogo("Ole Miss", "olemiss");
	logoList[i++] = new makeLogo("Rutgers", "rutgers");
	logoList[i++] = new makeLogo("Sam Houston", "shsu");
	logoList[i++] = new makeLogo("SLU", "selu");
	logoList[i++] = new makeLogo("South Carolina", "sc");
	logoList[i++] = new makeLogo("Southeastern LA", "selu");
	logoList[i++] = new makeLogo("Southeastern", "selu");
	logoList[i++] = new makeLogo("Southern Miss.", "usm");
	logoList[i++] = new makeLogo("Southern", "subr");
	logoList[i++] = new makeLogo("Temple", "temple");
	logoList[i++] = new makeLogo("Tennessee", "utk");
	logoList[i++] = new makeLogo("Texas State - San Marcos", "swt");
	logoList[i++] = new makeLogo("Troy St", "troyst");
	logoList[i++] = new makeLogo("Tulane", "tulane");
	logoList[i++] = new makeLogo("UC Santa Barbara", "ucsb");
	logoList[i++] = new makeLogo("UL - Monroe", "ulm");
	logoList[i++] = new makeLogo("UL-Monroe", "ulm");
	logoList[i++] = new makeLogo("UNO", "uno");
	logoList[i++] = new makeLogo("Utah", "utah");
	logoList[i++] = new makeLogo("Vanderbilt", "vanderbilt");
	logoList[i++] = new makeLogo("Western Illinois", "wiu");
	logoList[i++] = new makeLogo("Winthrop", "winthrop");
	logoList[i++] = new makeLogo("Oregon State", "oregonstate");
	logoList[i++] = new makeLogo("Arkansas State", "astate");
	logoList[i++] = new makeLogo("Troy State", "troyst");	
	logoList[i++] = new makeLogo("UALR", "ualr");
	logoList[i++] = new makeLogo("Arizona State", "asu");
	logoList[i++] = new makeLogo("Arizona St.", "asu");
	logoList[i++] = new makeLogo("UAB", "uab");	
	logoList[i++] = new makeLogo("Indiana", "indiana");
	logoList[i++] = new makeLogo("Ohio", "ohiou");
	logoList[i++] = new makeLogo("Baylor", "baylor");
	logoList[i++] = new makeLogo("Nicholls", "nich");
	logoList[i++] = new makeLogo("Columbia", "columbia");
	logoList[i++] = new makeLogo("McNeese State", "mcneese");
	logoList[i++] = new makeLogo("UL-Lafayette", "louisiana");
	logoList[i++] = new makeLogo("Northern Iowa", "uni");
	logoList[i++] = new makeLogo("Tennssee", "utk");
	logoList[i++] = new makeLogo("Tennessee", "utk");
	logoList[i++] = new makeLogo("Michigan State", "msu");
	logoList[i++] = new makeLogo("South Florida", "uab");
	logoList[i++] = new makeLogo("North Carolina A&T", "ncat");
	logoList[i++] = new makeLogo("Minnesota", "umn");
	logoList[i++] = new makeLogo("2006 LSU Football Media Guide - ON SALE", "football-guide-cover-2006");
	logoList[i++] = new makeLogo("2007 Sugar Bowl Guide", "Bowl-Cover-2007");
	logoList[i++] = new makeLogo("Beat 2 Sleep", "beat2sleep");
	logoList[i++] = new makeLogo("Punishment at the PMAC", "punishment");
	logoList[i++] = new makeLogo("Stetson", "stetson");
	logoList[i++] = new makeLogo("Northwestern State", "nsula");
	logoList[i++] = new makeLogo("McNeese St.", "mcneese");
	logoList[i++] = new makeLogo("Immaculee Ilibagiza", "ea-logo");
	logoList[i++] = new makeLogo("Appalachian State", "appstate");
	logoList[i++] = new makeLogo("Troy", "troy");
	logoList[i++] = new makeLogo("North Texas", "northtexas");
	logoList[i++] = new makeLogo("Jackson St.", "jsums");
	logoList[i++] = new makeLogo("Alcorn St.", "alcorn");
	logoList[i++] = new makeLogo("Cal. St. Fullerton", "fullerton");
	logoList[i++] = new makeLogo("Grambling", "gram");
	logoList[i++] = new makeLogo("Washington St.", "wsu");
	logoList[i++] = new makeLogo("Mississippi St.", "miss_st_");
	logoList[i++] = new makeLogo("Xavier", "xu");
	logoList[i++] = new makeLogo("Notre Dame", "nd");
	logoList[i++] = new makeLogo("Middle Tennessee State", "mtsu");
	logoList[i++] = new makeLogo("Texas Southern", "tsu");
	logoList[i++] = new makeLogo("Southeastern Louisiana", "selu");
	logoList[i++] = new makeLogo("Florida State", "fsu");
	logoList[i++] = new makeLogo("Nebraska", "unl2");
	logoList[i++] = new makeLogo("Chick-fil-A Bowl", "chickfila-bowl");
	logoList[i++] = new makeLogo("2008 Chick-fil-A Bowl", "chickfila-bowl");
	logoList[i++] = new makeLogo("Villanova", "villanova2");
	logoList[i++] = new makeLogo("Central Florida", "UCF3");
	logoList[i++] = new makeLogo("Miss Valley State", "mvsu2");
	logoList[i++] = new makeLogo("Illinois", "uiuc");
	logoList[i++] = new makeLogo("Harvard", "harvard");
	logoList[i++] = new makeLogo("xxLoyola-New Orleans", "XXX");
	logoList[i++] = new makeLogo("Centenary", "centenary");
	logoList[i++] = new makeLogo("Middle Tennessee", "mtsu");
	logoList[i++] = new makeLogo("Houston", "uh");
	logoList[i++] = new makeLogo("Nicholls State", "Nicholls_State");
	logoList[i++] = new makeLogo("UNO", "uno");
	logoList[i++] = new makeLogo("xxSue Gunter Classic", "XXX");
	logoList[i++] = new makeLogo("Southeastern Louisiana", "selu");
	logoList[i++] = new makeLogo("Loyola-New Orleans", "lno");
	logoList[i++] = new makeLogo("Rice", "Rice_Logo");
	logoList[i++] = new makeLogo("NIT Season Tip-Off Round 1", "lsu_nit");
	logoList[i++] = new makeLogo("NIT Season Tip-Off Round 2", "lsu_nit");
//	logoList[i++] = new makeLogo("2010 Chick-fil-A Kickoff Game (vs. North Carolina)", "chick-fil_nc");
	logoList[i++] = new makeLogo("William and Mary", "wm");
	logoList[i++] = new makeLogo("Pepperdine", "pepperdine");
	logoList[i++] = new makeLogo("Brown", "brown");
	logoList[i++] = new makeLogo("Binghamton", "binghamton");
	logoList[i++] = new makeLogo("Alcorn State", "alcorn2");
	logoList[i++] = new makeLogo("Dancing with the Stars - Baton Rouge", "dwts");
	logoList[i++] = new makeLogo("LSU National L Club Spring Game", "10fbspringgame");
	logoList[i++] = new makeLogo("@ Arkansas (Little Rock)", "uark");
	logoList[i++] = new makeLogo("Chick-fil-A Kickoff Game", "chick-fil-akickoff");
	logoList[i++] = new makeLogo("West Virginia", "wvu");
	logoList[i++] = new makeLogo("Gold Mini Plan", "softball");
	logoList[i++] = new makeLogo("Purple Mini Plan", "softball");	
	logoList[i++] = new makeLogo("SEC Championship", "sec");
	logoList[i++] = new makeLogo("Music City Bowl", "music_city_bowl");
	logoList[i++] = new makeLogo("Liberty Bowl", "liberty2");
	logoList[i++] = new makeLogo("Chick-fil-A Bowl", "chickfila");
	logoList[i++] = new makeLogo("Outback Bowl", "outback_bowl_2011");
	logoList[i++] = new makeLogo("Capital One Bowl", "capitalone");
	logoList[i++] = new makeLogo("Gator Bowl", "gatorBowl_2008");
	logoList[i++] = new makeLogo("Rose Bowl", "rosebowl_10");
	logoList[i++] = new makeLogo("Fiesta Bowl", "fiesta");
	logoList[i++] = new makeLogo("Birmingham Bowl", "birmingham_bowl");
	logoList[i++] = new makeLogo("Orange Bowl", "orange_bowl");
	logoList[i++] = new makeLogo("Sugar Bowl", "AllstateSugarBowl");
	logoList[i++] = new makeLogo("Cotton Bowl", "cottonBowl");
	logoList[i++] = new makeLogo("BCS National Championship", "bcs_championship_2011");
	logoList[i++] = new makeLogo("UT-Martin", "utm2");
	logoList[i++] = new makeLogo("Central Michigan", "cmich");
	logoList[i++] = new makeLogo("Coastal Carolina", "coastal");
  logoList[i++] = new makeLogo("Ohio State", "osu");
  logoList[i++] = new makeLogo("UT San Antonio", "texas_sanantonio");
  logoList[i++] = new makeLogo("Prairie View", "prairieview");
  logoList[i++] = new makeLogo("Alabama", "alabama");
  logoList[i++] = new makeLogo("Auburn", "auburn");
  logoList[i++] = new makeLogo("Wichita St. (in Bossier City)", "wichita");
  logoList[i++] = new makeLogo("Dancing for Big Buddy", "DFBB_logo");
  logoList[i++] = new makeLogo("Cowboys Classic (vs. Oregon)", "Cowboys-Classic-Logo");
  logoList[i++] = new makeLogo("Cowboys Classic Parking", "Cowboys-Classic-Logo");

  logoList[i++] = new makeLogo("Wake Forest", "wfu");
  logoList[i++] = new makeLogo("Holy Cross", "holycross");
  logoList[i++] = new makeLogo("Miss. Valley State", "mvsu2");
  logoList[i++] = new makeLogo("Princeton", "princeton");
  logoList[i++] = new makeLogo("Sacred Heart", "sacredheart");
  logoList[i++] = new makeLogo("Cal State Fullerton", "fullerton");
  
  logoList[i++] = new makeLogo("Bayou Country Superfest", "bcscfest");
  
  logoList[i++] = new makeLogo("2011 Tigerama", "tigerama60_60");
  
  logoList[i++] = new makeLogo("Western Kentucky", "wku");
  logoList[i++] = new makeLogo("MISSISSIPPI STATE -", "miss_st_");
  
  logoList[i++] = new makeLogo("BBVA Compass Bowl", "Compass Bowl");
  logoList[i++] = new makeLogo("BCS National Championship", "BCS_Championship_2011");
  logoList[i++] = new makeLogo("Gator Bowl", "TaxSlayer-Gator-Bowl");
  
  logoList[i++] = new makeLogo("NCAA 1st & 2nd Round All-Session Book", "basketball_vr");
  
  logoList[i++] = new makeLogo("Xavier University of Louisiana", "xavier_seal");
  logoList[i++] = new makeLogo("Georgetown", "georgetown");
  logoList[i++] = new makeLogo("University of Arkansas at Pine Bluff", "uapb");
  logoList[i++] = new makeLogo("Northwestern State University", "Northwestern_State2");
  logoList[i++] = new makeLogo("Alabama State", "alasu");
  logoList[i++] = new makeLogo("UCLA", "ucla");
  logoList[i++] = new makeLogo("Lamar", "lamar");
  logoList[i++] = new makeLogo("Pick 3 Mini Plan", "MBKBeVenueicons_3pack");
  logoList[i++] = new makeLogo("Pick 5 Mini Plan", "MBKBeVenueicons_5pack");
  logoList[i++] = new makeLogo("South Alabama", "South_Alabama");
  logoList[i++] = new makeLogo("Boise St.", "boisestate");
  logoList[i++] = new makeLogo("UC Irvine", "uci2");
  logoList[i++] = new makeLogo("Marquette", "marquette2");
  logoList[i++] = new makeLogo("Grambling St.", "gram");
  logoList[i++] = new makeLogo("Virginia", "uva2");
  
  logoList[i++] = new makeLogo("Air Force", "air_force");
  logoList[i++] = new makeLogo("Dartmouth", "dartmouth");
  logoList[i++] = new makeLogo("Michigan", "michigan");


/* --------------------------------------------------
	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","F11","F12"), "football");
	logoGroupList[i++] = new makeLogo(new Array("BB","BS","B"), "baseball");
	// custom code
	logoGroupList[i++] = new makeLogo(new Array("G"), "gymnastics");
	logoGroupList[i++] = new makeLogo(new Array("SB"), "softball");
	logoGroupList[i++] = new makeLogo(new Array("MB","MBS","MBI","BK","MBK"), "mens-basketball");
	logoGroupList[i++] = new makeLogo(new Array("WB","WBS","WBI","WBK","WBB"), "lsuwbkbprofile");
	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("T"), "track");
	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("PMAC"), "maravichcenter");
	logoGroupList[i++] = new makeLogo(new Array("BKP","BP","F11P"), "parking");
	logoGroupList[i++] = new makeLogo(new Array("MKC"), "lsufacebook_MKC");
	


/* --------------------------------------------------
	MAIN LOGO FUNCTIONS
-------------------------------------------------- */
	function printLogo(name, group) {
		var logo = "";
		name = cleaner(name.toUpperCase());
		
		// remove appending dates/times (ie: "TITLE - Wed., Sept. 17 - 2pm")
		name = name.replace(/(( |,|-|\(|\bon\b|\bat\b){0,2} ?\b(mon|tue(s)?|wed(nes)?|thu(r(s)?)?|fri|sat(ur)?|sun)(day)?\b\.?( morning| afternoon| eve| evening| mat)?\)?)?(( |,|-|\(|\bon\b|\bat\b){0,2} ?(\b(jan(uary)?|feb(ruary)?|mar(ch)?|apr(il)?|may|jun(e)?|jul(y)?|aug(ust)?|sep(t(ember)?)?|oct(ober)?|nov(ember)?|dec(ember)?)\b\.? \d{1,2}(th)?(,? ?(20)?\d{2})?\)?|\d{1,2}[/\- ]\d{1,2}([/\- ](20)?\d{2})?\)?))?(( |,|-|\(|\bon\b|\bat\b|@){0,2} ?\d{1,2}(:\d{2})? ?(a.?m.?|p.?m.?)\)?)?$/ig, "");
		
		// process extralist
		var extraName = name;
		for(var i=0; i<extraList.length; i++) {
			if(extraName.indexOf(extraList[i].toUpperCase())==0) {
				extraName = extraName.slice(extraList[i].length, extraName.length);
				break;
			}
		}
		for(var i=0; i<extraList.length; i++) {
			if(extraName.length - extraList[i].length>0 && extraName.indexOf(extraList[i].toUpperCase())==extraName.length - extraList[i].length) {
				extraName = extraName.slice(0, extraName.length - extraList[i].length);
				break;
			}
		}
		extraName = extraName.replace(/(( |,|-|\(|\bon\b|\bat\b){0,2} ?\b(mon|tue(s)?|wed(nes)?|thu(r(s)?)?|fri|sat(ur)?|sun)(day)?\b\.?( morning| afternoon| eve| evening| mat)?\)?)?(( |,|-|\(|\bon\b|\bat\b){0,2} ?(\b(jan(uary)?|feb(ruary)?|mar(ch)?|apr(il)?|may|jun(e)?|jul(y)?|aug(ust)?|sep(t(ember)?)?|oct(ober)?|nov(ember)?|dec(ember)?)\b\.? \d{1,2}(th)?(,? ?(20)?\d{2})?\)?|\d{1,2}[/\- ]\d{1,2}([/\- ](20)?\d{2})?\)?))?(( |,|-|\(|\bon\b|\bat\b|@){0,2} ?\d{1,2}(:\d{2})? ?(a.?m.?|p.?m.?)\)?)?$/ig, "");
		
		// find logo match (start from end for most recently added logos)
		for(var i=logoList.length-1; i>=0; i--) {
			var listName = logoList[i].oname.toUpperCase();
			if(name==cleaner(listName) || extraName==cleaner(listName)) {
				logo = logoList[i].ologo;
				break;
			}
		}

		// custom code
		if(logo=="") {
			var str = name
			if (name.match("CAPITAL ONE")) {
				logo = "capitalone_bowl";
			} else if(name.indexOf("COTTON") > -1) {
				logo = "cotton_bowl";
			} else if(name.indexOf("OUTBACK") > -1) {
				logo = "outback_bowl";
			} else if(name.indexOf("2010 CHICK-FIL-A KICKOFF GAME") > -1) {
				logo = "chick-fil_nc";
			} else if(name.indexOf("XXXX") > -1) {
				logo = "xxxx";
			} else if(name.indexOf("XXXX") > -1) {
				logo = "xxxx";
			}
		}
		// end cc
		
		// find logo based on group
		if(logo=="") {
			if(typeof(fullGroupList)!="undefined" && group!="") {
				while(logo=="" && group!="") {
					for(var k=0; k<logoGroupList.length; k++) {
						for(var l=0; l<logoGroupList[k].oname.length; l++) {
							if(logoGroupList[k].oname[l]==group) {
								logo = logoGroupList[k].ologo;
								break;
							}
						}
						if(logo!="") break;
					}
					if(logo!="") break;
					var parent = "";
					for(var i=0; i<fullGroupList.length; i++) {
						if(fullGroupList[i].code==group) {
							parent = fullGroupList[i].parent;
						}
					}
					group = parent;
				}
			} else {
				for(var k=0; k<logoGroupList.length; k++) {
					for(var l=0; l<logoGroupList[k].oname.length; l++) {
						if(logoGroupList[k].oname[l]==group) {
							logo = logoGroupList[k].ologo;
							break;
						}
					}
				}
			}
		}
		
		// set DEFAULT LOGO if still not assigned
		//template enhancement, no default logo for renewals
		if(group!="renewals") {
		if(logo=="") logo = "na";
		} else {
			if(logo=="") logo = "na";  //change to different default renewal logo, or comment out to remove default logo function on Renewal Process	
		}	
		
		// determine if full sized image exists
		var fullSize = "";
		for(var i=0; i < fullsizeList.length; i++) {
			var listName = fullsizeList[i].oname.toUpperCase();
			if(name==cleaner(listName) || extraName==cleaner(listName)) {
				fullSize = fullsizeList[i].ologo;
				break;
			}
		}
		
		var imgSrc = "";
		
		// create and return logo source
		if(logo!="") {
			if(typeof(logo)=="string") {
				imgSrc = '<img src="'+imageWWWPath+'/logos/'+logo+'.gif" border="0" width="60" height="60" alt="'+extraName+'" align="absmiddle">';
			} else {
				for(var k=0; k<logo.length; k++) {
					imgSrc += '<img src="'+imageWWWPath+'/logos/'+logo[k]+'.gif" border="0" width="60" height="60" alt="'+extraName+'" align="absmiddle"> ';
				}
			}
			if(fullSize!="" && group!="ticketTransfers") {
				imgSrc = '<a href="#" onclick="toggleFullSize(this); return false;" class="thumbHide">' + imgSrc + '<br><small style="white-space:nowrap"><img src="'+imageWWWPath+'/fullsize/mag.gif" border="0" width="11" height="11" align="absmiddle"> view large</small><span><img src="'+imageWWWPath+'/fullsize/'+fullSize+'.gif" border="0" alt="'+name+'"><br><small style="white-space:nowrap"><img src="'+imageWWWPath+'/fullsize/close.gif" border="0" width="11" height="11" align="absmiddle"> click to close</small></span></a>';
			}
		}
		return(imgSrc);
	}
	
	function toggleFullSize(thumb) {
		if(thumb.className=="thumbHide") {
			thumb.className = 'thumbShow';
		} else if(thumb.className=="thumbShow") {
			thumb.className = 'thumbHide';
		}
	}
	
	// print smaller logo for calendar
	function printCalLogo(name, group) {
		var imgSrc = printLogo(name, group);
		if(imgSrc!="") {
			imgSrc = imgSrc.replace(/width="60" height="60"/ig, 'width="40" height="40"');
			
			//remove full size code
			imgSrc = imgSrc.replace(/((<a href[^>]+>){1}|(<br>(<([^>]+)>)+ view large(<([^>]+)>)+ click to close(<([^>]+)>)+))/ig, "");
		}
		return(imgSrc);
	}

	// print very small logo
	function printSmallLogo(name, group) {
		var imgSrc = printLogo(name, group);
		if(imgSrc!="") {
			imgSrc = imgSrc.replace(/width="60" height="60"/ig, 'width="30" height="30" align="absmiddle"');
			
			//remove full size code
			imgSrc = imgSrc.replace(/((<a href[^>]+>){1}|(<br>(<([^>]+)>)+ view large(<([^>]+)>)+ click to close(<([^>]+)>)+))/ig, "");
		}
		return(imgSrc);
	}
	
	// custom code (print large logo - for displaygrouplist)
	function printBigLogo(name, group) {
		var logo = "";
		var imgSrc = "";
		
		switch(group) {
			case "PA": logo = "twuni"; break;
			case "GB": logo = "gbpac"; break;
			case "WS": logo = "wcfso"; break;
			case "SW": logo = "theatre"; break;
			case "SM": logo = "som"; break;
			case "EC": logo = "uniComplex"; break;
			default: logo = "twuni"; break;
		}
		
		if(logo!="") {
			imgSrc = '<img src="'+imageWWWPath+'/logos/'+logo+'.jpg" border="0" alt="'+name+'">';
			imgSrc = imgSrc.replace(/.gif"/ig, '.jpg"');
		}
		return(imgSrc);
	}

