function parseURL()
{
  // Create variable is_input to see if there is a ? in the url
  var is_input = document.URL.indexOf('=');
  
  // Check the position of the ? in the url
  if (is_input != -1)
  { 
    // Create variable from ? in the url to the end of the string
    addr_str = document.URL.substring(is_input+1, document.URL.length);
    displaySubNav(addr_str);
   }else{
    displaySubNav("none");
   }
}

function displaySubNav(page)
{
  var mediaSubNav = document.getElementById('media');
  if (page == "media")
  {
    var mediaLink = document.getElementById('mediakit');
    mediaLink.style.fontWeight = 'bold';

    mediaSubNav.style.display = 'block';
    requestSubNav.style.display = 'none';    
  
  }
}