/**
 * Opens link in new window.
**/
$(document).ready(function() {
   $('a.new-window').click(function() {
      window.open(this.href);
      return false;
   });
});

/**
 * Prevents anchor tags with href="#" from displaying the #.
**/
$(document).ready(function() {
   $('a').each(function(el) {
      if ($(this).attr('href') == '#') {
         $(this).click(function() {
            void(0);
            return false;
         });
      }
   });
});

/**
 * Toggles a child item.
**/
$(document).ready(function() { 
	$('.toggle-trigger').toggle(
		function(){
		   var name = $(this).attr('id');
			$('#' + name + '-toggled').show('fast');
		},
		function(){
		   var name = $(this).attr('id');
			$('#' + name + '-toggled').hide('fast');
		}
	);
});
