﻿select = '<a style="font-weight: bolder; background-color: #7785A7; color:#FFFFFF;" ';
notselect = '<a ';

displaytab01 = '<div id="tab01" class="leftnavbutton"><a href="markets_overview.html" onmousedown="SelectTab(\'tab01content\')">MARKETS</a></div><div id="tab01content" class="coolmenu" style="display:none;">';

if (document.URL.indexOf("markets_overview.html") != -1 ) {a = select} else {a = notselect}
displaytab01 += a + 'href="markets_overview.html">Electric Distribution Feeder Automation</a>';

if (document.URL.indexOf("gas_oil_water.html") != -1 ) {a = select} else {a = notselect}
displaytab01 += a + 'href="gas_oil_water.html">Gas, Oil, Water <nobr>and Waste Water</nobr></a>';

// if (document.URL.indexOf("transportation.html") != -1 ) {a = select} else {a = notselect}
// displaytab01 += a + 'href="transportation.html">Transportation and Public Safety</a>';

// if (document.URL.indexOf("gas.html") != -1 ) {a = select} else {a = notselect}
// displaytab01 += a + 'href="gas.html">Oil and Gas</a>';

// if (document.URL.indexOf("industrial.html") != -1 ) {a = select} else {a = notselect}
// displaytab01 += a + 'href="industrial.html">Large Industrial and Process Companies</a>';

// if (document.URL.indexOf("government.html") != -1 ) {a = select} else {a = notselect}
// displaytab01 += a + 'href="government.html">Government and Homeland Security</a>';

displaytab01 += '</div>';

displaytab02 = '<div id="tab02" class="leftnavbutton"><a href="#" onclick="losefocus(\'tab02\');return false" onmousedown="SelectTab(\'tab02content\')">APPLICATIONS</a></div><div id="tab02content" class="coolmenu" style="display:none;">';

if (document.URL.indexOf("scada.html") != -1 ) {a = select} else {a = notselect}
displaytab02 += a + 'href="scada.html">SCADA</a>';

if (document.URL.indexOf("amr.html") != -1 ) {a = select} else {a = notselect}
displaytab02 += a + 'href="amr.html">AMR Back Haul</a>';

if (document.URL.indexOf("switch_control.html") != -1 ) {a = select} else {a = notselect}
displaytab02 += a + 'href="switch_control.html">Switch Control Automation</a>';

if (document.URL.indexOf("fault.html") != -1 ) {a = select} else {a = notselect}
displaytab02 += a + 'href="fault.html">Fault Location, Isolation and Service Restoration</a>';

if (document.URL.indexOf("equipment_monitor.html") != -1 ) {a = select} else {a = notselect}
displaytab02 += a + 'href="capacitor_automation.html">Capacitor Automation</a>';

if (document.URL.indexOf("site_security.html") != -1 ) {a = select} else {a = notselect}
displaytab02 += a + 'href="site_security.html">Site Security</a>';

// if (document.URL.indexOf("load_shedding.html") != -1 ) {a = select} else {a = notselect}
// displaytab02 += a + 'href="load_shedding.html">Load Shedding</a>';

// if (document.URL.indexOf("surveillance.html") != -1 ) {a = select} else {a = notselect}
// displaytab02 += a + 'href="surveillance.html">Surveillance Camera</a>';

// if (document.URL.indexOf("encryption.html") != -1 ) {a = select} else {a = notselect}
// displaytab02 += a + 'href="encryption.html">Link Encryption</a>';

// if (document.URL.indexOf("apps_updates.html") != -1 ) {a = select} else {a = notselect}
// displaytab02 += a + 'href="apps_updates.html">Third Party Application Updates</a>';

if (document.URL.indexOf("equipment_supported.html") != -1) {a = select} else {a = notselect}
displaytab02 += a + 'href="equipment_supported.html">Equipment Supported</a>';

// if (document.URL.indexOf("equipment_supported.html") != -1 || document.URL.indexOf("field_equipment.html") != -1 ) {a = select} else {a = notselect}
// displaytab02 += a + 'href="equipment_supported.html">Equipment Supported</a>';

// if (document.URL.indexOf("field_equipment.html") != -1 ) {a = select} else {a = notselect}
// displaytab02 += a + 'href="field_equipment.html">Field Equipment Supported</a>';

