var path = window.location.href.replace(/(http:\/\/[^\/]*)(.*)/i, '$2').toLowerCase();
var oNav, oLI, oA, i, j, k, l, t;

window.onload = function ()
{
	oNav = document.getElementById('mainNav');
	if(oNav)
	{
		oLI = oNav.getElementsByTagName('LI');
		if(oLI)
		{
			l = oLI.length;
			for(j=0; j<l; j++)
			{
				oA = oLI[j].getElementsByTagName('A');
				if(oA)
				{
					k = oA.length;
					for(i=0; i<k; i++)
					{
						t = (oA[i].href + '').replace(/(http:\/\/[^\/]*)(.*)/i, '$2').toLowerCase();
						if((t == path) || ((t+'default.asp') == path))
						{
							oLI[j].id = 'current';
							oLI[j].className = oLI[j].className;
						}
					}
				}
			}
		}
	}

}