var url=window.location.toString();
// CHANGE BANNER
if(url.indexOf("/aboutasl/")>=0){
document.getElementById('bannerImg').src="../images/aboutus-banner.gif";
}
if(url.indexOf("/solutions/")>=0){
document.getElementById('bannerImg').src="../images/solutions-banner.gif";
}
if(url.indexOf("/careers/")>=0){
document.getElementById('bannerImg').src="../images/careers-banner.gif";
}
if(url.indexOf("/casestudy/")>=0){
document.getElementById('bannerImg').src="../images/case-banner.gif";
}
if(url.indexOf("/contact/")>=0){
document.getElementById('bannerImg').src="../images/contact-banner.gif";
}
// ABOUT ASL
if(url.indexOf("aboutasl.php")>=0){
//document.getElementById("title").innerHTML ="> About ASL";
}
if(url.indexOf("Management.php")>=0){
//document.getElementById("title").innerHTML ="> <a href='../aboutasl/Management.php'> Management</a> ";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/Management.php'> Management</a> > <a>Board of Directors</a>";
document.getElementById("sub-Management").className ="navmenu_active";
}
if(url.indexOf("newsletter.php")>=0){
document.getElementById("title").innerHTML ="> <a href='../aboutasl/newsletter.php'> ASL Newsletter</a> ";
document.getElementById("sub-newsletter").className ="navmenu_active";
}
if(url.indexOf("awards.php")>=0){
document.getElementById("sub-awards").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/awards.php'> Awards";
}
if(url.indexOf("investor.php")>=0){
document.getElementById("sub-investor").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/investor.php'> ASL Investor Relations";
}
if(url.indexOf("milestones.php")>=0){
document.getElementById("sub-milestones").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/milestones.php'> Milestones";
}

if((url.indexOf("news.php")>=0)||(url.indexOf("news-")>=0)){
document.getElementById("sub-news").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/news.php'> ASL News/ Announcements/ Circulars and Events ";
}
if(url.indexOf("spotlight.php")>=0){
document.getElementById("sub-spotlight").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/spotlight.php'> In the Spotlight";
}
//if((url.indexOf("locations.php")>=0)||(url.indexOf("locations-")>=0)){
if((url.indexOf("locations.php")>=0)){
document.getElementById("sub-locations").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/locations.php'> Office Locations ";
}
if((url.indexOf("office-locations-Macau.php")>=0)){
document.getElementById("sub-locations").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/office-locations-Macau.php'> CSA Automated (Macau) Limited </a>";
}
if((url.indexOf("office-locations-Guangzhou.php")>=0)){
document.getElementById("sub-locations").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/office-locations-Guangzhou.php'> Guangzhou Automated Systems Limited</a>  ";
}
if((url.indexOf("office-locations-Taiwan.php")>=0)){
document.getElementById("sub-locations").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/office-locations-Taiwan.php'>Taiwan Automated Systems Ltd. ";
}

if(url.indexOf("quality-assurance.php")>=0){
document.getElementById("sub-quality-assurance").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/quality-assurance.php'> Quality Assurance ";
document.getElementById('menu-btm').src="../images/menu-btm-on.gif";
}

//ANOUT ASL - ASL Investor Relations
if(url.indexOf("investor-relations-financial-reports.php")>=0){
document.getElementById("sub-investor-relations-financial-reports").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/investor-relations-financial-reports.php'> Financial Reports";
}
if(url.indexOf("investor-relations-company-profile.php")>=0){
document.getElementById("sub-investor-relations-company-profile").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/investor-relations-company-profile.php'> Company Profile";
}
if(url.indexOf("investor-relations-contact.php")>=0){
document.getElementById("sub-investor-relations-contact").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/investor-relations-contact.php'> Financial Relations Contact";
}
if(url.indexOf("investor-relations-board-committees1.php")>=0){
document.getElementById("sub-investor-relations-board-committees1").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/investor-relations-board-committees1.php'> Board Committees - Terms of Reference for The Audit Committee";
}
if(url.indexOf("investor-relations-board-committees2.php")>=0){
document.getElementById("sub-investor-relations-board-committees2").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../aboutasl/investor-relations-board-committees2.php'> Board Committees - Terms of Reference for the Remuneration Committee";
document.getElementById('menu-btm').src="../images/menu-btm-on.gif";
}