displaytab02 += '</div>';

displaytab03 = '<div id="tab03" class="leftnavbutton"><a href="#" onclick="losefocus(\'tab03\');return false" onmousedown="SelectTab(\'tab03content\')">PRODUCTS & SERVICES</a></div><div id="tab03content" class="coolmenu" style="display:none;">';

if (document.URL.indexOf("system_overview.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="system_overview.html">Systems Overview</a>';

if (document.URL.indexOf("scg_gateway.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="scg_gateway.html">Secure Communications Gateway</a>';

if (document.URL.indexOf("uch.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="uch.html">UIM</a>';

if (document.URL.indexOf("usc.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="usc.html">USC</a>';

if (document.URL.indexOf("antenna.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="antenna.html">Antenna</a>';

if (document.URL.indexOf("radio.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="radio.html">Radio Link</a>';

// if (document.URL.indexOf("sensors.html") != -1 ) {a = select} else {a = notselect}
// displaytab03 += a + 'href="sensors.html">Sensors</a>';

if (document.URL.indexOf("dts.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="dts.html">Retrofit Design Service</a>';

if (document.URL.indexOf("prof_services.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="prof_services.html">Professional Services</a>';

if (document.URL.indexOf("tech_support.html") != -1 ) {a = select} else {a = notselect}
displaytab03 += a + 'href="tech_support.html">Technical Support</a>';

displaytab03 += '</div>';

displaytab04 = '<div id="tab04" class="leftnavbutton"><a href="#" onclick="losefocus(\'tab04\');return false" onmousedown="SelectTab(\'tab04content\')">CUSTOMERS</a></div><div id="tab04content" class="coolmenu" style="display:none;">';

if (document.URL.indexOf("sales_rep_locator.html") != -1 ) {a = select} else {a = notselect}
displaytab04 += a + 'href="contact.html">Sales Representative Locator</a>';

if (document.URL.indexOf("portal/index.html") != -1 ) {a = select} else {a = notselect}
displaytab04 += a + 'href="portal/index.html">Customer Portal</a>';

if (document.URL.indexOf("info_request.html") != -1 ) {a = select} else {a = notselect}
displaytab04 += a + 'href="contact.html">Information Request</a>';

displaytab04 += '</div>';

displaytab05 = '<div id="tab05" class="leftnavbutton"><a href="#" onclick="losefocus(\'tab05\');return false" onmousedown="SelectTab(\'tab05content\')">PARTNERS</a></div><div id="tab05content" class="coolmenu" style="display:none;">';

if (document.URL.indexOf("partner_overview.html") != -1 ) {a = select} else {a = notselect}
displaytab05 += a + 'href="partner_overview.html">Partner Program Overview</a>';

if (document.URL.indexOf("partner_equipment.html") != -1 ) {a = select} else {a = notselect}
displaytab05 += a + 'href="partner_equipment.html">Automation Partners</a>';

//if (document.URL.indexOf("partner_systems.html") != -1 ) {a = select} else {a = notselect}
//displaytab05 += a + 'href="partner_systems.html">Solution Providers</a>';

//if (document.URL.indexOf("partner_apps.html") != -1 ) {a = select} else {a = notselect}
//displaytab05 += a + 'href="partner_apps.html">Software Applications</a>';

//if (document.URL.indexOf("partner_carriers.html") != -1 ) {a = select} else {a = notselect}
//displaytab05 += a + 'href="partner_carriers.html">Carriers</a>';

displaytab05 += '</div>';

function DisplayTabs() {
  document.write (displaytab01);
  document.write (displaytab02);
  document.write (displaytab03);
  document.write (displaytab04);
  document.write (displaytab05);
}


function SelectTab(d) {
if (d != "tab01content") {HideContent('tab01content')}
if (d != "tab02content") {HideContent('tab02content')}
if (d != "tab03content") {HideContent('tab03content')}
if (d != "tab04content") {HideContent('tab04content')}
if (d != "tab05content") {HideContent('tab05content')}
ReverseContentDisplay(d)
}

function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "";
}
function ReverseContentDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = ""; }
else { document.getElementById(d).style.display = "none"; }
}

function losefocus(anchor)
{
document.getElementById(anchor).blur()
}

