text: /*
  * Kendo UI Complete v2012.2.710 (http://kendoui.com)
  * Copyright 2012 Telerik AD. All rights reserved.
  *
  * Kendo UI Complete commercial licenses may be obtained at http://kendoui.com/complete-license
  * If you do not own a commercial license, this file shall be governed by the trial license terms.
  */
  ;(function(a,b){var c=window.kendo,d=c.mobile,e=d.ui,f="show",g="hide",h="open",i="close",j='<div class="km-popup-wrapper" />',k='<div class="km-popup-arrow" />',l='<div class="km-popup-overlay" />',m="km-up km-down km-left km-right",n=e.Widget,o={down:{origin:"bottom center",position:"top center"},up:{origin:"top center",position:"bottom center"},left:{origin:"center left",position:"center right",collision:"fit flip"},right:{origin:"center right",position:"center left",collision:"fit flip"}},p={animation:{open:{effects:"fade:in",duration:0},close:{effects:"fade:out",duration:400}}},q={horizontal:{offset:"top",size:"height"},vertical:{offset:"left",size:"width"}},r={up:"down",down:"up",left:"right",right:"left"},s=n.extend({init:function(b,e){var f=this,h=d.application.element,i={viewport:c.mobile.application.element,open:function(){f.overlay.show()},activate:a.proxy(f._activate,f),deactivate:function(){f.overlay.hide(),f.trigger(g)}},m;n.fn.init.call(f,b,e),b=f.element,e=f.options,b.wrap(j).addClass("km-popup").show(),m=f.options.direction.match(/left|right/)?"horizontal":"vertical",f.dimensions=q[m],f.wrapper=b.parent().css({width:e.width,height:e.height}).addClass("km-popup-wrapper km-"+e.direction).hide(),f.arrow=a(k).prependTo(f.wrapper).hide(),f.overlay=a(l).appendTo(h).hide(),i.appendTo=f.overlay,f.popup=new c.ui.Popup(f.wrapper,a.extend(!0,i,p,o[e.direction]))},options:{name:"Popup",width:240,height:320,direction:"down"},events:[f,g],show:function(b){var c=this,d=c.popup;d.options.anchor=a(b),d.open()},hide:function(){this.popup.close()},_activate:function(){var b=this,c=b.options.direction,d=b.dimensions,e=d.offset,g=b.popup,h=g.options.anchor,i=a(h).offset(),j=a(g.element).offset(),k=g.flipped?r[c]:c,l=i[e]-j[e]+a(h)[d.size]()/2;b.wrapper.removeClass(m).addClass("km-"+k),b.arrow.css(e,l).show(),b.trigger(f)}}),t=n.extend({init:function(b,d){var f=this,g;n.fn.init.call(f,b,d),d=f.options,g=a.extend({show:function(){f.trigger(h)},hide:function(){f.trigger(i)}},this.options.popup),f.popup=new s(f.element,g),f.pane=(new e.Pane(f.element,this.options.pane)).navigate(""),c.notify(f,e)},options:{name:"PopOver",popup:{},pane:{}},events:[h,i],openFor:function(a){this.popup.show(a)},close:function(){this.popup.hide()}});e.plugin(s),e.plugin(t)})(jQuery);