﻿// JScript File

var sAwardsDesc_DC2010 = "“What particularly impressed me about the level of service provided by MS Technologies " + 
     "evolved around DCLB decision to lunch winning number information via SMS Text Messages to mobile devices; " + 
     "although the project experienced early delay’s due to circumstances beyond their control MS Technologies " + 
     "staff was extremely efficient in delivering the final solution even though there were no additional financial " + 
     "rewards involved.” <br /><br /><b>Keith T. Cunningham</b><br />Telecommunications Manager<br />" +
     "DC Lottery and Charitable Games Control Board";
var sAwardsDesc_GED2009 = "“MS Technologies was successful in delivering the development of our project on time " + 
    "and on budget, in spite of an extremely aggressive project time line. You provided us with highly effective " + 
    "staff, access to a great training facility onsite at your company, and your personal attention to help problem " + 
    "solve as we identified challenges to our timeline.” " + 
    "<br /><br /><b>Patricia L. Bennett</b><br />Program Manager <br />" +
    "Adult Education & Literacy Services";
var sAwardsDesc_ACIS2009 = "“MS Technologies has continuously provided excellent maintenance and support. " + 
    "Staff is always available for advice on technical and non-technical issues. MS Technologies was immediately " + 
    "available to assist in disaster recovery when a hard drive crashed, with minimal impact to customer service. " + 
    "MS Technologies not only considers MVA as their customer, but also considers the impact of their services " + 
    "on MVA’s licensed drivers and vehicle owners.” " +
    "<br /><br /><b>Wendi Pumphrey</b><br />Manager <br />" +
    "Insurance Compliance Division ";
var sAwardsDesc_HRIS2009 = "“I could not be more pleased with the performance of our HR system. With approximately " + 
    "1,100 users, the system still operates quickly and efficiently. The ease and user-friendly applications of " + 
    "the system have minimized training of employees on the use of the system. Our employees now have access to " + 
    "a wealth of online information and are pleased with our efforts to automate many of our antiquated paper " + 
    "driven processes.” " +
    "<br /><br /><b>Dawn Kouneski</b><br />Director of Personnel <br />";
var sAwardsDesc_ACIS2008 = "“From our first Automated Interactive Voice Response (IVR) systems that were " + 
    "implemented in the late 1990’s to the first Automated Compulsory Insurance compliance System (ACIS) in " + 
    "the nation to our Disabled Placard System (DPS) and the various innovative solutions that are being " + 
    "implemented today such as our Central Scheduling System and Accounts Receivable System, MS Technologies " + 
    "has been a crucial partner in helping us meet our mission objectives.” " +
    "<br /><br /><b>John T. Kuo</b><br />Administrator <br />" +
    "Motor Vehicle Administration ";
var sAwardsDesc_IVR2008 = "“While MST's technical expertise is unsurpassed, their support is the most " + 
    "exemplary I have received from any vendor I've done business with. A promise of delivery is 4 " +
    "delivery met, a promise of support is support provided. When a revenue generating " + 
    "application went down MST stepped in to fix the other vendor's problem to get MVA " +
    "back in business due to the other vendor's lack of response.” " +
    "<br /><br /><b>Sherry D. Schmansky</b><br />Manager, Telecommunications <br />" +
    "Motor Vehicle Administration ";
var sAwardsDesc_HSeIS2006 = "“Jack Chen and MS Technologies staff members crafted a prototype database " + 
    "program that not only works to meet this and all of our other needs but goes beyond our expectations. " + 
    "Jack, we personally thank you for delivering on your promise.” " +
    "<br /><br /><b>Wanda J. Smith</b><br />Chief Executive Officer <br />";
var sAwardsDesc_IVR2006 = "“MS Technologies demonstrated flexibility and willingness to go above and " + 
    "beyond to get this project delivered by our cut-over data.  Your employees’ dedication and hard work " + 
    "brought this project together in a very short period of time – less than 10 weeks.”" +
    "<br /><br /><b>Katherine Raynor</b><br />Director – Traffic Management Division <br />";
var sAwardsDesc_MRSA2006 = "“I have absolutely no hesitation in recommending MS Technologies, Jack Cheng, " + 
    "and his staff to any prospective company/organization that may benefit from their services.”" +
    "<br /><br /><b>Kenneth M. Reott</b><br />Deputy Retirement Administrator <br />";
var sAwardsDesc_HSGD2004 = "“We are delighted that our special relationship with MS Technologies is resulting " + 
    "in Head Start of Greater Dallas becoming one of the most technologically advanced Head Start programs " + 
    "in the country...”" + 
    "<br /><br /><b>Rob Massonneau</b><br />Director of External Affairs <br />";
