
var Location =
{
	
	elem: null,
	
	initialize: function()
	{
		
		Location.elem = $$( 'location-homestead' );
		
		$$( 'map-map' ).elmsByTag( 'area' ).each
		( function(){
			
			var self = this;
			
			Legato_Events_Handler.addEvent( this, 'onmouseover', function(){ Location.switchImage( self ); } );
			
		} );
		
	},
	
	switchImage: function( area )
	{
		
		if ( Location.elem )
			Location.elem.setStyle( 'display', 'none' );
		
		var id = area.id.substring( 4 );
		
		var elem = $$( 'location-' + id );
		Location.elem = elem;
		
		elem.setStyle( 'display', 'block' );
		
	}
	
};