//*********************************************************************************************////**** MIMACOM ENGINEERING GMBH Copyright(C) 2000 All rights reserved. ****////*********************************************************************************************////// Filename		: navigation.js//// Description		: image changes while navigating, frame control//// Directories		: ../js///// Authors		: ma Marcel Affolter//// Log			: Begin         		29/01/01 ma File created.//         			: Last Update  	29/01/01 ma////*********************************************************************************************//// *** How to implement the script ***//// <SCRIPT language="Javascript" type="text/javascript" src="navigation.js">// ...// </SCRIPT>/////////////////////////////////////////////////////////////////////////////////////////////////// Kill the focus on the item (just need with IE >= 5.0// Begin        		29/01/01 ma// Last Update 	29/01/01 mafunction Deblur(pItem){	if (document.all)	// true, if IE	{		pItem.blur();	// Deactivate the focus -> need of IE > 5.0	}}/////////////////////////////////////////////////////////////////////////////////////////////////// Jumps to a given url in a given frame number and change the image// Begin        		29/01/01 ma// Last Update 	29/01/01 mafunction ShowContent (iMenu){	//alert("Test");	// Set the active sub menu (global variable)	gl_ActiveMenu = iMenu;	if (gl_ActiveMenu != 0)	{ 		if (document.images)		{			top.frames[2].location.href = gl_ContentMapArray[(gl_ActiveMenu - 1)];						// Set all images of the  menu to passiv			for(i=0; i < MenuImageIndexArray.length; i++)    			{				document.images[MenuImageIndexArray[i]].src = ImageOff[i].src;			}						document.images[MenuImageIndexArray[(iMenu-1)]].src = ImageOn[(iMenu-1)].src;		}	}}/////////////////////////////////////////////////////////////////////////////////////////////////// Change the image while mouse over or mouse out, bMouseOver true is mouse over// Begin        		29/01/01 ma// Last Update  	-function ChangeImage(x /*index of image in ImageArray*/, bMouseOver){		if (document.images) // Check if images are possible 	{		// Set the menu item		if (bMouseOver)		{			// x is zerobased			document.images[MenuImageIndexArray[x]].src = ImageOn[x].src;		}		else 	// onnmouseout		{				if (x != (gl_ActiveMenu - 1)) // Check if the menu item is selected				document.images[MenuImageIndexArray[x]].src = ImageOff[x].src;		} 	}}/////////////////////////////////////////////////////////////////////////////////////////////////// Set the menu of the selected item// Begin        		29/01/01 ma// Last Update  	-function SetMenu(iMenu){	if (document.images) // Check if images are possible 	{		gl_ActiveMenu = iMenu;		document.images[MenuImageIndexArray[iMenu-1]].src = ImageOn[iMenu-1].src;		if (gl_ActiveMenu != 0)		{			// Set all images of the menu to passiv			for(i=0; i < MenuFileIndexArray.length; i++)    		   	 {				if (i != (iMenu-1))	// do not set image of avtive menu to passiv					document.images[MenuImageIndexArray[i]].src = ImageOff[i].src;			}		}	}}
