$(document).ready( function(){
if((location.pathname).toLowerCase().indexOf ('clinical-documentation')>-1){
   $(".sub_menu a:eq(0)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('electronic-health-record')>-1){
   $(".sub_menu a:eq(1)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('digital-forms')>-1){
   $(".sub_menu a:eq(2)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('referral-orders')>-1){
   $(".sub_menu a:eq(3)").addClass("current");
}

if((location.pathname).toLowerCase().indexOf ('products-patient-adherence')>-1){
   $(".sub_menu a:eq(4)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-hospitals')>-1){
   $(".sub_menu a:eq(0)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-medical-practices')>-1){
   $(".sub_menu a:eq(1)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-public-health')>-1){
   $(".sub_menu a:eq(2)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-correctional-health')>-1){
   $(".sub_menu a:eq(3)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-payers')>-1){
   $(".sub_menu a:eq(4)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-acos')>-1){
   $(".sub_menu a:eq(5)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('solutions-pharma')>-1){
   $(".sub_menu a:eq(6)").addClass("current");
}


if((location.pathname).toLowerCase().indexOf ('services-medical-transcription-services')>-1){
   $(".sub_menu a:eq(0)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('services-professional-services')>-1){
   $(".sub_menu a:eq(1)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('services-medical-billing-services')>-1){
   $(".sub_menu a:eq(2)").addClass("current");
}


if((location.pathname).toLowerCase().indexOf ('about-us-partners')>-1){
   $(".sub_menu a:eq(0)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('about-us-accolades')>-1){
   $(".sub_menu a:eq(1)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('about-us-careers')>-1){
   $(".sub_menu a:eq(2)").addClass("current");
}

if((location.pathname).toLowerCase().indexOf ('demo-request')>-1){
   $(".sub_menu a:eq(0)").addClass("current");
}
if((location.pathname).toLowerCase().indexOf ('contact-us')>-1){
   $(".sub_menu a:eq(1)").addClass("current");
}

if((location.pathname).toLowerCase().indexOf ('/home')>-1||location.pathname=='/'){
   $("#foxboro_menu ul li:first").addClass("active");
}
if((location.pathname).toLowerCase().indexOf ('/solutions')>-1){
   $("#foxboro_menu ul li:eq(1)").addClass("active");
}
if((location.pathname).toLowerCase().indexOf ('/products')>-1){
   $("#foxboro_menu ul li:eq(2)").addClass("active");
}
if((location.pathname).toLowerCase().indexOf ('/services')>-1){
   $("#foxboro_menu ul li:eq(3)").addClass("active");
}
if((location.pathname).toLowerCase().indexOf ('/about-us-overview')>-1){
   $("#foxboro_menu ul li:eq(4)").addClass("active");
}
if((location.pathname).toLowerCase().indexOf ('/newsroom')>-1){
   $("#foxboro_menu ul li:eq(5)").addClass("active");
}
if((location.pathname).toLowerCase().indexOf ('/contact-us')>-1){
   $("#foxboro_menu ul li:eq(6)").addClass("active");
}


//
});



