$(document).ready(function(){

	$('.entry-content img').bind("contextmenu",function(){

		return false;

	});

		$('.entry-content img').bind("mousedown",function(){

		return false;

	});

	$('.entry-content img').bind("dragstart", function() {

     return false;

  });

	$('.gallery img').bind("contextmenu",function(){

		return false;

	});

		$('.gallery img').bind("mousedown",function(){

		return false;

	});

	$('.gallery img').bind("dragstart", function() {

     return false;

  });

	$('.slideshow img').bind("contextmenu",function(){

		return false;

	});

		$('.slideshow img').bind("mousedown",function(){

		return false;

	});

	$('.slideshow img').bind("dragstart", function() {

     return false;

  });

});



/*

(function($) {

  $.fn.mask = function(){

  	this.each(function(){

  		var img = {

  			src: $(this).attr('src'),

  			bg: 'url('+this.src+')',

  			style: $(this).attr('style'),

  			width: $(this).width(),

  			height: $(this).height(),

  			alt:   $(this).attr('alt')

  		};

  		var div = $(this).wrap('<div>').parent().addClass('img');

  	div.attr({title: img.alt}).css({width: img.width, height: img.height});

  		//div.css("background-color","yellow");

                div.bind('contextmenu',function(){return false;});

  		//div.find('img').remove();



  	});

  };

})(jQuery);



$(window).bind('load',function(){$('img').mask();});





$(document).ready((function($) {

  $.fn.mask = function(){

  	this.each(function(){

  		var img = {

  			src: $(this).attr('src'),

  			bg: 'url('+this.src+')',

  			style: $(this).attr('style'),

  			width: $(this).width(),

  			height: $(this).height(),

  			border: $(this).css('border'),

  			padding: $(this).css('padding'),

  			alt:   $(this).attr('alt')

  		};

  		var div = $(this).wrap('<div>').parent().addClass("imgWrapper");

  		div.attr().css({background:#333333, width: img.width, height: img.height});

                //div.bind('contextmenu',function(){return false;});

      // var divP = div.append('<div>').parent().addClass("imgP");

  		//divP.attr().css({background:#333333, width: img.width, height: img.height});

                //divP.bind('contextmenu',function(){return false;});         

                //$(this).prepend('<div class="'"/>')

  	

      //div.addClass("protectedImage");

  	div.find('img').remove();

  	});

  };

  

  $(window).bind('load',function(){$('.entry-content img').mask();});





}));

*/
