<!--
/*
style array
	0 : Title Font Color
	1 : Contents Font Color
	2 : Title Bg Color
	3 : Contents Bg Color
	4 : Title Bg Image
	5 : Contents Bg Image
	6 : Title Align
	7 : Contents Align
	8 : Pos
	9 : Layer Option
	10 : Table Width
	11 : Contents Table Height
	12 : Table Border
	13 : Table Padding
	14 : X Pos
	15 : Y Pos
*/

document.writeln('<DIV id="TipLayer" style="visibility:hidden;position:absolute;z-index:1000;top:-100"></DIV>');

var __userAgent = navigator.userAgent;
var __productSub = navigator.productSub;
var __dom = (document.getElementById) ? 1 : 0;
var __ie4 = (document.all && !__dom) ? 1 : 0;
var __ie5 = (document.all && __dom) ? 1 : 0;
var __ns4 =(navigator.appName.toLowerCase() == "netscape" && parseInt(navigator.appVersion) == 4);
var __ns6 = (__dom && !__ie5) ? 1 : 0;
var __Nav = (__ns4 || __ns6 || __ie4 || __ie5) ? 1 : 0;
var __count = 0, __space = 0, __move = 0, hs = "";
var __client_width, __client_height, __left, __top, __clip_height, __clip_width, __show, __hide, __visibility, __eval_height, __eval_width, tbody;
var __x, __y, __Offsetx, __Offsety;
var __obj;
var HideTip = "eval(__obj+__visibility+__hide+';'+__obj+__left+'=0;'+__obj+__top+'=-800')";
var __docRoot = ((__ie5 && __userAgent.indexOf("Opera") < 0 || __ie4) && document.compatMode=="CSS1Compat") ? "document.documentElement" : "document.body";
var __px = (__ns6) ? "px" : "";

if (__Nav)
{
	window.onresize = ReloadTip;
	document.onmousemove = MoveTip;
	if (__ns4) document.captureEvents(Event.MOUSEMOVE);
}

if(__ns4 || __ns6)
{
	__x = "e.pageX";
	__y = "e.pageY";
	__Offsetx = "window.pageXOffset";
	__Offsety = "window.pageYOffset" ;
	if (__ns4)
	{
		__obj = "document.TipLayer.";
		__left = "left";
        __top = "top";
		__clip_height = "clip.height";
		__clip_width = "clip.width";
		__show = "'show'";
		__hide = "'hide'";
		__visibility = "visibility=";
	}
	else __obj = "document.getElementById('TipLayer').";
}

if (__ie4 || __ie5)
{
	__obj = "TipLayer.";
	__x = "event.x";
	__y = "event.y";
	__Offsetx = "eval(__docRoot).scrollLeft";
	__Offsety = "eval(__docRoot).scrollTop";
	if (__ie5)
	{
		__x = __x + "+" + __Offsetx;
		__y = __y + "+" + __Offsety;
	}
}

if (__ie4 || __dom)
{
	__left = "style.left";
	__top = "style.top";
	__clip_height = "offsetHeight";
	__clip_width = "offsetWidth";
	__show = "'visible'";
	__hide = "'hidden'";
	__visibility = "style.visibility=";
}

if (__ie4 || __ie5 || __productSub >= 20020823)
{
	__client_width = "eval(__docRoot).clientWidth";
	__client_height = "eval(__docRoot).clientHeight";
}
else
{
	__client_width = "window.innerWidth";
	__client_height = "window.innerHeight";
	__eval_height = eval(__client_height);
	__eval_width = eval(__client_width);
	__space = 15;
}


