 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-24981842-1']);
 _gaq.push(['_trackPageview']);

 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
	
  $(document).ready(function(){
    $('.fbutton').click(function() { // when I click a filter button, and... 
      if ($(this).hasClass("on")) { // if the button is on, then...
	$(this).removeClass("on"); // turn the button off and...
        $('.A369,.D369,.E369,.F369,.N500,.N600').addClass("on").removeClass("off"); //show all articles
      }
      else { //if the button is off, then...
	$('.fbutton').removeClass("on"); //turn all buttons off and...
	$(this).addClass("on"); //turn the clicked button on and...
	$('.A369,.D369,.E369,.F369,.N500,.N600').addClass("off").removeClass("on"); //hide all articles...
        //except for the ones corresponding to the button that was clicked
	if ($(this).hasClass("A369b")) { $('.A369').addClass("on").removeClass("off"); }
        if ($(this).hasClass("D369b")) { $('.D369').addClass("on").removeClass("off"); }
        if ($(this).hasClass("E369b")) { $('.E369').addClass("on").removeClass("off"); }
        if ($(this).hasClass("F369b")) { $('.F369').addClass("on").removeClass("off"); }
        if ($(this).hasClass("N500b")) { $('.N500').addClass("on").removeClass("off"); }
        if ($(this).hasClass("N600b")) { $('.N600').addClass("on").removeClass("off"); }
      }
						
					if ($.browser.msie) {
      $('.off:not(.fbutton)').hide(); //hide all articles that are off...
      $('.on:not(.fbutton)').show(); //show all articles that are on
					} else {
						$('.off:not(.fbutton)').slideUp(400); //hide all articles that are off...
      $('.on:not(.fbutton)').slideDown(400); //show all articles that are on
					}
    });
  });
