// PDS javascript include file.
// Written by: John A. Beach
//       Date: August 8, 2000


// Omit iFrame scroller if screen resolution less that 700 vertical pixels.
   function loadScroller() {
      // clHeight = "Client Dimensions = "+screen.availWidth+" x "+screen.availHeight;
      if (screen.availHeight < 700) {
         // alert( clHeight );
         // document.all.divScroll.style.display = "none";
         document.getElementById('divScroll').style.display='none';
      }
   }

// Display correct image based on screen resolution.
   function loadCorrectImage(divBigImg, divSmallImg) {
      if (screen.availHeight > 700) {
         document.getElementById(divBigImg).style.display = '';
      }
      else {
         document.getElementById(divSmallImg).style.display = '';
      }
   }

// Use &nbsp; for spaces in the sTitle argument (else ToolTip will truncate at first space)
// Put extra quotes around string values to resolve this problem.
   function openPictureWindow(sImage, imgWidth, imgHeight, sTitle) {
      var winHeight = parseInt(imgHeight,10) + 70;
      var winWidth = parseInt(imgWidth,10) + 50;
      // alert("winHeight = "+winHeight+"\n\nimgHeight = "+imgHeight);
      newWindow = window.open('', 'newWin', 'toolbar=no,location=no,scrollbars=no,resizeable=yes,width='+winWidth+',height='+winHeight);
      newWindow.document.open('text\/html');
      newWindow.document.write('<HTML><HEAD><TITLE>"'+sTitle+'"<\/TITLE><\/HEAD><BODY Style="background-color: #aaaaaa";>');
      newWindow.document.write('<CENTER><IMG src=images\/\/'+sImage+' width='+imgWidth+' height='+imgHeight+' Alt="'+sTitle+'" border="1" bordercolor="000000">');
      newWindow.document.write('<BR><BR><Input type=button value="Close Window" OnClick="window.close();"><\/CENTER><\/BODY><\/HTML>');
      newWindow.document.close();
      newWindow.focus();
   }


// Formatted timestamp of last time HTML page was modified.
   function lastUpdated() {
      document.write("<P align=center><font size=1 color=#ff0000><I>Last updated: <\/I><\/font>" +
                     "<FONT size=1>" + document.lastModified + "<\/FONT><\/P>");
   }


/* Open a new HTML page in the right frame.
   function openWindow(fileName)  {
         parent.frames[1].location.href=fileName;
      }   */


// Obfuscate mailto URL text to confuse web spiders.
   function contactpds(id) {
      var who = '';
      var where = '';
      var subjectline = '';
      id = parseInt(id);
      switch (id) {
         case 1:
            who = 'prez';
            where = 'pdsSolutions.net';
            subjectline = 'Website-Message';
            break;
         case 2:
            who = 'KWentworth';
            where = 'pdsSolutions.net';
            subjectline = 'Website-Message';
            break;
         case 3:
            who = 'SLaskaris';
            where = 'pdsSolutions.net';
            subjectline = 'Website-Message';
            break;
         case 4:
            who = 'TMorcom';
            where = 'pdsSolutions.net';
            subjectline = 'Website-Message';
            break;
         case 5:
            who = 'JerryM';
            where = 'pdsSolutions.net';
            subjectline = 'Website-Message';
            break;
         case 6:
            who = 'MOphaug';
            where = 'pdsSolutions-fl.com';
            subjectline = 'Website-Message';
            break;
         case 7:
            who = 'John';
            where = 'pdsSolutions-fl.com';
            subjectline = 'Website-Message';
            break;
         case 8:
            who = 'BFerkile';
            where = 'pdsSolutions-fl.com';
            subjectline = 'Website-Message';
            break;
         case 9:
            who = 'Webmaster';
            where = 'pdsSolutions-fl.com';
            subjectline = 'Website-Message';
            break;
         default:
            who = 'Engineering';
            where = 'pdsSolutions-fl.com';
     }
     document.location = 'mailto:' + who + '@' + where + '?Subject=' + subjectline ;
   }

















/*  The End... */
