// (c) 2010 CodePlex Foundation (function(){var b="ExtendedDateTime";function a(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.TimeSpan=function(){var a=this;if(arguments.length==0)a._ctor$0.apply(a,arguments);else if(arguments.length==1)a._ctor$1.apply(a,arguments);else if(arguments.length==3)a._ctor$2.apply(a,arguments);else if(arguments.length==4)a._ctor$3.apply(a,arguments);else if(arguments.length==5)a._ctor$4.apply(a,arguments);else throw Error.parameterCount();};Sys.Extended.UI.TimeSpan.prototype={_ctor$0:function(){this._ticks=0},_ctor$1:function(a){this._ctor$0();this._ticks=a},_ctor$2:function(c,a,b){this._ctor$0();this._ticks=c*Sys.Extended.UI.TimeSpan.TicksPerHour+a*Sys.Extended.UI.TimeSpan.TicksPerMinute+b*Sys.Extended.UI.TimeSpan.TicksPerSecond},_ctor$3:function(d,c,a,b){this._ctor$0();this._ticks=d*Sys.Extended.UI.TimeSpan.TicksPerDay+c*Sys.Extended.UI.TimeSpan.TicksPerHour+a*Sys.Extended.UI.TimeSpan.TicksPerMinute+b*Sys.Extended.UI.TimeSpan.TicksPerSecond},_ctor$4:function(e,d,b,c,a){this._ctor$0();this._ticks=e*Sys.Extended.UI.TimeSpan.TicksPerDay+d*Sys.Extended.UI.TimeSpan.TicksPerHour+b*Sys.Extended.UI.TimeSpan.TicksPerMinute+c*Sys.Extended.UI.TimeSpan.TicksPerSecond+a*Sys.Extended.UI.TimeSpan.TicksPerMillisecond},getDays:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerDay)},getHours:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerHour)$},getMinutes:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMinute)`},getSeconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerSecond)`},getMilliseconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMillisecond)3},getDuration:function(){return new Sys.Extended.UI.TimeSpan(Math.abs(this._ticks))},getTicks:function(){return this._ticks},getTotalDays:function(){Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerDay)},getTotalHours:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerHour)},getTotalMinutes:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMinute)},getTotalSeconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerSecond)},getTotalMilliseconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMillisecond)},add:function(a){return new Sys.Extended.UI.TimeSpan(this._ticks+a.getTicks())},subtract:function(a){return new Sys.Extended.UI.TimeSpan(this._ticks-a.getTicks())},negate:function(){return new Sys.Extended.UI.TimeSpan(-this._ticks)},equals:function(a){return this._ticks==a.getTicks()},compareTo:function(a){return this._ticks>a.getTicks()?1:this._ticks