/* --------------------------------------------------
	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("Disney&#39;s High School Musical The Ice Tour - THU 2/19/08 - 7:00 PM", "highschoolmusical.gif");
	smapList[smli++] = new makeMap("Disney&#39;s High School Musical The Ice Tour - FRI 2/20/08 - 7:00 PM", "highschoolmusical.gif");
	smapList[smli++] = new makeMap("Disney&#39;s High School Musical The Ice Tour - SAT 2/21/08 - 2:00 PM", "highschoolmusical.gif");
	smapList[smli++] = new makeMap("Disney&#39;s High School Musical The Ice Tour - SAT 2/21/08 - 6:00 PM", "highschoolmusical.gif");
	smapList[smli++] = new makeMap("Disney&#39;s High School Musical The Ice Tour - SUN 2/22/08 - 1:00 PM", "highschoolmusical.gif");
	smapList[smli++] = new makeMap("Disney&#39;s High School Musical The Ice Tour - SUN 2/22/08 - 5:00 PM", "highschoolmusical.gif");

	smapList[smli++] = new makeMap("VICENTE FERNANDEZ - SUN MAY 10, 2009 - 7:00 PM", "fernandez_2009.gif");
	smapList[smli++] = new makeMap("Joan Sebastian SUN 6/14/09 - 6:00 PM", "Joan-Sebastian-Map.gif");	

	smapList[smli++] = new makeMap("Luche Libre Mexicana SUN AUG 9, 2009 - 6:30 PM", "luche_libre.gif");	

	smapList[smli++] = new makeMap("PACIFIC vs CAL WED 12/09/09 - 7:00 PM", "uop.gif");
	smapList[smli++] = new makeMap("PACIFIC vs CAL  WED 12/09/09 - 7:00 PM", "uop.gif");

	smapList[smli++] = new makeMap("Harlem Globetrotters THU JAN 14, 2010 - 7:00 PM", "globetrotters2010.gif");

	
	/* ----- 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);
	}