function equalHeight(group) {
	tallest = 0;
	group.each(function(){
		thisHeight = $(this).height();
		if (thisHeight > tallest){
			tallest = thisHeight
		}
	});
	group.height(tallest);
}
$(document).ready(function() {  
	equalHeight($(".item p"));	
	$(".footernav li:last").css("border-right", "0");
	$(".navigation .alignleft:empty").hide();
	$(".navigation .alignright:empty").hide();
	$(".comment-nav .alignright:empty").hide();
	$(".comment-nav .alignleft:empty").hide();
	$(".navigation:empty").hide();
	$(".comment-nav:empty").hide();
  $("ol li").each(function(i, n){
    $(this).append("<span>" + (i+1) + "<\/span>");  
  });
  $("#qtranslate-chooser li").not(".active").css({
    'opacity': .4
  }).hover(function(){
    $(this).css({
      'opacity': 1
    });
  }, function(){
    $(this).css({
      'opacity': .4
    });
  });
  $(function() {
  	$('a[rel*=external]').click( function() {
  		window.open(this.href);
  		return false;
  	});
  });
  
  $("#faq").accordion({
    header: 'h4',
    collapsible: true,
    autoHeight: false,
    active: false,
    animated: "bounceslide"
  });

  $('.email').nospam({ replaceText: true }); 
    
});
