<!--

// global vars.
globalStart = false;
oldMenu = 0;
thisMenu = 0;

overMenu = new Array();
outMenu = new Array();

overMenu[1] = '<table border="0" cellpadding="0" cellspacing="0">'+
                    '        <tr>'+
              '    <td width="157" height="20" background="layout/background_meniu.gif"><a href="landing_commercial.htm" class="menu_left"  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Commercial/ Government Security</a></td>'+
              '  </tr>'+
              '        <tr>'+
                    '   <td width="157" height="1" background="layout/separator_meniu_stanga.gif"><spacer type="block"></td>'+
                    ' </tr>'+
              '        <tr>'+
                                                        '                <td><img src=layout/blueShadow.jpg height=6 width=100%><spacer type=block></td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=22 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=digitalVideo.htm class=menu_left2 onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Digital video</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=remoteAccess.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Remote access</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=openClose.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Open and close reporting</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=holdUp.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Hold up alarms</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=accessControl.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Access control</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=ulCertificates.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">UL Certificates</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=guardResponse.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Guard response</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=radioBackupGov.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Radio backup</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=18 background=layout/blueBackground.jpg width=100%>'+
                                                        '                        <a href=signUpCommercial.htm class=menu_left2  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">New customer response</a>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                                                        '        <tr>'+
                                                        '                <td height=1 background=layout/blueSeparator.jpg>'+
                                                        '                        <spacer type=block width=100% height=1>'+
                                                        '                </td>'+
                                                        '        </tr>'+
                    '</table>';
overMenu[2] = '<table border="0" cellpadding="0" cellspacing="0">'+
                    '        <tr>'+
              '    <td width="157" height="20" background="layout/background_meniu.gif"><a href="landing_residential.htm" class="menu_left"  onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Residential Security</a></td>'+
              '  </tr>'+
              '        <tr>'+
                    '   <td width="157" height="1" background="layout/separator_meniu_stanga.gif"><spacer type="block"></td>'+
                    ' </tr>'+
                    '<tr>'+
                                                        '        <td><img src=layout/greenShadow.jpg height=6 width=100%><spacer type=block></td>'+
                                                        '</tr>'+
                                                                                                                '<tr>'+
                                                        '        <td height=18 background=layout/greenBackground.jpg width=100%>'+
                                                        '                <a href=homeSecurityBasics.htm class=menu_left2 onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Home security basics</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/greenSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=22 background=layout/greenBackground.jpg width=100%>'+
                                                        '                <a href=components.htm class=menu_left2 onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Components of a home security system</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/greenSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/greenBackground.jpg width=100%>'+
                                                        '                <a href=centralStation.htm class=menu_left2 onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Central station</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/greenSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/greenBackground.jpg width=100%>'+
                                                        '                <a href=radioBackup.htm class=menu_left2 onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Radio backup</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/greenSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/greenBackground.jpg width=100%>'+
                                                        '                <a href=medicalAlert.htm class=menu_left2 onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Medical alert</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/greenSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/greenBackground.jpg width=100%>'+
                                                        '                <a href=signUp.htm class=menu_left2 onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">New customer signup form, information request</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/greenSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                    '</table>';
overMenu[3] = '<table border="0" cellpadding="0" cellspacing="0">'+
                    '        <tr>'+
              '    <td width="157" height="20" background="layout/background_meniu.gif"><a href="landing_mycsg.htm" class="menu_left"  onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">My CSG Security</a></td>'+
              '  </tr>'+
              '        <tr>'+
                    '   <td width="157" height="1" background="layout/separator_meniu_stanga.gif"><spacer type="block"></td>'+
                    ' </tr>'+
                    '<tr>'+
                                                        '        <td><img src=layout/brownShadow.jpg height=6 width=100%><spacer type=block></td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=22 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=mycsgsched.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Schedule a service call</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=mycsgUpdate.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Update call contacts</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=request.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Request an insurance certificat</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=nassauPermit.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Nassau County alarm permit</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=nassauFireMarshall.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Nassau County Fire Marshall' + "'" + 's</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=support.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Support</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=18 background=layout/brownBackground.jpg width=100%>'+
                                                        '                <a href=alarmTesting.htm class=menu_left2 onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">Alarm testing</a>'+
                                                        '        </td>'+
                                                        '</tr>'+
                                                        '<tr>'+
                                                        '        <td height=1 background=layout/brownSeparator.jpg>'+
                                                        '                <spacer type=block width=100% height=1>'+
                                                        '        </td>'+
                                                        '</tr>'+
                    '</table>';

