//
// Cory S.N. LaViska
// A Beautiful Site (http://abeautifulsite.net/)
// 20 December 2008
// Version 1.01
//
// License:
// 
// This plugin is dual-licensed under the GNU General Public License and the MIT License
// and is copyright 2008 A Beautiful Site, LLC. 
//
jQuery&&function(){$.extend($.fn,{rightClick:function(b){$(this).each(function(){$(this).mousedown(function(a){$(this).mouseup(function(){$(this).unbind("mouseup");if(a.button==2){b.call($(this),a);a.cancelBubble=true;return a.returnValue=false}else return true})});$(this)[0].oncontextmenu=function(){return false}});return $(this)},rightMouseDown:function(b){$(this).each(function(){$(this).mousedown(function(a){if(a.button==2){b.call($(this),a);return false}else return true});$(this)[0].oncontextmenu=
function(){return false}});return $(this)},rightMouseUp:function(b){$(this).each(function(){$(this).mouseup(function(a){if(a.button==2){b.call($(this),a);return false}else return true});$(this)[0].oncontextmenu=function(){return false}});return $(this)},noContext:function(){$(this).each(function(){$(this)[0].oncontextmenu=function(){return false}});return $(this)}})}(jQuery);	
