function cleanURL(url) {
  url = url.split("?");
  return url[0];
}

$(document).ready(function() {
    // FAQ page script for cleaning up MagicRepeat links
    $("#faqList li>a").each(function(i){
	$(this).attr("href", cleanURL($(this).attr("href")) + "_" + (i+1));
      });
    $(".top").each(function(){
	$(this).attr("href", cleanURL($(this).attr("href")));
      });
  });

