var currentNav = '';
var secids = new Object();
var ctwidth = 0;
var navbar = "";
function hoverNav(newNav)
{
	
	if(currentNav!='')
	{
		$(currentNav).hide();
		$(currentNav+'tab').writeAttribute('className', 'navTab');	//For IE
		$(currentNav+'tab').style.marginLeft = marginsz+'px';
		$(currentNav+'tab').style.marginRight = marginsz+'px';
		

	}
	
	$(newNav).show();
	$(newNav+'tab').writeAttribute('className', 'navTabHover');		//For IE
	
	$(newNav+'tab').style.marginLeft = (marginsz -1)+'px';
	$(newNav+'tab').style.marginRight = (marginsz -1)+'px';
	
	newNavLeft = $(newNav+'tab').offsetLeft;
	
	if((newNavLeft - parentLeft) < (parentWidth/3))
		$(newNav).style.textAlign = 'left';
	else if((newNavLeft - parentLeft) > (parentWidth/3*2))
		$(newNav).style.textAlign = 'right';
			
	currentNav = newNav;
}
function sectionMore(section)
{

	navbar = 'nav'+section;
	
	i = 0;
	while(thea = $(navbar).getElementsByTagName('a')[i++]){
		
		ctwidth = thea.offsetWidth + ctwidth;
		if((ctwidth + 75) >= ovwidth){
			thea.style.display = 'none';
			$('jump'+section).style.display = 'inline';
		} 				
	}
	
	// IE6 Hack
	if(IE && $(navbar).getElementsByTagName('a').length < 3)
		$('ieph'+section).style.display = 'inline';

	$(navbar).style.display = 'none';
	ctwidth = 0;
}
