/* --------------------------------------------------
	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("OREGON STATE", "oregonstate");
	logoList[i++] = new makeLogo("FOOTBALL", "football");
	logoList[i++] = new makeLogo("NEW MEXICO STATE", "nmsu");
	logoList[i++] = new makeLogo("Cal", "berkeley");  

	logoList[i++] = new makeLogo("Angels & Airwaves", "angels_airwaves");
	logoList[i++] = new makeLogo("AM 880 KIXI New Years Eve Ball", "kixi_logo");
	logoList[i++] = new makeLogo("2008 Lane County Fair Admission- Single tickets", "na");
	logoList[i++] = new makeLogo("Celebration Oregon, August 22, 2008", "winelogo");
	logoList[i++] = new makeLogo("Friends For PWS Parrothead Party with Beadhead and Apocalypso", "parrot");
	logoList[i++] = new makeLogo("In the Mood", "mood");
	logoList[i++] = new makeLogo("Roy Clark", "lcf");
	logoList[i++] = new makeLogo("Roy Clark with Fair Admission", "lcf");
	logoList[i++] = new makeLogo("Foreigner", "lcf");
	logoList[i++] = new makeLogo("Foreigner with Fair Admission", "lcf");
	logoList[i++] = new makeLogo("Gloriana", "lcf");
	logoList[i++] = new makeLogo("Nat & Alex Wolff", "lcf");
	logoList[i++] = new makeLogo("Nat & Alex Wolff with Fair Admission", "lcf");
	logoList[i++] = new makeLogo("Swing Out!", "swing_out");
	logoList[i++] = new makeLogo("Amy Clawson", "oregon_garden");
	logoList[i++] = new makeLogo("Julio Iglesias", "oregon_garden");
	logoList[i++] = new makeLogo("Styx", "oregon_garden");
	logoList[i++] = new makeLogo("Pat Benatar & Neil Giraldo", "oregon_garden");
	logoList[i++] = new makeLogo("Shanghai Nights", "shanghai");
	logoList[i++] = new makeLogo("Tracy Lawrence", "tracylawrence");
	logoList[i++] = new makeLogo("Alkaline Trio", "alkalinetrio");
	logoList[i++] = new makeLogo("Little River Band", "littleriverband");
	logoList[i++] = new makeLogo("PDX ROCK FEST", "rockfest");
	logoList[i++] = new makeLogo("Vans Warped Tour", "warpedtour");
	logoList[i++] = new makeLogo("Rose City Rollers 2011 Season 6 Championships", "rosecityrollers");
	logoList[i++] = new makeLogo("Daniel Tosh", "danieltosh");
	logoList[i++] = new makeLogo("Stephen Marley", "stephenmarley");
	logoList[i++] = new makeLogo("Ky-Mani Marley", "kymanimarley");
	logoList[i++] = new makeLogo("Ky-Mani Marley & Gramps Morgan", "kymanimarley");
	logoList[i++] = new makeLogo("Steel Pulse", "steelpulse");

	logoList[i++] = new makeLogo("Musicfest NW VIP Wristband", "mfnw");
	logoList[i++] = new makeLogo("Musicfest NW Wristband + 1 Pioneer Square concert", "mfnw");
	logoList[i++] = new makeLogo("Musicfest NW Wristband + 2 Pioneer Square concert", "mfnw");
	logoList[i++] = new makeLogo("Musicfest NW Wristband + 3 Pioneer Square events", "mfnw");
	logoList[i++] = new makeLogo("MusicfestNW: Archers Of Loaf & Sebadoh", "archersofloaf");
	logoList[i++] = new makeLogo("MusicfestNW: Band of Horses", "bandofhorses");
	logoList[i++] = new makeLogo("MusicfestNW: Blind Pilot", "blindpilot");
	logoList[i++] = new makeLogo("MusicfestNW: Blitzen Trapper", "blitzentrapper");
	logoList[i++] = new makeLogo("MusicfestNW: Butthole Surfers", "buttholesurfers");
	logoList[i++] = new makeLogo("MusicfestNW: Charles Bradley & Dennis Coffey", "charlesbradley");
	logoList[i++] = new makeLogo("MusicfestNW: Explosions in the Sky", "explosionsinthesky");
	logoList[i++] = new makeLogo("MusicfestNW: Horse Feathers", "horsefeathers");
	logoList[i++] = new makeLogo("MusicfestNW: Iron and Wine", "ironandwine");
	logoList[i++] = new makeLogo("MusicfestNW: Macklemore & Ryan Lewis", "macklemore_ryanlewis");
	logoList[i++] = new makeLogo("MusicfestNW: Neurosis", "neurosis");
	logoList[i++] = new makeLogo("MusicfestNW: Portland Cello Project", "portlandcelloproject");
	logoList[i++] = new makeLogo("MusicfestNW: The Kills", "thekills");
	logoList[i++] = new makeLogo("Musicfest NW", "mfnw");
	logoList[i++] = new makeLogo("Black Sheep Family Reunion", "ram_roses");
	logoList[i++] = new makeLogo("Guns of Nevada", "guns_of_nevada");
	logoList[i++] = new makeLogo("Kip Winger", "kipwinger");
	logoList[i++] = new makeLogo("The Bullet Boys", "bulletboys");
	logoList[i++] = new makeLogo("Faster Pussycat", "fasterpussycat");
	logoList[i++] = new makeLogo("Gilby Clarke", "gilby_clarke");
	logoList[i++] = new makeLogo("Widespread Panic", "widespreadpanic");
	logoList[i++] = new makeLogo("Slightly Stoopid", "slightlystupid");
	logoList[i++] = new makeLogo("Floydian Slips", "floydianslips");
	logoList[i++] = new makeLogo("Amos Lee", "amoslee");
	logoList[i++] = new makeLogo("311 and Sublime with Rome", "311");
	logoList[i++] = new makeLogo("Pretty Lights", "prettylights");
	logoList[i++] = new makeLogo("Furthur", "furthur");
	logoList[i++] = new makeLogo("North Umpqua Music Festival", "umpqua_festival");
	logoList[i++] = new makeLogo("Lizzy Borden", "lizzy_borden");
	logoList[i++] = new makeLogo("Vince Neil of Motley Crue", "vince_neil");

	logoList[i++] = new makeLogo("Warren Miller&#39;s...Like There&#39;s No Tomorrow", "warrenmiller");
	logoList[i++] = new makeLogo("Wiz Khalifa", "wiz_khalifa");
	logoList[i++] = new makeLogo("DJ Craze", "dj_craze");
	logoList[i++] = new makeLogo("Trentemoller", "trentemoller");
	logoList[i++] = new makeLogo("Skrillex", "skrillex");
	logoList[i++] = new makeLogo("Young Jeezy", "young_jeezy");
	logoList[i++] = new makeLogo("Mac Miller", "mac_miller");
	logoList[i++] = new makeLogo("Pogo & That 1 Guy", "that1guy1");
	logoList[i++] = new makeLogo("Kottonmouth Kings", "kottonmouthkings");

	logoList[i++] = new makeLogo("An Evening With Lily Tomlin", "lily_tomlin");
	logoList[i++] = new makeLogo("Warbringer", "warbringer");
	logoList[i++] = new makeLogo("Andre Nickatina", "andre_nickatina");
	logoList[i++] = new makeLogo("Black Pacific", "blackpacific");
	logoList[i++] = new makeLogo("Blue October", "blue_october");
	logoList[i++] = new makeLogo("Bush", "bush");
	logoList[i++] = new makeLogo("Candlebox", "candlebox1");
	logoList[i++] = new makeLogo("Chromeo", "chromeo");
	logoList[i++] = new makeLogo("David Grisman's Bluegrass Experience", "david_grisman");
	logoList[i++] = new makeLogo("David Grisman Bluegrass Experience", "david_grisman");
	logoList[i++] = new makeLogo("Devil Wears Prada", "devilwearsprada");
	logoList[i++] = new makeLogo("Grave", "grave");
	logoList[i++] = new makeLogo("Gym Class Heroes / The Dirty Heads", "gymclass_heroes");
	logoList[i++] = new makeLogo("Jake Owen Live at Dukes", "jakeowen");
	logoList[i++] = new makeLogo("Leo Kottke", "leo_kottke");
	logoList[i++] = new makeLogo("Mayhem", "mayhem");
	logoList[i++] = new makeLogo("Odd Future Wolf Gang Kill Them All", "odd_future");
	logoList[i++] = new makeLogo("Peaches", "peaches");
	logoList[i++] = new makeLogo("Pepper", "pepper");
	logoList[i++] = new makeLogo("Pierce the Veil / Miss May I", "piercetheveil");
	logoList[i++] = new makeLogo("RCI", "rci");
	logoList[i++] = new makeLogo("Sage Francis", "sagefrancis");
	logoList[i++] = new makeLogo("Tech N9ne", "tech_n9ne");
	logoList[i++] = new makeLogo("Veil Of Maya & After The Burial", "veilofmaya");
	logoList[i++] = new makeLogo("The Band Perry", "thebandperry2");
	logoList[i++] = new makeLogo("The AP Tour", "apfall_tour2011");
	logoList[i++] = new makeLogo("7th Annual Ross Coleman Invitational", "rci");
	logoList[i++] = new makeLogo("MFNW Brunch Presented by TicketsWest and Vitamin Water", "mfnw");
	logoList[i++] = new makeLogo("Dan Reed", "dan_reed");

	logoList[i++] = new makeLogo("The Acacia Strain", "acaciastrain");
	logoList[i++] = new makeLogo("Afroman", "afroman");
	logoList[i++] = new makeLogo("The Alchemist", "alchemist");
	logoList[i++] = new makeLogo("Alesana", "alesanapic2");
	logoList[i++] = new makeLogo("I Am Finally Famous World Tour with Big Sean", "bigsean");
	logoList[i++] = new makeLogo("Chimaira", "chimaira");
	logoList[i++] = new makeLogo("Eli Young Band Live at Duke's Halloween Night", "eliyoungband");
	logoList[i++] = new makeLogo("honeyhoney / Joshua James", "honey_honey");
	logoList[i++] = new makeLogo("Iration", "iration");
	logoList[i++] = new makeLogo("Jolie Holland", "jolie_holland");
	logoList[i++] = new makeLogo("Mastodon", "mastodon_cts_biov2");
	logoList[i++] = new makeLogo("Opeth", "opeth");
	logoList[i++] = new makeLogo("Wale", "wale");
	logoList[i++] = new makeLogo("The Green/Giant Panda Guerilla Dub Squad", "thegreen");
	logoList[i++] = new makeLogo("Collie Buddz", "colliebuddz");
	logoList[i++] = new makeLogo("GWAR", "gwar2");
	logoList[i++] = new makeLogo("Passafire", "passafire");

	logoList[i++] = new makeLogo("Michael Londra's Beyond Celtic", "beyond-celtic");
	logoList[i++] = new makeLogo("Christian Kane", "christian_kane");
	logoList[i++] = new makeLogo("The Devil Makes Three", "devilmakesthree");
	logoList[i++] = new makeLogo("Hot Buttered Rum/Greensky Bluegrass", "hotbutteredrum");
	logoList[i++] = new makeLogo("Kevin Burke & Cal Scott", "kevin_cal");
	logoList[i++] = new makeLogo("Zepparella - Hot B*tches Play The Zeppelin Jam", "zepparella");
	logoList[i++] = new makeLogo("Cash'd Out - Johnny Cash Tribute", "cashdout1");
	logoList[i++] = new makeLogo("Purple Haze - Jimi Hendrix Tribute", "purplehazeband");
	logoList[i++] = new makeLogo("Portland Women's Expo", "portlandwomensexpo");
	logoList[i++] = new makeLogo("Chocolatefest", "chocolatefest-2012");

	logoList[i++] = new makeLogo("Mat Kearney", "mat_kearney");
	logoList[i++] = new makeLogo("O.A.R.", "oar");
	logoList[i++] = new makeLogo("Lords of the Edge featuring Ronny Munroe", "ronnymunroe");
	logoList[i++] = new makeLogo("Salem Tubachristmas", "tuba_girl");
	logoList[i++] = new makeLogo("A Children&#39;s Nutcracker", "child-nutcracker");
	logoList[i++] = new makeLogo("The Nutcracker Ballet with Eugene Ballet Company", "eugballet-nutcracker");
	logoList[i++] = new makeLogo("All You Need Is Love with Eugene Ballet Company", "eugene-ballet-company");
	logoList[i++] = new makeLogo("G. Love & Special Sauce", "glove");
	logoList[i++] = new makeLogo("Infected Mushroom (Live)", "infected-mushroom");
	logoList[i++] = new makeLogo("Devour PDX Ticket", "devour-octo");
	logoList[i++] = new makeLogo("The Coats - Holiday", "coats");

	logoList[i++] = new makeLogo("Ani DiFranco", "anidifranco");
	logoList[i++] = new makeLogo("Young the Giant", "youngthegiant");
	logoList[i++] = new makeLogo("Umphrey&#39;s McGee", "upmhreysmcgeelogo");
	logoList[i++] = new makeLogo("The Magnetic Fields", "themagneticfields");
	logoList[i++] = new makeLogo("The Darkness", "thedarkness");
	logoList[i++] = new makeLogo("Steve Aoki", "steve_aoki");
	logoList[i++] = new makeLogo("Flogging Molly", "floggingmolly");
	logoList[i++] = new makeLogo("Boz Scaggs", "boz_scaggs");
	logoList[i++] = new makeLogo("SOJA", "sojaogo");
	logoList[i++] = new makeLogo("Rebelution", "rebelution");
	logoList[i++] = new makeLogo("Die Antwoord", "dieantwoord");
	logoList[i++] = new makeLogo("Too Short", "too_short");
	logoList[i++] = new makeLogo("Excision", "excision");
	logoList[i++] = new makeLogo("The Jayhawks", "thejayhawks");
	logoList[i++] = new makeLogo("Matthew Good", "matthewgood");
	logoList[i++] = new makeLogo("Frank Turner", "frankturner");

	logoList[i++] = new makeLogo("Dark Star Orchestra", "darkstarorchestra");
	logoList[i++] = new makeLogo("NiT GRiT & TWO FRESH", "nitgrit");
	logoList[i++] = new makeLogo("Brian Regan", "brianregan");
	logoList[i++] = new makeLogo("Demetri Martin", "demetrimartin");
	logoList[i++] = new makeLogo("Moe", "moe");
	logoList[i++] = new makeLogo("David Sedaris", "davidsedaris");
	logoList[i++] = new makeLogo("Apolo Ohno", "apoloohno");
	logoList[i++] = new makeLogo("Hot Buttered Rum", "hotbutteredrum");
	logoList[i++] = new makeLogo("Budos Band", "budosbandnew");
	logoList[i++] = new makeLogo("Michael Schenker Group (MSG) / Anvil", "michaelschenkergroup");
	logoList[i++] = new makeLogo("Michael Schenker Group", "michaelschenkergroup");
	logoList[i++] = new makeLogo("Boondox", "boondox");
	logoList[i++] = new makeLogo("Uli Jon Roth", "ulijonroth");
	logoList[i++] = new makeLogo("Anvil", "anvil");
	logoList[i++] = new makeLogo("DragonLord", "dragonlord");
	logoList[i++] = new makeLogo("18th Annual Brazilian Carnaval", "carnaval2012poster");
	logoList[i++] = new makeLogo("Galactic", "galactic");


/* --------------------------------------------------
	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", "C"), "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", "S"), "soccer");
	logoGroupList[i++] = new makeLogo(new Array("CLD"), "calendar");
	

/* --------------------------------------------------
	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("OREGON COUNTRY FAIR")) {
				logo = "peach";
			} else if(name.indexOf("GRAYS HARBOR BEARCATS") > -1) {
				logo = "bearcats";
			} else if(name.indexOf("TACOMA COBRAS") > -1) {
				logo = "tacoma_cobras";
			} else if(name.indexOf("INSPIRING POWER") > -1) {
				logo = "oamc";
			} else if(name.indexOf("KIXI") > -1) {
				logo = "kixi_logo";
			} else if(name.indexOf("AARON MEYER") > -1) {
				logo = "aaron_meyer";
			} else if(name.indexOf("VANCOUVER WINE & JAZZ FESTIVAL") > -1) {
				logo = "vancouver_wine_jazz";
			} else if(name.indexOf("SALEM CONCERT BAND") > -1) {
				logo = "salem_concert_band";
			} else if(name.indexOf("ASTORIA INT&#39;L FILM FESTIVAL") > -1) {
				logo = "aiff";
			} else if(name.indexOf("HOLIDAY EXPRESS TRAIN") > -1) {
				logo = "holidayexpress";
			} else if(name.indexOf("HONKY TONK") > -1) {
				logo = "honkytonk_hodown";
			} else if(name.indexOf("KELLIE PICKLER") > -1) {
				logo = "kellie_pickler";
			} else if(name.indexOf("JINGLE BELL JAM") > -1) {
				logo = "jingle_bell_jam";
			} else if(name.indexOf("MENOPAUSE") > -1) {
				logo = "menopause_inconcert";
			} else if(name.indexOf("BRAIN AWARENESS") > -1) {
				logo = "obi";
			}


		}
		// 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 = "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);
	}
	