var sAwardsDesc_DHMH2004 = "“I am taking this opportunity to thank you for such a wonderful job and your " + 
    "staff have performed with the design and installation of our interactive voice response system... you " + 
    "and your staff have been excellent professionals.”" +
    "<br /><br /><b>J. Bobbe Frasier, Jr., Chief</b><br />Division of Health Choice Customer Relations <br />";
var sAwardsDesc_IVR2004 = "“Because of your creativity, your experience, and your desire to do things right, " + 
    "we were able to launch the production application in record time. It was a pleasure to work with your " + 
    "talented staff, Harry Chen, Lily Tai, and Aling Lee. During the project, there was never a time when you " +
    "or your staff did not respond to my questions or concerns in an expedditious mannr.” " +
    "<br /><br /><b>Gail A. Robinson</b><br />Technology Specialist <br />";
var sAwardsDesc_ACIS2003 = "“Your company played a critical role in the MVA’s advancement of its objective " + 
    "to bring services to the public at their convenience. We did this through IVR and interface technology " + 
    "developed by MST... MS Technologies has been a critical partner in the Maryland MVA’s success.” " +
    "<br /><br /><b>Anne S. Ferro</b><br />Administrator <br />";
var sAwardsDesc_VRS2003 = "“Dedication and hard work brought the E-Tags system to life in Kansas. The citizens " + 
    "of Kansas now have the convenience of renewing their vehicle registration electronically by phone or " + 
    "through the web-based application. During the life cycle of the project, MS Technologies demonstrated " + 
    "flexibility and willingness to go above and beyond to get the job done” " +
    "<br /><br /><b>Sheila J. Walker</b><br />Director, Division of Vehicles <br />" +
    "Kanasa Department of Revenue";
var sAwardsDesc_BAS2003 = "“Your organization has consistently provided the department with outstanding " + 
    "service in the development and maintenance of the Benefits Administration System (BAS) and Interactive " + 
    "Voice Response (IVR) system... Your organization’s work has consistently been of a high quality and " + 
    "delivered in a timely manner.” " +
    "<br /><br /><b>Gladys Gaskins</b><br />Director of Employment Benefits <br />";
var sAwardsDesc_ACIS2001 = "“I am very impressed with the sincere concern and pride of workmanship that all " + 
    "employee demonstrate when completing task. My congeradulation goes to you on surrounding yourself with " + 
    "such an excellent team.” " +
    "<br /><br /><b>Marjorie Murphy, Project manager</b><br />Office of Project Development <br />";
var sAwardsDesc_TELE1997 = "“As always, your professinalism is respected and appreciated very much by MVA. " + 
    "MVA looks forward to the continuing applications we are working on with GTE and MS Technologies.” " +
    "<br /><br /><b>Sherry D. Ward</b><br />Manage, Telecommunications Unit <br />";
var sAwardsDesc_WCC2011 = "“MS Technologies installed our Automated Interactive Voice Response System (IVR) " + 
    "in 2000, and has been a partner to the WCC ever since. Their knowledge, excellent service and support " +
    "have been incomparable. Customer service is at the top of the list at MS Technologies and it filters down " +
    "from the President, Jack Cheng, to the receptionist who answers the phone.” " +
    "<br /><br /><b>Christel Surdokas</b><br />Telecommunications Administrator<br />Procurement Officer";


String.prototype.trim = function()
{
    return this.replace(/^\s*/, "").replace(/\s*$/, "");
}

function show(id, msgId, yid, xid){
     var e = document.getElementById(id);
     
     if (msgId == "DC2010")
        e.innerHTML = sAwardsDesc_DC2010; 
     else if (msgId == "GED2009")
        e.innerHTML = sAwardsDesc_GED2009;
     else if (msgId == "ACIS2009")
        e.innerHTML = sAwardsDesc_ACIS2009;
     else if (msgId == "HRIS2009")
        e.innerHTML = sAwardsDesc_HRIS2009;
     else if (msgId == "ACIS2008")
        e.innerHTML = sAwardsDesc_ACIS2008;
     else if (msgId == "IVR2008")
        e.innerHTML = sAwardsDesc_IVR2008;
     else if (msgId == "HSeIS2006")
        e.innerHTML = sAwardsDesc_HSeIS2006;
     else if (msgId == "IVR2006")
        e.innerHTML = sAwardsDesc_IVR2006;
     else if (msgId == "MRSA2006")
        e.innerHTML = sAwardsDesc_MRSA2006;
     else if (msgId == "HSGD2004")
        e.innerHTML = sAwardsDesc_HSGD2004;
     else if (msgId == "DHMH2004")
        e.innerHTML = sAwardsDesc_DHMH2004;
     else if (msgId == "IVR2004")
        e.innerHTML = sAwardsDesc_IVR2004;
     else if (msgId == "ACIS2003")
        e.innerHTML = sAwardsDesc_ACIS2003;
     else if (msgId == "VRS2003")
        e.innerHTML = sAwardsDesc_VRS2003;
     else if (msgId == "BAS2003")
        e.innerHTML = sAwardsDesc_BAS2003;
     else if (msgId == "ACIS2001")
        e.innerHTML = sAwardsDesc_ACIS2001;
     else if (msgId == "TELE1997")
        e.innerHTML = sAwardsDesc_TELE1997;
     else if (msgId == "WCC2011")
        e.innerHTML = sAwardsDesc_WCC2011;                    
        
     jQuery(document).ready(function(){
          $(document).mousemove(function(g){
    	       e.style.top=g.pageY+yid + 'px';
	       e.style.left=g.pageX+xid + 'px';
          });
     })
    $(e).fadeIn(500);
}

