// Javascript to Flash object		
function getElement(id)
{
	  if (window.document[id]) 
	  {
		  return window.document[id];
	  }
	  if (navigator.appName.indexOf("Microsoft Internet")==-1)
	  {
		if (document.embeds && document.embeds[id])
		  return document.embeds[id]; 
	  }
	  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
	  {
		return document.getElementById(id);
	  }
}

function changeSubNav(navId, navCol, section)
{	 
	var flashMovie = getElement("flashNav");
	
	if(flashMovie != null)
	{
		var navSection = section.split("_");
		if(getCurrentSection() != navSection[0])
		{	
			flashMovie.TGotoLabel("/", navSection[0]);
		}		
		flashMovie.SetVariable("navDown", navId);	
		flashMovie.SetVariable("navColour", navCol);
	}
	loadMainFrame(section);	
}

function changeNavSection(section, subSection)
{
	var flashMovie = getElement("flashNav");
	if(flashMovie != null)
	{	
		if(subSection) flashMovie.TGotoLabel("/", subSection); 
		else flashMovie.TGotoLabel("/", section);
	}
	loadMainFrame(section);
}