function stm (__agr_text, __agr_style)
{
	if (__Nav)
	{
		if (__agr_text.length < 2 || __agr_style.length < 16)
		{
			var __error_msg = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n";
			if (__agr_text.length < 2 && __agr_style.length < 16) alert(__error_msg + "It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 16 entries in every Style Array even though empty and 2 in every Text Array. You defined only " + __agr_style.length + " entries in the Style Array and " + __agr_text.length + " entry in the Text Array. This tip won't be viewed to avoid errors");
			else if (__agr_text.length < 2) alert(__error_msg + "It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only " + __agr_text.length + " entry. This tip won't be viewed to avoid errors.");
			else if (__agr_style.length < 16) alert(__error_msg + "It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 16 entries in every Style Array even though empty. You defined only " + __agr_style.length + " entries. This tip won't be viewed to avoid errors.");
		}
		else
		{
			var ab = "";
			var ap = "";
			var titCol = (__agr_style[0]) ? "color='" + __agr_style[0] + "'" : "";
			var txtCol = (__agr_style[1]) ? "color='" + __agr_style[1] + "'" : "";
			var titBgCol = (__agr_style[2]) ? "bgcolor='" + __agr_style[2] + "'" : "";
			var txtBgCol = (__agr_style[3]) ? "bgcolor='" + __agr_style[3] + "'" : "";
			var titBgImg = (__agr_style[4]) ? "background='" + __agr_style[4] + "'" : "";
			var txtBgImg = (__agr_style[5])? "background='" + __agr_style[5] + "'" : "";
			var titTxtAli = (__agr_style[6] && __agr_style[6].toLowerCase() != "left") ? "align='" + __agr_style[6] + "'" : "";
			var txtTxtAli = (__agr_style[7] && __agr_style[7].toLowerCase() != "left") ? "align='" + __agr_style[7] + "'" : "";
			var add_height = (__agr_style[11]) ? "height='" + __agr_style[11] + "'" : "";
			if (!__agr_style[10]) __agr_style[10] = 200;
			if (!__agr_style[12]) __agr_style[12] = 0;
			if (!__agr_style[13]) __agr_style[13] = 0;
			if (!__agr_style[14]) __agr_style[14] = 10;
			if (!__agr_style[15]) __agr_style[15] = 10;
			hs = __agr_style[9].toLowerCase();
			if (__productSub == 20001108)
			{
				if (__agr_style[2]) ab = "style='border:" + __agr_style[12] + "px solid" + " " + __agr_style[2] + "'";
				ap = "style='padding:" + __agr_style[13] + "px " + __agr_style[13] + "px " + __agr_style[13] + "px " + __agr_style[13] + "px'"
			}

			var closeLink = (hs == "sticky") ? "<td align='right'><a href='javascript:void(0)' onclick='stickyhide()' style='text-decoration:none;color:" + __agr_style[0] + "'><b>Close</b></a></td>" : "";
			var title = (__agr_text[0] || hs == "sticky") ? "<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td " + titTxtAli + " style='padding-left:5px;'><font " + titCol + " style='font-family:Arial;font-size:9pt;letter-spacing:-1px;'><b>" + __agr_text[0] + "</b></font></td>" + closeLink + "</tr></table>" : "";
			var txt = "<table " + titBgImg + " " + ab + " width='" + __agr_style[10] + "' border='0' cellpadding='" + __agr_style[12] + "' cellspacing='0' " + titBgCol + " ><tr><td>" + title + "<table width='100%' " + add_height + " border='0' cellpadding='" + __agr_style[13] + "' cellspacing='0' " + txtBgCol + " " + txtBgImg + "><tr><td " + txtTxtAli + " " + ap + " valign='top'><font " + txtCol + " style='font-family:Arial;font-size:9pt;letter-spacing:-1px;'>" + __agr_text[1] + "</font></td></tr></table></td></tr></table>";

			if (__ns4)
			{
				with (eval(__obj + "document"))
				{
					open();
					write(txt);
					close();
				}
			}
			else eval(__obj + "innerHTML=txt");

			tbody = {
				Pos:__agr_style[8].toLowerCase(),
				Xpos:__agr_style[14],
				Ypos:__agr_style[15],
				Width:parseInt(eval(__obj + __clip_width) + 3 + __space)
			}

			if (__ie4)
			{
				TipLayer.style.width = __agr_style[10];
				tbody.Width = __agr_style[10];
			}
			__count = 0;
			__move=1;
		}
	}
}

function MoveTip(e)
{
	if(__move)
	{
		var X, Y, MouseX = eval(__x), MouseY = eval(__y);
		tbody.Height = parseInt(eval(__obj + __clip_height) + 3);
		tbody.wiw = parseInt(eval(__client_width + "+" + __Offsetx));
		tbody.wih = parseInt(eval(__client_height + "+" + __Offsety));
        switch(tbody.Pos)
		{
			case "left" :
				X = MouseX - tbody.Width - tbody.Xpos;
				Y = MouseY+tbody.Ypos;
				break;
            case "center" :
				X = MouseX - (tbody.Width / 2);
				Y = MouseY + tbody.Ypos;
				break;
            case "float" :
				X = tbody.Xpos + eval(__Offsetx);
				Y = tbody.Ypos + eval(__Offsety);
				break;
            case "fixed" :
				X = tbody.Xpos;
				Y = tbody.Ypos;
				break;
            default :
				X = MouseX + tbody.Xpos;
				Y = MouseY + tbody.Ypos;
		}

		if (tbody.wiw < tbody.Width + X) X = tbody.wiw - tbody.Width;
		if (tbody.wih < tbody.Height + Y + __space)
		{
			if (tbody.Pos == "float" || tbody.Pos == "fixed") Y = tbody.wih - tbody.Height - __space;
			else Y = MouseY - tbody.Height;
		}

		if (X < 0) X = 0 ;
		eval(__obj + __left + "= X +__px;" + __obj + __top + " = Y + __px;");
        ViewTip();
	}
}

function ViewTip()
{
	__count ++;
	if (__count == 1)
	{
		eval(__obj + __visibility + __show);
		if (hs == "sticky") __move = 0;
	}
}

function stickyhide()
{
	eval(HideTip);
}

function ReloadTip()
{
	if(__ns4 && (__eval_width != eval(__client_width) || __eval_height != eval(__client_height))) location.reload();
	else if (hs == "sticky") eval(HideTip);
}

function htm()
{
	if(__Nav)
	{
		if(hs != "keep")
		{
			__move = 0;
			if(hs != "sticky") eval(HideTip);
		}
	}
}
//-->