﻿
/* TOP NAVIGATION HI-LITE */

$(document).ready(function () {

    var CurrentPage = location.pathname;


    if (CurrentPage.indexOf('Default') > -1) {
        $("#Item1").toggleClass("leftcurve leftcurve_ON");
    }

    if (CurrentPage.indexOf('Company') > -1) {
        $("#Item2").toggleClass("nocurve nocurve_ON");
    }

    if (CurrentPage.indexOf('Solutions') > -1) {
        $("#Item3").toggleClass("nocurve nocurve_ON");
    }

    if (CurrentPage.indexOf('Resources') > -1) {
        $("#Item4").toggleClass("nocurve nocurve_ON");
    }

    if (CurrentPage.indexOf('Careers') > -1) {
        $("#Item5").toggleClass("nocurve nocurve_ON");

    }

    if (CurrentPage.indexOf('eCommerceSoftwareDeveloper') > -1) {
        $("#Item5").toggleClass("nocurve nocurve_ON");

    }

//    if (CurrentPage.indexOf('SoftwareDeveloper') > -1) {
//        $("#Item5").toggleClass("nocurve nocurve_ON");

//    }

    if (CurrentPage.indexOf('Contact') > -1) {
        $("#Item6").toggleClass("rightcurve rightcurve_ON");
    }


});


/* COLLAPSE/EXPAND */

    jQuery(document).ready(function () {
        jQuery(".CEcontent").hide();
        //toggle the componenet with class msg_body
        jQuery(".CEshow").click(function () {
            jQuery(this).prev(".CEcontent").slideToggle(500);


            if (this.innerHTML == 'read details') {

                this.innerHTML = "close details";
                $(this).toggleClass("icon_project_close icon_project_open");
            }

            else {
                this.innerHTML = "read details"
                $(this).toggleClass("icon_project_open icon_project_close");
            }

        });
    });




$(document).ready(function () {
    $("#btnAuthenticate").click(function () {
        alert("Invalid Username/Password");
    });
});
