/*
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright © 2003 by Gary Johnson
Copyright (&copy;) 2003 by Gary Johnson

COPYRIGHT

The information contained on this site is protected by Canadian, United States of America and international copyright laws.

All website materials, including, without limitation, design, text, graphics, photos, files, the Fast Track! logo, and 
the selection and arrangement thereof are © 2004 Gary Johnson ALL RIGHTS RESERVED.
 
Permission is granted to electronically copy and print to hard copy portions of this website for the sole purpose of 
using materials it contains for informational and non-commercial personal use only.
 
Any other use of materials in this website, including any commercial use, reproduction for purposes other than those noted above, 
modification, distribution or republication, without the prior written consent of Gary Johnson is strictly prohibited.


The Full Copyright statement is

	http://mywebpages.comcast.net/adgj/XXSoftwareTools/Copyright.html

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/

/*



*/




function toggleHighLightmo(myEvent, myId)
{
 
		try
		{

				getElement(myId).style.cursor = 'pointer';
				
				var temp = myId;

				if(temp.length == 3)
				{
					var mydivID = temp.substr(1,2);
				}
				else if(temp.length == 4)
				{
					var mydivID = temp.substr(1,3);
				}
				else
				{
					alert('invalid id in menu');
					return;
				}

				if(getElement(mydivID).style.display == 'block')
				{
					if(myEvent == "m")
					{
						getElement(myId).className = 'mymenu SHCm';
					}
					else
					{
						getElement(myId).className = 'mymenu SHFm';
					}
				}
				else if(myEvent == "m")
				{
					getElement(myId).className = 'mymenu SHCm';
				}
				else if(myEvent == "f")
				{
					getElement(myId).className = 'mymenu SHFm';
				}
				else if(myEvent == "o")
				{
					getElement(myId).className = 'mymenu HCLm';
				}

		}
		catch (error)
		{
			if(checkDebug())
			{
					onerror( error, " toggleHighLightmo ");
			}
		}
return false;
}



function menuSetHidden(idin)
{
//	setHidden(idin)
//	self.scrollTo(0, 0); 
//	getElement(theMenuID).className = 'HCL';
//	theMenuID = -1;
}

function popDivmo(evt,idin, buttonEvt, buttonID)
{

	try
	{

		var theObj = getElement(idin);

		var isVisib = theObj.style.display;
		
		
		if (isVisib == "block" || isVisib == "show")  
		{ 
			if(buttonEvt == "c")
			{
					getElement(buttonID).className = 'mymenu HCLm';
//					theMenuID = -1;
			}

			if(buttonID)
			{
				getElement(buttonID).value="Display " + name; 
			}
			setDisplayH(idin); 
		}
		else  
		{
			if(buttonID)
			{
				getElement(buttonID).value="Hide " + name; 
			}

			if(buttonEvt == "c")
			{
					getElement(buttonID).className = 'mymenu SHFm';
					theMenuID = buttonID;
			}
			
			setDisplayV(idin);  
		}
	}
	catch (error)
	{
		onerror( error, " popDivmo");
	}
}

function expandAll(buttonID)
{
		var theDivs = document.getElementsByTagName('DIV');

		for(i=0 ; i < theDivs.length; i++)
		{

			var aDiv = theDivs[i];

			var temp = aDiv.id;
		

			var check1 = temp.substr(0,1);

			if(check1 == 'm')
			{
				var thebuttonId = 'd' + temp;

				if(aDiv.style.display == 'none')
				{
					aDiv.style.display = 'block';
					getElement(thebuttonId).className = 'mymenu SHFm';
				}
				
			}


		}
}

function contractAll(buttonID)
{
		var theDivs = document.getElementsByTagName('DIV');

		for(i=0 ; i < theDivs.length; i++)
		{

			var aDiv = theDivs[i];

			var temp = aDiv.id;
		

			var check1 = temp.substr(0,1);

			if(check1 == 'm')
			{
				var thebuttonId = 'd' + temp;

				if(aDiv.style.display == 'block')
				{
					aDiv.style.display = 'none';
					getElement(thebuttonId).className = 'mymenu HCLm';
				}
			}


		}
}
