function dropInfo(blockid,otherid,image,otherimage,imagedir)
{
	if(document.getElementById(blockid).style.display=='block')
	{
		document.getElementById(blockid).style.display='none';
		image.src=imagedir+'arrow_down.gif';
	}
	else
	{
		document.getElementById(blockid).style.display='block';
		image.src=imagedir+'arrow_right.gif';
		if (otherid!='none' && otherid!='')
		{
			if (document.getElementById(otherid).style.display=='block')
			{
				document.getElementById(otherid).style.display='none';
				otherimage.src=imagedir+'arrow_down.gif';
			}
		}
	}
}

function dropHelp(helpid,contentid,imagechange)
{
	if(document.getElementById(helpid).style.display == 'block')
	{
		document.getElementById(helpid).style.display = 'none';
		document.getElementById(contentid).style.display = 'block';
		imagechange.src = 'images/but_quickhelp.gif';
	}
	else
	{
		document.getElementById(helpid).style.display = 'block';
		document.getElementById(contentid).style.display = 'none';
		imagechange.src = 'images/but_quickhelp_aktiv.gif';
	}
}

function onmouseover_help(helpid,imagechange)
{
	if(document.getElementById(helpid).style.display == '' || document.getElementById(helpid).style.display == 'none')
	{
		imagechange.src='images/but_quickhelp_mo.gif';
	}
	else
	{
		imagechange.src='images/but_quickhelp_aktiv.gif';
	}
}

function onmouseout_help(helpid,imagechange)
{
	if(document.getElementById(helpid).style.display == 'block')
	{
		imagechange.src='images/but_quickhelp_aktiv.gif';
	}
	else
	{
		imagechange.src='images/but_quickhelp.gif';
	}
}

function trigger_effect(src_element, div_id, first_img, second_img){
    Effect.toggle(div_id, 'slide', {duration: 0.5,
        afterFinish:function(){
            src_element.src = src_element.src.match(first_img) ? second_img : first_img;
        }
    });
    return true;
}