outMenu[1] = '<table border="0" cellpadding="0" cellspacing="0">'+
                    '        <tr>'+
              '    <td width="157" height="20" background="layout/background_meniu.gif"><a href="landing_commercial.htm" class="menu_left"  onMouseOver="setMenu(1)" onMouseOut="setMenu(0)">Commercial/ Government Security</a></td>'+
              '  </tr>'+
              '        <tr>'+
                    '   <td width="157" height="1" background="layout/separator_meniu_stanga.gif"><spacer type="block"></td>'+
                    ' </tr>'+
                    '</table>';
outMenu[2] = '<table border="0" cellpadding="0" cellspacing="0">'+
                    '        <tr>'+
              '    <td width="157" height="20" background="layout/background_meniu.gif"><a href="landing_residential.htm" class="menu_left"  onMouseOver="setMenu(2)" onMouseOut="setMenu(0)">Residential Security</a></td>'+
              '  </tr>'+
              '        <tr>'+
                    '   <td width="157" height="1" background="layout/separator_meniu_stanga.gif"><spacer type="block"></td>'+
                    ' </tr>'+
                    '</table>';
outMenu[3] = '<table border="0" cellpadding="0" cellspacing="0">'+
                    '        <tr>'+
              '    <td width="157" height="20" background="layout/background_meniu.gif"><a href="landing_mycsg.htm" class="menu_left"  onMouseOver="setMenu(3)" onMouseOut="setMenu(0)">My CSG Security</a></td>'+
              '  </tr>'+
              '        <tr>'+
                    '   <td width="157" height="1" background="layout/separator_meniu_stanga.gif"><spacer type="block"></td>'+
                    ' </tr>'+
                    '</table>';

// functions
function showMenu(id) {
        switch(id) {
                        case 1:
                                document.getElementById("content1").innerHTML = overMenu[1];
                        break;
                        case 2:
                                document.getElementById("content2").innerHTML = overMenu[2];
                        break;
                        case 3:
                                document.getElementById("content3").innerHTML = overMenu[3];
                        break;
        }
}

function hideMenu(id) {
        switch(id) {
                        case 1:
                                document.getElementById("content1").innerHTML = outMenu[1];
                        break;
                        case 2:
                                document.getElementById("content2").innerHTML = outMenu[2];
                        break;
                        case 3:
                                document.getElementById("content3").innerHTML = outMenu[3];
                        break;
        }
}

function setMenu(id) {
        thisMenu = id;
        if(!globalStart) {
                setInterval("checkMenu()", 500);
                globalStart = true;
        }
}

function checkMenu() {
                if(thisMenu != oldMenu) {
                        if(thisMenu > 0) {
                                switch(thisMenu) {
                                        case 1:
                                                showMenu(1);
                                                hideMenu(2);
                                                hideMenu(3);
                                        break;
                                        case 2:
                                                showMenu(2);
                                                hideMenu(1);
                                                hideMenu(3);
                                        break;
                                        case 3:
                                                showMenu(3);
                                                hideMenu(1);
                                                hideMenu(2);
                                        break;
                                }
                        } else {
                                hideMenu(1);
                                hideMenu(2);
                                hideMenu(3);
                        }

                        oldMenu = thisMenu;
                }
}

//-->