/* Main menu buttons */

function change(color)
 {
  var el=event.srcElement
  if (el.tagName=="INPUT"&&el.type=="button")
  event.srcElement.style.backgroundColor=color
 }
function jumpto2(url)
 {
  window.location=url
 }
function Buttons()
 {
  if (document.forms) {
    var imageOff = new Array();
     imageOff[0]          =  new Object();
     imageOff[0].button   = '"AwareNautics "';
     imageOff[0].jumpto2  = 'Welcome.htm';
     imageOff[1]          =  new Object();
     imageOff[1].button   = '"Company Profile "';
     imageOff[1].jumpto2  = 'CompOview.htm';
     imageOff[2]          =  new Object();
     imageOff[2].button   = '"Technical Profile "';
     imageOff[2].jumpto2  = 'TechProf.htm';
     imageOff[3]          =  new Object();
     imageOff[3].button   = '"AwareView "';
     imageOff[3].jumpto2  = 'AwareView.htm';
     imageOff[4]          =  new Object();
     imageOff[4].button   = '"Publications "';
     imageOff[4].jumpto2  = 'Publications.htm';
     imageOff[5]          =  new Object();
     imageOff[5].button   = '"Contact Us "';
     imageOff[5].jumpto2  = 'ContactUs.htm';

    var imageOn = new Array();
     imageOn[0]           =  new Object();
     imageOn[0].button    = '"AwareNautics "';
     imageOn[1]           =  new Object();
     imageOn[1].button    = '"Company Profile "';
     imageOn[2]           =  new Object();
     imageOn[2].button    = '"Technical Profile "';
     imageOn[3]           =  new Object();
     imageOn[3].button    = '"AwareView "';
     imageOn[4]           =  new Object();
     imageOn[4].button    = '"Publications "';
     imageOn[5]           =  new Object();
     imageOn[5].button    = '"Contact Us "';

   var output =
      '<CENTER><form name="Buttons">';

   var href = location.href;

     for (var i=0; i<6; i++) {

      if (href.indexOf(imageOff[i].jumpto2) > -1) output +=
        '<input type="button" value=' + imageOn[i].button + ' class="imageon">'
      else output +=
        '<input type="button" value=' + imageOff[i].button +
        ' onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')"  class="imageoff" onMouseover="change(\'yellow\')" onMouseout="change(\'#A8E400\')">'
    }

    output += '</form></CENTER>';

    document.write(output);

  }
 }
/* Company & Tech Profile side menu buttons */

function movein(which,html)
 {
  which.style.background='yellow'
 }
function moveout(which)
 {
  which.style.background='#FFFFC2'
 }

/* Welcome page Red arrow mouseovers */

function imgover(imgname)
 { 
  imgname.src = "arrow.gif" 
 } 
function imgout(imgname)
 { 
  imgname.src = "blank.gif" 
 }
