<!--
/*
Extension developed by David G. Miles (www.z3roadster.net/dreamweaver)
To add more shock to your site, visit www.DHTML Shock.com

Mods for NS6+ by hav0x
To add more nothingness to your life, visit www.havocware.com
*/
        var isNS4, isIE, isIE5up, isNS6up
        isNS4 = (document.layers)? true:false
        isIE = (document.all)? true:false
        isIE5up=(navigator.appName=="Microsoft Internet Explorer" &&
		 parseFloat(navigator.appVersion)>=5)?true:false
        isNS6up=(navigator.appName=="Netscape" &&
		 parseFloat(navigator.appVersion)>=5)?true:false

function locateObject(n, d)
{ //v3.0
	var p,i,x;
	if(!d) d=document;
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}

	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++)
		x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=locateObject(n,d.layers[i].document);
		return x;
}

function hideTooltip()
{
	if (isIE||isIE5up||isNS6up)
	{
		locateObject('Tip').style.visibility="hidden"
		locateObject('Tip').style.left = 1;
		locateObject('Tip').style.top = 1;
		return false
	}
	else if (isNS4)
	{
		locateObject('Tip').visibility="hide"
		locateObject('Tip').left = 1;
		locateObject('Tip').top = 1;
		return false
	}
	else
	return true
}

function showTooltip(e, tipContent)
{
	table_width = tipContent.length;

	if (table_width < 50)
	{
		table_width=97;
	}

	if (table_width > 400)
	{
		table_width=397;
	}


	if (isIE||isIE5up||isNS6up)
	{
		locateObject('Tip').style.top=document.body.scrollTop+event.clientY+20
			
		locateObject('Tip').innerHTML='<table width='+table_width+' cellspacing=0 cellpadding=0 bgcolor=cccccc border=0><tr><td colspan=2 rowspan=2 align=center bgcolor=000000><table width=100% border=0 cellspacing=1 cellpadding=6><tr><td class="tiptd">'+unescape(tipContent)+'</td></tr></table></td><td width=3 height=3 valign=top><img src="/ALS/js/dot_f.gif" width=3 height=3></td></tr><tr><td width=3 bgcolor=cccccc><img src="/ALS/js/dot_t.gif" width=3 height=3></td></tr><tr bgcolor=cccccc><td width=3 bgcolor=fffffff><img src="/ALS/js/dot_t.gif" width=3 height=3></td><td width='+table_width+'><img src="/ALS/js/dot_t.gif" width='+table_width+' height=3></td><td width=3 height=3><img src="/ALS/js/dot_t.gif" width=3 height=3></td></tr></table>'

		if ((e.x + locateObject('Tip').clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
		{	
			locateObject('Tip').style.left = (document.body.clientWidth + document.body.scrollLeft) - locateObject('Tip').clientWidth-10;
		}

		else
		{
			locateObject('Tip').style.left=document.body.scrollLeft+event.clientX
		}

		locateObject('Tip').style.visibility="visible"
	}

	else if (isNS4)
	{
		locateObject('Tip').document.write('<table width='+table_width+' cellspacing=0 cellpadding=0 bgcolor=cccccc border=0><tr><td colspan=2 rowspan=2 align=center bgcolor=000000><table width=100% border=0 cellspacing=1 cellpadding=6><tr><td class="tiptd">'+tipContent+'</td></tr></table></td><td width=3 height=3 valign=top><img src="/ALS/js/dot_f.gif" width=3 height=3></td></tr><tr><td width=3 bgcolor=cccccc><img src="/ALS/js/dot_t.gif" width=3 height=3></td></tr><tr bgcolor=cccccc><td width=3 bgcolor=fffffff><img src="/ALS/js/dot_t.gif" width=3 height=3></td><td width='+table_width+'><img src="/ALS/js/dot_t.gif" width='+table_width+' height=3></td><td width=3 height=3><img src="/ALS/js/dot_t.gif" width=3 height=3></td></tr></table>')
		locateObject('Tip').document.close()
		locateObject('Tip').top=e.y+20

		if ((e.x + locateObject('Tip').clip.width) > (window.pageXOffset + window.innerWidth))
		{
			locateObject('Tip').left = window.innerWidth - locateObject('Tip').clip.width-30;
		}

		else
		{
			locateObject('Tip').left=e.x;
		}

		locateObject('Tip').visibility="show"
	}

	else
	{
		return true
	}
}
//-->








