
function Navigation () {
	
	var _self;
	var navigation;
	var trigger;
	var background;
	var nodes;
	var langSwitch;
	
	this.__construct = function( a_navigation, a_trigger, a_background, a_nodes ) {
		_self		= this;
		navigation	= $(a_navigation);
		trigger		= $(a_trigger);
		background	= $(a_background);
		nodes		= $(a_nodes);
		langSwitch	= $('langSwitch');
		init();
	}
	
	function init () {
		background.setOpacity(0.6);
		navigation.onmouseover = function () { _self.show(); }
		navigation.onmouseout = function () { _self.hide(); }
	}
	
	this.show = function () {
		nodes.style.display = 'block';
		background.style.height = nodes.offsetHeight + 10 + 'px';
		background.style.display = 'block';
		langSwitch.style.display = 'block';
	}
	
	this.hide = function () {
		nodes.style.display = 'none';
		background.style.display = 'none';
		langSwitch.style.display = 'none';
	}
}
