nm3clol-archived-russellcou.../mirror/www.russellcountyva.us/ScriptResource4f80.axd

220 lines
7.8 KiB
Plaintext

if(typeof $telerik.$==="undefined"){$telerik.$=jQuery;
/*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright ? 2008 George McGinley Smith
* All rights reserved.
*/
/*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright ? 2001 Robert Penner
* All rights reserved.
*/
}(function(a){a.easing.jswing=a.easing.swing;
a.extend(a.easing,{def:"easeOutQuad",swing:function(i,g,e,h,f){return a.easing[a.easing.def](i,g,e,h,f);
},easeLinear:function(i,g,e,h,f){return h*g/f+e;
},easeInQuad:function(i,g,e,h,f){return h*(g/=f)*g+e;
},easeOutQuad:function(i,g,e,h,f){return -h*(g/=f)*(g-2)+e;
},easeInOutQuad:function(i,g,e,h,f){if((g/=f/2)<1){return h/2*g*g+e;
}return -h/2*((--g)*(g-2)-1)+e;
},easeInCubic:function(i,g,e,h,f){return h*(g/=f)*g*g+e;
},easeOutCubic:function(i,g,e,h,f){return h*((g=g/f-1)*g*g+1)+e;
},easeInOutCubic:function(i,g,e,h,f){if((g/=f/2)<1){return h/2*g*g*g+e;
}return h/2*((g-=2)*g*g+2)+e;
},easeInQuart:function(i,g,e,h,f){return h*(g/=f)*g*g*g+e;
},easeOutQuart:function(i,g,e,h,f){return -h*((g=g/f-1)*g*g*g-1)+e;
},easeInOutQuart:function(i,g,e,h,f){if((g/=f/2)<1){return h/2*g*g*g*g+e;
}return -h/2*((g-=2)*g*g*g-2)+e;
},easeInQuint:function(i,g,e,h,f){return h*(g/=f)*g*g*g*g+e;
},easeOutQuint:function(i,g,e,h,f){return h*((g=g/f-1)*g*g*g*g+1)+e;
},easeInOutQuint:function(i,g,e,h,f){if((g/=f/2)<1){return h/2*g*g*g*g*g+e;
}return h/2*((g-=2)*g*g*g*g+2)+e;
},easeInSine:function(i,g,e,h,f){return -h*Math.cos(g/f*(Math.PI/2))+h+e;
},easeOutSine:function(i,g,e,h,f){return h*Math.sin(g/f*(Math.PI/2))+e;
},easeInOutSine:function(i,g,e,h,f){return -h/2*(Math.cos(Math.PI*g/f)-1)+e;
},easeInExpo:function(i,g,e,h,f){return(g==0)?e:h*Math.pow(2,10*(g/f-1))+e;
},easeOutExpo:function(i,g,e,h,f){return(g==f)?e+h:h*(-Math.pow(2,-10*g/f)+1)+e;
},easeInOutExpo:function(i,g,e,h,f){if(g==0){return e;
}if(g==f){return e+h;
}if((g/=f/2)<1){return h/2*Math.pow(2,10*(g-1))+e;
}return h/2*(-Math.pow(2,-10*--g)+2)+e;
},easeInCirc:function(i,g,e,h,f){return -h*(Math.sqrt(1-(g/=f)*g)-1)+e;
},easeOutCirc:function(i,g,e,h,f){return h*Math.sqrt(1-(g=g/f-1)*g)+e;
},easeInOutCirc:function(i,g,e,h,f){if((g/=f/2)<1){return -h/2*(Math.sqrt(1-g*g)-1)+e;
}return h/2*(Math.sqrt(1-(g-=2)*g)+1)+e;
},easeInElastic:function(e,k,h,i,j){var f=1.70158;
var g=0;
var l=i;
if(k==0){return h;
}if((k/=j)==1){return h+i;
}if(!g){g=j*0.3;
}if(l<Math.abs(i)){l=i;
var f=g/4;
}else{var f=g/(2*Math.PI)*Math.asin(i/l);
}return -(l*Math.pow(2,10*(k-=1))*Math.sin((k*j-f)*(2*Math.PI)/g))+h;
},easeOutElastic:function(e,k,h,i,j){var f=1.70158;
var g=0;
var l=i;
if(k==0){return h;
}if((k/=j)==1){return h+i;
}if(!g){g=j*0.3;
}if(l<Math.abs(i)){l=i;
var f=g/4;
}else{var f=g/(2*Math.PI)*Math.asin(i/l);
}return l*Math.pow(2,-10*k)*Math.sin((k*j-f)*(2*Math.PI)/g)+i+h;
},easeInOutElastic:function(e,k,h,i,j){var f=1.70158;
var g=0;
var l=i;
if(k==0){return h;
}if((k/=j/2)==2){return h+i;
}if(!g){g=j*(0.3*1.5);
}if(l<Math.abs(i)){l=i;
var f=g/4;
}else{var f=g/(2*Math.PI)*Math.asin(i/l);
}if(k<1){return -0.5*(l*Math.pow(2,10*(k-=1))*Math.sin((k*j-f)*(2*Math.PI)/g))+h;
}return l*Math.pow(2,-10*(k-=1))*Math.sin((k*j-f)*(2*Math.PI)/g)*0.5+i+h;
},easeInBack:function(e,j,g,h,i,f){if(f==undefined){f=1.70158;
}return h*(j/=i)*j*((f+1)*j-f)+g;
},easeOutBack:function(e,j,g,h,i,f){if(f==undefined){f=1.70158;
}return h*((j=j/i-1)*j*((f+1)*j+f)+1)+g;
},easeInOutBack:function(e,j,g,h,i,f){if(f==undefined){f=1.70158;
}if((j/=i/2)<1){return h/2*(j*j*(((f*=(1.525))+1)*j-f))+g;
}return h/2*((j-=2)*j*(((f*=(1.525))+1)*j+f)+2)+g;
},easeInBounce:function(i,g,e,h,f){return h-a.easing.easeOutBounce(i,f-g,0,h,f)+e;
},easeOutBounce:function(i,g,e,h,f){if((g/=f)<(1/2.75)){return h*(7.5625*g*g)+e;
}else{if(g<(2/2.75)){return h*(7.5625*(g-=(1.5/2.75))*g+0.75)+e;
}else{if(g<(2.5/2.75)){return h*(7.5625*(g-=(2.25/2.75))*g+0.9375)+e;
}else{return h*(7.5625*(g-=(2.625/2.75))*g+0.984375)+e;
}}}},easeInOutBounce:function(i,g,e,h,f){if(g<f/2){return a.easing.easeInBounce(i,g*2,0,h,f)*0.5+e;
}return a.easing.easeOutBounce(i,g*2-f,0,h,f)*0.5+h*0.5+e;
}});
})($telerik.$);
/*
* jQuery throttle / debounce - v1.1 - 3/7/2010
* http://benalman.com/projects/jquery-throttle-debounce-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function(b,c){var d=$telerik.$||b.Cowboy||(b.Cowboy={}),a;
d.throttle=a=function(g,j,f,i){var e,h=0;
if(typeof j!=="boolean"){i=f;
f=j;
j=c;
}function k(){var m=this,l=+new Date()-h,o=arguments;
function p(){h=+new Date();
f.apply(m,o);
}function n(){e=c;
}if(i&&!e){p();
}e&&clearTimeout(e);
if(i===c&&l>g){p();
}else{if(j!==true){e=setTimeout(i?n:p,i===c?g-l:g);
}}}if(d.guid){k.guid=f.guid=f.guid||d.guid++;
}return k;
};
d.debounce=function(e,f,g){return g===c?a(e,f,false):a(e,g,f!==false);
};
})(window);
(function(c){c.fx.step.height=function(e){var g=$telerik.quirksMode?1:0;
var f=e.now>g?e.now:g;
e.elem.style[e.prop]=Math.round(f)+e.unit;
};
function b(f,e){return["live",f,e.replace(/\./g,"`").replace(/ /g,"|")].join(".");
}function d(e,f){c.each(f,function(g,h){if(g.indexOf("et_")>0){e[g]=h;
return;
}if(g=="domEvent"&&h){e["get_"+g]=function(){return new Sys.UI.DomEvent(h.originalEvent||h.rawEvent||h);
};
}else{e["get_"+g]=function(i){return function(){return i;
};
}(h);
}});
return e;
}c.extend({registerControlEvents:function(f,e){c.each(e,function(h,g){f.prototype["add_"+g]=function(i){this.get_events().addHandler(g,i);
};
f.prototype["remove_"+g]=function(i){this.get_events().removeHandler(g,i);
};
});
},registerControlProperties:function(f,e){c.each(e,function(g,h){f.prototype["get_"+g]=function(){var i=this["_"+g];
return typeof i=="undefined"?h:i;
};
f.prototype["set_"+g]=function(i){this["_"+g]=i;
};
});
},registerEnum:function(f,g,e){f[g]=function(){};
f[g].prototype=e;
f[g].registerEnum(f.getName()+"."+g);
},raiseControlEvent:function(f,g,h){var e=f.get_events().getHandler(g);
if(e){e(f,d(new Sys.EventArgs(),h));
}},raiseCancellableControlEvent:function(f,g,i){var e=f.get_events().getHandler(g);
if(e){var h=d(new Sys.CancelEventArgs(),i);
e(f,h);
return h.get_cancel();
}return false;
},extendEventArgs:function(f,e){return d(f,e);
},isBogus:function(g){try{var f=g.parentNode;
return false;
}catch(e){return true;
}}});
c.eachCallback=function(h,g){var f=0;
function e(){if(h.length==0){return;
}var i=h[f];
g.apply(i);
f++;
if(f<h.length){setTimeout(e,1);
}}setTimeout(e,1);
};
c.fn.eachCallback=function(f){var h=0;
var e=this;
function g(){if(e.length==0){return;
}var i=e.get(h);
f.apply(i);
h++;
if(h<e.length){setTimeout(g,1);
}}setTimeout(g,1);
};
if($telerik.isTouchDevice){var a;
c.each(["t_touchover","t_touchout"],function(f,e){c.fn[e]=function(g){return this.bind(e,g);
};
});
c(document.body).bind("touchstart",function(f){a=f.originalEvent.currentTarget;
}).bind("touchmove",function(i){var f=i.originalEvent.changedTouches[0],h=document.elementFromPoint(f.clientX,f.clientY);
if(a!=h){var g={target:a,relatedTarget:a,CtrlKey:false,AltKey:false,ShiftKey:false};
c(a).trigger("t_touchout",g);
a=h;
c(a).trigger("t_touchover",c.extend(g,{target:a,relatedTarget:a}));
}});
}})($telerik.$);
/*
* jQuery Double Tap Plugin.
*
* Copyright (c) 2010 Raul Sanchez (http://www.appcropolis.com)
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function(a){a.fn.doubletap=function(f,e,b){var d,c;
b=b==null?500:b;
d=$telerik.isTouchDevice?"touchend":"click";
a(this).bind(d,function(h){var j=new Date().getTime();
var i=a(this).data("lastTouch")||j+1;
var g=j-i;
clearTimeout(c);
if(g<500&&g>0){if(f!=null&&typeof f=="function"){f(h);
}}else{a(this).data("lastTouch",j);
c=setTimeout(function(k){if(e!=null&&typeof e=="function"){e(k);
}clearTimeout(c);
},b,[h]);
}a(this).data("lastTouch",j);
});
};
})($telerik.$);