function menuPos()
{
	var ieWidth = document.body.clientWidth >= 776 ? document.body.clientWidth : 776;
	var baseLeft = (ieWidth - 965) / 2 + 98;
	baseLeft = baseLeft<93 ? 93 : baseLeft;
	var rightShadeWidth = 3;
	var limitRight = (ieWidth - 776) / 2 + 965 - 250;
	limitRight = limitRight<800 ? 800 : limitRight;
	j = 0;
    tempColl = document.all.tags("DIV");

    for (i=0; i<tempColl.length; i++) {
        if (tempColl(i).className == "menuLayer") {
			offset = 60 * j;
			rect = tempColl(i).getBoundingClientRect();
			width = rect.right - rect.left;

			if (baseLeft + offset + width + rightShadeWidth > limitRight) {
				extra = baseLeft + offset + width + rightShadeWidth - limitRight;
				offset -= extra;
				tempColl(i).style.pixelLeft = baseLeft + offset + rightShadeWidth;
				document.all['menuimg_' + (j + 1)].style.pixelLeft = extra - rightShadeWidth;
			}
			else {
				tempColl(i).style.pixelLeft = baseLeft + offset;
			}
			j++;
	    }
	}
	//IndexMenu.style.pixelLeft=(ieWidth - 965) / 2 ;
	//SiteStat.style.pixelLeft=(ieWidth - 965) / 2 ;
}

function enableMenu(id) {
	if (document.all['menu_' + id])
	{
		menuCloseAll();
		document.all['menu_' + id].style.visibility = 'visible';
		high(document.all['menu_' + id]);
	}
}

function menuCloseAll() {
    tempColl = document.all.tags("DIV");
    for (i=0; i<tempColl.length; i++) {
        if (tempColl(i).className == "menuLayer") {
			if (tempColl(i).style.visibility == 'visible') {
				low(tempColl(i));
				tempColl(i).style.visibility = 'hidden';
			}
	    }
        if (tempColl(i).className == "indexBanner") {
			tempColl(i).style.display = 'none';
		}
	}
}

function high(element)
{
	which2 = eval(element);
	highlighting = setInterval("highlightit(which2)", 10);
}

function low(element)
{
	which2 = eval(element);
	clearInterval(highlighting);
	which2.filters.alpha.opacity = 0;
}

function highlightit(element)
{
 cur2 = eval(element);
 if (cur2.filters.alpha.opacity < 100)
  cur2.filters.alpha.opacity += 5
 else if (window.highlighting)
  clearInterval(highlighting)
}

function lowlightit(element)
{
 cur2 = eval(element);
 if (cur2.filters.alpha.opacity > 0)
  cur2.filters.alpha.opacity -= 10
 else if (window.highlighting)
  clearInterval(highlighting)
}



