/*
	file:			rollover.js
	content:		navigation rollovers
	project:		Wevin JS Lib
	version:		1.2
	last update:	06.02.2007
	todo:			check of the manipulation of teh full img url leads to performance losses (getFileName)
	all rights at:	Daniel Liebig, Wevin - http://www.wevin.de
*/

//-- config --
	var imgPath = '/_common/img/';			// (relative) path to where the narmal and rollover images are
	var normalSuf = '_n';					// Suffix for all Normal Images
	var overSuf = '_a';						// Suffix for all Rollover Images
	var imgType = '.gif';					// Filetype of the images
	var imgCount = 4;						// No of images to swap

//-- preload --
/*	var Img = new Array(imgCount);
	for (var i = 0; i < imgCount; i++)
	{
		Img[i] = new Image();
	}
	Img[0].src = imgPath + "objekt_h.gif";
	Img[1].src = imgPath + "lage_h.gif";
	Img[2].src = imgPath + "info_o.gif";
	Img[3].src = imgPath + "gmbh_o.gif";
*/
function rollOver(Img)
{
	newImgSrc = Img.src.substr(0, Img.src.length - 6) + overSuf + imgType;
	Img.src = newImgSrc;
}

function rollOut(Img)
{
	newImgSrc = Img.src.substr(0, Img.src.length - 6) + normalSuf + imgType;
	Img.src = newImgSrc;
}

function getFilename(url)
{

}
