
function SetupPage(PageName){
	//verify browser version supports stylesheets
/*	if((int) navigator.appVersion.substring(0,1) < 4){
		return;
	}
*/
	var Len;
	Len = PageName.length;

	for(i=0;i<Len;i++){
		ShowNav(PageName[i]);
	}		
	HighlightCurrent(LinkName);
}
function ShowNav(Name){
	var obj;
	if(document.all){
		obj = document.all
	}else{
		obj = document;
	}
	if(!obj[Name]) return;
	obj[Name].style.display='block';
	obj['a'+Name].style.color='#FF0000';
}
function HighlightCurrent(Name){
	var obj;
	if(document.all){
		obj = document.all
	}else{
		obj = document;
	}
	if(!obj[Name])return;
	obj[Name].style.color='#FF0000';
}
function LeftNavActive(Level, o){
		o.parentNode.style.backgroundColor='#C1CCD5';
}
function LeftNavInactive(Level, o){
		o.parentNode.style.backgroundColor='transparent';
}

function showIt(Name){
	var obj;
	if(document.all){
		obj = document.all
	}else{
		obj = document;
	}
	if(obj[Name].style.display=='none'){
		obj[Name].style.display='block';	
	}
}

function hideIt(Name){
	var obj;
	if(document.all){
		obj = document.all
	}else{
		obj = document;
	}
	if(obj[Name].style.display=='block'){
		obj[Name].style.display='none';	
	}
}

/*function showGlossary(Term, Activator){
	var obj = document.all['Glossary'];
	var anchr = document.all[Term];

	obj.style.left = Activator.offsetLeft + Activator.offsetParent.offsetLeft + Activator.offsetWidth+ 5;
//	obj.style.left = Activator.offsetLeft + Activator.offsetParent.offsetLeft -205;
	obj.style.top = Activator.offsetTop + Activator.offsetParent.offsetTop;

	obj.style.visibility = 'visible';
	obj.all['GlossaryContent'].scrollTop=anchr.offsetTop;
	
}*/

function changeLoc(NewLocation){
	document.location = NewLocation;
}

function searchHelp(){
	var Wnd = window.open('./search_help.shtml','Search_Help','width=300,height=300,toolbar=no,resizable=no,titlebar=no,menubar=no');
	Wnd.focus();
}

function popUp(href){
	var Wnd = window.open(href, 'Help', 'width=575,height=375,toolbar=no,resizable=no,titlebar=no,menubar=no,Scrollbars=yes');
	Wnd.focus();
}

