function subnav(e, subnavmenu)
{
}
function subnav2(e, subnavmenu) {
	if(e) {
		navrollover(e);
	}
			
	var subnavelement = document.getElementById("subnav");	
	subnavelement.innerHTML = "";
	
	if(subnavmenu != null) {
		var itemwidth = Math.floor(469 / subnavmenu.length) * 2;
		for(i=0; i<subnavmenu.length; i+=2) {
			var button = document.createElement('a');
			button.className = "subnavbutton";
			button.style.width = itemwidth+"px";
			button.href = subnavmenu[i+1]
			button.innerHTML = subnavmenu[i];
			subnavelement.appendChild(button);
		}
	}	
}

function navrollover(e) {
	return;
	var subnavelement = document.getElementById("subnav");
	e.style.backgroundPosition = "0px 29px";
	var curnav = document.getElementById("currentnav");
	if(e != curnav)
		curnav.style.backgroundPosition = "0px 0px";
}

function navrolloff(e) {
	return;
	e.style.backgroundPosition = "0px 0px";
	var curnav = document.getElementById("currentnav");
	curnav.style.backgroundPosition = "0px 29px";
	//subnav(null, curmenu);
}

function BodyLoad() {
	if(document.LocalBody) {
		document.LocalBody();
	}
	g_Init();
		
	//populate news image pop-up events
	for(i = 0; i < document.images.length; i++)
	{
		image = document.images[i];
		if(image.parentNode.className == "news-post" && image.width >= 693)
		{
			image.style.cursor = "pointer";
			image.alt = "Click to view full image";
			image.onclick = function() { window.open(this.src, this.name) };
		}
	}
	
}