compass-jquery-plugin 0.3.2.pre.2 → 0.3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/LICENSE.md +20 -20
  2. data/README.md +7 -2
  3. data/VERSION.yml +2 -2
  4. data/lib/jquery/gridify/grid.rb +1 -1
  5. data/lib/jquery/gridify/grid_column.rb +1 -1
  6. data/lib/jquery/gridify/grid_finder.rb +16 -1
  7. data/lib/jquery/gridify/grid_view.rb +1 -1
  8. data/lib/jquery/jqgrid.rb +4 -4
  9. data/lib/jquery/jqtouch.rb +3 -3
  10. data/lib/jquery/jquery.rb +431 -431
  11. data/lib/jquery/jquery_json_response.rb +28 -0
  12. data/lib/jquery/secret_sauce.rb +8 -8
  13. data/lib/jquery/secret_sauce/controller/ui_dialog_controls.rb +13 -13
  14. data/lib/jquery/secret_sauce/controller/ui_grid_controls.rb +18 -18
  15. data/lib/jquery/secret_sauce/helpers/ui_dialog_helper.rb +5 -5
  16. data/lib/jquery/secret_sauce/model/find_for_grid.rb +41 -41
  17. data/templates/dynatree/jquery.dynatree.js +111 -110
  18. data/templates/dynatree/jquery.dynatree.min.js +75 -77
  19. data/templates/dynatree/jquery/dynatree/aero.scss +1 -3
  20. data/templates/dynatree/jquery/dynatree/aqua.scss +1 -3
  21. data/templates/dynatree/jquery/dynatree/crystal.scss +1 -3
  22. data/templates/dynatree/jquery/dynatree/xp.scss +1 -3
  23. data/templates/emulators/emulators/iphone.landscape.png +0 -0
  24. data/templates/emulators/emulators/iphone.landscape.scss +4 -4
  25. data/templates/emulators/emulators/palm.landscape.scss +6 -6
  26. data/templates/emulators/emulators/palm.pre.landscape.png +0 -0
  27. data/templates/ical/jquery.ical.js +3202 -3197
  28. data/templates/ical/jquery.ical.min.js +185 -184
  29. data/templates/ical/jquery/ical.scss +3 -3
  30. data/templates/jqgrid/i18n/jqgrid/locale-ar.js +126 -0
  31. data/templates/jqgrid/i18n/jqgrid/locale-ar.min.js +6 -0
  32. data/templates/jqgrid/i18n/jqgrid/locale-fi.js +45 -47
  33. data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +6 -6
  34. data/templates/jqgrid/jquery.jqGrid.js +2047 -2036
  35. data/templates/jqgrid/jquery.jqGrid.min.js +48 -48
  36. data/templates/jqgrid/manifest.rb +2 -0
  37. data/templates/jqtouch/jquery.jqtouch.js +122 -113
  38. data/templates/jqtouch/jquery.jqtouch.min.js +1 -1
  39. data/templates/jquery/config/initializers/jquery.rb +4 -2
  40. data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +23 -0
  41. data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.min.js +2 -0
  42. data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +23 -0
  43. data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.min.js +2 -0
  44. data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +23 -0
  45. data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.min.js +2 -0
  46. data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +23 -0
  47. data/templates/jquery/i18n/jquery.ui/datepicker-ml.min.js +2 -0
  48. data/templates/jquery/jquery-ui.js +354 -316
  49. data/templates/jquery/jquery-ui.min.js +544 -544
  50. data/templates/jquery/jquery.cookie.js +3 -3
  51. data/templates/jquery/jquery.form.js +271 -140
  52. data/templates/jquery/jquery.form.min.js +19 -17
  53. data/templates/jquery/jquery.layout.js +2435 -2437
  54. data/templates/jquery/jquery.layout.min.js +4 -3
  55. data/templates/jquery/jquery.mousewheel.js +78 -0
  56. data/templates/jquery/jquery.mousewheel.min.js +2 -0
  57. data/templates/jquery/jquery.offline.js +212 -0
  58. data/templates/jquery/jquery.offline.min.js +4 -0
  59. data/templates/jquery/jquery.tmpl.js +15 -22
  60. data/templates/jquery/jquery.tmpl.min.js +12 -12
  61. data/templates/jquery/jquery.tmplPlus.js +1 -0
  62. data/templates/jquery/jquery/ui/_theme.scss +27 -27
  63. data/templates/jquery/json.js +7 -0
  64. data/templates/jquery/json.min.js +7 -0
  65. data/templates/jquery/manifest.rb +14 -2
  66. data/templates/mobile/glyphish/{Read me first - license.txt → License.txt} +0 -0
  67. data/templates/mobile/jquery.mobile.js +1583 -1408
  68. data/templates/mobile/jquery.mobile.min.js +5 -5
  69. data/templates/mobile/jquery/mobile/_base.scss +938 -1038
  70. data/templates/mobile/jquery/mobile/default.scss +25 -26
  71. data/templates/mobile/jquery/mobile/valencia.scss +0 -1
  72. data/templates/mobile/manifest.rb +1 -1
  73. data/templates/tools/config/initializers/tools.rb +2 -0
  74. data/templates/tools/flowplayer.js +24 -0
  75. data/templates/tools/flowplayer.min.js +30 -0
  76. data/templates/tools/jquery.tools.js +4 -3
  77. data/templates/tools/jquery.tools.min.js +1 -1
  78. data/templates/tools/manifest.rb +4 -0
  79. data/templates/tools/swfobject.js +777 -0
  80. data/templates/tools/swfobject.min.js +19 -0
  81. metadata +31 -15
  82. data/templates/jquery/jquery.metadata.js +0 -122
  83. data/templates/jquery/jquery.metadata.min.js +0 -2
