/**
 * Requires Mootools
 */

var BsMap = {
	
	container : 'euribron_map',
	sectionClass : 'map_container',
	defaultSection : 'map_world',
	
	SwapImage : function(imgEl, unknown0, imgUrl, unknown1){
		var img = $(imgEl);
		if(imgEl) img.setProperty('src', imgUrl);
	},
	
	ShowSection : function(section){
		
		// Hides all map sections
		var els = $ES('.'+this.sectionClass)
		for(var i=0; i<els.length; i++){
			els.setStyles({
				'display' : 'none' 
			});
		}
		
		// Shows only the section based on its DOM Element or Id
		var active = $(section);
		if(active){
			active.setStyles({
				'display': 'block'
			});
		}else{
			// if none found, show default section
			this.ShowSection(this.defaultSection);
		}
	},
	
	Init : function(){
		// No preloading
		this.ShowSection(this.defaultSection);
	}
		
}