window.onload=function ()
{	var	BugMSG	=	"window.onload";
	sfHover("navg");

	//markHere();
	//updateStatusHover();
	//if (typeof(initializeForms)=="function") initializeForms();	///	Optional functions on page or in other files
	//alert(BugMSG);
}

sfHover = function() 
{	if (!window.attachEvent)	return null;
	var	sBug	=	"sfHover:"
	sBug+=		"\n:arguments.length = " + arguments.length;
	iArg	=	0;	while (arguments[iArg])
	{	if (document.getElementById(arguments[iArg]))
		{	if (document.getElementById(arguments[iArg]).getElementsByTagName("LI"))
			{	var sfEls = document.getElementById(arguments[iArg]).getElementsByTagName("LI"); 
				for (var i=0; i<sfEls.length; i++) 
				{	sfEls[i].onmouseover	=function() {	this.className+=" sfhover";}
					sfEls[i].onmouseout	=function() { this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); }
				}
			}
		}
	sBug+=		"\n:arguments[" + iArg+ "] = " + arguments[iArg];
	iArg++;
	}
	//alert(sBug);
}

function		updateStatusHover()
{	if (document.getElementById("PrintPage"))
	{	pElement				=	document.getElementById("PrintPage");
		pElement.onmouseover	=	function() {	window.status='Click to print this page';return true	}; 
		pElement.onmouseout	=	function() {window.status=window.defaultStatus;};
	}
	if (document.getElementById("EmailPage"))
	{	pElement				=	document.getElementById("EmailPage");
		pElement.onmouseover	=	function() {	window.status='Click to open FORM to send page URL to a friend';return true	}; 
		pElement.onmouseout	=	function() {window.status=window.defaultStatus;};
	}
}

function markHere()
{	if (document.getElementsByTagName("a"))
	{	var	ThisURL				=	document.URL;
		var	SectionFileTEST	=	ThisURL.split("/");
				SectionFileTEST	=	"/products/" + SectionFileTEST[SectionFileTEST.length-2] + ".html";
		var	aLink					=	document.getElementsByTagName("a");
		var	LinkQTY				=	aLink.length;
		var	LinkFileTEST, aLinkPATH,sLinkPATH,sMsg="";
		for (var i = 0; i < LinkQTY; i++)
		{	if (aLink[i] == ThisURL) aLink[i].className = " Here"; 
			sLinkPATH		=	"" + aLink[i];
			aLinkPATH		=	sLinkPATH.split("/");
			LinkFileTEST	=	"/" + aLinkPATH[aLinkPATH.length-2] + "/" + aLinkPATH[aLinkPATH.length-1];
			if (LinkFileTEST.toLowerCase() == SectionFileTEST.toLowerCase()) aLink[i].className = " Here"; 	
			sMsg +=	"\n" + LinkFileTEST
		}
	}
	//alert(sMsg);
}