function CompProf()
 {
  if (document.forms) {
   var imageOff = new Array();
     imageOff[0]          =  new Object();
     imageOff[0].button   = 'Company Overview';
     imageOff[0].jumpto2  = '#Overview';
     imageOff[1]          =  new Object();
     imageOff[1].button   = 'Quality of Service Management';
     imageOff[1].jumpto2  = '#QoS';
     imageOff[2]          =  new Object();
     imageOff[2].button   = 'Integrated Analytics';
     imageOff[2].jumpto2  = '#Integ_An';
     imageOff[3]          =  new Object();
     imageOff[3].button   = 'Enterprise Service Indexing';
     imageOff[3].jumpto2  = '#ESI';
     imageOff[4]          =  new Object();
     imageOff[4].button   = 'Performance, Capacity & Strategic Management';
     imageOff[4].jumpto2  = '#Perf_Cap';
     imageOff[5]          =  new Object();
     imageOff[5].button   = 'Software & Web Design/Development';
     imageOff[5].jumpto2  = '#Software';
     imageOff[6]          =  new Object();
     imageOff[6].button   = 'Vendor Relations Program';
     imageOff[6].jumpto2  = '#VendorRelations';

   var imageOn = new Array();
     imageOn[0]           =  new Object();
     imageOn[0].button    = 'Company Overview';
     imageOn[1]           =  new Object();
     imageOn[1].button    = 'Quality of Service Management';
     imageOn[2]           =  new Object();
     imageOn[2].button    = 'Integrated Analytics';
     imageOn[3]           =  new Object();
     imageOn[3].button    = 'Enterprise Service Indexing';
     imageOn[4]           =  new Object();
     imageOn[4].button    = 'Performance/Capacity/Strategic Management';
     imageOn[5]           =  new Object();
     imageOn[5].button    = 'Software & Web Design/Development';
     imageOn[6]           =  new Object();
     imageOn[6].button    = 'Vendor Relations Program';

   var output =
     '<table align="center" border="1" cellpadding="2" cellspacing="0" width="175"><tr>';

   var href = location.href;

     for (var i=0; i<7; i++) {

      if (href.indexOf(imageOff[i].jumpto2) > -1) output +=
        '<td class="imageonCT"  bordercolor="black" style="cursor:hand;" id="choice' + i
        + '" onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')" onMouseOver="movein(choice' + i + ',\'\')" onMouseout="moveout(choice' + i
        + ')"><div align="center">'
        + imageOn[i].button + '</div></td></tr>';
         
      else output +=
        '<td class="imageoffCT" bordercolor="black" style="cursor:hand;" id="choice' + i
        + '" onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')" onMouseOver="movein(choice' + i + ',\'\')" onMouseout="moveout(choice' + i
        + ')"><div align="center">'
        + imageOff[i].button + '</div></td></tr>';
         
    }

    output +=   '</table>';

    document.write(output);
  }
 }
function TechProf()
 {
  if (document.forms) {
   var imageOff = new Array();
     imageOff[0]          =  new Object();
     imageOff[0].button   = 'Technical Summary';
     imageOff[0].jumpto2  = '#TechSum';
     imageOff[1]          =  new Object();
     imageOff[1].button   = 'Scope';
     imageOff[1].jumpto2  = '#Scope';
     imageOff[2]          =  new Object();
     imageOff[2].button   = 'Focus';
     imageOff[2].jumpto2  = '#Focus';
     imageOff[3]          =  new Object();
     imageOff[3].button   = 'What Sets Us Apart';
     imageOff[3].jumpto2  = '#SetApart';
     imageOff[4]          =  new Object();
     imageOff[4].button   = 'Background';
     imageOff[4].jumpto2  = '#Background';
     imageOff[5]          =  new Object();
     imageOff[5].button   = 'Credits/Disclaimer';
     imageOff[5].jumpto2  = '#Credits_Disclaimer';
     imageOff[6]          =  new Object();
     imageOff[6].button   = 'Partners and Links';
     imageOff[6].jumpto2  = '#Links';


   var imageOn = new Array();
     imageOn[0]           =  new Object();
     imageOn[0].button    = 'Technical Summary';
     imageOn[1]           =  new Object();
     imageOn[1].button    = 'Scope';
     imageOn[2]           =  new Object();
     imageOn[2].button    = 'Focus';
     imageOn[3]           =  new Object();
     imageOn[3].button    = 'What Sets Us Apart';
     imageOn[4]           =  new Object();
     imageOn[4].button    = 'Background';
     imageOn[5]           =  new Object();
     imageOn[5].button    = 'Credits/Disclaimer';
     imageOn[6]           =  new Object();
     imageOn[6].button    = 'Partners and Links';

   var output =
     '<table align="center" border="1" cellpadding="2" cellspacing="0" width="175"><tr>';

   var href = location.href;

     for (var i=0; i<7; i++) {

      if (href.indexOf(imageOff[i].jumpto2) > -1) output +=
        '<td class="imageonCT"  bordercolor="black" style="cursor:hand;" id="choice' + i
        + '" onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')" onMouseOver="movein(choice' + i + ',\'\')" onMouseout="moveout(choice' + i
        + ')"><div align="center">'
        + imageOn[i].button + '</div></td></tr>';
         
      else output +=
        '<td class="imageoffCT" bordercolor="black" style="cursor:hand;" id="choice' + i
        + '" onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')" onMouseOver="movein(choice' + i + ',\'\')" onMouseout="moveout(choice' + i
        + ')"><div align="center">'
        + imageOff[i].button + '</div></td></tr>';
         
    }

    output +=   '</table>';

    document.write(output);
  }
 }
