	menuimage = '';
	
	function swapLocImgObject(aObject,aNewImgState,aOldImgState)
	{
		
		newSrc = aObject.src;
		
		//alert(newSrc);
		
		newSrc = newSrc.replace(aOldImgState, aNewImgState);
		
		aObject.src = newSrc;
	}
	
	function swapLocImgName(aName,aNewImgState,aOldImgState)
	{
		
		newSrc = aObject.src;
		
		newSrc = newSrc.replace(aOldImgState, aNewImgState);
		
		aObject.src = newSrc;
	}
	
	function swapImgObject(aObject,aImgSrc,aImgState,aImgPath)
	{
		if (aObject.src.indexOf('.gif') > 0) {
			theType = '.gif';
		}
		else {
			theType = '.jpg';
		}
		if (aImgPath == 'any') {
			aImgPath = imgPathAny;
		}
		else
		{
			aImgPath = imgPathAny  + aImgPath + '/';
		}
		
		//alert(aImgPath + aImgSrc + '_' + aImgState + theType);
		aObject.src = aImgPath + aImgSrc + '_' + aImgState + theType;
	}
	
	function swapImgObjectPath(aObject,aImgSrc,aImgState,aImgPath)
	{
		if (aObject.src.indexOf('.gif') > 0) {
			theType = '.gif';
		}
		else {
			theType = '.jpg';
		}
		
		aObject.src = aImgPath + aImgSrc + '_' + aImgState + theType;
	}

	function swapImages(aFrame ,aImgName, aImgState, aImgSrc, aImgPath)
	{
		if ( (aFrame == '') || (!aFrame))
		{
			theDoc = eval('self.document');
		}
		else
		{
			theDoc = eval('document');
		}
		
		// alert(aImgName + ':' + theDoc.images[aImgName]);
		if ( (aImgSrc == '') || (!aImgSrc))
		{
			aImgSrc = aImgName;
		}
		
		if ((aImgPath == '') || (!aImgPath)) {
			aImgPath = imgPath;
		}
		if (theDoc.images[aImgName])
		{	
			if (theDoc.images[aImgName].src.indexOf('.gif') > 0) {
				theType = '.gif';
			}
			else {
				theType = '.jpg';
			}
		
			theDoc.images[aImgName].src = aImgPath + aImgSrc + '_' + aImgState + theType;
		}
	}
	
	function swapMenuImages(aImgName, aImgState, aImgSrc)
	{
		if (aImgName != menuimage)
		{
			//alert('menuimage: ' + menuimage );
			
			theDoc = eval('document');
			
			aImgPath = imgPath;
			
			if (theDoc.images[aImgName])
			{	
				if (theDoc.images[aImgName].src.indexOf('.gif') > 0) {
					theType = '.gif';
				}
				else {
					theType = '.jpg';
				}
			
				//alert(aImgPath + aImgSrc + '_' + aImgState + theType);
				theDoc.images[aImgName].src = aImgPath + aImgSrc + '_' + aImgState + theType;
			}
			else
			{
			//alert('NO1');
			}
			
		}
		else
		{
			//alert('NO2');
		}
	}
	

	function swapImagesAny(aFrame ,aImgName, aImgState, aImgSrc)
	{
	
		if ( (aImgSrc == '') || (!aImgSrc))
		{
			aImgSrc = aImgName;
		}
		
		swapImages(aFrame,aImgName,aImgState,aImgSrc,imgPathAny);
		
	}
	
	function hideMenu()
	{
	
		aImgState = '1';
		
		swapMenuImages('PC',aImgState,'menu_pc');
		swapMenuImages('Server',aImgState,'menu_Server');
		swapMenuImages('Notebook',aImgState,'menu_Notebook');
		swapMenuImages('Mobil',aImgState,'menu_Mobil');
		swapMenuImages('Aktion',aImgState,'menu_Aktion');
		swapMenuImages('Konfigurator',aImgState,'menu_Konfigurator');
		
	}
	
	function showMenu(aImgName)
	{
		hideMenu();
		
		aImgState = '3';
		
		swapMenuImages(aImgName,aImgState,'menu_' + aImgName);		
	}

/***************************************************************/
	function rollbg(chosen, object) {
	    if (chosen == "roll") {
	        object.className = "roll";
	    }
	    else {
	        object.className = "over";
	    }
	}

	function rollbgSale(chosen, object) {
	    if (chosen == "roll") {
	        object.className = "roll sale";
	    }
	    else {
	        object.className = "over sale";
	    }
	}