var thesaurusTBvar
function hideThesaurus()
{
	if(thesaurusTB.style.visibility=='visible')
	{
		thesaurusTBvar=thesaurusTB.innerHTML
		thesaurusTB.style.visibility='hidden'
		thesaurusTB.innerHTML=''
	}
 	else
	{
		thesaurusTB.innerHTML=thesaurusTBvar
		thesaurusTB.style.visibility='visible'
	}
 
}



function ShowAttach(ID)
{
DivID=eval("Attach" +ID)		
windowFeatures='width=314,height=144,resizable=yes,scrollbars=yes'
popupWindow=window.open("","NOTE",windowFeatures);	
	if( window.focus )												
	{														 	
		popupWindow.document.write(DivID.innerHTML)   
		popupWindow.focus();
	}	

}


function OpEnLink(NodeID)
{
 if(NodeID!="")		
 {
	if(top.frames.length)
	{
	 //top.TreeLoaded=false	
	 top.main.Tree.location="../Tree/Tree.asp?CID=" + NodeID 
	}
 }	
}




var DivContent
function DivSummaryFunc()
{
if(DivSmary.style.display=="block") 
	{
		
		DivSmary.style.display="none"
		SummaryImg.src="../images/down_menu.gif"
		sumcolor.bgColor ="#85B9CC"
	}
	else
	{
		DivSmary.style.display="block"
		SummaryImg.src="../images/up_MENU.gif"
		sumcolor.bgColor ="#89AFCD"
	}
}

function ShowInfo()
{

if(InfoDiv.style.display=="block") 
	{
		
		InfoDiv.style.display="none"
		InfoImg.src="../images/down_menu.gif"
		InfoTitle.bgColor ="#89AFCD"
	}
	else
	{
		InfoDiv.style.display="block"
		InfoImg.src="../images/up_MENU.gif"
		InfoTitle.bgColor ="#85B9CC"
	}
}



function SearchTH(ID,TBID)
{
	if(top.frames.length)
	{		
		top.CurrentView="THS_SEARCH"
		top.HideTree()
	}	
	var DocLinkToDisplay="../search/DB/TheSaurus.asp?ID=" + ID  + "&TBID=" + TBID
	document.location=DocLinkToDisplay
}



// script analytics
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21076304-2']);
_gaq.push(['_trackPageview']);

(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
