/*!
 * iCheck v0.8 jQuery plugin, http://git.io/uhUPMA
 */
(function(h,m,z,s,k,q,l,j,E,r,t,v){function A(a,d,g){var c=a[0],b=/ble/.test(g)?q:k;active="update"==g?{checked:c[k],disabled:c[q]}:c[b];if(/^ch|di/.test(g)&&!active)w(a,b);else if(/^un|en/.test(g)&&active)x(a,b);else if("update"==g)for(var b in active)active[b]?w(a,b,!0):x(a,b,!0);else if(!d||"toggle"==g)d||a.trigger("ifClicked"),active?c[l]!==s&&x(a,b):w(a,b)}function w(a,d,g){var c=a[0],b=a.parent(),e=d==q?"enabled":"un"+k,C=f(a,e+n(c[l])),I=f(a,d+n(c[l]));if(!0!==c[d]&&!g&&(c[d]=!0,a.trigger("ifChanged").trigger("if"+
n(d)),d==k&&c[l]==s&&c.name)){g=a.closest("form");var j='input[name="'+c.name+'"]',j=g.length?g.find(j):h(j);j.each(function(){this!==c&&h(this).data(m)&&x(h(this),d)})}c[q]&&f(a,v,!0)&&b.find("."+m+"-helper").css(v,"default");b[r](I||f(a,d));b[t](C||f(a,e)||"")}function x(a,d,g){var c=a[0],b=a.parent(),e=d==q?"enabled":"un"+k,h=f(a,e+n(c[l])),j=f(a,d+n(c[l]));!1!==c[d]&&!g&&(c[d]=!1,a.trigger("ifChanged").trigger("if"+n(e)));!c[q]&&f(a,v,!0)&&b.find("."+m+"-helper").css(v,"pointer");b[t](j||f(a,
d)||"");b[r](h||f(a,e))}function F(a,d){a.data(m)&&(a.parent().html(a.attr("style",a.data(m).s||"").trigger(d||"")),a.off(".i").unwrap(),h('label[for="'+a[0].id+'"]').add(a.closest("label")).off(".i"))}function f(a,d,g){if(a.data(m))return a.data(m).o[d+(g?"":"Class")]}function n(a){return a.charAt(0).toUpperCase()+a.slice(1)}h.fn[m]=function(a,d){var g=navigator.userAgent,c=/ipad|iphone|ipod/i.test(g),b=":"+z+", :"+s;if(/^(check|uncheck|toggle|disable|enable|update|destroy)$/.test(a))return this.each(function(){var c=
h(this);(c.is(b)?c:c.find(b)).each(function(){c=h(this);"destroy"==a?F(c,"ifDestroyed"):A(c,!0,a);h.isFunction(d)&&d()})});if("object"==typeof a||!a){var e=h.extend({checkedClass:k,disabledClass:q,labelHover:!0},a),f=e.handle,n=e.hoverClass||"hover",v=e.focusClass||"focus",G=e.activeClass||"active",H=!!e.labelHover,D=e.labelHoverClass||"hover",y=(""+e.increaseArea).replace("%","")|0;if(f==z||f==s)b=":"+f;-50>y&&(y=-50);return this.each(function(){var a=h(this);(a.is(b)?a:a.find(b)).each(function(){a=
h(this);F(a);var d=this,b=d.id,f=-y+"%",u=100+2*y+"%",u={position:"absolute",top:f,left:f,display:"block",width:u,height:u,margin:0,padding:0,background:"#fff",border:0,opacity:0},f=c||/android|blackberry|windows phone|opera mini/i.test(g)?{position:"absolute",visibility:"hidden"}:y?u:{position:"absolute",opacity:0},C=d[l]==z?e.checkboxClass||"i"+z:e.radioClass||"i"+s,B=h('label[for="'+b+'"]').add(a.closest("label")),p=a.wrap('<div class="'+C+'"/>').trigger("ifCreated").parent().append(e.insert),
u=h('<ins class="'+m+'-helper"/>').css(u).appendTo(p);a.data(m,{o:e,s:a.attr("style")}).css(f);e.inheritClass&&p[r](d.className);e.inheritID&&b&&p.attr("id",m+"-"+b);"static"==p.css("position")&&p.css("position","relative");A(a,!0,"update");if(B.length)B.on(j+".i mouseenter.i mouseleave.i "+E,function(b){var e=b[l],f=h(this);if(!d[q])if(e==j?A(a,!1,!0):H&&(/ve|nd/.test(e)?(p[t](n),f[t](D)):(p[r](n),f[r](D))),c)b.stopPropagation();else return!1});a.on(j+".i focus.i blur.i keyup.i keydown.i keypress.i",
function(c){var b=c[l];c=c.keyCode;if(b==j)return!1;if("keydown"==b&&32==c)return d[l]==s&&d[k]||(d[k]?x(a,k):w(a,k)),!1;if("keyup"==b&&d[l]==s)!d[k]&&w(a,k);else if(/us|ur/.test(b))p["blur"==b?t:r](v)});u.on(j+" mousedown mouseup mouseover mouseout "+E,function(b){var e=b[l],f=/wn|up/.test(e)?G:n;if(!d[q]){if(e==j)A(a,!1,!0);else{if(/wn|er|in/.test(e))p[r](f);else p[t](f+" "+G);if(B.length&&H&&f==n)B[/ut|nd/.test(e)?t:r](D)}if(c)b.stopPropagation();else return!1}})})})}return this}})(jQuery,"iCheck",
"checkbox","radio","checked","disabled","type","click","touchbegin.i touchend.i","addClass","removeClass","cursor");