
function HideShowDiv(divID, odrazka)
{
  if(document.getElementById(divID).style.display == "none")
  {
    document.getElementById(divID).style.display = "block";
    document.getElementById(odrazka).style.background = "transparent url(img/bullet1b.gif) no-repeat 0px 5px";
  }
  
  else
  {
  document.getElementById(divID).style.display = "none";
  document.getElementById(odrazka).style.background = "transparent url(img/bullet1.gif) no-repeat 0px 5px";
  }
}



// called from scripts\AC_RunActiveContent.js on body load
function OnLoadMenuSelection() {
  var url = location.pathname.slice(location.pathname.lastIndexOf("/")+1, location.pathname.length);
  
  switch (url) {
    // About PathevoŽ Solutions
    case 'pathevo_service.asp':
      SelectMenuItem('solutions','lisolutions','pathevo_service.asp');
    break;
    case 'pathevo_value.asp':
      SelectMenuItem('solutions','lisolutions','pathevo_value.asp');
    break;
    
    // PathevoŽ Software Services
    case 'pathevo_engineering_service.asp':
      SelectMenuItem('services','liservices','pathevo_engineering_service.asp');
    break;
    
    // About Subscriptions & Pricing
    case 'pathevo_individual_subscriptions.asp':
      SelectMenuItem('pricing','lipricing','pathevo_individual_subscriptions.asp');
    break;
    case 'pathevo_institutional_subscriptions.asp':
      SelectMenuItem('pricing','lipricing','pathevo_institutional_subscriptions.asp');
    break;
    case 'pathevo_subscription_certificates.asp':
      SelectMenuItem('pricing','lipricing','pathevo_subscription_certificates.asp');
    break;
    
    // Coming soon...
    case 'pathevo_pathassess.asp':
      SelectMenuItem('soon','lisoon','pathevo_pathassess.asp');
    break;
    case 'pathevo_collegesift.asp':
      SelectMenuItem('soon','lisoon','pathevo_collegesift.asp');
    break;

    // User Testimonials
    case 'pathevo_testimonials_institutional.aspx':
      SelectMenuItem('testimonials','litestimonials','pathevo_testimonials_institutional.aspx');
    break;
    case 'pathevo_testimonials_individual.aspx':
      SelectMenuItem('testimonials','litestimonials','pathevo_testimonials_individual.aspx');
    break;

    // PathevoŽ Service Updates    
    case 'pathevo_service_updates.asp':
      SelectMenuItem('serviceupdates','liserviceupdates','pathevo_service_updates.asp');
    break;

    // Clients & Partners    
    case 'pathevo_institutional_clients.asp':
      SelectMenuItem('clients','liclients','pathevo_institutional_clients.asp');
    break;
    case 'pathevo_current_partners.asp':
      SelectMenuItem('clients','liclients','pathevo_current_partners.asp');
    break;
    case 'pathevo_become_a_partner.aspx':
      SelectMenuItem('clients','liclients','pathevo_become_a_partner.aspx');
    break;

    // Conferences, Workshops & Webcast Schedules    
    case 'pathevo_upcoming_conferences.asp':
      SelectMenuItem('conferences','liconferences','pathevo_upcoming_conferences.asp');
    break;
    case 'pathevo_upcoming_workshops.aspx':
      SelectMenuItem('conferences','liconferences','pathevo_upcoming_workshops.aspx');
    break;
    case 'pathevo_upcoming_webcasts.aspx':
      SelectMenuItem('conferences','liconferences','pathevo_upcoming_webcasts.aspx');
    break;
    
    // More News & Events
    case 'news2008.asp':
      SelectMenuItem('morenews','limorenews','news2008.asp');
    break;
    case 'news2007.asp':
      SelectMenuItem('morenews','limorenews','news2007.asp');
    break;

  }
}

function SelectMenuItem(divID, list, item) {
  HideShowDiv(divID, list);
  document.getElementById(item).style.color = "rgb(95, 136, 4)";
}