items = new Array ('products','support','gallery','buy','jobs','customers','dealers','company');
currPage = '';
itemSel = '';
imgPath = '';

 function getPath(objSrcPath){
	pos = objSrcPath.lastIndexOf("/");

	return objSrcPath.substr(0,pos+1);;
 }

 function switchItemsOff() {
	count = 0;
	while(count<items.length){
		appo = 'i'+items[count];
		imgPath = getPath(document.images[appo].src);
		
		if(items[count]!=currPage)
			document.images[appo].src = imgPath+items[count]+'.gif';

		if (document.all && document.all[items[count]])
			document.all[items[count]].style.visibility = 'hidden';

		count++;
	}
 }

 function showItem(itemName) {

	switchItemsOff();

	if (document.layers) {
		appo = 'i'+itemName;
		path = imgPath+itemName+'On.gif';
		document.images[appo].src = path;
	}
	else if (document.all) {
		document.all['i'+itemName].src = imgPath+itemName+'On.gif';
		if(document.all[itemName]){
			document.all[itemName].style.posLeft = document.all['i'+itemName].offsetParent.offsetLeft+document.all['i'+itemName].offsetLeft;
			document.all[itemName].style.posTop = 96;
			document.all[itemName].style.visibility = 'visible';
		}
	}
 }
