function showtip (v, sec_param, this_handler, e) 
{
	if (document.all) // check for IE4+ DOM and W3C DOM added by rijas 
	{
		var sw = document.body.clientWidth;
		var sh = document.body.clientHeight;
		var dw = document.all[v].clientWidth;
		var dh = document.all[v].clientHeight;
		var cx = self.event.clientX;
		var cy = self.event.clientY;
		if (sw < cx+dw+10) cx=sw-dw-10;
		if (sh < cy+dh+10) cy=sh-dh-10;
		document.all[v].style.top=cy+document.body.scrollTop+5;
		document.all[v].style.left=cx+document.body.scrollLeft+5;
		document.all[v].style.visibility='visible';
	}
    else //else firefox part added by rijas
    {
        var sw = document.body.clientWidth;
        var sh = document.body.clientHeight;
        var dw = document.getElementById(v).clientWidth;
        var dh = document.getElementById(v).clientHeight;
        var cx = e.clientX;
        var cy = e.clientY;
        if (sw < cx+dw+10) cx=sw-dw-10;
        if (sh < cy+dh+10) cy=sh-dh-10;
        document.getElementById(v).style.top=cy+document.body.scrollTop+5;
        document.getElementById(v).style.left=cx+document.body.scrollLeft+5;
        document.getElementById(v).style.visibility='visible';
    }
	
	if (sec_param)
	{
		this_handler.href = sec_param;
	}
	
}
function hidetip (v) 
{
	if (document.all) //Check Ie
	{
		document.all[v].style.visibility='hidden';
	}
    else //else firefox part added by rijas
    {
        document.getElementById(v).style.visibility='hidden';
    }
}
function tvirch (url) 
{
	w = screen.width*0.6; h = screen.height-100;
	t = (screen.height-h)/3; l = screen.width-w-32;
	wd = window.open (url, 'tvirch', 'location=no,scrollbars=yes,status=no,menubar=no,resizable=yes,top='+t+',left='+l+',width='+w+',height=100');
	wd.resizeTo(w+12,100);
	for (i=0; i<h-100; i+=10) wd.resizeBy(0,10);
	wd.focus();
	return false;
}

function findPosX(obj)
{
var curleft = 0;
if(obj.offsetParent)
    while(1) 
    {
      curleft += obj.offsetLeft;
      if(!obj.offsetParent)
        break;
      obj = obj.offsetParent;
    }
else if(obj.x)
    curleft += obj.x;
return curleft;
}

function findPosY(obj)
{
var curtop = 0;
if(obj.offsetParent)
    while(1)
    {
      curtop += obj.offsetTop;
      if(!obj.offsetParent)
        break;
      obj = obj.offsetParent;
    }
else if(obj.y)
    curtop += obj.y;
return curtop;
}

