/* 
	* blockClick plugin.
*/

(function($) {
  $.fn.blockClick = function(options) {

    var opts = $.extend({}, $.fn.blockClick.defaults, options);

    return this.each(function() {
      $(this)
        .css("cursor", "pointer")
			  .hover((function(){
				  $(this).addClass("block-click-hover");
			  }),
			  function(){
			    $(this).removeClass("block-click-hover");
		    })
			  .click(function(){
				  window.location = $(this).find("a").attr("href");		
			  });
    });
  };
  $.fn.blockClick.defaults = {};
	$(function(){ $('.block-click').blockClick(); });
})(jQuery);