loader.jQuery({
  version  : '1.4.2',
  callback : function ($) {


//    $.plugin('snippets', function () {
//      $.snippets();
//    });

	$.plugin('snippets', function () {
      $.snippets('', {
        after : function (data) {
          var total = data['snippets']['.cartTotalItems'] || 0;
          var cost  = data['snippets']['.cartTotalCost'] || '0.00';
          var currency = data['snippets']['.cartCurrency'] || '$';
          $('.myCartLink').attr('title', total + ' Items @ ' + currency + cost);
        }
      });
    });

    // Dropdown menu controls (Superfish)
    $.plugin('superfish', function() {
      $(function(){
        $('ul.sf-menu').superfish({onInit:function(){$(this).show();}, autoArrows: false});
      });
    });
	
	
	// Validator
      $.plugin('validate', function() {
        $(function(){
          $("#newssubscribe").validate({
            rules: {
              subscriber_email: {
                required: true,
                email: true
              }
            }
          });
        });
      });

  }
});

// OTHER PLUGINS

