function toggleAccordion(element) { var accordion = element.parentElement; var content = accordion.querySelector('.accordion-content'); // Close all other accordion items var allAccordions = document.querySelectorAll('.accordion'); allAccordions.forEach(function (acc) { var accContent = acc.querySelector('.accordion-content'); if (acc !== accordion) { acc.classList.remove('active'); accContent.style.maxHeight = null; } }); // Toggle the clicked accordion accordion.classList.toggle('active'); if (accordion.classList.contains('active')) { content.style.maxHeight = content.scrollHeight + 'px'; } else { content.style.maxHeight = null; } } function redirectToSchedule(linkElement) { // Find the closest accordion item and get the course title const accordionItem = linkElement.closest('.accordion'); const courseTitleElement = accordionItem.querySelector('.accordion-line-one-title h3'); if (courseTitleElement) { var courseInput = courseTitleElement.innerText; // Capture the course title var redirectUrl = 'https://bicint.com/our-courses/course-schedule/?search=' + encodeURIComponent(courseInput); // Redirect to the new URL window.location.href = redirectUrl; } } document.addEventListener("DOMContentLoaded", function () { const menuItems = { // Data Analysis and Reporting "Business Intelligence": "Data Analysis and Reporting", "Dashboards and Visualizations": "Data Analysis and Reporting", "Data Visualization": "Data Analysis and Reporting", "Statistical Analysis": "Data Analysis and Reporting", "Reporting and Presentation": "Data Analysis and Reporting", "Industry-Specific Data Analysis": "Data Analysis and Reporting", // Business and Commerce "Marketing and Sales": "Business and Commerce", "Human Resources": "Business and Commerce", "Accounting and Finance": "Business and Commerce", "Planning and Operations": "Business and Commerce", "Management and Leadership": "Business and Commerce", "Soft Skills and Personal Development": "Business and Commerce", "Administration and Secretarial": "Business and Commerce", "Logistics and Supply Chain": "Business and Commerce", "Banking and Insurance": "Business and Commerce", "Audit, Governance, Risk and Compliance": "Business and Commerce", "Microsoft": "Business and Commerce", "Entrepreneurship": "Business and Commerce", // Technology and Innovation "Cybersecurity": "Technology and Innovation", "Information Assurance": "Technology and Innovation", "Data Science": "Technology and Innovation", "Cloud Computing and Virtualization": "Technology and Innovation", "Innovation Management": "Technology and Innovation", "AI and Machine Learning": "Technology and Innovation", "Blockchain Technology": "Technology and Innovation", "Internet of Things": "Technology and Innovation", "AR and VR": "Technology and Innovation", "Robotic Process Automation": "Technology and Innovation", "DevOps and CI": "Technology and Innovation", "Digital Transformation": "Technology and Innovation", "Tech Entrepreneurship": "Technology and Innovation", // Industrial Development "Construction": "Industrial Development", "Engineering": "Industrial Development", "Tourism and Hospitality": "Industrial Development", "FMCG": "Industrial Development", "Telecommunication": "Industrial Development", "Farming and Agriculture": "Industrial Development", "Mining": "Industrial Development", "Aviation": "Industrial Development", "Food and Beverage": "Industrial Development", "Infrastructure": "Industrial Development", "Safety, Health, Environment and Quality": "Industrial Development", "Energy and Utilities": "Industrial Development", "Forestry and Fisheries": "Industrial Development", "Waste Management": "Industrial Development", "Transportation": "Industrial Development", "Manufacturing": "Industrial Development", // Public Sector and SOEs "Departments": "Public Sector and SOEs", "Municipalities": "Public Sector and SOEs", "State Owned Entities": "Public Sector and SOEs", // Scientific and Healthcare "Scientific Research": "Scientific and Healthcare", "Healthcare Administration": "Scientific and Healthcare", "Healthcare Financial Management": "Scientific and Healthcare", "Healthcare IT and Informatics": "Scientific and Healthcare" }; const pageTitle = document.title.split(" - ")[0]; // Get the page title before the dash const menuLabel = document.getElementById("menu-label"); if (menuItems[pageTitle]) { menuLabel.textContent = menuItems[pageTitle]; } else { menuLabel.textContent = "Menu"; } });