
jQuery.fn.shake = function(times){
	if(times==undefined)
	{
		times = 3;
	}
     this.each(function(init){ 
          var jqNode = JQ(this); 
          jqNode.css({position: 'relative'}); 
          for (var x = 1; x <= times; x++){ 
               jqNode.animate({ left: -25 },10) 
               .animate({ left: 0 },50) 
               .animate({ left: 25 },10) 
               .animate({ left: 0 },50); 
          } 
     }); 
return this; 
};
