
(function(a)
{
var b="";
a.fn.protectContent=function(e)
{
if(BrowserDetect.browser.toLowerCase().indexOf("chrome")>=0||BrowserDetect.browser.toLowerCase().indexOf("safari")>=0)
return this;
e=a.extend({},a.fn.protectContent.defaults,e);
b=e.message;
return this.each(function()
{
var b=this;
if(a.browser.msie)
b.onselectstart=function()
{
return false
};
else
if(a.browser.mozilla)
b.style.MozUserSelect="none";
else
b.onmousedown=function()
{
return false
};
b.style.cursor="default";
if(!e.allowRightContextMenu)
{
if(document.layers)
{
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=c
}
else
{
document.onmouseup=c;
document.oncontextmenu=d
}
document.oncontextmenu=new Function("return false")
}
})
};
a.fn.protectContent.defaults={allowRightContextMenu:false};
function d()
{
if(document.all)
{
b;
return false
}
}
function c(a)
{
if(document.layers||document.getElementById&&!document.all)
if(a.which==2||a.which==3)
{
b;
return false
}
}
})(jQuery)
