
//Declare Globle Variable
var objTabContent, objTab, objCurTab;
var curtab = 0;
var closetab = 0, tmpclosetab = 0, transtimer = 0, activeTab = 1;

function SetActiveTab(id) {
    activeTab = id;
    var objTabactive = document.getElementById("mnuTab" + activeTab);
    objTabactive.className = objTabactive.className.replace(" active", "");
    objTabactive.className = objTabactive.className.replace(" over", "");
    objTabactive.className = objTabactive.className + " active";
    DefaultMode(id);


}
function DefaultMode(tabid) {
    closetab = 0;

    stop_timer();

    if (curtab == tabid) return;
    objTabContent = document.getElementById("tabcontent");
    if (curtab == 0) {
        objTabContent.style.display = "";
        objTabContent.style.visibility = "visible";
    }
    objTab = document.getElementById("mnuTab" + tabid);
    objCurTab = document.getElementById("mnuTab" + curtab);
    objTabContent.innerHTML = "";
    objTabContent.style.height = "242px";

    objTab.className += " over";
    if (curtab > 0) {
        objCurTab.className = objCurTab.className.replace(" active", "");
        objCurTab.className = objCurTab.className.replace(" over", "");
    }
    objActiveTab = document.getElementById("mnuTab" + activeTab);
    if (activeTab > 0 && tabid != activeTab) {
        objActiveTab.className = objActiveTab.className.replace(" active", "");
        objActiveTab.className = objActiveTab.className.replace(" over", "");
    }
    curtab = tabid;
}
//This Function Call When Mouser Over On Tab
function changeTab(tabid) {
    closetab = 0;

    stop_timer();

    var strImagesPath = "/Themes/RNPL/";

    if (curtab == tabid) return;
    objTabContent = document.getElementById("tabcontent");
    if (curtab == 0) {
        objTabContent.style.display = "";
        objTabContent.style.visibility = "visible";
    }
    objTab = document.getElementById("mnuTab" + tabid);
    objCurTab = document.getElementById("mnuTab" + curtab);
    objTab.style.cursor = "pointer";
    objTabContent.innerHTML = "";
    objTabContent.style.height = "242px";
    switch (tabid) {

        case 1:
            objTabContent.innerHTML = "<br/><br/><table width='70%' cellspacing='3' cellpadding='2'><tr><td width='18%' valign='top' class='joinhands_linksbanner_heading' ><span class='topic_content_bold'>Verticals </span></td><td width='85%'><a href='http://www.rigelnetworks.com/retail_ecommerce_software.asp' target='_self' class='bottomlink'>Retail</a>, <a href='http://www.rigelnetworks.com/healthcare_clinical_software.asp' target='_self' class='bottomlink'>Home Healthcare</a>, <a href='http://www.rigelnetworks.com/construction_roofing_industry.asp' target='_self' class='bottomlink'>Construction &amp; Roofing</a>, <a href='http://www.rigelnetworks.com/video_security_industry.asp' target='_self' class='bottomlink'>Video Security</a>, <a href='http://www.rigelnetworks.com/finance_accounting_software.asp' target='_self' class='bottomlink'>Accounting</a>,<br><a href='http://www.rigelnetworks.com/entertainment_leisure_industry.asp'_self' class='bottomlink'>Entertainment &amp; Leisure</a>, <a href='http://www.rigelnetworks.com/mortgage_management_system.asp' target='_self' class='bottomlink'>Mortgage &amp; Finance</a></td></tr><tr><td valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Featured Verticals</span></td><td width='85%' ><a href='http://www.rigelnetworks.com/jewelry_business_software.asp' target='_self' class='bottomlink'>Jewelry</a>, <a href='http://www.rigelnetworks.com/hospitality_hotel_software.asp' target='_self' class='bottomlink'>Hospitality</a></td></tr></table>";
            objTabContent.className = 'tab1contentbg';
            break;
        case 2:
            objTabContent.innerHTML += "  ";
            objTabContent.innerHTML += "<br/><br/><table width='680px' cellspacing='2' cellpadding='2'><tr><td width='22%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/application_development.asp' class='bottomlink'>Application Development</a></td><td width='26%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/application_maintenance.asp' class='bottomlink'>Application Maintenance</a></td><td width='30%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/legacy_migration_reengineering.asp' class='bottomlink'>Legacy Migration &amp; Reengineering</a></td><td width='22%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/new_product_development.asp' class='bottomlink'>Product Development</a></td></tr><tr><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_innovation_research.asp' class='bottomlink'>Research &amp; Innovation</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_integration_service.asp' class='bottomlink'>Software Integration</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/it_support_services.asp' class='bottomlink'>Support Services</a></td><td width='22%'>&nbsp;</td></tr></table>";
            document.getElementById("tabcontent").className = 'tab2contentbg';
            break;
        case 3:
            objTabContent.innerHTML += "";
            objTabContent.innerHTML += "<br/><br/><table width='70%' cellspacing='3' cellpadding='2'><tr><td width='18%' valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Solutions</span></td><td width='30%'><a href='http://www.rigelnetworks.com/offshore_e_commerce_development.asp' target='_self' class='bottomlink'>E-Commerce</a>, <a href='http://www.rigelnetworks.com/business_management_applications.asp' target='_self'  class='bottomlink'>Business Management Application</a>, <a  class='bottomlink' href='http://www.rigelnetworks.com/customer_relationship_management.asp' target='_self'>CRM</a>, <a class='bottomlink' href='http://www.rigelnetworks.com/mobile_solutions.asp' target='_self'>Mobile Solution</a>, <a class='bottomlink' href='http://www.rigelnetworks.com/custom_ecommerce_solutions.asp' target='_self'>B2B &amp; B2C</a>, <a href='http://www.rigelnetworks.com/network_server_solutions.asp' target='_self'  class='bottomlink'>Server Solution</a>, <br><a href='http://www.rigelnetworks.com/online_dating_solutions.asp' target='_self'  class='bottomlink'>Dating Solution</a>, <a href='http://www.rigelnetworks.com/content_management_system.asp' target='_self'  class='bottomlink'>CMS</a></td></tr><tr><td valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Products</span></td><td width='85%'><a href='http://www.rigelnetworks.com/net_serve_network_server_solution.asp' target='_self' class='bottomlink'>NETServe</a>, <a href='http://www.rigelnetworks.com/web_enabled_office_qplogic.asp' target='_self' class='bottomlink'>qpLogic</a></td></tr><tr><td valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Technology</span></td> <td width='85%'><a href='http://www.rigelnetworks.com/microsoft_dotnet_technology.asp' target='_self' class='bottomlink'>Microsoft.NET</a>, <a href='http://www.rigelnetworks.com/linux_technology.asp' target='_self' class='bottomlink'>Linux</a>,  <a href='http://www.rigelnetworks.com/interactive_flash_technology.asp' target='_self' class='bottomlink'>Flash</a>, <a href='http://www.rigelnetworks.com/ajax_web_technology.asp' target='_self' class='bottomlink'>AJAX</a></td></tr></table>";
            document.getElementById("tabcontent").className = 'tab3contentbg';
            break;
        case 4:
            objTabContent.innerHTML += "";
            objTabContent.innerHTML += "<br/><br/><table width='63%' cellspacing='2' cellpadding='2'><tr><td width='25%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/individual_customer_solution.asp' class='bottomlink'>Individual Customer</a></td><td width='30%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/custom_business_solution.asp' class='bottomlink'>Custom Business Solution</a></td><td width='20%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_solution_methodology.asp' class='bottomlink'>Methodology</a></td><td width='35%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_innovation.asp' class='bottomlink'>Innovation</a></td></tr><tr><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/thoughtful_leadership.asp' class='bottomlink'>Thoughtful Leadership</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_outsourcing_collaboration.asp' class='bottomlink'>Collaboration</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_global_resources_collaboration.asp' class='bottomlink'>Global Resources</a></td><td width='35%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_engagement.asp' class='bottomlink'>Engagement</a><a href='software_innovation.asp' class='bottomlink'></a></td></tr><tr><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_services_processes.asp' class='bottomlink'>Software Process</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_quality_assurance_processes.asp' class='bottomlink'>Quality</a></td></tr></table>";
            document.getElementById("tabcontent").className = 'tab4contentbg';

            break;
        case 5:
            objTabContent.innerHTML += "";
            objTabContent.innerHTML += "<br/><br/><table width='70%' cellspacing='3' cellpadding='2'><tr><td width='18%' valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Customers</span></td><td width='30%'><a href='http://www.rigelnetworks.com/software_services_request_quote.asp' class='bottomlink'>Request for Quote</a>, <a href='http://www.rigelnetworks.com/software_it_services_offerings.asp' class='bottomlink'>Rigel Offerings</a>, <a href='http://www.rigelnetworks.com/software_business_approach.asp' class='bottomlink'>Rigel Approach</a>, <a href='http://www.rigelnetworks.com/ict_competitive_advantage.asp' class='bottomlink'>Competitive Advantage</a>, <a href='http://www.rigelnetworks.com/it_industry_client_testimonials.asp' class='bottomlink'>Client Speak</a>, <a href='http://www.rigelnetworks.com/case-studies.asp' class='bottomlink'>Case Studies</a>, <br><a href='http://www.rigelnetworks.com/software_service_company_board_of_directors.asp' class='bottomlink'>Board of Directors</a>, <a href='http://www.rigelnetworks.com/software_firm_sustaining_growth.asp' class='bottomlink'>Sustaining Growth</a>, <a href='http://www.rigelnetworks.com/request_executive_summary.asp' class='bottomlink'>Request Executive Summary</a></td></tr><tr><td valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Career Seekers</span> </td><td width='85%' ><a href='http://www.rigelnetworks.com/life_at_rigel.asp' class='bottomlink'>Life @ Rigel</a>, <a href='http://www.rigelnetworks.com/software_company_employee_benefits.asp' class='bottomlink'>Employee Benefits</a>,  <a href='http://www.rigelnetworks.com/it_outsourcing_internship_program.asp' class='bottomlink'>Internship Program</a>, <a href='http://www.rigelnetworks.com/learning_at_rigel.asp' class='bottomlink'>Learning @ Rigel</a>, <a href='http://www.rigelnetworks.com/software_firm_code_of_conduct.asp' class='bottomlink'>Code of Conduct</a>, <a href='http://www.rigelnetworks.com/software_offerings.asp' class='bottomlink'>Areas of Work - Offerings</a>, <a href='http://www.rigelnetworks.com/it_company_current_openings.asp' class='bottomlink'>Current Openings</a>, <a href='http://www.rigelnetworks.com/rigercareer_applyonline.asp' class='bottomlink'>Apply Online</a></td></tr><tr><td valign='top' class='joinhands_linksbanner_heading'><span class='topic_content_bold'>Consultants</span> </td><td width='85%' ><a href='http://www.rigelnetworks.com/consultants_partners_resellers.asp' class='bottomlink'>Overview</a>, <a href='http://www.rigelnetworks.com/current_openings.asp' class='bottomlink'>Current Openings</a>,  <a href='http://www.rigelnetworks.com/software_sales_consultants.asp' class='bottomlink'>Apply Online</a></td></tr></table>"; document.getElementById("tabcontent").className = 'tab4contentbg';
            document.getElementById("tabcontent").className = 'tab5contentbg';
            break;
        case 6:
            objTabContent.innerHTML += "";
            objTabContent.innerHTML += "<br/><br/><table width='63%' cellspacing='2' cellpadding='2'><tr><td width='25%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_company.asp' target='_self' class='bottomlink'>Who We Are</a></td><td width='30%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/outsourcing_software_management_team.asp' target='_self' class='bottomlink'>Management Team</a></td><td width='20%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/advantage_software_services.asp' target='_self' class='bottomlink'>Why Rigel</a></td><td width='35%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_outsourcing_success_story.asp' target='_self' class='bottomlink'>Success Stories</a></td></tr><tr><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_applications_infrastructure.asp' target='_self' class='bottomlink'>Infrastructure</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/it_services.asp' target='_self' class='bottomlink'>How We Work</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/offshore_software_development.asp' target='_self' class='bottomlink' v>Our Philosophy</a></td><td width='35%'><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/software_development_culture.asp' target='_self' class='bottomlink'>Culture</a></td></tr><tr><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/innovative_software_applications_process.asp' target='_self' class='bottomlink'>Business Practices</a></td><td><img src='" + strImagesPath + "images/arrow-blue.gif' width='11' height='10' />&nbsp;<a href='http://www.rigelnetworks.com/indian_software_company_facts.asp' target='_self' class='bottomlink'>Quick Facts</a></td></tr></table>"; document.getElementById("tabcontent").className = 'tab4contentbg';
            document.getElementById("tabcontent").className = 'tab6contentbg';
            break;
        case 7:
            objTabContent.innerHTML += "";
            document.getElementById("tabcontent").className = 'tab7contentbgNone';

            break;
        default:
            objTabContent.innerHTML = "<div class='tnav_box'><div class='heading i_search'></div>";

    }

    objTab.className += " over";
    if (curtab > 0) {
        objCurTab.className = objCurTab.className.replace(" active", "");
        objCurTab.className = objCurTab.className.replace(" over", "");
    }
    objActiveTab = document.getElementById("mnuTab" + activeTab);
    if (activeTab > 0 && tabid != activeTab) {
        objActiveTab.className = objActiveTab.className.replace(" active", "");
        objActiveTab.className = objActiveTab.className.replace(" over", "");
    }
    curtab = tabid;
}
//This Function Call When Mouse Out
function closeme() {
    closetab = 1;
    tmpclosetab = 0;
    closethistab();
}
function closethistab() {
    transtimer = setTimeout("closethistab()", 10);
    if (!closetab) {
        stop_timer();
    }
    else {
        if (tmpclosetab < 100) {
            tmpclosetab++;
        }
        else {
            stop_timer();
            objActiveTab = document.getElementById("mnuTab" + activeTab);

            objActiveTab.className = objActiveTab.className.replace(" active", "") + " active";
            objTabContent = document.getElementById("tabcontent");

            switch (activeTab) {

                case 1:
                    objTabContent.className = 'tab1contentbgdefault';
                    break;
                case 2:
                    objTabContent.className = 'tab2contentbg';
                    break;
                case 3:
                    objTabContent.className = 'tab3contentbg';
                    break;
                case 4:
                    objTabContent.className = 'tab4contentbg';
                    break;
                case 5:
                    objTabContent.className = 'tab5contentbgNone';
                    break;
                case 6:
                    objTabContent.className = 'tab6contentbg';
                    break;
                default:
                    objTabContent.innerHTML = " ";
            }
            if (curtab > 0) {
                objCurTab = document.getElementById("mnuTab" + curtab);
                objCurTab.className = objCurTab.className.replace(" over", "");
            }
            objTabContent.style.display = "none";
            curtab = 0;
        }
    }
}
function stop_timer() {
    clearTimeout(transtimer); transtimer = 0;
    tmpclosetab = 0;
    closetab = 0;
}


