
/*----------------------------------------------------------------------------
COMBINEDIMGTEXTHILITE.JS

Copyright by
plenum stoll & fischbach Communication GmbH,
Herrenberg, Germany

combinedimgtexthilite.js 	contains functionality to highlight img und text together,
							if event is on one element
							identifying happens via id
----------------------------------------------------------------------------*/


//	combinedImgTextHilite()
//
//	arguments:
//	- triggerObject (required):	name of class to be found
//
//	what:	...
//	how:	...
function changeTextStyle(elementId,className)
{
		elementObj = document.getElementById(elementId);
		elementObj.className = className;
}

function changeImgStyle(elementId)
{
		elementObj = document.getElementById(elementId);
		elementSrc = elementObj.src;
		if (elementSrc.indexOf('_over') != -1)
		{
			elementObj.src = elementSrc.replace(/_over/,'');
		}
		else
		{
			elementObj.src = elementSrc.replace(/(\.(gif|jpeg))/, '_over' + '$1');
		}
}

