// map.js
//
// Enables panning and zooming
function Map( aMapName, imagePath, imageMapName, aParentMap, aZoomScale, decorationsArray )
{
	// -- constructor for Map object
	
	// relative path to map image
	this.image = imagePath;
	// unique name for map
	this.mapName = aMapName
	// name for imagemap associated to map image
	this.imageMap = imageMapName;
	// name for parent map in next higher zoom scale
	this.parentMap = aParentMap;
	// zoom scale
	this.zoomScale = aZoomScale;
	// associated window decoration to make visible
	// ie Scale Bar, Inset Map
	this.associatedDecorations = decorationsArray;

	function getDecorations()
	{
		return this.associatedDecorations;
	}
	function setDecorations( decorationsArray )
	{
		this.associatedDecorations = decorationsArray;
	}
	function getZoomScale()
	{
		return this.zoomScale;
	}
	function setZoomScale( aZoomScale )
	{
		this.zoomScale = aZoomScale;
	}
	function getImage() 
	{
		return this.image;
	}		
	function setImage( imageName ) 
	{
		this.image = imageName;
	}
	function getImageMap() 
	{
		return this.imageMap;
	}
	function setImageMap( imageMapName )
	{
		this.imageMap = imageMapName;
	}
	function getParentMap()
	{
		return this.parentMap;
	}
	function setParentMap( aParentMap )
	{
		this.parentMap = aParentMap;
	}	
	function setMapName( aMapName )
	{
		this.mapName = aMapName;
	}
	function getMapName()
	{
		return this.mapName;
	}

	this.getDecorations = getDecorations;
	this.setDecorations = setDecorations;
	this.setZoomScale = setZoomScale;
	this.getZoomScale = getZoomScale;
	this.setMapName = setMapName;
	this.getMapName = getMapName;
	this.getImage = getImage;
	this.setImage = setImage;
	this.getImageMap = getImageMap;
	this.setImageMap = setImageMap;
	this.getParentMap = getParentMap;
	this.setParentMap = setParentMap;
	//alert(this.setMapName + ":" + this.getMapName + ":" + this.setZoomScale)
	//alert("Map");
}
