(function(e){"use strict";function u(){return!!("ontouchstart"in window)}function a(e,t,n,r,i,s){var o,u,a,f=0,l=0;if(s){o=e;u=0;a=0}else{o=e.offset();u=e.outerWidth();a=e.outerHeight()}switch(t){case"n":f=o.left+u/2-n/2;l=o.top-r-i;break;case"e":f=o.left+u+i;l=o.top+a/2-r/2;break;case"s":f=o.left+u/2-n/2;l=o.top+a+i;break;case"w":f=o.left-n-i;l=o.top+a/2-r/2;break;case"nw":case"wn":f=o.left-n+20;l=o.top-r-i;break;case"ne":case"en":f=o.left+u-20;l=o.top-r-i;break;case"sw":case"ws":f=o.left-n+20;l=o.top+a+i;break;case"se":case"es":f=o.left+u-20;l=o.top+a+i;break}return{left:Math.round(f),top:Math.round(l)}}function f(e,t){var r=n.scrollLeft(),i=n.scrollTop(),s=e.offset(),o=e.outerWidth(true),u=e.outerHeight(true),a=n.width(),f=n.height(),l=[],c,h;if(t){c=t.outerWidth(true);h=t.outerHeight(true)}else{c=100;h=50}if(s.topi+f){l.push("s")}if(s.leftr+a){l.push("e")}return l}function l(){var e=document.body||document.documentElement;var n=e.style;var r="transition";if(typeof n[r]==="string"){return true}t=["Moz","Webkit","Khtml","O","ms"],r=r.charAt(0).toUpperCase()+r.substr(1);for(var i=0;i',loading:'',content:'
',arrow:'',close:''}};e.fn.asTooltip=function(t){if(typeof t==="string"){var n=t;var r=arguments.length>1?Array.prototype.slice.call(arguments,1):undefined;return this.each(function(){var t=e.data(this,"asTooltip");if(typeof t[n]==="function"){t[n].apply(t,r)}})}else{return this.each(function(){if(!e.data(this,"asTooltip")){e.data(this,"asTooltip",new h(this,t))}})}}})(jQuery)