	var ns4 = (document.layers) ? true : false;
	var ns6 = (!document.all && document.getElementById) ? true : false;
	var ie4 = (document.all && !document.getElementById) ? true : false;
	var ie5 = (document.all && document.getElementById) ? true : false;
	var ie6 = false;

	/*if (ns4) alert('NS4');
	if (ns6) alert('NS6');
	if (ie4) alert('IE4');
	if (ie5) alert('IE5');
	if (ie6) alert('IE6');*/

	var flyer = null;
	var visible = false;

	var x;
	var y;
	var width;
	var height;
	var offset_x;
	var offset_y;
	var position;
	var initialised = false;


	function InitFlyer ()
		{	document.onmousemove = mouseMove;
			if (ns4 || ns6)
					document.captureEvents(Event.MOUSEMOVE);
			initialised = true;
		}


	function OpenFlyer (id, pos, dx, dy)
		{	//if(!initialised)
			//		InitFlyer();
			position = (pos != null) ? pos : 'right';
			offset_x = (dx != null) ? dx : 10;
			offset_y = (dy != null) ? dy : 10;
			if ( ns4 || ns6 || ie4 || ie5 || ie6)
				{ if (ns4)
						{	flyer = eval("document."+id);
							width = flyer.clip.width;
							height = flyer.clip.height;
						}
					else if (ns6)
						{ flyer = document.getElementById(id).style;
							width = flyer.clientWidth;
							height = flyer.clientHeight;
						}
					else if (ie4 || ie5 || ie6)
						{ //alert(id);
							flyer = eval(id+".style");
							width = document.all[id].clientWidth;
							height = document.all[id].clientHeight;
						}
					if (!visible)
						{ if (position == 'center')
								{ // Center
									MoveFlyerTo(x+offset_x-(width/2),y+offset_y);
								}
							if (position == 'right')
								{ // Right
									MoveFlyerTo(x+offset_x,y+offset_y);
								}
							if (position == 'left')
								{ // Left
									MoveFlyerTo(x-offset_x-width,y+offset_y);
								}
							if (ns4)
								{ flyer.visibility = "show";
								}
							else if (ie4 || ie5 || ie6 || ns6)
								{ flyer.visibility = "visible";
								}
							visible = true;
				}		}
			else
				{ //		alert('Incompatibler Browser');
				}
			// Here you can make the text goto the statusbar.
		}

	function CloseFlyer()
		{	if (visible)
				{ if (ns4)
						{ flyer.visibility = "hide";
						}
					else if (ie4 || ie5 || ie6 || ns6)
						{ flyer.visibility = "hidden";
						}
					visible = false;
		}		}

	function mouseMove(evt)
		{ if (ns4 || ns6)
				{ x = evt.pageX;
					y = evt.pageY;
				}
			else if (ie4)
				{ x=event.x;
					y=event.y;
				}
			if (ie5 || ie6)
				{ x = event.x + document.body.scrollLeft;
					y = event.y + document.body.scrollTop;
				}
			if (visible)
				{ if (position == 'center')
						{ // Center
							MoveFlyerTo(x+offset_x-(width/2),y+offset_y);
						}
					if (position == 'right')
						{ // Right
							MoveFlyerTo(x+offset_x,y+offset_y);
						}
					if (position == 'left')
						{ // Left
							MoveFlyerTo(x-offset_x-width,y+offset_y);
		}		}		}

	function MoveFlyerTo(x, y)
		{	flyer.left = x;
			flyer.top = y;
		}
