var Mobify=window.Mobify=window.Mobify||{};Mobify.$=Mobify.$||window.Zepto||window.jQuery,Mobify.UI=Mobify.UI||{},function(n,t){n.support=n.support||{},n.extend(n.support,{touch:"ontouchend"in t})}(Mobify.$,document),Mobify.UI.Utils=function(n){function t(){if(/iPhone\ OS\ 3_1/.test(navigator.userAgent))return void 0;var n,t=document.createElement("fakeelement"),e={transition:"transitionEnd transitionend",OTransition:"oTransitionEnd",MSTransition:"msTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(n in e)if(void 0!==t.style[n])return e[n]}var e={},o=n.support;return e.events=o.touch?{down:"touchstart",move:"touchmove",up:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup"},e.getCursorPosition=o.touch?function(n){return n=n.originalEvent||n,{x:n.touches[0].clientX,y:n.touches[0].clientY}}:function(n){return{x:n.clientX,y:n.clientY}},e.getProperty=function(n){for(var t=["Webkit","Moz","O","ms",""],e=document.createElement("div").style,o=0;ov*v))){var t=n(this).parent();t.hasClass(C)?r(t):a(t)}}function c(n){n.preventDefault()}var h,f,p=this.$element,m=this.settings,v=m.dragRadius,y=m.openedClass,g=m.closedClass,C=m.activeClass,b=m.contentClass,w=m.headerClass,M=m.itemClass,x=location.hash,T=p.find("."+w+' a[href="'+x+'"]');T.length?a(T.parent()):p.find("."+y).length&&a(p.find("."+y));var $="."+w;return p.on(t.events.down,$,u).on(t.events.move,$,l).on(t.events.up,$,d).on("click",$,c),t.events.transitionend&&p.on(t.events.transitionend,"."+b,e),{settings:m,open:a,close:r,recalculateItemHeight:i}},e.prototype.unbind=function(){this.$element.off()},e.prototype.destroy=function(){this.unbind(),this.$element.remove()},e}(Mobify.$,Mobify.UI.Utils),function(n){n.fn.bellows=function(t){return this.each(function(){var e=(n(this),this.bellows);e||(e=new Mobify.UI.Bellows(this,t)),this.bellows=e})}}(Mobify.$);