	var ttst = 1; 		//Comment: Sticky? 
	var ttox = 10; 		//Comment: OffsetX 
	var ttoy = 15; 		//Comment: OffsetY 
	var ttw = 225; 		//Comment: Width 
	var ttfx = -1; 		//Comment: fixedX 
	var ttfy = -1; 		//Comment: fixedX 
	var ttvp = 35; 		//Comment: Vertical Pos 
	var tthp = 36;		//Comment: Horizontal Pos 
	var ttah = 20; 		//Comment: aboveheight 
	var ttf = self;		//Comment: Frame 
	var ttam = 0; 		//Comment: AllowMove
	var tthauto = 1;	//comment: auto horizontal placement
	var ttvauto = 1; 	//comment: auto vertical placement
	var ttdl = 0; //Comment: delay timer
	//Comment: Display state variables 
	var ttx = 0;
	var tty = 0;
	//Comment: Our layer 
	var ttlyr = null;
	//Comment: constants 
	var ttLEFT = 7;
	var ttRIGHT = 8;
	//Comment: Decide browser version 
	var ie4 = 0;
	var ie5 = 0;
	var ie6 = 0;
	var ns4 = 0;
	var ns6 = 0;
	
	var tttitle = '';
	var tttext = '';
	
	function LoadDiv()
	{
		if (ns4 == 1)
		{
			if (typeof document.ttDiv == 'undefined')
			{
				ttlyr = new Layer(ttw);
				ttlyr.id = 'ttDiv';
				ttlyr.name = 'ttDiv';
				//ttlyr.style.visibility = 'hidden';
				//ttlyr.style.position = 'absolute';
				//ttlyr.style.zIndex  = '99';
			}
		}
		else
		{
			if(document.getElementById('ttDiv') == null)
			{
				ttlyr = document.createElement('div');
				ttlyr.id = 'ttDiv';
				ttlyr.style.visibility = 'hidden';
				ttlyr.style.position = 'absolute';
				ttlyr.style.zIndex  = 99;
				document.body.appendChild(ttlyr);
			}
		}
	}
	
	function HideTT(e)
	{
		HTT();
	}
	

	function TT() 
	{
		LoadDiv();
		//Comment: Special for frame support, tooltip must be reset...
		//if (ns4 == 1)
		//	{ttlyr = ttf.document.ttDiv;}
		if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1))
			{ttlyr = ttf.ttDiv.style;}
		else if (ns6 == 1)
			{ttlyr = ttf.document.getElementById('ttDiv');}
		ttdl = setTimeout('TTD()',100);
		return true;
	}
	

	//Comment: hide popup if appropriate 
	function HTT() 
	{
		//if ((ns4 == 1) || (ie4 == 1) || (ie5 == 1)  || (ie6 == 1) || (ns6 == 1))
		//	{ttam = 0;}
		//if (ttlyr != null && !ttst) 
		if (ttlyr != null) 
			{TTHO(ttlyr);}
		return true;
	}	
		
	//Comment: This function decides what it is we want to display and how we want it done. 
	function TTD() 
	{
		//Comment: Make layer content 

		var l;
		l = g_content_simple(tttitle, tttext);

		if (ttst) {
			ttst == 1;
		}
		TTLW(l);
		//Comment: When placing the layer the first time, even stickies may be moved. 
		ttam = 0;
		//Comment: Show layer 
		DISPTT();
		//Comment: Stickies should stay where they are.	 
		if (ttst) {
			ttam = 0;
			return false;
		} else {
			return true;
		}
	}
	

	//Comment: Makes simple popup table  
	function g_content_simple(tl, t) 
	{
		var ttCB = '';
		if (ttst == 1)
		{
			ttCB = '<tr><td colspan=3><table border=0 cellpadding=0 cellspacing=0 width="100%">'
					+ '<tr><td width=5><img src="/eta/spaceit.gif" width=5 height=1></td><td align="right" style="padding-top:5px;border-top:1px solid #666666;">'
					+ '<table border=0 cellpadding=0 cellspacing=0><tr><td><img src="/eta/btn_sec_small.gif" hspace="3"></td>'
					+ '<td><a href="javascript://" onclick="cClick();return false;event.cancelBubble=true;" style="font-size:11px;font-family:Arial;font-weight:bold;color:#333399;">Fermer</a></td>'
					+ '</tr></table></td><td width=5><img src="/eta/spaceit.gif" width=5 height=1></td></tr></table></td></tr>'
		}
		txt = '<table cellpadding="0" cellspacing="0" border="0" width=' + ttw + '><tr><td><table border=0 cellpadding=0 cellspacing=0 width="100%"><tr>'
			+ '<td width=7 valign="top"><img src="/eta/tip_topLeft.gif" width=7 height=20></td>'
			+ '<td width=5 bgcolor="#666666"><img src="/eta/spaceit.gif" width=5 height=1></td>'
			+ '<td width=13 bgcolor="#666666"><img src="/daily/common/images/tip_icon.gif" width=13 height=12></td>'
			+ '<td width=5 bgcolor="#666666"><img src="/eta/spaceit.gif" width=5 height=1></td>'
			+ '<td width="100%" bgcolor="#666666"><font style="font-size:11px;font-family:Arial;font-weight:bold;color:white;">' + tl + '</font></td>'
			+ '<td width=7 valign="top"><img src="/eta/tip_topRt.gif" width=7 height=20></td>'
			+ '</tr></table></td></tr>'
			+ '<tr><td style="border-left:1px solid #666666;border-right:1px solid #666666;">'
			+ '<table border=0 cellpadding=0 cellspacing=0 width="100%" bgcolor="#f7f7f7">'
			+ '<tr><td width=5><img src="/eta/spaceit.gif" width=5 height=1></td><td><font style="font-family:Arial;font-size:11px;line-height:15px;">' + t + '</font></td><td width=5><img src="/eta/spaceit.gif" width=5 height=1></td></tr>'
			+ '<tr><td colspan=3><img src="/eta/spaceit.gif" width=1 height=5></td></tr>' + ttCB + '</table></td></tr>'
			+ '<tr><td><table border=0 cellpadding=0 cellspacing=0 width="100%"><tr>'
			+ '<td width=7 valign="top"><img src="/eta/tip_bttmLeft.gif" width=7 height=7></td>'
			+ '<td width="100%" bgcolor="#f7f7f7" style="border-bottom:1px solid #666666;"><img src="/eta/spaceit.gif" width=5 height=1></td>'
			+ '<td width=7 valign="top"><img src="/eta/tip_bttmRt.gif" width=7 height=7></td></tr></table></td></tr></table>'
		return txt;
	}	
	
	//Comment: Displays the popup 
	function DISPTT() 
	{
		if ((ns4 == 1) || (ns6 == 1) || (ie4 == 1) || (ie5 == 1) || (ie6 == 1) )
		{
			if (ttam == 0) 
			{
				TTPL();
				TTSO(ttlyr);
				//ttam == 1;
			}
		}
	}
	

	//Comment: Decides where we want the popup. 
	function TTPL() 
	{
		
		var X, Y;
		//Comment: HORIZONTAL PLACEMENT 
		if (ttfx > -1) 
		{
			//Comment: Fixed position 
			X = ttfx;
		} 
		else
		{
			//Comment: If HAUTO, decide what to use. 
			if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1))
				{wo = ttf.document.body.scrollLeft;}
			else
				{wo = ttf.pageXOffset;}
				
			if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1)) 
				{cW = ttf.document.body.clientWidth;}
			if (ns4 == 1) {cW = ttf.innerWidth;}
			if (ns6 == 1) {cW = ttf.outerWidth;}

			if (tthauto === 1) 
			{
				//Comment: change sides when close to right edge 
				if ( (ttx - wo) > ( (eval(cW)) - ttw) ) {
					tthp = ttLEFT;
				} else {
					tthp = ttRIGHT;
				}
			}
			if (tthp == ttRIGHT) 
			{ //Comment: Right 
				X = ttx+ttox;
				if ( (eval(X) + eval(ttw)) > (wo + cW) ) {
					X = cW + wo - ttw;
					if (X < 0) X = 0;
				}
			}
			if (tthp == ttLEFT) 
			{ //Comment: Left 
				X = ttx-ttox-ttw;
				if (X < wo) X = wo;
			}
		}		

		//Comment: VERTICAL PLACEMENT 
		//Comment: From mouse 
		if (ttfy > -1) 
		{
			Y = ttfy;
		} 
		else 
		{		
			if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1))
			{
				scrolloffset = ttf.document.body.scrollTop; 
			}
			else
			{
				scrolloffset = ttf.pageYOffset;
			}
		
			if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1)) 
				{ iheight = ttf.document.body.clientHeight; }
			if (ns4 == 1) { iheight = ttf.innerHeight; }
			if (ns6 == 1) { iheight = ttf.outerHeight; }

			iheight = (eval(iheight)) / 2;
			if (ns4 == 1)
			{
				if (tty > ttf.innerHeight)
				{
					Y = tty - ttoy - ttlyr.clip.height;
				}
				else
				{
					Y = tty + ttoy;
				}
			}
			else
			{
				if ( (tty - scrolloffset) > iheight) 
				{
					if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1))
						{var  divref = ttf.document.all['ttDiv'];}
					else {var  divref = ttlyr;}
					var aboveheight =  divref.offsetHeight;
					Y = tty - (ttoy + aboveheight);
					if (Y < scrolloffset)
						{Y = scrolloffset;}			
				}
				else 
				{
					Y = tty + ttoy;
				}
			}
		}
		//Comment: Actually move the object.
		TTML(ttlyr, X, Y);
	}	

	//Comment: Moves the layer
	function mouseMove(e) 
	{
		if ((ns4 == 1) || (ns6 == 1))
		{
			ttx=e.pageX; 
			tty=e.pageY;
		}
		if (ie4 == 1)
		{
			ttx=event.x; 
			tty=event.y;
		}
		if (ie5 == 1)
		{
			ttx=event.x+ttf.document.body.scrollLeft; 
			tty=event.y+ttf.document.body.scrollTop;
		}
		if (ie6 == 1)
		{
			ttx=event.x+ttf.document.body.scrollLeft; 
			tty=event.y+ttf.document.body.scrollTop;
		}
		if (ttam === 1) 
		{
			TTPL();
		}
	}


	//Comment: The Close onMouseOver function for stickies
	function cClick() 
	{
		TTHO(ttlyr);
		//ttst = 0;
	}


	//Comment: Makes sure target frame has tooltip
	function TTCF(f) 
	{        
		if (ns4 == 1){if (typeof f.document.ttDiv == 'undefined') return false;}
		else if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1)){if (typeof f.document.all['ttDiv'] == 'undefined') return false;}
		else if (ns6 == 1){if (f.document.getElementById('ttDiv') == null) return false;}
		return true;
	}

	//Comment: Writes to a layer 
	function TTLW(t)
	{
		t += '\n';
		if (ns4 == 1)
		{
			var l = ttlyr.document;
			l.write(t);
			l.close();
		}
		else if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1))
		{
			//ttf.document.all['ttDiv'].innerHTML = t;
			ttf.document.getElementById('ttDiv').innerHTML = t;
		}
		else if (ns6 == 1)
		{
			r = ttf.document.createRange();
			r.setStartBefore(ttlyr);
			domfrag = r.createContextualFragment(t);
			while (ttlyr.hasChildNodes()) 
			{
				ttlyr.removeChild(ttlyr.lastChild);
			}
			ttlyr.appendChild(domfrag);
		}
	}

	//Comment: Make an object visible 
	function TTSO(o)
	{
		if (ns4 == 1) 
			{o.visibility = 'show';}
		else if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1)) 
			{o.visibility = 'visible';}
		else if (ns6 == 1) 
			{o.style.visibility = 'visible';}
	}

	//Comment: Hides an object 
	function TTHO(o)
	{
		if (ns4 == 1) 
			{o.visibility = 'hide';}
		else if ((ie4 == 1) || (ie5 == 1)  || (ie6 == 1)) 
			{o.visibility = 'hidden';}
		else if (ns6 == 1)
			{o.style.visibility = 'hidden';}
		if (ttdl > 0) clearTimeout(ttdl);
		ttdl = 0;
		self.status = '';
	}

	//Comment: Move a layer 
	function TTML(o,x,y)
	{
		if ((ns4 == 1) || (ie4 == 1) || (ie5 == 1)  || (ie6 == 1))
		{
			o.left = x;
			o.top = y;
		}
		else if (ns6 == 1)
		{
			o.style.left = x + 'px';
			o.style.top = y + 'px';
		}
	}