@@ -1,4 +1,4 @@
1
- (function(a){a.jQTouch=function(u){var C,r=a("head"),L="",I=[],G=0,l={},i="",t="portrait",S=true,R=0,e=0,h=[],v={},j=351,N=a.jQTouch.prototype.extensions,Q=[],q="",D={addGlossToIcon:true,backSelector:".back, .cancel, .goback",cacheGetRequests:true,debug:true,fallback2dAnimation:"fade",fixedViewport:true,formSelector:"form",fullScreen:true,fullScreenClass:"fullscreen",hoverDelay:150,icon:null,icon4:null,moveThreshold:10,preloadImages:false,pressDelay:1000,startupScreen:null,statusBar:"default",submitSelector:".submit",touchSelector:"a, .touch",unloadMessage:"Are you sure you want to leave this page? Doing so will log you out of the app.",useAnimations:true,useFastTouch:true,animations:[{selector:".cube",name:"cubeleft",is3d:true},{selector:".cubeleft",name:"cubeleft",is3d:true},{selector:".cuberight",name:"cuberight",is3d:true},{selector:".dissolve",name:"fade",is3d:false},{selector:".fade",name:"fade",is3d:false},{selector:".flip",name:"flipleft",is3d:true},{selector:".flipleft",name:"flipleft",is3d:true},{selector:".flipright",name:"flipright",is3d:true},{selector:".pop",name:"pop",is3d:true},{selector:".slide",name:"slideleft",is3d:false},{selector:".slidedown",name:"slidedown",is3d:false},{selector:".slideleft",name:"slideleft",is3d:false},{selector:".slideright",name:"slideright",is3d:false},{selector:".slideup",name:"slideup",is3d:false},{selector:".swap",name:"swapleft",is3d:true},{selector:"#jqt > * > ul li a",name:"slideleft",is3d:false}]};function w(T){now=(new Date).getTime();delta=now-R;R=now;if(l.debug){if(T){console.log(delta+": "+T)}else{console.log(delta+": Called "+arguments.callee.caller.name)}}}function b(T){w();if(typeof(T.selector)==="string"&&typeof(T.name)==="string"){Q.push(T)}}function k(V,U,T){w();I.unshift({page:V,animation:U,id:V.attr("id")})}function n(U){w();var T=a(U.target);if(T.attr("href")){if(!T.isExternalLink()){U.preventDefault();w("Preventing default click behavior")}}if(a.support.touch){w("Ignoring click handler because touch support is true")}else{w("Converting click to a tap event");T.makeActive();T.trigger("tap",U)}}function c(Y,V,X,U){w();if(V.length===0){a.fn.unselect();w("Target element is missing.");return false}if(V.hasClass("current")){a.fn.unselect();w("You are already on the page you are trying to navigate to.");return false}a(":focus").blur();Y.trigger("pageAnimationStart",{direction:"out"});V.trigger("pageAnimationStart",{direction:"in"});if(a.support.animationEvents&&X&&l.useAnimations){S=false;if(!a.support.transform3d&&X.is3d){X.name=l.fallback2dAnimation}var T;if(U){if(X.name.indexOf("left")>0){T=X.name.replace(/left/,"right")}else{if(X.name.indexOf("right")>0){T=X.name.replace(/right/,"left")}else{if(X.name.indexOf("up")>0){T=X.name.replace(/up/,"down")}else{if(X.name.indexOf("down")>0){T=X.name.replace(/down/,"up")}else{T=X.name}}}}}else{T=X.name}w("finalAnimationName is "+T);Y.bind("webkitAnimationEnd",W);V.addClass(T+" in current");Y.addClass(T+" out")}else{V.addClass("current");W()}function W(Z){w();if(a.support.animationEvents&&X&&l.useAnimations){Y.unbind("webkitAnimationEnd",W);Y.attr("class","");V.attr("class","current")}else{Y.attr("class","")}i=V;if(U){I.shift()}else{k(i,X)}Y.unselect();e=(new Date()).getTime();m(i.attr("id"));S=true;V.trigger("pageAnimationEnd",{direction:"in",animation:X});Y.trigger("pageAnimationEnd",{direction:"out",animation:X})}return true}function P(){w();return t}function g(){w();if(I.length<1){w("History is empty.")}if(I.length===1){w("You are on the first panel.")}var U=I[0],T=I[1];if(c(U.page,T.page,U.animation,true)){return v}else{w("Could not go back.");return false}return false}function M(X,Y,V){w();if(V){console.warn("The reverse parameter was sent to goTo() function, which is bad.")}var Z=I[0].page;if(typeof Y==="string"){for(var W=0,T=Q.length;W<T;W++){if(Q[W].name===Y){Y=Q[W];break}}}if(typeof(X)==="string"){var U=a(X);if(U.length<1){d(X,{animation:Y});return}else{X=U}}if(c(Z,X,Y,V)){return v}else{w("Could not animate pages.");return false}}function H(T){w();if(location.href==I[1].href){g()}else{w(location.href+" == "+I[1].href)}}function O(T){w();l=a.extend({},D,T);if(l.preloadImages){for(var U=l.preloadImages.length-1;U>=0;U--){(new Image()).src=l.preloadImages[U]}}if(l.icon||l.icon4){var V,W;if(l.icon4&&window.devicePixelRatio&&window.devicePixelRatio===2){W=l.icon4}else{if(l.icon){W=l.icon}else{W=false}}if(W){V=(l.addGlossToIcon)?"":"-precomposed";q+='<link rel="apple-touch-icon'+V+'" href="'+W+'" />'}}if(l.startupScreen){q+='<link rel="apple-touch-startup-image" href="'+l.startupScreen+'" />'}if(l.fixedViewport){q+='<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>'}if(l.fullScreen){q+='<meta name="apple-mobile-web-app-capable" content="yes" />';if(l.statusBar){q+='<meta name="apple-mobile-web-app-status-bar-style" content="'+l.statusBar+'" />'}}if(q){r.prepend(q)}}function A(T,U){w();var V=null;a(T).each(function(X,Y){var W=a(this);if(!W.attr("id")){W.attr("id","page-"+(++G))}a("#"+W.attr("id")).remove();C.trigger("pageInserted",{page:W.appendTo(C)});if(W.hasClass("current")||!V){V=W}});if(V!==null){M(V,U);return V}else{return false}}function z(T){var U=(new Date()).getTime()-e;if(U<j){return false}}function f(){w();t=Math.abs(window.orientation)==90?"landscape":"portrait";C.removeClass("portrait landscape").addClass(t).trigger("turn",{orientation:t})}function m(T){return;w();T=T.replace(/^#/,""),window.onhashchange=null;if(T===L){location.href=location.href.split("#")[0]}else{location.hash="#"+T}window.onhashchange=H}function d(T,U){w();var W={data:null,method:"GET",animation:null,callback:null,$referrer:null};var V=a.extend({},W,U);if(T!="#"){a.ajax({url:T,data:V.data,type:V.method,success:function(X,Z){var Y=A(X,V.animation);if(Y){if(V.method=="GET"&&l.cacheGetRequests===true&&V.$referrer){V.$referrer.attr("href","#"+Y.attr("id"))}if(V.callback){V.callback(true)}}},error:function(X){if(V.$referrer){V.$referrer.unselect()}if(V.callback){V.callback(false)}}})}else{if(V.$referrer){V.$referrer.unselect()}}}function p(U,V){w();a(":focus").blur();U.preventDefault();var T=(typeof(U)==="string")?a(U).eq(0):(U.target?a(U.target):a(U));w(T.attr("action"));if(T.length&&T.is(l.formSelector)&&T.attr("action")){d(T.attr("action"),{data:T.serialize(),method:T.attr("method")||"POST",animation:Q[0]||null,callback:V});return false}return false}function K(V){w();var U=V.closest("form");if(U.length===0){w("No parent form found")}else{w("About to submit parent form");var T=a.Event("submit");T.preventDefault();U.trigger(T);return false}return true}function o(){w();return(typeof WebKitAnimationEvent!="undefined")}function E(){w();return(typeof WebKitCSSMatrix!="undefined")}function J(){w();if(!l.useFastTouch){return false}if(typeof TouchEvent!="undefined"){if(window.navigator.userAgent.indexOf("Mobile")>-1){return true}else{return false}}else{return false}}function B(){w();var V,U,W,X,T;V=document.getElementsByTagName("head")[0];U=document.body;W=document.createElement("style");W.textContent="@media (transform-3d),(-o-transform-3d),(-moz-transform-3d),(-ms-transform-3d),(-webkit-transform-3d),(modernizr){#jqtTestFor3dSupport{height:3px}}";X=document.createElement("div");X.id="jqtTestFor3dSupport";V.appendChild(W);U.appendChild(X);T=X.offsetHeight===3;W.parentNode.removeChild(W);X.parentNode.removeChild(X);return T}function F(Z){w();var V=a(Z.target);if(V.attr("nodeName")!=="A"&&V.attr("nodeName")!=="AREA"){V=V.closest("a, area")}var Y=V.attr("target"),X=V.attr("hash"),W=null;if(S==false){w("Tap is not ready");return false}if(!V.length){w("Nothing tappable here");return false}if(V.isExternalLink()){V.removeClass("active");return true}if(V.is(l.backSelector)){g(X)}else{if(V.is(l.submitSelector)){K(V)}else{if(Y=="_webapp"){window.location=V.attr("href");return false}else{if(V.attr("href")=="#"){V.unselect();return true}else{for(var U=0,T=Q.length;U<T;U++){if(V.is(Q[U].selector)){W=Q[U];break}}if(!W){console.warn("Animation could not be found. Using slideleft.");W="slideleft"}if(X&&X!="#"){V.addClass("active");M(a(X).data("referrer",V),W,a(this).hasClass("reverse"));return false}else{V.addClass("loading active");d(V.attr("href"),{animation:W,callback:function(){V.removeClass("loading");setTimeout(a.fn.unselect,250,V)},$referrer:V});return false}}}}}}function s(ae){w();var ah=a(ae.target);if(ah.attr("nodeName")!=="A"&&ah.attr("nodeName")!=="AREA"){ah=ah.closest("a, area")}if(!ah.length){w("Could not find a link element.");return}var U=(new Date).getTime(),T=null,V=null,aa,ac,ab,Z=0,X=0,ad=0;if(event.changedTouches&&event.changedTouches.length){aa=event.changedTouches[0];ac=aa.pageX;ab=aa.pageY}ah.bind("touchmove",Y).bind("touchend",af).bind("touchcancel",W);T=setTimeout(function(){ah.makeActive()},l.hoverDelay);V=setTimeout(function(){w("press");ah.unbind("touchmove",Y).unbind("touchend",af).unbind("touchcancel",W);ah.removeClass("active");clearTimeout(T);ah.trigger("press")},l.pressDelay);function W(ai){w();clearTimeout(T);ah.removeClass("active");ah.unbind("touchmove",Y).unbind("touchend",af).unbind("touchcancel",W)}function Y(al){w();ag();var ak=Math.abs(Z);var ai=Math.abs(X);var aj;if(ak>ai&&(ak>35)&&ad<1000){if(Z<0){aj="left"}else{aj="right"}ah.unbind("touchmove",Y).unbind("touchend",af).unbind("touchcancel",W);ah.trigger("swipe",{direction:aj,deltaX:Z,deltaY:X})}ah.removeClass("active");clearTimeout(T);if(ak>l.moveThreshold||ai>l.moveThreshold){clearTimeout(V)}}function af(){w();ah.unbind("touchend",af).unbind("touchcancel",W);clearTimeout(T);clearTimeout(V);if(Math.abs(Z)<l.moveThreshold&&Math.abs(X)<l.moveThreshold&&ad<l.pressDelay){ah.trigger("tap",ae)}else{ah.removeClass("active")}}function ag(){w();var ai=event.changedTouches[0]||null;Z=ai.pageX-ac;X=ai.pageY-ab;ad=(new Date).getTime()-U}}O(u);a(document).ready(function(){a.support.animationEvents=o();a.support.cssMatrix=E();a.support.touch=J();a.support.transform3d=B();if(!a.support.touch){console.warn("This device does not support touch interaction, or it has been deactivated by the developer. Some features might be unavailable.")}if(!a.support.transform3d){console.warn("This device does not support 3d animation. 2d animations will be used instead.")}a.fn.isExternalLink=function(){var X=a(this);return(X.attr("target")=="_blank"||X.attr("rel")=="external"||X.is('input[type="checkbox"], input[type="radio"], a[href^="http://maps.google.com"], a[href^="mailto:"], a[href^="tel:"], a[href^="javascript:"], a[href*="youtube.com/v"], a[href*="youtube.com/watch"]'))};a.fn.makeActive=function(){return a(this).addClass("active")};a.fn.press=function(X){if(a.isFunction(X)){return a(this).live("press",X)}else{return a(this).trigger("press")}};a.fn.swipe=function(X){if(a.isFunction(X)){return a(this).live("swipe",X)}else{return a(this).trigger("swipe")}};a.fn.tap=function(X){if(a.isFunction(X)){return a(this).live("tap",X)}else{return a(this).trigger("tap")}};a.fn.unselect=function(X){if(X){X.removeClass("active")}else{a(".active").removeClass("active")}};for(var U=0,T=N.length;U<T;U++){var V=N[U];if(a.isFunction(V)){a.extend(v,V(v))}}if(l.cubeSelector){console.warn("NOTE: cubeSelector has been deprecated. Please use cubeleftSelector instead.");l.cubeleftSelector=l.cubeSelector}if(l.flipSelector){console.warn("NOTE: flipSelector has been deprecated. Please use flipleftSelector instead.");l.flipleftSelector=l.flipSelector}if(l.slideSelector){console.warn("NOTE: slideSelector has been deprecated. Please use slideleftSelector instead.");l.slideleftSelector=l.slideSelector}for(var U=0,T=D.animations.length;U<T;U++){var W=D.animations[U];if(l[W.name+"Selector"]!==undefined){W.selector=l[W.name+"Selector"]}b(W)}h.push("input");h.push(l.touchSelector);h.push(l.backSelector);h.push(l.submitSelector);a(h.join(", ")).css("-webkit-touch-callout","none");C=a("#jqt");if(C.length===0){console.warn('Could not find an element with the id "jqt", so the body id has been set to "jqt". This might cause problems, so you should prolly wrap your panels in a div with the id "jqt".');C=a("body").attr("id","jqt")}if(a.support.transform3d){C.addClass("supports3d")}if(l.fullScreenClass&&window.navigator.standalone==true){C.addClass(l.fullScreenClass+" "+l.statusBar)}if(a.support.touch){C.bind("touchstart",s)}C.bind("click",n);C.bind("mousedown",z);C.bind("orientationchange",f);C.bind("submit",p);C.bind("tap",F);C.trigger("orientationchange");if(location.hash.length){location.replace(location.href.split("#")[0])}if(a("#jqt > .current").length==0){i=a("#jqt > *:first")}else{i=a("#jqt > .current:first");a("#jqt > .current").removeClass("current")}a(i).addClass("current");m(a(i).attr("id"));L=a(i).attr("id");k(i);scrollTo(0,0)});v={animations:Q,hist:I,settings:l,support:a.support,getOrientation:P,goBack:g,goTo:M,addAnimation:b,submitForm:p};return v};a.jQTouch.prototype.extensions=[];a.jQTouch.addExtension=function(b){a.jQTouch.prototype.extensions.push(b)}})(jQuery);(function(a){a.fn.transition=function(c,b){return this.each(function(){var e=a(this);var h={speed:"300ms",callback:null,ease:"ease-in-out"};var g=a.extend({},h,b);if(g.speed===0){e.css(c);window.setTimeout(g.callback,0)}else{if(a.browser.safari){var f=[];for(var d in c){f.push(d)}e.css({webkitTransitionProperty:f.join(", "),webkitTransitionDuration:g.speed,webkitTransitionTimingFunction:g.ease});if(g.callback){e.one("webkitTransitionEnd",g.callback)}setTimeout(function(i){i.css(c)},0,e)}else{e.animate(c,g.speed,g.callback)}}})}})(jQuery);var SpinningWheel={cellHeight:44,friction:0.003,slotData:[],handleEvent:function(a){if(a.type=="touchstart"){this.lockScreen(a);if(a.currentTarget.id=="sw-cancel"||a.currentTarget.id=="sw-done"){this.tapDown(a)}else{if(a.currentTarget.id=="sw-frame"){this.scrollStart(a)}}}else{if(a.type=="touchmove"){this.lockScreen(a);if(a.currentTarget.id=="sw-cancel"||a.currentTarget.id=="sw-done"){this.tapCancel(a)}else{if(a.currentTarget.id=="sw-frame"){this.scrollMove(a)}}}else{if(a.type=="touchend"){if(a.currentTarget.id=="sw-cancel"||a.currentTarget.id=="sw-done"){this.tapUp(a)}else{if(a.currentTarget.id=="sw-frame"){this.scrollEnd(a)}}}else{if(a.type=="webkitTransitionEnd"){if(a.target.id=="sw-wrapper"){}else{this.backWithinBoundaries(a)}}else{if(a.type=="orientationchange"){this.onOrientationChange(a)}else{if(a.type=="scroll"){this.onScroll(a)}}}}}}},onOrientationChange:function(a){window.scrollTo(0,0);this.swWrapper.style.top=window.innerHeight+window.pageYOffset+"px";this.calculateSlotsWidth()},onScroll:function(a){this.swWrapper.style.top=window.innerHeight+window.pageYOffset+"px"},lockScreen:function(a){a.preventDefault();a.stopPropagation()},reset:function(){this.slotEl=[];this.activeSlot=null;this.swWrapper=undefined;this.swSlotWrapper=undefined;this.swSlots=undefined;this.swFrame=undefined},calculateSlotsWidth:function(){var b=this.swSlots.getElementsByTagName("div");for(var a=0;a<b.length;a+=1){this.slotEl[a].slotWidth=b[a].offsetWidth}},create:function(){var d,a,b,c,e;this.reset();e=document.createElement("div");e.id="sw-wrapper";e.style.top=window.innerHeight+window.pageYOffset+"px";e.style.webkitTransitionProperty="-webkit-transform";e.innerHTML='<div id="sw-slots-wrapper"><div id="sw-slots"></div></div><div id="sw-frame"></div>';document.body.appendChild(e);this.swWrapper=e;this.swSlotWrapper=document.getElementById("sw-slots-wrapper");this.swSlots=document.getElementById("sw-slots");this.swFrame=document.getElementById("sw-frame");for(a=0;a<this.slotData.length;a+=1){c=document.createElement("ul");b="";for(d in this.slotData[a].values){b+="<li>"+this.slotData[a].values[d]+"</li>"}c.innerHTML=b;e=document.createElement("div");e.className=this.slotData[a].style;e.appendChild(c);this.swSlots.appendChild(e);c.slotPosition=a;c.slotYPosition=0;c.slotWidth=0;c.slotMaxScroll=this.swSlotWrapper.clientHeight-c.clientHeight-86;c.style.webkitTransitionTimingFunction="cubic-bezier(0, 0, 0.2, 1)";this.slotEl.push(c);if(this.slotData[a].defaultValue){this.scrollToValue(a,this.slotData[a].defaultValue)}}this.calculateSlotsWidth();document.addEventListener("touchmove",this,false);window.addEventListener("orientationchange",this,true);window.addEventListener("scroll",this,true);document.getElementById("sw-done").addEventListener("touchstart",this,false);this.swFrame.addEventListener("touchstart",this,false)},open:function(){this.create();this.swWrapper.style.webkitTransitionTimingFunction="ease-out";this.swWrapper.style.webkitTransitionDuration="400ms";this.swWrapper.style.webkitTransform="translate3d(0, -210px, 0)"},destroy:function(){this.swWrapper.removeEventListener("webkitTransitionEnd",this,false);this.swFrame.removeEventListener("touchstart",this,false);document.getElementById("sw-done").removeEventListener("touchstart",this,false);document.removeEventListener("touchmove",this,false);window.removeEventListener("orientationchange",this,true);window.removeEventListener("scroll",this,true);this.slotData=[];this.cancelAction=function(){return false};this.cancelDone=function(){return true};this.reset();document.body.removeChild(document.getElementById("sw-wrapper"))},close:function(){this.swWrapper.style.webkitTransitionTimingFunction="ease-in";this.swWrapper.style.webkitTransitionDuration="400ms";this.swWrapper.style.webkitTransform="translate3d(0, 0, 0)";this.swWrapper.addEventListener("webkitTransitionEnd",this,false)},addSlot:function(b,d,a){if(!d){d=""}d=d.split(" ");for(var c=0;c<d.length;c+=1){d[c]="sw-"+d[c]}d=d.join(" ");var e={values:b,style:d,defaultValue:a};this.slotData.push(e)},getSelectedValues:function(){var c,f,d,a,e=[],b=[];for(d in this.slotEl){this.slotEl[d].removeEventListener("webkitTransitionEnd",this,false);this.slotEl[d].style.webkitTransitionDuration="0";if(this.slotEl[d].slotYPosition>0){this.setPosition(d,0)}else{if(this.slotEl[d].slotYPosition<this.slotEl[d].slotMaxScroll){this.setPosition(d,this.slotEl[d].slotMaxScroll)}}c=-Math.round(this.slotEl[d].slotYPosition/this.cellHeight);f=0;for(a in this.slotData[d].values){if(f==c){e.push(a);b.push(this.slotData[d].values[a]);break}f+=1}}return{keys:e,values:b}},setPosition:function(b,a){this.slotEl[b].slotYPosition=a;this.slotEl[b].style.webkitTransform="translate3d(0, "+a+"px, 0)"},scrollStart:function(c){var d=c.targetTouches[0].clientX-this.swSlots.offsetLeft;var f=0;for(var a=0;a<this.slotEl.length;a+=1){f+=this.slotEl[a].slotWidth;if(d<f){this.activeSlot=a;break}}if(this.slotData[this.activeSlot].style.match("readonly")){this.swFrame.removeEventListener("touchmove",this,false);this.swFrame.removeEventListener("touchend",this,false);return false}this.slotEl[this.activeSlot].removeEventListener("webkitTransitionEnd",this,false);this.slotEl[this.activeSlot].style.webkitTransitionDuration="0";var b=window.getComputedStyle(this.slotEl[this.activeSlot]).webkitTransform;b=new WebKitCSSMatrix(b).m42;if(b!=this.slotEl[this.activeSlot].slotYPosition){this.setPosition(this.activeSlot,b)}this.startY=c.targetTouches[0].clientY;this.scrollStartY=this.slotEl[this.activeSlot].slotYPosition;this.scrollStartTime=c.timeStamp;this.swFrame.addEventListener("touchmove",this,false);this.swFrame.addEventListener("touchend",this,false);return true},scrollMove:function(b){var a=b.targetTouches[0].clientY-this.startY;if(this.slotEl[this.activeSlot].slotYPosition>0||this.slotEl[this.activeSlot].slotYPosition<this.slotEl[this.activeSlot].slotMaxScroll){a/=2}this.setPosition(this.activeSlot,this.slotEl[this.activeSlot].slotYPosition+a);this.startY=b.targetTouches[0].clientY;if(b.timeStamp-this.scrollStartTime>80){this.scrollStartY=this.slotEl[this.activeSlot].slotYPosition;this.scrollStartTime=b.timeStamp}},scrollEnd:function(f){this.swFrame.removeEventListener("touchmove",this,false);this.swFrame.removeEventListener("touchend",this,false);if(this.slotEl[this.activeSlot].slotYPosition>0||this.slotEl[this.activeSlot].slotYPosition<this.slotEl[this.activeSlot].slotMaxScroll){this.scrollTo(this.activeSlot,this.slotEl[this.activeSlot].slotYPosition>0?0:this.slotEl[this.activeSlot].slotMaxScroll);return false}var b=this.slotEl[this.activeSlot].slotYPosition-this.scrollStartY;if(b<this.cellHeight/1.5&&b>-this.cellHeight/1.5){if(this.slotEl[this.activeSlot].slotYPosition%this.cellHeight){this.scrollTo(this.activeSlot,Math.round(this.slotEl[this.activeSlot].slotYPosition/this.cellHeight)*this.cellHeight,"100ms")}return false}var g=f.timeStamp-this.scrollStartTime;var a=(2*b/g)/this.friction;var d=(this.friction/2)*(a*a);if(a<0){a=-a;d=-d}var c=this.slotEl[this.activeSlot].slotYPosition+d;if(c>0){c/=2;a/=3;if(c>this.swSlotWrapper.clientHeight/4){c=this.swSlotWrapper.clientHeight/4}}else{if(c<this.slotEl[this.activeSlot].slotMaxScroll){c=(c-this.slotEl[this.activeSlot].slotMaxScroll)/2+this.slotEl[this.activeSlot].slotMaxScroll;a/=3;if(c<this.slotEl[this.activeSlot].slotMaxScroll-this.swSlotWrapper.clientHeight/4){c=this.slotEl[this.activeSlot].slotMaxScroll-this.swSlotWrapper.clientHeight/4}}else{c=Math.round(c/this.cellHeight)*this.cellHeight}}this.scrollTo(this.activeSlot,Math.round(c),Math.round(a)+"ms");return true},scrollTo:function(c,a,b){this.slotEl[c].style.webkitTransitionDuration=b?b:"100ms";this.setPosition(c,a?a:0);if(this.slotEl[c].slotYPosition>0||this.slotEl[c].slotYPosition<this.slotEl[c].slotMaxScroll){this.slotEl[c].addEventListener("webkitTransitionEnd",this,false)}},scrollToValue:function(e,d){var c,b,a;this.slotEl[e].removeEventListener("webkitTransitionEnd",this,false);this.slotEl[e].style.webkitTransitionDuration="0";b=0;for(a in this.slotData[e].values){if(a==d){c=b*this.cellHeight;this.setPosition(e,c);break}b-=1}},backWithinBoundaries:function(a){a.target.removeEventListener("webkitTransitionEnd",this,false);this.scrollTo(a.target.slotPosition,a.target.slotYPosition>0?0:a.target.slotMaxScroll,"150ms");return false},tapDown:function(a){a.currentTarget.addEventListener("touchmove",this,false);a.currentTarget.addEventListener("touchend",this,false);a.currentTarget.className="sw-pressed"},tapCancel:function(a){a.currentTarget.removeEventListener("touchmove",this,false);a.currentTarget.removeEventListener("touchend",this,false);a.currentTarget.className=""},tapUp:function(a){this.tapCancel(a);if(a.currentTarget.id=="sw-cancel"){this.cancelAction()}else{this.doneAction()}},setCancelAction:function(a){this.cancelAction=a},setDoneAction:function(a){this.doneAction=a},cancelAction:function(){return false},cancelDone:function(){return true}};(function(){var o=this;var j=Array();var p=Array();function f(u,v){for(var t in v){u[t]=v[t]}}function h(v,t,u){v.style.width=t.toString()+"px";v.style.height=u.toString()+"px"}function s(u,t,v){u.style.left=Math.round(t).toString()+"px";u.style.top=Math.round(v).toString()+"px"}TrayController=function(){return this};TrayController.prototype.init=function(t){this.currentX=0;this.elem=t};TrayController.prototype.touchstart=function(t){this.startX=t.touches[0].pageX-this.currentX;this.touchMoved=false;window.addEventListener("touchmove",this,true);window.addEventListener("touchend",this,true);this.elem.style.webkitTransitionDuration="0s"};TrayController.prototype.touchmove=function(t){this.touchMoved=true;this.lastX=this.currentX;this.lastMoveTime=new Date();this.currentX=event.touches[0].pageX-this.startX;this.delegate.update(this.currentX)};TrayController.prototype.touchend=function(u){window.removeEventListener("touchmove",this,true);window.removeEventListener("touchend",this,true);this.elem.style.webkitTransitionDuration="0.4s";if(this.touchMoved){var v=this.currentX-this.lastX;var t=(new Date())-this.lastMoveTime+1;this.currentX=this.currentX+v*200/t;this.delegate.updateTouchEnd(this)}else{this.delegate.clicked(this.currentX)}};TrayController.prototype.handleEvent=function(t){this[t.type](t);t.preventDefault()};const e=150;const n=e/2;const d=70;const a=n/2;const g=e;const b=e/3;const k="rotateY("+(-d)+"deg)";const c="rotateY("+d+"deg)";const i="translateZ("+g+"px)";FlowDelegate=function(){this.cells=new Array();this.transforms=new Array()};FlowDelegate.prototype.init=function(t){this.elem=t};FlowDelegate.prototype.updateTouchEnd=function(t){this.lastFocus=undefined;var u=this.getFocusedCell(t.currentX);t.currentX=-u*n;this.update(t.currentX)};FlowDelegate.prototype.clicked=function(u){var v=-Math.round(u/n);var t=this.cells[v];galleryCell=v};FlowDelegate.prototype.getFocusedCell=function(t){var u=-Math.round(t/n);return Math.min(Math.max(u,0),this.cells.length-1)};FlowDelegate.prototype.transformForCell=function(u,w,z){var t=(w*n);var v=t+z;if((v<a)&&(v>=-a)){return i+" translateX("+t+"px)"}else{if(v>0){return"translateX("+(t+b)+"px) "+k}else{return"translateX("+(t-b)+"px) "+c}}};FlowDelegate.prototype.setTransformForCell=function(t,v,u){if(this.transforms[v]!=u){t.style.webkitTransform=u;this.transforms[v]=u}};FlowDelegate.prototype.update=function(u){this.elem.style.webkitTransform="translateX("+(u)+"px)";for(var v in this.cells){var t=this.cells[v];this.setTransformForCell(t,v,this.transformForCell(t,v,u));v+=1}};var l=new TrayController();var q=new FlowDelegate();o.zflow=function(v,u){var z=document.querySelector(u);l.init(z);q.init(z);l.delegate=q;var t={top:Math.round(-e*0.65)+"px",left:Math.round(-e/2)+"px",width:e+"px",height:Math.round(e*1.5)+"px",opacity:0,};var w=0;function A(){var B=document.createElement("div");var F=document.createElement("img");var D=document.createElement("canvas");var E=document.createElement("a");var C=document.createElement("caption");B.className="cell";B.appendChild(E);E.appendChild(F);B.appendChild(D);B.appendChild(C);F.src=v[w];j[w]=v[w];E.href="show_image?fName="+v[w];E.className="slide-right";o.afnc=function(){var G=F.width;var J=F.height;var H=Math.min(e/J,e/G);G*=H;J*=H;h(F,G,J);f(B.style,t);s(F,(e-G)/2,e-J);s(D,(e-G)/2,e);s(C,(e-G)/2,e+10);m(F,G,J,D);var I=v[w].match(/(.*)[\/\\]([^\/\\]+)\.\w+$/)[2];I=I.replace(/_/g," ");I=I.replace(/(^|\s)([a-z])/g,function(K,M,L){return M+L.toUpperCase()});p[w]=I;r(C,G,w);q.setTransformForCell(B,q.cells.length,q.transformForCell(B,q.cells.length,l.currentX));q.cells.push(B);z.appendChild(B);B.style.opacity=1;if(w<(v.length-1)){w++;A()}else{window.setTimeout(function(){window.scrollTo(0,0)},100);galleryInit=1}};F.addEventListener("load",afnc,true)}A();z.addEventListener("touchstart",l,false)};o.zflowCleanup=function(t){var u=document.querySelector(t);if(u){if(u.childNodes.length>0){q.transforms.length=0;q.cells.length=0;while(u.hasChildNodes()){var v=u.childNodes[0].childNodes[0].childNodes[0];v.removeEventListener("load",afnc,true);u.removeChild(u.childNodes[0])}var w=document.getElementById("gallery");if(w){w.parentNode.removeChild(w);galleryInit=0;galleryCell=0}}}};o.zflowGetImageSource=function(t,u){var v=document.querySelector(t);var w="";if(v){if(v.childNodes.length>0){while(v.hasChildNodes()){w=v.childNodes[0].childNodes[0].childNodes[u].src}}}return w};function r(u,t,v){u.width=t;u.innerHTML=p[v]}function m(z,u,A,v){v.width=u;v.height=A/2;var t=v.getContext("2d");t.save();t.translate(0,A-1);t.scale(1,-1);t.drawImage(z,0,0,u,A);t.restore();t.globalCompositeOperation="destination-out";var w=t.createLinearGradient(0,0,0,A/2);w.addColorStop(1,"rgba(255, 255, 255, 1.0)");w.addColorStop(0,"rgba(255, 255, 255, 0.5)");t.fillStyle=w;t.fillRect(0,0,u,A/2)}})();var now=new Date();var url_month="month";var url_event="events.htm";function getCalendar(e,c,b){url_month=e;url_event=c;var f=b.getDate();var a=b.getMonth()+1;var g=b.getFullYear();$.get(url_month,{month:a,year:g},function(d){$("#ical").empty();$(d).appendTo("#ical");setBindings();setToday();setSelectedAndLoadEvents(b)})}function getEvents(b){var c=b.getDate();var a=b.getMonth()+1;var e=b.getFullYear();$.get(url_event,{day:c,month:a,year:e},function(d){$("#ical .events").empty();$(d).appendTo("#ical .events")})}function getNoEvents(){var a="<li class='no-event'>No Events</li>";$("#ical .events").empty();$(a).appendTo("#ical .events")}function setBindings(){$("#ical td").bind("click",function(){var b=$(this).attr("class");var a=getClickedDate($(this));RemoveSelectedCell();setToday();if(b.indexOf("date_has_event")!=-1||b.indexOf("today_date_has_event")!=-1){$(this).attr("class","selected_date_has_event");getEvents(a)}if(b==""||b.indexOf("today")!=-1){$(this).attr("class","selected");getNoEvents()}if(b.indexOf("prevmonth")!=-1||b.indexOf("nextmonth")!=-1){getCalendar(url,a)}});$("#ical .bottom-bar .bottom-bar-today").bind("click",function(){getCalendar(url_month,url_event,now)});$("#ical .goto-prevmonth").bind("click",function(){loadPrevNextMonth(-1)});$("#ical .goto-nextmonth").bind("click",function(){loadPrevNextMonth(1)})}function RemoveSelectedCell(){$("#ical .selected_date_has_event").removeClass("selected_date_has_event");$("#ical .selected").removeClass("selected")}function getClickedDate(b){var c=$(b).find("input").val();var a=getDateFromHiddenField(c);return a}function loadPrevNextMonth(c){var b=$("#ical .selected").text();if(b==""){b=$("#ical .selected_date_has_event").text()}var a=parseInt($("#ical > #month").val());var e=$("#ical > #year").val();var d=new Date(e,a-1,b);if(c==1){d.nextMonth()}else{d.prevMonth()}getCalendar(url_month,url_event,d)}function setToday(){$("#ical :hidden").each(function(c){var a=getDateFromHiddenField($(this).val());if(!isNaN(a)){var h=now;var j=now.getDate();var i=a.getDate();var g=now.getMonth();var f=a.getMonth();var e=now.getFullYear();var d=a.getFullYear();if(now.getDate()==a.getDate()&&now.getMonth()==a.getMonth()&&now.getFullYear()==a.getFullYear()){var b=$(this).closest("td");if($(b).attr("class")=="date_has_event"){$(b).attr("class","today_date_has_event")}else{$(b).attr("class","today")}}}})}function getDateFromHiddenField(c){var b=c.split("-");return new Date(b[0],b[1]-1,b[2])}function setSelectedAndLoadEvents(a){RemoveSelectedCell();$("#ical td").each(function(c){var d=$(this).attr("class");var b=getClickedDate($(this));if((d!="prevmonth"&&d!="nextmonth")&&a.getDate()==b.getDate()&&a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()){if(d=="date_has_event"){$(this).attr("class","selected_date_has_event");getEvents(a)}else{$(this).attr("class","selected");getNoEvents()}}});setToday()}function trim(b,a){return ltrim(rtrim(b,a),a)}function ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"")}function rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"")}function dateAddExtention(c,a){var b=new String();c=c.toLowerCase();if(isNaN(a)){throw"The second parameter must be a number. \n You passed: "+a;return false}a=new Number(a);switch(c.toLowerCase()){case"yyyy":this.setFullYear(this.getFullYear()+a);break;case"q":this.setMonth(this.getMonth()+(a*3));break;case"m":this.setMonth(this.getMonth()+a);break;case"y":case"d":case"w":this.setDate(this.getDate()+a);break;case"ww":this.setDate(this.getDate()+(a*7));break;case"h":this.setHours(this.getHours()+a);break;case"n":this.setMinutes(this.getMinutes()+a);break;case"s":this.setSeconds(this.getSeconds()+a);break;case"ms":this.setMilliseconds(this.getMilliseconds()+a);break;default:throw"The first parameter must be a string from this list: \nyyyy, q, m, y, d, w, ww, h, n, s, or ms. You passed: "+c;return false}return this}Date.prototype.dateAdd=dateAddExtention;function prevMonth(){var a=this.getMonth();this.setMonth(a-1);if(this.getMonth()!=a-1&&(this.getMonth()!=11||(a==11&&this.getDate()==1))){this.setDate(0)}}function nextMonth(){var a=this.getMonth();this.setMonth(a+1);if(this.getMonth()!=a+1&&this.getMonth()!=0){this.setDate(0)}}Date.prototype.nextMonth=nextMonth;Date.prototype.prevMonth=prevMonth;(function(c){c.fn.drag=function(f,e,d){if(e){this.bind("dragstart",f)}if(d){this.bind("dragend",d)}return !f?this.trigger("mousedown",{which:1}):this.bind("drag",e?e:f)};var b=c.event.special.drag={distance:0,setup:function(d){d=c.extend({distance:b.distance},d||{});c.event.add(this,"mousedown",b.handler,d)},teardown:function(){c.event.remove(this,"mousedown",b.handler);if(this==b.dragging){b.dragging=b.proxy=null}a(this,true)},handler:function(e){var d;if(e.data.elem){e.dragTarget=e.data.elem;e.dragProxy=b.proxy||e.dragTarget;e.cursorOffsetX=e.data.x-e.data.left;e.cursorOffsetY=e.data.y-e.data.top;e.offsetX=e.pageX-e.cursorOffsetX;e.offsetY=e.pageY-e.cursorOffsetY}switch(e.type){case !b.dragging&&e.which==1&&"mousedown":c.extend(e.data,c(this).offset(),{x:e.pageX,y:e.pageY,elem:this,dist2:Math.pow(e.data.distance,2)});c.event.add(document.body,"mousemove mouseup",b.handler,e.data);a(this,false);return false;case !b.dragging&&"mousemove":if(Math.pow(e.pageX-e.data.x,2)+Math.pow(e.pageY-e.data.y,2)<e.data.dist2){break}b.dragging=e.dragTarget;e.type="dragstart";d=c.event.handle.call(b.dragging,e);b.proxy=c(d)[0]||b.dragging;if(d!==false){break}a(b.dragging,true);b.dragging=b.proxy=null;case"mousemove":if(b.dragging){e.type="drag";d=c.event.handle.call(b.dragging,e);if(c.event.special.drop){c.event.special.drop.allowed=(d!==false);c.event.special.drop.handler(e)}if(d!==false){break}e.type="mouseup"}case"mouseup":c.event.remove(document.body,"mousemove mouseup",b.handler);if(b.dragging){if(c.event.special.drop){c.event.special.drop.handler(e)}e.type="dragend";c.event.handle.call(b.dragging,e);a(b.dragging,true);b.dragging=b.proxy=null;e.data={}}break}}};function a(e,d){if(!e){return}e.unselectable=d?"off":"on";e.onselectstart=function(){return d};if(e.style){e.style.MozUserSelect=d?"":"none"}}})(jQuery);(function(b){b.fn.drop=function(e,d,c){if(d){this.bind("dropstart",e)}if(c){this.bind("dropend",c)}return !e?this.trigger("drop"):this.bind("drop",d?d:e)};b.dropManage=function(c){b.extend(a,{filter:"*",data:[],tolerance:null},c||{});return a.$elements.filter(a.filter).each(function(d){a.data[d]=a.locate(this)})};var a=b.event.special.drop={delay:100,mode:"intersect",$elements:b([]),data:[],setup:function(){a.$elements=a.$elements.add(this);a.data[a.data.length]=a.locate(this)},teardown:function(){var c=this;a.$elements=a.$elements.not(this);a.data=b.grep(a.data,function(d){return(d.elem!==c)})},handler:function(d){var c=null,e;d.dropTarget=a.dropping||undefined;if(a.data.length&&d.dragTarget){switch(d.type){case"drag":a.event=d;if(!a.timer){a.timer=setTimeout(a.tolerate,20)}break;case"mouseup":a.timer=clearTimeout(a.timer);if(!a.dropping){break}if(a.allowed){d.type="drop";e=b.event.handle.call(a.dropping,d)}c=false;case a.dropping&&"dropstart":d.type="dropend";c=c===null&&a.allowed?true:false;case a.dropping&&"dropend":b.event.handle.call(a.dropping,d);a.dropping=null;if(e===false){d.dropTarget=undefined}if(!c){break}d.type="dropstart";case a.allowed&&"dropstart":d.dropTarget=this;a.dropping=b.event.handle.call(this,d)!==false?this:null;break}}},tolerate:function(){var d=0,c,e,f=[a.event.pageX,a.event.pageY],g=a.locate(a.event.dragProxy);a.tolerance=a.tolerance||a.modes[a.mode];do{if(c=a.data[d]){if(a.tolerance){e=a.tolerance.call(a,a.event,g,c)}else{if(a.contains(c,f)){e=c}}}}while(++d<a.data.length&&!e);a.event.type=(e=e||a.best)?"dropstart":"dropend";if(a.event.type=="dropend"||e.elem!=a.dropping){a.handler.call(e?e.elem:a.dropping,a.event)}if(a.last&&f[0]==a.last.pageX&&f[1]==a.last.pageY){delete a.timer}else{a.timer=setTimeout(a.tolerate,a.delay)}a.last=a.event;a.best=null},locate:function(f){var d=b(f),g=d.offset(),e=d.outerHeight(),c=d.outerWidth();return{elem:f,L:g.left,R:g.left+c,T:g.top,B:g.top+e,W:c,H:e}},contains:function(c,d){return((d[0]||d.L)>=c.L&&(d[0]||d.R)<=c.R&&(d[1]||d.T)>=c.T&&(d[1]||d.B)<=c.B)},modes:{intersect:function(d,c,e){return this.contains(e,[d.pageX,d.pageY])?e:this.modes.overlap.apply(this,arguments)},overlap:function(d,c,e){e.overlap=Math.max(0,Math.min(e.B,c.B)-Math.max(e.T,c.T))*Math.max(0,Math.min(e.R,c.R)-Math.max(e.L,c.L));if(e.overlap>((this.best||{}).overlap||0)){this.best=e}return null},fit:function(d,c,e){return this.contains(e,c)?e:null},middle:function(d,c,e){return this.contains(e,[c.L+c.W/2,c.T+c.H/2])?e:null}}}})(jQuery);var _target=null,_dragx=null,_dragy=null,_rotate=null,_resort=null;var _dragging=false,_sizing=false,_animate=false;var _rotating=0,_width=0,_height=0,_left=0,_top=0,_xspeed=0,_yspeed=0;var _zindex=1000;jQuery.fn.touch=function(a){a=jQuery.extend({animate:true,sticky:false,dragx:true,dragy:true,rotate:false,resort:true,scale:false},a);var b=[];b=$.extend({},$.fn.touch.defaults,a);this.each(function(){this.opts=b;this.ontouchstart=touchstart;this.ontouchend=touchend;this.ontouchmove=touchmove;this.ongesturestart=gesturestart;this.ongesturechange=gesturechange;this.ongestureend=gestureend})};function touchstart(a){_target=this.id;_dragx=this.opts.dragx;_dragy=this.opts.dragy;_resort=this.opts.resort;_animate=this.opts.animate;_xspeed=0;_yspeed=0;$(a.changedTouches).each(function(){var c=($("#"+_target).css("left")=="auto")?this.pageX:parseInt($("#"+_target).css("left"));var b=($("#"+_target).css("top")=="auto")?this.pageY:parseInt($("#"+_target).css("top"));if(!_dragging&&!_sizing){_left=(a.pageX-c);_top=(a.pageY-b);_dragging=[_left,_top];if(_resort){_zindex=($("#"+_target).css("z-index")==_zindex)?_zindex:_zindex+1;$("#"+_target).css({zIndex:_zindex})}}})}function touchmove(c){if(_dragging&&!_sizing&&_animate){var a=(isNaN(parseInt($("#"+_target).css("left"))))?0:parseInt($("#"+_target).css("left"));var b=(isNaN(parseInt($("#"+_target).css("top"))))?0:parseInt($("#"+_target).css("top"))}$(c.changedTouches).each(function(){c.preventDefault();_left=(this.pageX-(parseInt($("#"+_target).css("width"))/2));_top=(this.pageY-(parseInt($("#"+_target).css("height"))/2));if(_dragging&&!_sizing){if(_animate){_xspeed=Math.round((_xspeed+Math.round(_left-a))/1.5);_yspeed=Math.round((_yspeed+Math.round(_top-b))/1.5)}if(_dragx||_dragy){$("#"+_target).css({position:"absolute"})}if(_dragx){$("#"+_target).css({left:_left+"px"})}if(_dragy){$("#"+_target).css({top:_top+"px"})}$("#"+_target).css({backgroundColor:"#4B880B"});$("#"+_target+" b").text("WEEEEEEEE!!!!")}})}function touchend(a){$(a.changedTouches).each(function(){if(!a.targetTouches.length){_dragging=false;if(_animate){_left=($("#"+_target).css("left")=="auto")?this.pageX:parseInt($("#"+_target).css("left"));_top=($("#"+_target).css("top")=="auto")?this.pageY:parseInt($("#"+_target).css("top"));var c=(_dragx)?(_left+_xspeed)+"px":_left+"px";var b=(_dragy)?(_top+_yspeed)+"px":_top+"px";if(_dragx||_dragy){$("#"+_target).animate({left:c,top:b},"fast")}}}});$("#"+_target+" b").text("I am sad :(");$("#"+_target).css({backgroundColor:"#0B4188"});setTimeout(changeBack,5000,_target)}function gesturestart(a){_sizing=[$("#"+this.id).css("width"),$("#"+this.id).css("height")]}function gesturechange(a){if(_sizing){_width=(this.opts.scale)?Math.min(parseInt(_sizing[0])*a.scale,300):_sizing[0];_height=(this.opts.scale)?Math.min(parseInt(_sizing[1])*a.scale,300):_sizing[1];_rotate=(this.opts.rotate)?"rotate("+((_rotating+a.rotation)%360)+"deg)":"0deg";$("#"+this.id).css({width:_width+"px",height:_height+"px",webkitTransform:_rotate});$("#"+this.id+" b").text("TRANSFORM!");$("#"+this.id).css({backgroundColor:"#4B880B"})}}function gestureend(a){_sizing=false;_rotating=(_rotating+a.rotation)%360}function changeBack(a){$("#"+a+" b").text("Touch Me :)");$("#"+a).css({backgroundColor:"#999"})}(function(b){var a=this,c=a.jQExtensionsCSS||{};b(a).load(function(){a.scrollTo(0,0);var g=a.innerWidth<a.innerHeight?"profile":"landscape",f=c.toolbarHeight||b("#jqt .toolbar").outerHeight()||45,e={profile:null,landscape:null},d=b.extend({defaults:".horizontal-scroll, .horizontal-scroll .scroll-container, .horizontal-slide, .horizontal-slide .slide-container { width: {width}px; height: 100%; overflow: hidden; padding: 0; } .vertical-scroll > div, .vertical-slide > div { margin: 0 auto; padding-bottom:{paddingBottom}px; } #jqt.fullscreen .vertical-scroll.use-bottom-toolbar > div, #jqt.fullscreen .vertical-slide.use-bottom-toolbar > div { padding-bottom:0px; } .vertical-scroll, .vertical-slide { position: relative; z-index: 1; overflow: hidden; height: {height}px; } .vertical-scroll.use-bottom-toolbar, .vertical-slide.use-bottom-toolbar { height: {bottomToolbarHeight}px !important; }\n",profile:".profile .horizontal-scroll, .profile .horizontal-scroll .scroll-container, .profile .horizontal-slide, .profile .horizontal-slide .slide-container { width: {width}px; } .profile .vertical-scroll, .profile .vertical-slide { position: relative; z-index: 1; overflow: hidden; height: {height}px; } .profile .vertical-scroll.use-bottom-toolbar, .profile .vertical-slide.use-bottom-toolbar { height: {bottomToolbarHeight}px !important; }",landscape:".landscape .horizontal-scroll, .landscape .horizontal-scroll .scroll-container, .landscape .horizontal-slide, .landscape .horizontal-slide .slide-container { width: {width}px; height: 100%; overflow: hidden; padding: 0; } .landscape .vertical-scroll, .landscape .vertical-slide { position: relative; z-index: 1; overflow: hidden; height: {height}px; } .landscape .vertical-scroll.use-bottom-toolbar, .landscape .vertical-slide.use-bottom-toolbar { height: {bottomToolbarHeight}px !important; }"},c.css||{});e[g]=b.extend({paddingBottom:5,width:a.innerWidth,height:a.innerHeight-f,bottomToolbarHeight:a.innerHeight-(f*2)},c[g]||{});e.defaults=b.extend({},e[g],c.defaults||{});b(document.createElement("style")).attr("type","text/css").html(d.defaults.replace(/\{(\w+)\}/g,function(i,h){return h in e.defaults?e.defaults[h]:i})+d[g].replace(/\{(\w+)\}/g,function(i,h){return h in e[g]?e[g][h]:i})).appendTo("head");b(a).one("orientationchange",function(){var h=a.innerWidth<a.innerHeight?"profile":"landscape";e[h]=b.extend({paddingBottom:5,width:a.innerWidth,height:a.innerHeight-f,bottomToolbarHeight:a.innerHeight-(f*2)},c[h]||{});b(document.createElement("style")).attr("type","text/css").html(d[h].replace(/\{(\w+)\}/g,function(j,i){return i in e[h]?e[h][i]:j})).appendTo("head")})})})(jQuery);(function($){$.Chain={version:"0.2",tag:["{","}"],services:{},service:function(name,proto){this.services[name]=proto;$.fn[name]=function(options){if(!this.length){return this}var instance=this.data("chain-"+name);var args=Array.prototype.slice.call(arguments,1);if(!instance){if(options=="destroy"){return this}instance=$.extend({element:this},$.Chain.services[name]);this.data("chain-"+name,instance);if(instance.init){instance.init()}}var result;if(typeof options=="string"&&instance["$"+options]){result=instance["$"+options].apply(instance,args)}else{if(instance.handler){result=instance.handler.apply(instance,[options].concat(args))}else{result=this}}if(options=="destroy"){this.removeData("chain-"+name)}return result}},extend:function(name,proto){if(this.services[name]){this.services[name]=$.extend(this.services[name],proto)}},jobject:function(obj){return obj&&obj.init==$.fn.init},jidentic:function(j1,j2){if(!j1||!j2||j1.length!=j2.length){return false}var a1=j1.get();var a2=j2.get();for(var i=0;i<a1.length;i++){if(a1[i]!=a2[i]){return false}}return true},parse:function(){var $this={};$this.closure=['function($data, $el){var $text = [];\n$text.print = function(text){this.push((typeof text == "number") ? text : ((typeof text != "undefined") ? text : ""));};\nwith($data){\n','}\nreturn $text.join("");}'];$this.textPrint=function(text){return'$text.print("'+text.split("\\").join("\\\\").split("'").join("\\'").split('"').join('\\"')+'");'};$this.scriptPrint=function(text){return"$text.print("+text+");"};$this.parser=function(text){var tag=$.Chain.tag;var opener,closer,closer2=null,result=[];while(text){opener=text.indexOf(tag[0]);closer=opener+text.substring(opener).indexOf(tag[1]);if(opener!=-1){if(text[opener-1]=="\\"){closer2=opener+tag[0].length+text.substring(opener+tag[0].length).indexOf(tag[0]);if(closer2!=opener+tag[0].length-1&&text[closer2-1]=="\\"){closer2=closer2-1}else{if(closer2==opener+tag[0].length-1){closer2=text.length}}result.push($this.textPrint(text.substring(0,opener-1)));result.push($this.textPrint(text.substring(opener,closer2)))}else{closer2=null;if(closer==opener-1){closer=text.length}result.push($this.textPrint(text.substring(0,opener)));result.push($this.scriptPrint(text.substring(opener+tag[0].length,closer)))}text=text.substring((closer2===null)?closer+tag[1].length:closer2)}else{if(text){result.push($this.textPrint(text));text=""}}}return result.join("\n")};return function($text){var $fn=function(){};try{eval("$fn = "+$this.closure[0]+$this.parser($text)+$this.closure[1])}catch(e){throw"Parsing Error"}return $fn}}()}})(jQuery);(function(a){a.Chain.service("update",{handler:function(b){if(typeof b=="function"){return this.bind(b)}else{return this.trigger(b)}},bind:function(b){return this.element.bind("update",b)},trigger:function(b){this.element.items("update");this.element.item("update");this.element.triggerHandler("preupdate",this.element.item());if(b=="hard"){this.element.items(true).each(function(){a(this).update()})}this.element.triggerHandler("update",this.element.item());return this.element}})})(jQuery);(function(a){a.Chain.service("chain",{init:function(){this.anchor=this.element;this.template=this.anchor.html();this.tplNumber=0;this.builder=this.createBuilder();this.plugins={};this.isActive=false;this.destroyers=[];this.element.addClass("chain-element")},handler:function(b){this.element.items("backup");this.element.item("backup");if(typeof b=="object"){this.handleUpdater(b)}else{if(typeof b=="function"){this.handleBuilder(b)}}this.anchor.empty();this.isActive=true;this.element.update();return this.element},handleUpdater:function(h){var b=h.builder;delete h.builder;if(h.anchor){this.setAnchor(h.anchor)}delete h.anchor;var e=h.override;delete h.override;for(var d in h){if(typeof h[d]=="string"){h[d]=a.Chain.parse(h[d])}else{if(typeof h[d]=="object"){for(var c in h[d]){if(typeof h[d][c]=="string"){h[d][c]=a.Chain.parse(h[d][c])}}}}}var f=function(o,p){var n,q;var k=a(this);for(var m in h){if(m=="self"){n=k}else{n=a(m,k)}if(typeof h[m]=="function"){q=h[m].apply(k,[p,n]);if(typeof q=="string"){n.not(":input").html(q).end().filter(":input").val(q)}}else{if(typeof h[m]=="object"){for(var l in h[m]){if(typeof h[m][l]=="function"){q=h[m][l].apply(k,[p,n]);if(typeof q=="string"){if(l=="content"){n.html(q)}else{if(l=="text"){n.text(q)}else{if(l=="value"){n.val(q)}else{if(l=="class"||l=="className"){n.addClass(q)}else{n.attr(l,q)}}}}}}}}}}};var g=this.defaultBuilder;this.builder=function(i){if(b){b.apply(this,[i])}if(!e){g.apply(this)}this.update(f);return false}},handleBuilder:function(b){this.builder=this.createBuilder(b)},defaultBuilder:function(c,b){var d=c?(c.apply(this,[b])!==false):true;if(d){this.bind("update",function(g,h){var e=a(this);for(var f in h){if(typeof h[f]!="object"&&typeof h[f]!="function"){e.find("> ."+f+", *:not(.chain-element) ."+f).each(function(){var i=a(this);if(i.filter(":input").length){i.val(h[f])}else{if(i.filter("img").length){i.attr("src",h[f])}else{i.html(h[f])}}})}}})}},createBuilder:function(b){var c=this.defaultBuilder;return function(d){c.apply(this,[b,d]);return false}},setAnchor:function(b){this.anchor.html(this.template);this.anchor=b==this.element?b:this.element.find(b).eq(0);this.template=this.anchor.html();this.anchor.empty()},$anchor:function(b){if(b){this.element.items("backup");this.element.item("backup");this.setAnchor(b);this.element.update();return this.element}else{return this.anchor}},$template:function(b){if(!arguments.length){return a("<div>").html(this.template).children().eq(this.tplNumber)}if(b=="raw"){return this.template}if(typeof b=="number"){this.tplNumber=b}else{var c=a("<div>").html(this.template).children();var d=c.filter(b).eq(0);if(d.length){this.tplNumber=c.index(d)}else{return this.element}}this.element.items("backup");this.element.item("backup");this.element.update();return this.element},$builder:function(b){if(b){return this.handler(b)}else{return this.builder}},$active:function(){return this.isActive},$plugin:function(b,c){if(c===null){delete this.plugins[b]}else{if(typeof c=="function"){this.plugins[b]=c}else{if(b&&!c){return this.plugins[b]}else{return this.plugins}}}if(typeof c=="function"){this.element.items(true).each(function(){var d=a(this);c.call(d,d.item("root"))})}this.element.update();return this.element},$clone:function(){var c=this.element.attr("id");this.element.attr("id","");var b=this.element.clone().empty().html(this.template);this.element.attr("id",c);return b},$destroy:function(b){this.element.removeClass("chain-element");if(!b){this.element.items("backup");this.element.item("backup");this.element.find(".chain-element").each(function(){a(this).chain("destroy",true)})}this.element.triggerHandler("destroy");this.isActive=false;this.anchor.html(this.template);return this.element}})})(jQuery);(function(a){a.Chain.service("item",{init:function(){this.isActive=false;this.isBuilt=false;this.root=this.element;this.data=false;this.datafn=this.dataHandler},handler:function(b){if(typeof b=="object"){return this.handleObject(b)}else{if(typeof b=="function"){return this.handleFunction(b)}else{return this.handleDefault()}}},handleObject:function(b){this.setData(b);this.isActive=true;this.update();return this.element},handleFunction:function(b){this.datafn=b;return this.element},handleDefault:function(){if(this.isActive){return this.getData()}else{return false}},getData:function(){this.data=this.datafn.call(this.element,this.data);return this.data},setData:function(d){var c;if(a.Chain.jobject(d)&&d.item()){c=a.extend({},d.item())}else{if(a.Chain.jobject(d)){c={}}else{c=d}}this.data=this.datafn.call(this.element,this.data||c,c);if(this.linkElement&&this.linkElement[0]!=d[0]){var b=this.linkFunction();if(a.Chain.jobject(b)&&b.length&&b.item()){b.item(this.data)}}},dataHandler:function(b,c){if(arguments.length==2){return a.extend(b,c)}else{return b}},update:function(){return this.element.update()},build:function(){var b=this.element.chain("template","raw").replace(/jQuery\d+\=\"null\"/gi,"");this.element.chain("anchor").html(b);if(!a.Chain.jidentic(this.root,this.element)){var c=this.root.chain("plugin");for(var d in c){c[d].apply(this.element,[this.root])}}this.element.chain("builder").apply(this.element,[this.root]);this.isBuilt=true},$update:function(){if(this.element.chain("active")&&this.isActive&&!this.isBuilt&&this.getData()){this.build()}return this.element},$replace:function(b){this.data={};this.setData(b);this.isActive=true;this.update();return this.element},$remove:function(b){this.element.chain("destroy");this.element.remove();this.element.item("link",null);this.element.item("destroy");if(!a.Chain.jidentic(this.root,this.element)&&!b){this.root.update()}},$active:function(){return this.isActive},$root:function(b){if(arguments.length){this.root=b;this.update();return this.element}else{return this.root}},$backup:function(){this.isBuilt=false;return this.element},$link:function(c,d){if(this.linkElement){this.linkElement.unbind("update",this.linkUpdater);this.linkElement=null}c=a(c);if(c.length){var b=this;this.isActive=true;this.linkElement=c;this.linkFunction=function(){if(typeof d=="function"){try{return d.call(b.element,b.linkElement)}catch(f){return a().eq(-1)}}else{if(typeof d=="string"){return b.linkElement.items("collection",d)}else{return a().eq(-1)}}};this.linkUpdater=function(){var e=b.linkFunction();if(e&&e.length){b.element.item(e)}};this.linkElement.bind("update",this.linkUpdater);this.linkUpdater()}return this.element},$destroy:function(){return this.element}})})(jQuery);(function(a){a.Chain.service("items",{collections:{all:function(){return this.element.chain("anchor").children(".chain-item")},visible:function(){return this.element.chain("anchor").children(".chain-item:visible")},hidden:function(){return this.element.chain("anchor").children(".chain-item:hidden")},self:function(){return this.element}},init:function(){this.isActive=false;this.pushBuffer=[];this.shiftBuffer=[];this.collections=a.extend({},this.collections)},handler:function(b){if(b instanceof Array){return this.handleArray(b)}else{if(!this.isActive){return a().eq(-1)}else{if(a.Chain.jobject(b)){return this.handleElement(b)}else{if(typeof b=="object"){return this.handleObject(b)}else{if(typeof b=="number"){return this.handleNumber(b)}else{if(b===true){return this.handleTrue()}else{return this.handleDefault()}}}}}}},handleObject:function(b){return this.collection("all").filter(function(){return a(this).item()==b})},handleElement:function(b){if(!a.Chain.jidentic(b,b.item("root"))&&a.Chain.jidentic(this.element,b.item("root"))){return b}else{return a().eq(-1)}},handleArray:function(b){return this.$merge(b)},handleNumber:function(b){if(b==-1){return this.collection("visible").filter(":last")}else{return this.collection("visible").eq(b)}},handleTrue:function(){return this.collection("all")},handleDefault:function(){return this.collection("visible")},update:function(){this.element.update()},empty:function(){var b=this.collection("all");setTimeout(function(){b.each(function(){a(this).item("remove",true)})},1);this.element.chain("anchor").empty()},collection:function(b,c){if(arguments.length>1){if(typeof c=="function"){this.collections[b]=c}return this.element}else{if(this.collections[b]){return this.collections[b].apply(this)}else{return a().eq(-1)}}},$update:function(){if(!this.element.chain("active")||!this.isActive){return this.element}var c=this;var b=this.element.chain("builder");var f=this.element.chain("template");var d;var e=function(){var g=f.clone()[d?"appendTo":"prependTo"](c.element.chain("anchor")).addClass("chain-item").item("root",c.element);if(c.linkElement&&a.Chain.jobject(this)&&this.item()){g.item("link",this,"self")}else{g.item(this)}g.chain(b)};d=false;a.each(this.shiftBuffer,e);d=true;a.each(this.pushBuffer,e);this.shiftBuffer=[];this.pushBuffer=[];return this.element},$add:function(){if(this.linkElement){return this.element}var d;var c=Array.prototype.slice.call(arguments);if(typeof c[0]=="string"){d=c.shift()}var b=(d=="shift")?"shiftBuffer":"pushBuffer";this.isActive=true;this[b]=this[b].concat(c);this.update();return this.element},$merge:function(d,c){if(this.linkElement){return this.element}if(typeof d!="string"){c=d}var b=(d=="shift")?"shiftBuffer":"pushBuffer";this.isActive=true;if(a.Chain.jobject(c)){this[b]=this[b].concat(c.map(function(){return a(this)}).get())}else{if(c instanceof Array){this[b]=this[b].concat(c)}}this.update();return this.element},$replace:function(d,c){if(this.linkElement&&arguments.callee.caller!=this.linkUpdater){return this.element}if(typeof d!="string"){c=d}var b=(d=="shift")?"shiftBuffer":"pushBuffer";this.isActive=true;this.empty();if(a.Chain.jobject(c)){this[b]=c.map(function(){return a(this)}).get()}else{if(c instanceof Array){this[b]=c}}this.update();return this.element},$remove:function(){if(this.linkElement){return this.element}for(var b=0;b<arguments.length;b++){this.handler(arguments[b]).item("remove",true)}this.update();return this.element},$reorder:function(c,b){if(b){this.handler(c).before(this.handler(b))}else{this.handler(c).appendTo(this.element.chain("anchor"))}this.update();return this.element},$empty:function(){if(this.linkElement){return this.element}this.empty();this.shiftBuffer=[];this.pushBuffer=[];this.update();return this.element},$data:function(b){return this.handler(b).map(function(){return a(this).item()}).get()},$link:function(c,d){if(this.linkElement){this.linkElement.unbind("update",this.linkUpdater);this.linkElement=null}c=a(c);if(c.length){var b=this;this.linkElement=c;this.linkFunction=function(){if(typeof d=="function"){try{return d.call(b.element,b.linkElement)}catch(f){return a().eq(-1)}}else{if(typeof d=="string"){return b.linkElement.items("collection",d)}else{return a().eq(-1)}}};this.linkUpdater=function(){b.$replace(b.linkFunction())};this.linkElement.bind("update",this.linkUpdater);this.linkUpdater()}return this.element},$index:function(b){return this.collection("all").index(this.handler(b))},$collection:function(){return this.collection.apply(this,Array.prototype.slice.call(arguments))},$active:function(){return this.isActive},$backup:function(){if(!this.element.chain("active")||!this.isActive){return this.element}var b=[];this.collection("all").each(function(){var c=a(this).item();if(c){b.push(c)}});this.pushBuffer=b.concat(this.pushBuffer);this.empty();return this.element},$destroy:function(){this.empty();return this.element}});a.Chain.extend("items",{doFilter:function(){var c=this.searchProperties;var d=this.searchText;if(d){if(typeof d=="string"){d=d.toLowerCase()}var b=this.element.items(true).filter(function(){var f=a(this).item();if(c){for(var e=0;e<c.length;e++){if(typeof f[c[e]]=="string"&&!!(typeof d=="string"?f[c[e]].toLowerCase():f[c[e]]).match(d)){return true}}}else{for(var g in f){if(typeof f[g]=="string"&&!!(typeof d=="string"?f[g].toLowerCase():f[g]).match(d)){return true}}}});this.element.items(true).not(b).hide();b.show()}else{this.element.items(true).show();this.element.unbind("preupdate",this.searchBinding);this.searchBinding=null}},$filter:function(d,c){if(!arguments.length){return this.update()}this.searchText=d;if(typeof c=="string"){this.searchProperties=[c]}else{if(c instanceof Array){this.searchProperties=c}else{this.searchProperties=null}}if(!this.searchBinding){var b=this;this.searchBinding=function(f,e){b.doFilter()};this.element.bind("preupdate",this.searchBinding)}return this.update()}});a.Chain.extend("items",{doSort:function(){var b=this.sortName;var d=this.sortOpt;var g={number:function(i,h){return parseFloat((a(i).item()[b]+"").match(/\d+/gi)[0])-parseFloat((a(h).item()[b]+"").match(/\d+/gi)[0])},"default":function(i,h){return a(i).item()[b]>a(h).item()[b]?1:-1}};if(b){var e=d.fn||g[d.type]||g["default"];var f=this.element.items(true).get().sort(e);f=d.desc?f.reverse():f;for(var c=0;c<f.length;c++){this.element.chain("anchor").append(f[c])}d.desc=d.toggle?!d.desc:d.desc}else{this.element.unbind("preupdate",this.sortBinding);this.sortBinding=null}},$sort:function(c,d){if(!c&&c!==null&&c!==false){return this.update()}if(this.sortName!=c){this.sortOpt=a.extend({desc:false,type:"default",toggle:false},d)}else{a.extend(this.sortOpt,d)}this.sortName=c;if(!this.sortBinding){var b=this;this.sortBinding=function(f,e){b.doSort()};this.element.bind("preupdate",this.sortBinding)}return this.update()}})})(jQuery);(function(a){if(a.jQTouch){a.jQTouch.addExtension(function b(e){var d=".toolbar h1";a(function(){a("#jqt").bind("pageAnimationStart",function(i,g){if(g.direction==="in"){var f=a(d,a(i.target));var h=a(i.target).data("referrer");if(f.length&&h){f.html(h.text())}}})});function c(f){d=f}return{setTitleSelector:c}})}})(jQuery);(function(a){if(a.jQTouch){a.jQTouch.addExtension(function b(f){var m,i;var d=false;function n(p,o,r,q){i=p;if(window.openDatabase){m=openDatabase(p,o,r,q);if(!m){debugTxt=("Failed to open the database on disk. This is probably because the version was bad or there is not enough space left in this domain's quota");if(d){c(debugTxt)}}}else{debugTxt=("Couldn't open the database. Please try with a WebKit nightly with this feature enabled");if(d){c(debugTxt)}}}function e(o){for(x=0;x<o.createTables.length;x++){p(o.createTables[x])}function p(r){debugTxt="create table "+r.table;var q="CREATE TABLE "+r.table+" (";nodeSize=r.property.length-1;for(y=0;y<=nodeSize;y++){q+=r.property[y].name+" "+r.property[y].type;if(y!=nodeSize){q+=", "}}q+=")";k(q,debugTxt)}}function j(p,o,q){stringQuery="DELETE FROM "+p+" WHERE "+o+" = "+q;debugTxt="delete row"+o+" "+q;k(stringQuery,debugTxt)}function g(p,o){stringQuery="SELECT * FROM "+p;debugTxt="selecting everything in table "+p;k(stringQuery,debugTxt,o)}function h(o){stringQuery="DROP TABLE "+o;debugTxt="delete table "+o;k(stringQuery,debugTxt)}function l(o){for(x=0;x<o.addRow.length;x++){p(o.addRow[x])}function p(q){debugTxt="create row "+q.table;stringQuery="INSERT INTO "+q.table+" (";nodeSize=q.property.length-1;for(y=0;y<=nodeSize;y++){stringQuery+=q.property[y].name;if(y!=nodeSize){stringQuery+=", "}}stringQuery+=") VALUES (";for(y=0;y<=nodeSize;y++){stringQuery+='"'+q.property[y].value+'"';if(y!=nodeSize){stringQuery+=", "}}stringQuery+=")";k(stringQuery,debugTxt)}}function k(o,p,q){p+="<br> SQL: "+o;callback=q;m.transaction(function(r){r.executeSql(o,[],function(t,s){if(callback){callback(s)}if(d){p+="<br><span style='color:green'>success</span> ";c(p)}},function(s,t){p+="<br><span style='color:red'>"+t.message+"</span> ";if(d){c(p)}})})}function c(o){if(!a("#debugMode")[0]){a("body").append("<div style='position:abolute;top:0 !important;left:0 !important;width:100% !important;min-height:100px !important; height:300px; overflow:scroll;z-index:1000; display:block; opacity:0.8; background:#000;-webkit-backface-visibility:visible ' id='debugMode'></div>")}a("#debugMode").append("<div class='debugerror'>"+o+"</div>")}return{dbOpen:n,dbDeleteRow:j,dbDropTable:h,dbInsertRows:l,dbSelectAll:g,dbExecuteQuery:k,dbCreateTables:e}})}})(jQuery);(function(a){if(a.jQTouch){a.jQTouch.addExtension(function b(d){function c(g){if(g==null){g=0}var f=e(g);a("body > *").css("min-height",f+"px !important");a("body.fullscreen > *").css("min-height",f+"px !important");a("body.fullscreen.black-translucent > *").css("min-height",f+"px !important");a("body.landscape > *").css("min-height",f+"px !important")}function e(g){var f=0;if(typeof(window.innerWidth)=="number"){f=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){f=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){f=document.body.clientHeight}}}if(f<g){f=g}return f}return{resetHeight:c}})}})(jQuery);(function(b){if(b.jQTouch){b.jQTouch.addExtension(function a(c){b.fn.makeFloaty=function(d){var f={align:"top",spacing:20,time:".3s"};var e=b.extend({},f,d);e.align=(e.align=="top")?"top":"bottom";return this.each(function(){var g=b(this);g.css({"-webkit-transition":"top "+e.time+" ease-in-out",display:"block","min-height":"0 !important"}).data("settings",e);b(document).bind("scroll",function(){if(g.data("floatyVisible")===true){g.scrollFloaty()}});g.scrollFloaty()})};b.fn.scrollFloaty=function(){return this.each(function(){var d=b(this);var f=d.data("settings");var e=b("html").attr("clientHeight");var g=window.pageYOffset+((f.align=="top")?f.spacing:e-f.spacing-d.get(0).offsetHeight);d.css("top",g).data("floatyVisible",true)})};b.fn.hideFloaty=function(){return this.each(function(){var d=b(this);var e=d.get(0).offsetHeight;d.css("top",-e-10).data("floatyVisible",false)})};b.fn.toggleFloaty=function(){return this.each(function(){var d=b(this);if(d.data("floatyVisible")===true){d.hideFloaty()}else{d.scrollFloaty()}})}})}})(jQuery);(function(c){if(c.jQTouch){function b(f){var i,e,h,i,g=0;h={element:c("#gesture_test"),onGestureStart:null,onGestureChange:null,onGestureEnd:null,};h=c.extend({},h,f);h.element.bind("gesturestart",function(j){j.originalEvent.preventDefault();if(h.onGestureStart){h.onGestureStart(a(j,i),d(j,g),j,h.element)}}).bind("gesturechange",function(j){if(h.onGestureChange){h.onGestureChange(a(j,i),d(j,g),j,h.element)}}).bind("gestureend",function(j){i=j.originalEvent.scale;g=(j.originalEvent.rotation+g)%360;if(h.onGestureEnd){h.onGestureEnd(a(j,i),d(j,g),j,h.element)}})}function d(f,e){return f.originalEvent.rotation+e}function a(f,e){return f.originalEvent.scale+e}c.fn.bindGestures=function(e){e.element=this;b(e)}}})(jQuery);(function(f){var g,j=this,o=j.document,l=this.WebKitCSSMatrix,k={selector:".horizontal-scroll > table",attributesToOptions:e,attributes:{defaultDuration:"slidespeed",preventDefault:"preventdefault",defaultTransform:"defaulttransform",bounce:function(u){return u.attr("bounce")==="false"?false:k.bounce},scrollBar:function(u){return u.hasClass("with-scrollbar")}},ignoreTags:"SELECT,TEXTAREA,BUTTON,INPUT",eventProperty:"pageX",numberOfTouches:1,defaultDuration:500,defaultTransform:"translate3d({0}px,0,0)",defaultOffset:0,bounceSpeed:500,preventDefault:true,maxScrollTime:1000,friction:3,bounceTimingFunction:"cubic-bezier(0,0,.25,1)",bounce:true,scrollBar:true,scrollBarElement:null,scrollBarOptions:{},events:{touchstart:a,touchmove:s,touchend:d,touchcancel:d,webkitTransitionEnd:i,},setPosition:c,reset:t,momentum:m},q=function(){return j.innerWidth+"px"},n=function(u){return(j.innerHeight-u.toolbar)+"px"},h={variables:{toolbar:45},defaults:{".horizontal-scroll":{width:q,height:"100%",overflow:"hidden",padding:"0px",position:"relative",height:n},".horizontal-scroll > table":{height:"100%"},".horizontal-scroll .scrollbar.horizontal":{"-webkit-transition-timing-function":"cubic-bezier(0,0,0.25,1)","-webkit-transform":"translate3d(0,0,0)","-webkit-transition-property":"-webkit-transform,opacity","-webkit-transition-duration":"0,300ms","-webkit-border-radius":"4px","pointer-events":"none",opacity:0,"-webkit-border-image":"-webkit-gradient(radial, 50% 50%, 2, 50% 50%, 8, from(rgba(0,0,0,.5)), to(rgba(0,0,0,.5))) 3 2",position:"absolute","z-index":10,width:"1px",height:"5px",bottom:"1px",left:"1px"}},portrait:{".portrait .horizontal-scroll":{width:q}},landscape:{".landscape .horizontal-scroll":{width:q}}};if(f.jQTouch){f.jQTouch.addExtension(function(v){function u(A,z){var w=z.page.find(k.selector);w.scrollHorizontally(k.attributesToOptions(w,k.attributes))}f(o.body).bind("pageInserted",u);f(function(){f(k.selector).each(function(){f(this).scrollHorizontally(k.attributesToOptions(f(this),k.attributes))})});return{}})}function e(w,u){var v={};f.each(u,function(z,A){if(f.isFunction(A)){v[z]=A(w)}else{if(w.attr(A)!=g){v[z]=w.attr(A)}}});return v}f.fn.scrollHorizontally=function(u){u=f.extend(true,{},k,u||{});return this.each(function(){p(this,u)})};f.fn.scrollHorizontally.defaults=function(u){if(u!==g){k=f.extend(true,k,u)}return f.extend({},k)};f.fn.scrollHorizontally.defaultCSS=function(u){if(u!==g){h=f.extend(true,h,u)}return f.extend({},h)};function p(z,w){var u=f(z).data("jqt-horizontal-scroll-options",w).css("webkitTransform",r(w.defaultTransform,w.defaultOffset)),v=new l(u.css("webkitTransform"));f.each(w.events,function(A,B){z.addEventListener(A,B,false)});w.currentPosition=v.m41;w.parentWidth=u.parent().width();if(w.scrollBar&&w.scrollBar===true&&!w.scrollBarElement){w.scrollBarElement=f.isFunction(w.scrollBar)?w.scrollBar(u.parent(),"horizontal",w.scrollBarOptions||{}):b(u.parent(),"horizontal",w.scrollBarOptions||{})}}function a(C){var D=f(this),w=D.data("jqt-horizontal-scroll-options"),v,B=D.outerWidth(),A=D.parent().width(),z=-(B-A),u=A/6;w.parentWidth=A;if(!!w.ignoreTags&&f(C.target).is(w.ignoreTags)||C.targetTouches.length!==w.numberOfTouches){return null}v=new l(D.css("webkitTransform"));D.data("jqt-horizontal-scroll-current-event",{startLocation:C.touches[0][w.eventProperty],startPosition:v.m41,currentPosition:v.m41,startTime:C.timeStamp,moved:false,lastMoveTime:C.timeStamp,parentWidth:A,endPoint:z,minScroll:!w.bounce?0:u,maxScroll:!w.bounce?z:z-u,timingFunction:w.bounceTimingFunction});if(w.scrollBarElement){w.scrollBarElement.init(A,B)}w.setPosition(D,w,v.m41,"0");if(w.preventDefault){C.preventDefault();return false}else{return true}}function s(z){var B=f(this),w=B.data("jqt-horizontal-scroll-options"),A=B.data("jqt-horizontal-scroll-current-event"),v=A.lastMoveTime,C=A.startLocation-z.touches[0][w.eventProperty],u=A.startPosition-C;A.currentPosition=u;A.moved=true;A.lastMoveTime=z.timeStamp;if((A.lastMoveTime-v)>w.maxScrollTime){A.startTime=A.lastMoveTime}if(w.scrollBarElement&&!w.scrollBarElement.visible){w.scrollBarElement.show()}w.setPosition(B,w,A.currentPosition,0);if(w.preventDefault){z.preventDefault();return false}else{return true}}function d(v){var A=f(this),u=A.data("jqt-horizontal-scroll-options"),w=A.data("jqt-horizontal-scroll-current-event"),z,B;if(!w.moved){if(u.scrollBarElement){u.scrollBarElement.hide()}z=v.target;if(z.nodeType==3){z=z.parentNode}B=o.createEvent("MouseEvents");B.initEvent("click",true,true);z.dispatchEvent(B);if(u.preventDefault){v.preventDefault();v.stopPropagation();return false}}u.momentum(A,u,w,v);u.setPosition(A,u,w.currentPosition,w.duration);if(u.preventDefault){v.preventDefault();v.stopPropagation();return false}else{return true}}function i(z){var w=f(this),u=w.data("jqt-horizontal-scroll-options"),v=w.data("jqt-horizontal-scroll-current-event");if(v){if(v.currentPosition>0){v.currentPosition=0;u.setPosition(w,u,0,u.bounceSpeed)}else{if(v.currentPosition<v.endPoint){v.currentPosition=v.endPoint;u.setPosition(w,u,v.endPoint,u.bounceSpeed)}else{if(u.scrollBarElement){u.scrollBarElement.hide()}}}}else{if(u.scrollBarElement){u.scrollBarElement.hide()}}}function m(C,F,D,v){var z=Math.min(F.maxScrollTime,D.lastMoveTime-D.startTime),u=D.startPosition-D.currentPosition,A=Math.abs(u)/z,B=z*A*F.friction,w=Math.round(u*A),E=Math.round(D.currentPosition-w);if(D.currentPosition>0){E=0}else{if(D.currentPosition<D.endPoint){E=D.endPoint}else{if(E>D.minScroll){B=B*Math.abs(D.minScroll/E);E=D.minScroll}else{if(E<D.maxScroll){B=B*Math.abs(D.maxScroll/E);E=D.maxScroll}}}}D.momentum=E/D.currentPosition;D.currentPosition=E;D.duration=B}function t(v,u){return u.setPosition(v,u,0,u.defaultDuration)}function c(w,v,u,B,A){if(v.scrollBarElement){var z=(w.parent().width()-w.outerWidth());if(u>0){z+=Number(u)}v.scrollBarElement.scrollTo(v.scrollBarElement.maxScroll/z*u,r("{0}ms",B!==g?B:v.defaultDuration))}if(B!==g){w.css("webkitTransitionDuration",r("{0}ms",B))}if(A!==g){w.css("webkitTransitionTimingFunction",A)}v.currentPosition=u||0;return w.css("webkitTransform",r("translate3d({0}px, 0, 0)",v.currentPosition))}function r(v){var u=arguments;return v.replace(/\{(\d+)\}/g,function(z,w){return u[Number(w)+1]+""})}function b(v,w,u){if(!(this instanceof b)){return new b(v,w,u)}this.direction=w;this.bar=f(o.createElement("div")).addClass("scrollbar "+w).appendTo(v)[0]}b.prototype={direction:"horizontal",size:0,maxSize:0,maxScroll:0,visible:false,init:function(u,v){var w=this.direction=="horizontal"?this.bar.offsetWidth-this.bar.clientWidth:this.bar.offsetHeight-this.bar.clientHeight;this.maxSize=u-8;this.size=Math.round(this.maxSize*this.maxSize/v)+w;this.maxScroll=this.maxSize-this.size;this.bar.style[this.direction=="horizontal"?"width":"height"]=(this.size-w)+"px"},setPosition:function(u){u=this.direction=="horizontal"?"translate3d("+Math.round(u)+"px,0,0)":"translate3d(0,"+Math.round(u)+"px,0)";this.bar.style.webkitTransform=u},scrollTo:function(v,u){this.bar.style.webkitTransitionDuration=(u||"400ms")+",300ms";this.setPosition(v)},show:function(){this.visible=true;this.bar.style.opacity="1"},hide:function(){this.visible=false;this.bar.style.opacity="0"},remove:function(){this.bar.parentNode.removeChild(this.bar);return null}};f(function(){j.scrollTo(0,0);var u="",z=h,w=j.innerHeight>j.innerWidth?"portrait":"landscape",A=function(B,C){u+=B+":"+(f.isFunction(C)?C(z.variables):C)+";"},v=function(B,C){u+=B+"{";f.each(C,A);u+="}"};f.each(z.defaults,v);f.each(z[w],v);f(o.createElement("style")).attr({type:"text/css",media:"screen"}).html(u).appendTo("head");f(j).one("orientationchange",function(){setTimeout(function(){j.scrollTo(0,0);u="";f.each(z[j.innerHeight>j.innerWidth?"portrait":"landscape"],v);f(o.createElement("style")).attr({type:"text/css",media:"screen"}).html(u).appendTo("head")},30)})})})(jQuery);(function(b){if(b.jQTouch){b.jQTouch.addExtension(function a(){var i,f,h;function d(){return navigator.geolocation}function g(j){if(d()){h=j;navigator.geolocation.getCurrentPosition(c);return true}else{console.log("Device not capable of geo-location.");j(false);return false}}function c(j){i=j.coords.latitude;f=j.coords.longitude;if(h){h(e())}}function e(){if(i&&f){return{latitude:i,longitude:f}}else{console.log("No location available. Try calling updateLocation() first.");return false}}return{updateLocation:g,getLocation:e}})}})(jQuery);(function(b){if(b.jQTouch){b.jQTouch.addExtension(function a(){var c=[];c[0]="uncached";c[1]="idle";c[2]="checking";c[3]="downloading";c[4]="updateready";c[5]="obsolete";var d=window.applicationCache;window.addEventListener("cached",f,false);window.addEventListener("checking",f,false);window.addEventListener("downloading",f,false);window.addEventListener("error",f,false);window.addEventListener("noupdate",f,false);window.addEventListener("obsolete",f,false);window.addEventListener("progress",f,false);window.addEventListener("updateready",f,false);function f(m){var j,i,k,l;j=(h())?"yes":"no";i=c[d.status];k=m.type;l="online: "+j;l+=", event: "+k;l+=", status: "+i;if(k=="error"&&navigator.onLine){l+=" There was an unknown error, check your Cache Manifest."}console.log(l)}function h(){return navigator.onLine}if(!b("html").attr("manifest")){console.log("No Cache Manifest listed on the <html> tag.")}window.addEventListener("updateready",function(i){if(c[d.status]!="idle"){d.swapCache();console.log("Swapped/updated the Cache Manifest.")}},false);function e(){d.update()}function g(){setInterval(function(){d.update()},10000)}return{isOnline:h,checkForUpdates:e,autoCheckForUpdates:g}})}})(jQuery);
1
+ (function(a){a.jQTouch=function(u){var C,r=a("head"),K="",H=[],G=0,l={},i="",t="portrait",S=true,R=0,e=0,h=[],v={},j=351,M=a.jQTouch.prototype.extensions,Q=[],q="",D={addGlossToIcon:true,backSelector:".back, .cancel, .goback",cacheGetRequests:true,debug:false,fallback2dAnimation:"fade",fixedViewport:true,formSelector:"form",fullScreen:true,fullScreenClass:"fullscreen",hoverDelay:50,icon:null,icon4:null,moveThreshold:10,preloadImages:false,pressDelay:1000,startupScreen:null,statusBar:"default",submitSelector:".submit",touchSelector:"a, .touch",useAnimations:true,useFastTouch:true,animations:[{selector:".cube",name:"cubeleft",is3d:true},{selector:".cubeleft",name:"cubeleft",is3d:true},{selector:".cuberight",name:"cuberight",is3d:true},{selector:".dissolve",name:"fade",is3d:false},{selector:".fade",name:"fade",is3d:false},{selector:".flip",name:"flipleft",is3d:true},{selector:".flipleft",name:"flipleft",is3d:true},{selector:".flipright",name:"flipright",is3d:true},{selector:".pop",name:"pop",is3d:true},{selector:".slide",name:"slideleft",is3d:false},{selector:".slidedown",name:"slidedown",is3d:false},{selector:".slideleft",name:"slideleft",is3d:false},{selector:".slideright",name:"slideright",is3d:false},{selector:".slideup",name:"slideup",is3d:false},{selector:".swap",name:"swapleft",is3d:true},{selector:"#jqt > * > ul li a",name:"slideleft",is3d:false}]};function w(T){now=(new Date).getTime();delta=now-R;R=now;if(l.debug){if(T){console.log(delta+": "+T)}else{console.log(delta+": Called "+arguments.callee.caller.name)}}}function b(T){w();if(typeof(T.selector)==="string"&&typeof(T.name)==="string"){Q.push(T)}}function k(V,U,T){w();H.unshift({page:V,animation:U,hash:"#"+V.attr("id"),id:V.attr("id")})}function n(U){w();if(!S){w("ClickHandler handler aborted because tap is not ready");U.preventDefault();return false}var T=a(U.target);if(!T.is(h.join(", "))){var T=a(U.target).closest(h.join(", "))}if(T&&T.attr("href")&&!T.isExternalLink()){w("Need to prevent default click behavior");U.preventDefault()}else{w("No need to prevent default click behavior")}if(a.support.touch){w("Not converting click to a tap event because touch handler is on the job")}else{w("Converting click event to a tap event");a(U.target).trigger("tap",U)}}function c(Y,V,X,U){w();if(V.length===0){a.fn.unselect();w("Target element is missing.");return false}if(V.hasClass("current")){a.fn.unselect();w("You are already on the page you are trying to navigate to.");return false}a(":focus").blur();Y.trigger("pageAnimationStart",{direction:"out"});V.trigger("pageAnimationStart",{direction:"in"});if(a.support.animationEvents&&X&&l.useAnimations){S=false;if(!a.support.transform3d&&X.is3d){X.name=l.fallback2dAnimation}var T;if(U){if(X.name.indexOf("left")>0){T=X.name.replace(/left/,"right")}else{if(X.name.indexOf("right")>0){T=X.name.replace(/right/,"left")}else{if(X.name.indexOf("up")>0){T=X.name.replace(/up/,"down")}else{if(X.name.indexOf("down")>0){T=X.name.replace(/down/,"up")}else{T=X.name}}}}}else{T=X.name}Y.bind("webkitAnimationEnd",W);V.addClass(T+" in current");Y.addClass(T+" out")}else{V.addClass("current");W()}function W(Z){w();if(a.support.animationEvents&&X&&l.useAnimations){Y.unbind("webkitAnimationEnd",W);Y.removeClass(T+" out current");V.removeClass(T+" in")}else{Y.removeClass(T+" out current")}i=V;if(U){H.shift()}else{k(i,X)}Y.unselect();e=(new Date()).getTime();m(i.attr("id"));S=true;V.trigger("pageAnimationEnd",{direction:"in",animation:X});Y.trigger("pageAnimationEnd",{direction:"out",animation:X})}return true}function P(){w();return t}function g(){w();if(H.length<1){w("History is empty.")}if(H.length===1){w("You are on the first panel.")}var U=H[0],T=H[1];if(c(U.page,T.page,U.animation,true)){return v}else{w("Could not go back.");return false}}function L(X,Y,V){w();if(V){console.warn("The reverse parameter was sent to goTo() function, which is bad.")}var Z=H[0].page;if(typeof Y==="string"){for(var W=0,T=Q.length;W<T;W++){if(Q[W].name===Y){Y=Q[W];break}}}if(typeof(X)==="string"){var U=a(X);if(U.length<1){d(X,{animation:Y});return}else{X=U}}if(c(Z,X,Y,V)){return v}else{w("Could not animate pages.");return false}}function O(T){w();if(H[1]===undefined){w("There is no previous page in history")}else{if(location.hash===H[1].hash){g()}else{w(location.hash+" !== "+H[1].hash)}}}function N(T){w();l=a.extend({},D,T);if(l.preloadImages){for(var U=l.preloadImages.length-1;U>=0;U--){(new Image()).src=l.preloadImages[U]}}if(l.icon||l.icon4){var V,W;if(l.icon4&&window.devicePixelRatio&&window.devicePixelRatio===2){W=l.icon4}else{if(l.icon){W=l.icon}else{W=false}}if(W){V=(l.addGlossToIcon)?"":"-precomposed";q+='<link rel="apple-touch-icon'+V+'" href="'+W+'" />'}}if(l.startupScreen){q+='<link rel="apple-touch-startup-image" href="'+l.startupScreen+'" />'}if(l.fixedViewport){q+='<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;"/>'}if(l.fullScreen){q+='<meta name="apple-mobile-web-app-capable" content="yes" />';if(l.statusBar){q+='<meta name="apple-mobile-web-app-status-bar-style" content="'+l.statusBar+'" />'}}if(q){r.prepend(q)}}function A(T,U){w();var V=null;a(T).each(function(X,Y){var W=a(this);if(!W.attr("id")){W.attr("id","page-"+(++G))}a("#"+W.attr("id")).remove();C.trigger("pageInserted",{page:W.appendTo(C)});if(W.hasClass("current")||!V){V=W}});if(V!==null){L(V,U);return V}else{return false}}function z(T){var U=(new Date()).getTime()-e;if(U<j){return false}}function f(){w();t=Math.abs(window.orientation)==90?"landscape":"portrait";C.removeClass("portrait landscape").addClass(t).trigger("turn",{orientation:t})}function m(T){w();T=T.replace(/^#/,""),window.onhashchange=null;location.hash="#"+T;window.onhashchange=O}function d(T,U){w();var W={data:null,method:"GET",animation:null,callback:null,$referrer:null};var V=a.extend({},W,U);if(T!="#"){a.ajax({url:T,data:V.data,type:V.method,success:function(X,Z){var Y=A(X,V.animation);if(Y){if(V.method=="GET"&&l.cacheGetRequests===true&&V.$referrer){V.$referrer.attr("href","#"+Y.attr("id"))}if(V.callback){V.callback(true)}}},error:function(X){if(V.$referrer){V.$referrer.unselect()}if(V.callback){V.callback(false)}}})}else{if(V.$referrer){V.$referrer.unselect()}}}function p(U,V){w();a(":focus").blur();U.preventDefault();var T=(typeof(U)==="string")?a(U).eq(0):(U.target?a(U.target):a(U));w(T.attr("action"));if(T.length&&T.is(l.formSelector)&&T.attr("action")){d(T.attr("action"),{data:T.serialize(),method:T.attr("method")||"POST",animation:Q[0]||null,callback:V});return false}return false}function J(V){w();var U=V.closest("form");if(U.length===0){w("No parent form found")}else{w("About to submit parent form");var T=a.Event("submit");T.preventDefault();U.trigger(T);return false}return true}function o(){w();return(typeof WebKitAnimationEvent!="undefined")}function E(){w();return(typeof WebKitCSSMatrix!="undefined")}function I(){w();if(!l.useFastTouch){return false}if(typeof TouchEvent!="undefined"){if(window.navigator.userAgent.indexOf("Mobile")>-1){return true}else{return false}}else{return false}}function B(){w();var V,U,W,X,T;V=document.getElementsByTagName("head")[0];U=document.body;W=document.createElement("style");W.textContent="@media (transform-3d),(-o-transform-3d),(-moz-transform-3d),(-ms-transform-3d),(-webkit-transform-3d),(modernizr){#jqtTestFor3dSupport{height:3px}}";X=document.createElement("div");X.id="jqtTestFor3dSupport";V.appendChild(W);U.appendChild(X);T=X.offsetHeight===3;W.parentNode.removeChild(W);X.parentNode.removeChild(X);return T}function F(Z){w();if(!S){w("Tap is not ready");return false}var V=a(Z.target);if(!V.is(h.join(", "))){var V=a(Z.target).closest(h.join(", "))}if(!V.length||!V.attr("href")){w("Could not find a link related to tapped element");return false}var Y=V.attr("target"),X=V.attr("hash"),W=null;if(V.isExternalLink()){V.unselect();return true}else{if(V.is(l.backSelector)){g(X)}else{if(V.is(l.submitSelector)){J(V)}else{if(Y==="_webapp"){window.location=V.attr("href");return false}else{if(V.attr("href")==="#"){V.unselect();return true}else{for(var U=0,T=Q.length;U<T;U++){if(V.is(Q[U].selector)){W=Q[U];break}}if(!W){console.warn("Animation could not be found. Using slideleft.");W="slideleft"}if(X&&X!=="#"){V.addClass("active");L(a(X).data("referrer",V),W,a(this).hasClass("reverse"));return false}else{V.addClass("loading active");d(V.attr("href"),{animation:W,callback:function(){V.removeClass("loading");setTimeout(a.fn.unselect,250,V)},$referrer:V});return false}}}}}}}function s(ae){w();if(!S){w("TouchStart handler aborted because tap is not ready");ae.preventDefault();return false}var ah=a(ae.target);if(!ah.length){w("Could not find target of touchstart event.");return}var U=(new Date).getTime(),T=null,V=null,aa,ac,ab,Z=0,X=0,ad=0;if(event.changedTouches&&event.changedTouches.length){aa=event.changedTouches[0];ac=aa.pageX;ab=aa.pageY}ah.bind("touchmove",Y).bind("touchend",af).bind("touchcancel",W);T=setTimeout(function(){ah.makeActive()},l.hoverDelay);V=setTimeout(function(){ah.unbind("touchmove",Y).unbind("touchend",af).unbind("touchcancel",W);ah.unselect();clearTimeout(T);ah.trigger("press")},l.pressDelay);function W(ai){w();clearTimeout(T);ah.unselect();ah.unbind("touchmove",Y).unbind("touchend",af).unbind("touchcancel",W)}function af(ai){w();ah.unbind("touchend",af).unbind("touchcancel",W);clearTimeout(T);clearTimeout(V);if(Math.abs(Z)<l.moveThreshold&&Math.abs(X)<l.moveThreshold&&ad<l.pressDelay){ah.trigger("tap",ai)}else{ah.unselect()}}function Y(al){ag();var ak=Math.abs(Z);var ai=Math.abs(X);var aj;if(ak>ai&&(ak>35)&&ad<1000){if(Z<0){aj="left"}else{aj="right"}ah.unbind("touchmove",Y).unbind("touchend",af).unbind("touchcancel",W);ah.trigger("swipe",{direction:aj,deltaX:Z,deltaY:X})}ah.unselect();clearTimeout(T);if(ak>l.moveThreshold||ai>l.moveThreshold){clearTimeout(V)}}function ag(){var ai=event.changedTouches[0]||null;Z=ai.pageX-ac;X=ai.pageY-ab;ad=(new Date).getTime()-U}}N(u);a(document).ready(function(){a.support.animationEvents=o();a.support.cssMatrix=E();a.support.touch=I();a.support.transform3d=B();if(!a.support.touch){console.warn("This device does not support touch interaction, or it has been deactivated by the developer. Some features might be unavailable.")}if(!a.support.transform3d){console.warn("This device does not support 3d animation. 2d animations will be used instead.")}a.fn.isExternalLink=function(){var X=a(this);return(X.attr("target")=="_blank"||X.attr("rel")=="external"||X.is('a[href^="http://maps.google.com"], a[href^="mailto:"], a[href^="tel:"], a[href^="javascript:"], a[href*="youtube.com/v"], a[href*="youtube.com/watch"]'))};a.fn.makeActive=function(){return a(this).addClass("active")};a.fn.press=function(X){if(a.isFunction(X)){return a(this).live("press",X)}else{return a(this).trigger("press")}};a.fn.swipe=function(X){if(a.isFunction(X)){return a(this).live("swipe",X)}else{return a(this).trigger("swipe")}};a.fn.tap=function(X){if(a.isFunction(X)){return a(this).live("tap",X)}else{return a(this).trigger("tap")}};a.fn.unselect=function(X){if(X){X.removeClass("active")}else{a(".active").removeClass("active")}};for(var U=0,T=M.length;U<T;U++){var V=M[U];if(a.isFunction(V)){a.extend(v,V(v))}}if(l.cubeSelector){console.warn("NOTE: cubeSelector has been deprecated. Please use cubeleftSelector instead.");l.cubeleftSelector=l.cubeSelector}if(l.flipSelector){console.warn("NOTE: flipSelector has been deprecated. Please use flipleftSelector instead.");l.flipleftSelector=l.flipSelector}if(l.slideSelector){console.warn("NOTE: slideSelector has been deprecated. Please use slideleftSelector instead.");l.slideleftSelector=l.slideSelector}for(var U=0,T=D.animations.length;U<T;U++){var W=D.animations[U];if(l[W.name+"Selector"]!==undefined){W.selector=l[W.name+"Selector"]}b(W)}h.push("input");h.push(l.touchSelector);h.push(l.backSelector);h.push(l.submitSelector);a(h.join(", ")).css("-webkit-touch-callout","none");C=a("#jqt");if(C.length===0){console.warn('Could not find an element with the id "jqt", so the body id has been set to "jqt". If you are having any problems, wrapping your panels in a div with the id "jqt" might help.');C=a("body").attr("id","jqt")}if(a.support.transform3d){C.addClass("supports3d")}if(l.fullScreenClass&&window.navigator.standalone==true){C.addClass(l.fullScreenClass+" "+l.statusBar)}C.bind("touchstart",s).bind("click",n).bind("mousedown",z).bind("orientationchange",f).bind("submit",p).bind("tap",F).trigger("orientationchange");if(location.hash.length){location.replace(location.href.split("#")[0])}if(a("#jqt > .current").length==0){i=a("#jqt > *:first")}else{i=a("#jqt > .current:first");a("#jqt > .current").removeClass("current")}a(i).addClass("current");K=a(i).attr("id");if(history.replaceState!==undefined){history.replaceState(null,null,"#"+K)}else{m(K)}k(i);scrollTo(0,0)});v={animations:Q,hist:H,settings:l,support:a.support,getOrientation:P,goBack:g,goTo:L,addAnimation:b,submitForm:p};return v};a.jQTouch.prototype.extensions=[];a.jQTouch.addExtension=function(b){a.jQTouch.prototype.extensions.push(b)}})(jQuery);(function(a){a.fn.transition=function(c,b){return this.each(function(){var e=a(this);var h={speed:"300ms",callback:null,ease:"ease-in-out"};var g=a.extend({},h,b);if(g.speed===0){e.css(c);window.setTimeout(g.callback,0)}else{if(a.browser.safari){var f=[];for(var d in c){f.push(d)}e.css({webkitTransitionProperty:f.join(", "),webkitTransitionDuration:g.speed,webkitTransitionTimingFunction:g.ease});if(g.callback){e.one("webkitTransitionEnd",g.callback)}setTimeout(function(i){i.css(c)},0,e)}else{e.animate(c,g.speed,g.callback)}}})}})(jQuery);var SpinningWheel={cellHeight:44,friction:0.003,slotData:[],handleEvent:function(a){if(a.type=="touchstart"){this.lockScreen(a);if(a.currentTarget.id=="sw-cancel"||a.currentTarget.id=="sw-done"){this.tapDown(a)}else{if(a.currentTarget.id=="sw-frame"){this.scrollStart(a)}}}else{if(a.type=="touchmove"){this.lockScreen(a);if(a.currentTarget.id=="sw-cancel"||a.currentTarget.id=="sw-done"){this.tapCancel(a)}else{if(a.currentTarget.id=="sw-frame"){this.scrollMove(a)}}}else{if(a.type=="touchend"){if(a.currentTarget.id=="sw-cancel"||a.currentTarget.id=="sw-done"){this.tapUp(a)}else{if(a.currentTarget.id=="sw-frame"){this.scrollEnd(a)}}}else{if(a.type=="webkitTransitionEnd"){if(a.target.id=="sw-wrapper"){}else{this.backWithinBoundaries(a)}}else{if(a.type=="orientationchange"){this.onOrientationChange(a)}else{if(a.type=="scroll"){this.onScroll(a)}}}}}}},onOrientationChange:function(a){window.scrollTo(0,0);this.swWrapper.style.top=window.innerHeight+window.pageYOffset+"px";this.calculateSlotsWidth()},onScroll:function(a){this.swWrapper.style.top=window.innerHeight+window.pageYOffset+"px"},lockScreen:function(a){a.preventDefault();a.stopPropagation()},reset:function(){this.slotEl=[];this.activeSlot=null;this.swWrapper=undefined;this.swSlotWrapper=undefined;this.swSlots=undefined;this.swFrame=undefined},calculateSlotsWidth:function(){var b=this.swSlots.getElementsByTagName("div");for(var a=0;a<b.length;a+=1){this.slotEl[a].slotWidth=b[a].offsetWidth}},create:function(){var d,a,b,c,e;this.reset();e=document.createElement("div");e.id="sw-wrapper";e.style.top=window.innerHeight+window.pageYOffset+"px";e.style.webkitTransitionProperty="-webkit-transform";e.innerHTML='<div id="sw-slots-wrapper"><div id="sw-slots"></div></div><div id="sw-frame"></div>';document.body.appendChild(e);this.swWrapper=e;this.swSlotWrapper=document.getElementById("sw-slots-wrapper");this.swSlots=document.getElementById("sw-slots");this.swFrame=document.getElementById("sw-frame");for(a=0;a<this.slotData.length;a+=1){c=document.createElement("ul");b="";for(d in this.slotData[a].values){b+="<li>"+this.slotData[a].values[d]+"</li>"}c.innerHTML=b;e=document.createElement("div");e.className=this.slotData[a].style;e.appendChild(c);this.swSlots.appendChild(e);c.slotPosition=a;c.slotYPosition=0;c.slotWidth=0;c.slotMaxScroll=this.swSlotWrapper.clientHeight-c.clientHeight-86;c.style.webkitTransitionTimingFunction="cubic-bezier(0, 0, 0.2, 1)";this.slotEl.push(c);if(this.slotData[a].defaultValue){this.scrollToValue(a,this.slotData[a].defaultValue)}}this.calculateSlotsWidth();document.addEventListener("touchmove",this,false);window.addEventListener("orientationchange",this,true);window.addEventListener("scroll",this,true);document.getElementById("sw-done").addEventListener("touchstart",this,false);this.swFrame.addEventListener("touchstart",this,false)},open:function(){this.create();this.swWrapper.style.webkitTransitionTimingFunction="ease-out";this.swWrapper.style.webkitTransitionDuration="400ms";this.swWrapper.style.webkitTransform="translate3d(0, -210px, 0)"},destroy:function(){this.swWrapper.removeEventListener("webkitTransitionEnd",this,false);this.swFrame.removeEventListener("touchstart",this,false);document.getElementById("sw-done").removeEventListener("touchstart",this,false);document.removeEventListener("touchmove",this,false);window.removeEventListener("orientationchange",this,true);window.removeEventListener("scroll",this,true);this.slotData=[];this.cancelAction=function(){return false};this.cancelDone=function(){return true};this.reset();document.body.removeChild(document.getElementById("sw-wrapper"))},close:function(){this.swWrapper.style.webkitTransitionTimingFunction="ease-in";this.swWrapper.style.webkitTransitionDuration="400ms";this.swWrapper.style.webkitTransform="translate3d(0, 0, 0)";this.swWrapper.addEventListener("webkitTransitionEnd",this,false)},addSlot:function(b,d,a){if(!d){d=""}d=d.split(" ");for(var c=0;c<d.length;c+=1){d[c]="sw-"+d[c]}d=d.join(" ");var e={values:b,style:d,defaultValue:a};this.slotData.push(e)},getSelectedValues:function(){var c,f,d,a,e=[],b=[];for(d in this.slotEl){this.slotEl[d].removeEventListener("webkitTransitionEnd",this,false);this.slotEl[d].style.webkitTransitionDuration="0";if(this.slotEl[d].slotYPosition>0){this.setPosition(d,0)}else{if(this.slotEl[d].slotYPosition<this.slotEl[d].slotMaxScroll){this.setPosition(d,this.slotEl[d].slotMaxScroll)}}c=-Math.round(this.slotEl[d].slotYPosition/this.cellHeight);f=0;for(a in this.slotData[d].values){if(f==c){e.push(a);b.push(this.slotData[d].values[a]);break}f+=1}}return{keys:e,values:b}},setPosition:function(b,a){this.slotEl[b].slotYPosition=a;this.slotEl[b].style.webkitTransform="translate3d(0, "+a+"px, 0)"},scrollStart:function(c){var d=c.targetTouches[0].clientX-this.swSlots.offsetLeft;var f=0;for(var a=0;a<this.slotEl.length;a+=1){f+=this.slotEl[a].slotWidth;if(d<f){this.activeSlot=a;break}}if(this.slotData[this.activeSlot].style.match("readonly")){this.swFrame.removeEventListener("touchmove",this,false);this.swFrame.removeEventListener("touchend",this,false);return false}this.slotEl[this.activeSlot].removeEventListener("webkitTransitionEnd",this,false);this.slotEl[this.activeSlot].style.webkitTransitionDuration="0";var b=window.getComputedStyle(this.slotEl[this.activeSlot]).webkitTransform;b=new WebKitCSSMatrix(b).m42;if(b!=this.slotEl[this.activeSlot].slotYPosition){this.setPosition(this.activeSlot,b)}this.startY=c.targetTouches[0].clientY;this.scrollStartY=this.slotEl[this.activeSlot].slotYPosition;this.scrollStartTime=c.timeStamp;this.swFrame.addEventListener("touchmove",this,false);this.swFrame.addEventListener("touchend",this,false);return true},scrollMove:function(b){var a=b.targetTouches[0].clientY-this.startY;if(this.slotEl[this.activeSlot].slotYPosition>0||this.slotEl[this.activeSlot].slotYPosition<this.slotEl[this.activeSlot].slotMaxScroll){a/=2}this.setPosition(this.activeSlot,this.slotEl[this.activeSlot].slotYPosition+a);this.startY=b.targetTouches[0].clientY;if(b.timeStamp-this.scrollStartTime>80){this.scrollStartY=this.slotEl[this.activeSlot].slotYPosition;this.scrollStartTime=b.timeStamp}},scrollEnd:function(f){this.swFrame.removeEventListener("touchmove",this,false);this.swFrame.removeEventListener("touchend",this,false);if(this.slotEl[this.activeSlot].slotYPosition>0||this.slotEl[this.activeSlot].slotYPosition<this.slotEl[this.activeSlot].slotMaxScroll){this.scrollTo(this.activeSlot,this.slotEl[this.activeSlot].slotYPosition>0?0:this.slotEl[this.activeSlot].slotMaxScroll);return false}var b=this.slotEl[this.activeSlot].slotYPosition-this.scrollStartY;if(b<this.cellHeight/1.5&&b>-this.cellHeight/1.5){if(this.slotEl[this.activeSlot].slotYPosition%this.cellHeight){this.scrollTo(this.activeSlot,Math.round(this.slotEl[this.activeSlot].slotYPosition/this.cellHeight)*this.cellHeight,"100ms")}return false}var g=f.timeStamp-this.scrollStartTime;var a=(2*b/g)/this.friction;var d=(this.friction/2)*(a*a);if(a<0){a=-a;d=-d}var c=this.slotEl[this.activeSlot].slotYPosition+d;if(c>0){c/=2;a/=3;if(c>this.swSlotWrapper.clientHeight/4){c=this.swSlotWrapper.clientHeight/4}}else{if(c<this.slotEl[this.activeSlot].slotMaxScroll){c=(c-this.slotEl[this.activeSlot].slotMaxScroll)/2+this.slotEl[this.activeSlot].slotMaxScroll;a/=3;if(c<this.slotEl[this.activeSlot].slotMaxScroll-this.swSlotWrapper.clientHeight/4){c=this.slotEl[this.activeSlot].slotMaxScroll-this.swSlotWrapper.clientHeight/4}}else{c=Math.round(c/this.cellHeight)*this.cellHeight}}this.scrollTo(this.activeSlot,Math.round(c),Math.round(a)+"ms");return true},scrollTo:function(c,a,b){this.slotEl[c].style.webkitTransitionDuration=b?b:"100ms";this.setPosition(c,a?a:0);if(this.slotEl[c].slotYPosition>0||this.slotEl[c].slotYPosition<this.slotEl[c].slotMaxScroll){this.slotEl[c].addEventListener("webkitTransitionEnd",this,false)}},scrollToValue:function(e,d){var c,b,a;this.slotEl[e].removeEventListener("webkitTransitionEnd",this,false);this.slotEl[e].style.webkitTransitionDuration="0";b=0;for(a in this.slotData[e].values){if(a==d){c=b*this.cellHeight;this.setPosition(e,c);break}b-=1}},backWithinBoundaries:function(a){a.target.removeEventListener("webkitTransitionEnd",this,false);this.scrollTo(a.target.slotPosition,a.target.slotYPosition>0?0:a.target.slotMaxScroll,"150ms");return false},tapDown:function(a){a.currentTarget.addEventListener("touchmove",this,false);a.currentTarget.addEventListener("touchend",this,false);a.currentTarget.className="sw-pressed"},tapCancel:function(a){a.currentTarget.removeEventListener("touchmove",this,false);a.currentTarget.removeEventListener("touchend",this,false);a.currentTarget.className=""},tapUp:function(a){this.tapCancel(a);if(a.currentTarget.id=="sw-cancel"){this.cancelAction()}else{this.doneAction()}},setCancelAction:function(a){this.cancelAction=a},setDoneAction:function(a){this.doneAction=a},cancelAction:function(){return false},cancelDone:function(){return true}};(function(){var o=this;var j=Array();var p=Array();function f(u,v){for(var t in v){u[t]=v[t]}}function h(v,t,u){v.style.width=t.toString()+"px";v.style.height=u.toString()+"px"}function s(u,t,v){u.style.left=Math.round(t).toString()+"px";u.style.top=Math.round(v).toString()+"px"}TrayController=function(){return this};TrayController.prototype.init=function(t){this.currentX=0;this.elem=t};TrayController.prototype.touchstart=function(t){this.startX=t.touches[0].pageX-this.currentX;this.touchMoved=false;window.addEventListener("touchmove",this,true);window.addEventListener("touchend",this,true);this.elem.style.webkitTransitionDuration="0s"};TrayController.prototype.touchmove=function(t){this.touchMoved=true;this.lastX=this.currentX;this.lastMoveTime=new Date();this.currentX=event.touches[0].pageX-this.startX;this.delegate.update(this.currentX)};TrayController.prototype.touchend=function(u){window.removeEventListener("touchmove",this,true);window.removeEventListener("touchend",this,true);this.elem.style.webkitTransitionDuration="0.4s";if(this.touchMoved){var v=this.currentX-this.lastX;var t=(new Date())-this.lastMoveTime+1;this.currentX=this.currentX+v*200/t;this.delegate.updateTouchEnd(this)}else{this.delegate.clicked(this.currentX)}};TrayController.prototype.handleEvent=function(t){this[t.type](t);t.preventDefault()};const e=150;const n=e/2;const d=70;const a=n/2;const g=e;const b=e/3;const k="rotateY("+(-d)+"deg)";const c="rotateY("+d+"deg)";const i="translateZ("+g+"px)";FlowDelegate=function(){this.cells=new Array();this.transforms=new Array()};FlowDelegate.prototype.init=function(t){this.elem=t};FlowDelegate.prototype.updateTouchEnd=function(t){this.lastFocus=undefined;var u=this.getFocusedCell(t.currentX);t.currentX=-u*n;this.update(t.currentX)};FlowDelegate.prototype.clicked=function(u){var v=-Math.round(u/n);var t=this.cells[v];galleryCell=v};FlowDelegate.prototype.getFocusedCell=function(t){var u=-Math.round(t/n);return Math.min(Math.max(u,0),this.cells.length-1)};FlowDelegate.prototype.transformForCell=function(u,w,z){var t=(w*n);var v=t+z;if((v<a)&&(v>=-a)){return i+" translateX("+t+"px)"}else{if(v>0){return"translateX("+(t+b)+"px) "+k}else{return"translateX("+(t-b)+"px) "+c}}};FlowDelegate.prototype.setTransformForCell=function(t,v,u){if(this.transforms[v]!=u){t.style.webkitTransform=u;this.transforms[v]=u}};FlowDelegate.prototype.update=function(u){this.elem.style.webkitTransform="translateX("+(u)+"px)";for(var v in this.cells){var t=this.cells[v];this.setTransformForCell(t,v,this.transformForCell(t,v,u));v+=1}};var l=new TrayController();var q=new FlowDelegate();o.zflow=function(v,u){var z=document.querySelector(u);l.init(z);q.init(z);l.delegate=q;var t={top:Math.round(-e*0.65)+"px",left:Math.round(-e/2)+"px",width:e+"px",height:Math.round(e*1.5)+"px",opacity:0,};var w=0;function A(){var B=document.createElement("div");var F=document.createElement("img");var D=document.createElement("canvas");var E=document.createElement("a");var C=document.createElement("caption");B.className="cell";B.appendChild(E);E.appendChild(F);B.appendChild(D);B.appendChild(C);F.src=v[w];j[w]=v[w];E.href="show_image?fName="+v[w];E.className="slide-right";o.afnc=function(){var G=F.width;var J=F.height;var H=Math.min(e/J,e/G);G*=H;J*=H;h(F,G,J);f(B.style,t);s(F,(e-G)/2,e-J);s(D,(e-G)/2,e);s(C,(e-G)/2,e+10);m(F,G,J,D);var I=v[w].match(/(.*)[\/\\]([^\/\\]+)\.\w+$/)[2];I=I.replace(/_/g," ");I=I.replace(/(^|\s)([a-z])/g,function(K,M,L){return M+L.toUpperCase()});p[w]=I;r(C,G,w);q.setTransformForCell(B,q.cells.length,q.transformForCell(B,q.cells.length,l.currentX));q.cells.push(B);z.appendChild(B);B.style.opacity=1;if(w<(v.length-1)){w++;A()}else{window.setTimeout(function(){window.scrollTo(0,0)},100);galleryInit=1}};F.addEventListener("load",afnc,true)}A();z.addEventListener("touchstart",l,false)};o.zflowCleanup=function(t){var u=document.querySelector(t);if(u){if(u.childNodes.length>0){q.transforms.length=0;q.cells.length=0;while(u.hasChildNodes()){var v=u.childNodes[0].childNodes[0].childNodes[0];v.removeEventListener("load",afnc,true);u.removeChild(u.childNodes[0])}var w=document.getElementById("gallery");if(w){w.parentNode.removeChild(w);galleryInit=0;galleryCell=0}}}};o.zflowGetImageSource=function(t,u){var v=document.querySelector(t);var w="";if(v){if(v.childNodes.length>0){while(v.hasChildNodes()){w=v.childNodes[0].childNodes[0].childNodes[u].src}}}return w};function r(u,t,v){u.width=t;u.innerHTML=p[v]}function m(z,u,A,v){v.width=u;v.height=A/2;var t=v.getContext("2d");t.save();t.translate(0,A-1);t.scale(1,-1);t.drawImage(z,0,0,u,A);t.restore();t.globalCompositeOperation="destination-out";var w=t.createLinearGradient(0,0,0,A/2);w.addColorStop(1,"rgba(255, 255, 255, 1.0)");w.addColorStop(0,"rgba(255, 255, 255, 0.5)");t.fillStyle=w;t.fillRect(0,0,u,A/2)}})();var now=new Date();var url_month="month";var url_event="events.htm";function getCalendar(e,c,b){url_month=e;url_event=c;var f=b.getDate();var a=b.getMonth()+1;var g=b.getFullYear();$.get(url_month,{month:a,year:g},function(d){$("#ical").empty();$(d).appendTo("#ical");setBindings();setToday();setSelectedAndLoadEvents(b)})}function getEvents(b){var c=b.getDate();var a=b.getMonth()+1;var e=b.getFullYear();$.get(url_event,{day:c,month:a,year:e},function(d){$("#ical .events").empty();$(d).appendTo("#ical .events")})}function getNoEvents(){var a="<li class='no-event'>No Events</li>";$("#ical .events").empty();$(a).appendTo("#ical .events")}function setBindings(){$("#ical td").bind("click",function(){var b=$(this).attr("class");var a=getClickedDate($(this));RemoveSelectedCell();setToday();if(b.indexOf("date_has_event")!=-1||b.indexOf("today_date_has_event")!=-1){$(this).attr("class","selected_date_has_event");getEvents(a)}if(b==""||b.indexOf("today")!=-1){$(this).attr("class","selected");getNoEvents()}if(b.indexOf("prevmonth")!=-1||b.indexOf("nextmonth")!=-1){getCalendar(url,a)}});$("#ical .bottom-bar .bottom-bar-today").bind("click",function(){getCalendar(url_month,url_event,now)});$("#ical .goto-prevmonth").bind("click",function(){loadPrevNextMonth(-1)});$("#ical .goto-nextmonth").bind("click",function(){loadPrevNextMonth(1)})}function RemoveSelectedCell(){$("#ical .selected_date_has_event").removeClass("selected_date_has_event");$("#ical .selected").removeClass("selected")}function getClickedDate(b){var c=$(b).find("input").val();var a=getDateFromHiddenField(c);return a}function loadPrevNextMonth(c){var b=$("#ical .selected").text();if(b==""){b=$("#ical .selected_date_has_event").text()}var a=parseInt($("#ical > #month").val());var e=$("#ical > #year").val();var d=new Date(e,a-1,b);if(c==1){d.nextMonth()}else{d.prevMonth()}getCalendar(url_month,url_event,d)}function setToday(){$("#ical :hidden").each(function(c){var a=getDateFromHiddenField($(this).val());if(!isNaN(a)){var h=now;var j=now.getDate();var i=a.getDate();var g=now.getMonth();var f=a.getMonth();var e=now.getFullYear();var d=a.getFullYear();if(now.getDate()==a.getDate()&&now.getMonth()==a.getMonth()&&now.getFullYear()==a.getFullYear()){var b=$(this).closest("td");if($(b).attr("class")=="date_has_event"){$(b).attr("class","today_date_has_event")}else{$(b).attr("class","today")}}}})}function getDateFromHiddenField(c){var b=c.split("-");return new Date(b[0],b[1]-1,b[2])}function setSelectedAndLoadEvents(a){RemoveSelectedCell();$("#ical td").each(function(c){var d=$(this).attr("class");var b=getClickedDate($(this));if((d!="prevmonth"&&d!="nextmonth")&&a.getDate()==b.getDate()&&a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()){if(d=="date_has_event"){$(this).attr("class","selected_date_has_event");getEvents(a)}else{$(this).attr("class","selected");getNoEvents()}}});setToday()}function trim(b,a){return ltrim(rtrim(b,a),a)}function ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"")}function rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"")}function dateAddExtention(c,a){var b=new String();c=c.toLowerCase();if(isNaN(a)){throw"The second parameter must be a number. \n You passed: "+a;return false}a=new Number(a);switch(c.toLowerCase()){case"yyyy":this.setFullYear(this.getFullYear()+a);break;case"q":this.setMonth(this.getMonth()+(a*3));break;case"m":this.setMonth(this.getMonth()+a);break;case"y":case"d":case"w":this.setDate(this.getDate()+a);break;case"ww":this.setDate(this.getDate()+(a*7));break;case"h":this.setHours(this.getHours()+a);break;case"n":this.setMinutes(this.getMinutes()+a);break;case"s":this.setSeconds(this.getSeconds()+a);break;case"ms":this.setMilliseconds(this.getMilliseconds()+a);break;default:throw"The first parameter must be a string from this list: \nyyyy, q, m, y, d, w, ww, h, n, s, or ms. You passed: "+c;return false}return this}Date.prototype.dateAdd=dateAddExtention;function prevMonth(){var a=this.getMonth();this.setMonth(a-1);if(this.getMonth()!=a-1&&(this.getMonth()!=11||(a==11&&this.getDate()==1))){this.setDate(0)}}function nextMonth(){var a=this.getMonth();this.setMonth(a+1);if(this.getMonth()!=a+1&&this.getMonth()!=0){this.setDate(0)}}Date.prototype.nextMonth=nextMonth;Date.prototype.prevMonth=prevMonth;(function(c){c.fn.drag=function(f,e,d){if(e){this.bind("dragstart",f)}if(d){this.bind("dragend",d)}return !f?this.trigger("mousedown",{which:1}):this.bind("drag",e?e:f)};var b=c.event.special.drag={distance:0,setup:function(d){d=c.extend({distance:b.distance},d||{});c.event.add(this,"mousedown",b.handler,d)},teardown:function(){c.event.remove(this,"mousedown",b.handler);if(this==b.dragging){b.dragging=b.proxy=null}a(this,true)},handler:function(e){var d;if(e.data.elem){e.dragTarget=e.data.elem;e.dragProxy=b.proxy||e.dragTarget;e.cursorOffsetX=e.data.x-e.data.left;e.cursorOffsetY=e.data.y-e.data.top;e.offsetX=e.pageX-e.cursorOffsetX;e.offsetY=e.pageY-e.cursorOffsetY}switch(e.type){case !b.dragging&&e.which==1&&"mousedown":c.extend(e.data,c(this).offset(),{x:e.pageX,y:e.pageY,elem:this,dist2:Math.pow(e.data.distance,2)});c.event.add(document.body,"mousemove mouseup",b.handler,e.data);a(this,false);return false;case !b.dragging&&"mousemove":if(Math.pow(e.pageX-e.data.x,2)+Math.pow(e.pageY-e.data.y,2)<e.data.dist2){break}b.dragging=e.dragTarget;e.type="dragstart";d=c.event.handle.call(b.dragging,e);b.proxy=c(d)[0]||b.dragging;if(d!==false){break}a(b.dragging,true);b.dragging=b.proxy=null;case"mousemove":if(b.dragging){e.type="drag";d=c.event.handle.call(b.dragging,e);if(c.event.special.drop){c.event.special.drop.allowed=(d!==false);c.event.special.drop.handler(e)}if(d!==false){break}e.type="mouseup"}case"mouseup":c.event.remove(document.body,"mousemove mouseup",b.handler);if(b.dragging){if(c.event.special.drop){c.event.special.drop.handler(e)}e.type="dragend";c.event.handle.call(b.dragging,e);a(b.dragging,true);b.dragging=b.proxy=null;e.data={}}break}}};function a(e,d){if(!e){return}e.unselectable=d?"off":"on";e.onselectstart=function(){return d};if(e.style){e.style.MozUserSelect=d?"":"none"}}})(jQuery);(function(b){b.fn.drop=function(e,d,c){if(d){this.bind("dropstart",e)}if(c){this.bind("dropend",c)}return !e?this.trigger("drop"):this.bind("drop",d?d:e)};b.dropManage=function(c){b.extend(a,{filter:"*",data:[],tolerance:null},c||{});return a.$elements.filter(a.filter).each(function(d){a.data[d]=a.locate(this)})};var a=b.event.special.drop={delay:100,mode:"intersect",$elements:b([]),data:[],setup:function(){a.$elements=a.$elements.add(this);a.data[a.data.length]=a.locate(this)},teardown:function(){var c=this;a.$elements=a.$elements.not(this);a.data=b.grep(a.data,function(d){return(d.elem!==c)})},handler:function(d){var c=null,e;d.dropTarget=a.dropping||undefined;if(a.data.length&&d.dragTarget){switch(d.type){case"drag":a.event=d;if(!a.timer){a.timer=setTimeout(a.tolerate,20)}break;case"mouseup":a.timer=clearTimeout(a.timer);if(!a.dropping){break}if(a.allowed){d.type="drop";e=b.event.handle.call(a.dropping,d)}c=false;case a.dropping&&"dropstart":d.type="dropend";c=c===null&&a.allowed?true:false;case a.dropping&&"dropend":b.event.handle.call(a.dropping,d);a.dropping=null;if(e===false){d.dropTarget=undefined}if(!c){break}d.type="dropstart";case a.allowed&&"dropstart":d.dropTarget=this;a.dropping=b.event.handle.call(this,d)!==false?this:null;break}}},tolerate:function(){var d=0,c,e,f=[a.event.pageX,a.event.pageY],g=a.locate(a.event.dragProxy);a.tolerance=a.tolerance||a.modes[a.mode];do{if(c=a.data[d]){if(a.tolerance){e=a.tolerance.call(a,a.event,g,c)}else{if(a.contains(c,f)){e=c}}}}while(++d<a.data.length&&!e);a.event.type=(e=e||a.best)?"dropstart":"dropend";if(a.event.type=="dropend"||e.elem!=a.dropping){a.handler.call(e?e.elem:a.dropping,a.event)}if(a.last&&f[0]==a.last.pageX&&f[1]==a.last.pageY){delete a.timer}else{a.timer=setTimeout(a.tolerate,a.delay)}a.last=a.event;a.best=null},locate:function(f){var d=b(f),g=d.offset(),e=d.outerHeight(),c=d.outerWidth();return{elem:f,L:g.left,R:g.left+c,T:g.top,B:g.top+e,W:c,H:e}},contains:function(c,d){return((d[0]||d.L)>=c.L&&(d[0]||d.R)<=c.R&&(d[1]||d.T)>=c.T&&(d[1]||d.B)<=c.B)},modes:{intersect:function(d,c,e){return this.contains(e,[d.pageX,d.pageY])?e:this.modes.overlap.apply(this,arguments)},overlap:function(d,c,e){e.overlap=Math.max(0,Math.min(e.B,c.B)-Math.max(e.T,c.T))*Math.max(0,Math.min(e.R,c.R)-Math.max(e.L,c.L));if(e.overlap>((this.best||{}).overlap||0)){this.best=e}return null},fit:function(d,c,e){return this.contains(e,c)?e:null},middle:function(d,c,e){return this.contains(e,[c.L+c.W/2,c.T+c.H/2])?e:null}}}})(jQuery);var _target=null,_dragx=null,_dragy=null,_rotate=null,_resort=null;var _dragging=false,_sizing=false,_animate=false;var _rotating=0,_width=0,_height=0,_left=0,_top=0,_xspeed=0,_yspeed=0;var _zindex=1000;jQuery.fn.touch=function(a){a=jQuery.extend({animate:true,sticky:false,dragx:true,dragy:true,rotate:false,resort:true,scale:false},a);var b=[];b=$.extend({},$.fn.touch.defaults,a);this.each(function(){this.opts=b;this.ontouchstart=touchstart;this.ontouchend=touchend;this.ontouchmove=touchmove;this.ongesturestart=gesturestart;this.ongesturechange=gesturechange;this.ongestureend=gestureend})};function touchstart(a){_target=this.id;_dragx=this.opts.dragx;_dragy=this.opts.dragy;_resort=this.opts.resort;_animate=this.opts.animate;_xspeed=0;_yspeed=0;$(a.changedTouches).each(function(){var c=($("#"+_target).css("left")=="auto")?this.pageX:parseInt($("#"+_target).css("left"));var b=($("#"+_target).css("top")=="auto")?this.pageY:parseInt($("#"+_target).css("top"));if(!_dragging&&!_sizing){_left=(a.pageX-c);_top=(a.pageY-b);_dragging=[_left,_top];if(_resort){_zindex=($("#"+_target).css("z-index")==_zindex)?_zindex:_zindex+1;$("#"+_target).css({zIndex:_zindex})}}})}function touchmove(c){if(_dragging&&!_sizing&&_animate){var a=(isNaN(parseInt($("#"+_target).css("left"))))?0:parseInt($("#"+_target).css("left"));var b=(isNaN(parseInt($("#"+_target).css("top"))))?0:parseInt($("#"+_target).css("top"))}$(c.changedTouches).each(function(){c.preventDefault();_left=(this.pageX-(parseInt($("#"+_target).css("width"))/2));_top=(this.pageY-(parseInt($("#"+_target).css("height"))/2));if(_dragging&&!_sizing){if(_animate){_xspeed=Math.round((_xspeed+Math.round(_left-a))/1.5);_yspeed=Math.round((_yspeed+Math.round(_top-b))/1.5)}if(_dragx||_dragy){$("#"+_target).css({position:"absolute"})}if(_dragx){$("#"+_target).css({left:_left+"px"})}if(_dragy){$("#"+_target).css({top:_top+"px"})}$("#"+_target).css({backgroundColor:"#4B880B"});$("#"+_target+" b").text("WEEEEEEEE!!!!")}})}function touchend(a){$(a.changedTouches).each(function(){if(!a.targetTouches.length){_dragging=false;if(_animate){_left=($("#"+_target).css("left")=="auto")?this.pageX:parseInt($("#"+_target).css("left"));_top=($("#"+_target).css("top")=="auto")?this.pageY:parseInt($("#"+_target).css("top"));var c=(_dragx)?(_left+_xspeed)+"px":_left+"px";var b=(_dragy)?(_top+_yspeed)+"px":_top+"px";if(_dragx||_dragy){$("#"+_target).animate({left:c,top:b},"fast")}}}});$("#"+_target+" b").text("I am sad :(");$("#"+_target).css({backgroundColor:"#0B4188"});setTimeout(changeBack,5000,_target)}function gesturestart(a){_sizing=[$("#"+this.id).css("width"),$("#"+this.id).css("height")]}function gesturechange(a){if(_sizing){_width=(this.opts.scale)?Math.min(parseInt(_sizing[0])*a.scale,300):_sizing[0];_height=(this.opts.scale)?Math.min(parseInt(_sizing[1])*a.scale,300):_sizing[1];_rotate=(this.opts.rotate)?"rotate("+((_rotating+a.rotation)%360)+"deg)":"0deg";$("#"+this.id).css({width:_width+"px",height:_height+"px",webkitTransform:_rotate});$("#"+this.id+" b").text("TRANSFORM!");$("#"+this.id).css({backgroundColor:"#4B880B"})}}function gestureend(a){_sizing=false;_rotating=(_rotating+a.rotation)%360}function changeBack(a){$("#"+a+" b").text("Touch Me :)");$("#"+a).css({backgroundColor:"#999"})}(function(b){var a=this,c=a.jQExtensionsCSS||{};b(a).load(function(){a.scrollTo(0,0);var g=a.innerWidth<a.innerHeight?"profile":"landscape",f=c.toolbarHeight||b("#jqt .toolbar").outerHeight()||45,e={profile:null,landscape:null},d=b.extend({defaults:".horizontal-scroll, .horizontal-scroll .scroll-container, .horizontal-slide, .horizontal-slide .slide-container { width: {width}px; height: 100%; overflow: hidden; padding: 0; } .vertical-scroll > div, .vertical-slide > div { margin: 0 auto; padding-bottom:{paddingBottom}px; } #jqt.fullscreen .vertical-scroll.use-bottom-toolbar > div, #jqt.fullscreen .vertical-slide.use-bottom-toolbar > div { padding-bottom:0px; } .vertical-scroll, .vertical-slide { position: relative; z-index: 1; overflow: hidden; height: {height}px; } .vertical-scroll.use-bottom-toolbar, .vertical-slide.use-bottom-toolbar { height: {bottomToolbarHeight}px !important; }\n",profile:".profile .horizontal-scroll, .profile .horizontal-scroll .scroll-container, .profile .horizontal-slide, .profile .horizontal-slide .slide-container { width: {width}px; } .profile .vertical-scroll, .profile .vertical-slide { position: relative; z-index: 1; overflow: hidden; height: {height}px; } .profile .vertical-scroll.use-bottom-toolbar, .profile .vertical-slide.use-bottom-toolbar { height: {bottomToolbarHeight}px !important; }",landscape:".landscape .horizontal-scroll, .landscape .horizontal-scroll .scroll-container, .landscape .horizontal-slide, .landscape .horizontal-slide .slide-container { width: {width}px; height: 100%; overflow: hidden; padding: 0; } .landscape .vertical-scroll, .landscape .vertical-slide { position: relative; z-index: 1; overflow: hidden; height: {height}px; } .landscape .vertical-scroll.use-bottom-toolbar, .landscape .vertical-slide.use-bottom-toolbar { height: {bottomToolbarHeight}px !important; }"},c.css||{});e[g]=b.extend({paddingBottom:5,width:a.innerWidth,height:a.innerHeight-f,bottomToolbarHeight:a.innerHeight-(f*2)},c[g]||{});e.defaults=b.extend({},e[g],c.defaults||{});b(document.createElement("style")).attr("type","text/css").html(d.defaults.replace(/\{(\w+)\}/g,function(i,h){return h in e.defaults?e.defaults[h]:i})+d[g].replace(/\{(\w+)\}/g,function(i,h){return h in e[g]?e[g][h]:i})).appendTo("head");b(a).one("orientationchange",function(){var h=a.innerWidth<a.innerHeight?"profile":"landscape";e[h]=b.extend({paddingBottom:5,width:a.innerWidth,height:a.innerHeight-f,bottomToolbarHeight:a.innerHeight-(f*2)},c[h]||{});b(document.createElement("style")).attr("type","text/css").html(d[h].replace(/\{(\w+)\}/g,function(j,i){return i in e[h]?e[h][i]:j})).appendTo("head")})})})(jQuery);(function($){$.Chain={version:"0.2",tag:["{","}"],services:{},service:function(name,proto){this.services[name]=proto;$.fn[name]=function(options){if(!this.length){return this}var instance=this.data("chain-"+name);var args=Array.prototype.slice.call(arguments,1);if(!instance){if(options=="destroy"){return this}instance=$.extend({element:this},$.Chain.services[name]);this.data("chain-"+name,instance);if(instance.init){instance.init()}}var result;if(typeof options=="string"&&instance["$"+options]){result=instance["$"+options].apply(instance,args)}else{if(instance.handler){result=instance.handler.apply(instance,[options].concat(args))}else{result=this}}if(options=="destroy"){this.removeData("chain-"+name)}return result}},extend:function(name,proto){if(this.services[name]){this.services[name]=$.extend(this.services[name],proto)}},jobject:function(obj){return obj&&obj.init==$.fn.init},jidentic:function(j1,j2){if(!j1||!j2||j1.length!=j2.length){return false}var a1=j1.get();var a2=j2.get();for(var i=0;i<a1.length;i++){if(a1[i]!=a2[i]){return false}}return true},parse:function(){var $this={};$this.closure=['function($data, $el){var $text = [];\n$text.print = function(text){this.push((typeof text == "number") ? text : ((typeof text != "undefined") ? text : ""));};\nwith($data){\n','}\nreturn $text.join("");}'];$this.textPrint=function(text){return'$text.print("'+text.split("\\").join("\\\\").split("'").join("\\'").split('"').join('\\"')+'");'};$this.scriptPrint=function(text){return"$text.print("+text+");"};$this.parser=function(text){var tag=$.Chain.tag;var opener,closer,closer2=null,result=[];while(text){opener=text.indexOf(tag[0]);closer=opener+text.substring(opener).indexOf(tag[1]);if(opener!=-1){if(text[opener-1]=="\\"){closer2=opener+tag[0].length+text.substring(opener+tag[0].length).indexOf(tag[0]);if(closer2!=opener+tag[0].length-1&&text[closer2-1]=="\\"){closer2=closer2-1}else{if(closer2==opener+tag[0].length-1){closer2=text.length}}result.push($this.textPrint(text.substring(0,opener-1)));result.push($this.textPrint(text.substring(opener,closer2)))}else{closer2=null;if(closer==opener-1){closer=text.length}result.push($this.textPrint(text.substring(0,opener)));result.push($this.scriptPrint(text.substring(opener+tag[0].length,closer)))}text=text.substring((closer2===null)?closer+tag[1].length:closer2)}else{if(text){result.push($this.textPrint(text));text=""}}}return result.join("\n")};return function($text){var $fn=function(){};try{eval("$fn = "+$this.closure[0]+$this.parser($text)+$this.closure[1])}catch(e){throw"Parsing Error"}return $fn}}()}})(jQuery);(function(a){a.Chain.service("update",{handler:function(b){if(typeof b=="function"){return this.bind(b)}else{return this.trigger(b)}},bind:function(b){return this.element.bind("update",b)},trigger:function(b){this.element.items("update");this.element.item("update");this.element.triggerHandler("preupdate",this.element.item());if(b=="hard"){this.element.items(true).each(function(){a(this).update()})}this.element.triggerHandler("update",this.element.item());return this.element}})})(jQuery);(function(a){a.Chain.service("chain",{init:function(){this.anchor=this.element;this.template=this.anchor.html();this.tplNumber=0;this.builder=this.createBuilder();this.plugins={};this.isActive=false;this.destroyers=[];this.element.addClass("chain-element")},handler:function(b){this.element.items("backup");this.element.item("backup");if(typeof b=="object"){this.handleUpdater(b)}else{if(typeof b=="function"){this.handleBuilder(b)}}this.anchor.empty();this.isActive=true;this.element.update();return this.element},handleUpdater:function(h){var b=h.builder;delete h.builder;if(h.anchor){this.setAnchor(h.anchor)}delete h.anchor;var e=h.override;delete h.override;for(var d in h){if(typeof h[d]=="string"){h[d]=a.Chain.parse(h[d])}else{if(typeof h[d]=="object"){for(var c in h[d]){if(typeof h[d][c]=="string"){h[d][c]=a.Chain.parse(h[d][c])}}}}}var f=function(o,p){var n,q;var k=a(this);for(var m in h){if(m=="self"){n=k}else{n=a(m,k)}if(typeof h[m]=="function"){q=h[m].apply(k,[p,n]);if(typeof q=="string"){n.not(":input").html(q).end().filter(":input").val(q)}}else{if(typeof h[m]=="object"){for(var l in h[m]){if(typeof h[m][l]=="function"){q=h[m][l].apply(k,[p,n]);if(typeof q=="string"){if(l=="content"){n.html(q)}else{if(l=="text"){n.text(q)}else{if(l=="value"){n.val(q)}else{if(l=="class"||l=="className"){n.addClass(q)}else{n.attr(l,q)}}}}}}}}}}};var g=this.defaultBuilder;this.builder=function(i){if(b){b.apply(this,[i])}if(!e){g.apply(this)}this.update(f);return false}},handleBuilder:function(b){this.builder=this.createBuilder(b)},defaultBuilder:function(c,b){var d=c?(c.apply(this,[b])!==false):true;if(d){this.bind("update",function(g,h){var e=a(this);for(var f in h){if(typeof h[f]!="object"&&typeof h[f]!="function"){e.find("> ."+f+", *:not(.chain-element) ."+f).each(function(){var i=a(this);if(i.filter(":input").length){i.val(h[f])}else{if(i.filter("img").length){i.attr("src",h[f])}else{i.html(h[f])}}})}}})}},createBuilder:function(b){var c=this.defaultBuilder;return function(d){c.apply(this,[b,d]);return false}},setAnchor:function(b){this.anchor.html(this.template);this.anchor=b==this.element?b:this.element.find(b).eq(0);this.template=this.anchor.html();this.anchor.empty()},$anchor:function(b){if(b){this.element.items("backup");this.element.item("backup");this.setAnchor(b);this.element.update();return this.element}else{return this.anchor}},$template:function(b){if(!arguments.length){return a("<div>").html(this.template).children().eq(this.tplNumber)}if(b=="raw"){return this.template}if(typeof b=="number"){this.tplNumber=b}else{var c=a("<div>").html(this.template).children();var d=c.filter(b).eq(0);if(d.length){this.tplNumber=c.index(d)}else{return this.element}}this.element.items("backup");this.element.item("backup");this.element.update();return this.element},$builder:function(b){if(b){return this.handler(b)}else{return this.builder}},$active:function(){return this.isActive},$plugin:function(b,c){if(c===null){delete this.plugins[b]}else{if(typeof c=="function"){this.plugins[b]=c}else{if(b&&!c){return this.plugins[b]}else{return this.plugins}}}if(typeof c=="function"){this.element.items(true).each(function(){var d=a(this);c.call(d,d.item("root"))})}this.element.update();return this.element},$clone:function(){var c=this.element.attr("id");this.element.attr("id","");var b=this.element.clone().empty().html(this.template);this.element.attr("id",c);return b},$destroy:function(b){this.element.removeClass("chain-element");if(!b){this.element.items("backup");this.element.item("backup");this.element.find(".chain-element").each(function(){a(this).chain("destroy",true)})}this.element.triggerHandler("destroy");this.isActive=false;this.anchor.html(this.template);return this.element}})})(jQuery);(function(a){a.Chain.service("item",{init:function(){this.isActive=false;this.isBuilt=false;this.root=this.element;this.data=false;this.datafn=this.dataHandler},handler:function(b){if(typeof b=="object"){return this.handleObject(b)}else{if(typeof b=="function"){return this.handleFunction(b)}else{return this.handleDefault()}}},handleObject:function(b){this.setData(b);this.isActive=true;this.update();return this.element},handleFunction:function(b){this.datafn=b;return this.element},handleDefault:function(){if(this.isActive){return this.getData()}else{return false}},getData:function(){this.data=this.datafn.call(this.element,this.data);return this.data},setData:function(d){var c;if(a.Chain.jobject(d)&&d.item()){c=a.extend({},d.item())}else{if(a.Chain.jobject(d)){c={}}else{c=d}}this.data=this.datafn.call(this.element,this.data||c,c);if(this.linkElement&&this.linkElement[0]!=d[0]){var b=this.linkFunction();if(a.Chain.jobject(b)&&b.length&&b.item()){b.item(this.data)}}},dataHandler:function(b,c){if(arguments.length==2){return a.extend(b,c)}else{return b}},update:function(){return this.element.update()},build:function(){var b=this.element.chain("template","raw").replace(/jQuery\d+\=\"null\"/gi,"");this.element.chain("anchor").html(b);if(!a.Chain.jidentic(this.root,this.element)){var c=this.root.chain("plugin");for(var d in c){c[d].apply(this.element,[this.root])}}this.element.chain("builder").apply(this.element,[this.root]);this.isBuilt=true},$update:function(){if(this.element.chain("active")&&this.isActive&&!this.isBuilt&&this.getData()){this.build()}return this.element},$replace:function(b){this.data={};this.setData(b);this.isActive=true;this.update();return this.element},$remove:function(b){this.element.chain("destroy");this.element.remove();this.element.item("link",null);this.element.item("destroy");if(!a.Chain.jidentic(this.root,this.element)&&!b){this.root.update()}},$active:function(){return this.isActive},$root:function(b){if(arguments.length){this.root=b;this.update();return this.element}else{return this.root}},$backup:function(){this.isBuilt=false;return this.element},$link:function(c,d){if(this.linkElement){this.linkElement.unbind("update",this.linkUpdater);this.linkElement=null}c=a(c);if(c.length){var b=this;this.isActive=true;this.linkElement=c;this.linkFunction=function(){if(typeof d=="function"){try{return d.call(b.element,b.linkElement)}catch(f){return a().eq(-1)}}else{if(typeof d=="string"){return b.linkElement.items("collection",d)}else{return a().eq(-1)}}};this.linkUpdater=function(){var e=b.linkFunction();if(e&&e.length){b.element.item(e)}};this.linkElement.bind("update",this.linkUpdater);this.linkUpdater()}return this.element},$destroy:function(){return this.element}})})(jQuery);(function(a){a.Chain.service("items",{collections:{all:function(){return this.element.chain("anchor").children(".chain-item")},visible:function(){return this.element.chain("anchor").children(".chain-item:visible")},hidden:function(){return this.element.chain("anchor").children(".chain-item:hidden")},self:function(){return this.element}},init:function(){this.isActive=false;this.pushBuffer=[];this.shiftBuffer=[];this.collections=a.extend({},this.collections)},handler:function(b){if(b instanceof Array){return this.handleArray(b)}else{if(!this.isActive){return a().eq(-1)}else{if(a.Chain.jobject(b)){return this.handleElement(b)}else{if(typeof b=="object"){return this.handleObject(b)}else{if(typeof b=="number"){return this.handleNumber(b)}else{if(b===true){return this.handleTrue()}else{return this.handleDefault()}}}}}}},handleObject:function(b){return this.collection("all").filter(function(){return a(this).item()==b})},handleElement:function(b){if(!a.Chain.jidentic(b,b.item("root"))&&a.Chain.jidentic(this.element,b.item("root"))){return b}else{return a().eq(-1)}},handleArray:function(b){return this.$merge(b)},handleNumber:function(b){if(b==-1){return this.collection("visible").filter(":last")}else{return this.collection("visible").eq(b)}},handleTrue:function(){return this.collection("all")},handleDefault:function(){return this.collection("visible")},update:function(){this.element.update()},empty:function(){var b=this.collection("all");setTimeout(function(){b.each(function(){a(this).item("remove",true)})},1);this.element.chain("anchor").empty()},collection:function(b,c){if(arguments.length>1){if(typeof c=="function"){this.collections[b]=c}return this.element}else{if(this.collections[b]){return this.collections[b].apply(this)}else{return a().eq(-1)}}},$update:function(){if(!this.element.chain("active")||!this.isActive){return this.element}var c=this;var b=this.element.chain("builder");var f=this.element.chain("template");var d;var e=function(){var g=f.clone()[d?"appendTo":"prependTo"](c.element.chain("anchor")).addClass("chain-item").item("root",c.element);if(c.linkElement&&a.Chain.jobject(this)&&this.item()){g.item("link",this,"self")}else{g.item(this)}g.chain(b)};d=false;a.each(this.shiftBuffer,e);d=true;a.each(this.pushBuffer,e);this.shiftBuffer=[];this.pushBuffer=[];return this.element},$add:function(){if(this.linkElement){return this.element}var d;var c=Array.prototype.slice.call(arguments);if(typeof c[0]=="string"){d=c.shift()}var b=(d=="shift")?"shiftBuffer":"pushBuffer";this.isActive=true;this[b]=this[b].concat(c);this.update();return this.element},$merge:function(d,c){if(this.linkElement){return this.element}if(typeof d!="string"){c=d}var b=(d=="shift")?"shiftBuffer":"pushBuffer";this.isActive=true;if(a.Chain.jobject(c)){this[b]=this[b].concat(c.map(function(){return a(this)}).get())}else{if(c instanceof Array){this[b]=this[b].concat(c)}}this.update();return this.element},$replace:function(d,c){if(this.linkElement&&arguments.callee.caller!=this.linkUpdater){return this.element}if(typeof d!="string"){c=d}var b=(d=="shift")?"shiftBuffer":"pushBuffer";this.isActive=true;this.empty();if(a.Chain.jobject(c)){this[b]=c.map(function(){return a(this)}).get()}else{if(c instanceof Array){this[b]=c}}this.update();return this.element},$remove:function(){if(this.linkElement){return this.element}for(var b=0;b<arguments.length;b++){this.handler(arguments[b]).item("remove",true)}this.update();return this.element},$reorder:function(c,b){if(b){this.handler(c).before(this.handler(b))}else{this.handler(c).appendTo(this.element.chain("anchor"))}this.update();return this.element},$empty:function(){if(this.linkElement){return this.element}this.empty();this.shiftBuffer=[];this.pushBuffer=[];this.update();return this.element},$data:function(b){return this.handler(b).map(function(){return a(this).item()}).get()},$link:function(c,d){if(this.linkElement){this.linkElement.unbind("update",this.linkUpdater);this.linkElement=null}c=a(c);if(c.length){var b=this;this.linkElement=c;this.linkFunction=function(){if(typeof d=="function"){try{return d.call(b.element,b.linkElement)}catch(f){return a().eq(-1)}}else{if(typeof d=="string"){return b.linkElement.items("collection",d)}else{return a().eq(-1)}}};this.linkUpdater=function(){b.$replace(b.linkFunction())};this.linkElement.bind("update",this.linkUpdater);this.linkUpdater()}return this.element},$index:function(b){return this.collection("all").index(this.handler(b))},$collection:function(){return this.collection.apply(this,Array.prototype.slice.call(arguments))},$active:function(){return this.isActive},$backup:function(){if(!this.element.chain("active")||!this.isActive){return this.element}var b=[];this.collection("all").each(function(){var c=a(this).item();if(c){b.push(c)}});this.pushBuffer=b.concat(this.pushBuffer);this.empty();return this.element},$destroy:function(){this.empty();return this.element}});a.Chain.extend("items",{doFilter:function(){var c=this.searchProperties;var d=this.searchText;if(d){if(typeof d=="string"){d=d.toLowerCase()}var b=this.element.items(true).filter(function(){var f=a(this).item();if(c){for(var e=0;e<c.length;e++){if(typeof f[c[e]]=="string"&&!!(typeof d=="string"?f[c[e]].toLowerCase():f[c[e]]).match(d)){return true}}}else{for(var g in f){if(typeof f[g]=="string"&&!!(typeof d=="string"?f[g].toLowerCase():f[g]).match(d)){return true}}}});this.element.items(true).not(b).hide();b.show()}else{this.element.items(true).show();this.element.unbind("preupdate",this.searchBinding);this.searchBinding=null}},$filter:function(d,c){if(!arguments.length){return this.update()}this.searchText=d;if(typeof c=="string"){this.searchProperties=[c]}else{if(c instanceof Array){this.searchProperties=c}else{this.searchProperties=null}}if(!this.searchBinding){var b=this;this.searchBinding=function(f,e){b.doFilter()};this.element.bind("preupdate",this.searchBinding)}return this.update()}});a.Chain.extend("items",{doSort:function(){var b=this.sortName;var d=this.sortOpt;var g={number:function(i,h){return parseFloat((a(i).item()[b]+"").match(/\d+/gi)[0])-parseFloat((a(h).item()[b]+"").match(/\d+/gi)[0])},"default":function(i,h){return a(i).item()[b]>a(h).item()[b]?1:-1}};if(b){var e=d.fn||g[d.type]||g["default"];var f=this.element.items(true).get().sort(e);f=d.desc?f.reverse():f;for(var c=0;c<f.length;c++){this.element.chain("anchor").append(f[c])}d.desc=d.toggle?!d.desc:d.desc}else{this.element.unbind("preupdate",this.sortBinding);this.sortBinding=null}},$sort:function(c,d){if(!c&&c!==null&&c!==false){return this.update()}if(this.sortName!=c){this.sortOpt=a.extend({desc:false,type:"default",toggle:false},d)}else{a.extend(this.sortOpt,d)}this.sortName=c;if(!this.sortBinding){var b=this;this.sortBinding=function(f,e){b.doSort()};this.element.bind("preupdate",this.sortBinding)}return this.update()}})})(jQuery);(function(a){if(a.jQTouch){a.jQTouch.addExtension(function b(e){var d=".toolbar h1";a(function(){a("#jqt").bind("pageAnimationStart",function(i,g){if(g.direction==="in"){var f=a(d,a(i.target));var h=a(i.target).data("referrer");if(f.length&&h&&f.html()===""){f.html(h.text())}}})});function c(f){d=f}return{setTitleSelector:c}})}})(jQuery);(function(a){if(a.jQTouch){a.jQTouch.addExtension(function b(f){var m,i;var d=false;function n(p,o,r,q){i=p;if(window.openDatabase){m=openDatabase(p,o,r,q);if(!m){debugTxt=("Failed to open the database on disk. This is probably because the version was bad or there is not enough space left in this domain's quota");if(d){c(debugTxt)}}}else{debugTxt=("Couldn't open the database. Please try with a WebKit nightly with this feature enabled");if(d){c(debugTxt)}}}function e(o){for(x=0;x<o.createTables.length;x++){p(o.createTables[x])}function p(r){debugTxt="create table "+r.table;var q="CREATE TABLE "+r.table+" (";nodeSize=r.property.length-1;for(y=0;y<=nodeSize;y++){q+=r.property[y].name+" "+r.property[y].type;if(y!=nodeSize){q+=", "}}q+=")";k(q,debugTxt)}}function j(p,o,q){stringQuery="DELETE FROM "+p+" WHERE "+o+" = "+q;debugTxt="delete row"+o+" "+q;k(stringQuery,debugTxt)}function g(p,o){stringQuery="SELECT * FROM "+p;debugTxt="selecting everything in table "+p;k(stringQuery,debugTxt,o)}function h(o){stringQuery="DROP TABLE "+o;debugTxt="delete table "+o;k(stringQuery,debugTxt)}function l(o){for(x=0;x<o.addRow.length;x++){p(o.addRow[x])}function p(q){debugTxt="create row "+q.table;stringQuery="INSERT INTO "+q.table+" (";nodeSize=q.property.length-1;for(y=0;y<=nodeSize;y++){stringQuery+=q.property[y].name;if(y!=nodeSize){stringQuery+=", "}}stringQuery+=") VALUES (";for(y=0;y<=nodeSize;y++){stringQuery+='"'+q.property[y].value+'"';if(y!=nodeSize){stringQuery+=", "}}stringQuery+=")";k(stringQuery,debugTxt)}}function k(o,p,q){p+="<br> SQL: "+o;callback=q;m.transaction(function(r){r.executeSql(o,[],function(t,s){if(callback){callback(s)}if(d){p+="<br><span style='color:green'>success</span> ";c(p)}},function(s,t){p+="<br><span style='color:red'>"+t.message+"</span> ";if(d){c(p)}})})}function c(o){if(!a("#debugMode")[0]){a("body").append("<div style='position:abolute;top:0 !important;left:0 !important;width:100% !important;min-height:100px !important; height:300px; overflow:scroll;z-index:1000; display:block; opacity:0.8; background:#000;-webkit-backface-visibility:visible ' id='debugMode'></div>")}a("#debugMode").append("<div class='debugerror'>"+o+"</div>")}return{dbOpen:n,dbDeleteRow:j,dbDropTable:h,dbInsertRows:l,dbSelectAll:g,dbExecuteQuery:k,dbCreateTables:e}})}})(jQuery);(function(a){if(a.jQTouch){a.jQTouch.addExtension(function b(d){function c(g){if(g==null){g=0}var f=e(g);a("body > *").css("min-height",f+"px !important");a("body.fullscreen > *").css("min-height",f+"px !important");a("body.fullscreen.black-translucent > *").css("min-height",f+"px !important");a("body.landscape > *").css("min-height",f+"px !important")}function e(g){var f=0;if(typeof(window.innerWidth)=="number"){f=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){f=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){f=document.body.clientHeight}}}if(f<g){f=g}return f}return{resetHeight:c}})}})(jQuery);(function(b){if(b.jQTouch){b.jQTouch.addExtension(function a(c){b.fn.makeFloaty=function(d){var f={align:"top",spacing:20,time:".3s"};var e=b.extend({},f,d);e.align=(e.align=="top")?"top":"bottom";return this.each(function(){var g=b(this);g.css({"-webkit-transition":"top "+e.time+" ease-in-out",display:"block","min-height":"0 !important"}).data("settings",e);b(document).bind("scroll",function(){if(g.data("floatyVisible")===true){g.scrollFloaty()}});g.scrollFloaty()})};b.fn.scrollFloaty=function(){return this.each(function(){var d=b(this);var f=d.data("settings");var e=b("html").attr("clientHeight");var g=window.pageYOffset+((f.align=="top")?f.spacing:e-f.spacing-d.get(0).offsetHeight);d.css("top",g).data("floatyVisible",true)})};b.fn.hideFloaty=function(){return this.each(function(){var d=b(this);var e=d.get(0).offsetHeight;d.css("top",-e-10).data("floatyVisible",false)})};b.fn.toggleFloaty=function(){return this.each(function(){var d=b(this);if(d.data("floatyVisible")===true){d.hideFloaty()}else{d.scrollFloaty()}})}})}})(jQuery);(function(c){if(c.jQTouch){function b(f){var i,e,h,i,g=0;h={element:c("#gesture_test"),onGestureStart:null,onGestureChange:null,onGestureEnd:null,};h=c.extend({},h,f);h.element.bind("gesturestart",function(j){j.originalEvent.preventDefault();if(h.onGestureStart){h.onGestureStart(a(j,i),d(j,g),j,h.element)}}).bind("gesturechange",function(j){if(h.onGestureChange){h.onGestureChange(a(j,i),d(j,g),j,h.element)}}).bind("gestureend",function(j){i=j.originalEvent.scale;g=(j.originalEvent.rotation+g)%360;if(h.onGestureEnd){h.onGestureEnd(a(j,i),d(j,g),j,h.element)}})}function d(f,e){return f.originalEvent.rotation+e}function a(f,e){return f.originalEvent.scale+e}c.fn.bindGestures=function(e){e.element=this;b(e)}}})(jQuery);(function(f){var g,j=this,o=j.document,l=this.WebKitCSSMatrix,k={selector:".horizontal-scroll > table",attributesToOptions:e,attributes:{defaultDuration:"slidespeed",preventDefault:"preventdefault",defaultTransform:"defaulttransform",bounce:function(u){return u.attr("bounce")==="false"?false:k.bounce},scrollBar:function(u){return u.hasClass("with-scrollbar")}},ignoreTags:"SELECT,TEXTAREA,BUTTON,INPUT",eventProperty:"pageX",numberOfTouches:1,defaultDuration:500,defaultTransform:"translate3d({0}px,0,0)",defaultOffset:0,bounceSpeed:500,preventDefault:true,maxScrollTime:1000,friction:3,bounceTimingFunction:"cubic-bezier(0,0,.25,1)",bounce:true,scrollBar:true,scrollBarElement:null,scrollBarOptions:{},events:{touchstart:a,touchmove:s,touchend:d,touchcancel:d,webkitTransitionEnd:i,},setPosition:c,reset:t,momentum:m},q=function(){return j.innerWidth+"px"},n=function(u){return(j.innerHeight-u.toolbar)+"px"},h={variables:{toolbar:45},defaults:{".horizontal-scroll":{width:q,height:"100%",overflow:"hidden",padding:"0px",position:"relative",height:n},".horizontal-scroll > table":{height:"100%"},".horizontal-scroll .scrollbar.horizontal":{"-webkit-transition-timing-function":"cubic-bezier(0,0,0.25,1)","-webkit-transform":"translate3d(0,0,0)","-webkit-transition-property":"-webkit-transform,opacity","-webkit-transition-duration":"0,300ms","-webkit-border-radius":"4px","pointer-events":"none",opacity:0,"-webkit-border-image":"-webkit-gradient(radial, 50% 50%, 2, 50% 50%, 8, from(rgba(0,0,0,.5)), to(rgba(0,0,0,.5))) 3 2",position:"absolute","z-index":10,width:"1px",height:"5px",bottom:"1px",left:"1px"}},portrait:{".portrait .horizontal-scroll":{width:q}},landscape:{".landscape .horizontal-scroll":{width:q}}};if(f.jQTouch){f.jQTouch.addExtension(function(v){function u(A,z){var w=z.page.find(k.selector);w.scrollHorizontally(k.attributesToOptions(w,k.attributes))}f(o.body).bind("pageInserted",u);f(function(){f(k.selector).each(function(){f(this).scrollHorizontally(k.attributesToOptions(f(this),k.attributes))})});return{}})}function e(w,u){var v={};f.each(u,function(z,A){if(f.isFunction(A)){v[z]=A(w)}else{if(w.attr(A)!=g){v[z]=w.attr(A)}}});return v}f.fn.scrollHorizontally=function(u){u=f.extend(true,{},k,u||{});return this.each(function(){p(this,u)})};f.fn.scrollHorizontally.defaults=function(u){if(u!==g){k=f.extend(true,k,u)}return f.extend({},k)};f.fn.scrollHorizontally.defaultCSS=function(u){if(u!==g){h=f.extend(true,h,u)}return f.extend({},h)};function p(z,w){var u=f(z).data("jqt-horizontal-scroll-options",w).css("webkitTransform",r(w.defaultTransform,w.defaultOffset)),v=new l(u.css("webkitTransform"));f.each(w.events,function(A,B){z.addEventListener(A,B,false)});w.currentPosition=v.m41;w.parentWidth=u.parent().width();if(w.scrollBar&&w.scrollBar===true&&!w.scrollBarElement){w.scrollBarElement=f.isFunction(w.scrollBar)?w.scrollBar(u.parent(),"horizontal",w.scrollBarOptions||{}):b(u.parent(),"horizontal",w.scrollBarOptions||{})}}function a(C){var D=f(this),w=D.data("jqt-horizontal-scroll-options"),v,B=D.outerWidth(),A=D.parent().width(),z=-(B-A),u=A/6;w.parentWidth=A;if(!!w.ignoreTags&&f(C.target).is(w.ignoreTags)||C.targetTouches.length!==w.numberOfTouches){return null}v=new l(D.css("webkitTransform"));D.data("jqt-horizontal-scroll-current-event",{startLocation:C.touches[0][w.eventProperty],startPosition:v.m41,currentPosition:v.m41,startTime:C.timeStamp,moved:false,lastMoveTime:C.timeStamp,parentWidth:A,endPoint:z,minScroll:!w.bounce?0:u,maxScroll:!w.bounce?z:z-u,timingFunction:w.bounceTimingFunction});if(w.scrollBarElement){w.scrollBarElement.init(A,B)}w.setPosition(D,w,v.m41,"0");if(w.preventDefault){C.preventDefault();return false}else{return true}}function s(z){var B=f(this),w=B.data("jqt-horizontal-scroll-options"),A=B.data("jqt-horizontal-scroll-current-event"),v=A.lastMoveTime,C=A.startLocation-z.touches[0][w.eventProperty],u=A.startPosition-C;A.currentPosition=u;A.moved=true;A.lastMoveTime=z.timeStamp;if((A.lastMoveTime-v)>w.maxScrollTime){A.startTime=A.lastMoveTime}if(w.scrollBarElement&&!w.scrollBarElement.visible){w.scrollBarElement.show()}w.setPosition(B,w,A.currentPosition,0);if(w.preventDefault){z.preventDefault();return false}else{return true}}function d(v){var A=f(this),u=A.data("jqt-horizontal-scroll-options"),w=A.data("jqt-horizontal-scroll-current-event"),z,B;if(!w.moved){if(u.scrollBarElement){u.scrollBarElement.hide()}z=v.target;if(z.nodeType==3){z=z.parentNode}B=o.createEvent("MouseEvents");B.initEvent("click",true,true);z.dispatchEvent(B);if(u.preventDefault){v.preventDefault();v.stopPropagation();return false}}u.momentum(A,u,w,v);u.setPosition(A,u,w.currentPosition,w.duration);if(u.preventDefault){v.preventDefault();v.stopPropagation();return false}else{return true}}function i(z){var w=f(this),u=w.data("jqt-horizontal-scroll-options"),v=w.data("jqt-horizontal-scroll-current-event");if(v){if(v.currentPosition>0){v.currentPosition=0;u.setPosition(w,u,0,u.bounceSpeed)}else{if(v.currentPosition<v.endPoint){v.currentPosition=v.endPoint;u.setPosition(w,u,v.endPoint,u.bounceSpeed)}else{if(u.scrollBarElement){u.scrollBarElement.hide()}}}}else{if(u.scrollBarElement){u.scrollBarElement.hide()}}}function m(C,F,D,v){var z=Math.min(F.maxScrollTime,D.lastMoveTime-D.startTime),u=D.startPosition-D.currentPosition,A=Math.abs(u)/z,B=z*A*F.friction,w=Math.round(u*A),E=Math.round(D.currentPosition-w);if(D.currentPosition>0){E=0}else{if(D.currentPosition<D.endPoint){E=D.endPoint}else{if(E>D.minScroll){B=B*Math.abs(D.minScroll/E);E=D.minScroll}else{if(E<D.maxScroll){B=B*Math.abs(D.maxScroll/E);E=D.maxScroll}}}}D.momentum=E/D.currentPosition;D.currentPosition=E;D.duration=B}function t(v,u){return u.setPosition(v,u,0,u.defaultDuration)}function c(w,v,u,B,A){if(v.scrollBarElement){var z=(w.parent().width()-w.outerWidth());if(u>0){z+=Number(u)}v.scrollBarElement.scrollTo(v.scrollBarElement.maxScroll/z*u,r("{0}ms",B!==g?B:v.defaultDuration))}if(B!==g){w.css("webkitTransitionDuration",r("{0}ms",B))}if(A!==g){w.css("webkitTransitionTimingFunction",A)}v.currentPosition=u||0;return w.css("webkitTransform",r("translate3d({0}px, 0, 0)",v.currentPosition))}function r(v){var u=arguments;return v.replace(/\{(\d+)\}/g,function(z,w){return u[Number(w)+1]+""})}function b(v,w,u){if(!(this instanceof b)){return new b(v,w,u)}this.direction=w;this.bar=f(o.createElement("div")).addClass("scrollbar "+w).appendTo(v)[0]}b.prototype={direction:"horizontal",size:0,maxSize:0,maxScroll:0,visible:false,init:function(u,v){var w=this.direction=="horizontal"?this.bar.offsetWidth-this.bar.clientWidth:this.bar.offsetHeight-this.bar.clientHeight;this.maxSize=u-8;this.size=Math.round(this.maxSize*this.maxSize/v)+w;this.maxScroll=this.maxSize-this.size;this.bar.style[this.direction=="horizontal"?"width":"height"]=(this.size-w)+"px"},setPosition:function(u){u=this.direction=="horizontal"?"translate3d("+Math.round(u)+"px,0,0)":"translate3d(0,"+Math.round(u)+"px,0)";this.bar.style.webkitTransform=u},scrollTo:function(v,u){this.bar.style.webkitTransitionDuration=(u||"400ms")+",300ms";this.setPosition(v)},show:function(){this.visible=true;this.bar.style.opacity="1"},hide:function(){this.visible=false;this.bar.style.opacity="0"},remove:function(){this.bar.parentNode.removeChild(this.bar);return null}};f(function(){j.scrollTo(0,0);var u="",z=h,w=j.innerHeight>j.innerWidth?"portrait":"landscape",A=function(B,C){u+=B+":"+(f.isFunction(C)?C(z.variables):C)+";"},v=function(B,C){u+=B+"{";f.each(C,A);u+="}"};f.each(z.defaults,v);f.each(z[w],v);f(o.createElement("style")).attr({type:"text/css",media:"screen"}).html(u).appendTo("head");f(j).one("orientationchange",function(){setTimeout(function(){j.scrollTo(0,0);u="";f.each(z[j.innerHeight>j.innerWidth?"portrait":"landscape"],v);f(o.createElement("style")).attr({type:"text/css",media:"screen"}).html(u).appendTo("head")},30)})})})(jQuery);(function(b){if(b.jQTouch){b.jQTouch.addExtension(function a(){var i,f,h;function d(){return navigator.geolocation}function g(j){if(d()){h=j;navigator.geolocation.getCurrentPosition(c);return true}else{console.log("Device not capable of geo-location.");j(false);return false}}function c(j){i=j.coords.latitude;f=j.coords.longitude;if(h){h(e())}}function e(){if(i&&f){return{latitude:i,longitude:f}}else{console.log("No location available. Try calling updateLocation() first.");return false}}return{updateLocation:g,getLocation:e}})}})(jQuery);(function(b){if(b.jQTouch){b.jQTouch.addExtension(function a(){var c=[];c[0]="uncached";c[1]="idle";c[2]="checking";c[3]="downloading";c[4]="updateready";c[5]="obsolete";var d=window.applicationCache;window.addEventListener("cached",f,false);window.addEventListener("checking",f,false);window.addEventListener("downloading",f,false);window.addEventListener("error",f,false);window.addEventListener("noupdate",f,false);window.addEventListener("obsolete",f,false);window.addEventListener("progress",f,false);window.addEventListener("updateready",f,false);function f(m){var j,i,k,l;j=(h())?"yes":"no";i=c[d.status];k=m.type;l="online: "+j;l+=", event: "+k;l+=", status: "+i;if(k=="error"&&navigator.onLine){l+=" There was an unknown error, check your Cache Manifest."}console.log(l)}function h(){return navigator.onLine}if(!b("html").attr("manifest")){console.log("No Cache Manifest listed on the <html> tag.")}d.addEventListener("updateready",function(i){if(c[d.status]!="idle"){d.swapCache();console.log("Swapped/updated the Cache Manifest.")}},false);function e(){d.update()}function g(){setInterval(function(){d.update()},10000)}return{isOnline:h,checkForUpdates:e,autoCheckForUpdates:g}})}})(jQuery);
2
2
  /**
3
3
  * Provides event handling for iPhone like photo gallery (without thumbnail portion)
4
4
  *
@@ -31,16 +31,18 @@ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :form => ['jqu
31
31
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :history => ['jquery.history.min']
32
32
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :hotkeys => ['jquery.hotkeys.min']
33
33
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :layout => ['jquery.layout.min']
34
+ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :mousewheel => ['jquery.mousewheel.min']
35
+ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :offline => ['json.min', 'jquery.offline.min']
34
36
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :pngFix => ['jquery.pngFix.min']
35
37
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :sparklines => ['jquery.sparkline.min']
36
38
  ActionView::Helpers::AssetTagHelper.register_javascript_expansion :themeSwitcher => ['jquery.themeswitchertool.min']
37
- ActionView::Helpers::AssetTagHelper.register_javascript_expansion :tmpl => ['jquery.tmpl.min']
38
- ActionView::Helpers::AssetTagHelper.register_javascript_expansion :tmpl_plus => ['jquery.tmplPlus.min']
39
+ ActionView::Helpers::AssetTagHelper.register_javascript_expansion :tmpl => ['jquery.tmpl.min', 'jquery.tmplPlus.min']
39
40
 
40
41
  require 'jquery/jquery'
41
42
  require 'handle_attributes'
42
43
  require 'jquery/jquery_selector_assertions' if RAILS_ENV == 'test'
43
44
  require 'jquery/jquery_auto_complete'
45
+ require 'jquery/jquery_json_response'
44
46
  require 'jquery/flash_messages'
45
47
 
46
48
  ActionController::Base.send(:include, FlashMessages::ControllerMethods)
@@ -0,0 +1,23 @@
1
+ /* Algerian Arabic Translation for jQuery UI date picker plugin. (can be used for Tunisia)*/
2
+ /* Mohamed Cherif BOUCHELAGHEM -- cherifbouchelaghem@yahoo.fr */
3
+
4
+ jQuery(function($){
5
+ $.datepicker.regional['ar-DZ'] = {
6
+ closeText: 'إغلاق',
7
+ prevText: '&#x3c;السابق',
8
+ nextText: 'التالي&#x3e;',
9
+ currentText: 'اليوم',
10
+ monthNames: ['جانفي', 'فيفري', 'مارس', 'أفريل', 'ماي', 'جوان',
11
+ 'جويلية', 'أوت', 'سبتمبر','أكتوبر', 'نوفمبر', 'ديسمبر'],
12
+ monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
13
+ dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
14
+ dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
15
+ dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
16
+ weekHeader: 'أسبوع',
17
+ dateFormat: 'dd/mm/yy',
18
+ firstDay: 6,
19
+ isRTL: true,
20
+ showMonthAfterYear: false,
21
+ yearSuffix: ''};
22
+ $.datepicker.setDefaults($.datepicker.regional['ar-DZ']);
23
+ });
@@ -0,0 +1,2 @@
1
+ jQuery(function(a){a.datepicker.regional["ar-DZ"]={closeText:"إغلاق",prevText:"&#x3c;السابق",nextText:"التالي&#x3e;",currentText:"اليوم",monthNames:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["الأحد","الاثنين",
2
+ "الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:true,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional["ar-DZ"])});
@@ -0,0 +1,23 @@
1
+ /* English/Australia initialisation for the jQuery UI date picker plugin. */
2
+ /* Based on the en-GB initialisation. */
3
+ jQuery(function($){
4
+ $.datepicker.regional['en-AU'] = {
5
+ closeText: 'Done',
6
+ prevText: 'Prev',
7
+ nextText: 'Next',
8
+ currentText: 'Today',
9
+ monthNames: ['January','February','March','April','May','June',
10
+ 'July','August','September','October','November','December'],
11
+ monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
12
+ 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
13
+ dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
14
+ dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
15
+ dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
16
+ weekHeader: 'Wk',
17
+ dateFormat: 'dd/mm/yy',
18
+ firstDay: 1,
19
+ isRTL: false,
20
+ showMonthAfterYear: false,
21
+ yearSuffix: ''};
22
+ $.datepicker.setDefaults($.datepicker.regional['en-AU']);
23
+ });
@@ -0,0 +1,2 @@
1
+ jQuery(function(a){a.datepicker.regional["en-AU"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu",
2
+ "We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional["en-AU"])});
@@ -0,0 +1,23 @@
1
+ /* English/New Zealand initialisation for the jQuery UI date picker plugin. */
2
+ /* Based on the en-GB initialisation. */
3
+ jQuery(function($){
4
+ $.datepicker.regional['en-NZ'] = {
5
+ closeText: 'Done',
6
+ prevText: 'Prev',
7
+ nextText: 'Next',
8
+ currentText: 'Today',
9
+ monthNames: ['January','February','March','April','May','June',
10
+ 'July','August','September','October','November','December'],
11
+ monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
12
+ 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
13
+ dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
14
+ dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
15
+ dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
16
+ weekHeader: 'Wk',
17
+ dateFormat: 'dd/mm/yy',
18
+ firstDay: 1,
19
+ isRTL: false,
20
+ showMonthAfterYear: false,
21
+ yearSuffix: ''};
22
+ $.datepicker.setDefaults($.datepicker.regional['en-NZ']);
23
+ });
@@ -0,0 +1,2 @@
1
+ jQuery(function(a){a.datepicker.regional["en-NZ"]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu",
2
+ "We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional["en-NZ"])});
@@ -0,0 +1,23 @@
1
+ /* Malayalam (UTF-8) initialisation for the jQuery UI date picker plugin. */
2
+ /* Written by Saji Nediyanchath (saji89@gmail.com). */
3
+ jQuery(function($){
4
+ $.datepicker.regional['ml'] = {
5
+ closeText: 'ശരി',
6
+ prevText: 'മുന്നത്തെ',
7
+ nextText: 'അടുത്തത് ',
8
+ currentText: 'ഇന്ന്',
9
+ monthNames: ['ജനുവരി','ഫെബ്രുവരി','മാര്‍ച്ച്','ഏപ്രില്‍','മേയ്','ജൂണ്‍',
10
+ 'ജൂലൈ','ആഗസ്റ്റ്','സെപ്റ്റംബര്‍','ഒക്ടോബര്‍','നവംബര്‍','ഡിസംബര്‍'],
11
+ monthNamesShort: ['ജനു', 'ഫെബ്', 'മാര്‍', 'ഏപ്രി', 'മേയ്', 'ജൂണ്‍',
12
+ 'ജൂലാ', 'ആഗ', 'സെപ്', 'ഒക്ടോ', 'നവം', 'ഡിസ'],
13
+ dayNames: ['ഞായര്‍', 'തിങ്കള്‍', 'ചൊവ്വ', 'ബുധന്‍', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
14
+ dayNamesShort: ['ഞായ', 'തിങ്ക', 'ചൊവ്വ', 'ബുധ', 'വ്യാഴം', 'വെള്ളി', 'ശനി'],
15
+ dayNamesMin: ['ഞാ','തി','ചൊ','ബു','വ്യാ','വെ','ശ'],
16
+ weekHeader: 'ആ',
17
+ dateFormat: 'dd/mm/yy',
18
+ firstDay: 1,
19
+ isRTL: false,
20
+ showMonthAfterYear: false,
21
+ yearSuffix: ''};
22
+ $.datepicker.setDefaults($.datepicker.regional['ml']);
23
+ });
@@ -0,0 +1,2 @@
1
+ jQuery(function(a){a.datepicker.regional.ml={closeText:"ശരി",prevText:"മുന്നത്തെ",nextText:"അടുത്തത് ",currentText:"ഇന്ന്",monthNames:["ജനുവരി","ഫെബ്രുവരി","മാര്ച്ച്","ഏപ്രില്","മേയ്","ജൂണ്","ജൂലൈ","ആഗസ്റ്റ്","സെപ്റ്റംബര്","ഒക്ടോബര്","നവംബര്","ഡിസംബര്"],monthNamesShort:["ജനു","ഫെബ്","മാര്","ഏപ്രി","മേയ്","ജൂണ്","ജൂലാ","ആഗ","സെപ്","ഒക്ടോ","നവം","ഡിസ"],dayNames:["ഞായര്","തിങ്കള്","ചൊവ്വ","ബുധന്","വ്യാഴം","വെള്ളി","ശനി"],dayNamesShort:["ഞായ","തിങ്ക","ചൊവ്വ","ബുധ","വ്യാഴം","വെള്ളി","ശനി"],dayNamesMin:["ഞാ",
2
+ "തി","ചൊ","ബു","വ്യാ","വെ","ശ"],weekHeader:"ആ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ml)});
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * jQuery UI 1.8.7
2
+ * jQuery UI 1.8.9
3
3
  *
4
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
6
6
  * http://jquery.org/license
7
7
  *
@@ -18,7 +18,7 @@ if ( $.ui.version ) {
18
18
  }
19
19
 
20
20
  $.extend( $.ui, {
21
- version: "1.8.7",
21
+ version: "1.8.9",
22
22
 
23
23
  keyCode: {
24
24
  ALT: 18,
@@ -307,9 +307,9 @@ $.extend( $.ui, {
307
307
 
308
308
  })( jQuery );
309
309
  /*!
310
- * jQuery UI Widget 1.8.7
310
+ * jQuery UI Widget 1.8.9
311
311
  *
312
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
312
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
313
313
  * Dual licensed under the MIT or GPL Version 2 licenses.
314
314
  * http://jquery.org/license
315
315
  *
@@ -569,9 +569,9 @@ $.Widget.prototype = {
569
569
 
570
570
  })( jQuery );
571
571
  /*!
572
- * jQuery UI Mouse 1.8.7
572
+ * jQuery UI Mouse 1.8.9
573
573
  *
574
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
574
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
575
575
  * Dual licensed under the MIT or GPL Version 2 licenses.
576
576
  * http://jquery.org/license
577
577
  *
@@ -720,9 +720,9 @@ $.widget("ui.mouse", {
720
720
 
721
721
  })(jQuery);
722
722
  /*
723
- * jQuery UI Draggable 1.8.7
723
+ * jQuery UI Draggable 1.8.9
724
724
  *
725
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
725
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
726
726
  * Dual licensed under the MIT or GPL Version 2 licenses.
727
727
  * http://jquery.org/license
728
728
  *
@@ -913,8 +913,8 @@ $.widget("ui.draggable", $.ui.mouse, {
913
913
  this.dropped = false;
914
914
  }
915
915
 
916
- //if the original element is removed, don't bother to continue
917
- if(!this.element[0] || !this.element[0].parentNode)
916
+ //if the original element is removed, don't bother to continue if helper is set to "original"
917
+ if((!this.element[0] || !this.element[0].parentNode) && this.options.helper == "original")
918
918
  return false;
919
919
 
920
920
  if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
@@ -1180,7 +1180,7 @@ $.widget("ui.draggable", $.ui.mouse, {
1180
1180
  });
1181
1181
 
1182
1182
  $.extend($.ui.draggable, {
1183
- version: "1.8.7"
1183
+ version: "1.8.9"
1184
1184
  });
1185
1185
 
1186
1186
  $.ui.plugin.add("draggable", "connectToSortable", {
@@ -1517,9 +1517,9 @@ $.ui.plugin.add("draggable", "zIndex", {
1517
1517
 
1518
1518
  })(jQuery);
1519
1519
  /*
1520
- * jQuery UI Droppable 1.8.7
1520
+ * jQuery UI Droppable 1.8.9
1521
1521
  *
1522
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
1522
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
1523
1523
  * Dual licensed under the MIT or GPL Version 2 licenses.
1524
1524
  * http://jquery.org/license
1525
1525
  *
@@ -1665,7 +1665,7 @@ $.widget("ui.droppable", {
1665
1665
  });
1666
1666
 
1667
1667
  $.extend($.ui.droppable, {
1668
- version: "1.8.7"
1668
+ version: "1.8.9"
1669
1669
  });
1670
1670
 
1671
1671
  $.ui.intersect = function(draggable, droppable, toleranceMode) {
@@ -1802,9 +1802,9 @@ $.ui.ddmanager = {
1802
1802
 
1803
1803
  })(jQuery);
1804
1804
  /*
1805
- * jQuery UI Resizable 1.8.7
1805
+ * jQuery UI Resizable 1.8.9
1806
1806
  *
1807
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
1807
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
1808
1808
  * Dual licensed under the MIT or GPL Version 2 licenses.
1809
1809
  * http://jquery.org/license
1810
1810
  *
@@ -2322,7 +2322,7 @@ $.widget("ui.resizable", $.ui.mouse, {
2322
2322
  });
2323
2323
 
2324
2324
  $.extend($.ui.resizable, {
2325
- version: "1.8.7"
2325
+ version: "1.8.9"
2326
2326
  });
2327
2327
 
2328
2328
  /*
@@ -2614,9 +2614,9 @@ var isNumber = function(value) {
2614
2614
 
2615
2615
  })(jQuery);
2616
2616
  /*
2617
- * jQuery UI Selectable 1.8.7
2617
+ * jQuery UI Selectable 1.8.9
2618
2618
  *
2619
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
2619
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
2620
2620
  * Dual licensed under the MIT or GPL Version 2 licenses.
2621
2621
  * http://jquery.org/license
2622
2622
  *
@@ -2875,14 +2875,14 @@ $.widget("ui.selectable", $.ui.mouse, {
2875
2875
  });
2876
2876
 
2877
2877
  $.extend($.ui.selectable, {
2878
- version: "1.8.7"
2878
+ version: "1.8.9"
2879
2879
  });
2880
2880
 
2881
2881
  })(jQuery);
2882
2882
  /*
2883
- * jQuery UI Sortable 1.8.7
2883
+ * jQuery UI Sortable 1.8.9
2884
2884
  *
2885
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
2885
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
2886
2886
  * Dual licensed under the MIT or GPL Version 2 licenses.
2887
2887
  * http://jquery.org/license
2888
2888
  *
@@ -3241,7 +3241,7 @@ $.widget("ui.sortable", $.ui.mouse, {
3241
3241
 
3242
3242
  if(this.dragging) {
3243
3243
 
3244
- this._mouseUp();
3244
+ this._mouseUp({ target: null });
3245
3245
 
3246
3246
  if(this.options.helper == "original")
3247
3247
  this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
@@ -3259,21 +3259,23 @@ $.widget("ui.sortable", $.ui.mouse, {
3259
3259
 
3260
3260
  }
3261
3261
 
3262
- //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
3263
- if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
3264
- if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove();
3262
+ if (this.placeholder) {
3263
+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
3264
+ if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
3265
+ if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove();
3265
3266
 
3266
- $.extend(this, {
3267
- helper: null,
3268
- dragging: false,
3269
- reverting: false,
3270
- _noFinalSort: null
3271
- });
3267
+ $.extend(this, {
3268
+ helper: null,
3269
+ dragging: false,
3270
+ reverting: false,
3271
+ _noFinalSort: null
3272
+ });
3272
3273
 
3273
- if(this.domPosition.prev) {
3274
- $(this.domPosition.prev).after(this.currentItem);
3275
- } else {
3276
- $(this.domPosition.parent).prepend(this.currentItem);
3274
+ if(this.domPosition.prev) {
3275
+ $(this.domPosition.prev).after(this.currentItem);
3276
+ } else {
3277
+ $(this.domPosition.parent).prepend(this.currentItem);
3278
+ }
3277
3279
  }
3278
3280
 
3279
3281
  return this;
@@ -3946,14 +3948,14 @@ $.widget("ui.sortable", $.ui.mouse, {
3946
3948
  });
3947
3949
 
3948
3950
  $.extend($.ui.sortable, {
3949
- version: "1.8.7"
3951
+ version: "1.8.9"
3950
3952
  });
3951
3953
 
3952
3954
  })(jQuery);
3953
3955
  /*
3954
- * jQuery UI Effects 1.8.7
3956
+ * jQuery UI Effects 1.8.9
3955
3957
  *
3956
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
3958
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
3957
3959
  * Dual licensed under the MIT or GPL Version 2 licenses.
3958
3960
  * http://jquery.org/license
3959
3961
  *
@@ -4183,43 +4185,41 @@ $.effects.animateClass = function(value, duration, easing, callback) {
4183
4185
  easing = null;
4184
4186
  }
4185
4187
 
4186
- return this.each(function() {
4187
- $.queue(this, 'fx', function() {
4188
- var that = $(this),
4189
- originalStyleAttr = that.attr('style') || ' ',
4190
- originalStyle = filterStyles(getElementStyles.call(this)),
4191
- newStyle,
4192
- className = that.attr('className');
4188
+ return this.queue('fx', function() {
4189
+ var that = $(this),
4190
+ originalStyleAttr = that.attr('style') || ' ',
4191
+ originalStyle = filterStyles(getElementStyles.call(this)),
4192
+ newStyle,
4193
+ className = that.attr('className');
4193
4194
 
4194
- $.each(classAnimationActions, function(i, action) {
4195
- if (value[action]) {
4196
- that[action + 'Class'](value[action]);
4197
- }
4198
- });
4199
- newStyle = filterStyles(getElementStyles.call(this));
4200
- that.attr('className', className);
4195
+ $.each(classAnimationActions, function(i, action) {
4196
+ if (value[action]) {
4197
+ that[action + 'Class'](value[action]);
4198
+ }
4199
+ });
4200
+ newStyle = filterStyles(getElementStyles.call(this));
4201
+ that.attr('className', className);
4201
4202
 
4202
- that.animate(styleDifference(originalStyle, newStyle), duration, easing, function() {
4203
- $.each(classAnimationActions, function(i, action) {
4204
- if (value[action]) { that[action + 'Class'](value[action]); }
4205
- });
4206
- // work around bug in IE by clearing the cssText before setting it
4207
- if (typeof that.attr('style') == 'object') {
4208
- that.attr('style').cssText = '';
4209
- that.attr('style').cssText = originalStyleAttr;
4210
- } else {
4211
- that.attr('style', originalStyleAttr);
4212
- }
4213
- if (callback) { callback.apply(this, arguments); }
4203
+ that.animate(styleDifference(originalStyle, newStyle), duration, easing, function() {
4204
+ $.each(classAnimationActions, function(i, action) {
4205
+ if (value[action]) { that[action + 'Class'](value[action]); }
4214
4206
  });
4215
-
4216
- // $.animate adds a function to the end of the queue
4217
- // but we want it at the front
4218
- var queue = $.queue(this),
4219
- anim = queue.splice(queue.length - 1, 1)[0];
4220
- queue.splice(1, 0, anim);
4221
- $.dequeue(this);
4207
+ // work around bug in IE by clearing the cssText before setting it
4208
+ if (typeof that.attr('style') == 'object') {
4209
+ that.attr('style').cssText = '';
4210
+ that.attr('style').cssText = originalStyleAttr;
4211
+ } else {
4212
+ that.attr('style', originalStyleAttr);
4213
+ }
4214
+ if (callback) { callback.apply(this, arguments); }
4222
4215
  });
4216
+
4217
+ // $.animate adds a function to the end of the queue
4218
+ // but we want it at the front
4219
+ var queue = $.queue(this),
4220
+ anim = queue.splice(queue.length - 1, 1)[0];
4221
+ queue.splice(1, 0, anim);
4222
+ $.dequeue(this);
4223
4223
  });
4224
4224
  };
4225
4225
 
@@ -4261,7 +4261,7 @@ $.fn.extend({
4261
4261
  /******************************************************************************/
4262
4262
 
4263
4263
  $.extend($.effects, {
4264
- version: "1.8.7",
4264
+ version: "1.8.9",
4265
4265
 
4266
4266
  // Saves a set of properties in a data storage
4267
4267
  save: function(element, set) {
@@ -4342,7 +4342,7 @@ $.extend($.effects, {
4342
4342
  props[pos] = 'auto';
4343
4343
  }
4344
4344
  });
4345
- element.css({position: 'relative', top: 0, left: 0 });
4345
+ element.css({position: 'relative', top: 0, left: 0, right: 'auto', bottom: 'auto' });
4346
4346
  }
4347
4347
 
4348
4348
  return wrapper.css(props).show();
@@ -4700,9 +4700,9 @@ $.extend($.easing,
4700
4700
 
4701
4701
  })(jQuery);
4702
4702
  /*
4703
- * jQuery UI Effects Blind 1.8.7
4703
+ * jQuery UI Effects Blind 1.8.9
4704
4704
  *
4705
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4705
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
4706
4706
  * Dual licensed under the MIT or GPL Version 2 licenses.
4707
4707
  * http://jquery.org/license
4708
4708
  *
@@ -4718,7 +4718,7 @@ $.effects.blind = function(o) {
4718
4718
  return this.queue(function() {
4719
4719
 
4720
4720
  // Create element
4721
- var el = $(this), props = ['position','top','left'];
4721
+ var el = $(this), props = ['position','top','bottom','left','right'];
4722
4722
 
4723
4723
  // Set options
4724
4724
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -4749,9 +4749,9 @@ $.effects.blind = function(o) {
4749
4749
 
4750
4750
  })(jQuery);
4751
4751
  /*
4752
- * jQuery UI Effects Bounce 1.8.7
4752
+ * jQuery UI Effects Bounce 1.8.9
4753
4753
  *
4754
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4754
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
4755
4755
  * Dual licensed under the MIT or GPL Version 2 licenses.
4756
4756
  * http://jquery.org/license
4757
4757
  *
@@ -4767,7 +4767,7 @@ $.effects.bounce = function(o) {
4767
4767
  return this.queue(function() {
4768
4768
 
4769
4769
  // Create element
4770
- var el = $(this), props = ['position','top','left'];
4770
+ var el = $(this), props = ['position','top','bottom','left','right'];
4771
4771
 
4772
4772
  // Set options
4773
4773
  var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
@@ -4827,9 +4827,9 @@ $.effects.bounce = function(o) {
4827
4827
 
4828
4828
  })(jQuery);
4829
4829
  /*
4830
- * jQuery UI Effects Clip 1.8.7
4830
+ * jQuery UI Effects Clip 1.8.9
4831
4831
  *
4832
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4832
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
4833
4833
  * Dual licensed under the MIT or GPL Version 2 licenses.
4834
4834
  * http://jquery.org/license
4835
4835
  *
@@ -4845,7 +4845,7 @@ $.effects.clip = function(o) {
4845
4845
  return this.queue(function() {
4846
4846
 
4847
4847
  // Create element
4848
- var el = $(this), props = ['position','top','left','height','width'];
4848
+ var el = $(this), props = ['position','top','bottom','left','right','height','width'];
4849
4849
 
4850
4850
  // Set options
4851
4851
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -4881,9 +4881,9 @@ $.effects.clip = function(o) {
4881
4881
 
4882
4882
  })(jQuery);
4883
4883
  /*
4884
- * jQuery UI Effects Drop 1.8.7
4884
+ * jQuery UI Effects Drop 1.8.9
4885
4885
  *
4886
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4886
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
4887
4887
  * Dual licensed under the MIT or GPL Version 2 licenses.
4888
4888
  * http://jquery.org/license
4889
4889
  *
@@ -4899,7 +4899,7 @@ $.effects.drop = function(o) {
4899
4899
  return this.queue(function() {
4900
4900
 
4901
4901
  // Create element
4902
- var el = $(this), props = ['position','top','left','opacity'];
4902
+ var el = $(this), props = ['position','top','bottom','left','right','opacity'];
4903
4903
 
4904
4904
  // Set options
4905
4905
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -4931,9 +4931,9 @@ $.effects.drop = function(o) {
4931
4931
 
4932
4932
  })(jQuery);
4933
4933
  /*
4934
- * jQuery UI Effects Explode 1.8.7
4934
+ * jQuery UI Effects Explode 1.8.9
4935
4935
  *
4936
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
4936
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
4937
4937
  * Dual licensed under the MIT or GPL Version 2 licenses.
4938
4938
  * http://jquery.org/license
4939
4939
  *
@@ -5010,9 +5010,9 @@ $.effects.explode = function(o) {
5010
5010
 
5011
5011
  })(jQuery);
5012
5012
  /*
5013
- * jQuery UI Effects Fade 1.8.7
5013
+ * jQuery UI Effects Fade 1.8.9
5014
5014
  *
5015
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5015
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5016
5016
  * Dual licensed under the MIT or GPL Version 2 licenses.
5017
5017
  * http://jquery.org/license
5018
5018
  *
@@ -5042,9 +5042,9 @@ $.effects.fade = function(o) {
5042
5042
 
5043
5043
  })(jQuery);
5044
5044
  /*
5045
- * jQuery UI Effects Fold 1.8.7
5045
+ * jQuery UI Effects Fold 1.8.9
5046
5046
  *
5047
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5047
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5048
5048
  * Dual licensed under the MIT or GPL Version 2 licenses.
5049
5049
  * http://jquery.org/license
5050
5050
  *
@@ -5060,7 +5060,7 @@ $.effects.fold = function(o) {
5060
5060
  return this.queue(function() {
5061
5061
 
5062
5062
  // Create element
5063
- var el = $(this), props = ['position','top','left'];
5063
+ var el = $(this), props = ['position','top','bottom','left','right'];
5064
5064
 
5065
5065
  // Set options
5066
5066
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -5098,9 +5098,9 @@ $.effects.fold = function(o) {
5098
5098
 
5099
5099
  })(jQuery);
5100
5100
  /*
5101
- * jQuery UI Effects Highlight 1.8.7
5101
+ * jQuery UI Effects Highlight 1.8.9
5102
5102
  *
5103
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5103
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5104
5104
  * Dual licensed under the MIT or GPL Version 2 licenses.
5105
5105
  * http://jquery.org/license
5106
5106
  *
@@ -5148,9 +5148,9 @@ $.effects.highlight = function(o) {
5148
5148
 
5149
5149
  })(jQuery);
5150
5150
  /*
5151
- * jQuery UI Effects Pulsate 1.8.7
5151
+ * jQuery UI Effects Pulsate 1.8.9
5152
5152
  *
5153
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5153
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5154
5154
  * Dual licensed under the MIT or GPL Version 2 licenses.
5155
5155
  * http://jquery.org/license
5156
5156
  *
@@ -5199,9 +5199,9 @@ $.effects.pulsate = function(o) {
5199
5199
 
5200
5200
  })(jQuery);
5201
5201
  /*
5202
- * jQuery UI Effects Scale 1.8.7
5202
+ * jQuery UI Effects Scale 1.8.9
5203
5203
  *
5204
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5204
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5205
5205
  * Dual licensed under the MIT or GPL Version 2 licenses.
5206
5206
  * http://jquery.org/license
5207
5207
  *
@@ -5284,8 +5284,8 @@ $.effects.size = function(o) {
5284
5284
  return this.queue(function() {
5285
5285
 
5286
5286
  // Create element
5287
- var el = $(this), props = ['position','top','left','width','height','overflow','opacity'];
5288
- var props1 = ['position','top','left','overflow','opacity']; // Always restore
5287
+ var el = $(this), props = ['position','top','bottom','left','right','width','height','overflow','opacity'];
5288
+ var props1 = ['position','top','bottom','left','right','overflow','opacity']; // Always restore
5289
5289
  var props2 = ['width','height','overflow']; // Copy for children
5290
5290
  var cProps = ['fontSize'];
5291
5291
  var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
@@ -5377,9 +5377,9 @@ $.effects.size = function(o) {
5377
5377
 
5378
5378
  })(jQuery);
5379
5379
  /*
5380
- * jQuery UI Effects Shake 1.8.7
5380
+ * jQuery UI Effects Shake 1.8.9
5381
5381
  *
5382
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5382
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5383
5383
  * Dual licensed under the MIT or GPL Version 2 licenses.
5384
5384
  * http://jquery.org/license
5385
5385
  *
@@ -5395,7 +5395,7 @@ $.effects.shake = function(o) {
5395
5395
  return this.queue(function() {
5396
5396
 
5397
5397
  // Create element
5398
- var el = $(this), props = ['position','top','left'];
5398
+ var el = $(this), props = ['position','top','bottom','left','right'];
5399
5399
 
5400
5400
  // Set options
5401
5401
  var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
@@ -5434,9 +5434,9 @@ $.effects.shake = function(o) {
5434
5434
 
5435
5435
  })(jQuery);
5436
5436
  /*
5437
- * jQuery UI Effects Slide 1.8.7
5437
+ * jQuery UI Effects Slide 1.8.9
5438
5438
  *
5439
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5439
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5440
5440
  * Dual licensed under the MIT or GPL Version 2 licenses.
5441
5441
  * http://jquery.org/license
5442
5442
  *
@@ -5452,7 +5452,7 @@ $.effects.slide = function(o) {
5452
5452
  return this.queue(function() {
5453
5453
 
5454
5454
  // Create element
5455
- var el = $(this), props = ['position','top','left'];
5455
+ var el = $(this), props = ['position','top','bottom','left','right'];
5456
5456
 
5457
5457
  // Set options
5458
5458
  var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
@@ -5484,9 +5484,9 @@ $.effects.slide = function(o) {
5484
5484
 
5485
5485
  })(jQuery);
5486
5486
  /*
5487
- * jQuery UI Effects Transfer 1.8.7
5487
+ * jQuery UI Effects Transfer 1.8.9
5488
5488
  *
5489
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5489
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5490
5490
  * Dual licensed under the MIT or GPL Version 2 licenses.
5491
5491
  * http://jquery.org/license
5492
5492
  *
@@ -5529,9 +5529,9 @@ $.effects.transfer = function(o) {
5529
5529
 
5530
5530
  })(jQuery);
5531
5531
  /*
5532
- * jQuery UI Accordion 1.8.7
5532
+ * jQuery UI Accordion 1.8.9
5533
5533
  *
5534
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
5534
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5535
5535
  * Dual licensed under the MIT or GPL Version 2 licenses.
5536
5536
  * http://jquery.org/license
5537
5537
  *
@@ -5877,8 +5877,26 @@ $.widget( "ui.accordion", {
5877
5877
  return;
5878
5878
  }
5879
5879
 
5880
+ // find elements to show and hide
5881
+ var active = this.active,
5882
+ toShow = clicked.next(),
5883
+ toHide = this.active.next(),
5884
+ data = {
5885
+ options: options,
5886
+ newHeader: clickedIsActive && options.collapsible ? $([]) : clicked,
5887
+ oldHeader: this.active,
5888
+ newContent: clickedIsActive && options.collapsible ? $([]) : toShow,
5889
+ oldContent: toHide
5890
+ },
5891
+ down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );
5892
+
5893
+ // when the call to ._toggle() comes after the class changes
5894
+ // it causes a very odd bug in IE 8 (see #6720)
5895
+ this.active = clickedIsActive ? $([]) : clicked;
5896
+ this._toggle( toShow, toHide, data, clickedIsActive, down );
5897
+
5880
5898
  // switch classes
5881
- this.active
5899
+ active
5882
5900
  .removeClass( "ui-state-active ui-corner-top" )
5883
5901
  .addClass( "ui-state-default ui-corner-all" )
5884
5902
  .children( ".ui-icon" )
@@ -5896,21 +5914,6 @@ $.widget( "ui.accordion", {
5896
5914
  .addClass( "ui-accordion-content-active" );
5897
5915
  }
5898
5916
 
5899
- // find elements to show and hide
5900
- var toShow = clicked.next(),
5901
- toHide = this.active.next(),
5902
- data = {
5903
- options: options,
5904
- newHeader: clickedIsActive && options.collapsible ? $([]) : clicked,
5905
- oldHeader: this.active,
5906
- newContent: clickedIsActive && options.collapsible ? $([]) : toShow,
5907
- oldContent: toHide
5908
- },
5909
- down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );
5910
-
5911
- this.active = clickedIsActive ? $([]) : clicked;
5912
- this._toggle( toShow, toHide, data, clickedIsActive, down );
5913
-
5914
5917
  return;
5915
5918
  },
5916
5919
 
@@ -6030,13 +6033,17 @@ $.widget( "ui.accordion", {
6030
6033
 
6031
6034
  // other classes are removed before the animation; this one needs to stay until completed
6032
6035
  this.toHide.removeClass( "ui-accordion-content-active" );
6036
+ // Work around for rendering bug in IE (#5421)
6037
+ if ( this.toHide.length ) {
6038
+ this.toHide.parent()[0].className = this.toHide.parent()[0].className;
6039
+ }
6033
6040
 
6034
6041
  this._trigger( "change", null, this.data );
6035
6042
  }
6036
6043
  });
6037
6044
 
6038
6045
  $.extend( $.ui.accordion, {
6039
- version: "1.8.7",
6046
+ version: "1.8.9",
6040
6047
  animations: {
6041
6048
  slide: function( options, additions ) {
6042
6049
  options = $.extend({
@@ -6128,9 +6135,9 @@ $.extend( $.ui.accordion, {
6128
6135
 
6129
6136
  })( jQuery );
6130
6137
  /*
6131
- * jQuery UI Autocomplete 1.8.7
6138
+ * jQuery UI Autocomplete 1.8.9
6132
6139
  *
6133
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
6140
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
6134
6141
  * Dual licensed under the MIT or GPL Version 2 licenses.
6135
6142
  * http://jquery.org/license
6136
6143
  *
@@ -6155,6 +6162,9 @@ $.widget( "ui.autocomplete", {
6155
6162
  },
6156
6163
  source: null
6157
6164
  },
6165
+
6166
+ pending: 0,
6167
+
6158
6168
  _create: function() {
6159
6169
  var self = this,
6160
6170
  doc = this.element[ 0 ].ownerDocument,
@@ -6358,6 +6368,9 @@ $.widget( "ui.autocomplete", {
6358
6368
  if ( key === "appendTo" ) {
6359
6369
  this.menu.element.appendTo( $( value || "body", this.element[0].ownerDocument )[0] )
6360
6370
  }
6371
+ if ( key === "disabled" && value && this.xhr ) {
6372
+ this.xhr.abort();
6373
+ }
6361
6374
  },
6362
6375
 
6363
6376
  _initSource: function() {
@@ -6372,7 +6385,7 @@ $.widget( "ui.autocomplete", {
6372
6385
  } else if ( typeof this.options.source === "string" ) {
6373
6386
  url = this.options.source;
6374
6387
  this.source = function( request, response ) {
6375
- if (self.xhr) {
6388
+ if ( self.xhr ) {
6376
6389
  self.xhr.abort();
6377
6390
  }
6378
6391
  self.xhr = $.ajax({
@@ -6417,20 +6430,24 @@ $.widget( "ui.autocomplete", {
6417
6430
  },
6418
6431
 
6419
6432
  _search: function( value ) {
6433
+ this.pending++;
6420
6434
  this.element.addClass( "ui-autocomplete-loading" );
6421
6435
 
6422
6436
  this.source( { term: value }, this.response );
6423
6437
  },
6424
6438
 
6425
6439
  _response: function( content ) {
6426
- if ( content && content.length ) {
6440
+ if ( !this.options.disabled && content && content.length ) {
6427
6441
  content = this._normalize( content );
6428
6442
  this._suggest( content );
6429
6443
  this._trigger( "open" );
6430
6444
  } else {
6431
6445
  this.close();
6432
6446
  }
6433
- this.element.removeClass( "ui-autocomplete-loading" );
6447
+ this.pending--;
6448
+ if ( !this.pending ) {
6449
+ this.element.removeClass( "ui-autocomplete-loading" );
6450
+ }
6434
6451
  },
6435
6452
 
6436
6453
  close: function( event ) {
@@ -6723,9 +6740,9 @@ $.widget("ui.menu", {
6723
6740
 
6724
6741
  }(jQuery));
6725
6742
  /*
6726
- * jQuery UI Button 1.8.7
6743
+ * jQuery UI Button 1.8.9
6727
6744
  *
6728
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
6745
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
6729
6746
  * Dual licensed under the MIT or GPL Version 2 licenses.
6730
6747
  * http://jquery.org/license
6731
6748
  *
@@ -7096,9 +7113,9 @@ $.widget( "ui.buttonset", {
7096
7113
 
7097
7114
  }( jQuery ) );
7098
7115
  /*
7099
- * jQuery UI Datepicker 1.8.7
7116
+ * jQuery UI Datepicker 1.8.9
7100
7117
  *
7101
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
7118
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
7102
7119
  * Dual licensed under the MIT or GPL Version 2 licenses.
7103
7120
  * http://jquery.org/license
7104
7121
  *
@@ -7109,7 +7126,7 @@ $.widget( "ui.buttonset", {
7109
7126
  */
7110
7127
  (function( $, undefined ) {
7111
7128
 
7112
- $.extend($.ui, { datepicker: { version: "1.8.7" } });
7129
+ $.extend($.ui, { datepicker: { version: "1.8.9" } });
7113
7130
 
7114
7131
  var PROP_NAME = 'datepicker';
7115
7132
  var dpuuid = new Date().getTime();
@@ -8063,6 +8080,8 @@ $.extend(Datepicker.prototype, {
8063
8080
  if (value == '')
8064
8081
  return null;
8065
8082
  var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
8083
+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
8084
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
8066
8085
  var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
8067
8086
  var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
8068
8087
  var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
@@ -8845,7 +8864,7 @@ $.fn.datepicker = function(options){
8845
8864
  $.datepicker = new Datepicker(); // singleton instance
8846
8865
  $.datepicker.initialized = false;
8847
8866
  $.datepicker.uuid = new Date().getTime();
8848
- $.datepicker.version = "1.8.7";
8867
+ $.datepicker.version = "1.8.9";
8849
8868
 
8850
8869
  // Workaround for #4055
8851
8870
  // Add another global to avoid noConflict issues with inline event handlers
@@ -8853,9 +8872,9 @@ window['DP_jQuery_' + dpuuid] = $;
8853
8872
 
8854
8873
  })(jQuery);
8855
8874
  /*
8856
- * jQuery UI Dialog 1.8.7
8875
+ * jQuery UI Dialog 1.8.9
8857
8876
  *
8858
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
8877
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
8859
8878
  * Dual licensed under the MIT or GPL Version 2 licenses.
8860
8879
  * http://jquery.org/license
8861
8880
  *
@@ -9535,7 +9554,7 @@ $.widget("ui.dialog", {
9535
9554
  });
9536
9555
 
9537
9556
  $.extend($.ui.dialog, {
9538
- version: "1.8.7",
9557
+ version: "1.8.9",
9539
9558
 
9540
9559
  uuid: 0,
9541
9560
  maxZ: 0,
@@ -9710,9 +9729,9 @@ $.extend($.ui.dialog.overlay.prototype, {
9710
9729
 
9711
9730
  }(jQuery));
9712
9731
  /*
9713
- * jQuery UI Position 1.8.7
9732
+ * jQuery UI Position 1.8.9
9714
9733
  *
9715
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
9734
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
9716
9735
  * Dual licensed under the MIT or GPL Version 2 licenses.
9717
9736
  * http://jquery.org/license
9718
9737
  *
@@ -9794,7 +9813,7 @@ $.fn.position = function( options ) {
9794
9813
 
9795
9814
  if ( options.at[0] === "right" ) {
9796
9815
  basePosition.left += targetWidth;
9797
- } else if (options.at[0] === center ) {
9816
+ } else if ( options.at[0] === center ) {
9798
9817
  basePosition.left += targetWidth / 2;
9799
9818
  }
9800
9819
 
@@ -9814,9 +9833,9 @@ $.fn.position = function( options ) {
9814
9833
  marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
9815
9834
  marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
9816
9835
  collisionWidth = elemWidth + marginLeft +
9817
- parseInt( $.curCSS( this, "marginRight", true ) ) || 0,
9836
+ ( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ),
9818
9837
  collisionHeight = elemHeight + marginTop +
9819
- parseInt( $.curCSS( this, "marginBottom", true ) ) || 0,
9838
+ ( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ),
9820
9839
  position = $.extend( {}, basePosition ),
9821
9840
  collisionPosition;
9822
9841
 
@@ -9962,9 +9981,9 @@ if ( !$.offset.setOffset ) {
9962
9981
 
9963
9982
  }( jQuery ));
9964
9983
  /*
9965
- * jQuery UI Progressbar 1.8.7
9984
+ * jQuery UI Progressbar 1.8.9
9966
9985
  *
9967
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
9986
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
9968
9987
  * Dual licensed under the MIT or GPL Version 2 licenses.
9969
9988
  * http://jquery.org/license
9970
9989
  *
@@ -10065,14 +10084,14 @@ $.widget( "ui.progressbar", {
10065
10084
  });
10066
10085
 
10067
10086
  $.extend( $.ui.progressbar, {
10068
- version: "1.8.7"
10087
+ version: "1.8.9"
10069
10088
  });
10070
10089
 
10071
10090
  })( jQuery );
10072
10091
  /*
10073
- * jQuery UI Slider 1.8.7
10092
+ * jQuery UI Slider 1.8.9
10074
10093
  *
10075
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
10094
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
10076
10095
  * Dual licensed under the MIT or GPL Version 2 licenses.
10077
10096
  * http://jquery.org/license
10078
10097
  *
@@ -10747,14 +10766,14 @@ $.widget( "ui.slider", $.ui.mouse, {
10747
10766
  });
10748
10767
 
10749
10768
  $.extend( $.ui.slider, {
10750
- version: "1.8.7"
10769
+ version: "1.8.9"
10751
10770
  });
10752
10771
 
10753
10772
  }(jQuery));
10754
10773
  /*
10755
- * jQuery UI Tabs 1.8.7
10774
+ * jQuery UI Tabs 1.8.9
10756
10775
  *
10757
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
10776
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
10758
10777
  * Dual licensed under the MIT or GPL Version 2 licenses.
10759
10778
  * http://jquery.org/license
10760
10779
  *
@@ -10969,7 +10988,7 @@ $.widget( "ui.tabs", {
10969
10988
  // seems to be expected behavior that the show callback is fired
10970
10989
  self.element.queue( "tabs", function() {
10971
10990
  self._trigger( "show", null,
10972
- self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ) ) );
10991
+ self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) )[ 0 ] ) );
10973
10992
  });
10974
10993
 
10975
10994
  this.load( o.selected );
@@ -11451,7 +11470,7 @@ $.widget( "ui.tabs", {
11451
11470
  });
11452
11471
 
11453
11472
  $.extend( $.ui.tabs, {
11454
- version: "1.8.7"
11473
+ version: "1.8.9"
11455
11474
  });
11456
11475
 
11457
11476
  /*
@@ -11512,9 +11531,9 @@ $.extend( $.ui.tabs.prototype, {
11512
11531
 
11513
11532
 
11514
11533
  /*
11515
- * jQuery UI Effects Blind 1.8.7
11534
+ * jQuery UI Effects Blind 1.8.9
11516
11535
  *
11517
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
11536
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
11518
11537
  * Dual licensed under the MIT or GPL Version 2 licenses.
11519
11538
  * http://jquery.org/license
11520
11539
  *
@@ -11530,7 +11549,7 @@ $.effects.blind = function(o) {
11530
11549
  return this.queue(function() {
11531
11550
 
11532
11551
  // Create element
11533
- var el = $(this), props = ['position','top','left'];
11552
+ var el = $(this), props = ['position','top','bottom','left','right'];
11534
11553
 
11535
11554
  // Set options
11536
11555
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -11563,9 +11582,9 @@ $.effects.blind = function(o) {
11563
11582
 
11564
11583
 
11565
11584
  /*
11566
- * jQuery UI Effects Bounce 1.8.7
11585
+ * jQuery UI Effects Bounce 1.8.9
11567
11586
  *
11568
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
11587
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
11569
11588
  * Dual licensed under the MIT or GPL Version 2 licenses.
11570
11589
  * http://jquery.org/license
11571
11590
  *
@@ -11581,7 +11600,7 @@ $.effects.bounce = function(o) {
11581
11600
  return this.queue(function() {
11582
11601
 
11583
11602
  // Create element
11584
- var el = $(this), props = ['position','top','left'];
11603
+ var el = $(this), props = ['position','top','bottom','left','right'];
11585
11604
 
11586
11605
  // Set options
11587
11606
  var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
@@ -11643,9 +11662,9 @@ $.effects.bounce = function(o) {
11643
11662
 
11644
11663
 
11645
11664
  /*
11646
- * jQuery UI Effects Clip 1.8.7
11665
+ * jQuery UI Effects Clip 1.8.9
11647
11666
  *
11648
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
11667
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
11649
11668
  * Dual licensed under the MIT or GPL Version 2 licenses.
11650
11669
  * http://jquery.org/license
11651
11670
  *
@@ -11661,7 +11680,7 @@ $.effects.clip = function(o) {
11661
11680
  return this.queue(function() {
11662
11681
 
11663
11682
  // Create element
11664
- var el = $(this), props = ['position','top','left','height','width'];
11683
+ var el = $(this), props = ['position','top','bottom','left','right','height','width'];
11665
11684
 
11666
11685
  // Set options
11667
11686
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -11699,9 +11718,9 @@ $.effects.clip = function(o) {
11699
11718
 
11700
11719
 
11701
11720
  /*
11702
- * jQuery UI Effects 1.8.7
11721
+ * jQuery UI Effects 1.8.9
11703
11722
  *
11704
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
11723
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
11705
11724
  * Dual licensed under the MIT or GPL Version 2 licenses.
11706
11725
  * http://jquery.org/license
11707
11726
  *
@@ -11931,43 +11950,41 @@ $.effects.animateClass = function(value, duration, easing, callback) {
11931
11950
  easing = null;
11932
11951
  }
11933
11952
 
11934
- return this.each(function() {
11935
- $.queue(this, 'fx', function() {
11936
- var that = $(this),
11937
- originalStyleAttr = that.attr('style') || ' ',
11938
- originalStyle = filterStyles(getElementStyles.call(this)),
11939
- newStyle,
11940
- className = that.attr('className');
11953
+ return this.queue('fx', function() {
11954
+ var that = $(this),
11955
+ originalStyleAttr = that.attr('style') || ' ',
11956
+ originalStyle = filterStyles(getElementStyles.call(this)),
11957
+ newStyle,
11958
+ className = that.attr('className');
11941
11959
 
11942
- $.each(classAnimationActions, function(i, action) {
11943
- if (value[action]) {
11944
- that[action + 'Class'](value[action]);
11945
- }
11946
- });
11947
- newStyle = filterStyles(getElementStyles.call(this));
11948
- that.attr('className', className);
11960
+ $.each(classAnimationActions, function(i, action) {
11961
+ if (value[action]) {
11962
+ that[action + 'Class'](value[action]);
11963
+ }
11964
+ });
11965
+ newStyle = filterStyles(getElementStyles.call(this));
11966
+ that.attr('className', className);
11949
11967
 
11950
- that.animate(styleDifference(originalStyle, newStyle), duration, easing, function() {
11951
- $.each(classAnimationActions, function(i, action) {
11952
- if (value[action]) { that[action + 'Class'](value[action]); }
11953
- });
11954
- // work around bug in IE by clearing the cssText before setting it
11955
- if (typeof that.attr('style') == 'object') {
11956
- that.attr('style').cssText = '';
11957
- that.attr('style').cssText = originalStyleAttr;
11958
- } else {
11959
- that.attr('style', originalStyleAttr);
11960
- }
11961
- if (callback) { callback.apply(this, arguments); }
11968
+ that.animate(styleDifference(originalStyle, newStyle), duration, easing, function() {
11969
+ $.each(classAnimationActions, function(i, action) {
11970
+ if (value[action]) { that[action + 'Class'](value[action]); }
11962
11971
  });
11963
-
11964
- // $.animate adds a function to the end of the queue
11965
- // but we want it at the front
11966
- var queue = $.queue(this),
11967
- anim = queue.splice(queue.length - 1, 1)[0];
11968
- queue.splice(1, 0, anim);
11969
- $.dequeue(this);
11972
+ // work around bug in IE by clearing the cssText before setting it
11973
+ if (typeof that.attr('style') == 'object') {
11974
+ that.attr('style').cssText = '';
11975
+ that.attr('style').cssText = originalStyleAttr;
11976
+ } else {
11977
+ that.attr('style', originalStyleAttr);
11978
+ }
11979
+ if (callback) { callback.apply(this, arguments); }
11970
11980
  });
11981
+
11982
+ // $.animate adds a function to the end of the queue
11983
+ // but we want it at the front
11984
+ var queue = $.queue(this),
11985
+ anim = queue.splice(queue.length - 1, 1)[0];
11986
+ queue.splice(1, 0, anim);
11987
+ $.dequeue(this);
11971
11988
  });
11972
11989
  };
11973
11990
 
@@ -12009,7 +12026,7 @@ $.fn.extend({
12009
12026
  /******************************************************************************/
12010
12027
 
12011
12028
  $.extend($.effects, {
12012
- version: "1.8.7",
12029
+ version: "1.8.9",
12013
12030
 
12014
12031
  // Saves a set of properties in a data storage
12015
12032
  save: function(element, set) {
@@ -12090,7 +12107,7 @@ $.extend($.effects, {
12090
12107
  props[pos] = 'auto';
12091
12108
  }
12092
12109
  });
12093
- element.css({position: 'relative', top: 0, left: 0 });
12110
+ element.css({position: 'relative', top: 0, left: 0, right: 'auto', bottom: 'auto' });
12094
12111
  }
12095
12112
 
12096
12113
  return wrapper.css(props).show();
@@ -12450,9 +12467,9 @@ $.extend($.easing,
12450
12467
 
12451
12468
 
12452
12469
  /*
12453
- * jQuery UI Effects Drop 1.8.7
12470
+ * jQuery UI Effects Drop 1.8.9
12454
12471
  *
12455
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12472
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12456
12473
  * Dual licensed under the MIT or GPL Version 2 licenses.
12457
12474
  * http://jquery.org/license
12458
12475
  *
@@ -12468,7 +12485,7 @@ $.effects.drop = function(o) {
12468
12485
  return this.queue(function() {
12469
12486
 
12470
12487
  // Create element
12471
- var el = $(this), props = ['position','top','left','opacity'];
12488
+ var el = $(this), props = ['position','top','bottom','left','right','opacity'];
12472
12489
 
12473
12490
  // Set options
12474
12491
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -12502,9 +12519,9 @@ $.effects.drop = function(o) {
12502
12519
 
12503
12520
 
12504
12521
  /*
12505
- * jQuery UI Effects Explode 1.8.7
12522
+ * jQuery UI Effects Explode 1.8.9
12506
12523
  *
12507
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12524
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12508
12525
  * Dual licensed under the MIT or GPL Version 2 licenses.
12509
12526
  * http://jquery.org/license
12510
12527
  *
@@ -12583,9 +12600,9 @@ $.effects.explode = function(o) {
12583
12600
 
12584
12601
 
12585
12602
  /*
12586
- * jQuery UI Effects Fade 1.8.7
12603
+ * jQuery UI Effects Fade 1.8.9
12587
12604
  *
12588
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12605
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12589
12606
  * Dual licensed under the MIT or GPL Version 2 licenses.
12590
12607
  * http://jquery.org/license
12591
12608
  *
@@ -12617,9 +12634,9 @@ $.effects.fade = function(o) {
12617
12634
 
12618
12635
 
12619
12636
  /*
12620
- * jQuery UI Effects Fold 1.8.7
12637
+ * jQuery UI Effects Fold 1.8.9
12621
12638
  *
12622
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12639
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12623
12640
  * Dual licensed under the MIT or GPL Version 2 licenses.
12624
12641
  * http://jquery.org/license
12625
12642
  *
@@ -12635,7 +12652,7 @@ $.effects.fold = function(o) {
12635
12652
  return this.queue(function() {
12636
12653
 
12637
12654
  // Create element
12638
- var el = $(this), props = ['position','top','left'];
12655
+ var el = $(this), props = ['position','top','bottom','left','right'];
12639
12656
 
12640
12657
  // Set options
12641
12658
  var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
@@ -12675,9 +12692,9 @@ $.effects.fold = function(o) {
12675
12692
 
12676
12693
 
12677
12694
  /*
12678
- * jQuery UI Effects Highlight 1.8.7
12695
+ * jQuery UI Effects Highlight 1.8.9
12679
12696
  *
12680
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12697
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12681
12698
  * Dual licensed under the MIT or GPL Version 2 licenses.
12682
12699
  * http://jquery.org/license
12683
12700
  *
@@ -12727,9 +12744,9 @@ $.effects.highlight = function(o) {
12727
12744
 
12728
12745
 
12729
12746
  /*
12730
- * jQuery UI Effects Pulsate 1.8.7
12747
+ * jQuery UI Effects Pulsate 1.8.9
12731
12748
  *
12732
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12749
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12733
12750
  * Dual licensed under the MIT or GPL Version 2 licenses.
12734
12751
  * http://jquery.org/license
12735
12752
  *
@@ -12780,9 +12797,9 @@ $.effects.pulsate = function(o) {
12780
12797
 
12781
12798
 
12782
12799
  /*
12783
- * jQuery UI Effects Scale 1.8.7
12800
+ * jQuery UI Effects Scale 1.8.9
12784
12801
  *
12785
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12802
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12786
12803
  * Dual licensed under the MIT or GPL Version 2 licenses.
12787
12804
  * http://jquery.org/license
12788
12805
  *
@@ -12865,8 +12882,8 @@ $.effects.size = function(o) {
12865
12882
  return this.queue(function() {
12866
12883
 
12867
12884
  // Create element
12868
- var el = $(this), props = ['position','top','left','width','height','overflow','opacity'];
12869
- var props1 = ['position','top','left','overflow','opacity']; // Always restore
12885
+ var el = $(this), props = ['position','top','bottom','left','right','width','height','overflow','opacity'];
12886
+ var props1 = ['position','top','bottom','left','right','overflow','opacity']; // Always restore
12870
12887
  var props2 = ['width','height','overflow']; // Copy for children
12871
12888
  var cProps = ['fontSize'];
12872
12889
  var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
@@ -12960,9 +12977,9 @@ $.effects.size = function(o) {
12960
12977
 
12961
12978
 
12962
12979
  /*
12963
- * jQuery UI Effects Shake 1.8.7
12980
+ * jQuery UI Effects Shake 1.8.9
12964
12981
  *
12965
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
12982
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
12966
12983
  * Dual licensed under the MIT or GPL Version 2 licenses.
12967
12984
  * http://jquery.org/license
12968
12985
  *
@@ -12978,7 +12995,7 @@ $.effects.shake = function(o) {
12978
12995
  return this.queue(function() {
12979
12996
 
12980
12997
  // Create element
12981
- var el = $(this), props = ['position','top','left'];
12998
+ var el = $(this), props = ['position','top','bottom','left','right'];
12982
12999
 
12983
13000
  // Set options
12984
13001
  var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
@@ -13019,9 +13036,9 @@ $.effects.shake = function(o) {
13019
13036
 
13020
13037
 
13021
13038
  /*
13022
- * jQuery UI Effects Slide 1.8.7
13039
+ * jQuery UI Effects Slide 1.8.9
13023
13040
  *
13024
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
13041
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
13025
13042
  * Dual licensed under the MIT or GPL Version 2 licenses.
13026
13043
  * http://jquery.org/license
13027
13044
  *
@@ -13037,7 +13054,7 @@ $.effects.slide = function(o) {
13037
13054
  return this.queue(function() {
13038
13055
 
13039
13056
  // Create element
13040
- var el = $(this), props = ['position','top','left'];
13057
+ var el = $(this), props = ['position','top','bottom','left','right'];
13041
13058
 
13042
13059
  // Set options
13043
13060
  var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
@@ -13071,9 +13088,9 @@ $.effects.slide = function(o) {
13071
13088
 
13072
13089
 
13073
13090
  /*
13074
- * jQuery UI Effects Transfer 1.8.7
13091
+ * jQuery UI Effects Transfer 1.8.9
13075
13092
  *
13076
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
13093
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
13077
13094
  * Dual licensed under the MIT or GPL Version 2 licenses.
13078
13095
  * http://jquery.org/license
13079
13096
  *
@@ -13118,9 +13135,9 @@ $.effects.transfer = function(o) {
13118
13135
 
13119
13136
 
13120
13137
  /*
13121
- * jQuery UI Accordion 1.8.7
13138
+ * jQuery UI Accordion 1.8.9
13122
13139
  *
13123
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
13140
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
13124
13141
  * Dual licensed under the MIT or GPL Version 2 licenses.
13125
13142
  * http://jquery.org/license
13126
13143
  *
@@ -13466,8 +13483,26 @@ $.widget( "ui.accordion", {
13466
13483
  return;
13467
13484
  }
13468
13485
 
13486
+ // find elements to show and hide
13487
+ var active = this.active,
13488
+ toShow = clicked.next(),
13489
+ toHide = this.active.next(),
13490
+ data = {
13491
+ options: options,
13492
+ newHeader: clickedIsActive && options.collapsible ? $([]) : clicked,
13493
+ oldHeader: this.active,
13494
+ newContent: clickedIsActive && options.collapsible ? $([]) : toShow,
13495
+ oldContent: toHide
13496
+ },
13497
+ down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );
13498
+
13499
+ // when the call to ._toggle() comes after the class changes
13500
+ // it causes a very odd bug in IE 8 (see #6720)
13501
+ this.active = clickedIsActive ? $([]) : clicked;
13502
+ this._toggle( toShow, toHide, data, clickedIsActive, down );
13503
+
13469
13504
  // switch classes
13470
- this.active
13505
+ active
13471
13506
  .removeClass( "ui-state-active ui-corner-top" )
13472
13507
  .addClass( "ui-state-default ui-corner-all" )
13473
13508
  .children( ".ui-icon" )
@@ -13485,21 +13520,6 @@ $.widget( "ui.accordion", {
13485
13520
  .addClass( "ui-accordion-content-active" );
13486
13521
  }
13487
13522
 
13488
- // find elements to show and hide
13489
- var toShow = clicked.next(),
13490
- toHide = this.active.next(),
13491
- data = {
13492
- options: options,
13493
- newHeader: clickedIsActive && options.collapsible ? $([]) : clicked,
13494
- oldHeader: this.active,
13495
- newContent: clickedIsActive && options.collapsible ? $([]) : toShow,
13496
- oldContent: toHide
13497
- },
13498
- down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );
13499
-
13500
- this.active = clickedIsActive ? $([]) : clicked;
13501
- this._toggle( toShow, toHide, data, clickedIsActive, down );
13502
-
13503
13523
  return;
13504
13524
  },
13505
13525
 
@@ -13619,13 +13639,17 @@ $.widget( "ui.accordion", {
13619
13639
 
13620
13640
  // other classes are removed before the animation; this one needs to stay until completed
13621
13641
  this.toHide.removeClass( "ui-accordion-content-active" );
13642
+ // Work around for rendering bug in IE (#5421)
13643
+ if ( this.toHide.length ) {
13644
+ this.toHide.parent()[0].className = this.toHide.parent()[0].className;
13645
+ }
13622
13646
 
13623
13647
  this._trigger( "change", null, this.data );
13624
13648
  }
13625
13649
  });
13626
13650
 
13627
13651
  $.extend( $.ui.accordion, {
13628
- version: "1.8.7",
13652
+ version: "1.8.9",
13629
13653
  animations: {
13630
13654
  slide: function( options, additions ) {
13631
13655
  options = $.extend({
@@ -13719,9 +13743,9 @@ $.extend( $.ui.accordion, {
13719
13743
 
13720
13744
 
13721
13745
  /*
13722
- * jQuery UI Autocomplete 1.8.7
13746
+ * jQuery UI Autocomplete 1.8.9
13723
13747
  *
13724
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
13748
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
13725
13749
  * Dual licensed under the MIT or GPL Version 2 licenses.
13726
13750
  * http://jquery.org/license
13727
13751
  *
@@ -13746,6 +13770,9 @@ $.widget( "ui.autocomplete", {
13746
13770
  },
13747
13771
  source: null
13748
13772
  },
13773
+
13774
+ pending: 0,
13775
+
13749
13776
  _create: function() {
13750
13777
  var self = this,
13751
13778
  doc = this.element[ 0 ].ownerDocument,
@@ -13949,6 +13976,9 @@ $.widget( "ui.autocomplete", {
13949
13976
  if ( key === "appendTo" ) {
13950
13977
  this.menu.element.appendTo( $( value || "body", this.element[0].ownerDocument )[0] )
13951
13978
  }
13979
+ if ( key === "disabled" && value && this.xhr ) {
13980
+ this.xhr.abort();
13981
+ }
13952
13982
  },
13953
13983
 
13954
13984
  _initSource: function() {
@@ -13963,7 +13993,7 @@ $.widget( "ui.autocomplete", {
13963
13993
  } else if ( typeof this.options.source === "string" ) {
13964
13994
  url = this.options.source;
13965
13995
  this.source = function( request, response ) {
13966
- if (self.xhr) {
13996
+ if ( self.xhr ) {
13967
13997
  self.xhr.abort();
13968
13998
  }
13969
13999
  self.xhr = $.ajax({
@@ -14008,20 +14038,24 @@ $.widget( "ui.autocomplete", {
14008
14038
  },
14009
14039
 
14010
14040
  _search: function( value ) {
14041
+ this.pending++;
14011
14042
  this.element.addClass( "ui-autocomplete-loading" );
14012
14043
 
14013
14044
  this.source( { term: value }, this.response );
14014
14045
  },
14015
14046
 
14016
14047
  _response: function( content ) {
14017
- if ( content && content.length ) {
14048
+ if ( !this.options.disabled && content && content.length ) {
14018
14049
  content = this._normalize( content );
14019
14050
  this._suggest( content );
14020
14051
  this._trigger( "open" );
14021
14052
  } else {
14022
14053
  this.close();
14023
14054
  }
14024
- this.element.removeClass( "ui-autocomplete-loading" );
14055
+ this.pending--;
14056
+ if ( !this.pending ) {
14057
+ this.element.removeClass( "ui-autocomplete-loading" );
14058
+ }
14025
14059
  },
14026
14060
 
14027
14061
  close: function( event ) {
@@ -14316,9 +14350,9 @@ $.widget("ui.menu", {
14316
14350
 
14317
14351
 
14318
14352
  /*
14319
- * jQuery UI Button 1.8.7
14353
+ * jQuery UI Button 1.8.9
14320
14354
  *
14321
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
14355
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
14322
14356
  * Dual licensed under the MIT or GPL Version 2 licenses.
14323
14357
  * http://jquery.org/license
14324
14358
  *
@@ -14691,9 +14725,9 @@ $.widget( "ui.buttonset", {
14691
14725
 
14692
14726
 
14693
14727
  /*!
14694
- * jQuery UI 1.8.7
14728
+ * jQuery UI 1.8.9
14695
14729
  *
14696
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
14730
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
14697
14731
  * Dual licensed under the MIT or GPL Version 2 licenses.
14698
14732
  * http://jquery.org/license
14699
14733
  *
@@ -14710,7 +14744,7 @@ if ( $.ui.version ) {
14710
14744
  }
14711
14745
 
14712
14746
  $.extend( $.ui, {
14713
- version: "1.8.7",
14747
+ version: "1.8.9",
14714
14748
 
14715
14749
  keyCode: {
14716
14750
  ALT: 18,
@@ -15001,9 +15035,9 @@ $.extend( $.ui, {
15001
15035
 
15002
15036
 
15003
15037
  /*
15004
- * jQuery UI Datepicker 1.8.7
15038
+ * jQuery UI Datepicker 1.8.9
15005
15039
  *
15006
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
15040
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
15007
15041
  * Dual licensed under the MIT or GPL Version 2 licenses.
15008
15042
  * http://jquery.org/license
15009
15043
  *
@@ -15014,7 +15048,7 @@ $.extend( $.ui, {
15014
15048
  */
15015
15049
  (function( $, undefined ) {
15016
15050
 
15017
- $.extend($.ui, { datepicker: { version: "1.8.7" } });
15051
+ $.extend($.ui, { datepicker: { version: "1.8.9" } });
15018
15052
 
15019
15053
  var PROP_NAME = 'datepicker';
15020
15054
  var dpuuid = new Date().getTime();
@@ -15968,6 +16002,8 @@ $.extend(Datepicker.prototype, {
15968
16002
  if (value == '')
15969
16003
  return null;
15970
16004
  var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
16005
+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
16006
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
15971
16007
  var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
15972
16008
  var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
15973
16009
  var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
@@ -16750,7 +16786,7 @@ $.fn.datepicker = function(options){
16750
16786
  $.datepicker = new Datepicker(); // singleton instance
16751
16787
  $.datepicker.initialized = false;
16752
16788
  $.datepicker.uuid = new Date().getTime();
16753
- $.datepicker.version = "1.8.7";
16789
+ $.datepicker.version = "1.8.9";
16754
16790
 
16755
16791
  // Workaround for #4055
16756
16792
  // Add another global to avoid noConflict issues with inline event handlers
@@ -16760,9 +16796,9 @@ window['DP_jQuery_' + dpuuid] = $;
16760
16796
 
16761
16797
 
16762
16798
  /*
16763
- * jQuery UI Dialog 1.8.7
16799
+ * jQuery UI Dialog 1.8.9
16764
16800
  *
16765
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
16801
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
16766
16802
  * Dual licensed under the MIT or GPL Version 2 licenses.
16767
16803
  * http://jquery.org/license
16768
16804
  *
@@ -17442,7 +17478,7 @@ $.widget("ui.dialog", {
17442
17478
  });
17443
17479
 
17444
17480
  $.extend($.ui.dialog, {
17445
- version: "1.8.7",
17481
+ version: "1.8.9",
17446
17482
 
17447
17483
  uuid: 0,
17448
17484
  maxZ: 0,
@@ -17619,9 +17655,9 @@ $.extend($.ui.dialog.overlay.prototype, {
17619
17655
 
17620
17656
 
17621
17657
  /*
17622
- * jQuery UI Draggable 1.8.7
17658
+ * jQuery UI Draggable 1.8.9
17623
17659
  *
17624
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
17660
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
17625
17661
  * Dual licensed under the MIT or GPL Version 2 licenses.
17626
17662
  * http://jquery.org/license
17627
17663
  *
@@ -17812,8 +17848,8 @@ $.widget("ui.draggable", $.ui.mouse, {
17812
17848
  this.dropped = false;
17813
17849
  }
17814
17850
 
17815
- //if the original element is removed, don't bother to continue
17816
- if(!this.element[0] || !this.element[0].parentNode)
17851
+ //if the original element is removed, don't bother to continue if helper is set to "original"
17852
+ if((!this.element[0] || !this.element[0].parentNode) && this.options.helper == "original")
17817
17853
  return false;
17818
17854
 
17819
17855
  if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) {
@@ -18079,7 +18115,7 @@ $.widget("ui.draggable", $.ui.mouse, {
18079
18115
  });
18080
18116
 
18081
18117
  $.extend($.ui.draggable, {
18082
- version: "1.8.7"
18118
+ version: "1.8.9"
18083
18119
  });
18084
18120
 
18085
18121
  $.ui.plugin.add("draggable", "connectToSortable", {
@@ -18418,9 +18454,9 @@ $.ui.plugin.add("draggable", "zIndex", {
18418
18454
 
18419
18455
 
18420
18456
  /*
18421
- * jQuery UI Droppable 1.8.7
18457
+ * jQuery UI Droppable 1.8.9
18422
18458
  *
18423
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
18459
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
18424
18460
  * Dual licensed under the MIT or GPL Version 2 licenses.
18425
18461
  * http://jquery.org/license
18426
18462
  *
@@ -18566,7 +18602,7 @@ $.widget("ui.droppable", {
18566
18602
  });
18567
18603
 
18568
18604
  $.extend($.ui.droppable, {
18569
- version: "1.8.7"
18605
+ version: "1.8.9"
18570
18606
  });
18571
18607
 
18572
18608
  $.ui.intersect = function(draggable, droppable, toleranceMode) {
@@ -18705,9 +18741,9 @@ $.ui.ddmanager = {
18705
18741
 
18706
18742
 
18707
18743
  /*!
18708
- * jQuery UI Mouse 1.8.7
18744
+ * jQuery UI Mouse 1.8.9
18709
18745
  *
18710
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
18746
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
18711
18747
  * Dual licensed under the MIT or GPL Version 2 licenses.
18712
18748
  * http://jquery.org/license
18713
18749
  *
@@ -19270,9 +19306,9 @@ $.widget("ui.mouse", {
19270
19306
 
19271
19307
 
19272
19308
  /*
19273
- * jQuery UI Position 1.8.7
19309
+ * jQuery UI Position 1.8.9
19274
19310
  *
19275
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
19311
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
19276
19312
  * Dual licensed under the MIT or GPL Version 2 licenses.
19277
19313
  * http://jquery.org/license
19278
19314
  *
@@ -19354,7 +19390,7 @@ $.fn.position = function( options ) {
19354
19390
 
19355
19391
  if ( options.at[0] === "right" ) {
19356
19392
  basePosition.left += targetWidth;
19357
- } else if (options.at[0] === center ) {
19393
+ } else if ( options.at[0] === center ) {
19358
19394
  basePosition.left += targetWidth / 2;
19359
19395
  }
19360
19396
 
@@ -19374,9 +19410,9 @@ $.fn.position = function( options ) {
19374
19410
  marginLeft = parseInt( $.curCSS( this, "marginLeft", true ) ) || 0,
19375
19411
  marginTop = parseInt( $.curCSS( this, "marginTop", true ) ) || 0,
19376
19412
  collisionWidth = elemWidth + marginLeft +
19377
- parseInt( $.curCSS( this, "marginRight", true ) ) || 0,
19413
+ ( parseInt( $.curCSS( this, "marginRight", true ) ) || 0 ),
19378
19414
  collisionHeight = elemHeight + marginTop +
19379
- parseInt( $.curCSS( this, "marginBottom", true ) ) || 0,
19415
+ ( parseInt( $.curCSS( this, "marginBottom", true ) ) || 0 ),
19380
19416
  position = $.extend( {}, basePosition ),
19381
19417
  collisionPosition;
19382
19418
 
@@ -19524,9 +19560,9 @@ if ( !$.offset.setOffset ) {
19524
19560
 
19525
19561
 
19526
19562
  /*
19527
- * jQuery UI Progressbar 1.8.7
19563
+ * jQuery UI Progressbar 1.8.9
19528
19564
  *
19529
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
19565
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
19530
19566
  * Dual licensed under the MIT or GPL Version 2 licenses.
19531
19567
  * http://jquery.org/license
19532
19568
  *
@@ -19627,16 +19663,16 @@ $.widget( "ui.progressbar", {
19627
19663
  });
19628
19664
 
19629
19665
  $.extend( $.ui.progressbar, {
19630
- version: "1.8.7"
19666
+ version: "1.8.9"
19631
19667
  });
19632
19668
 
19633
19669
  })( jQuery );
19634
19670
 
19635
19671
 
19636
19672
  /*
19637
- * jQuery UI Resizable 1.8.7
19673
+ * jQuery UI Resizable 1.8.9
19638
19674
  *
19639
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
19675
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
19640
19676
  * Dual licensed under the MIT or GPL Version 2 licenses.
19641
19677
  * http://jquery.org/license
19642
19678
  *
@@ -20154,7 +20190,7 @@ $.widget("ui.resizable", $.ui.mouse, {
20154
20190
  });
20155
20191
 
20156
20192
  $.extend($.ui.resizable, {
20157
- version: "1.8.7"
20193
+ version: "1.8.9"
20158
20194
  });
20159
20195
 
20160
20196
  /*
@@ -20448,9 +20484,9 @@ var isNumber = function(value) {
20448
20484
 
20449
20485
 
20450
20486
  /*
20451
- * jQuery UI Selectable 1.8.7
20487
+ * jQuery UI Selectable 1.8.9
20452
20488
  *
20453
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
20489
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
20454
20490
  * Dual licensed under the MIT or GPL Version 2 licenses.
20455
20491
  * http://jquery.org/license
20456
20492
  *
@@ -20709,7 +20745,7 @@ $.widget("ui.selectable", $.ui.mouse, {
20709
20745
  });
20710
20746
 
20711
20747
  $.extend($.ui.selectable, {
20712
- version: "1.8.7"
20748
+ version: "1.8.9"
20713
20749
  });
20714
20750
 
20715
20751
  })(jQuery);
@@ -21290,9 +21326,9 @@ $.widget("ui.selectmenu", {
21290
21326
  })(jQuery);
21291
21327
 
21292
21328
  /*
21293
- * jQuery UI Slider 1.8.7
21329
+ * jQuery UI Slider 1.8.9
21294
21330
  *
21295
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
21331
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
21296
21332
  * Dual licensed under the MIT or GPL Version 2 licenses.
21297
21333
  * http://jquery.org/license
21298
21334
  *
@@ -21967,16 +22003,16 @@ $.widget( "ui.slider", $.ui.mouse, {
21967
22003
  });
21968
22004
 
21969
22005
  $.extend( $.ui.slider, {
21970
- version: "1.8.7"
22006
+ version: "1.8.9"
21971
22007
  });
21972
22008
 
21973
22009
  }(jQuery));
21974
22010
 
21975
22011
 
21976
22012
  /*
21977
- * jQuery UI Sortable 1.8.7
22013
+ * jQuery UI Sortable 1.8.9
21978
22014
  *
21979
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
22015
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
21980
22016
  * Dual licensed under the MIT or GPL Version 2 licenses.
21981
22017
  * http://jquery.org/license
21982
22018
  *
@@ -22335,7 +22371,7 @@ $.widget("ui.sortable", $.ui.mouse, {
22335
22371
 
22336
22372
  if(this.dragging) {
22337
22373
 
22338
- this._mouseUp();
22374
+ this._mouseUp({ target: null });
22339
22375
 
22340
22376
  if(this.options.helper == "original")
22341
22377
  this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper");
@@ -22353,21 +22389,23 @@ $.widget("ui.sortable", $.ui.mouse, {
22353
22389
 
22354
22390
  }
22355
22391
 
22356
- //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
22357
- if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
22358
- if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove();
22392
+ if (this.placeholder) {
22393
+ //$(this.placeholder[0]).remove(); would have been the jQuery way - unfortunately, it unbinds ALL events from the original node!
22394
+ if(this.placeholder[0].parentNode) this.placeholder[0].parentNode.removeChild(this.placeholder[0]);
22395
+ if(this.options.helper != "original" && this.helper && this.helper[0].parentNode) this.helper.remove();
22359
22396
 
22360
- $.extend(this, {
22361
- helper: null,
22362
- dragging: false,
22363
- reverting: false,
22364
- _noFinalSort: null
22365
- });
22397
+ $.extend(this, {
22398
+ helper: null,
22399
+ dragging: false,
22400
+ reverting: false,
22401
+ _noFinalSort: null
22402
+ });
22366
22403
 
22367
- if(this.domPosition.prev) {
22368
- $(this.domPosition.prev).after(this.currentItem);
22369
- } else {
22370
- $(this.domPosition.parent).prepend(this.currentItem);
22404
+ if(this.domPosition.prev) {
22405
+ $(this.domPosition.prev).after(this.currentItem);
22406
+ } else {
22407
+ $(this.domPosition.parent).prepend(this.currentItem);
22408
+ }
22371
22409
  }
22372
22410
 
22373
22411
  return this;
@@ -23040,16 +23078,16 @@ $.widget("ui.sortable", $.ui.mouse, {
23040
23078
  });
23041
23079
 
23042
23080
  $.extend($.ui.sortable, {
23043
- version: "1.8.7"
23081
+ version: "1.8.9"
23044
23082
  });
23045
23083
 
23046
23084
  })(jQuery);
23047
23085
 
23048
23086
 
23049
23087
  /*
23050
- * jQuery UI Tabs 1.8.7
23088
+ * jQuery UI Tabs 1.8.9
23051
23089
  *
23052
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
23090
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
23053
23091
  * Dual licensed under the MIT or GPL Version 2 licenses.
23054
23092
  * http://jquery.org/license
23055
23093
  *
@@ -23264,7 +23302,7 @@ $.widget( "ui.tabs", {
23264
23302
  // seems to be expected behavior that the show callback is fired
23265
23303
  self.element.queue( "tabs", function() {
23266
23304
  self._trigger( "show", null,
23267
- self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) ) ) );
23305
+ self._ui( self.anchors[ o.selected ], self.element.find( self._sanitizeSelector( self.anchors[ o.selected ].hash ) )[ 0 ] ) );
23268
23306
  });
23269
23307
 
23270
23308
  this.load( o.selected );
@@ -23746,7 +23784,7 @@ $.widget( "ui.tabs", {
23746
23784
  });
23747
23785
 
23748
23786
  $.extend( $.ui.tabs, {
23749
- version: "1.8.7"
23787
+ version: "1.8.9"
23750
23788
  });
23751
23789
 
23752
23790
  /*
@@ -23807,9 +23845,9 @@ $.extend( $.ui.tabs.prototype, {
23807
23845
 
23808
23846
 
23809
23847
  /*!
23810
- * jQuery UI Widget 1.8.7
23848
+ * jQuery UI Widget 1.8.9
23811
23849
  *
23812
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
23850
+ * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
23813
23851
  * Dual licensed under the MIT or GPL Version 2 licenses.
23814
23852
  * http://jquery.org/license
23815
23853
  *