<!--
NC = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;

currentX = currentY = 0;
lastScrollX = 0; lastScrollY = 0;

function floatEl(id)
{
	if(IE) { diffY = document.body.scrollTop; diffX = document.body.scrollLeft; }
	if(NC) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY)
	{
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
	 	else percent = Math.floor(percent);

		if(IE) eval("document.all."+id+".style.pixelTop+= percent");
		if(NC) eval("document."+id+".top += percent");
		lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX)
	{
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);

		if(IE) eval("document.all."+id+".style.pixelLeft += percent");
		if(NC) eval("document."+id+".left += percent");
		lastScrollX = lastScrollX + percent;
	}
}

if (NC || IE) interv = window.setInterval("floatEl('floatid')",1);
//-->


<!--
NC = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
ADV = (document.getElementById) ? 1: 0;

var is=0;
var cx, cy, ob;
var vs="visible";
var invs='hidden';
var xo=0; var yo=0;
if (NC) {vs='show';invs='hide';}

function Ob(id){
 if (IE) {ob=document.all(id).style} 
 else if (NC) {ob=document.layers[id]}
 else if (ADV) {ob=document.getElementById(id).style}
 return ob;
}

//============HINT script part begins===========
//these fragments define and markup table for hint

var frc="#8090a0"; var bgc="#e0d0b0";
var hw=200; //default hint width
var fr2='<table width=';
var fr4='cellpadding=0 cellspacing=0 border=1 bgcolor="';
var fr6='"><tr><td width=100%><table width=100% cellpadding=3 cellspacing=0 border=1 bgcolor="';
var fr8='"><tr><td width=100% class=a2><p>';
var fr10='</td></tr></table></td></tr></table>';
var tx='';

function HintAct(to,act,x,y)
{ 
 if (!(NC || IE || ADV)) {return}
 ob=Ob(to);
 if (act=="fill") {
  tx=fr2+hw+fr4+frc+fr6+bgc+fr8+tx+fr10;
  if (NC) {ob.document.write(tx);ob.document.close()}
  else if (IE) {document.all(to).innerHTML=tx}
  else {document.getElementById(to).innerHTML=tx}
 }
 else if (act=="show" && !is) {ob.visibility=vs;is=1}
 else if (act=="hide" && is) 
 {ob.visibility=invs;is=0
  xo=0; //set default offset x relatively to cursor coordinates
  yo=0;  //set offset y relatively to cursor coordinates
 }
 if (!x) {x=cx+xo;y=cy+yo}
 if (is && (act=="move" || x)) {if (ADV) {ob.left=x;ob.top=y} else if (IE) {ob.pixelLeft=x;ob.pixelTop=y} else {ob.moveTo(x,y)}}
}

function onHint(w,dx,dy,msg) {
hw=w;
xo=dx;        //dx - offset x relatively to cursor coordinates
yo=dy;        //dy - offset y relatively to cursor coordinates
if (!(NC || IE || ADV)) {alert(msg);return;}
tx=msg;
HintAct("look","fill");
HintAct("look","show");
}

if(NC) {document.captureEvents(Event.MOUSEMOVE)}
document.onmousemove=MTrap;

function MTrap(e){
cx=(NC)?e.pageX:event.x+document.body.scrollLeft;
cy=(NC)?e.pageY:event.y+document.body.scrollTop;
HintAct("look","move");
}

function offHint() {
HintAct("look","hide");
}
//============HINT script part ends===========
//-->

