/**
*	global js file template for POSK
* 	$Id: global.js 833 2010-11-25 19:51:08Z nisa $
*	project:		trunk
*	all rights at:	daniel.liebig@wevin.de
**/



/** Todo: this works, but might be optimizable! **/

function swapIn(Img)
{
	if ( !Img )
	{
		return;
	}
	if ( Img.src.substr(Img.src.length - 6) == '_a.gif' )
	{
		return;
	}
	ext = Img.src.substr((Img.src.length - 4));
	overImgSrc 	= Img.src.substr(0, (Img.src.length - 6) ) + '_o' + ext;
	Img.src		= overImgSrc;
}

function swapOut(Img)
{
	if ( !Img )
	{
		return;
	}
	if ( Img.src.substr(Img.src.length - 6) == '_a.gif' )
	{
		return;
	}
	ext = Img.src.substr((Img.src.length - 4));
	outImgSrc 	= Img.src.substr(0, (Img.src.length - 6) ) + '_n' + ext;
	Img.src		= outImgSrc;
}

