text: /*
   * Remote Chained - jQuery AJAX(J) chained selects plugin
   *
   * Copyright (c) 2010-2013 Mika Tuupola
   *
   * Licensed under the MIT license:
   *   http://www.opensource.org/licenses/mit-license.php
   *
   * Project home:
   *   http://www.appelsiini.net/projects/lazyload
   *
   * Version:  0.9.4
   *
   */
  (function(a,b,c,d){"use strict",a.fn.remoteChained=function(b,c,d){var e=a.extend({},a.fn.remoteChained.defaults,d);return this.each(function(){var d=this,f=a(d).clone();a(b).each(function(){a(this).bind("change",function(){var f={};a(b).each(function(){var b=a(this).attr(e.attribute),c=a(":selected",this).val();f[b]=c}),a.getJSON(c,f,function(b){var c=a(":selected",d).val();a("option",d).remove();var e=[];if(a.isArray(b))e=b;else for(var f in b)b.hasOwnProperty(f)&&e.push([f,b[f]]);for(var g=0;g!==e.length;g++){var h=e[g][0],i=e[g][1];if("selected"===h){c=i;continue}var j=a("<option />").val(h).append(i);a(d).append(j)}a(d).children().each(function(){a(this).val()===c&&a(this).attr("selected","selected")}),1===a("option",d).size()&&a(d).val()===""?a(d).attr("disabled","disabled"):a(d).removeAttr("disabled"),a(d).trigger("change")})}),a(this).trigger("change")})})},a.fn.remoteChainedTo=a.fn.remoteChained,a.fn.remoteChained.defaults={attribute:"name"}})(jQuery,window,document)