function hide(id){
    var e = document.getElementById(id);
    $(e).fadeOut(200);
}

function pageNumClick(id, prevId)
{
    try
    {
        var oPageNum1 = document.getElementById(id);
        var oPageNum1b = document.getElementById(id + 'b');
        oPageNum1.style.display = 'none';
        oPageNum1b.style.display = '';
        
        var oHidPageNum = document.getElementById(prevId);
        if (oHidPageNum.innerText != '')
        {
            var oPageNum2 = document.getElementById(oHidPageNum.innerText);
            var oPageNum2b = document.getElementById(oHidPageNum.innerText + 'b');
            oPageNum2.style.display = '';
            oPageNum2b.style.display = 'none';
        }
        
        oHidPageNum.innerText = id;
    }
    catch(err)
    {
        alert('[JavascriptError.pageNumClick]: ' + err);
    }
}

function changeCursor(id, cursorType, txtDeco)
{
    try
    {
        var oCursor = document.getElementById(id);
        oCursor.style.cursor = cursorType;
        oCursor.style.textDecoration = txtDeco;
    }
    catch(err)
    {
        alert('[JavascriptError.changeCursor]: ' + err);
    }
}

function checkEmail(email)
{
    try
    {
        var at = "@";
        var dot = ".";
        var lat = email.indexOf(at);
        var lstr = email.length;
        var ldot = email.indexOf(dot);
        var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
        
        if (!filter.test(email)) 
            return false;
        else if (email.indexOf(dot) == -1 || email.indexOf(dot) == 0 || email.indexOf(dot) == lstr)
            return false;
        else if (email.substring(lat - 1, lat) == dot || email.substring(lat + 1, lat + 2) == dot)
            return false;
        else if (email.indexOf(dot, (lat + 2)) == -1)
            return false;
            
        return true;
    }
    catch(err)
    {
        alert('[JavascriptError.checkEmail]: ' + err);
    }
}

function RegisterCheck(fnid, lnid, logid, pwid, pwid2, email)
{
    try
    {
        if (fnid.value.trim() == '' && lnid.value.trim() == '')
        {
            alert('First name and last name are empty.');
            return false;
        }
        else if (logid.value.trim() == '')
        {
            alert('Login field is empty.');
            return false;
        }
        else if (pwid.value.trim() == '')
        {
            alert('Password is empty.');
            return false;
        }
        else if (pwid2.value.trim() == '')
        {
            alert('Retype password is empty.');
            return false;
        }
        else if (email.value.trim() == '')
        {
            alert('Email is empty.');
            return false;
        }
        
        var filter = new RegExp("[^A-z]");
        var filter2 = new RegExp("[0-9]");
        var filter3 = new RegExp("[A-z]");
        if (filter.test(fnid.value.trim()))
           { alert('Invalid first name.'); return; }
        else if (filter.test(lnid.value.trim()))
           { alert('Invalid last name.'); return; }
        else if (filter.test(logid.value.trim().charAt(0)))
           { alert('Login: The first character should be a letter.'); return false; }
        else if (pwid.value.trim().length < 8)
           { alert('Password: Minimum of 8 characters in length.'); return false; }
        else if (!filter2.test(pwid.value.trim()) || !filter3.test(pwid.value.trim()))
           { alert('Password: 1 letter and 1 digit at least.'); return false; }
        else if (pwid2.value != pwid.value)
           { alert('Re-typed password does not match password.'); return false; }
        else if (checkEmail(email.value.trim()) == false)
           { alert('Email format is invalid.'); return false; }
           
        return true;
    }
    catch(err)
    {
        alert('[JavascriptError.RegisterCheck]: ' + err);
    }
}

function SwitchImg(mid1, action1, mid2, action2)
{
    try
    {
       var img1 = document.getElementById(mid1);
       var img2 = document.getElementById(mid2);
       
       img1.style.display = action1;
       img2.style.display = action2;
    }
    catch(err)
    {
        alert('[JavascriptError.SwitchImg]: ' + err);
    }
}

function GoToPage(url)
{
    try
    {
        window.open(url, '_self');
    }
    catch(err)
    {
        alert('[JavascriptError.GoToPage]: ' + err);
    }
}