function AwareView()
 {
  if (document.forms) {
   var imageOff = new Array();
     imageOff[0]          =  new Object();
     imageOff[0].button   = 'Suggestion';
     imageOff[0].jumpto2  = '#Suggestion';
     imageOff[1]          =  new Object();
     imageOff[1].button   = 'AwareView Software Basics';
     imageOff[1].jumpto2  = '#Basics';
     imageOff[2]          =  new Object();
     imageOff[2].button   = 'Navigation';
     imageOff[2].jumpto2  = '#Navigation';
     imageOff[3]          =  new Object();
     imageOff[3].button   = 'Expanded Description';
     imageOff[3].jumpto2  = '#ExpDesc';
     imageOff[4]          =  new Object();
     imageOff[4].button   = 'Usage';
     imageOff[4].jumpto2  = '#Usage';

   var imageOn = new Array();
     imageOn[0]           =  new Object();
     imageOn[0].button    = 'Suggestion';
     imageOn[1]           =  new Object();
     imageOn[1].button    = 'AwareView Software Basics';
     imageOn[2]           =  new Object();
     imageOn[2].button    = 'Navigation';
     imageOn[3]           =  new Object();
     imageOn[3].button    = 'Expanded Description';
     imageOn[4]           =  new Object();
     imageOn[4].button    = 'Usage';

   var output =
     '<table align="center" border="1" cellpadding="2" cellspacing="0" width="175"><tr>';

   var href = location.href;

     for (var i=0; i<5; i++) {

      if (href.indexOf(imageOff[i].jumpto2) > -1) output +=
        '<td class="imageonCT"  bordercolor="black" style="cursor:hand;" id="choice' + i
        + '" onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')" onMouseOver="movein(choice' + i + ',\'\')" onMouseout="moveout(choice' + i
        + ')"><div align="center">'
        + imageOn[i].button + '</div></td></tr>';
         
      else output +=
        '<td class="imageoffCT" bordercolor="black" style="cursor:hand;" id="choice' + i
        + '" onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')" onMouseOver="movein(choice' + i + ',\'\')" onMouseout="moveout(choice' + i
        + ')"><div align="center">'
        + imageOff[i].button + '</div></td></tr>';
         
    }

    output +=   '</table>';

    document.write(output);
  }
 }
function AVw_Drill_Button()
 {
  if (document.forms) {
   var imageOff = new Array();
     imageOff[0]          =  new Object();
     imageOff[0].button   = '"AwareView Software "';
     imageOff[0].jumpto2  = '../AwareView/AwareView-ActiveDisplay.htm';

   var imageOn = new Array();
     imageOn[0]           =  new Object();
     imageOn[0].button    = '"AwareView Software "';

   var output =
      '<CENTER><form name="Button">';

   var href = location.href;

     for (var i=0; i<1; i++) {

      if (href.indexOf(imageOff[i].jumpto2) > -1) output +=
        '<input type="button" value=' + imageOn[i].button + ' class="imageon">'
      else output +=
        '<input type="button" value=' + imageOff[i].button +
        ' onClick="jumpto2(\'' + imageOff[i].jumpto2 + '\')"  class="imageoff" onMouseover="change(\'yellow\')" onMouseout="change(\'#A8E400\')">'
    }

    output += '</form></CENTER>';

    document.write(output);
  }
 }
