/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//==[ main for other ]==//

 //==[ x_open ]==//
 function x_open(p_url, p_name, p_options)
  {window.open(p_url, p_name, p_options);
  }


 //==[ x_tooltipon ]==//
 function x_tooltipon(p_head, p_body)
  {//==[ turn tooltip visibility on ]==//
   document.getElementById("TOOLTIP01").style.visibility="visible";

   //==[ turn tooltip table border on ]==//
   document.getElementById("TOOLTIP010201").style.border="1px solid";

   //==[ update tooltip text ]==//
   document.getElementById("TOOLTIP010101").innerHTML=p_head;
   document.getElementById("TOOLTIP010201").innerHTML=p_body;

   //==[ onmousemove event handler for [netscape] or [mozilla] ]==//
   if((navigator.appName == "Netscape") || (navigator.appName == "Mozilla"))
    {document.onmousemove=x_tooltipmove;
    }
  }


 //==[ x_tooltipoff ]==//
 function x_tooltipoff()
  {//==[ turn tooltip visibility off ]==//
   document.getElementById("TOOLTIP01").style.visibility="";

   //==[ turn tooltip table border on ]==//
   document.getElementById("TOOLTIP010201").style.border="";
  }


 //==[ x_tooltipmove ]==//
 function x_tooltipmove(p_event)
  {//==[ space between cursor and tooltip ]==//
   v_position_left=20;						//==[ width between cursor and tooltip ]==//
   v_position_top=0;						//==[ height between cursor and tooltip ]==//

   //==[ offset space for tooltip ]==//
   v_offset_right=40;						//==[ space between tooltip and right border ]==//
   v_offset_bottom=30;						//==[ space between tooltip and bottom border ]==//

   //==[ if browser is netscape or mozilla ]==//
   if((navigator.appName == "Netscape") || (navigator.appName == "Mozilla"))
    {//==[ cursor position ]==//
     v_cursor_x=p_event.screenX;
     v_cursor_y=p_event.screenY;
    }
   //==[ if browser is other ]==//
   else
    {//==[ cursor position ]==//
     v_cursor_x=window.event.clientX;
     v_cursor_y=window.event.clientY;
    }

   //==[ if browser is netscape or mozilla ]==//
   if((navigator.appName == "Netscape") || (navigator.appName == "Mozilla"))
    {//==[ scrollbar position ]==//
     v_scroll_left=document.body.scrollLeft-5;
     v_scroll_top=document.body.scrollTop-115;
    }
   else
    {//==[ scrollbar position ]==//
     v_scroll_left=document.body.scrollLeft;
     v_scroll_top=document.body.scrollTop;
    }

   //==[ body dimensions ]==//
   v_screen_width=document.getElementsByTagName("BODY")[0].offsetWidth;
   v_screen_height=document.getElementsByTagName("BODY")[0].offsetHeight;

   //==[ tooltip dimensions ]==//
   v_tooltip_width=document.getElementById("TOOLTIP01").offsetWidth;
   v_tooltip_height=document.getElementById("TOOLTIP01").offsetHeight;

   //==[ calculate tooltip position in window ]==//
   v_from_left=v_screen_width-v_tooltip_width-v_offset_right;
   v_from_top=v_screen_height-v_tooltip_height-v_offset_bottom;

   //==[ tooltip right bottom ]==//
   if((v_cursor_x <= v_from_left) && (v_cursor_y <= v_from_top))
    {document.getElementById("TOOLTIP01").style.left=v_cursor_x+v_scroll_left+v_position_left;
     document.getElementById("TOOLTIP01").style.top=v_cursor_y+v_scroll_top+v_position_top;
    }
   //==[ tooltip left bottom ]==//
   else if((v_cursor_x > v_from_left) && (v_cursor_y <= v_from_top))
    {document.getElementById("TOOLTIP01").style.left=v_cursor_x+v_scroll_left+v_position_left-v_tooltip_width;
     document.getElementById("TOOLTIP01").style.top=v_cursor_y+v_scroll_top+v_position_top;
    }
   //==[ tooltip right top ]==//
   else if((v_cursor_x <= v_from_left) && (v_cursor_y > v_from_top))
    {document.getElementById("TOOLTIP01").style.left=v_cursor_x+v_scroll_left+v_position_left;
     document.getElementById("TOOLTIP01").style.top=v_cursor_y+v_scroll_top+v_position_top-v_tooltip_height;
    }
   //==[ tooltip left top ]==//
   else if((v_cursor_x > v_from_left) && (v_cursor_y > v_from_top))
    {document.getElementById("TOOLTIP01").style.left=v_cursor_x+v_scroll_left+v_position_left-v_tooltip_width;
     document.getElementById("TOOLTIP01").style.top=v_cursor_y+v_scroll_top+v_position_top-v_tooltip_height;
    }
  }

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////