//

// main page

function findPosX2(obj){var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}else if(obj.x)curleft+=obj.x;return curleft;} function findPosY2(obj){var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}else if(obj.y)curtop+=obj.y;return curtop;}
function menuhlt1(this1, txt, mrg) { this1.style.marginTop='4px'; this1.style.marginBottom='0px'; document.getElementById('menuHlt').textContent=document.getElementById('menuHlt').innerText=txt; document.getElementById('menuHlt').style.left=findPosX2(this1)+'px'; document.getElementById('menuHlt').style.top=(findPosY2(this1)-22)+'px'; document.getElementById('menuHlt').style.visibility='visible'; };
function menuhlt2(this1) { this1.style.marginTop=0; this1.style.marginBottom='4px'; document.getElementById('menuHlt').style.visibility='hidden'; };


// Email
function maillink(lhs,rhs)
	{
	document.write("<A HREF=\"mailto");
	document.write(":" + lhs + "@");
	document.write(rhs + "\">" + lhs + "@" + rhs + "<\/a>");
}
function mailtext(lhs,rhs)
	{
	document.write("<A HREF=\"mailto");
	document.write(":" + lhs + "@");
	document.write(rhs + "\" class=text>" + lhs + "@" + rhs + "<\/a>");
}
function mailgray1(lhs,rhs)
	{
	document.write("<A HREF=\"mailto");
	document.write(":" + lhs + "@");
	document.write(rhs + "\" class=gray1>" + lhs + "@" + rhs + "<\/a>");
}
function proceed(by)
	{
	BY = /^(.+)\*(.+)$/;
	var launch = by.replace(BY,"mailto:$1@$2");
	window.location = launch;
}
//hide menu
function show( id )
	{
	document.getElementById(id).style.display = 'block';
}
function hide( id )
	{
	document.getElementById(id).style.display = 'none';
}
// Pop Up window with any url
	function popUp(url)
	{
	window.open(url,'pop','width=700,height=700,status=yes,resizable=yes,scrollbars=yes,top=40,left=50');
}
//-->