/* <script language="JavaScript" type="text/javascript">					  */
/*
	descr: handle mouseover-swap-img on secondary menu
*/

// handle the mouseevent and find out what to do
function activate(e)
{
	if(window.event) e = event;

	var event_element = (e.srcElement) ? e.srcElement : e.target;

	// correct the srcElement.id if event not invoked by the anchor
	if (event_element.id.substr(0, 4) == "line")
	{
		event_element = document.getElementById(event_element.id.replace("line", "menu"));
	}
	// correct the srcElement.id if event not invoked by the anchor
	if (event_element.id.lastIndexOf("_icon_dot") > 0)
	{
		event_element = document.getElementById(event_element.id.replace("_icon_dot", ""));
	}
	
	event_element = document.getElementById(event_element.id + "_icon_dot");

	// set global var telling whether the mouse is over or out
	window.g_over = (e.type == "mouseover") ? true : false;

	activate_image(event_element);
}

// do stuff to the event-object
function activate_image(obj)
{

	var obj_src = obj.src;

	if (window.g_over)
	{
		obj.src = obj_src.replace('.gif', '_full.gif');
	}
	else
	{
		obj.src = obj_src.replace('_full.gif', '.gif');
	}
}

