var new_ie = false;var bExpand = false;var new_ie = false;function Init() {	WhichBrowser();	if (!new_ie)		document.getElementById('todclock').innerHTML = '<applet code="clock.class" codebase="clock/" width=114 height=114 name="clock" align=right style="margin-right: 20px"><param name="bgcolor" value="3a6ea5"></applet>';	document.getElementById('todclock').style.visibility = 'visible';	var iecal = document.getElementById('ie_cal');	iecal.innerHTML = Cal();	iecal.style.visibility = 'visible';	ShowTime();	window.setInterval("ShowTime()", 1000);}function WhichBrowser() {	var agt = navigator.userAgent.toUpperCase();	var nap = navigator.appName.toUpperCase();	var i = agt.search('MSIE');	if (i != -1) {		var v = parseInt(agt.substring(i + 5, i + 6));		if (v > 4)			new_ie = true;	}	if (agt.search('OPERA') != -1)		new_ie = false;	if (nap.search('MOZILLA') != -1)		new_ie = false;}function ShowTime() {	var td = new Date();	document.getElementById('tod').innerHTML = td.toLocaleString();	if (new_ie) {		secs.style.rotation = td.getSeconds() * 6;		mins.style.rotation = td.getMinutes() * 6;		hrs.style.rotation = td.getHours() * 30  + parseInt(td.getMinutes() / 12) * 6;	}}function SendEmail() {	var a = "ldbceffG!fhbQ13&cfX>udfkcvT@?npd/ppibzAldjotvbsll=ldjotvbsL!ojwfL;pumjbn";	var b = "";	for (i = a.length; i; i--)		b += String.fromCharCode(a.charCodeAt(i - 1) - 1);	window.location = b;}function last_mod() {	var strDate = document.lastModified;	var arrDate = strDate.split(' ');	var dtDate = Date.parse(strDate);	if (dtDate != 0)		document.getElementById('lm').innerHTML =		navigator.appName == "Microsoft Internet Explorer" ?		'Last modified: ' + arrDate[0] :		'Last modified: ' + strDate;}function Toggle(item) {	obj=document.getElementById(item);	visible=(obj.style.display!="none");	key=document.getElementById("x-" + item);	if (visible) {		obj.style.display="none";		key.innerHTML="[+]";	} else {		obj.style.display="block";		key.innerHTML="[-]";	}}function ToggleAll(){	var divs = document.getElementsByTagName("DIV");	for (i = 0; i < divs.length; i++)	{		if (bExpand)		{			divs[i].style.display = "none";			document.getElementById("x-" + divs[i].id).innerHTML = "[+]";			document.getElementById("treetrunk").innerHTML = "Expand All";		}		else		{			divs[i].style.display = "block";			document.getElementById("x-" + divs[i].id).innerHTML = "[-]";			document.getElementById("treetrunk").innerHTML = "Collapse All";		}	}	bExpand = !bExpand;}function FindInPage(str){	if (str.length > 0)	{		bExpand = false;		var first = 1;		var divs = document.getElementsByTagName("DIV");		for (i = 0; i < divs.length; i++)		{			divtext = document.getElementById(divs[i].id).innerText.toLowerCase();			if (divtext.search(str.toLowerCase()) > -1)			{				divs[i].style.display = "block";				document.getElementById("x-" + divs[i].id).innerHTML = "[-]";				bExpand = true;				var TR = document.body.createTextRange();				TR.execCommand("SelectAll");				TR.execCommand("RemoveFormat");				TR.execCommand("Unselect");;				for (TR.collapse(true); TR.findText(str, 9999999, 2); TR.collapse(false))				{					TR.execCommand( "BackColor", "", "yellow");					TR.execCommand( "ForeColor", "", "black");					if (first)					{						TR.scrollIntoView();						first = 0;					}				}			}			else			{				divs[i].style.display = "none";				document.getElementById("x-" + divs[i].id).innerHTML = "[+]";			}		}		if (bExpand)			document.getElementById("treetrunk").innerHTML = "Collapse All";		else		{			document.getElementById("treetrunk").innerHTML = "Expand All";			alert('Text not found.');		}	}	else if (bExpand)		ToggleAll();	return false;}
