function menudrop(id,divheight)
{
divid = "myOtherElement_"+id;
pointLocFo = "pointhere_"+id;
window.addEvent('domready', function(){



	$(divid).addEvents({
		'click': function(){
			var premenuname = $('permenu').value;
				
				if(premenuname != divid && premenuname !='')
				{
					//hideme(premenuname);
					$(premenuname).set('tween', {}).tween('height', '20px');
					$(premenuname).style.background="none";
				}
			$('permenu').value = divid;
			$(divid).style.background="#DFE9F3";
			
			//$(divid).style.width ='198px';
			//$(divid).focus();	
			//pointLoc = "pointhere_"+id;
			//$(divid).style.marginLeft="2px;";
			//$(pointLoc).focus();
			//
			
			
			// Always sets the duration of the tween to 1000 ms and a bouncing transition
			// And then tweens the height of the element
			this.set('tween', {
				duration: 1000,
				transition: Fx.Transitions.Bounce.easeOut // This could have been also 'bounce:out'
			}).tween('height', divheight);
		}
		
		
	});
	

	
});

//$(pointLocFo).focus();

}


function selectedmenu(id)
{
	//alert(id);	
	var divName = "myOtherElement_"+id;	
	var divHeight ="menuDivHeight_"+id;
	var pointLoc = "pointhere_"+id;
	
	
		
	if(divHeight != 'menuDivHeight_'){	
		divHeightVal = $(divHeight).value;
		$(divName).style.background="#DFE9F3";
		$(divName).style.height=$(divHeight).value+'px';	
		$(divName).style.width ='198px';		
		$(pointLoc).style.background="red";
		//$(pointLoc).focus();
	}
	
	if(id >= 0){
		//$('permenu').value = divName;
		
	}
	
	
	
	
	//divName = "myOtherElement_"+id;	
	//divHeight ="menuDivHeight_"+id;
	
	//$(divName).style.background="#a4b8dd";
	//$(divName).style.height=$(divHeight).value;
	//$(divName).focus();
	
		
}