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

    // Mini-cart updates
    $.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();}});
      });
    });
  }
});



	



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

      // Validate Form
      $.plugin('validate', function() {
        
		
		
		$(function(){
				   
				   $.validator.addMethod("notEqual", function(value, element, param) {
  return this.optional(element) || value != param;
}, "This field is required.");

				   $("#newsForm").validate({
  rules: {
    first_name: { notEqual: "your first name" },
	last_name: { notEqual: "your last name" }
  }
});

        });
      });

    }
  });


