Advertisement
Guest User

Untitled

a guest
Sep 18th, 2015
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.77 KB | None | 0 0
  1. (function(){if(window.jQuery)var w=window.jQuery;var E=window.jQuery=function(a,b){return new E.prototype.init(a,b)};if(window.$)var D=window.$;window.$=E;var u=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var G=/^.[^:#\[\.]*$/;E.fn=E.prototype={init:function(d,b){d=d||document;if(d.nodeType){this[0]=d;this.length=1;return this}else if(typeof d=="string"){var c=u.exec(d);if(c&&(c[1]||!b)){if(c[1])d=E.clean([c[1]],b);else{var a=document.getElementById(c[3]);if(a)if(a.id!=c[3])return E().find(d);else{this[0]=a;this.length=1;return this}else d=[]}}else return new E(b).find(d)}else if(E.isFunction(d))return new E(document)[E.fn.ready?"ready":"load"](d);return this.setArray(d.constructor==Array&&d||(d.jquery||d.length&&d!=window&&!d.nodeType&&d[0]!=undefined&&d[0].nodeType)&&E.makeArray(d)||[d])},jquery:"1.2.2",size:function(){return this.length},length:0,get:function(a){return a==undefined?E.makeArray(this):this[a]},pushStack:function(b){var a=E(b);a.prevObject=this;return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return E.each(this,a,b)},index:function(b){var a=-1;this.each(function(i){if(this==b)a=i});return a},attr:function(c,a,b){var d=c;if(c.constructor==String)if(a==undefined)return this.length&&E[b||"attr"](this[0],c)||undefined;else{d={};d[c]=a}return this.each(function(i){for(c in d)E.attr(b?this.style:this,c,E.prop(this,d[c],b,i,c))})},css:function(b,a){if((b=='width'||b=='height')&&parseFloat(a)<0)a=undefined;return this.attr(b,a,"curCSS")},text:function(b){if(typeof b!="object"&&b!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b));var a="";E.each(b||this,function(){E.each(this.childNodes,function(){if(this.nodeType!=8)a+=this.nodeType!=1?this.nodeValue:E.fn.text([this])})});return a},wrapAll:function(b){if(this[0])E(b,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var a=this;while(a.firstChild)a=a.firstChild;return a}).append(this);return this},wrapInner:function(a){return this.each(function(){E(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){E(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,false,function(a){if(this.nodeType==1)this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,true,function(a){if(this.nodeType==1)this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,true,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||E([])},find:function(b){var c=E.map(this,function(a){return E.find(b,a)});return this.pushStack(/[^+>] [^+>]/.test(b)||b.indexOf("..")>-1?E.unique(c):c)},clone:function(e){var f=this.map(function(){if(E.browser.msie&&!E.isXMLDoc(this)){var a=this.cloneNode(true),container=document.createElement("div"),container2=document.createElement("div");container.appendChild(a);container2.innerHTML=container.innerHTML;return container2.firstChild}else return this.cloneNode(true)});var d=f.find("*").andSelf().each(function(){if(this[F]!=undefined)this[F]=null});if(e===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var c=E.data(this,"events");for(var a in c)for(var b in c[a])E.event.add(d[i],a,c[a][b],c[a][b].data)});return f},filter:function(b){return this.pushStack(E.isFunction(b)&&E.grep(this,function(a,i){return b.call(a,i)})||E.multiFilter(b,this))},not:function(b){if(b.constructor==String)if(G.test(b))return this.pushStack(E.multiFilter(b,this,true));else b=E.multiFilter(b,this);var a=b.length&&b[b.length-1]!==undefined&&!b.nodeType;return this.filter(function(){return a?E.inArray(this,b)<0:this!=b})},add:function(a){return!a?this:this.pushStack(E.merge(this.get(),a.constructor==String?E(a).get():a.length!=undefined&&(!a.nodeName||E.nodeName(a,"form"))?a:[a]))},is:function(a){return a?E.multiFilter(a,this).length>0:false},hasClass:function(a){return this.is("."+a)},val:function(b){if(b==undefined){if(this.length){var c=this[0];if(E.nodeName(c,"select")){var e=c.selectedIndex,values=[],options=c.options,one=c.type=="select-one";if(e<0)return null;for(var i=one?e:0,max=one?e+1:options.length;i<max;i++){var d=options[i];if(d.selected){b=E.browser.msie&&!d.attributes.value.specified?d.text:d.value;if(one)return b;values.push(b)}}return values}else return(this[0].value||"").replace(/\r/g,"")}return undefined}return this.each(function(){if(this.nodeType!=1)return;if(b.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(E.inArray(this.value,b)>=0||E.inArray(this.name,b)>=0);else if(E.nodeName(this,"select")){var a=b.constructor==Array?b:[b];E("option",this).each(function(){this.selected=(E.inArray(this.value,a)>=0||E.inArray(this.text,a)>=0)});if(!a.length)this.selectedIndex=-1}else this.value=b})},html:function(a){return a==undefined?(this.length?this[0].innerHTML:null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(b){return this.pushStack(E.map(this,function(a,i){return b.call(a,i,a)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(g,f,h,d){var e=this.length>1,elems;return this.each(function(){if(!elems){elems=E.clean(g,this.ownerDocument);if(h)elems.reverse()}var b=this;if(f&&E.nodeName(this,"table")&&E.nodeName(elems[0],"tr"))b=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var c=E([]);E.each(elems,function(){var a=e?E(this).clone(true)[0]:this;if(E.nodeName(a,"script")){c=c.add(a)}else{if(a.nodeType==1)c=c.add(E("script",a).remove());d.call(b,a)}});c.each(evalScript)})}};E.prototype.init.prototype=E.prototype;function evalScript(i,a){if(a.src)E.ajax({url:a.src,async:false,dataType:"script"});else E.globalEval(a.text||a.textContent||a.innerHTML||"");if(a.parentNode)a.parentNode.removeChild(a)}E.extend=E.fn.extend=function(){var b=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(b.constructor==Boolean){deep=b;b=arguments[1]||{};i=2}if(typeof b!="object"&&typeof b!="function")b={};if(length==1){b=this;i=0}for(;i<length;i++)if((options=arguments[i])!=null)for(var a in options){if(b===options[a])continue;if(deep&&options[a]&&typeof options[a]=="object"&&b[a]&&!options[a].nodeType)b[a]=E.extend(b[a],options[a]);else if(options[a]!=undefined)b[a]=options[a]}return b};var F="jQuery"+(new Date()).getTime(),uuid=0,windowData={};var H=/z-?index|font-?weight|opacity|zoom|line-?height/i;E.extend({noConflict:function(a){window.$=D;if(a)window.jQuery=w;return E},isFunction:function(a){return!!a&&typeof a!="string"&&!a.nodeName&&a.constructor!=Array&&/function/i.test(a+"")},isXMLDoc:function(a){return a.documentElement&&!a.body||a.tagName&&a.ownerDocument&&!a.ownerDocument.body},globalEval:function(a){a=E.trim(a);if(a){var b=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(E.browser.msie)script.text=a;else script.appendChild(document.createTextNode(a));b.appendChild(script);b.removeChild(script)}},nodeName:function(b,a){return b.nodeName&&b.nodeName.toUpperCase()==a.toUpperCase()},cache:{},data:function(c,d,b){c=c==window?windowData:c;var a=c[F];if(!a)a=c[F]=++uuid;if(d&&!E.cache[a])E.cache[a]={};if(b!=undefined)E.cache[a][d]=b;return d?E.cache[a][d]:a},removeData:function(c,b){c=c==window?windowData:c;var a=c[F];if(b){if(E.cache[a]){delete E.cache[a][b];b="";for(b in E.cache[a])break;if(!b)E.removeData(c)}}else{try{delete c[F]}catch(e){if(c.removeAttribute)c.removeAttribute(F)}delete E.cache[a]}},each:function(c,a,b){if(b){if(c.length==undefined){for(var d in c)if(a.apply(c[d],b)===false)break}else for(var i=0,length=c.length;i<length;i++)if(a.apply(c[i],b)===false)break}else{if(c.length==undefined){for(var d in c)if(a.call(c[d],d,c[d])===false)break}else for(var i=0,length=c.length,value=c[0];i<length&&a.call(value,i,value)!==false;value=c[++i]){}}return c},prop:function(b,a,c,i,d){if(E.isFunction(a))a=a.call(b,i);return a&&a.constructor==Number&&c=="curCSS"&&!H.test(d)?a+"px":a},className:{add:function(c,b){E.each((b||"").split(/\s+/),function(i,a){if(c.nodeType==1&&!E.className.has(c.className,a))c.className+=(c.className?" ":"")+a})},remove:function(c,b){if(c.nodeType==1)c.className=b!=undefined?E.grep(c.className.split(/\s+/),function(a){return!E.className.has(b,a)}).join(" "):""},has:function(b,a){return E.inArray(a,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c)b.style[d]=e[d]},css:function(d,e,c){if(e=="width"||e=="height"){var b,props={position:"absolute",visibility:"hidden",display:"block"},which=e=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){b=e=="width"?d.offsetWidth:d.offsetHeight;var a=0,border=0;E.each(which,function(){a+=parseFloat(E.curCSS(d,"padding"+this,true))||0;border+=parseFloat(E.curCSS(d,"border"+this+"Width",true))||0});b-=Math.round(a+border)}if(E(d).is(":visible"))getWH();else E.swap(d,props,getWH);return Math.max(0,b)}return E.curCSS(d,e,c)},curCSS:function(e,k,j){var d;function color(b){if(!E.browser.safari)return false;var a=document.defaultView.getComputedStyle(b,null);return!a||a.getPropertyValue("color")==""}if(k=="opacity"&&E.browser.msie){d=E.attr(e.style,"opacity");return d==""?"1":d}if(E.browser.opera&&k=="display"){var c=e.style.display;e.style.display="block";e.style.display=c}if(k.match(/float/i))k=y;if(!j&&e.style&&e.style[k])d=e.style[k];else if(document.defaultView&&document.defaultView.getComputedStyle){if(k.match(/float/i))k="float";k=k.replace(/([A-Z])/g,"-$1").toLowerCase();var h=document.defaultView.getComputedStyle(e,null);if(h&&!color(e))d=h.getPropert
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement