(function($){$.fn.forbidden=function(){var div=initDiv();var link=initLink(div);$(this).unbind('mousedown').bind('mousedown',function(e){if(e.which==3){var aHref=$('a',$(this)).attr("href")||$(this).parent().attr("href")
||("javascript:"+($('img',$(this)).attr("onclick")||$(this).attr("onclick")));link.attr("href",aHref);div.css({width:$(this).width()+"px",height:$(this).height()+"px",left:$(this).offset().left+"px",top:$(this).offset().top+"px",visibility:"visible",position:"absolute",'z-index':'1'});div.unbind('mouseout').bind('mouseout',function(){$(this).css('visibility','hidden');});}});};function initDiv(){var divId="_forbiddenDiv";var div=$('#'+divId);if(div.length<=0){var newImgDiv=$("<div/>").attr("id",divId).css({width:"0px",height:"0px"});$("body").append(newImgDiv);return newImgDiv;}
return div;}
function initLink(div){var linkId="_forbiddenLink";var link=$('#'+linkId);if(link.length<=0){var newLink=$("<a href='#position'>&nbsp;</a>").attr("id",linkId);newLink.css({width:"100%",height:"100%",display:"block","background-color":"green",filter:"alpha(opacity=0)",opacity:0});div.append(newLink);return newLink;}
return link;}})(jQuery);