function ShowDIV(top_level, div_id)
{
    try
    {
        if (top_level == "Company")
        {
            var divAboutUs = document.getElementById('divAboutUs');
            var divMission = document.getElementById('divMission');
            var divEmployment = document.getElementById('divEmployment');
            var divImgAboutUs = document.getElementById('divImgAboutUs');
            var divImgMission = document.getElementById('divImgMission');
            var divImgEmployment = document.getElementById('divImgEmployment');
            var spanAbout = document.getElementById('spAbout');
            var spanMission = document.getElementById('spMission');
            var spanEmployment = document.getElementById('spEmployment');
            var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            
            divAboutUs.style.display = 'none';
            divMission.style.display = 'none';
            divEmployment.style.display = 'none';
            divImgAboutUs.style.display = 'none';
            divImgMission.style.display = 'none';
            divImgEmployment.style.display = 'none';
            
            spanAbout.style.fontWeight = 'normal';
            spanAbout.style.color = '#404040';
            spanMission.style.fontWeight = 'normal';
            spanMission.style.color = '#404040';
            spanEmployment.style.fontWeight = 'normal';
            spanEmployment.style.color = '#404040';
            spanBreadCrumbs.innerHTML = 'Company ';
            
            if (div_id == "divAboutUs")
            {
                divAboutUs.style.display = 'block';
                divImgAboutUs.style.display = 'block';
                spanAbout.style.fontWeight = 'bold';
                spanAbout.style.color = "#000";
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> About Us ';
            }
            else if (div_id == "divMission")
            {
                divMission.style.display = 'block';
                divImgMission.style.display = 'block';
                spanMission.style.fontWeight = 'bold';
                spanMission.style.color = "#000";
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Mission Statement ';
            }
            else if (div_id == "divEmployment")
            {
                divEmployment.style.display = 'block';
                divImgEmployment.style.display = 'block';
                spanEmployment.style.fontWeight = 'bold';
                spanEmployment.style.color = "#000";
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Employment Opportunities ';
            }
        }  
        else if (top_level == "Services")
        {
            var divServices = document.getElementById('divServices');
            var divImgServices = document.getElementById('divImgServices');
            var divCAD = document.getElementById('divCAD');
            var divImgCAD = document.getElementById('divImgCAD');
            var divWSD = document.getElementById('divWSD');
            var divImgWSD = document.getElementById('divImgWSD');
            var divDAM = document.getElementById('divDAM');
            var divImgDAM = document.getElementById('divImgDAM');
            var divDM = document.getElementById('divDM');
            var divImgDM = document.getElementById('divImgDM');
            var divITMC = document.getElementById('divITMC');
            var divImgITMC = document.getElementById('divImgITMC');
            var divCC = document.getElementById('divCC');
            var divImgCC = document.getElementById('divImgCC');
            var divITPS = document.getElementById('divITPS');
            var divImgITPS = document.getElementById('divImgITPS');
            var divWDI = document.getElementById('divWDI');
            var divImgWDI = document.getElementById('divImgWDI');
            var divTC = document.getElementById('divTC');
            var divImgTC = document.getElementById('divImgTC');
            var spanCAD = document.getElementById('spCAD');
            var spanWSD = document.getElementById('spWSD');
            var spanDAM = document.getElementById('spDAM');
            var spanDM = document.getElementById('spDM');
            var spanITMC = document.getElementById('spITMC');
            var spanCC = document.getElementById('spCC');
            var spanITPS = document.getElementById('spITPS');
            var spanWDI = document.getElementById('spWDI');
            var spanTC = document.getElementById('spTC');
            var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            var spanBR = document.getElementById('spBR');
            
            divServices.style.display = 'none';
            divImgServices.style.display = 'none';
            divCAD.style.display = 'none';
            divImgCAD.style.display = 'none';
            divWSD.style.display = 'none';
            divImgWSD.style.display = 'none';
            divDAM.style.display = 'none';
            divImgDAM.style.display = 'none';
            divDM.style.display = 'none';
            divImgDM.style.display = 'none';
            divITMC.style.display = 'none';
            divImgITMC.style.display = 'none';
            divCC.style.display = 'none';
            divImgCC.style.display = 'none';
            divITPS.style.display = 'none';
            divImgITPS.style.display = 'none';
            divWDI.style.display = 'none';
            divImgWDI.style.display = 'none';
            divTC.style.display = 'none';
            divImgTC.style.display = 'none';
            
            spanCAD.style.fontWeight = 'normal';
            spanWSD.style.fontWeight = 'normal';
            spanDAM.style.fontWeight = 'normal';
            spanDM.style.fontWeight = 'normal';
            spanITMC.style.fontWeight = 'normal';
            spanCC.style.fontWeight = 'normal';
            spanITPS.style.fontWeight = 'normal';
            spanWDI.style.fontWeight = 'normal';
            spanTC.style.fontWeight = 'normal';
            spanCAD.style.color = '#404040';
            spanWSD.style.color = '#404040';
            spanDAM.style.color = '#404040';
            spanDM.style.color = '#404040';
            spanITMC.style.color = '#404040';
            spanCC.style.color = '#404040';
            spanITPS.style.color = '#404040';
            spanWDI.style.color = '#404040';
            spanTC.style.color = '#404040';
            spanBreadCrumbs.innerHTML = '<a href="#" class="BreadCrumbs" onclick="ShowDIV(\'Services\', \'divServices\')">Services</a> ';
            
            if (div_id == "divServices")
            {
                divServices.style.display = 'block';
                divImgServices.style.display = 'block';
                spanBreadCrumbs.innerHTML = '';
            }
            else if (div_id == "divCAD")
            {
                divCAD.style.display = 'block';
                divImgCAD.style.display = 'block';
                spanCAD.style.fontWeight = 'bold';
                spanCAD.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Custom Application Development ';
            }
            else if (div_id == "divWSD")
            {
                divWSD.style.display = 'block';
                divImgWSD.style.display = 'block';
                spanWSD.style.fontWeight = 'bold';
                spanWSD.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Web Application Development ';
            }
            else if (div_id == "divDAM")
            {
                divDAM.style.display = 'block';
                divImgDAM.style.display = 'block';
                spanDAM.style.fontWeight = 'bold';
                spanDAM.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Digital Asset Management ';
            }
            else if (div_id == "divDM")
            {
                divDM.style.display = 'block';
                divImgDM.style.display = 'block';
                spanDM.style.fontWeight = 'bold';
                spanDM.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Datacenter Management ';
            }
            else if (div_id == "divITMC")
            {
                divITMC.style.display = 'block';
                divImgITMC.style.display = 'block';
                spanITMC.style.fontWeight = 'bold';
                spanITMC.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> IT Management Consulting ';
            }
            else if (div_id == "divCC")
            {
                divCC.style.display = 'block';
                divImgCC.style.display = 'block';
                spanCC.style.fontWeight = 'bold';
                spanCC.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Call Center ';
            }
            else if (div_id == "divITPS")
            {
                divITPS.style.display = 'block';
                divImgITPS.style.display = 'block';
                spanITPS.style.fontWeight = 'bold';
                spanITPS.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> IT Professional Services ';
            }
            else if (div_id == "divWDI")
            {
                divWDI.style.display = 'block';
                divImgWDI.style.display = 'block';
                spanWDI.style.fontWeight = 'bold';
                spanWDI.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Wireless Device Integration ';
            }
            else if (div_id == "divTC")
            {
                divTC.style.display = 'block';
                divImgTC.style.display = 'block';
                spanTC.style.fontWeight = 'bold';
                spanTC.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Training Center ';
            }
            
            if (spanBreadCrumbs.innerHTML != "")
                spanBR.innerHTML = '<br /><br />';
            else
                spanBR.innerHTML = '';
        }
        else if (top_level == "Products")
        {
            var divProducts = document.getElementById('divProducts');
            var divACC = document.getElementById('divACC');
            var divCFNP = document.getElementById('divCFNP');
            var divEA = document.getElementById('divEA');
            var divEF = document.getElementById('divEF');
            var divEWF = document.getElementById('divEWF');
            var divEHR = document.getElementById('divEHR');
            var divEDM = document.getElementById('divEDM');
            var divPD = document.getElementById('divPD');
            var divIVR = document.getElementById('divIVR');
            var divCTI = document.getElementById('divCTI');
            var divENS = document.getElementById('divENS');
            var divCT = document.getElementById('divCT');
            var divRD = document.getElementById('divRD');
            
            var divImgProducts = document.getElementById('divImgProducts');
            var divImgACC = document.getElementById('divImgACC');
            var divImgCFNP = document.getElementById('divImgCFNP');
            var divImgEA = document.getElementById('divImgEA');
            var divImgEF = document.getElementById('divImgEF');
            var divImgEWF = document.getElementById('divImgEWF');
            var divImgEHR = document.getElementById('divImgEHR');
            var divImgEDM = document.getElementById('divImgEDM');
            var divImgPD = document.getElementById('divImgPD');
            var divImgIVR = document.getElementById('divImgIVR');
            var divImgCTI = document.getElementById('divImgCTI');
            var divImgENS = document.getElementById('divImgENS');
            var divImgCT = document.getElementById('divImgCT');
            var divImgRD = document.getElementById('divImgRD');
            
            var spanACC = document.getElementById('spACC');
            var spanCFNP = document.getElementById('spCFNP');
            var spanEA = document.getElementById('spEA');
            var spanEF = document.getElementById('spEF');
            var spanEWF = document.getElementById('spEWF');
            var spanEHR = document.getElementById('spEHR');
            var spanEDM = document.getElementById('spEDM');
            var spanPD = document.getElementById('spPD');
            var spanIVR = document.getElementById('spIVR');
            var spanCTI = document.getElementById('spCTI');
            var spanENS = document.getElementById('spENS');
            var spanCT = document.getElementById('spCT');
            var spanRD = document.getElementById('spRD');
            var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            var spanBR = document.getElementById('spBR');
            
            divProducts.style.display = 'none';
            divACC.style.display = 'none';
            divCFNP.style.display = 'none';
            divEA.style.display = 'none';
            divEF.style.display = 'none';
            divEWF.style.display = 'none';
            divEHR.style.display = 'none';
            divEDM.style.display = 'none';
            divPD.style.display = 'none';
            divIVR.style.display = 'none';
            divCTI.style.display = 'none';
            divENS.style.display = 'none';
            divCT.style.display = 'none';
            divRD.style.display = 'none';
            
            divImgProducts.style.display = 'none';
            divImgACC.style.display = 'none';
            divImgCFNP.style.display = 'none';
            divImgEA.style.display = 'none';
            divImgEF.style.display = 'none';
            divImgEWF.style.display = 'none';
            divImgEHR.style.display = 'none';
            divImgEDM.style.display = 'none';
            divImgPD.style.display = 'none';
            divImgIVR.style.display = 'none';
            divImgCTI.style.display = 'none';
            divImgENS.style.display = 'none';
            divImgCT.style.display = 'none';
            divImgRD.style.display = 'none';
            
            spanACC.style.fontWeight = 'normal';
            spanCFNP.style.fontWeight = 'normal';
            spanEA.style.fontWeight = 'normal';
            spanEF.style.fontWeight = 'normal';
            spanEWF.style.fontWeight = 'normal';
            spanEHR.style.fontWeight = 'normal';
            spanEDM.style.fontWeight = 'normal';
            spanPD.style.fontWeight = 'normal';
            spanIVR.style.fontWeight = 'normal';
            spanCTI.style.fontWeight = 'normal';
            spanENS.style.fontWeight = 'normal';
            spanCT.style.fontWeight = 'normal';
            spanRD.style.fontWeight = 'normal';
            
            spanACC.style.color = '#404040';
            spanCFNP.style.color = '#404040';
            spanEA.style.color = '#404040';
            spanEF.style.color = '#404040';
            spanEWF.style.color = '#404040';
            spanEHR.style.color = '#404040';
            spanEDM.style.color = '#404040';
            spanPD.style.color = '#404040';
            spanIVR.style.color = '#404040';
            spanCTI.style.color = '#404040';
            spanENS.style.color = '#404040';
            spanCT.style.color = '#404040';
            spanRD.style.color = '#404040';
            spanBreadCrumbs.innerHTML = '<a href="#" class="BreadCrumbs" onclick="ShowDIV(\'Products\', \'divProducts\')">Products</a> ';
            
            if (div_id == "divProducts")
            {
                divProducts.style.display = 'block';
                divImgProducts.style.display = 'block';
                spanBreadCrumbs.innerHTML = '';
            }
            else if (div_id == "divACC")
            {
                divACC.style.display = 'block';
                divImgACC.style.display = 'block';
                spanACC.style.fontWeight = 'bold';
                spanACC.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> ActiCamCare ';
            }
            else if (div_id == "divCFNP")
            {
                divCFNP.style.display = 'block';
                divImgCFNP.style.display = 'block';
                spanCFNP.style.fontWeight = 'bold';
                spanCFNP.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Custom Food & Nutrition Program ';
            }
            else if (div_id == "divEA")
            {
                divEA.style.display = 'block';
                divImgEA.style.display = 'block';
                spanEA.style.fontWeight = 'bold';
                spanEA.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> MST eAccounting&#8482 ';
            } 
            else if (div_id == "divEF")
            {
                divEF.style.display = 'block';
                divImgEF.style.display = 'block';
                spanEF.style.fontWeight = 'bold';
                spanEF.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> MST eForm&#8482 ';
            } 
            else if (div_id == "divEWF")
            {
                divEWF.style.display = 'block';
                divImgEWF.style.display = 'block';
                spanEWF.style.fontWeight = 'bold';
                spanEWF.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> MST eWorkflow&#8482 ';
            } 
            else if (div_id == "divEHR")
            {
                divEHR.style.display = 'block';
                divImgEHR.style.display = 'block';
                spanEHR.style.fontWeight = 'bold';
                spanEHR.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> MST eHuman Resources&#8482 ';
            } 
            else if (div_id == "divEDM")
            {
                divEDM.style.display = 'block';
                divImgEDM.style.display = 'block';
                spanEDM.style.fontWeight = 'bold';
                spanEDM.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> MST eDocument Management&#8482 ';
            } 
            else if (div_id == "divPD")
            {
                divPD.style.display = 'block';
                divImgPD.style.display = 'block';
                spanPD.style.fontWeight = 'bold';
                spanPD.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Cyberdial Predictive Dialing System ';
            } 
            else if (div_id == "divIVR")
            {
                divIVR.style.display = 'block';
                divImgIVR.style.display = 'block';
                spanIVR.style.fontWeight = 'bold';
                spanIVR.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Interactive Voice Response (IVR) ';
            } 
            else if (div_id == "divCTI")
            {
                divCTI.style.display = 'block';
                divImgCTI.style.display = 'block';
                spanCTI.style.fontWeight = 'bold';
                spanCTI.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Computer Telephony Integration (CTI) ';
            } 
            else if (div_id == "divENS")
            {
                divENS.style.display = 'block';
                divImgENS.style.display = 'block';
                spanENS.style.fontWeight = 'bold';
                spanENS.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Emergency Notification Systems ';
            } 
            else if (div_id == "divCT")
            {
                divCT.style.display = 'block';
                divImgCT.style.display = 'block';
                spanCT.style.fontWeight = 'bold';
                spanCT.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Correspondence Tracking ';
            } 
            else if (div_id == "divRD")
            {
                divRD.style.display = 'block';
                divImgRD.style.display = 'block';
                spanRD.style.fontWeight = 'bold';
                spanRD.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Request Demo ';
            } 
            
            if (spanBreadCrumbs.innerHTML != "")
                spanBR.innerHTML = '<br /><br />';
            else
                spanBR.innerHTML = '';
        }
        else if (top_level == "CaseStudies")
        {
       
            
            var divCaseStudies = document.getElementById('divCaseStudies');
            var divCSS = document.getElementById('divCSS');
            var divCT = document.getElementById('divCT');
            var divCA = document.getElementById('divCA');
            var divCaseACIS = document.getElementById('divCaseACIS');
            var divCaseGED = document.getElementById('divCaseGED');
             
            var divImgCaseStudies = document.getElementById('divImgCaseStudies');
            var divImgCSS = document.getElementById('divImgCSS');
            var divImgCT = document.getElementById('divImgCT');
            var divImgCA = document.getElementById('divImgCA');
            var divImgCaseACIS = document.getElementById('divImgCaseACIS');
            var divImgCaseGED = document.getElementById('divImgCaseGED');
            
            var spanCSS = document.getElementById('spCSS');
            var spanCT = document.getElementById('spCT');
            var spanCA = document.getElementById('spCA');
            var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            var spanBR = document.getElementById('spBR');
            
            divCaseStudies.style.display = 'none';
            divCSS.style.display = 'none';
            divCT.style.display = 'none';
            divCA.style.display = 'none';
            divCaseACIS.style.display = 'none';
            divCaseGED.style.display = 'none';
            
            divImgCaseStudies.style.display = 'none';
            divImgCSS.style.display = 'none';
            divImgCT.style.display = 'none';
            divImgCA.style.display = 'none';
            divImgCaseACIS.style.display = 'none';
            divImgCaseGED.style.display = 'none';
            
            spanCSS.style.fontWeight = 'normal';
            spanCT.style.fontWeight = 'normal';
            spanCA.style.fontWeight = 'normal';
            
            spanCSS.style.color = '#404040';
            spanCT.style.color = '#404040';
            spanCA.style.color = '#404040';
            spanBreadCrumbs.innerHTML = '<a href="#" class="BreadCrumbs" onclick="ShowDIV(\'CaseStudies\', \'divCaseStudies\')">Case Studies</a> ';
            
            if (div_id == "divCaseStudies")
            {
                divCaseStudies.style.display = 'block';
                divImgCaseStudies.style.display = 'block';
                spanBreadCrumbs.innerHTML = '';
            }
            else if (div_id == "divCSS")
            {
                divCSS.style.display = 'block';
                divImgCSS.style.display = 'block';
                spanCSS.style.fontWeight = 'bold';
                spanCSS.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Customer Success Stories ';
            }
            else if (div_id == "divCT")
            {
                divCT.style.display = 'block';
                divImgCT.style.display = 'block';
                spanCT.style.fontWeight = 'bold';
                spanCT.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Customer Testimonial ';
            }
            else if (div_id == "divCA")
            {
                divCA.style.display = 'block';
                divImgCA.style.display = 'block';
                spanCA.style.fontWeight = 'bold';
                spanCA.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Customer Awards ';
            }
            else if (div_id == "divCaseACIS")
            {
                divCaseACIS.style.display = 'block';
                divImgCaseACIS.style.display = 'block';
                spanBreadCrumbs.innerHTML = '<a href="#" class="Case" onclick="ShowDIV(\'CaseStudies\', \'divCaseStudies\')">Back to Case Studies</a>';
            }
            else if (div_id == "divCaseGED")
            {
                divCaseGED.style.display = 'block';
                divImgCaseGED.style.display = 'block';
                spanBreadCrumbs.innerHTML = '<a href="#" class="Case" onclick="ShowDIV(\'CaseStudies\', \'divCaseStudies\')">Back to Case Studies</a>';
            }
            
            if (spanBreadCrumbs.innerHTML != "")
                spanBR.innerHTML = '<br /><br />';
            else
                spanBR.innerHTML = '';
        }
        else if (top_level == "News")
        {
            var divNews = document.getElementById('divNews');
            var divCNE = document.getElementById('divCNE');
            var divLPS = document.getElementById('divLPS');
            var divCS = document.getElementById('divCS');
            var divCON = document.getElementById('divCON');
            
            var divImgNews = document.getElementById('divImgNews');
            var divImgCNE = document.getElementById('divImgCNE');
            var divImgLPS = document.getElementById('divImgLPS');
            var divImgCS = document.getElementById('divImgCS');
            var divImgCON = document.getElementById('divImgCON');
            
            //var spanCNE = document.getElementById('spCNE');
            var spanLPS = document.getElementById('spLPS');
            var spanCS = document.getElementById('spCS');
            var spanCON = document.getElementById('spCON');
            var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            var spanBR = document.getElementById('spBR');
            
            divNews.style.display = 'none';
            divCNE.style.display = 'none';
            divLPS.style.display = 'none';
            divCS.style.display = 'none';
            divCON.style.display = 'none';
            
            divImgNews.style.display = 'none';
            divImgCNE.style.display = 'none';
            divImgLPS.style.display = 'none';
            divImgCS.style.display = 'none';
            divImgCON.style.display = 'none';
            
            //spanCNE.style.fontWeight = 'normal';
            spanLPS.style.fontWeight = 'normal';
            spanCS.style.fontWeight = 'normal';
            spanCON.style.fontWeight = 'normal';
            
            //spanCNE.style.color = '#404040';
            spanLPS.style.color = '#404040';
            spanCS.style.color = '#404040';
            spanCON.style.color = '#404040';
            spanBreadCrumbs.innerHTML = '<a href="#" class="BreadCrumbs" onclick="ShowDIV(\'News\', \'divNews\')">News & Events</a> ';
            
            if (div_id == "divNews")
            {
                divNews.style.display = 'block';
                divImgNews.style.display = 'block';
                spanBreadCrumbs.innerHTML = '';
            }
            else if (div_id == "divCNE")
            {
                divCNE.style.display = 'block';
                divImgCNE.style.display = 'block';
                spanCNE.style.fontWeight = 'bold';
                spanCNE.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Company News & Events ';
            }
            else if (div_id == "divLPS")
            {
                divLPS.style.display = 'block';
                divImgLPS.style.display = 'block';
                spanLPS.style.fontWeight = 'bold';
                spanLPS.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Partners\' Sites ';
            }
            else if (div_id == "divCS")
            {
                divCS.style.display = 'block';
                divImgCS.style.display = 'block';
                spanCS.style.fontWeight = 'bold';
                spanCS.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Customer Sites ';
            }
            else if (div_id == "divCON")
            {
                divCON.style.display = 'block';
                divImgCON.style.display = 'block';
                spanCON.style.fontWeight = 'bold';
                spanCON.style.color = '#000';
                spanBreadCrumbs.innerHTML = spanBreadCrumbs.innerHTML + '> Contracts ';
            }
            
            if (spanBreadCrumbs.innerHTML != "")
                spanBR.innerHTML = '<br /><br />';
            else
                spanBR.innerHTML = '';
        }
        else if (top_level == "Contact")
        {
            var divContact = document.getElementById('divContact');
            var divImgContact = document.getElementById('divImgContact');
            //var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            
            divContact.style.display = 'none';
            divImgContact.style.display = 'none';
            
            //spanBreadCrumbs.innerText = 'Contact ';
            
            if (div_id == "divContact")
            {
                divContact.style.display = 'block';
                divImgContact.style.display = 'block';
            }
        }
        else if (top_level == "Login")
        {
            var divLoginMain = document.getElementById('divLoginMain');
            var divNewUser = document.getElementById('divNewUser');
            var divForgetPW = document.getElementById('divForgetPW');
            //var spanBreadCrumbs = document.getElementById('spBreadCrumbs');
            
            divLoginMain.style.display = 'none';
            divNewUser.style.display = 'none';
            divForgetPW.style.display = 'none';
            
            //spanBreadCrumbs.innerText = 'MST Workgroup ';
            
            if (div_id == "divLoginMain")
                divLoginMain.style.display = 'block';
            else if (div_id == "divNewUser")
                divNewUser.style.display = 'block';
            else if (div_id == "divForgetPW")
                divForgetPW.style.display = 'block';
        }
    }
    catch(err)
    {
        alert('[JavascriptError.ShowDIV]: ' + err);
    }
}


