function mk_social_network_widgets(){jQuery(".social_icon_select_sites").live("change",function(){var i=jQuery(this).closest("p").siblings(".social_icon_wrap");i.children("p").hide(),jQuery("option:selected",this).each(function(){i.find(".social_icon_"+this.value).show()})}),jQuery(".social_icon_custom_count").live("change",function(){var i=jQuery(this).closest("p").siblings(".social_custom_icon_wrap");i.children("div").hide();for(var a=jQuery(this).val(),e=1;a>=e;e++)i.find(".social_icon_custom_"+e).show()})}function mk_color_picker(){var i=jQuery;Color.prototype.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var i=parseInt(this._color,10).toString(16);if(this.error)return"";if(i.length<6)for(var a=6-i.length-1;a>=0;a--)i="0"+i;return"#"+i},i(".color-picker-holder .color-picker").each(function(){var a,e,r=i(this),o=r.val().replace(/\s+/g,""),c=100;o.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)&&(c=100*parseFloat(o.match(/rgba\(\d+\,\d+\,\d+\,([^\)]+)\)/)[1])),r.wpColorPicker({clear:function(i,r){a.val(100),e.val("100%")}}),i('<div class="vc_alpha-container"><label>Alpha: <output class="rangevalue">'+c+'%</output></label><input type="range" min="1" max="100" value="'+c+'" name="alpha" class="vc_alpha-field"></div>').appendTo(r.parents(".wp-picker-container:first").addClass("vc_color-picker").find(".iris-picker")),a=r.parents(".wp-picker-container:first").find(".vc_alpha-field"),e=r.parents(".wp-picker-container:first").find(".vc_alpha-container output"),a.bind("change keyup",function(){var i=parseFloat(a.val()),o=r.data("a8cIris"),c=r.data("wpWpColorPicker");e.val(a.val()+"%"),o._color._alpha=i/100,r.val(o._color.toString()),c.toggler.css({backgroundColor:r.val()})}).val(c).trigger("change")})}function mk_social_networks_custom_skin(){jQuery(".social-network-select-skin").live("change",function(){var i=jQuery(this).parent("p").siblings("#mk-social-custom-skin");"custom"==jQuery(this).val()?i.show():i.hide()}).change()}jQuery(document).ready(function(){mk_social_network_widgets()});