dropdown = function(options){
	var menuRoot = (options.root)?options.root:document;
	var menuElement = (options.element)?options.element:undefined;
	var elem = null;
	var visible = false;
	colorOffMenue(options);
	menuRoot = $(menuRoot);
	menuElement = $(menuElement);
	
	if (!menuElement || !menuRoot) return;
	Element.cleanWhitespace(menuElement.parentNode);
	Element.hide(menuElement);
	var subElements = menuRoot.getElementsByClassName('submenu', 'div', 'menu');
	for (var i=0;i<subElements.length;i++){
		elem = subElements[i];
		if (elem.visible()){
			if (elem == menuElement){
				visible = true;
			} else {
				Element.cleanWhitespace(elem.parentNode);
				//if (!is_ie6) new Effect.Fade(elem);
				//new Effect.SlideUp(elem);		
				Element.hide(elem);				
				elem.previousSibling.color= "#000000"
				num = new Number(elem.id.match(/\d+/));
				eval('sub'+num+' = false;');
			}
		}
	}
	menuElement.previousSibling.color= "#9a0a1e"
	if (!visible) {
		//if (!is_ie6) new Effect.Appear(menuElement);
		//new Effect.SlideDown(menuElement);
		Element.show(menuElement);
	}
}


colorOffMenue = function(options){
	var img = (options.img)?options.img:'';
	var tmp_img;
	img = $(img);
	
	
	for (i=1;i<=4;i++){
		eval('tmp_img = $(\'menu_img_\'+i);');
		if (!img || (tmp_img && tmp_img.src != img.src && tmp_img.src.search(/_on/))){
			tmp_img.src = tmp_img.src.replace(/_on/,'_off');
		}
	}
	
}