<!--

   // This include will maintain the mouse cursor position in variables cX and cY.
   // AssignPosition() will place the mouse cursor in the upper left-hand corner of a given object (referenced by "id").
   // ShowContent(), HideContent(), and ReverseContentDisplay() will show/hide/toggle the display of an object.

   // Copyright 2006 Bontrager Connection, LLC

   var cX = 0;
   var cY = 0;

   function UpdateCursorPosition( e ) {
      cX = e.pageX;
      cY = e.pageY; }

   function UpdateCursorPositionDocAll( e ) {
      cX = event.clientX;
      cY = event.clientY; }

   if( document.all ) {
      document.onmousemove = UpdateCursorPositionDocAll; }
   else {
      document.onmousemove = UpdateCursorPosition; }

   function findPosX( obj ) {
      var curleft = 0;

      if( obj.offsetParent ) {
         while( 1 ) {
            curleft += obj.offsetLeft;

            if( !obj.offsetParent ) { break; }

            obj = obj.offsetParent; } }
      else if( obj.x ) {
         curleft += obj.x; }

      return curleft; }

   function AssignPosition( o, d ) {
      d.style.left = ( findPosX( o.parentNode.parentNode ) + 140 ) + "px";
      d.style.top  = ( cY - 20 ) + "px"; }

   function AssignPositionR( o, d ) {
      d.style.left = ( findPosX( o.parentNode.parentNode ) - 415 ) + "px";
      d.style.top  = ( cY - 20 ) + "px"; }

   function HideContent( d ) {
      if( d.length < 1 ) { return; }

      document.getElementById( "d_" + d + "_i" ).className = "drop";
      document.getElementById( "d_" + d + "_t" ).className = "drop";

      document.getElementById( d ).style.display = "none"; }

   function ShowContent2( o, d, p ) {
      if( d.length < 1 ) { return; }

      document.getElementById( "d_" + d + "_i" ).className = "drop_on";
      document.getElementById( "d_" + d + "_t" ).className = "drop_on";

      var dd = document.getElementById( d );

      if( p == "R" ) {
         AssignPositionR( o, dd ); }
      else {
         AssignPosition( o, dd ); }

      dd.style.display = "block"; }

   function ShowContent( o, d ) {
      ShowContent2( o, d, 'L' ); }

   function ReverseContentDisplay( o, d ) {
      if( d.length < 1 ) { return; }

      var dd = document.getElementById( d );

      AssignPosition( o, dd );

      if( dd.style.display == "none" ) {
         dd.style.display = "block"; }
      else {
         dd.style.display = "none"; } }

//-->
