/* --------------------------------------------------
	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).
-------------------------------------------------- */

	function makeMap(config, mapfile) {
		this.config = config;
		this.mapfile = mapfile;
	}

	smapList = new Array;
	var smli = 0;
	
	smapList[smli++] = new makeMap("Nana Mouskouri", "nanaMouskouri.jpg");

	function printStaticMap(config) {
		var theMap = "";
		var smapSrc = "";
		
		for(var a=0; a<smapList.length; a++) {
			if(config.toUpperCase()==smapList[a].config.toUpperCase()) {
				theMap = smapList[a].mapfile;
			}
		}

		if(theMap != "") {
			smapSrc = '<p align="center"><img src="'+imageWWWPath+'/maps/'+theMap+'" border="0"></p>';
		}
		return(smapSrc);
	}
	
	
	function printStaticThumb(config) {
		var theMap = "";
		var smapSrc = "";
		
		for(var a=0; a<smapList.length; a++) {
			if(config.toUpperCase()==smapList[a].config.toUpperCase()) {
				theMap = smapList[a].mapfile;
			}
		}

		if(theMap != "") {
			smapSrc = '<span style="display: block; width: 110px; float: left; border: 1px solid #ccc; margin: 5px 0; font-size: 9px; text-align: center;"><a href="javascript:popBox(\''+imageWWWPath+'/maps/'+theMap+'\')"><img src="'+imageWWWPath+'/maps/thumb-'+theMap+'" border="0"><br>[click to enlarge]</a></span>';
		}
		return(smapSrc);
	}
