//<![CDATA[
$(document).ready(function() {
$('.ngd_atas').scrollToFixed( {
bottom: 0,
limit: $('.ngd_atas').offset().top,
});
});
$(window).on("load", function () {
$('.comment_avatar').each(function () {
$(this).html('<img src="' + $(this).data('src').replace(/\/s[0-9]+(\-c)?/,"/s45-c") + '"></img>');
});
});
$(document).ready(function() {
$('.slide-rf').click(function(){
$('#isi').slideToggle('slow');
});
});
$(document).ready(function() {
$('.toggle-sidebar').live("click",function() {
$('.ngd_wrap-outer').css('margin-left', 0);
$('.toggle-sidebar2').show();
$('.toggle-sidebar').hide();
$('.ngd_wrap-footer').css('margin-left', 0);
});
$('.toggle-sidebar2').live("click",function() {
$('.ngd_wrap-outer').css('margin-left', -330);
$('.toggle-sidebar').show();
$('.toggle-sidebar2').hide();
$('.ngd_wrap-footer').css('margin-left', 330);
});
});
$('#comments p, #comments dd, .ngd_comments p, .ngd_comments dd').each(function() {
// Singkirkan semua tag `<br>` di sebelah tag `<b rel^="h">`
// (semua elemen `<b>` dengan nilai atrubut `rel` yang diawali dengan "h")
$('b[rel^="h"]', this).nextAll().filter('br').remove();
// Menyisipkan tag `<pre>`
$('i[rel="pre"]', this).replaceWith(function() {
return $('<pre><code></code></pre>').append($(this).contents());
});
// Menyisipkan gambar
$('i[rel="image"]', this).replaceWith(function() {
return $('<img />').attr('src', $(this).text());
});
// Menyisipkan tag `<h3>`
$('b[rel="h3"]', this).replaceWith(function() {
return $('<h3></h3>').append($(this).contents());
});
// Menyisipkan kuota/catatan
$('b[rel="quote"]', this).replaceWith(function() {
return $('<blockquote></blockquote>').append($(this).contents());
});
// Menyisipkan tag `<code>`
$('i[rel="code"]', this).contents().unwrap().wrap('<code></code>');
});
$(function () {
$('.ngd_navigasi li').click(function(e) {
$('ul', this).slideToggle();
e.stopPropagation();
});
$(document).click(function() {
$('.ngd_navigasi ul li ul:visible').slideUp();
});
});
$('.ngd_atas').click(function() {
$('html, body, .ngd_wrap-outer-scrollable').animate({scrollTop:0}, 1000);
return false;
});
var emoRange = "#comments p, div#emoWrap, .ngd_comments p",
putEmoAbove = "#comment-editor",
emoMessage = "Untuk menyisipkan emotikon setidaknya Anda harus menambahkan satu spasi di depan. Jangan pernah melupakan itu atau emotikon Anda tidak bisa diterjemahkan.";
$(function () {
// Append an emoticon bar before comment-form
if (putEmoAbove) {
$(putEmoAbove).before();
}
function emo(emo, imgRep, emoKey) {
$(emoRange).each(function () {
$(this).html($(this).html().replace(/<br ?\/?>(:|;|=|\^)/ig, "<br> $1").replace(emo, " <img src='" + imgRep + "' class='emo delayLoad' alt='" + emoKey + "' />"));
});
}
emo(/\s:\)+/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/smile.gif", ":)");
emo(/\s;\)+/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/wink.gif", ";)");
emo(/\s:\(/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/sad.gif", ":(");
emo(/\s:yaya:/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/yaya.gif", ":yaya:");
emo(/\s:\\/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/memble.gif", ":\");
emo(/\s:D/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/haha.gif", ":D");
emo(/\s\^(\_|)\^/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/senyum-tulus.gif", "^_^");
emo(/\s:'\(/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/cry.gif", ":'(");
emo(/\sB\)/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/cool.gif", "B)");
emo(/\s:Q/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/smoking.gif", ":Q");
emo(/\s\*\*p/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/crazy.gif", "**p");
emo(/\s7:\(/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/conf.gif", "7:(");
emo(/\s:p/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/wee.gif", ":p");
emo(/\s:Oz+/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/sleep.gif", ":Ozz");
emo(/\s7:O/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/angry.gif", "7:O");
emo(/\s\\o\//ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/applause.gif", "\o/");
emo(/\s<3/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/love.gif", "<3");
emo(/\s0:\)+/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/angelgreen.gif", "0:)");
emo(/\s:-a/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/vomit.gif", ":-a");
emo(/\s\*fck\*/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/fuck.gif", "*fck*");
emo(/\sx\@/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/marahbesar.gif", "x@");
emo(/\s\X\@/g, "http://reader-hosting.googlecode.com/svn/branches/emotion/arrgh.gif", "X@");
emo(/\s:-bd/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/topmarkotop.gif", ":-bd");
emo(/\s\~x\(+/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/ugh.gif", "~x(");
emo(/\s=p\*/ig, "http://reader-hosting.googlecode.com/svn/branches/emotion/ball2.gif", "=p*");
emo(/\s:ngakak\:/ig, "http://www.freesmileys.org/smileys/smiley-laughing021.gif", ":ngakak:");
var one = 0; // Show alert one times!
// Click anywhere to hide the emoticon
$(document.body).on("click", function () {
$('.emoKey').remove();
});
// Click to show the code!
$('.emo').css('cursor', 'pointer').live("click", function (e) {
$('.emoKey').remove();
$(this).after('<input class="emoKey" type="text" size="6" value=" ' + this.alt + '" />');
$('.emoKey').trigger("select");
if (emoMessage && one === 0) {
// Tampilkan kotak dialog di sini
$('#alert-box').show().animate(1500, "easeOutBounce");
$('#alert-box .message').html(emoMessage);
one = 1;
}
e.stopPropagation();
});
$('#alert-box .close').on("click", function () {
$('#alert-box').hide().animate(1200, "easeOutExpo");
});
});
function updatedPosts(q) {
if (document.getElementById("update-posting")) {
var k = q.feed.entry,
p, g, n, c, l = "",
b = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"],
h = document.getElementById("update-posting");
for (var f = 0; f < 7; f++) {
for (var d = 0; d < 7; d++) {
if (k[f].link[d].rel == "alternate") {
n = k[f].link[d].href;
break
}
}
var p = k[f].title.$t,
m = k[f].published.$t.substring(0, 10).split("-");
if ("media$thumbnail" in k[f]) {
g = k[f].media$thumbnail.url
} else {
g = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhenOK4PBhC9jyUullRA6DHjSTnA430Ak93mOfnxzh5SJ6IlzmvmD_Ys84G31iEJc23eqPylHNBCxuCXM_jl2KE28CHGziYXcxWd-PzHcGbCq6iNqov5LHwWWOdYFjgxFc51-ULUAP7S5k/s1600/Noim.png"
}
l += '<li class="entes_su"><img src="' + g.replace(/\/s72-c/, "/s40-c") + '" class="gambare_leng" alt="' + p + '" height="40px" width="40px"/>';
l += '<strong><a href="' + n + '" title="' + p + '" target="_parent">' + p + '</a></strong><time class="tanggale_ndes" datetime="' + m.join("-") + '"> ' + (m[2] + " " + b[(parseInt(m[1], 10) - 1)] + " " + m[0]) + "</time></li>"
}
h.innerHTML = l
}
}
function asyncData(A, B) {
var C = document.createElement('script');
C.src = A;
C.onload = function () {
if (typeof B == "function") B();
B = null;
};
C.onreadystatechange = function () {
if (C.readyState == 4 || C.readyState == "complete") {
if (typeof B == "function") B();
B = null;
}
};
document.getElementsByTagName('head')[0].appendChild(C);
}
asyncData('http://ngudang.blogspot.com/feeds/posts/summary?alt=json-in-script&orderby=updated&max-results=7&callback=updatedPosts');
var originalTitle = document.title;
var cm_config = {
home_page: "http://ngudang.blogspot.com",
max_result: 18,
t_w: 50,
t_h: 50,
summary: 9999,
new_tab_link: false,
ct_id: "comments-container",
new_cm: " Komentar Baru!",
interval: 30000,
alert: true,
alert: function (total) {
document.getElementById("show-total").innerHTML = '<strong class=\'total-show\'>' + total + '</strong>';
document.title = '(' + total + ') ' + originalTitle;
}
};
$('#notif').click(function () {
$("#cm-wrapper").slideDown('fast');
$("#bg, #notif2").show();
$("#notif").hide();
});
$('#notif2').click(function () {
$("#cm-wrapper").slideUp('fast');
$("#bg, #notif2").hide();
$("#notif").show();
});
$('#bg').click(function () {
$("#cm-wrapper").slideUp('fast');
$("#bg, #notif2").hide();
$("#notif").show();
});
document.getElementById('notif').onclick = function () {
document.title = originalTitle;
$('#show-total').hide();
};
document.getElementById('show-total').onclick = function () {
document.title = originalTitle;
$('#show-total').hide();
$("#cm-wrapper").slideDown('fast');
$("#bg").show();
};
eval(function (p, a, c, k, e, r) {
e = function (c) {
return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36))
};
if (!''.replace(/^/, String)) {
while (c--) r[e(c)] = k[c] || e(c);
k = [function (e) {
return r[e]
}];
e = function () {
return '\\w+'
};
c = 1
};
while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]);
return p
}('5 F={19:"E://16.2W.2Q",1e:15,1l:Y,1W:Y,1i:2v,1R:T,1M:"1f-2F",11:" 2N 2O!",1x:2U,V:1v,},W={18:I(g,f,j){5 i,h;C(j){i=3e 3f();i.3h(i.3m()+(j*24*1E*1E*3r));h="; 3u="+i.3w()}1r{h=""}l.22=g+"="+f+h+"; 3x=/"},1n:I(f){5 e=f+"=",h=l.22.1d(";"),j;12(5 g=0;g<h.B;g++){j=h[g];3t(j.3s(0)==" "){j=j.13(1,j.B)}C(j.3q(e)==0){17 j.13(e.B,j.B)}}17 3p},3o:I(b){1C.18(b,"",-1)}},G=(W.1n("G"))?W.1n("G"):0,3n=l.8;12(5 i O F){F[i]=(3k(y[i])=="3g")?F[i]:y[i]}I 1g(N){5 6=N.S.6,w=34(N.S.2Z$2V.$t,10),n="",A=G,4=F;5 2P=w-A>Y?\'Y+\':w-A;C(A<w){C(y.V===1v){V((w-A)+y.11)}1r{C(y.V===T){l.8="("+(w-A)+y.11+") "+l.8}1r{y.V((w-A),y.11)}}}n=\'<1z v="m-2M">\';12(5 i=0;i<6.B;i++){12(5 j=0;j<6[i].o.B;j++){C(6[i].o[j].H=="2E"){o=6[i].o[j].x;2C}}5 1H=o.1I("/")+1,1J=o.1I("."),8=o.1d("-").2x(" ").13(1H,1J)+"&1L;";z=6[i].z[0],Z=z.Z.$t,1O=z.1P$2w.K.k(/\\/s[0-9]+(\\-c|\\/)/,"/s"+4.1l+"$1").k(/E\\:\\/\\/1k.2s.L\\/2r\\?1Y\\=2q(.*?)q\\=/i,"").k(/\\.(2l|2k|2g|2f|1p)(.*?)$/i,".$1"),1q=(z.26)?z.26.$t:"#2R",u=6[i].X.$t.k(/^.*?16\\-([0-9]+).*?29\\-([0-9]+)/,"E://1k.2a.L/2e-2c.g?2b=$1&27=$2"),r=6[i]["2h$O-2i-2j"].1Y.1d("1o/")[1],d=6[i].X.$t.k(/^.*?16\\-([0-9]+).*?29\\-([0-9]+)/,"E://1k.2a.L/2c-2m.g?2b=$1&27="+r+"&2n=$2"),20=6[i].1P$2o[1].2p,p=("p"O 6[i])?6[i].p.$t.k(/<i H="1m">(.*?)<\\/i>/U,"<1m>$1</1m>").k(/<i H="1j">(.*?)<\\/i>/U,"<1j>$1</1j>").k(/<i H="2t">(.*?)<\\/i>/U,"<a v=\'2u\' x=\'$1\'>\\{o\\}</a>").k(/:D/U,"<1h K=\'E://3.1Q.1K.L/-2y/2z/2A/2B/1G/2D.1p\' P=\'\' v=\'m-1D\'/>").k(/:\\)/U,"<1h K=\'E://1.1Q.1K.L/-2G-Q/2H/2I/2J/1G/2K.1p\' P=\'2L\' v=\'m-1D\'/>"):"",1c=(4.1R)?\' 1B="1A"\':"";p=(p.B>4.1i)?p.13(0,4.1i)+"&1L;":p;n+="<1y>";n+=\'<M v="m-2d"><a x="\'+1q+\'" 8="\'+Z+\'"\'+1c+\'><1h P="2S..." 2T="1w:\'+4.1l+"1u;1s:"+4.1W+\'1u;" K="\'+1O+\'"></a><J v="z"><a x="\'+1q+\'" H="2X">\'+Z+\'</a> 2Y <a x="\'+o+\'" 8="\'+8+\'"\'+1c+" H=>"+8+"</a></M></J>";n+=\'<M v="m-p">\';n+=\'<J v="m-1a">\'+p+"</J>";n+=\'<M v="m-30">\'+20+\' <a x="\'+d+\'" 31="32.33(1C.x,'35','36=1,1w=37,1s=38,3a=3b,3c=3d');17 T;" 8="1Z 1X">1Z</a> <a x="\'+u+\'" 8="1V 1X" 1B="1A">1V</a></J> </J>\';n+="</M></1y>"}n+="</1z>";l.1U(4.1M).3i=n;W.18("G",w,3j);G=w}(I(){5 14=l.3l("14")[0],7=l.1N("7"),4=F;7.1F="1a/1t";7.X="m-S-7";7.K=4.19+"/28/1f/1o?P=N-O-7&23=T&21-1T="+4.1e+"&1S=1g";14.25(7);3v(I(){5 R=l.1N("7");R.1F="1a/1t";R.X="m-S-7";R.K=4.19+"/28/1f/1o?P=N-O-7&23=T&21-1T="+4.1e+"&1S=1g";5 1b=l.1U("m-S-7");1b.3y.3z(1b);14.25(R)},4.1x)})();', 62, 222, '||||co|var|entry|script|title||||||||||||replace|document|cm|skeleton|link|content||||||class|total|href|cm_config|author|oldCount|length|if||http|cm_config_defaults|tt_cm|rel|function|span|src|com|div|json|in|alt||newScript|feed|false|ig|alert|_cookie|id|50|name||new_cm|for|substring|head||blog|return|set|home_page|text|oldScript|nt|split|max_result|comments|showRecentComments|img|summary|code|www|t_w|pre|get|default|gif|profile|else|height|javascript|px|true|width|interval|li|ul|_blank|target|this|smiley|60|type|s1600|dash|lastIndexOf|dot|blogspot|hellip|ct_id|createElement|avatar|gd|bp|new_tab_link|callback|results|getElementById|Hapus|t_h|komentar|source|Balas|date|max|cookie|redirect||appendChild|uri|postID|feeds|post|blogger|blogID|comment|header|delete|bmp|png|thr|reply|to|jpeg|jpg|iframe|parentID|extendedProperty|value|imglanding|url|google|linku|allow|9999|image|join|WeTjMT8JDhg|UKhVHlZ88II|AAAAAAAADPI|b1gpiAvIkCc|break|icon_smile|alternate|container|2Z7Cwe04x|UH9THzWWJII|AAAAAAAACtA|ChwawyzYsDI|smile1|smile|outer|Komentar|Baru|totalComments|net|nope|Loading|style|30000|totalResults|kangismet|nofollow|pada|openSearch|footer|onclick|window|open|parseInt|_cf|scrollbars|470|250||left|355|top|135|new|Date|undefined|setTime|innerHTML|7000|typeof|getElementsByTagName|getTime|doc_title|del|null|indexOf|1000|charAt|while|expires|setInterval|toGMTString|path|parentNode|removeChild'.split('|'), 0, {}))
window.ngd_autoSelect = function (a) {
a.ondblclick = function () {
var b, r;
if (window.getSelection) {
b = window.getSelection();
r = document.createRange();
r.selectNodeContents(a);
b.removeAllRanges();
b.addRange(r)
} else if (document.selection) {
b = document.selection.createRange().text;
r = document.body.createTextRange();
r.moveToElementText(a);
r.select()
}
}
};
window.ngd_addNumber = function () {
var a = document.getElementsByTagName('pre'),
pl = a.length,
s;
for (var i = 0; i < pl; ++i) {
s = '<span class="line-number">';
a[i].id = !a[i].id ? 'code-block:' + (i + 1) : a[i].id;
if (/(^| )numbered( |$)/.test(a[i].className)) {
var b = a[i].getElementsByTagName('code')[0];
for (var j = 0, k = b.innerHTML.split(/\n/).length; j < k; ++j) {
s += '<span id="code-line:' + (i + 1) + "-" + (j + 1) + '"><span>' + (j + 1) + "</span><em>code-line:" + (i + 1) + "-" + (j + 1) + "</em></span>";
}
a[i].innerHTML = s += '</span>' + a[i].innerHTML + '<span class="cl"></span>'
}
ngd_autoSelect(a[i].getElementsByTagName('code')[0]);
if (window.location.hash && /code\-line\:([0-9]+)\-([0-9]+)|code\-block\:([0-9]+)/.test(window.location.hash)) {
var h = window.location.hash;
window.location.hash = h
}
}
};
var hljs = new function () {
function m(p) {
return p.replace(/&/gm, "&").replace(/</gm, "<")
}
function c(r, q, p) {
return RegExp(q, "m" + (r.cI ? "i" : "") + (p ? "g" : ""))
}
function j(r) {
for (var p = 0; p < r.childNodes.length; p++) {
var q = r.childNodes[p];
if (q.nodeName == "CODE" || q.nodeName == "SPAN") {
return q
}
if (!(q.nodeType == 3 && q.nodeValue.match(/\s+/))) {
break
}
}
}
function g(t, s) {
var r = "";
for (var q = 0; q < t.childNodes.length; q++) {
if (t.childNodes[q].nodeType == 3) {
var p = t.childNodes[q].nodeValue;
if (s) {
p = p.replace(/\n/g, "")
}
r += p
} else {
if (t.childNodes[q].nodeName == "BR") {
r += "\n"
} else {
r += g(t.childNodes[q])
}
}
}
if (/MSIE [678]/.test(navigator.userAgent)) {
r = r.replace(/\r/g, "\n")
}
return r
}
function a(s) {
var q = s.className.split(/\s+/);
q = q.concat(s.parentNode.className.split(/\s+/));
for (var p = 0; p < q.length; p++) {
var r = q[p].replace(/^language-/, "");
if (d[r] || r == "no-highlight") {
return r
}
}
}
function b(p) {
var q = [];
(function (s, t) {
for (var r = 0; r < s.childNodes.length; r++) {
if (s.childNodes[r].nodeType == 3) {
t += s.childNodes[r].nodeValue.length
} else {
if (s.childNodes[r].nodeName == "BR") {
t += 1
} else {
q.push({
event: "start",
offset: t,
node: s.childNodes[r]
});
t = arguments.callee(s.childNodes[r], t);
q.push({
event: "stop",
offset: t,
node: s.childNodes[r]
})
}
}
}
return t
})(p, 0);
return q
}
function l(y, z, x) {
var r = 0;
var w = "";
var t = [];
function u() {
if (y.length && z.length) {
if (y[0].offset != z[0].offset) {
return (y[0].offset < z[0].offset) ? y : z
} else {
return z[0].event == "start" ? y : z
}
} else {
return y.length ? y : z
}
}
function s(C) {
var D = "<" + C.nodeName.toLowerCase();
for (var A = 0; A < C.attributes.length; A++) {
var B = C.attributes[A];
D += " " + B.nodeName.toLowerCase();
if (B.nodeValue != undefined && B.nodeValue != false && B.nodeValue != null) {
D += '="' + m(B.nodeValue) + '"'
}
}
return D + ">"
}
while (y.length || z.length) {
var v = u().splice(0, 1)[0];
w += m(x.substr(r, v.offset - r));
r = v.offset;
if (v.event == "start") {
w += s(v.node);
t.push(v.node)
} else {
if (v.event == "stop") {
var q = t.length;
do {
q--;
var p = t[q];
w += ("</" + p.nodeName.toLowerCase() + ">")
} while (p != v.node);
t.splice(q, 1);
while (q < t.length) {
w += s(t[q]);
q++
}
}
}
}
w += x.substr(r);
return w
}
function i() {
function p(u, t, v) {
if (u.compiled) {
return
}
if (!v) {
u.bR = c(t, u.b ? u.b : "\\B|\\b");
if (!u.e && !u.eW) {
u.e = "\\B|\\b"
}
if (u.e) {
u.eR = c(t, u.e)
}
}
if (u.i) {
u.iR = c(t, u.i)
}
if (u.r == undefined) {
u.r = 1
}
if (u.k) {
u.lR = c(t, u.l || hljs.IR, true)
}
for (var s in u.k) {
if (!u.k.hasOwnProperty(s)) {
continue
}
if (u.k[s] instanceof Object) {
u.kG = u.k
} else {
u.kG = {
keyword: u.k
}
}
break
}
if (!u.c) {
u.c = []
}
u.compiled = true;
for (var r = 0; r < u.c.length; r++) {
p(u.c[r], t, false)
}
if (u.starts) {
p(u.starts, t, false)
}
}
for (var q in d) {
if (!d.hasOwnProperty(q)) {
continue
}
p(d[q].dM, d[q], true)
}
}
function e(J, D) {
if (!i.called) {
i();
i.called = true
}
function z(r, M) {
for (var L = 0; L < M.c.length; L++) {
if (M.c[L].bR.test(r)) {
return M.c[L]
}
}
}
function w(L, r) {
if (C[L].e && C[L].eR.test(r)) {
return 1
}
if (C[L].eW) {
var M = w(L - 1, r);
return M ? M + 1 : 0
}
return 0
}
function x(r, L) {
return L.iR && L.iR.test(r)
}
function A(O, N) {
var M = [];
for (var L = 0; L < O.c.length; L++) {
M.push(O.c[L].b)
}
var r = C.length - 1;
do {
if (C[r].e) {
M.push(C[r].e)
}
r--
} while (C[r + 1].eW);
if (O.i) {
M.push(O.i)
}
return c(N, "(" + M.join("|") + ")", true)
}
function s(M, L) {
var N = C[C.length - 1];
if (!N.t) {
N.t = A(N, H)
}
N.t.lastIndex = L;
var r = N.t.exec(M);
if (r) {
return [M.substr(L, r.index - L), r[0], false]
} else {
return [M.substr(L), "", true]
}
}
function p(O, r) {
var L = H.cI ? r[0].toLowerCase() : r[0];
for (var N in O.kG) {
if (!O.kG.hasOwnProperty(N)) {
continue
}
var M = O.kG[N].hasOwnProperty(L);
if (M) {
return [N, M]
}
}
return false
}
function F(M, O) {
if (!O.k) {
return m(M)
}
var N = "";
var P = 0;
O.lR.lastIndex = 0;
var L = O.lR.exec(M);
while (L) {
N += m(M.substr(P, L.index - P));
var r = p(O, L);
if (r) {
t += r[1];
N += '<span class="' + r[0] + '">' + m(L[0]) + "</span>"
} else {
N += m(L[0])
}
P = O.lR.lastIndex;
L = O.lR.exec(M)
}
N += m(M.substr(P, M.length - P));
return N
}
function K(r, M) {
if (M.sL && d[M.sL]) {
var L = e(M.sL, r);
t += L.keyword_count;
return L.value
} else {
return F(r, M)
}
}
function I(M, r) {
var L = M.cN ? '<span class="' + M.cN + '">' : "";
if (M.rB) {
q += L;
M.buffer = ""
} else {
if (M.eB) {
q += m(r) + L;
M.buffer = ""
} else {
q += L;
M.buffer = r
}
}
C.push(M);
B += M.r
}
function E(O, L, Q) {
var R = C[C.length - 1];
if (Q) {
q += K(R.buffer + O, R);
return false
}
var M = z(L, R);
if (M) {
q += K(R.buffer + O, R);
I(M, L);
return M.rB
}
var r = w(C.length - 1, L);
if (r) {
var N = R.cN ? "</span>" : "";
if (R.rE) {
q += K(R.buffer + O, R) + N
} else {
if (R.eE) {
q += K(R.buffer + O, R) + N + m(L)
} else {
q += K(R.buffer + O + L, R) + N
}
}
while (r > 1) {
N = C[C.length - 2].cN ? "</span>" : "";
q += N;
r--;
C.length--
}
var P = C[C.length - 1];
C.length--;
C[C.length - 1].buffer = "";
if (P.starts) {
I(P.starts, "")
}
return R.rE
}
if (x(L, R)) {
throw "Illegal"
}
}
var H = d[J];
var C = [H.dM];
var B = 0;
var t = 0;
var q = "";
try {
var v = 0;
H.dM.buffer = "";
do {
var y = s(D, v);
var u = E(y[0], y[1], y[2]);
v += y[0].length;
if (!u) {
v += y[1].length
}
} while (!y[2]);
if (C.length > 1) {
throw "Illegal"
}
return {
r: B,
keyword_count: t,
value: q
}
} catch (G) {
if (G == "Illegal") {
return {
r: 0,
keyword_count: 0,
value: m(D)
}
} else {
throw G
}
}
}
function f(t) {
var r = {
keyword_count: 0,
r: 0,
value: m(t)
};
var q = r;
for (var p in d) {
if (!d.hasOwnProperty(p)) {
continue
}
var s = e(p, t);
s.language = p;
if (s.keyword_count + s.r > q.keyword_count + q.r) {
q = s
}
if (s.keyword_count + s.r > r.keyword_count + r.r) {
q = r;
r = s
}
}
if (q.language) {
r.second_best = q
}
return r
}
function h(r, q, p) {
if (q) {
r = r.replace(/^((<[^>]+>|\t)+)/gm, function (t, w, v, u) {
return w.replace(/\t/g, q)
})
}
if (p) {
r = r.replace(/\n/g, "<br>")
}
return r
}
function o(u, x, q) {
var y = g(u, q);
var s = a(u);
if (s == "no-highlight") {
return
}
if (s) {
var w = e(s, y)
} else {
var w = f(y);
s = w.language
}
var p = b(u);
if (p.length) {
var r = document.createElement("pre");
r.innerHTML = w.value;
w.value = l(p, b(r), y)
}
w.value = h(w.value, x, q);
var t = u.className;
if (!t.match("(\\s|^)(language-)?" + s + "(\\s|$)")) {
t = t ? (t + " " + s) : s
}
if (/MSIE [678]/.test(navigator.userAgent) && u.tagName == "CODE" && u.parentNode.tagName == "PRE") {
var r = u.parentNode;
var v = document.createElement("div");
v.innerHTML = "<pre><code>" + w.value + "</code></pre>";
u = v.firstChild.firstChild;
v.firstChild.cN = r.cN;
r.parentNode.replaceChild(v.firstChild, r)
} else {
u.innerHTML = w.value
}
u.className = t;
u.result = {
language: s,
kw: w.keyword_count,
re: w.r
};
if (w.second_best) {
u.second_best = {
language: w.second_best.language,
kw: w.second_best.keyword_count,
re: w.second_best.r
}
}
}
function k() {
if (k.called) {
return
}
k.called = true;
var r = document.getElementsByTagName("pre");
for (var p = 0; p < r.length; p++) {
var q = j(r[p]);
if (q) {
o(q, hljs.tabReplace)
}
}
ngd_addNumber()
}
function n() {
if (window.addEventListener) {
window.addEventListener("DOMContentLoaded", k, false);
window.addEventListener("load", k, false)
} else {
if (window.attachEvent) {
window.attachEvent("onload", k)
} else {
window.onload = k
}
}
}
var d = {};
this.LANGUAGES = d;
this.highlight = e;
this.highlightAuto = f;
this.fixMarkup = h;
this.highlightBlock = o;
this.initHighlighting = k;
this.initHighlightingOnLoad = n;
this.IR = "[a-zA-Z][a-zA-Z0-9_]*";
this.UIR = "[a-zA-Z_][a-zA-Z0-9_]*";
this.NR = "\\b\\d+(\\.\\d+)?";
this.CNR = "\\b(0x[A-Za-z0-9]+|\\d+(\\.\\d+)?)";
this.RSR = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|\\.|-|-=|/|/=|:|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~";
this.BE = {
b: "\\\\.",
r: 0
};
this.ASM = {
cN: "string",
b: "'",
e: "'",
i: "\\n",
c: [this.BE],
r: 0
};
this.QSM = {
cN: "string",
b: '"',
e: '"',
i: "\\n",
c: [this.BE],
r: 0
};
this.CLCM = {
cN: "comment",
b: "//",
e: "$"
};
this.CBLCLM = {
cN: "comment",
b: "/\\*",
e: "\\*/"
};
this.HCM = {
cN: "comment",
b: "#",
e: "$"
};
this.NM = {
cN: "number",
b: this.NR,
r: 0
};
this.CNM = {
cN: "number",
b: this.CNR,
r: 0
};
this.inherit = function (p, s) {
var r = {};
for (var q in p) {
r[q] = p[q]
}
if (s) {
for (var q in s) {
r[q] = s[q]
}
}
return r
}
}();
hljs.LANGUAGES.javascript = {
dM: {
k: {
keyword: {
"in": 1,
"if": 1,
"for": 1,
"while": 1,
"finally": 1,
"var": 1,
"new": 1,
"function": 1,
"do": 1,
"return": 1,
"void": 1,
"else": 1,
"break": 1,
"catch": 1,
"instanceof": 1,
"with": 1,
"throw": 1,
"case": 1,
"default": 1,
"try": 1,
"this": 1,
"switch": 1,
"continue": 1,
"typeof": 1,
"delete": 1
},
literal: {
"true": 1,
"false": 1,
"null": 1
}
},
c: [hljs.ASM, hljs.QSM, hljs.CLCM, hljs.CBLCLM, hljs.CNM, {
b: "(" + hljs.RSR + "|case|return|throw)\\s*",
k: {
"return": 1,
"throw": 1,
"case": 1
},
c: [hljs.CLCM, hljs.CBLCLM, {
cN: "regexp",
b: "/",
e: "/[gim]*",
c: [{
b: "\\\\/"
}]
}],
r: 0
}, {
cN: "function",
b: "\\bfunction\\b",
e: "{",
k: {
"function": 1
},
c: [{
cN: "title",
b: "[A-Za-z$_][0-9A-Za-z$_]*"
}, {
cN: "params",
b: "\\(",
e: "\\)",
c: [hljs.ASM, hljs.QSM, hljs.CLCM, hljs.CBLCLM]
}]
}]
}
};
hljs.LANGUAGES.css = function () {
var a = {
cN: "function",
b: hljs.IR + "\\(",
e: "\\)",
c: [{
eW: true,
eE: true,
c: [hljs.NM, hljs.ASM, hljs.QSM]
}]
};
return {
cI: true,
dM: {
i: "[=/|']",
c: [hljs.CBLCLM, {
cN: "id",
b: "\\#[A-Za-z0-9_-]+"
}, {
cN: "class",
b: "\\.[A-Za-z0-9_-]+",
r: 0
}, {
cN: "attr_selector",
b: "\\[",
e: "\\]",
i: "$"
}, {
cN: "pseudo",
b: ":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"
}, {
cN: "at_rule",
b: "@(font-face|page)",
l: "[a-z-]+",
k: {
"font-face": 1,
page: 1
}
}, {
cN: "at_rule",
b: "@",
e: "[{;]",
eE: true,
k: {
"import": 1,
page: 1,
media: 1,
charset: 1
},
c: [a, hljs.ASM, hljs.QSM, hljs.NM]
}, {
cN: "tag",
b: hljs.IR,
r: 0
}, {
cN: "rules",
b: "{",
e: "}",
i: "[^\\s]",
r: 0,
c: [hljs.CBLCLM, {
cN: "rule",
b: "[^\\s]",
rB: true,
e: ";",
eW: true,
c: [{
cN: "attribute",
b: "[A-Z\\_\\.\\-]+",
e: ":",
eE: true,
i: "[^\\s]",
starts: {
cN: "value",
eW: true,
eE: true,
c: [a, hljs.NM, hljs.QSM, hljs.ASM, hljs.CBLCLM, {
cN: "hexcolor",
b: "\\#[0-9A-F]+"
}, {
cN: "important",
b: "!important"
}]
}
}]
}]
}]
}
}
}();
hljs.LANGUAGES.xml = function () {
var b = "[A-Za-z0-9\\._:-]+";
var a = {
eW: true,
c: [{
cN: "attribute",
b: b,
r: 0
}, {
b: '="',
rB: true,
e: '"',
c: [{
cN: "value",
b: '"',
eW: true
}]
}, {
b: "='",
rB: true,
e: "'",
c: [{
cN: "value",
b: "'",
eW: true
}]
}, {
b: "=",
c: [{
cN: "value",
b: "[^\\s/>]+"
}]
}]
};
return {
cI: true,
dM: {
c: [{
cN: "pi",
b: "<\\?",
e: "\\?>",
r: 10
}, {
cN: "doctype",
b: "<!DOCTYPE",
e: ">",
r: 10,
c: [{
b: "\\[",
e: "\\]"
}]
}, {
cN: "comment",
b: "<!--",
e: "-->",
r: 10
}, {
cN: "cdata",
b: "<\\!\\[CDATA\\[",
e: "\\]\\]>",
r: 10
}, {
cN: "tag",
b: "<style",
e: ">",
k: {
title: {
style: 1
}
},
c: [a],
starts: {
cN: "css",
e: "</style>",
rE: true,
sL: "css"
}
}, {
cN: "tag",
b: "<script",
e: ">",
k: {
title: {
script: 1
}
},
c: [a],
starts: {
cN: "javascript",
e: "<\/script>",
rE: true,
sL: "javascript"
}
}, {
cN: "vbscript",
b: "<%",
e: "%>",
sL: "vbscript"
}, {
cN: "tag",
b: "</?",
e: "/?>",
c: [{
cN: "title",
b: "[^ />]+"
},
a]
}]
}
}
}();
hljs.LANGUAGES.java = {
dM: {
k: {
"false": 1,
"synchronized": 1,
"int": 1,
"abstract": 1,
"float": 1,
"private": 1,
"char": 1,
"interface": 1,
"boolean": 1,
"static": 1,
"null": 1,
"if": 1,
"const": 1,
"for": 1,
"true": 1,
"while": 1,
"long": 1,
"throw": 1,
strictfp: 1,
"finally": 1,
"protected": 1,
"extends": 1,
"import": 1,
"native": 1,
"final": 1,
"implements": 1,
"return": 1,
"void": 1,
"enum": 1,
"else": 1,
"break": 1,
"transient": 1,
"new": 1,
"catch": 1,
"instanceof": 1,
"byte": 1,
"super": 1,
"class": 1,
"volatile": 1,
"case": 1,
assert: 1,
"short": 1,
"package": 1,
"default": 1,
"double": 1,
"public": 1,
"try": 1,
"this": 1,
"switch": 1,
"continue": 1,
"throws": 1
},
c: [{
cN: "javadoc",
b: "/\\*\\*",
e: "\\*/",
c: [{
cN: "javadoctag",
b: "@[A-Za-z]+"
}],
r: 10
},
hljs.CLCM, hljs.CBLCLM, hljs.ASM, hljs.QSM, {
cN: "class",
b: "(class |interface )",
e: "{",
k: {
"class": 1,
"interface": 1
},
i: ":",
c: [{
b: "(implements|extends)",
k: {
"extends": 1,
"implements": 1
},
r: 10
}, {
cN: "title",
b: hljs.UIR
}]
},
hljs.CNM, {
cN: "annotation",
b: "@[A-Za-z]+"
}]
}
};
hljs.LANGUAGES.php = {
cI: true,
dM: {
k: {
and: 1,
include_once: 1,
list: 1,
"abstract": 1,
global: 1,
"private": 1,
echo: 1,
"interface": 1,
as: 1,
"static": 1,
endswitch: 1,
array: 1,
"null": 1,
"if": 1,
endwhile: 1,
or: 1,
"const": 1,
"for": 1,
endforeach: 1,
self: 1,
"var": 1,
"while": 1,
isset: 1,
"public": 1,
"protected": 1,
exit: 1,
foreach: 1,
"throw": 1,
elseif: 1,
"extends": 1,
include: 1,
__FILE__: 1,
empty: 1,
require_once: 1,
"function": 1,
"do": 1,
xor: 1,
"return": 1,
"implements": 1,
parent: 1,
clone: 1,
use: 1,
__CLASS__: 1,
__LINE__: 1,
"else": 1,
"break": 1,
print: 1,
"eval": 1,
"new": 1,
"catch": 1,
__METHOD__: 1,
"class": 1,
"case": 1,
exception: 1,
php_user_filter: 1,
"default": 1,
die: 1,
require: 1,
__FUNCTION__: 1,
enddeclare: 1,
"final": 1,
"try": 1,
"this": 1,
"switch": 1,
"continue": 1,
endfor: 1,
endif: 1,
declare: 1,
unset: 1,
"true": 1,
"false": 1,
namespace: 1
},
c: [hljs.CLCM, hljs.HCM, {
cN: "comment",
b: "/\\*",
e: "\\*/",
c: [{
cN: "phpdoc",
b: "\\s@[A-Za-z]+",
r: 10
}]
},
hljs.CNM, hljs.inherit(hljs.ASM, {
i: null
}), hljs.inherit(hljs.QSM, {
i: null
}), {
cN: "variable",
b: "\\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*"
}, {
cN: "preprocessor",
b: "<\\?php",
r: 10
}, {
cN: "preprocessor",
b: "\\?>"
}]
}
};
hljs.tabReplace = ' ';
hljs.initHighlighting();
(function(a){a.isScrollToFixed=function(b){return !!a(b).data("ScrollToFixed")};a.ScrollToFixed=function(d,i){var l=this;l.$el=a(d);l.el=d;l.$el.data("ScrollToFixed",l);var c=false;var G=l.$el;var H;var E;var e;var y;var D=0;var q=0;var j=-1;var f=-1;var t=null;var z;var g;function u(){G.trigger("preUnfixed.ScrollToFixed");k();G.trigger("unfixed.ScrollToFixed");f=-1;D=G.offset().top;q=G.offset().left;if(l.options.offsets){q+=(G.offset().left-G.position().left)}if(j==-1){j=q}H=G.css("position");c=true;if(l.options.bottom!=-1){G.trigger("preFixed.ScrollToFixed");w();G.trigger("fixed.ScrollToFixed")}}function n(){var I=l.options.limit;if(!I){return 0}if(typeof(I)==="function"){return I.apply(G)}return I}function p(){return H==="fixed"}function x(){return H==="absolute"}function h(){return !(p()||x())}function w(){if(!p()){t.css({display:G.css("display"),width:G.outerWidth(true),height:G.outerHeight(true),"float":G.css("float")});cssOptions={"z-index":l.options.zIndex,position:"fixed",top:l.options.bottom==-1?s():"",bottom:l.options.bottom==-1?"":l.options.bottom,"margin-left":"0px"};if(!l.options.dontSetWidth){cssOptions.width=G.width()}G.css(cssOptions);G.addClass(l.options.baseClassName);if(l.options.className){G.addClass(l.options.className)}H="fixed"}}function b(){var J=n();var I=q;if(l.options.removeOffsets){I="";J=J-D}cssOptions={position:"absolute",top:J,left:I,"margin-left":"0px",bottom:""};if(!l.options.dontSetWidth){cssOptions.width=G.width()}G.css(cssOptions);H="absolute"}function k(){if(!h()){f=-1;t.css("display","none");G.css({"z-index":y,width:"",position:E,left:"",top:e,"margin-left":""});G.removeClass("scroll-to-fixed-fixed");if(l.options.className){G.removeClass(l.options.className)}H=null}}function v(I){if(I!=f){G.css("left",q-I);f=I}}function s(){var I=l.options.marginTop;if(!I){return 0}if(typeof(I)==="function"){return I.apply(G)}return I}function A(){if(!a.isScrollToFixed(G)){return}var K=c;if(!c){u()}else{if(h()){D=G.offset().top;q=G.offset().left}}var I=a(window).scrollLeft();var L=a(window).scrollTop();var J=n();if(l.options.minWidth&&a(window).width()<l.options.minWidth){if(!h()||!K){o();G.trigger("preUnfixed.ScrollToFixed");k();G.trigger("unfixed.ScrollToFixed")}}else{if(l.options.maxWidth&&a(window).width()>l.options.maxWidth){if(!h()||!K){o();G.trigger("preUnfixed.ScrollToFixed");k();G.trigger("unfixed.ScrollToFixed")}}else{if(l.options.bottom==-1){if(J>0&&L>=J-s()){if(!x()||!K){o();G.trigger("preAbsolute.ScrollToFixed");b();G.trigger("unfixed.ScrollToFixed")}}else{if(L>=D-s()){if(!p()||!K){o();G.trigger("preFixed.ScrollToFixed");w();f=-1;G.trigger("fixed.ScrollToFixed")}v(I)}else{if(!h()||!K){o();G.trigger("preUnfixed.ScrollToFixed");k();G.trigger("unfixed.ScrollToFixed")}}}}else{if(J>0){if(L+a(window).height()-G.outerHeight(true)>=J-(s()||-m())){if(p()){o();G.trigger("preUnfixed.ScrollToFixed");if(E==="absolute"){b()}else{k()}G.trigger("unfixed.ScrollToFixed")}}else{if(!p()){o();G.trigger("preFixed.ScrollToFixed");w()}v(I);G.trigger("fixed.ScrollToFixed")}}else{v(I)}}}}}function m(){if(!l.options.bottom){return 0}return l.options.bottom}function o(){var I=G.css("position");if(I=="absolute"){G.trigger("postAbsolute.ScrollToFixed")}else{if(I=="fixed"){G.trigger("postFixed.ScrollToFixed")}else{G.trigger("postUnfixed.ScrollToFixed")}}}var C=function(I){if(G.is(":visible")){c=false;A()}};var F=function(I){(!!window.requestAnimationFrame)?requestAnimationFrame(A):A()};var B=function(){var J=document.body;if(document.createElement&&J&&J.appendChild&&J.removeChild){var L=document.createElement("div");if(!L.getBoundingClientRect){return null}L.innerHTML="x";L.style.cssText="position:fixed;top:100px;";J.appendChild(L);var M=J.style.height,N=J.scrollTop;J.style.height="3000px";J.scrollTop=500;var I=L.getBoundingClientRect().top;J.style.height=M;var K=(I===100);J.removeChild(L);J.scrollTop=N;return K}return null};var r=function(I){I=I||window.event;if(I.preventDefault){I.preventDefault()}I.returnValue=false};l.init=function(){l.options=a.extend({},a.ScrollToFixed.defaultOptions,i);y=G.css("z-index");l.$el.css("z-index",l.options.zIndex);t=a("<div />");H=G.css("position");E=G.css("position");e=G.css("top");if(h()){l.$el.after(t)}a(window).bind("resize.ScrollToFixed",C);a(window).bind("scroll.ScrollToFixed",F);if(l.options.preFixed){G.bind("preFixed.ScrollToFixed",l.options.preFixed)}if(l.options.postFixed){G.bind("postFixed.ScrollToFixed",l.options.postFixed)}if(l.options.preUnfixed){G.bind("preUnfixed.ScrollToFixed",l.options.preUnfixed)}if(l.options.postUnfixed){G.bind("postUnfixed.ScrollToFixed",l.options.postUnfixed)}if(l.options.preAbsolute){G.bind("preAbsolute.ScrollToFixed",l.options.preAbsolute)}if(l.options.postAbsolute){G.bind("postAbsolute.ScrollToFixed",l.options.postAbsolute)}if(l.options.fixed){G.bind("fixed.ScrollToFixed",l.options.fixed)}if(l.options.unfixed){G.bind("unfixed.ScrollToFixed",l.options.unfixed)}if(l.options.spacerClass){t.addClass(l.options.spacerClass)}G.bind("resize.ScrollToFixed",function(){t.height(G.height())});G.bind("scroll.ScrollToFixed",function(){G.trigger("preUnfixed.ScrollToFixed");k();G.trigger("unfixed.ScrollToFixed");A()});G.bind("detach.ScrollToFixed",function(I){r(I);G.trigger("preUnfixed.ScrollToFixed");k();G.trigger("unfixed.ScrollToFixed");a(window).unbind("resize.ScrollToFixed",C);a(window).unbind("scroll.ScrollToFixed",F);G.unbind(".ScrollToFixed");t.remove();l.$el.removeData("ScrollToFixed")});C()};l.init()};a.ScrollToFixed.defaultOptions={marginTop:0,limit:0,bottom:-1,zIndex:1000,baseClassName:"scroll-to-fixed-fixed"};a.fn.scrollToFixed=function(b){return this.each(function(){(new a.ScrollToFixed(this,b))})}})(jQuery);
/*--------Jquery Easing------*/
jQuery.easing.jswing = jQuery.easing.swing;
jQuery.extend(jQuery.easing, {
def: "easeOutQuad",
swing: function (e, f, a, h, g) {
return jQuery.easing[jQuery.easing.def](e, f, a, h, g)
},
easeOutElastic: function (f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k) == 1) {
return e + l
}
if (!j) {
j = k * 0.3
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e
}
});
(function (a) {
a.fn.stickyBar = function (b) {
b = a.extend({
until: "",
top: 0,
bottom: 0,
animated: false,
speed: 400,
easing: null,
fixedClass: "isFixed",
stoppedClass: "isStopped",
onFixed: function () {},
onStatic: function () {},
onStopped: function () {}
}, b);
return this.each(function () {
var c = a(this),
g = c.offset().top,
f = c.css("margin-top"),
d = c.css("margin-bottom"),
i = c.outerHeight(),
h = c.css("position"),
e = (b.until !== "") ? a(b.until).offset().top - i - b.top : a(document).height();
if (!b.animated) {
a("<div />", {
"class": "space-holder",
style: "display:none;height:" + i + "px;margin-top:" + f + ";margin-bottom:" + d
}).insertBefore(c)
} else {
if (h == "static") {
c.css("position", "relative")
}
}
a(window).on("scroll", function () {
var j = a(this).scrollTop();
if (j >= g - b.top) {
if (j <= e - b.bottom) {
b.onFixed.call(c);
if (!b.animated) {
c.css({
position: "fixed",
top: b.top,
left: c.offset().left,
width: c.width() + "px",
"margin-top": 0
}).removeClass(b.stoppedClass).addClass(b.fixedClass).prev().show()
} else {
c.stop().animate({
top: j - g + b.top
}, b.speed, b.easing, function () {
a(this).css("top", j - g + b.top)
}).removeClass(b.stoppedClass).addClass(b.fixedClass)
}
} else {
b.onStopped.call(c);
c.css({
position: "relative",
top: e - g - b.bottom,
left: 0,
"margin-top": f,
"margin-bottom": d + b.bottom
}).removeClass(b.fixedClass).addClass(b.stoppedClass).prev().hide()
}
} else {
b.onStatic.call(c);
if (!b.animated) {
c.css({
position: h,
top: 0,
left: 0,
"margin-top": f,
"margin-bottom": d
}).removeClass(b.fixedClass + " " + b.stoppedClass).prev().hide()
} else {
c.stop().animate({
top: 0
}, b.speed, b.easing, function () {
a(this).css("top", 0)
}).removeClass(b.fixedClass + " " + b.stoppedClass)
}
}
})
})
}
})(jQuery);
(function (a) {
a.easing.jswing = a.easing.swing;
a.extend(a.easing, {
def: "easeOutQuad",
swing: function (f, g, e, i, h) {
return a.easing[a.easing.def](f, g, e, i, h)
},
easeInQuad: function (f, g, e, i, h) {
return i * (g /= h) * g + e
},
easeOutQuad: function (f, g, e, i, h) {
return -i * (g /= h) * (g - 2) + e
},
easeInOutQuad: function (f, g, e, i, h) {
if ((g /= h / 2) < 1) {
return i / 2 * g * g + e
}
return -i / 2 * ((--g) * (g - 2) - 1) + e
},
easeInCubic: function (f, g, e, i, h) {
return i * (g /= h) * g * g + e
},
easeOutCubic: function (f, g, e, i, h) {
return i * ((g = g / h - 1) * g * g + 1) + e
},
easeInOutCubic: function (f, g, e, i, h) {
if ((g /= h / 2) < 1) {
return i / 2 * g * g * g + e
}
return i / 2 * ((g -= 2) * g * g + 2) + e
},
easeInQuart: function (f, g, e, i, h) {
return i * (g /= h) * g * g * g + e
},
easeOutQuart: function (f, g, e, i, h) {
return -i * ((g = g / h - 1) * g * g * g - 1) + e
},
easeInOutQuart: function (f, g, e, i, h) {
if ((g /= h / 2) < 1) {
return i / 2 * g * g * g * g + e
}
return -i / 2 * ((g -= 2) * g * g * g - 2) + e
},
easeInQuint: function (f, g, e, i, h) {
return i * (g /= h) * g * g * g * g + e
},
easeOutQuint: function (f, g, e, i, h) {
return i * ((g = g / h - 1) * g * g * g * g + 1) + e
},
easeInOutQuint: function (f, g, e, i, h) {
if ((g /= h / 2) < 1) {
return i / 2 * g * g * g * g * g + e
}
return i / 2 * ((g -= 2) * g * g * g * g + 2) + e
},
easeInSine: function (f, g, e, i, h) {
return -i * Math.cos(g / h * (Math.PI / 2)) + i + e
},
easeOutSine: function (f, g, e, i, h) {
return i * Math.sin(g / h * (Math.PI / 2)) + e
},
easeInOutSine: function (f, g, e, i, h) {
return -i / 2 * (Math.cos(Math.PI * g / h) - 1) + e
},
easeInExpo: function (f, g, e, i, h) {
return (g == 0) ? e : i * Math.pow(2, 10 * (g / h - 1)) + e
},
easeOutExpo: function (f, g, e, i, h) {
return (g == h) ? e + i : i * (-Math.pow(2, -10 * g / h) + 1) + e
},
easeInOutExpo: function (f, g, e, i, h) {
if (g == 0) {
return e
}
if (g == h) {
return e + i
}
if ((g /= h / 2) < 1) {
return i / 2 * Math.pow(2, 10 * (g - 1)) + e
}
return i / 2 * (-Math.pow(2, -10 * --g) + 2) + e
},
easeInCirc: function (f, g, e, i, h) {
return -i * (Math.sqrt(1 - (g /= h) * g) - 1) + e
},
easeOutCirc: function (f, g, e, i, h) {
return i * Math.sqrt(1 - (g = g / h - 1) * g) + e
},
easeInOutCirc: function (f, g, e, i, h) {
if ((g /= h / 2) < 1) {
return -i / 2 * (Math.sqrt(1 - g * g) - 1) + e
}
return i / 2 * (Math.sqrt(1 - (g -= 2) * g) + 1) + e
},
easeInElastic: function (f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k) == 1) {
return e + l
}
if (!j) {
j = k * 0.3
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
return -(g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e
},
easeOutElastic: function (f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k) == 1) {
return e + l
}
if (!j) {
j = k * 0.3
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
return g * Math.pow(2, -10 * h) * Math.sin((h * k - i) * (2 * Math.PI) / j) + l + e
},
easeInOutElastic: function (f, h, e, l, k) {
var i = 1.70158;
var j = 0;
var g = l;
if (h == 0) {
return e
}
if ((h /= k / 2) == 2) {
return e + l
}
if (!j) {
j = k * (0.3 * 1.5)
}
if (g < Math.abs(l)) {
g = l;
var i = j / 4
} else {
var i = j / (2 * Math.PI) * Math.asin(l / g)
}
if (h < 1) {
return -0.5 * (g * Math.pow(2, 10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j)) + e
}
return g * Math.pow(2, -10 * (h -= 1)) * Math.sin((h * k - i) * (2 * Math.PI) / j) * 0.5 + l + e
},
easeInBack: function (f, g, e, j, i, h) {
if (h == undefined) {
h = 1.70158
}
return j * (g /= i) * g * ((h + 1) * g - h) + e
},
easeOutBack: function (f, g, e, j, i, h) {
if (h == undefined) {
h = 1.70158
}
return j * ((g = g / i - 1) * g * ((h + 1) * g + h) + 1) + e
},
easeInOutBack: function (f, g, e, j, i, h) {
if (h == undefined) {
h = 1.70158
}
if ((g /= i / 2) < 1) {
return j / 2 * (g * g * (((h *= (1.525)) + 1) * g - h)) + e
}
return j / 2 * ((g -= 2) * g * (((h *= (1.525)) + 1) * g + h) + 2) + e
},
easeInBounce: function (f, g, e, i, h) {
return i - a.easing.easeOutBounce(f, h - g, 0, i, h) + e
},
easeOutBounce: function (f, g, e, i, h) {
if ((g /= h) < (1 / 2.75)) {
return i * (7.5625 * g * g) + e
} else {
if (g < (2 / 2.75)) {
return i * (7.5625 * (g -= (1.5 / 2.75)) * g + 0.75) + e
} else {
if (g < (2.5 / 2.75)) {
return i * (7.5625 * (g -= (2.25 / 2.75)) * g + 0.9375) + e
} else {
return i * (7.5625 * (g -= (2.625 / 2.75)) * g + 0.984375) + e
}
}
}
},
easeInOutBounce: function (f, g, e, i, h) {
if (g < h / 2) {
return a.easing.easeInBounce(f, g * 2, 0, i, h) * 0.5 + e
}
return a.easing.easeOutBounce(f, g * 2 - h, 0, i, h) * 0.5 + i * 0.5 + e
}
})
})(jQuery);
//]]>