(function($){$.fn.floating=function(method){var initialize={};var methods={init:function(){methods.destroy.apply(this);methods.update.apply(this,initialize);},destroy:function(){$(this).find(".parts-floating").remove();},update:function(obj){var $html=$("
");var $ul=$("");methods.destroy.apply(this);if(initialize.state||initialize.movestate){$html.addclass("parts-floating");$html.attr("data-position",initialize.position);$html.attr("data-theme",initialize.theme);$html.attr("data-size",initialize.size);$html.attr("data-state",initialize.state);$html.attr("data-movestate",initialize.movestate);$.each(initialize.account,function(index,obj){var $li_html=$('');if(obj.url){$li_html.append('');}else{$li_html.append('');}
if(obj.test){$li_html.attr("title",obj.test);}
if(obj.tip){var url=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;var objexp=new regexp(url);if(objexp.test(obj.tip)){url="";}else{url=obj.tip;}
$li_html.append('')}
$li_html.attr("data-type",obj.type);if(obj.type=="top"){$li_html.click(function(){$('body,html,nav.top_nav ~ .section').animate({scrolltop:0},500);})}
$li_html.appendto($ul);});$.each(initialize.tip,function(name,obj){$ul.find(".parts-li-tip .tooltip-inner").css(name,obj);})
$ul.appendto($html);$(this).append($html);}}}
if(methods[method]){return methods[method].apply(this,array.prototype.slice.call(arguments,1));}else if(typeof method==='object'||!method){initialize=$.extend(initialize,method);return methods.init.apply(this,initialize);}};})(jquery);