var offsetxpoint=-60 // x offset of tooltip
var offsetypoint=20   // y offset of tooltip
var ie=document.all  ;  var ns6=document.getElementById && !document.all  ; var enabletip=false;  var mypic='';  var thetext=''; var picheight=0 ;  
var title=document.getElementById('DTT')  
var  LTR=0;
if (ie||ns6)
  var tipobj=document.all? document.all["DTT"] : document.getElementById? document.getElementById("DTT") : ""
 
function ietruebody(){
   return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement :  document.body}

function Pokaz(LTRL, Bgcolor, mypicy, myheight, thewidth, fixed, TTNr) {
/*  LTR=1  LTR=-1 for RTL page direction */  
/*  myhight =Pic Height should be >10 in number  */
/*  thewidth=Pic Width */
   var sTypeOf = typeof( TTNr);  /*0=show pic   1=show text */
   var pic = typeof( mypicy);   var picL=mypicy.length
  LTR=LTRL; 
  if (pic='strign' || picL>4) mypic='url(images4/' + mypicy +')' ;    /* take pic from images4*/
   var picheight=0 ; 
   var Lt =typeof(myheight); 
   if (Lt=='number' && myheight>10) {picheight=myheight}
    
   if(TTNr<=5){title.style.backgroundPosition="top left";};
   if(TTNr>=6){title.style.backgroundPosition="top center";};
   title.style.backgroundRepeat="repeat";

   switch ( sTypeOf )  {
        case "number": 
               if (TTNr>0) {thetext=DTText[TTNr];}
               else  
                { thetext=' '; 
                  title.style.backgroundRepeat="no-repeat";
                  title.style.backgroundPosition="center center"; };  break
        case "string": 
                { thetext=TTNr; title.style.backgroundRepeat="repeat";
                 if (myheight>0 ) { picheight=myheight;
                  title.style.backgroundRepeat="no-repeat";
                  title.style.backgroundPosition="bottom center";}  };
          }


if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (thewidth<='0') tipobj.style.width="150px"
if (thewidth<='0') tipobj.style.width="150px"

if (picheight<='0')  {tipobj.style.height="150px"}
if (picheight>'0') {tipobj.style.height=picheight+"px"} 

if (typeof Bgcolor!="undefined" && Bgcolor!="") tipobj.style.backgroundColor=Bgcolor
if (Bgcolor!="" || Bgcolor<='0') tipobj.style.backgroundColor=Bgcolor

offsetxpoint=-60*LTR; if (fixed==1) offsetxpoint=200 
offsetypoint=20;  if (fixed==1) offsetypoint=0 
  tipobj.innerHTML=thetext
  title.style.cursor='hand';
  title.style.borderWidth='2px';
  title.style.borderColor='#999999';
  title.style.borderStyle='ridge';  
  title.style.textAlign='justify';  
  title.style.paddingTop='10px'; 
  title.style.paddingLeft="20px";
  title.style.paddingRight='20px'; 
  title.style.paddingBottom="5px";
  title.style.fontWeight='normal';
  title.style.color='#000000';  
  title.style.fontSize='8pt'; 
  title.style.lineHeight='normal';  
  title.style.backgroundImage=mypic;

  if(fixed==1)
    {title.style.borderWidth='6px';  
     title.style.borderColor='#FFFFFF'; 
     title.style.borderStyle='solid';  
     title.style.color='#FFCC99';  
     title.style.fontWeight='bold'; 
     title.style.fontSize='9pt'; 
 };  

enabletip=true
return false }  }

function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint*LTR : window.innerWidth-e.clientX-offsetxpoint*LTR-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint*LTR<0)? offsetxpoint*(-1*LTR) : -1000
if (rightedge<tipobj.offsetWidth)
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
tipobj.style.left=curX+offsetxpoint*LTR+"px"
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"}}


function Hideme(){
if (ns6||ie){enabletip=false; tipobj.style.visibility="hidden"
tipobj.style.left=-1000*LTR; tipobj.style.backgroundColor=''
tipobj.style.width=''}}
document.onmousemove=positiontip




















