
var IE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0; 
var NS = (navigator.appName == "Netscape") ? 1 : 0; 
var hideMenu = null; 
var tester = null;

function doTransfer(sUrl)
{
	window.location.href = sUrl;
}

function Hide(div)
{ 
if(IE)eval('document.all.'+div+'.style.visibility="hidden"'); 
if(NS)
{
eval('document.getElementById(\''+div+'\').style.visibility="hidden"'); 
}
} 

function Show(div,cellId)
{
clearTimeout(hideMenu); 
hideAll();
if(IE) 
{

var pos = getXYcoord( document.all[cellId]);
eval('document.all.'+div+'.style.left='+(pos.x)); 
eval('document.all.'+div+'.style.top='+(pos.y+24)); 
eval('document.all.'+div+'.style.visibility="visible"'); 
}
if(NS) 
{
var pos = getXYcoord(document.getElementById(cellId));

eval('document.getElementById(\''+div+'\').style.left='+(pos.x+15)); 
eval('document.getElementById(\''+div+'\').style.top='+(pos.y+24)); 

s = 'navShow(\''+div+'\');';
setTimeout(s,50);

}
} 

function navShow(div)
{
	eval('document.getElementById(\''+div+'\').style.visibility="visible\"');
}

function getXYcoord ( elm ) {
   
   var rd = { x:0 ,y:0 };
   do { rd.x += parseInt( elm.offsetLeft );
        rd.y += parseInt( elm.offsetTop );
        elm = elm.offsetParent;
   } while ( elm );

   return rd
}; //end getXYcoord ( string ) -> object{x,y}

//MenuMouseOver 
function Reseter() 
{ 
clearTimeout(hideMenu); 
} 
function Closer() 
{ 
hideMenu=setTimeout('hideAll()',300) 
} 

function hideAll()
{ 
Hide('DIV_HOME');
Hide('DIV_PROPERTY');
Hide('DIV_INDEMNITY');
Hide('DIV_FINANCIAL');
}