// JavaScript Document
//tree.js
//for tree style doc


function setVis(strPdiv)
{
	var strCdiv;
	var obj;

	strCdiv = strPdiv.substring(0,strPdiv.indexOf("_")) + "_c";
	obj = document.getElementById(strCdiv);
	obj.style.display == "none" ? obj.style.display = "" : obj.style.display = "none";
}

function init(evt)
{
	evt = evt ? evt : (window.event ? window.event : null);

	divCount = document.getElementsByTagName("div"); 
	for (i=0; i<divCount.length; i++)
	{ 
		obj = divCount[i]; 
		if (obj.className == "child")
			obj.style.display = "none";
	}
}

/**/
function openNew(strUrl)
{
	window.open(strUrl);
	return false;
}

function externallinks() 
{			
	if (!document.getElementsByTagName) return; 
 	var anchors = document.getElementsByTagName("a"); 
 	for (i=0; i<anchors.length; i++)
	{ 
   		var anchor = anchors[i]; 
   		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
			anchor.target = "_blank"; 
 	}
}