/* --------------------------------------------------
	Author:		Donna Latto
	Email:		dlatto@paciolan.com
	Created:	March 6, 2007
	Purpose:	Functions to create and print logos. 
				Used primarily on:
				- displaySimpleEventList
				- displayGroupList 
	Version Notes:
				3/29/07 - Added printStaticThumb 
				function to add clickable static 
				map thumbnails in places such as 
				cartdisplay.
				
				4/4/07 - Fixed formatting of 
				clickable thumbnail (in cartdisplay).
				
				8/30/07 - printStaticThumb -> printStaticLink
				to eliminate trouble of creating
				thumbnails.
-------------------------------------------------- */

	function makeMap(desc, mapfile) {
		this.desc = desc;
		this.mapfile = mapfile;
	}

	/* ----- Map list by event ---------- */
	smapList = new Array;
	var smli = 0;
//	smapList[smli++] = new makeMap("Nana Mouskouri", "nanaMouskouri.jpg");
	smapList[smli++] = new makeMap("<A HREF=http://ev10.evenue.net/cgi-bin/ncommerce3/ExecMacro/evenue/ev69/se/DisplayPromoList.d2w/report?linkID=usc&RSRC=&RDAT=&caller=PR>THE FRAY</A>", "theFray.gif");
	smapList[smli++] = new makeMap("JYJ New Album Showcase Tour 2010", "galenCenter-SE.gif");	
	smapList[smli++] = new makeMap("Football Season Ticket", "coliseum.gif");		
	smapList[smli++] = new makeMap("Faculty/Staff Football Season Ticket", "coliseum.gif");			
	smapList[smli++] = new makeMap("His Holiness the Dalai Lama at Galen Center", "galenCenter-SE.gif");		
	smapList[smli++] = new makeMap("Galen Pass", "galenCenter-MB.gif");		
	smapList[smli++] = new makeMap("Men&#39;s Season Tickets", "galenCenter-MB.gif");	
	smapList[smli++] = new makeMap("VB", "galenCenter-VB.gif");		
	smapList[smli++] = new makeMap("Freestyle Invasion", "galenCenter-SE.gif");				
	smapList[smli++] = new makeMap("<b> Commemorative T-Shirt </b>", "Tshirt-both.jpg");
	smapList[smli++] = new makeMap("<b>Commemorative T-Shirt </b>", "Tshirt-both.jpg");
		
	/* ----- Map list by facility ---------- */
	fmapList = new Array;
	var fmli = 0;
//	fmapList[fmli++] = new makeMap("HUSKY STADIUM", "sample.gif");

	function printStaticMap(desc) {
		var theMap = "";
		var smapSrc = "";
		
		for(var a=0; a<smapList.length; a++) {
			if(desc.toUpperCase()==smapList[a].desc.toUpperCase()) {
				theMap = smapList[a].mapfile;
			}
		}

		if(theMap != "") {
			smapSrc = '<p title="'+ desc +'">&nbsp;</p><a name="map"></a><p align="center"><img src="'+imageWWWPath+'/maps/'+theMap+'" border="0"></p><p>&nbsp;</p>';
		}
		return(smapSrc);
	}
	
	function printStaticLink(desc, fac) {
		var theMap = "";
		var smapSrc = fac;
		
		for(var a=0; a<fmapList.length; a++) {
			if(fac.toUpperCase()==fmapList[a].desc.toUpperCase()) {
				theMap = fmapList[a].mapfile;
			}
		}

		for(var a=0; a<smapList.length; a++) {
			if(desc.toUpperCase()==smapList[a].desc.toUpperCase()) {
				theMap = smapList[a].mapfile;
			}
		}

		if(theMap != "") {
			smapSrc = '<a href="javascript:popBox(\''+imageWWWPath+'/maps/'+theMap+'\', \'evenue\', 640, 480)">'+fac+'</a>';
		}
		return(smapSrc);
	}
