// JavaScript Document

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}


//HP Newest latest Hover Effetc
$(function(){
 $(".article").hover (function () {$(this).find(".overlay").removeClass('hidden');}, function() {$(this).find(".overlay").addClass('hidden'); });
});


function reportingAbuse(comment_id){
if (!!mag_user.logged_in){
  var id = comment_id;
  var popWin = window.open('/comments/report-this?comment_id='+id,'popForm','width=450,height=330');
  popWin.focus();
} else {
  var id = comment_id;
  var url = document.URL;
  //alert(url);
  var popWin = window.open('/comments_report_abuse_login?comment_id='+id+'&pUrl='+url,'popForm','width=450,height=330,resizable=1');
  popWin.focus();
}
}

