function doMouseOver1(item)
{
	item.style.background="#FFFFFF";
	item.style.border="1px solid #C2D9E6";
}

function doMouseOut1(item)
{
	item.style.background="#DEEFF8";
	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'; 
	}
}


function swapcolor1 (block) {
		block.style.background='#F2F9F2';
		block.style.border='1px solid #B3E2B2';
		block.style.color='#328C0E';
}
function swapcolor2 (block) {
		block.style.background='#F9F4F2';
		block.style.border='1px solid #E2D0B2';
		block.style.color='#8C620E';
}
