(function($){

  var settings = { 
  };

  var methods = {
    init:function(options){
		$.extend(settings, options);
		
		$(this).each(function(){
			$(this).mouseenter(function(){
				$(this).find('h3, .trop-button-slice').addClass('hover');
			}).mouseleave(function(){
				$(this).find('h3, .trop-button-slice').removeClass('hover');
			});
		});
	}
  };

  $.fn.ss = function(method){
    if (methods[method]){
      return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
    } else if (typeof method === 'object' || !method) {
      return methods.init.apply(this, arguments);
    } else {
      $.error('Method ' +  method + ' does not exist on jQuery.spriteStates');
    }    
  };
  
})(jQuery);
/*
(function($){
	
  var settings = { 
  };

  var methods = {
    init:function(options){
		$.extend(settings, options);
		
		$(this).each(function(){
			$(this).data("yOffset",parseInt($(this).css('background-position').split(' ')[1]));
			$(this).find('.trop-button-slice').each(function() {
				$(this).data("yOffset",parseInt($(this).css('background-position').split(' ')[1]));
			});
			var off = parseInt($(this).css('background-position').split(' ')[1]);
			$(this).mouseover(function(){
				$(this).find('.trop-button-slice').each(function(){
					var offsetY = $(this).data("yOffset");
					$(this).css('background-position', '0px ' + (offsetY - $(this).height()) + 'px !important');
				});
			}).mouseout(function(){
				$(this).find('.trop-button-slice').each(function(){
					var offsetY = $(this).data("yOffset");
					$(this).css('background-position', '0px ' + (offsetY) + 'px !important');
				});
			});
		});
	}
  };

  $.fn.ss = function(method){
    if (methods[method]){
      return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
    } else if (typeof method === 'object' || !method) {
      return methods.init.apply(this, arguments);
    } else {
      $.error('Method ' +  method + ' does not exist on jQuery.ss');
    }    
  };
  
})(jQuery);*/