//ABOUT ASL - ASL News/ Announcements/ Circulars and Events - Event
if(url.indexOf("news-events")>=0){
document.getElementById("title").innerHTML =" > <a href='../aboutasl/news.php'> ASL News/ Announcements/ Circulars and Events </a>> <a href='../aboutasl/news-events.php'>Events</a>";
document.getElementById("sub-news-events").className ="navmenu_active navmenu_sub";
document.getElementById('menu-btm').src="../images/menu-btm-on.gif";
}
if(url.indexOf("news-press-releases")>=0){
document.getElementById("sub-news-press-releases").className ="navmenu_active navmenu_sub";
}
if(url.indexOf("news-announcements-circulars")>=0){
document.getElementById("title").innerHTML =" > <a href='../aboutasl/news.php'> ASL News/ Announcements/ Circulars and Events</a> > <a href='../aboutasl/news-announcements-circulars.php'>Announcements and Circulars</a>";
document.getElementById("sub-news-announcements-circulars").className ="navmenu_active navmenu_sub";
}

//SOLUTIONS
if(url.indexOf("/solutions/index.php")>=0){
document.getElementById("title").innerHTML ="> <a href='../solutions/index.php'>Solutions</a>";
}
//SOLUTIONS - Soltions
if(url.indexOf("/solutions/solutions-index.php")>=0){
document.getElementById("title").innerHTML ="> <a href='../solutions/index.php'>Solutions</a> > <a href='../solutions/solutions-index.php'> Solutions</a>";
document.getElementById("sub-solutions").className ="navmenu_active";
}
if(url.indexOf("/solutions/solutions-cyber-office.php")>=0){
document.getElementById("title").innerHTML ="> <a href='../solutions/index.php'>Solutions</a> > <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='../solutions/solutions-cyber-office.php'> Cyber Office</a>";
document.getElementById("sub-solutions").className ="navmenu_active";
}
if(url.indexOf("application-performance-management.php")>=0){
document.getElementById("sub-application-performance-management").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='application-performance-management.php'>Application Performance Management</a>";
}
if(url.indexOf("asset-management.php")>=0){
document.getElementById("sub-asset-management").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='asset-management.php'> Asset Management </a>";
}
if(url.indexOf("booking-ticketing.php")>=0){
document.getElementById("sub-booking-ticketing").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='booking-ticketing.php'> Booking and Ticketing</a>";
}
if(url.indexOf("eHRMS.php")>=0){
document.getElementById("sub-eHRMS").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='eHRMS.php'> eHRMS Web-based Human Resources Management System</a>";
}
if(url.indexOf("enterprise-business-management-system.php")>=0){
document.getElementById("sub-enterprise-business-management-system").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='enterprise-business-management-system.php'> Enterprise Business Management System</a>";
}
if(url.indexOf("help-desk.php")>=0){
document.getElementById("sub-help-desk").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='help-desk.php'> Help Desk</a>";
}
if(url.indexOf("hospitality.php")>=0){
document.getElementById("sub-hospitality").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='hospitality.php'> Hospitality</a>";
}
if(url.indexOf("security.php")>=0){
document.getElementById("sub-security").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='security.php'> Security </a>";
}
if(url.indexOf("server-based-computing.php")>=0){
document.getElementById("sub-server-based-computing").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='server-based-computing.php'> Server-based Computing </a>";
}
if(url.indexOf("service-level-availability.php")>=0){
document.getElementById("sub-service-level-availability").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='service-level-availability.php'> Service Level Availability </a>";
}
if(url.indexOf("storage-management.php")>=0){
document.getElementById("sub-storage-management").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='storage-management.php'> Storage Management </a>";
}
if(url.indexOf("thin-client-networking.php")>=0){
document.getElementById("sub-thin-client-networking").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='thin-client-networking.php'> Thin-client Networking </a>";
}
if(url.indexOf("trading.php")>=0){
document.getElementById("sub-trading").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='trading.php'> Trading</a>";
}
if(url.indexOf("training-management.php")>=0){
document.getElementById("sub-training-management").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='training-management.php'> Training Management</a>";
}
if(url.indexOf("transportation-space-allocation.php")>=0){
document.getElementById("sub-transportation-space-allocation").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/solutions-index.php'> Solutions</a> > <a href='transportation-space-allocation.php'> Transportation Space Allocation</a>";
document.getElementById('menu-btm').src="../images/menu-btm-on.gif";
}

