$(function(){
	//$('a[href!=#]').click(function() {
	$("a:not([href^=#])").not("[href$=pdf]").click(function(){
	  if (location.hostname == this.hostname) {
		//$.get("/admin/plugin/users/checkPermisions/"+location.pathname.replace(/^\//,''));
		hrf = $(this).attr("href");
		obj = $(this);
		$.get(hrf, function(data) { if(data!="restricted") { window.location = hrf;} else { Wamllp.showPopup(obj); } });
		return false;
	  }
	});
});
