function handleMenu(ref_id, td_id, link_id) {
	r_id= document.getElementById(ref_id);
	t_id= document.getElementById(td_id);
	l_id= document.getElementById(link_id);

	var w = t_id.offsetLeft;
	var ref_str= "#" + ref_id;
	$(ref_str).css( { "left": (w) + "px" } );

	if (r_id.style.visibility == 'visible') {
		r_id.style.visibility= 'hidden';
		t_id.style.backgroundColor= '#EFE5CE';
		if (active_menu != t_id) {
			t_id.style.backgroundImage= '';
			l_id.style.color= '#333333';
		}
	}
	else {
		r_id.style.visibility= 'visible';
		t_id.style.backgroundImage= 'url(images/button-bg.jpg)';
		l_id.style.color= '#FFFFFF';
	}
}
function changeImage(ind, mid) {
	id= document.getElementById(mid);

	if (ind == 0) 
		id.src='images/arrow2.gif';
	else
		id.src='images/arrow1.gif';
}
function submitRefList(type, val, pos)
{
	document['ref_list'].act.value= 'list';
	document['ref_list'].filter_type.value= type;
	document['ref_list'].filter_value.value= val;
	document['ref_list'].filter_position.value= pos;
	document['ref_list'].submit();
}
function submitRefDetail(name, pos)
{
	document['ref_detail'].act.value= 'detail';
	document['ref_detail'].detail_name.value= name;
	document['ref_detail'].detail_pos.value= pos;
	document['ref_detail'].submit();
}
function submitSpektrum(act, pos)
{
        document['spektrum_menu'].spektrum_act.value= act;
        document['spektrum_menu'].spektrum_pos.value= pos;
        document['spektrum_menu'].submit();
}
function submitFaq(act)
{
        document['faq_menu'].faq_act.value= act;
        document['faq_menu'].submit();
}