//SOLUTIONS - Services
if(url.indexOf("services-index.php")>=0){
document.getElementById("title").innerHTML ="> <a href='../solutions/index.php'>Solutions</a> > <a href='../solutions/services-index.php'>Services</a>";
document.getElementById("sub-services").className ="navmenu_active";
}
if(url.indexOf("application-development.php")>=0){
document.getElementById("sub-application-development").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a><span style='color:#000000'> > <a href='../solutions/application-development.php'>Application Development</a>";
}
if(url.indexOf("asl-swift-service.php")>=0){
document.getElementById("sub-asl-swift-service").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a> > <a href='../solutions/asl-swift-service.php'>ASL SWIFT Service</a>";
}
if(url.indexOf("consultancy.php")>=0){
document.getElementById("sub-consultancy").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a>> <a href='../solutions/consultancy.php'>Consultancy</a>";
}
if(url.indexOf("digital-imaging.php")>=0){
document.getElementById("sub-digital-imaging").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a> > <a href='../solutions/digital-imaging.php'>Digital Imaging</a>";
}
if(url.indexOf("outsourcing.php")>=0){
document.getElementById("sub-outsourcing").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a> > <a href='../solutions/outsourcing.php'>Outsourcing</a>";
}
if(url.indexOf("systems-integration.php")>=0){
document.getElementById("sub-systems-integration").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a> > <a href='../solutions/systems-integration.php'>Systems Integration</a>";
}
if(url.indexOf("technical-support.php")>=0){
document.getElementById("sub-technical-support").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a> > <a href='../solutions/technical-support.php'>Technical Support</a>";
}
if(url.indexOf("training.php")>=0){
document.getElementById("sub-training").className ="navmenu_active navmenu_sub";
document.getElementById("title").innerHTML ="> <a href='../solutions/services-index.php'>Services</a> > <a href='../solutions/training.php'>Training</a>";
document.getElementById('menu-btm').src="../images/menu-btm-on.gif";
}

//SOLUTIONS - Products
if(url.indexOf("products-index.php")>=0){
//document.getElementById("sub-training").className ="navmenu_active";
document.getElementById("title").innerHTML ="> <a href='../solutions/index.php'>Solutions</a> >  <a href='../solutions/products-index.php'>Products</a>";
document.getElementById("sub-products").className ="navmenu_active";
document.getElementById('menu-btm').src="../images/menu-btm-on.gif";
}

//CONTACT
if(url.indexOf("/contact/index.php")>=0){
//document.getElementById("sub-training").className ="navmenu_active";
document.getElementById("title").innerHTML =">  <a href='../contact/index.php'>Contact Us</a>";
}
if(url.indexOf("form.php")>=0){
document.getElementById("title").innerHTML =">  <a href='../contact/index.php'>Contact Us</a> >  <a href='../contact/form.php'>Contact Form</a>";
}

//DISCLAIMER & PRIVACY
if(url.indexOf("disclaimer.php")>=0){
document.getElementById("title").innerHTML =">  <a href='disclaimer.php'>Legal Disclaimer</a>";
}
if(url.indexOf("privacy.php")>=0){
document.getElementById("title").innerHTML =">  <a href='privacy.php'>Privacy Policy</a>";
}

