
function doMouseOver1(item)
{
	item.style.background="#065989";
	//item.style.border="1px solid #8CB7D0";
}

function doMouseOut1(item)
{
	item.style.background="#1C8AC1";
	//item.style.border="1px solid #DEEFF8";
}

function confirmChange(dMsg, lURL)
{
	if(confirm(dMsg))
	{
		document.location.href=lURL;
	}
}

function swapImage (IdElement, ImagePath)
{
	document.getElementById(IdElement).src=ImagePath;
}

image5 = new Image();
image5.src = "/images/go-green-down.gif";


function Left(elem) {
	var x=-1;
	while(elem){
		x+=elem.offsetLeft;
		elem=elem.offsetParent;
	} return x;
	}

function Top(elem){
	var x=-1;
	while(elem){		
		x+=elem.offsetTop;
			elem=elem.offsetParent;
 	} return x;
}

var tstr,srcElem,toElem;

function hide(e,id) {			
		srcElem=e.target?e.target:e.srcElement;//e?e.target:event.srcElement;
		toElem=e.relatedTarget?e.relatedTarget:e.toElement;//e?e.currentTarget:event.toElement;
		tstr=srcElem.id.replace('tx_','');
		//alert(this.id+':'+id);
		//if (event.toElement.id!='dropdown')
		if((tstr==id.replace('tx_','').substring(0,tstr.length)) ||(toElem.id.substring(0,4)!='menu'))
	
			if (document.getElementById(id)) {
				//alert('hide');
				document.getElementById(id).style.visibility='hidden';				
			}
				
}


function show(id) {
	if (document.getElementById(id)) {
		document.getElementById(id).style.visibility='visible';
		//alert(id);
	}
}	

function showXY(callingItem,id,isRoot) {
	if (document.getElementById(id)&&(document.getElementById(id).style.visibility!='visible')) {
		if (!isRoot) {
			document.getElementById(id).style.top=(callingItem.substr(callingItem.lastIndexOf('_')+1,callingItem.length)-1)*document.getElementById(callingItem).offsetHeight + 2;
			document.getElementById(id).style.left=document.getElementById(callingItem).offsetWidth - 7;
		}
		else {
			document.getElementById(id).style.top=Top(document.getElementById(callingItem))+document.getElementById(callingItem).offsetHeight-2;
			document.getElementById(id).style.left=Left(document.getElementById(callingItem));
		}
			
		document.getElementById(id).style.visibility='visible'; 
	}
}

//EMAIL ENCRYPTION:
// <!--
// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/email/ 
function lay(absorption,grandfather,agriculture) {
	absorption += ' ';
	var friendship = absorption.length;
	var astonishment = 0;
	var authenticity = '';
	for(var punishment = 0; punishment < friendship; punishment++) {
	astonishment = 0;
	while(absorption.charCodeAt(punishment) != 32) {
	astonishment = astonishment * 10;
	astonishment = astonishment + absorption.charCodeAt(punishment)-48;
	punishment++;
	}
	authenticity += String.fromCharCode(spend(astonishment,grandfather,agriculture));
	}
	parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+authenticity;
	}

	function saw(science,square,debate) {
	science += ' ';
	var difference = science.length;
	var hello = 0;
	for(var equipment = 0; equipment < difference; equipment++) {
	hello = 0;
	while(science.charCodeAt(equipment) != 32) {
	hello = hello * 10;
	hello = hello + science.charCodeAt(equipment)-48;
	equipment++;
	}
	//document.write('&');
	//document.write('#');
	//document.write(spend(hello,square,debate));
	document.write(String.fromCharCode(spend(hello,square,debate)));
	}
	}

	function spend(experiment,family,flore) {
	if (flore % 2 == 0) {
	hypothesis = 1;
	for(var same = 1; same <= flore/2; same++) {
	member = (experiment*experiment) % family;
	hypothesis = (member*hypothesis) % family;
	}
	} else {
	hypothesis = experiment;
	for(var computer = 1; computer <= flore/2; computer++) {
	member = (experiment*experiment) % family;
	hypothesis = (member*hypothesis) % family;
	}
	}
	return hypothesis;
}
// -->
