function class_menu () {
	
	this.hover 			= function (object) {
		
		for(var i = 0; i < object.childNodes.length; i++)
		{
			object.childNodes[i].className = object.childNodes[i].className + 'active';
		}
		
	}
	
	this.out			= function (object) {
	
		for(var i = 0; i < object.childNodes.length; i++)
		{
			object.childNodes[i].className = object.childNodes[i].id;
		}
		
	}
	
	this.dropdown = function (object) {
		
		var dropdown = document.getElementById('dropdown' + object.id);
		
		if (dropdown === null || dropdown === undefined)
		{
			
		}
		else
		{
		
			if (dropdown.style.display == 'none')
				dropdown.style.display = '';
			else
				dropdown.style.display = 'none';
			
		}
		
	};
	
	
	
	
}
var menu = new class_menu();
