function Combobox_DropDown(box)
{
	var list=document.getElementById("list" + box.id);
	box.style.opacity=1;
	//var q=Effect.Queues.get(box.id);
	//q.each(function(e) { e.cancel(); } );

//	if (box.expanded==true)
	if (list.style.display=='none')
	{
		new Effect.Parallel([
			new Effect.SlideDown(list, { duration:0.75, sync:true }),
			new Effect.Appear(list, { duration:0.75, from:0, to:0.95, sync:true })
		], { duration:0.75, delay:0.1, queue:{ scope:box.id, position:'end', limit:1 }, afterFinish:function(){ box.expanded=true; list.style.overflow='auto'; list.style.color='#000000'; } }
		);
	} else {
		new Effect.Parallel([
			new Effect.SlideUp(list, { duration:0.75, sync:true }),
			new Effect.Fade(list, { duration:0.75, from:0.95, to:0, sync:true })
		], { duration:0.75, delay:0.1, queue:{ scope:box.id, position:'end', limit:1 }, afterFinish:function(){ box.expanded=false; list.style.overflow='auto'; } }
		);
	}

}

function Combobox_Select(item, value)
{
	var control=item.parentNode.parentNode;
	var label=document.getElementById('lbl' + control.id);
	var list=document.getElementById('list' + control.id);

	//Beschriftung
	label.innerHTML=item.innerHTML;

	//Formular-Felder
	document.getElementById('text' + control.id).value=control.text;
	document.getElementById('value' + control.id).value=control.value;
	
	if (list.style.display!='none') Combobox_DropDown(control);
//	Combobox_DropDown(control);
}
