//functions to show/hide topnav menu dropdowns...

	

	function getRealLeft(theimg) 

	{

		xPos = theimg.offsetLeft;

		tempEl = theimg.offsetParent;

	  	while (tempEl != null) {

	  		xPos += tempEl.offsetLeft;

	  		tempEl = tempEl.offsetParent;

	  	}

		return xPos;

	}



	function getRealTop(theimg) 

	{

		yPos = theimg.offsetTop;

		tempEl = theimg.offsetParent;

		while (tempEl != null) {

	  		yPos += tempEl.offsetTop;

	  		tempEl = tempEl.offsetParent;

	  	}

		return yPos;

	}





	function FindMyObj(strName) 

	{ 

		var i, retval;  

		dizoc=document; 



		if(!(retval=dizoc[strName]) && dizoc.all) 

			retval=dizoc.all[strName]; 

		

		for (i=0;!retval && i<dizoc.forms.length; i++) 

			retval=dizoc.forms[i][strName];

	  

		for(i=0; !retval&&dizoc.layers && i<dizoc.layers.length; i++) 

			retval = FindMyObj(strName, dizoc.layers[i].document); 

			

		return retval;

	}



	function ShowLayers()

	{

		var obj, args = ShowLayers.arguments;

	  

		for (i=0; i<(args.length); i++)

		{

	  		if ((obj=FindMyObj(args[i]))!=null) 

			{ 	

				if (obj.style) 

				{ 

					obj=obj.style; 			

				}

				obj.visibility = 'visible'; 

			}

		}

	}



	function ShowLayer(layername, theObject)

	{

		var obj;

	  

		if ((obj=FindMyObj(layername))!=null) 

		{ 

			var IE4 = (document.all) ? true : false;

			var NS4 = (document.layers) ? true : false;

			var xPos = (NS4) ? theObject.x : getRealLeft(theObject);

			var yPos = (NS4) ? theObject.y : getRealTop(theObject);

						

			yPos += 16;

			xPos -= 9;

			

			//set the location of the menu...

			if (obj.style) 

			{ 

				obj=obj.style; 	

				obj.pixelLeft = xPos;

				obj.pixelTop = yPos;		

			}

			obj.left = xPos;

			obj.top = yPos;

			obj.visibility = 'visible'; 

			

		}

	}

	

	//IE only...

	function ShowLayerIE(layername, theObject)

	{

		var obj;

		

		var IE4 = (document.all) ? true : false;

		var NS4 = (document.layers) ? true : false;

	  

		if (IE4)

		{

			if ((obj=FindMyObj(layername))!=null) 

			{ 

				var IE4 = (document.all) ? true : false;

				var NS4 = (document.layers) ? true : false;

				var xPos = (NS4) ? theObject.x : getRealLeft(theObject);

				var yPos = (NS4) ? theObject.y : getRealTop(theObject);

							

				yPos += 16;

				xPos -= 9;

				

				//set the location of the menu...

				if (obj.style) 

				{ 

					obj=obj.style; 	

					obj.pixelLeft = xPos;

					obj.pixelTop = yPos;		

				}

				obj.left = xPos;

				obj.top = yPos;

				obj.visibility = 'visible'; 

				

			}

		}

	}



	function HideLayers()

	{

		var obj, args = HideLayers.arguments;

	  

		for (i=0; i<(args.length); i++)

		{

	  		if ((obj=FindMyObj(args[i]))!=null) 

			{ 

				if (obj.style) 

				{ 

					obj=obj.style; 			

				}

				obj.visibility = 'hidden'; 

			}

		}

	}



	//IE only

	function HideLayersIE()

	{

		var obj, args = HideLayersIE.arguments;

	

		var IE4 = (document.all) ? true : false;

		var NS4 = (document.layers) ? true : false;

			  

		if(IE4)

		{

			for (i=0; i<(args.length); i++)

			{

	  			if ((obj=FindMyObj(args[i]))!=null) 

				{ 

					if (obj.style) 

					{ 

						obj=obj.style; 			

					}

					obj.visibility = 'hidden'; 

				}

			}

		}

	}



