diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.bg-BG.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.bg-BG.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.bg-BG.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.bg-BG.resx new file mode 100644 index 000000000..99ad06488 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.bg-BG.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Получер + + + Направи препратка + + + Сигурни ли сте че искате да изтриете "{0}"? + + + Директория с посоченото име не бе открита. + + + Празна папка + + + Шрифт + + + (наследен шрифт) + + + Размер на шрифта + + + (наследен размер) + + + Избери формат + + + Добави отстъп + + + Вмъкни HTML + + + Вмъкни картина + + + Вмъкни номериран списък + + + Вмъкни списък + + + Избраният файл "{0}" не е валиден. Поддържаните файлови формати са {1}. + + + Курсив + + + Центрирай + + + Подравни + + + Подравни отляво + + + Подравни отдясно + + + Подреди по: + + + Име + + + Големина + + + Премахни отстъп + + + Файл с име "{0}" вече съществува в тази папка. Искате ли да го презапишете? + + + Зачертай + + + Стилове + + + Подчертай + + + Премахни препратка + + + Качи файл + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.de-DE.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.de-DE.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.de-DE.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.de-DE.resx new file mode 100644 index 000000000..b9d1f9882 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.de-DE.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fett + + + Hyperlink einfügen + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Schriftfamilie + + + (Schrift übernehmen) + + + Größe + + + (Größe übernehmen) + + + Absatzstil + + + Einzug vergrößern + + + HTML einfügen + + + Einfügen Bild + + + Numerierte Liste + + + Aufzählliste + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Kursiv + + + Zentriert + + + Ausrichten + + + Linksbündig + + + Rechtsbündig + + + Arrange by: + + + Name + + + Size + + + Einzug verkleinern + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Durchgestrichen + + + Stil + + + Unterstrichen + + + Hyperlink entfernen + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.designer.cs new file mode 100644 index 000000000..c4c3e9fb9 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.designer.cs @@ -0,0 +1,342 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.225 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option or rebuild the Visual Studio project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "10.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class EditorLocalization { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal EditorLocalization() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.EditorLocalization", global::System.Reflection.Assembly.Load("App_GlobalResources")); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Bold. + /// + internal static string Bold { + get { + return ResourceManager.GetString("Bold", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insert hyperlink. + /// + internal static string CreateLink { + get { + return ResourceManager.GetString("CreateLink", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete "{0}"?. + /// + internal static string DeleteFile { + get { + return ResourceManager.GetString("DeleteFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to A directory with this name was not found.. + /// + internal static string DirectoryNotFound { + get { + return ResourceManager.GetString("DirectoryNotFound", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Empty Folder. + /// + internal static string EmptyFolder { + get { + return ResourceManager.GetString("EmptyFolder", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select font family. + /// + internal static string FontName { + get { + return ResourceManager.GetString("FontName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (inherited font). + /// + internal static string FontNameInherit { + get { + return ResourceManager.GetString("FontNameInherit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select font size. + /// + internal static string FontSize { + get { + return ResourceManager.GetString("FontSize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to (inherited size). + /// + internal static string FontSizeInherit { + get { + return ResourceManager.GetString("FontSizeInherit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select block type. + /// + internal static string FormatBlock { + get { + return ResourceManager.GetString("FormatBlock", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Indent. + /// + internal static string Indent { + get { + return ResourceManager.GetString("Indent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insert HTML. + /// + internal static string InsertHtml { + get { + return ResourceManager.GetString("InsertHtml", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insert image. + /// + internal static string InsertImage { + get { + return ResourceManager.GetString("InsertImage", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insert ordered list. + /// + internal static string InsertOrderedList { + get { + return ResourceManager.GetString("InsertOrderedList", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insert unordered list. + /// + internal static string InsertUnorderedList { + get { + return ResourceManager.GetString("InsertUnorderedList", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to The selected file \"{0}\" is not valid. Supported file types are {1}.. + /// + internal static string InvalidFileType { + get { + return ResourceManager.GetString("InvalidFileType", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Italic. + /// + internal static string Italic { + get { + return ResourceManager.GetString("Italic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Center text. + /// + internal static string JustifyCenter { + get { + return ResourceManager.GetString("JustifyCenter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Justify. + /// + internal static string JustifyFull { + get { + return ResourceManager.GetString("JustifyFull", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Align text left. + /// + internal static string JustifyLeft { + get { + return ResourceManager.GetString("JustifyLeft", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Align text right. + /// + internal static string JustifyRight { + get { + return ResourceManager.GetString("JustifyRight", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Arrange by:. + /// + internal static string OrderBy { + get { + return ResourceManager.GetString("OrderBy", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Name. + /// + internal static string OrderByName { + get { + return ResourceManager.GetString("OrderByName", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Size. + /// + internal static string OrderBySize { + get { + return ResourceManager.GetString("OrderBySize", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Outdent. + /// + internal static string Outdent { + get { + return ResourceManager.GetString("Outdent", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?. + /// + internal static string OverwriteFile { + get { + return ResourceManager.GetString("OverwriteFile", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Strikethrough. + /// + internal static string Strikethrough { + get { + return ResourceManager.GetString("Strikethrough", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Styles. + /// + internal static string Style { + get { + return ResourceManager.GetString("Style", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Underline. + /// + internal static string Underline { + get { + return ResourceManager.GetString("Underline", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Remove hyperlink. + /// + internal static string Unlink { + get { + return ResourceManager.GetString("Unlink", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upload. + /// + internal static string UploadFile { + get { + return ResourceManager.GetString("UploadFile", resourceCulture); + } + } + } +} diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.en-US.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.en-US.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.en-US.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.en-US.resx new file mode 100644 index 000000000..46048b826 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.en-US.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Bold + + + Insert hyperlink + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Select font family + + + (inherited font) + + + Select font size + + + (inherited size) + + + Select block type + + + Indent + + + Insert HTML + + + Insert image + + + Insert ordered list + + + Insert unordered list + + + The selected file \"{0}\" is not valid. Supported file types are {1}. + + + Italic + + + Center text + + + Justify + + + Align text left + + + Align text right + + + Arrange by: + + + Name + + + Size + + + Outdent + + + 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Strikethrough + + + Styles + + + Underline + + + Remove hyperlink + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.fr-FR.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.fr-FR.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.fr-FR.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.fr-FR.resx new file mode 100644 index 000000000..43eee6158 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.fr-FR.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Gras + + + Insérer un lien hypertexte + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Famille de polices + + + Dimension + + + Style du paragraphe + + + Augmenter le retrait + + + Insèrer HTML + + + Insèrer Image + + + Liste numérotée + + + Liste à puces + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Italique + + + Centrer + + + Justifier + + + Alignement à gauche + + + Alignement à droite + + + Arrange by: + + + Name + + + Size + + + Réduire le retrait + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Texte barré + + + Style + + + Souligné + + + Supprimer hyperlien + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.nl-NL.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.nl-NL.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.nl-NL.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.nl-NL.resx new file mode 100644 index 000000000..98776c805 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.nl-NL.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Vet + + + Hyperlink toevoegen + + + Weet u zeker dat u het bestand \"{0}\" wilt verwijderen? + + + Een map met deze naam is niet gevonden. + + + Lege map + + + Selecteer lettertype + + + (geërfd lettertype) + + + Selecteer lettergrootte + + + (geërfde lettergrootte) + + + Selecteer bloktype + + + Inspringen + + + HTML toevoegen + + + Afbeelding toevoegen + + + Georderde lijst toevoegen + + + Ongeorderde lijst toevoegen + + + Het geseleteceerde bestand \"{0}\" is niet geldig. De volgende bestandstypen worden ondersteund {1}. + + + Cursief + + + Tekst centreren + + + Uitvullen + + + Tekst links uitlijnen + + + Tekst rechts uitlijnen + + + Sorteer op: + + + Naam + + + Grootte + + + Uitsprong + + + Het bestand met naam "{0}" bestaat reeds in deze map. Wilt u het bestand overschrijven? + + + Doorhalen + + + Stijlen + + + Onderstrepen + + + Hyperlink verwijderen + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.pl-PL.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.pl-PL.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.pl-PL.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.pl-PL.resx new file mode 100644 index 000000000..984ba72c6 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.pl-PL.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Wytłuszczenie + + + Wstaw link + + + Czy na pewno chcesz usunąć "{0}"? + + + Folder o tej nazwie nie został znaleziony. + + + Opróżnij folder + + + Wybierz czcionkę + + + (czcionka odziedziczona) + + + Wybierz rozmiar czcionki + + + (rozmiar odziedziczony) + + + Wybierz rozmiar bloku + + + Wcięcie + + + Wstaw HTML + + + Wstaw obraz + + + Wstaw listę numerowaną + + + Wstaw listę wypunktowaną + + + Wybrany plik "{0}" nie jest prawidłowy. Obsługiwane typy plików to: {1}. + + + Kursywa + + + Centruj tekst + + + Wyrównaj tekst + + + Wyrównaj tekst do lewej + + + Wyrównaj tekst do prawej + + + Uporządkuj wg: + + + Nazwa + + + Rozmiar + + + Zmniejsz wcięcie + + + Plik o nazwie "{0}" istnieje już w bieżącym folderze. Czy chcesz go zastąpić? + + + Przekreślenie + + + Styl + + + Podkreślenie + + + Usuń link + + + Załaduj + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.pt-BR.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.pt-BR.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.pt-BR.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.pt-BR.resx new file mode 100644 index 000000000..1cd97aa06 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.pt-BR.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Negrito + + + Adicionar Link + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Fonte + + + Tamanho + + + Formatar Bloco + + + Aumentar Recuo + + + Inserir HTML + + + Inserir Imagem + + + Inserir Lista Ordenada + + + Inserir Lista Aleatória + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Itálico + + + Alinhar Centro + + + Justificar + + + Alinhar à Esquerda + + + Alinhar à Direita + + + Arrange by: + + + Name + + + Size + + + Diminuir Recuo + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Tachado + + + Estilo + + + Sublinhado + + + Remover Link + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.resx new file mode 100644 index 000000000..46048b826 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Bold + + + Insert hyperlink + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Select font family + + + (inherited font) + + + Select font size + + + (inherited size) + + + Select block type + + + Indent + + + Insert HTML + + + Insert image + + + Insert ordered list + + + Insert unordered list + + + The selected file \"{0}\" is not valid. Supported file types are {1}. + + + Italic + + + Center text + + + Justify + + + Align text left + + + Align text right + + + Arrange by: + + + Name + + + Size + + + Outdent + + + 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Strikethrough + + + Styles + + + Underline + + + Remove hyperlink + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.ru-RU.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.ru-RU.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.ru-RU.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.ru-RU.resx new file mode 100644 index 000000000..7ebc8e125 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.ru-RU.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Полужирный + + + Вставить гиперссылку + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Выбрать шрифт + + + Выбрать размер шрифта + + + Форматирование + + + Увеличить отступ + + + Вставить HTML + + + Вставить изображение + + + Вставить нумерованный список + + + Вставить маркированныйсписок + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Курсив + + + Выровнять по центру + + + Выровнять по ширине + + + Выровнять по левому краю + + + Выровнять по правому краю + + + Arrange by: + + + Name + + + Size + + + Уменьшить отступ + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Зачеркнутый + + + Стиль + + + Подчеркнутый + + + Удалить гиперссылку + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.uk-UA.designer.cs b/NzbDrone.Web/App_GlobalResources/EditorLocalization.uk-UA.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/EditorLocalization.uk-UA.resx b/NzbDrone.Web/App_GlobalResources/EditorLocalization.uk-UA.resx new file mode 100644 index 000000000..0fcb3fe94 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/EditorLocalization.uk-UA.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Жирний + + + Додати посилання + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Шрифт + + + Розмір шрифта + + + Форматування + + + Збільшити відступ + + + Додати HTML + + + Додати зображення + + + Нумерований список + + + Маркований список + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Курсив + + + По центру + + + По ширині + + + По лівому краю + + + По правому краю + + + Arrange by: + + + Name + + + Size + + + Зменшити відступ + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Закреслений + + + Стиль + + + Підкреслений + + + Видалити посилання + + + Upload + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.bg-BG.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.bg-BG.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.bg-BG.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.bg-BG.resx new file mode 100644 index 000000000..6880e5e4e --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.bg-BG.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Добави нов запис + + + Изтриване + + + Отказ + + + Запази + + + Добави + + + Редактиране + + + Избери + + + Страница + + + Записи {0} - {1} от {2} + + + от {0} + + + Филтрирай + + + и + + + Премахни филтър + + + Е равно на + + + Е след или равно на + + + Е след + + + Е преди или равно на + + + Е преди + + + Не е равно на + + + Е равно на + + + Е по-голяма или равно на + + + Е по-голямо от + + + Е по-малко или равно на + + + Е по-малко от + + + Не е равно на + + + Покажи записи със стойност, която + + + Завършва на + + + Е равно на + + + Не е равно на + + + Започва с + + + Съдържа + + + Дръпни колона и я пусни тук, за да групираш + + + E равно на + + + Не е равно на + + + -Избери стойност- + + + Сигурни ли сте, че искате да изтриете записа? + + + не е вярно + + + е вярно + + + Няма записи за показване! + + + Откажи промените + + + Запази промените + + + Опресни + + + сортиране в нарастващ ред + + + сортиране в намаляващ ред + + + премахни групирането + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.de-DE.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.de-DE.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.de-DE.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.de-DE.resx new file mode 100644 index 000000000..72fe972f3 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.de-DE.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Neuen Datensatz hinzufügen + + + Löschen + + + Abbrechen + + + Aktualisiere + + + Einfügen + + + Bearbeiten + + + Wähle + + + Seite + + + Anzeigen der Elemente {0} - {1} von {2} + + + von {0} + + + Filter + + + Und + + + Filter löschen + + + Ist gleich + + + Ist nach oder gleich + + + Ist nach + + + Ist vor oder gleich + + + Ist vor + + + Ist nicht gleich + + + Ist gleich + + + Ist größer als oder gleich + + + Ist größer als + + + Ist kleiner als oder gleich + + + Ist kleiner + + + Ist nicht gleich + + + Zeigt Zeilen mit Werten, die + + + Endet mit + + + Ist gleich + + + Ist nicht gleich + + + Beginnt mit + + + Beinhaltet + + + Ziehen Sie eine Spaltenüberschrift hierher, um nach dieser Spalte zu gruppieren + + + Ist gleich + + + Ist nicht gleich + + + -wählen Sie- + + + Sind Sie sicher, dass Sie diesen Datensatz löschen wollen? + + + ist falsch + + + ist richtig + + + keine Daten + + + Änderungen verwerfen + + + Änderungen speichern + + + Aktualisieren + + + aufsteigend sortiert + + + absteigend sortiert + + + Gruppierung aufheben + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.designer.cs new file mode 100644 index 000000000..36b49b85b --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.designer.cs @@ -0,0 +1,468 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.225 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option or rebuild the Visual Studio project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Web.Application.StronglyTypedResourceProxyBuilder", "10.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class GridLocalization { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal GridLocalization() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Resources.GridLocalization", global::System.Reflection.Assembly.Load("App_GlobalResources")); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Add new record. + /// + internal static string AddNew { + get { + return ResourceManager.GetString("AddNew", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cancel. + /// + internal static string Cancel { + get { + return ResourceManager.GetString("Cancel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cancel changes. + /// + internal static string CancelChanges { + get { + return ResourceManager.GetString("CancelChanges", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete. + /// + internal static string Delete { + get { + return ResourceManager.GetString("Delete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete this record?. + /// + internal static string DeleteConfirmation { + get { + return ResourceManager.GetString("DeleteConfirmation", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Displaying items {0} - {1} of {2}. + /// + internal static string DisplayingItems { + get { + return ResourceManager.GetString("DisplayingItems", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Edit. + /// + internal static string Edit { + get { + return ResourceManager.GetString("Edit", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Filter. + /// + internal static string Filter { + get { + return ResourceManager.GetString("Filter", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to And. + /// + internal static string FilterAnd { + get { + return ResourceManager.GetString("FilterAnd", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to is false. + /// + internal static string FilterBoolIsFalse { + get { + return ResourceManager.GetString("FilterBoolIsFalse", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to is true. + /// + internal static string FilterBoolIsTrue { + get { + return ResourceManager.GetString("FilterBoolIsTrue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Clear Filter. + /// + internal static string FilterClear { + get { + return ResourceManager.GetString("FilterClear", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is equal to. + /// + internal static string FilterDateEq { + get { + return ResourceManager.GetString("FilterDateEq", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is after or equal to. + /// + internal static string FilterDateGe { + get { + return ResourceManager.GetString("FilterDateGe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is after. + /// + internal static string FilterDateGt { + get { + return ResourceManager.GetString("FilterDateGt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is before or equal to. + /// + internal static string FilterDateLe { + get { + return ResourceManager.GetString("FilterDateLe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is before. + /// + internal static string FilterDateLt { + get { + return ResourceManager.GetString("FilterDateLt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is not equal to. + /// + internal static string FilterDateNe { + get { + return ResourceManager.GetString("FilterDateNe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is equal to. + /// + internal static string FilterEnumEq { + get { + return ResourceManager.GetString("FilterEnumEq", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is not equal to. + /// + internal static string FilterEnumNe { + get { + return ResourceManager.GetString("FilterEnumNe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is equal to. + /// + internal static string FilterNumberEq { + get { + return ResourceManager.GetString("FilterNumberEq", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is greater than or equal to. + /// + internal static string FilterNumberGe { + get { + return ResourceManager.GetString("FilterNumberGe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is greater than. + /// + internal static string FilterNumberGt { + get { + return ResourceManager.GetString("FilterNumberGt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is less than or equal to. + /// + internal static string FilterNumberLe { + get { + return ResourceManager.GetString("FilterNumberLe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is less than. + /// + internal static string FilterNumberLt { + get { + return ResourceManager.GetString("FilterNumberLt", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is not equal to. + /// + internal static string FilterNumberNe { + get { + return ResourceManager.GetString("FilterNumberNe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to -Select value-. + /// + internal static string FilterSelectValue { + get { + return ResourceManager.GetString("FilterSelectValue", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Show rows with value that. + /// + internal static string FilterShowRows { + get { + return ResourceManager.GetString("FilterShowRows", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ends with. + /// + internal static string FilterStringEndsWith { + get { + return ResourceManager.GetString("FilterStringEndsWith", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is equal to. + /// + internal static string FilterStringEq { + get { + return ResourceManager.GetString("FilterStringEq", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Is not equal to. + /// + internal static string FilterStringNe { + get { + return ResourceManager.GetString("FilterStringNe", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Starts with. + /// + internal static string FilterStringStartsWith { + get { + return ResourceManager.GetString("FilterStringStartsWith", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contains. + /// + internal static string FilterStringSubstringOf { + get { + return ResourceManager.GetString("FilterStringSubstringOf", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Drag a column header and drop it here to group by that column. + /// + internal static string GroupHint { + get { + return ResourceManager.GetString("GroupHint", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Insert. + /// + internal static string Insert { + get { + return ResourceManager.GetString("Insert", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No records to display.. + /// + internal static string NoRecords { + get { + return ResourceManager.GetString("NoRecords", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Page . + /// + internal static string Page { + get { + return ResourceManager.GetString("Page", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to of {0}. + /// + internal static string PageOf { + get { + return ResourceManager.GetString("PageOf", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Refresh. + /// + internal static string Refresh { + get { + return ResourceManager.GetString("Refresh", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Save changes. + /// + internal static string SaveChanges { + get { + return ResourceManager.GetString("SaveChanges", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select. + /// + internal static string Select { + get { + return ResourceManager.GetString("Select", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to sorted ascending. + /// + internal static string SortedAsc { + get { + return ResourceManager.GetString("SortedAsc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to sorted descending. + /// + internal static string SortedDesc { + get { + return ResourceManager.GetString("SortedDesc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to ungroup. + /// + internal static string UnGroup { + get { + return ResourceManager.GetString("UnGroup", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Update. + /// + internal static string Update { + get { + return ResourceManager.GetString("Update", resourceCulture); + } + } + } +} diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.en-US.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.en-US.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.en-US.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.en-US.resx new file mode 100644 index 000000000..99d7e63fb --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.en-US.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Add new record + + + Delete + + + Cancel + + + Update + + + Insert + + + Edit + + + Select + + + Page + + + Displaying items {0} - {1} of {2} + + + of {0} + + + Filter + + + And + + + Clear Filter + + + Is equal to + + + Is after or equal to + + + Is after + + + Is before or equal to + + + Is before + + + Is not equal to + + + Is equal to + + + Is greater than or equal to + + + Is greater than + + + Is less than or equal to + + + Is less than + + + Is not equal to + + + Show rows with value that + + + Ends with + + + Is equal to + + + Is not equal to + + + Starts with + + + Contains + + + Drag a column header and drop it here to group by that column + + + Is equal to + + + Is not equal to + + + Are you sure you want to delete this record? + + + -Select value- + + + is false + + + is true + + + No records to display. + + + Cancel changes + + + Save changes + + + Refresh + + + sorted ascending + + + sorted descending + + + ungroup + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.es-ES.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.es-ES.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.es-ES.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.es-ES.resx new file mode 100644 index 000000000..d332f18da --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.es-ES.resx @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Añadir nuevo registro + + + Eliminar + + + Cancelar + + + Actualizar + + + Añadir + + + Editar + + + Seleccionar + + + Página + + + Elementos mostrados {0} - {1} de {2} + + + de {0} + + + Filtrar + + + Y + + + Limpiar filtro + + + Es igual a + + + Es posterior o igual a + + + Es posterior + + + Es anterior o igual a + + + Es anterior + + + No es igual a + + + Es igual a + + + Es mayor o igual que + + + Es mayor que + + + Es menor o igual que + + + Es menor que + + + No es igual a + + + Mostrar filas con valor que + + + Termina en + + + Es igual a + + + No es igual a + + + Comienza con + + + Contiene + + + Arrastre un encabezado de columna y póngalo aquí para agrupar por ella + + + Es igual a + + + No es igual a + + + ¿Está seguro de que quiere eliminar este registro? + + + No records to display. + + + No + + + Si + + + Cancel Changes + + + Save Changes + + + Actualizar + + + ordenados ascendente + + + ordenados descendente + + + desagrupar + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.fr-FR.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.fr-FR.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.fr-FR.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.fr-FR.resx new file mode 100644 index 000000000..97e9f5172 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.fr-FR.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Ajouter un contenu + + + Effacer + + + Annuler + + + Rafraîchir + + + Insérer + + + Edition + + + Sélectionner + + + Page + + + Afficher les items {0} - {1} of {2} + + + de {0} + + + Filtrer + + + et + + + Annuler Filtrer + + + égal à + + + est postérieur ou égal à + + + est postérieur + + + est antérieur ou égal à + + + est antérieur + + + n’est pas égal à + + + égal à + + + est supérieur ou égal à + + + est supérieur à + + + est moins ou égal à + + + est moins de + + + n’est pas égal à + + + Montrer les lignes avec la valeur de + + + Finit par + + + égal à + + + n’est pas égal à + + + Commence par + + + contient + + + Faites glisser la tête de colonne et posez-la ici pour la grouper avec cette colonne. + + + égal à + + + n’est pas égal à + + + -Sélectionner- + + + Etes-vous surs de vouloir effacer le contenu ? + + + est fausse + + + est vrai + + + No records to display. + + + Cancel Changes + + + Save Changes + + + Actualiser + + + triés croissant + + + triés décroissant + + + supprimer groupement + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.pl-PL.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.pl-PL.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.pl-PL.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.pl-PL.resx new file mode 100644 index 000000000..ed27ea524 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.pl-PL.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Dodaj nowy rekord + + + Usuń + + + Anuluj + + + Aktualizuj + + + Wstaw + + + Edycja + + + Zaznacz + + + Strona + + + Wyświetlanie elementów {0} - {1} z {2} + + + z {0} + + + Filtr + + + Oraz + + + Wyczyść filtr + + + jest równe + + + jest późniejsze lub równe + + + jest późniejsze + + + jest wcześniejsze lub równe + + + jest wcześniejsze + + + jest inne niż + + + jest równe + + + jest większe lub równe + + + jest większe + + + jest mniejsze lub równe + + + jest mniejsze niż + + + jest inne niż + + + Pokaż wiersze o wartościach które + + + Kończy się na + + + jest równe + + + jest inne niż + + + Zaczyna się od + + + Zawiera + + + Przeciągnij nagłówek kolumny i upuść go tutaj aby pogrupować według tej kolumny + + + jest równe + + + jest inne niż + + + Czy na pewno chcesz usunąć ten rekord? + + + -Wybierz wartość- + + + fałsz + + + prawda + + + Brak danych + + + Anuluj zmiany + + + Zapisz zmiany + + + Odśwież + + + posortowane rosnąco + + + posortowane malejąco + + + rozgrupować + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-BR.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-BR.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-BR.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-BR.resx new file mode 100644 index 000000000..646b7b7db --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-BR.resx @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Adicionar novo registro + + + Excluir + + + Cancelar + + + Atualizar + + + Inserir + + + Editar + + + Selecionar + + + Página + + + Exibindo itens {0} - {1} de {2} + + + de {0} + + + Filtro + + + E + + + Limpar Filtro + + + É igual a + + + É posterior ou igual a + + + É posterior a + + + É anterior ou igual a + + + É anterior a + + + Não é igual a + + + É igual a + + + É maior que ou igual a + + + É maior que + + + É menor que ou igual a + + + É menor que + + + Não é igual a + + + Exibir linhas com valores que + + + Termina com + + + É igual a + + + Não é igual a + + + Começa com + + + Contem + + + Arraste aqui o cabeçalho de uma coluna para agrupar por esta coluna + + + É igual a + + + Não é igual a + + + Você tem certeza que deseja excluir este registro? + + + É falsa + + + É verdade + + + No records to display. + + + Cancel Changes + + + Save Changes + + + Atualizar + + + ordenadas crescente + + + ordenadas descendente + + + desagrupar + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-PT.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-PT.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-PT.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-PT.resx new file mode 100644 index 000000000..c61481321 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.pt-PT.resx @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Novo + + + Cancelar + + + Apagar + + + Pretende remover o registo? + + + Registos {0} - {1} de {2} + + + Editar + + + No records to display. + + + Filtro + + + e + + + Limpar + + + Igual + + + Maior ou igual que + + + Maior que + + + Menor ou igual que + + + Menor que + + + Diferente + + + Igual + + + Diferente + + + Igual + + + Maior ou igual que + + + Maior que + + + Menor ou igual que + + + Menor que + + + Diferente + + + -Seleccione um item- + + + Motrar as linhas com o valor + + + A acabar em + + + Igual + + + Diferente + + + A comecar com + + + Contem + + + Arraste uma coluna para este espaco para agrupar pelo valor da mesma... + + + Inserir + + + Pagina + + + de {0} + + + Seleccionar + + + Actualizar + + + Cancel Changes + + + Save Changes + + + Actualizar + + + ordenadas crescente + + + ordenadas descendente + + + desagrupar + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.resx new file mode 100644 index 000000000..99d7e63fb --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Add new record + + + Delete + + + Cancel + + + Update + + + Insert + + + Edit + + + Select + + + Page + + + Displaying items {0} - {1} of {2} + + + of {0} + + + Filter + + + And + + + Clear Filter + + + Is equal to + + + Is after or equal to + + + Is after + + + Is before or equal to + + + Is before + + + Is not equal to + + + Is equal to + + + Is greater than or equal to + + + Is greater than + + + Is less than or equal to + + + Is less than + + + Is not equal to + + + Show rows with value that + + + Ends with + + + Is equal to + + + Is not equal to + + + Starts with + + + Contains + + + Drag a column header and drop it here to group by that column + + + Is equal to + + + Is not equal to + + + Are you sure you want to delete this record? + + + -Select value- + + + is false + + + is true + + + No records to display. + + + Cancel changes + + + Save changes + + + Refresh + + + sorted ascending + + + sorted descending + + + ungroup + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.ru-RU.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.ru-RU.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.ru-RU.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.ru-RU.resx new file mode 100644 index 000000000..1b28fec39 --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.ru-RU.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Создать новую запись + + + Удалить + + + Отмена + + + Обновить + + + Добавить + + + Изменить + + + Выбрать + + + Страница + + + Отображены записи {0} - {1} из {2} + + + из {0} + + + фильтровать + + + И + + + очистить фильтр + + + равна + + + после или равна + + + после + + + до или равна + + + до + + + не равна + + + равно + + + больше или равно + + + больше + + + меньше или равно + + + меньше + + + не равно + + + Строки со значениями + + + оканчивающимися на + + + равными + + + не равными + + + начинающимися на + + + содержащими + + + Переместите сюда заголовок колонки, чтобы сгрупировать записи из этой колонки + + + равно + + + не равно + + + Вы уверены, что хотите удалить эту запись? + + + -выберите- + + + ложь + + + истина + + + Нет записей для отображения + + + Отменить изменения + + + Сохранить изменения + + + Обновить + + + отсортировано по возрастанию + + + отсортировано по убыванию + + + разгруппировать + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.uk-UA.designer.cs b/NzbDrone.Web/App_GlobalResources/GridLocalization.uk-UA.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/GridLocalization.uk-UA.resx b/NzbDrone.Web/App_GlobalResources/GridLocalization.uk-UA.resx new file mode 100644 index 000000000..59f26f01c --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/GridLocalization.uk-UA.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Створити новий запис + + + Видалити + + + Скасувати + + + Оновити + + + Додати + + + Редагувати + + + Вибрати + + + Сторінка + + + Зображено записи {0} - {1} з {2} + + + з {0} + + + фільтрувати + + + І + + + очистити фільтр + + + рівними + + + після або рівна + + + після + + + до або рівними + + + до + + + не рівна + + + рівне + + + більше або рівними + + + більше + + + менше або рівними + + + менше + + + не рівними + + + Рядки із записами + + + закінчуються на + + + рівні + + + не рівні + + + починаються на + + + містять + + + Перетягніть сюди заголовок стовпця, щоб згрупувати записи з цього стовпця + + + рівними + + + не рівними + + + Ви впевнені, що бажаєте видалити даний запис? + + + -виберіть- + + + хиба + + + істина + + + немає записів + + + Cancel Changes + + + Save Changes + + + Оновити + + + відсортовано за зростанням + + + відсортовано за зменьшенням + + + розгрупувати + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.bg-BG.designer.cs b/NzbDrone.Web/App_GlobalResources/UploadLocalization.bg-BG.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.bg-BG.resx b/NzbDrone.Web/App_GlobalResources/UploadLocalization.bg-BG.resx new file mode 100644 index 000000000..02a4fd69d --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/UploadLocalization.bg-BG.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Спри + Cancel button text + + + Опитай отново + Retry button text + + + Избери... + Select button text + + + Премахни + Remove button text + + + Качи файловете + Upload button (visible when AutoUpload is set to false) + + + преместете с мишката файлове тук за да ги качите + Drag & Drop hint text + + + грешка + "failed" status text accessible by screen readers + + + качен + "uploaded" status text accessible by screen readers + + + качва се + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.en-US.designer.cs b/NzbDrone.Web/App_GlobalResources/UploadLocalization.en-US.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.en-US.resx b/NzbDrone.Web/App_GlobalResources/UploadLocalization.en-US.resx new file mode 100644 index 000000000..0380e024d --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/UploadLocalization.en-US.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cancel + Cancel button text + + + Retry + Retry button text + + + Select... + Select button text + + + Remove + Remove button text + + + Upload files + Upload button (visible when AutoUpload is set to false) + + + drop files here to upload + Drag & Drop hint text + + + failed + "failed" status text accessible by screen readers + + + uploaded + "uploaded" status text accessible by screen readers + + + uploading + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.pl-PL.designer.cs b/NzbDrone.Web/App_GlobalResources/UploadLocalization.pl-PL.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.pl-PL.resx b/NzbDrone.Web/App_GlobalResources/UploadLocalization.pl-PL.resx new file mode 100644 index 000000000..c883bf93d --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/UploadLocalization.pl-PL.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Anuluj + Cancel button text + + + Ponów + Retry button text + + + Wybierz... + Select button text + + + Usuń + Remove button text + + + Załaduj pliki + Upload button (visible when AutoUpload is set to false) + + + przeciągnij tu pliki aby je załadować + Drag & Drop hint text + + + niepowodzenie + "failed" status text accessible by screen readers + + + załadowane + "uploaded" status text accessible by screen readers + + + trwa ładowanie + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.ru-RU.designer.cs b/NzbDrone.Web/App_GlobalResources/UploadLocalization.ru-RU.designer.cs new file mode 100644 index 000000000..e69de29bb diff --git a/NzbDrone.Web/App_GlobalResources/UploadLocalization.ru-RU.resx b/NzbDrone.Web/App_GlobalResources/UploadLocalization.ru-RU.resx new file mode 100644 index 000000000..d837f77ff --- /dev/null +++ b/NzbDrone.Web/App_GlobalResources/UploadLocalization.ru-RU.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Отмена + Cancel button text + + + Повторить + Retry button text + + + Выбрать... + Select button text + + + Удалить + Remove button text + + + Загрузить файлы + Upload button (visible when AutoUpload is set to false) + + + перетащите сюда файлы для загрузки + Drag & Drop hint text + + + неудачно + "failed" status text accessible by screen readers + + + загружено + "uploaded" status text accessible by screen readers + + + загружается + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/Black/editor.png b/NzbDrone.Web/Content/2011.2.712/Black/editor.png new file mode 100644 index 000000000..456f9c518 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Black/imagebrowser.png new file mode 100644 index 000000000..4b723a2f4 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/loading.gif b/NzbDrone.Web/Content/2011.2.712/Black/loading.gif new file mode 100644 index 000000000..1079b7a96 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Black/slider-h.gif new file mode 100644 index 000000000..9af4aea03 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Black/slider-v.gif new file mode 100644 index 000000000..2ae734232 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Black/sprite-vertical.png new file mode 100644 index 000000000..6754eee18 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/sprite.png b/NzbDrone.Web/Content/2011.2.712/Black/sprite.png new file mode 100644 index 000000000..5526310c7 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Black/treeview-line.png new file mode 100644 index 000000000..631eb5594 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Black/treeview-nodes-rtl.png new file mode 100644 index 000000000..5f249c633 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Black/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Black/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Black/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/editor.png b/NzbDrone.Web/Content/2011.2.712/Default/editor.png new file mode 100644 index 000000000..311414557 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Default/imagebrowser.png new file mode 100644 index 000000000..11252f2d0 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/loading.gif b/NzbDrone.Web/Content/2011.2.712/Default/loading.gif new file mode 100644 index 000000000..67065a630 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Default/slider-h.gif new file mode 100644 index 000000000..6149098a1 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Default/slider-v.gif new file mode 100644 index 000000000..1d7de84d3 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Default/sprite-vertical.png new file mode 100644 index 000000000..122af8061 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/sprite.png b/NzbDrone.Web/Content/2011.2.712/Default/sprite.png new file mode 100644 index 000000000..2da960445 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Default/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Default/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Default/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Default/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Default/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/editor.png b/NzbDrone.Web/Content/2011.2.712/Forest/editor.png new file mode 100644 index 000000000..a4bf2d17e Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Forest/imagebrowser.png new file mode 100644 index 000000000..34a8470b5 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/loading.gif b/NzbDrone.Web/Content/2011.2.712/Forest/loading.gif new file mode 100644 index 000000000..b8453f0e9 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Forest/slider-h.gif new file mode 100644 index 000000000..281af853f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Forest/slider-v.gif new file mode 100644 index 000000000..e56427228 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Forest/sprite-vertical.png new file mode 100644 index 000000000..5d3ec8033 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/sprite.png b/NzbDrone.Web/Content/2011.2.712/Forest/sprite.png new file mode 100644 index 000000000..5a3277917 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Forest/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Forest/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Forest/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Forest/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Forest/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/editor.png b/NzbDrone.Web/Content/2011.2.712/Hay/editor.png new file mode 100644 index 000000000..0af0168e9 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Hay/imagebrowser.png new file mode 100644 index 000000000..73e5c8c4b Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/loading.gif b/NzbDrone.Web/Content/2011.2.712/Hay/loading.gif new file mode 100644 index 000000000..f316fdcda Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Hay/slider-h.gif new file mode 100644 index 000000000..eb41a2d17 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Hay/slider-v.gif new file mode 100644 index 000000000..2064b2b07 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Hay/sprite-vertical.png new file mode 100644 index 000000000..6f83f17fb Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/sprite.png b/NzbDrone.Web/Content/2011.2.712/Hay/sprite.png new file mode 100644 index 000000000..d5c4795ec Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Hay/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Hay/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Hay/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Hay/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Hay/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/editor.png b/NzbDrone.Web/Content/2011.2.712/Office2007/editor.png new file mode 100644 index 000000000..3bb258c4f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Office2007/imagebrowser.png new file mode 100644 index 000000000..f6dc921b4 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/loading.gif b/NzbDrone.Web/Content/2011.2.712/Office2007/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Office2007/slider-h.gif new file mode 100644 index 000000000..ed31920b6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Office2007/slider-v.gif new file mode 100644 index 000000000..3b7594107 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Office2007/sprite-vertical.png new file mode 100644 index 000000000..8387e7720 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/sprite.png b/NzbDrone.Web/Content/2011.2.712/Office2007/sprite.png new file mode 100644 index 000000000..94c141a37 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2007/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/editor.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/editor.png new file mode 100644 index 000000000..5b5eff047 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/imagebrowser.png new file mode 100644 index 000000000..21c5123da Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/loading.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Black/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Black/slider-h.gif new file mode 100644 index 000000000..a53cb70fe Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Black/slider-v.gif new file mode 100644 index 000000000..cc7a98d63 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/sprite-vertical.png new file mode 100644 index 000000000..f95314d33 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/sprite.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/sprite.png new file mode 100644 index 000000000..9675b848c Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Black/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/editor.png b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/editor.png new file mode 100644 index 000000000..60167bbcd Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/gradient.png b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/gradient.png new file mode 100644 index 000000000..7c0307f62 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/gradient.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/loading.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/slider-h.gif new file mode 100644 index 000000000..ed31920b6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/slider-v.gif new file mode 100644 index 000000000..3b7594107 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/sprite-vertical.png new file mode 100644 index 000000000..f49e8e48f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Blue/sprite.png b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/sprite.png new file mode 100644 index 000000000..e9326969b Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Blue/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/editor.png b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/editor.png new file mode 100644 index 000000000..95db4a4d5 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/gradient.png b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/gradient.png new file mode 100644 index 000000000..7c0307f62 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/gradient.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/loading.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/slider-h.gif new file mode 100644 index 000000000..6149098a1 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/slider-v.gif new file mode 100644 index 000000000..1d7de84d3 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/sprite-vertical.png new file mode 100644 index 000000000..21b9a9724 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Office2010Silver/sprite.png b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/sprite.png new file mode 100644 index 000000000..3900818d5 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Office2010Silver/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/editor.png b/NzbDrone.Web/Content/2011.2.712/Outlook/editor.png new file mode 100644 index 000000000..2f88b4a47 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Outlook/imagebrowser.png new file mode 100644 index 000000000..a6ada8c8c Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/loading.gif b/NzbDrone.Web/Content/2011.2.712/Outlook/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Outlook/slider-h.gif new file mode 100644 index 000000000..771def2f5 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Outlook/slider-v.gif new file mode 100644 index 000000000..a889f8a8b Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Outlook/sprite-vertical.png new file mode 100644 index 000000000..78a4605cc Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/sprite.png b/NzbDrone.Web/Content/2011.2.712/Outlook/sprite.png new file mode 100644 index 000000000..2bc5203d1 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Outlook/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/editor.png b/NzbDrone.Web/Content/2011.2.712/Simple/editor.png new file mode 100644 index 000000000..bea6d33a0 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Simple/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/loading.gif b/NzbDrone.Web/Content/2011.2.712/Simple/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Simple/slider-h.gif new file mode 100644 index 000000000..771def2f5 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Simple/slider-v.gif new file mode 100644 index 000000000..a889f8a8b Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Simple/sprite-vertical.png new file mode 100644 index 000000000..8141effe0 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/sprite.png b/NzbDrone.Web/Content/2011.2.712/Simple/sprite.png new file mode 100644 index 000000000..d41c7873f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Simple/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Simple/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Simple/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Simple/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Simple/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/editor.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/editor.png new file mode 100644 index 000000000..57a0ca917 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/loading.gif b/NzbDrone.Web/Content/2011.2.712/Sitefinity/loading.gif new file mode 100644 index 000000000..3c4d61eb1 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Sitefinity/slider-h.gif new file mode 100644 index 000000000..0cee639a1 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Sitefinity/slider-v.gif new file mode 100644 index 000000000..a91e56c85 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/sprite-vertical.png new file mode 100644 index 000000000..2bfcefd4a Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/sprite.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/sprite.png new file mode 100644 index 000000000..fbd6fc0cb Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sitefinity/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/editor.png b/NzbDrone.Web/Content/2011.2.712/Sunset/editor.png new file mode 100644 index 000000000..3bdf9d607 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Sunset/imagebrowser.png new file mode 100644 index 000000000..73a42339b Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/loading.gif b/NzbDrone.Web/Content/2011.2.712/Sunset/loading.gif new file mode 100644 index 000000000..f5c95b787 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Sunset/slider-h.gif new file mode 100644 index 000000000..c4d97a422 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Sunset/slider-v.gif new file mode 100644 index 000000000..1bc20fa95 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Sunset/sprite-vertical.png new file mode 100644 index 000000000..21638be5c Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/sprite.png b/NzbDrone.Web/Content/2011.2.712/Sunset/sprite.png new file mode 100644 index 000000000..95ab6317d Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Sunset/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/editor.png b/NzbDrone.Web/Content/2011.2.712/Telerik/editor.png new file mode 100644 index 000000000..239e092e6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Telerik/imagebrowser.png new file mode 100644 index 000000000..e13cb4621 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/loading.gif b/NzbDrone.Web/Content/2011.2.712/Telerik/loading.gif new file mode 100644 index 000000000..23580e300 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Telerik/slider-h.gif new file mode 100644 index 000000000..218e74ea3 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Telerik/slider-v.gif new file mode 100644 index 000000000..c34c7355c Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Telerik/sprite-vertical.png new file mode 100644 index 000000000..c67746b01 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/sprite.png b/NzbDrone.Web/Content/2011.2.712/Telerik/sprite.png new file mode 100644 index 000000000..7accb77c0 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Telerik/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/active.png b/NzbDrone.Web/Content/2011.2.712/Transparent/active.png new file mode 100644 index 000000000..9ce830bb4 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/active.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/editor.png b/NzbDrone.Web/Content/2011.2.712/Transparent/editor.png new file mode 100644 index 000000000..15074d74c Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/gradient.png b/NzbDrone.Web/Content/2011.2.712/Transparent/gradient.png new file mode 100644 index 000000000..7c0307f62 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/gradient.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/group.png b/NzbDrone.Web/Content/2011.2.712/Transparent/group.png new file mode 100644 index 000000000..ac2ccdad2 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/group.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/hover.png b/NzbDrone.Web/Content/2011.2.712/Transparent/hover.png new file mode 100644 index 000000000..8c5746cf4 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/hover.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Transparent/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/loading.gif b/NzbDrone.Web/Content/2011.2.712/Transparent/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/selected.png b/NzbDrone.Web/Content/2011.2.712/Transparent/selected.png new file mode 100644 index 000000000..650ad5f92 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/selected.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Transparent/slider-h.gif new file mode 100644 index 000000000..6149098a1 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Transparent/slider-v.gif new file mode 100644 index 000000000..1d7de84d3 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Transparent/sprite-vertical.png new file mode 100644 index 000000000..cf2dbf111 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/sprite.png b/NzbDrone.Web/Content/2011.2.712/Transparent/sprite.png new file mode 100644 index 000000000..f3600f13f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/toolbar.png b/NzbDrone.Web/Content/2011.2.712/Transparent/toolbar.png new file mode 100644 index 000000000..b7cff0677 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/toolbar.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Transparent/widget.png b/NzbDrone.Web/Content/2011.2.712/Transparent/widget.png new file mode 100644 index 000000000..790a7b22f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Transparent/widget.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/editor.png b/NzbDrone.Web/Content/2011.2.712/Vista/editor.png new file mode 100644 index 000000000..c66c631ff Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Vista/imagebrowser.png new file mode 100644 index 000000000..700fc0f2f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/loading.gif b/NzbDrone.Web/Content/2011.2.712/Vista/loading.gif new file mode 100644 index 000000000..0bf1b7d04 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Vista/slider-h.gif new file mode 100644 index 000000000..218e74ea3 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Vista/slider-v.gif new file mode 100644 index 000000000..c34c7355c Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Vista/sprite-vertical.png new file mode 100644 index 000000000..cf27f54a6 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Vista/sprite.png b/NzbDrone.Web/Content/2011.2.712/Vista/sprite.png new file mode 100644 index 000000000..6f6e673cb Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Vista/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/editor.png b/NzbDrone.Web/Content/2011.2.712/Web20/editor.png new file mode 100644 index 000000000..23d13e030 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Web20/imagebrowser.png new file mode 100644 index 000000000..05056e6ac Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/loading.gif b/NzbDrone.Web/Content/2011.2.712/Web20/loading.gif new file mode 100644 index 000000000..070505732 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Web20/slider-h.gif new file mode 100644 index 000000000..a76cecee9 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Web20/slider-v.gif new file mode 100644 index 000000000..bc1b332cb Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Web20/sprite-vertical.png new file mode 100644 index 000000000..f1c9ad0ad Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/sprite.png b/NzbDrone.Web/Content/2011.2.712/Web20/sprite.png new file mode 100644 index 000000000..6b25bf456 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/Web20/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/Web20/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Web20/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/Web20/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Web20/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/editor.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/editor.png new file mode 100644 index 000000000..fdc2239eb Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/imagebrowser.png new file mode 100644 index 000000000..02ab51d9b Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/loading.gif b/NzbDrone.Web/Content/2011.2.712/WebBlue/loading.gif new file mode 100644 index 000000000..9ed7d0c53 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/WebBlue/slider-h.gif new file mode 100644 index 000000000..8ed51ddc2 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/WebBlue/slider-v.gif new file mode 100644 index 000000000..db82fe3f3 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/sprite-vertical.png new file mode 100644 index 000000000..ee03f9a2f Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/sprite.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/sprite.png new file mode 100644 index 000000000..daa8432d0 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-line.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-line.png new file mode 100644 index 000000000..631eb5594 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-line.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-nodes-rtl.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-nodes-rtl.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-nodes.png b/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/WebBlue/treeview-nodes.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/editor.png b/NzbDrone.Web/Content/2011.2.712/Windows7/editor.png new file mode 100644 index 000000000..18f9f0dce Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/editor.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/imagebrowser.png b/NzbDrone.Web/Content/2011.2.712/Windows7/imagebrowser.png new file mode 100644 index 000000000..ca9a253be Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/imagebrowser.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/loading.gif b/NzbDrone.Web/Content/2011.2.712/Windows7/loading.gif new file mode 100644 index 000000000..c5463250e Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/loading.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/slider-h.gif b/NzbDrone.Web/Content/2011.2.712/Windows7/slider-h.gif new file mode 100644 index 000000000..673f19a5e Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/slider-h.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/slider-v.gif b/NzbDrone.Web/Content/2011.2.712/Windows7/slider-v.gif new file mode 100644 index 000000000..2b9cd7605 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/slider-v.gif differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/sprite-vertical.png b/NzbDrone.Web/Content/2011.2.712/Windows7/sprite-vertical.png new file mode 100644 index 000000000..696e97d76 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/sprite-vertical.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/Windows7/sprite.png b/NzbDrone.Web/Content/2011.2.712/Windows7/sprite.png new file mode 100644 index 000000000..0a96b1364 Binary files /dev/null and b/NzbDrone.Web/Content/2011.2.712/Windows7/sprite.png differ diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.black.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.black.min.css new file mode 100644 index 000000000..a85d33538 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.black.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#080808;background-color:#4f4f4f;}.t-header,.t-grid-header{border-color:#080808;background:#050505 url('Black/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Black/sprite.png');}.t-editor .t-tool-icon{background-image:url('Black/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Black/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup,.t-input{color:#fff;}.t-other-month .t-link{color:#6f6f6f;}.t-group,.t-content,.t-editable-area{border-color:#080808;background-color:#4f4f4f;}.t-colorpicker .t-arrow-down{border-color:#080808;}.t-separator{border-color:#323232;background-color:#080808;}.t-alt{background-color:#494949;}.t-state-default{border-color:#080808;}.t-active-filter{background-color:#363636;}.t-state-hover,.t-state-hover .t-link{color:#9eda29;}.t-state-hover,.t-state-hover:hover{background-color:#2c2c2c;border-color:#080808;}.t-state-active{background-color:#4f4f4f;border-color:#080808;}.t-state-selected{background:#1c1c1c;border-color:#000;}.t-state-focused{background-color:#2c2c2c;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#080808;color:#fff;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#050505 url('Black/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#131313;color:#9eda29;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#787878;}.t-header .t-state-disabled{border-color:#4f4f4f;}.t-popup,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #222;-webkit-box-shadow:2px 2px 2px #222;box-shadow:2px 2px 2px #222;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#080808;background-color:#2c2c2c;}.t-grid td{border-color:#454545;}.t-grouping-row td{background:#4f4f4f url('Black/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#2e2e2e;border-color:#080808 #2e2e2e;}.t-group-footer td{background-color:#2e2e2e;border-color:#080808;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#2e2e2e;border-color:#080808;}.t-grouping-header .t-group-indicator{color:#333;border-color:#666;}.t-grouping-dropclue{background:url('Black/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#4f4f4f;}.t-drag-clue{color:#fff;}.t-treeview .t-drop-clue{background-image:url('Black/sprite.png');background-position:0 -358px;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#000;}.t-calendar th{background-color:#383838;border-color:#202020;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Black/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Black/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Black/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}div.t-window{-moz-box-shadow:0 0 5px 2px #222;-webkit-box-shadow:0 0 5px 2px #222;box-shadow:0 0 5px 2px #222;}.t-editor-button .t-state-hover{border-color:#565656 #111 #111 #565656;background-color:#232323;}.t-editor-button .t-state-active{border-color:#030303 #1f1f1f #1f1f1f #030303;background-color:#050505;}.t-slider .t-draghandle{background-image:url('Black/sprite.png');color:#080808;}.t-slider-track{border-color:#4a4a4a;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Black/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Black/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Black/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Black/slider-v.gif');}.t-state-disabled .t-slider-wrap .t-slider-items{color:#ccc;}.t-tooltip{background:#050505 0 -560px repeat-x url('Black/sprite.png');}.t-callout{background-image:url('Black/sprite.png');}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#262628;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Black/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Black/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#080808;}.t-dropzone-hovered,.t-upload-files{background-color:#2c2c2c;}.t-dropzone em{color:#848484;}.t-progress,.t-progress-status{background-image:url('Black/sprite.png');}.t-progress{background-position:0 -465px;border-color:#4a4a4a #474747;}.t-progress-status{background-position:0 -472px;border-color:#9eda29 transparent #456408;}.t-imagebrowser .t-content{background:#3d3d3d;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label,.t-tiles-arrange{color:#a1a1a1;}.t-toolbar .t-upload .t-button,.t-tiles-arrange a{color:#fff;}.t-tiles{border-color:#222;background:#4f4f4f;}.t-tile{border-color:#4f4f4f;background:0 100px repeat-x url('Black/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#080808;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#080808;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Black/imagebrowser.png');}.t-tile em,.t-tile .t-filesize,.t-tile-empty strong{color:#7d7d7d;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.common.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.common.min.css new file mode 100644 index 000000000..675d751ba --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.common.min.css @@ -0,0 +1 @@ +.t-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none;}.t-floatwrap:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden;}.t-floatwrap{display:inline-block;}.t-floatwrap{display:block;}.t-widget,.t-widget .t-input,.t-widget .text-box,.t-button{font-size:100%;}.t-widget,.t-input{border-width:1px;border-style:solid;}.t-link{cursor:pointer;outline:none;}.t-grid-header span.t-link{cursor:default;}html body .t-button{text-decoration:none;}.t-button{display:inline-block;margin:0;padding:2px 6px;border-width:1px;border-style:solid;font-family:inherit;font-size:100%;line-height:1.435;text-align:center;cursor:pointer;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}*+html .t-button{display:inline;zoom:1;}* html .t-button{display:inline;zoom:1;}*+html .t-button{overflow:visible;margin-right:4px;}* html .t-button{overflow:visible;margin-right:4px;}*+html a.t-button{line-height:1.6;padding-left:7px;padding-right:7px;}* html a.t-button{line-height:1.6;padding-left:7px;padding-right:7px;}.t-button-icontext{line-height:1.453;}button.t-button::-moz-focus-inner,input.t-button::-moz-focus-inner{padding:1px 0;border:0;}.t-button-expand{margin-left:0!important;margin-right:0!important;}a.t-button-expand{display:block;}button.t-button-expand{width:100%;}body .t-button-icon{padding-left:4px;padding-right:4px;}*+html a.t-button-icon{padding-left:5px;padding-right:5px;}* html a.t-button-icon{padding-left:5px;padding-right:5px;}.t-button-icontext{padding-right:8px;overflow:visible;}.t-button-icontext .t-icon{margin:0 3px 0 -3px;vertical-align:top;}*+html .t-button-icontext .t-icon{margin-right:4px;}* html .t-button-icontext .t-icon{margin-right:4px;}html body .t-button-bare{background:none!important;border-width:0;}.t-icon,.t-editor-button .t-tool-icon{background-color:transparent;background-repeat:no-repeat;}.t-header .t-link{text-decoration:none;}.t-state-disabled,.t-state-disabled .t-link{cursor:default;outline:none;}.t-state-error{border-style:ridge;}.t-icon,.t-sprite,.t-editor-button .t-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;font-size:0;line-height:0;text-indent:-3333px;text-align:center;vertical-align:middle;}* html .t-icon,* html .t-sprite,* html .t-editor-button .t-tool-icon{display:inline;zoom:1;}* html .t-icon,.t-sprite{text-indent:0;}*+html .t-icon,.t-sprite{text-indent:0;}.t-image{border:0;}.t-state-empty{font-style:italic;}.t-popup,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #aaa;-webkit-box-shadow:2px 2px 2px #aaa;box-shadow:2px 2px 2px #aaa;}.t-expand{background-position:0 -160px;}.t-collapse{background-position:0 -176px;}.t-rtl .t-expand{background-position:-64px -160px;}.t-plus,.t-plus-disabled{background-position:0 -256px;}.t-minus,.t-minus-disabled{background-position:-16px -256px;}.t-rtl .t-plus,.t-rtl .t-plus-disabled{background-position:0 -272px;}.t-rtl .t-minus,.t-rtl .t-minus-disabled{background-position:-16px -272px;}.t-arrow-up{background-position:-16px -160px;}.t-arrow-down{background-position:-16px -176px;}.t-state-disabled .t-arrow-up{background-position:-32px -160px;}.t-state-disabled .t-arrow-down{background-position:-32px -176px;}.t-state-hover .t-arrow-up{background-position:-48px -160px;}.t-state-hover .t-arrow-down{background-position:-48px -176px;}.t-numerictextbox .t-arrow-up{background-position:-16px -162px;}.t-numerictextbox .t-arrow-down{background-position:-16px -178px;}.t-arrow-up-small{background-position:0 -304px;}.t-arrow-down-small{background-position:-16px -304px;}.t-arrow-first{background-position:0 -192px;}.t-arrow-prev{background-position:-16px -192px;}.t-arrow-next{background-position:-32px -192px;}.t-arrow-last{background-position:-48px -192px;}.t-state-disabled .t-arrow-first{background-position:0 -208px;}.t-state-disabled .t-arrow-prev{background-position:-16px -208px;}.t-state-disabled .t-arrow-next{background-position:-32px -208px;}.t-state-disabled .t-arrow-last{background-position:-48px -208px;}.t-state-hover .t-arrow-first{background-position:0 -224px;}.t-state-hover .t-arrow-prev{background-position:-16px -224px;}.t-state-hover .t-arrow-next{background-position:-32px -224px;}.t-state-hover .t-arrow-last{background-position:-48px -224px;}.t-filter{background-position:0 -240px;}.t-clear-filter{background-position:-16px -240px;}.t-refresh{background-position:-32px -240px;}.t-icon-calendar{background-position:-48px -240px;}.t-icon-clock{background-position:-64px -336px;}.t-edit{background-position:0 -336px;}.t-delete{background-position:-16px -336px;}.t-insert,.t-update{background-position:-32px -336px;}.t-cancel{background-position:-48px -336px;}.t-group-delete{background-position:0 -288px;}.t-maximize{background-position:-16px -288px;}.t-restore{background-position:-32px -288px;}.t-close{background-position:-64px -288px;}.t-insert-top{background-position:0 -320px;}.t-insert-middle{background-position:-16px -320px;}.t-insert-bottom{background-position:-32px -320px;}.t-add{background-position:-48px -320px;}.t-denied{background-position:-64px -320px;}.t-autocomplete,.t-input{padding:2px 1px 3px;}div.t-window{display:inline-block;*display:inline;zoom:1;z-index:10001;position:absolute;border-width:0;border-width:5px\9;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 0 5px 2px #aaa;-webkit-box-shadow:0 0 5px 2px #aaa;box-shadow:0 0 5px 2px #aaa;}:root .t-window{border-width:0;}.t-window-titlebar{padding:.4em 0;font-size:1.2em;line-height:1.2em;white-space:nowrap;border-bottom-width:1px;border-bottom-style:solid;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;}.t-window-title{cursor:default;position:absolute;text-overflow:ellipsis;overflow:hidden;left:.5em;right:.5em;}.t-window-title .t-image{margin:0 5px 0 0;vertical-align:middle;}div.t-window-content{padding:.4em .5em;overflow:auto;position:relative;-moz-border-radius-bottomleft:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-left-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;}.t-window-titlebar .t-window-actions{position:absolute;right:.5em;top:0;padding-top:.3em;white-space:nowrap;}.t-window-titlebar .t-link{width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;display:inline-block;*display:inline;zoom:1;opacity:.7;filter:alpha(opacity=70);}.t-window-titlebar .t-state-hover{border-width:1px;border-style:solid;padding:1px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;opacity:1;filter:alpha(opacity=100);}.t-window-actions .t-icon{margin:0;vertical-align:top;}.t-window .t-resize-handle{position:absolute;z-index:1;background-color:#fff;opacity:0;filter:alpha(opacity=0);zoom:1;line-height:6px;font-size:0;}.t-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize;}.t-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize;}.t-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize;}.t-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize;}.t-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize;}.t-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize;}.t-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize;}.t-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize;}.t-overlay{width:100%;height:100%;position:fixed;top:0;left:0;background-color:#000;filter:alpha(opacity=50);opacity:.5;z-index:10001;}.t-window .t-overlay{background-color:#fff;opacity:0;filter:alpha(opacity=0);position:absolute;width:100%;height:100%;}.t-window .t-widget{z-index:10002;}.t-tabstrip{margin:0;padding:0;zoom:1;}.t-tabstrip .t-tabstrip-items{padding:0 .3em;}.t-tabstrip-items .t-item,.t-panelbar .t-tabstrip-items .t-item{list-style-type:none;vertical-align:top;display:inline-block;*display:inline;zoom:1;border-width:1px 1px 0;border-style:solid;margin:.1em .3em 0 0;padding:0;position:relative;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;}.t-tabstrip-items .t-state-active,.t-panelbar .t-tabstrip-items .t-state-active{padding-bottom:1px;margin-bottom:-1px;}.t-tabstrip-items .t-link,.t-panelbar .t-tabstrip-items .t-link{padding:.3em .9em;display:inline-block;*display:inline;zoom:1;border-bottom-width:0;outline:0;}.t-tabstrip-items .t-icon,.t-panelbar .t-tabstrip-items .t-icon{margin:-1px 4px 0 -3px;vertical-align:top;}.t-tabstrip-items .t-item .t-image,.t-tabstrip-items .t-item .t-sprite,.t-panelbar .t-tabstrip-items .t-item .t-image,.t-panelbar .t-tabstrip-items .t-item .t-sprite{vertical-align:middle;margin:-3px 3px 0 -6px;}* html .t-tabstrip-items .t-item .t-image,* html .t-tabstrip-items .t-item .t-sprite{vertical-align:top;margin-top:-1px;}*+html .t-tabstrip-items .t-item .t-image,*+html .t-tabstrip-items .t-item .t-sprite{vertical-align:top;margin-top:-1px;}.t-tabstrip .t-content,.t-panelbar .t-tabstrip .t-content{border-width:1px;border-style:solid;margin:0 .3em .3em;padding:.3em 1em;display:none;position:static;zoom:1;}.t-panelbar{zoom:1;}.t-panelbar .t-item{list-style-type:none;display:block;zoom:1;margin:0;top:0;border-width:0;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;}.t-panelbar .t-image,.t-panelbar .t-sprite{vertical-align:middle;margin-right:5px;margin-top:4px;float:left;}.t-panelbar .t-group .t-image,.t-panelbar .t-group .t-sprite{margin-top:1px;}.t-panelbar .t-link{line-height:2.05em;padding:0 1em;border-bottom:1px solid;display:block;position:relative;text-decoration:none;zoom:1;}ul.t-panelbar .t-state-hover{background-image:none;}.t-panelbar-expand,.t-panelbar-collapse{position:absolute;top:5px;right:2px;}.t-panelbar .t-group,.t-panelbar .t-content{position:relative;zoom:1;padding:0;margin:0;border-bottom-width:1px;border-bottom-style:solid;}.t-panelbar .t-group .t-link{line-height:1.7em;border-bottom:0;font-size:.95em;}.t-panelbar .t-group .t-arrow-up,.t-panelbar .t-group .t-arrow-down{top:2px;}.t-panelbar .t-group .t-group .t-link{padding-left:2em;}.t-panelbar .t-last .t-link{border-bottom:0;}.t-panelbar .t-group .t-group{border-bottom:0;}.t-tabstrip .t-panelbar .t-content{display:block;}.t-menu{cursor:default;}.t-menu,.t-menu .t-group{list-style:none;padding:0;margin:0;zoom:1;}.t-menu .t-group .t-link{padding-right:2em;}.t-menu .t-item{position:relative;display:inline-block;*display:inline;zoom:1;border-width:0 1px 0 0;border-style:solid;vertical-align:top;}.t-menu-vertical .t-item{display:block;border-width:0;}.t-menu .t-image,.t-menu .t-sprite{margin:0 4px 0 -4px;vertical-align:top;}.t-menu .t-link{text-decoration:none;padding:.25em .97em;display:block;}.t-menu .t-group{display:none;white-space:nowrap;border-style:solid;border-width:1px;overflow:visible;}.t-menu .t-group .t-item{display:block;border-width:0;}.t-menu .t-group .t-link{zoom:1;}.t-menu .t-arrow-down{margin-left:2px;margin-right:-10px;vertical-align:top;}.t-menu .t-arrow-next{position:absolute;right:0;top:3px;}.t-menu .t-animation-container,.t-menu .t-group{left:-1px;position:absolute;}.t-menu .t-animation-container .t-animation-container,.t-menu .t-group .t-group{left:100%;top:-1px;}.t-menu-vertical .t-animation-container,.t-menu-vertical .t-group{left:100%;top:-1px;}.t-menu .t-animation-container .t-group{left:auto;top:auto;}.t-grid{position:relative;zoom:1;}.t-grid table{width:100%;border-collapse:separate;empty-cells:show;border:0;}.t-grid-header .t-header{text-align:left;}.t-grid-header .t-header,.t-grid-header .t-last-header{padding:.3em .6em;border-width:0 1px 1px 0;border-style:solid;font-weight:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.t-grid-header .t-last-header{border-right-width:0;}.t-grid-header .t-header .t-link{line-height:18px;height:18px;display:block;margin:-.3em -.6em;padding:.3em 2.4em .3em .6em;border:0;}.t-grid-header .t-header .t-icon{position:static;}.t-grid .t-state-hover{cursor:pointer;}.t-grid td{padding:.25em .6em;border-style:solid;border-width:0;border-right-width:1px;vertical-align:middle;line-height:1.6em;overflow:hidden;text-overflow:ellipsis;}.t-grid .t-last{border-right-width:0;}.t-grid-header-wrap,.t-grid-footer-wrap{position:relative;overflow:hidden;width:100%;zoom:1;}div.t-grid-header,div.t-grid-footer{padding-right:17px;zoom:1;border-bottom-width:1px;border-bottom-style:solid;}div.t-grid-header .t-header,div.t-grid-header .t-last-header{border-bottom-width:0;}div.t-grid-header .t-last-header{border-right-width:1px;}.t-grid-content{position:relative;overflow:auto;overflow-x:auto;overflow-y:scroll;width:100%;zoom:1;}.t-grid-header table,.t-grid-content table,.t-grid-footer table{table-layout:fixed;}* html .t-grid-content table{width:auto;}*+html .t-grid-content table{width:auto;}.t-grid-toolbar{border-width:1px 0 0;border-style:solid;}.t-grid-pager{padding:.2em .6em;line-height:1.8em;overflow:auto;border-width:1px 0 0;border-style:solid;}.t-grid-pager:first-child,.t-grouping-header+.t-grid-pager,.t-grid-toolbar:first-child,.t-grouping-header+.t-grid-toolbar{border-width:0 0 1px;}* html .t-grid-pager input{vertical-align:middle;}*+html .t-grid-pager input{vertical-align:middle;}.t-grid .t-pager,.t-grid .t-status,.t-grid .t-status-text,.t-pager .t-numeric,.t-pager .t-page-i-of-n,.t-pager .t-link,.t-pager span,.t-pager input,.t-pager .t-page-size,.t-grouping-row p{display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.t-pager .t-page-size{line-height:1.2em;}.t-footer-template td{border-width:1px 1px 0 0;border-style:solid;}.t-group-footer td,.t-group-footer .t-last{border-width:1px 0;border-style:solid;}.t-grid-footer{border-style:solid;border-width:1px 0 0;}.t-grid-footer td{border-top-width:0;}.t-grid .t-status{float:left;margin:-.2em .6em -.2em -.6em;padding:.2em .6em;height:1.85em;border-right-width:1px;border-right-style:solid;}.t-grid .t-pager{float:left;cursor:default;}.t-grid .t-status-text{float:right;margin-right:.2em;}.t-pager .t-link{text-decoration:none;padding:1px;margin-top:.2em;border:0;line-height:16px;}.t-pager .t-state-active,.t-pager .t-state-hover{padding:0;border-width:1px;border-style:solid;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.t-pager span,.t-pager .t-link{vertical-align:top;}.t-pager .t-numeric,.t-pager .t-page-i-of-n{margin:0 7px;vertical-align:top;}.t-numeric .t-link,.t-numeric .t-state-active{margin-top:0;padding:0 5px;line-height:22px;vertical-align:top;}.t-numeric .t-state-active,.t-numeric .t-state-hover{padding:0 4px;line-height:20px;}.t-page-i-of-n input{width:2em;vertical-align:baseline;font-size:1em;}.t-grid-pager .t-status .t-icon{vertical-align:top;margin-top:3px;}.t-grid-filter{float:right;height:18px;padding:.3em .2em;position:relative;display:inline-block;*display:inline;zoom:1;margin:-1.8em -.6em -.3em 3px;}.t-grid-filter .t-icon{vertical-align:top;}.t-grid .t-animation-container{position:absolute;}.t-grid .t-filter-options{position:absolute;border-width:1px;border-style:solid;padding:3px;width:148px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.t-filter-options .t-filter-help-text,.t-filter-options select,.t-filter-options input,.t-filter-options .t-button,.t-filter-options .t-datepicker{display:block;margin-bottom:4px;}.t-filter-options select{width:148px;}.t-filter-options input{width:142px;}.t-filter-options .t-datepicker{width:100%;}.t-filter-options .t-filter-button{margin-bottom:0;}.t-grouping-row .t-icon{margin:0 4px;}.t-grouping-row p{padding:0 .6em;margin-left:-.6em;}.t-grid td.t-group-cell,.t-grid td.t-hierarchy-cell{border-right:0;}.t-grid .t-group-col,.t-grid .t-hierarchy-col{width:30px;}.t-grouping-header{border-bottom-width:1px;border-bottom-style:solid;}.t-grouping-header,.t-grouping-dropclue{height:24px;line-height:24px;}.t-grouping-dropclue{position:absolute;width:6px;}.t-grouping-header .t-group-indicator{display:inline-block;*display:inline;zoom:1;border-width:1px;border-style:solid;line-height:1.5em;padding:.15em .15em .15em .4em;margin:0 3px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-grouping-header .t-link{text-decoration:none;display:inline-block;*display:inline;zoom:1;line-height:normal;padding:0;border-style:none;}.t-grouping-header .t-button{padding:0;border:0;background:transparent;line-height:1;}.t-grouping-header .t-link .t-icon{margin:0 0 0 -3px;}.t-grouping-header .t-button .t-icon{margin:0 0 0 3px;}.t-grouping-header a,.t-grouping-header .t-button{display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.t-dirty{width:0;height:0;vertical-align:top;position:absolute;padding:0;margin:-0.45em 0 0 -0.6em;overflow:hidden;border-width:3px;border-style:solid;border-color:#f00 transparent transparent #f00;}* html .t-dirty{border-color:#f00 pink pink #f00;filter:chroma(color=pink);}.t-grouping-header,.t-grid-toolbar{cursor:default;margin:0;padding:.25em;}.t-grid .t-edit-container{padding:0;border-right:0;}.t-edit-form{padding:0;margin:0;}.t-edit-form td{border-top:0;border-bottom:0;}.t-grid-edit-row .text-box,.t-grid-edit-row .t-numerictextbox,.t-grid-edit-row .t-datepicker{vertical-align:middle;width:5em;max-width:90%;min-width:90%;margin:-.4em -.3em -.15em;}.t-grid-edit-row .t-dropdown,.t-grid-edit-row .t-combobox{width:5em;max-width:90%;min-width:90%;line-height:normal;margin:-.1em -.3em -.45em;}* html .t-grid .text-box{width:90%;}.t-edit-form-container{position:relative;}.t-grid .field-validation-error{display:block;}.t-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb;}.t-grid-toolbar .t-button{vertical-align:middle;}.t-grid-actions{display:inline-block;}* html .t-grid-actions{display:inline;zoom:1;vertical-align:bottom;}*+html .t-grid-actions{display:inline;zoom:1;vertical-align:bottom;}.t-grid .t-button,.t-edit-form .t-button{margin:0 .2em;}.t-grid tbody .t-button{min-width:64px;}.t-grid tbody button.t-button,#ie8#skips{min-width:78px;}*+html .t-grid tbody a.t-button{min-width:62px;}html body .t-grid tbody .t-button-icon{min-width:0;width:auto;}.t-detail-row{position:relative;}.t-grid .t-detail-cell{overflow:visible;}.t-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa;}.t-grid .t-resize-handle{cursor:col-resize;position:absolute;height:25px;}.t-combobox,.t-dropdown,.t-selectbox{display:inline-block;*display:inline;zoom:1;position:relative;overflow:hidden;white-space:nowrap;width:150px;border-width:0;}*+html .t-combobox{overflow:visible;}* html .t-combobox{overflow:visible;}.t-dropdown-wrap,.t-picker-wrap{position:relative;display:block;cursor:default;}.t-picker-wrap{padding:0 25px 0 0;}.t-dropdown-wrap{padding-right:16px;border-width:1px;border-style:solid;}.t-combobox>.t-dropdown-wrap{padding-right:22px;}* html .t-combobox .t-dropdown-wrap{height:20px;}* html .t-picker-wrap{height:20px;padding-right:20px;}.t-picker-wrap .t-input,.t-combobox .t-input{vertical-align:top;width:100%;}.t-dropdown .t-input,.t-combobox .t-input,.t-selectbox .t-input{outline:0;border-width:0;}.t-dropdown .t-input,.t-selectbox .t-input{background:transparent;}*+html .t-combobox .t-input{margin:-1px 0;}* html .t-combobox .t-input{margin:-1px 0;}* html{position:absolute;top:0;}.t-picker-wrap .t-select,.t-dropdown-wrap .t-select{text-decoration:none;vertical-align:top;display:inline-block;*display:inline;zoom:1;cursor:default;position:absolute;top:0;right:0;}* html .t-picker-wrap .t-select,* html .t-dropdown-wrap .t-select{top:1px;right:1px;}.t-combobox .t-select{border-width:0 0 0 1px;border-style:solid;border-color:inherit;}.t-combobox .t-icon{margin-top:1px;}.t-dropdown .t-select,.t-selectbox .t-select{border:0;text-decoration:none;font:inherit;color:inherit;overflow:hidden;cursor:default;}.t-dropdown .t-input,.t-selectbox .t-input{overflow:hidden;display:block;text-overflow:ellipsis;padding:.2em 0 .2em 3px;}.t-picker-wrap .t-select,.t-dropdown-wrap .t-select{position:absolute;right:0;top:0;}.t-picker-wrap .t-icon{vertical-align:top;margin-top:3px;}.t-dropdown-wrap .t-icon{vertical-align:top;margin-top:2px;}.t-combobox .t-input{height:18px;line-height:18px;padding:1px 3px;border:0;margin:0;}.t-picker-wrap .t-select,.t-dropdown-wrap .t-select{height:20px;line-height:20px;}.t-popup{border-width:1px;border-style:solid;}.t-popup .t-item{padding:1px 5px 1px 3px;cursor:default;}.t-calendar{display:inline-block;*display:inline;zoom:1;width:203px;position:relative;overflow:hidden;}.t-calendar .t-link{text-decoration:none;}.t-calendar .t-action-link{text-decoration:underline;}.t-calendar .t-header{padding:.4em 0;text-align:center;position:relative;zoom:1;}.t-calendar .t-nav-prev,.t-calendar .t-nav-next{position:absolute;top:.3em;}.t-calendar .t-nav-prev{left:1%;}.t-calendar .t-nav-next{right:1%;}.t-calendar .t-content{text-align:right;display:table;width:100%;height:169px;table-layout:fixed;border-style:none;margin:0;padding:0;}*+html .t-calendar .t-content{display:block;}* html .t-calendar .t-content{display:block;}.t-calendar .t-animation-container .t-content{height:100%;}.t-calendar .t-nav-fast{display:inline-block;*display:inline;zoom:1;width:75%;}.t-calendar .t-nav-fast .t-icon{vertical-align:top;}.t-calendar th{border-bottom-style:solid;border-bottom-width:1px;font-weight:normal;cursor:default;}.t-calendar td{cursor:pointer;padding:1px;}.t-calendar .t-state-focus{border-width:1px;border-style:dotted;padding:0;}.t-calendar .t-content .t-link{display:block;overflow:hidden;position:relative;}.t-calendar th,.t-calendar .t-content .t-link{padding:.25em .45em .3em .1em;}.t-calendar .t-meta-view .t-link{padding:.25em 0 .3em;text-align:center;}.t-timepicker,.t-datetimepicker,.t-datepicker{border:0;white-space:nowrap;width:8.5em;}.t-datetimepicker{width:13em;}div.t-timepicker,div.t-datetimepicker,div.t-datepicker{background:none transparent;}.t-datetimepicker .t-picker-wrap{padding-right:44px;}* html .t-datetimepicker .t-picker-wrap{padding-right:40px;}.t-datetimepicker .t-icon-calendar{margin-right:3px;}.t-picker-wrap .t-icon{cursor:pointer;}.t-state-disabled .t-picker-wrap .t-icon{cursor:default;}.t-timepicker,.t-datepicker,.t-datetimepicker{display:inline-block;*display:inline;zoom:1;vertical-align:top;}.t-picker-wrap .t-input{margin:0;}.t-iframe-overlay{position:absolute;width:100%;border:0;top:0;left:0;filter:alpha(opacity=0);}.t-time-popup .t-item{padding:1px 3px;}div.t-treeview{border-width:0;background:none;white-space:nowrap;overflow:auto;}.t-treeview .t-item{padding:0 0 0 16px;margin:0;border-width:0;position:static;top:auto;display:block;}.t-treeview .t-group,.t-treeview .t-content{list-style-type:none;background:none;margin:0;padding:0;}.t-treeview .t-animation-container{height:auto!important;}.t-treeview .t-icon,.t-treeview .t-image,.t-treeview .t-sprite,.t-treeview .t-in{display:inline-block;*display:inline;zoom:1;vertical-align:top;}.t-treeview .t-plus,.t-treeview .t-minus,.t-treeview .t-plus-disabled,.t-treeview .t-minus-disabled{margin-left:-16px;margin-top:2px;float:left;*float:none;cursor:pointer;}.t-treeview .t-plus-disabled,.t-treeview .t-minus-disabled{cursor:default;}.t-treeview .t-sprite,.t-treeview .t-image{margin-right:3px;}.t-treeview .t-in{margin:1px 0;padding:2px 4px 2px 3px;text-decoration:none;line-height:16px;margin-left:2px;}.t-treeview span.t-in{cursor:default;}.t-treeview .t-state-hover,.t-treeview .t-state-selected{padding:1px 3px 1px 2px;border-width:1px;border-style:solid;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-treeview .t-drop-clue{width:80px;visibility:hidden;height:5px;position:absolute;margin-top:-3px;z-index:10000;background-color:transparent;background-repeat:no-repeat;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-repeat:no-repeat;margin-left:-16px;padding-left:16px;}.t-treeview-lines .t-top{background-position:-91px 0;}.t-treeview-lines .t-bot{background-position:-69px -22px;}.t-treeview-lines .t-mid{background-position:-47px -44px;}.t-treeview-lines .t-last .t-top{background-position:-25px -66px;}.t-treeview-lines .t-group .t-last .t-bot{background-position:-69px -22px;}.t-treeview-lines .t-item{background-repeat:no-repeat;}.t-treeview-lines .t-first{background-repeat:no-repeat;background-position:0 16px;}div.t-numerictextbox{display:inline-block;*display:inline;zoom:1;vertical-align:middle;white-space:nowrap;border:0;background:transparent;}.t-numerictextbox .t-input{margin:0;}.t-formatted-value{position:absolute;padding:3px 4px 2px 3px;}.t-numerictextbox .t-icon{margin-left:-16px;}.t-numerictextbox .t-link{border-style:none;display:inline-block;*display:inline;zoom:1;}.t-numerictextbox .t-arrow-up{vertical-align:top;margin-top:1px;height:10px;}.t-numerictextbox .t-arrow-down{vertical-align:bottom;margin-bottom:1px;height:11px;}.t-colorpicker{display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.t-colorpicker .t-tool-icon{display:inline-block;*display:inline;zoom:1;vertical-align:top;padding:2px 3px;font-size:0;line-height:0;}.t-colorpicker .t-selected-color{display:block;height:16px;width:16px;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}.t-colorpicker .t-icon{vertical-align:middle;margin-top:2px;}.t-colorpicker-popup{line-height:0;width:136px;}.t-colorpicker-popup .t-reset{padding:.25em;margin:0;display:inline-block;*display:inline;zoom:1;}.t-colorpicker-popup .t-item{float:left;display:block;overflow:hidden;width:12px;height:12px;font-size:0;padding:0;margin:0 1px 1px 0;}.t-editor{border-width:1px;border-style:solid;border-collapse:separate;height:250px;font-size:100%;table-layout:fixed;vertical-align:top;width:100%;}.t-editor .t-editor-toolbar-wrap{border:0;padding:0;}.t-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;cursor:default;line-height:1.3em;}.t-editor-toolbar li{display:inline;vertical-align:middle;}.t-editor-toolbar .t-editor-dropdown,.t-editor-toolbar .t-editor-combobox,.t-editor-toolbar .t-editor-selectbox,.t-editor-toolbar .t-editor-colorpicker{margin-right:2px;}.t-editor-toolbar .t-separator{border-width:0 1px 0 0;border-style:solid;padding:0 0 0 1px;font-size:1.3em;margin:0 .15em;position:relative;top:1px;}.t-editor-toolbar .t-break{display:block;height:1px;line-height:0;font-size:0;}.t-editor-toolbar .t-dropdown,.t-editor-toolbar .t-combobox,.t-editor-toolbar .t-selectbox,.t-editor-toolbar .t-colorpicker{vertical-align:middle;}.t-editor-button .t-tool-icon{vertical-align:middle;width:22px;height:22px;margin:1px;}.t-editor-colorpicker .t-tool-icon{padding:17px 3px 2px;}.t-editor-colorpicker .t-icon{border-style:solid;border-color:#ccc;border-width:0 0 0 1px;}.t-editor-colorpicker .t-selected-color{height:3px;}.t-editor-combobox .t-input{height:20px;line-height:20px;}.t-editor-combobox .t-select{height:22px;line-height:22px;}.t-bold{background-position:-22px 0;}.t-italic{background-position:-44px 0;}.t-underline{background-position:-66px 0;}.t-strikethrough{background-position:-88px 0;}.t-justifyLeft{background-position:-110px 0;}.t-justifyCenter{background-position:-132px 0;}.t-justifyRight{background-position:-154px 0;}.t-justifyFull{background-position:-176px 0;}.t-insertOrderedList{background-position:-198px 0;}.t-insertUnorderedList{background-position:-220px 0;}.t-createLink{background-position:-242px 0;}.t-unlink{background-position:-264px 0;}.t-insertImage{background-position:-286px 0;}.t-foreColor .t-tool-icon{background-position:-308px -2px;}.t-backColor .t-tool-icon{background-position:-330px -2px;}.t-indent{background-position:-352px 0;}.t-outdent{background-position:-374px 0;}.t-fontName{width:110px;}.t-fontSize{width:124px;}.t-formatBlock{width:147px;}.t-editor-button .t-state-hover,.t-editor-button .t-state-active{vertical-align:middle;border-width:1px;border-style:solid;margin:0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.t-editor-button .t-state-disabled{opacity:.3;filter:alpha(opacity=30);}.t-editor .t-editable-area{outline:none;height:100%;width:100%;border-width:1px;border-style:solid;}.t-editor .t-content{height:100%;width:100%;display:block;padding:0;margin:0;border:0;}.t-editor iframe.t-content{display:inline;vertical-align:top;}.t-editor .t-raw-content{border:0;margin:0;padding:0;font-size:inherit;font-family:Consolas,"Courier New",monospace;}.t-editor-dialog{padding:1em;}.t-editor-dialog ol{margin:0;padding:0;list-style:none;}.t-form-text-row,.t-form-checkbox-row{padding-bottom:1em;}.t-form-text-row label{display:inline-block;*display:inline;zoom:1;width:7em;text-align:right;padding-right:.5em;}.t-form-checkbox-row input{margin-left:7em;font-size:inherit;padding:0;}.t-form-checkbox-row label{padding-left:.3em;}.t-form-checkbox-row input,.t-form-checkbox-row label,.t-form-text-row label .t-form-text-row input,.t-form-text-row select{vertical-align:middle;}.t-form-text-row input,.t-form-text-row select{width:20em;}.t-editor-dialog .t-button-wrapper{padding-top:.5em;text-align:right;}.t-editor-dialog .t-button{display:inline-block;*display:inline;zoom:1;}.t-drag-clue{border-width:1px;border-style:solid;font-size:.9em;padding:.05em .15em;position:absolute;z-index:10003;white-space:nowrap;cursor:default;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-drag-status{margin-right:4px;vertical-align:top;margin-top:-1px;}.t-reorder-cue{position:absolute;width:1px;overflow:visible;}.t-reorder-cue .t-icon{width:8px;height:4px;position:absolute;left:-4px;}.t-reorder-cue .t-arrow-down{top:-4px;background-position:-20px -182px;}.t-reorder-cue .t-arrow-up{bottom:-4px;background-position:-20px -166px;}div.t-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}.t-slider-vertical{width:22px;height:200px;}.t-slider-horizontal{display:inline-block;height:22px;width:200px;}*+html .t-slider-horizontal{display:inline;zoom:1;}* html .t-slider-horizontal{display:inline;zoom:1;}.t-slider-wrap{width:100%;height:100%;}.t-slider .t-button,.t-grid .t-slider .t-button{position:absolute;top:0;min-width:0;width:20px;height:20px;margin:0;padding:0;outline:none;}.t-slider .t-button .t-icon{vertical-align:top;margin-top:2px;}.t-state-disabled .t-slider-wrap{opacity:.6;filter:alpha(opacity=60);}.t-state-disabled .t-slider-wrap .t-slider-items{color:#333;}.t-slider .t-button-decrease{left:0;}.t-slider-vertical .t-button-decrease,.t-grid .t-slider-vertical .t-button-decrease{top:auto;bottom:0;}.t-slider .t-button-increase{right:0;}.t-slider .t-icon{cursor:pointer;}.t-state-disabled .t-button,.t-state-disabled .t-draghandle,.t-state-disabled .t-slider-wrap .t-icon,.t-state-disabled .t-slider .t-icon{cursor:default;}*+html .t-slider .t-icon{margin-top:2px;}* html .t-slider .t-icon{margin-top:2px;}.t-slider-track,.t-slider-selection{position:absolute;margin:0;padding:0;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{height:6px;top:50%;left:0;margin-top:-3px;background-repeat:repeat-x;}.t-slider-horizontal .t-slider-track{border-width:0 1px;border-style:solid;background-position:0 -464px;}.t-slider-horizontal .t-slider-selection{background-position:0 -470px;}.t-slider-horizontal .t-slider-buttons .t-slider-track{left:27px;}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{width:6px;left:50%;bottom:0;margin-left:-3px;background-repeat:repeat-y;}.t-slider-vertical .t-slider-track{border-width:1px 0;border-style:solid;background-position:0 0;}.t-slider-vertical .t-slider-selection{background-position:-6px 0;}.t-slider-vertical .t-slider-buttons .t-slider-track{bottom:27px;}.t-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;text-decoration:none;text-align:center;overflow:hidden;cursor:pointer;}.t-slider-horizontal .t-draghandle{top:-7px;width:11px;height:20px;}.t-slider-vertical .t-draghandle{left:-7px;width:20px;height:11px;}.t-slider-horizontal .t-draghandle,.t-state-disabled.t-slider-horizontal a.t-draghandle,.t-state-disabled .t-slider-horizontal a.t-draghandle{background-position:0 -368px;}.t-slider-horizontal .t-draghandle:hover,.t-slider-horizontal .t-draghandle:focus{background-position:0 -400px;}.t-slider-horizontal a.t-draghandle.t-state-active{background-position:0 -432px;}.t-slider-vertical .t-draghandle,.t-state-disabled.t-slider-vertical a.t-draghandle,.t-state-disabled .t-slider-vertical a.t-draghandle{background-position:-32px -368px;}.t-slider-vertical .t-draghandle:hover,.t-slider-vertical .t-draghandle:focus{background-position:-32px -400px;}.t-slider-vertical a.t-draghandle.t-state-active{background-position:-32px -432px;}.t-slider-items{display:inline-block;}.t-slider-items{display:block;}.t-slider-items:after{content:"";display:block;clear:both;height:0;visibility:hidden;}.t-slider-buttons .t-slider-items{margin-left:27px;}.t-slider-horizontal .t-slider-items{height:100%;}.t-slider-vertical .t-slider-items{padding-top:1px;}.t-slider-vertical .t-slider-buttons .t-slider-items{padding-top:0;}.t-slider-vertical .t-slider-buttons .t-slider-items{margin:0;padding-top:28px;}.t-slider .t-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center;cursor:default;}.t-slider-horizontal .t-tick{float:left;text-align:center;height:100%;}*+html .t-slider-vertical .t-tick{float:left;clear:left;width:100%;}* html .t-slider-vertical .t-tick{float:left;clear:left;width:100%;}.t-slider-horizontal .t-tick{background-position:center -94px;}.t-slider-horizontal .t-slider-topleft .t-tick{background-position:center -124px;}.t-slider-horizontal .t-slider-bottomright .t-tick{background-position:center -154px;}.t-slider-horizontal .t-tick-large{background-position:center -4px;}.t-slider-horizontal .t-slider-topleft .t-tick-large{background-position:center -34px;}.t-slider-horizontal .t-slider-bottomright .t-tick-large{background-position:center -64px;}.t-slider-vertical .t-tick{background-position:-94px center;}.t-slider-vertical .t-slider-topleft .t-tick{background-position:-124px center;}.t-slider-vertical .t-slider-bottomright .t-tick{background-position:-154px center;}.t-slider-vertical .t-tick-large{background-position:-4px center;}.t-slider-vertical .t-slider-topleft .t-tick-large{background-position:center -34px;}.t-slider-vertical .t-slider-bottomright .t-tick-large{background-position:-64px center;}.t-slider-horizontal .t-first{background-position:0 -4px;}.t-slider-horizontal .t-last{background-position:100% -4px;}.t-slider-vertical .t-first{background-position:-4px 100%;}.t-slider-vertical .t-last{background-position:-4px 0;}.t-slider-vertical .t-tick{text-align:right;}.t-slider-vertical .t-slider-topleft .t-tick{text-align:left;}.t-slider .t-label{position:absolute;white-space:nowrap;}.t-slider-horizontal .t-label{left:0;width:100%;}.t-slider-horizontal .t-first .t-label{left:-50%;}.t-slider-horizontal .t-last .t-label{left:auto;right:-50%;}.t-slider-horizontal .t-label{bottom:-1.2em;}.t-slider-horizontal .t-slider-topleft .t-label{top:-1.2em;}.t-slider-vertical .t-label{left:120%;display:block;text-align:left;}.t-slider-vertical .t-last .t-label{top:-0.5em;}.t-slider-vertical .t-first .t-label{bottom:-0.5em;}.t-slider-vertical .t-slider-topleft .t-label{left:auto;right:120%;}.t-tooltip{position:absolute;border-width:1px;border-style:solid;padding:4px 5px;background-repeat:repeat-x;z-index:10002;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;min-width:10px;text-align:center;}.t-callout{position:absolute;}.t-callout-n,.t-callout-s{width:9px;height:6px;}.t-callout-w,.t-callout-e{width:6px;height:9px;}.t-callout-n{top:-6px;left:50%;margin-left:-4px;background-position:-64px -368px;}.t-callout-w{left:-6px;top:50%;margin-top:-4px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-4px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-4px;background-position:-64px -416px;}.t-splitter{position:relative;height:300px;}.t-splitter .t-pane{overflow:hidden;}.t-splitter .t-scrollable{overflow:auto;}.t-splitter .t-pane-loading{position:absolute;left:50%;top:50%;margin:-8px 0 0 -8px;}.t-ghost-splitbar,.t-splitbar{position:absolute;border-style:solid;font-size:0;}.t-splitter .t-ghost-splitbar-horizontal,.t-splitter .t-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y;}.t-ghost-splitbar-vertical,.t-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x;}.t-splitbar-draggable-horizontal{cursor:w-resize;}.t-splitbar-draggable-vertical{cursor:n-resize;}.t-splitbar .t-resize-handle{display:none;}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-splitbar-horizontal .t-icon{width:5px;height:21px;position:absolute;top:50%;margin-top:-10px;}.t-collapse-prev,.t-collapse-next,.t-expand-prev,.t-expand-next{cursor:pointer;}.t-splitbar-horizontal .t-collapse-prev{margin-top:-31px;}.t-splitbar-horizontal .t-collapse-next{margin-top:11px;}.t-splitbar-vertical .t-icon{height:5px;width:21px;position:absolute;left:50%;margin-left:-10px;}.t-splitbar-vertical .t-collapse-prev{margin-left:-31px;}.t-splitbar-vertical .t-collapse-next{margin-left:11px;}.t-splitbar-draggable-vertical .t-resize-handle,.t-splitbar-draggable-horizontal .t-resize-handle{display:inline-block;*display:inline;zoom:1;}.t-splitbar-horizontal{background-position:5px 0;}.t-splitbar-horizontal-hover{background-position:-12px 0;}.t-splitbar-horizontal-active,.t-ghost-splitbar-horizontal{background-position:-17px 0;}.t-restricted-size-horizontal{background-position:-22px 0;}.t-splitbar-horizontal .t-resize-handle{background-position:-10px -496px;}.t-splitbar-horizontal-hover .t-resize-handle{background-position:-10px -517px;}.t-splitbar-horizontal .t-collapse-prev,.t-splitbar-horizontal .t-expand-next{background-position:0 -496px;}.t-splitbar-horizontal-hover .t-collapse-prev,.t-splitbar-horizontal-hover .t-expand-next{background-position:0 -517px;}.t-splitbar-horizontal .t-collapse-next,.t-splitbar-horizontal .t-expand-prev{background-position:-5px -496px;}.t-splitbar-horizontal-hover .t-collapse-next,.t-splitbar-horizontal-hover .t-expand-prev{background-position:-5px -517px;}.t-splitbar-vertical{background-position:0 5px;}.t-splitbar-vertical-hover{background-position:0 -476px;}.t-splitbar-vertical-active,.t-ghost-splitbar-vertical{background-position:0 -481px;}.t-restricted-size-vertical{background-position:0 -486px;}.t-splitbar-vertical .t-resize-handle{background-position:-16px -496px;}.t-splitbar-vertical-hover .t-resize-handle{background-position:-16px -501px;}.t-splitbar-vertical .t-collapse-prev,.t-splitbar-vertical .t-expand-next{background-position:-16px -506px;}.t-splitbar-vertical-hover .t-collapse-prev,.t-splitbar-vertical-hover .t-expand-next{background-position:-16px -517px;}.t-splitbar-vertical .t-collapse-next,.t-splitbar-vertical .t-expand-prev{background-position:-16px -511px;}.t-splitbar-vertical-hover .t-collapse-next,.t-splitbar-vertical-hover .t-expand-prev{background-position:-16px -522px;}html .t-upload{position:relative;border-width:0;background:none;}.t-dropzone,.t-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.t-dropzone em,.t-upload-button{vertical-align:middle;}*+html .t-dropzone em,*+html .t-upload-button{vertical-align:baseline;}* html .t-dropzone em,* html .t-upload-button{vertical-align:baseline;}.t-dropzone{border-style:solid;border-width:0;padding:4px;background-color:transparent;}.t-dropzone em{margin-left:.6em;visibility:hidden;}.t-dropzone-active{border-width:1px;padding:3px;}.t-dropzone-active em{visibility:visible;}.t-upload-button{width:86px;position:relative;direction:ltr;overflow:hidden!important;}.t-upload-button input{font:200px monospace!important;opacity:0;filter:alpha(opacity=0);position:absolute;padding:0;margin:0;cursor:pointer;right:0;top:0;z-index:1;}.t-state-disabled .t-upload-button input{cursor:default;}.t-upload-files{border-style:solid;border-width:1px;margin:.2em 0 0;padding:.3em .7em .5em;line-height:1.9em;}.t-upload-files .t-button{position:relative;top:1px;margin-left:8px;padding-top:0;padding-bottom:0;font-size:84%;}*+html .t-upload-files .t-button{line-height:1;}* html .t-upload-files .t-button{line-height:1;}.t-upload .t-delete,.t-upload .t-cancel,.t-upload .t-retry{height:8px;vertical-align:baseline;}.t-upload .t-delete,.t-upload .t-cancel{width:7px;background-position:-5px -292px;}.t-retry{background-position:-66px -228px;width:11px;}.t-success{background-position:-64px -240px;}.t-fail{background-position:-64px -256px;}.t-filename{position:relative;display:inline-block;min-width:120px;vertical-align:middle;}.t-progress,.t-progress-status{position:absolute;bottom:-2px;left:0;width:118px;height:2px;border-style:solid;border-width:1px;background-repeat:repeat-x;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}.t-progress-status{left:-1px;bottom:-1px;width:50%;}.t-upload-selected{min-width:86px;box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;margin:3px 0 0;}*+html .t-upload-selected{min-width:100px;}.t-toolbar-wrap .t-dropzone em,.t-toolbar-wrap .t-upload-files{display:none;}.t-toolbar-wrap .t-dropzone{border:0;padding:0;background-color:transparent;}.t-search-wrap{float:right;width:auto;position:relative;padding:0;}.t-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic;}.t-search-wrap input.t-input{width:158px;padding-left:0;padding-right:0;}.t-search{background-position:-64px -176px;}.t-search-wrap .t-search{position:absolute;top:1px;right:2px;}.t-breadcrumbs{float:left;position:relative;width:560px;}.t-breadcrumbs-wrap{position:absolute;z-index:1;top:0;left:0;padding-left:5px;line-height:18px;}html input.t-breadcrumbs-input{width:100%;padding-left:2px;font-family:inherit;}.t-breadcrumbs .t-link,.t-breadcrumbs-wrap .t-icon{text-decoration:none;vertical-align:middle;margin-top:0;}.t-breadcrumbs .t-link:hover{text-decoration:underline;}.t-imagebrowser .t-breadcrumbs .t-first{text-decoration:none;cursor:default;}.t-imagebrowser .t-toolbar{clear:both;border-style:solid;border-width:1px;margin:8px 0 0;padding:2px 0 3px;background-repeat:repeat-x;line-height:23px;white-space:nowrap;}.t-imagebrowser .t-upload{float:left;}.t-imagebrowser .t-upload-button{width:auto;vertical-align:top;}.t-imagebrowser .t-upload .t-icon{vertical-align:bottom;}*+html .t-imagebrowser .t-upload-button,*+html .t-imagebrowser .t-upload .t-icon{vertical-align:baseline;position:relative;top:1px;}* html .t-imagebrowser .t-upload-button,* html .t-imagebrowser .t-upload .t-icon{vertical-align:baseline;position:relative;top:1px;}*+html .t-imagebrowser .t-upload .t-icon{top:2px;}* html .t-imagebrowser .t-upload .t-icon{top:2px;}*+html .t-imagebrowser .t-toolbar .t-button-icon{vertical-align:middle;}* html .t-imagebrowser .t-toolbar .t-button-icon{vertical-align:middle;}.t-addfolder{background-position:-64px -192px;}.t-goup{background-position:-64px -208px;}.t-toolbar .t-state-disabled{opacity:.5;filter:alpha(opacity=50);}.t-toolbar-wrap{float:left;}.t-tiles-arrange{float:right;}* html .t-tiles-arrange{margin:3px 0 0;}.t-tiles-arrange .t-arrow-down{margin:0 2px 0 3px;}.t-tiles-arrange a{text-decoration:none;}.t-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2;}.t-tile{width:223px;height:88px;overflow:hidden;float:left;border-width:1px;border-style:solid;margin:1px;padding:0 0 4px;cursor:pointer;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-imagebrowser .t-thumb{float:left;display:inline;width:86px;height:86px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}.t-imagebrowser .t-image{margin:2px 0 0 2px;-moz-box-shadow:1px 1px 3px #aaa;-webkit-box-shadow:1px 1px 3px #aaa;box-shadow:1px 1px 3px #aaa;}.t-imagebrowser .t-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat;}.t-goback{background-position:-64px -224px;}.t-imagebrowser .t-loading{margin:35px 0 0 33px;}.t-tile strong,.t-tile input{margin:10px 0 4px;font-weight:normal;}.t-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis;}.t-tile input{width:100px;}.t-tile em,.t-tile .t-filesize{clear:left;font-weight:normal;font-style:normal;}.t-tile strong,.t-tile input,.t-tile em,.t-tile .t-filesize{display:block;}.t-imagebrowser .t-form-text-row input{width:628px;}.t-tile-empty{margin:160px 0 0;}.t-tile-empty .t-dialog-upload{font-weight:bold;font-size:120%;}.t-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal;}.t-tile-empty,.t-tile-empty .t-button-wrapper{text-align:center;}.t-touch-scrollbar{position:absolute;display:none;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}@media only screen and(-webkit-min-device-pixel-ratio:2){.t-touch-scrollbar{height:12px;width:12px;-webkit-border-radius:7px;}}div.t-chart{border:none;background-color:transparent;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.default.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.default.min.css new file mode 100644 index 000000000..e41b47c25 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.default.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#989898;background-color:#fff;}.t-header,.t-grid-header{border-color:#989898;background:#adadad url('Default/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Default/sprite.png');}.t-editor .t-tool-icon{background-image:url('Default/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Default/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#989898;}.t-separator{border-color:#d8d8d8;background-color:#999;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#828282;}.t-active-filter{background-color:#cdcdcd;}.t-state-hover,.t-state-hover:hover{background-color:#e9e9e9;border-color:#828282;}.t-header .t-state-hover{background-color:#dcdada;}.t-state-active,.t-header .t-state-active{background-color:#fff;border-color:#828282;}.t-state-selected{background-color:#ddd;}.t-state-focused{background-color:#c2c2c2;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#828282;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#adadad url('Default/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#c9c9c9;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#888;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aaa;background-color:#eee;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Default/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#eee;border-color:#828282 #eee #fff;}.t-group-footer td{background-color:#eee;border-color:#828282;}.t-grid-footer{background-color:#eee;border-color:#080808;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Default/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Default/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#838383;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#c5c5c5;}.t-other-month .t-link{color:#898989;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Default/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Default/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Default/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#e2e2e2 #878787 #878787 #e2e2e2;background-color:#c6c6c6;}.t-editor-button .t-state-active{border-color:#767676 #d0d0d0 #d0d0d0 #767676;background-color:#9e9e9e;}.t-slider .t-draghandle{background-image:url('Default/sprite.png');color:#333;}.t-slider-track{border-color:#a5a5a5;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Default/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Default/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Default/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Default/slider-v.gif');}.t-tooltip{background:#adadad 0 -624px repeat-x url('Default/sprite.png');}.t-callout{background-image:url('Default/sprite.png');}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Default/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Default/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#828282;}.t-dropzone-hovered,.t-upload-files{background-color:#e2e2e2;}.t-dropzone em{color:#828282;}.t-progress,.t-progress-status{background-image:url('Default/sprite.png');}.t-progress{background-position:0 -465px;border-color:#a1a1a1 #b3b3b3 #c8c8c8;}.t-progress-status{background-position:0 -472px;border-color:#989898 transparent #6b6b6b;}.t-imagebrowser .t-content{background:#f1f1f1;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#9f9f9f;}.t-tiles{border-color:#e2e3ea;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Default/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#989898;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#989898;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Default/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#666;}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.forest.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.forest.min.css new file mode 100644 index 000000000..a2443ee7d --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.forest.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#486b23;background-color:#d1deb6;}.t-header,.t-grid-header{border-color:#486b23;color:#fff;background:#4c7822 url('Forest/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Forest/sprite.png');}.t-editor .t-tool-icon{background-image:url('Forest/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Forest/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#2b2c20;}.t-header,.t-header .t-link{color:#fff;}.t-content,.t-content .t-link,.t-group .t-link{color:#2b2c20;}.t-group,.t-content,.t-editable-area{border-color:#486b23;background-color:#d1deb6;}.t-colorpicker .t-arrow-down{border-color:#486b23;}.t-separator{border-color:#719652;background-color:#4c6d3b;}.t-alt{background-color:#c7d6a7;}.t-state-default{border-color:#486b23;}.t-active-filter{background-color:#60963e;}.t-state-hover,.t-state-hover .t-link,.t-state-selected,.t-state-selected .t-link{color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#6c9f4f;border-color:#486b23;}.t-state-selected,.t-state-selected .t-state-hover{background-color:#3a5621;border-color:#486b23;}.t-state-focused{background-color:#a7bc75;}.t-state-active{background-color:#d1deb6;border-color:#486b23;}.t-tabstrip .t-state-active .t-link{color:#2b2c20;}.t-group .t-state-hover,.t-group .t-state-selected{color:#fff;background-image:none;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#486b23;color:#fff;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#486c24 url('Forest/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#4d7924;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#2a4b17;border-color:#486b23;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#486b23;background-color:#a7bc75;}.t-editor-button .t-state-active{background-color:#527c30;}.t-grid td{border-color:#bdcb9e;}.t-grouping-row td{background:#d1deb6 url('Forest/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#b1c67f;border-color:#3c6716 #b1c67f #b1c67f;}.t-group-footer td{background-color:#b1c67f;border-color:#3c6716;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#b1c67f;border-color:#3c6716;}.t-grouping-header .t-group-indicator{color:#333;border-color:#486B23;}.t-grouping-dropclue{background:url('Forest/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#d1deb6;}.t-treeview .t-drop-clue{background-image:url('Forest/sprite.png');background-position:0 -358px;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#486b23;}.t-calendar th{background-color:#a6bb74;border-color:#9cb16a;}.t-other-month .t-link{color:#88914b;}.t-state-hover .t-link{color:#fff;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Forest/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Forest/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Forest/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-window{-moz-box-shadow:0 0 5px 2px #6f855a;-webkit-box-shadow:0 0 5px 2px #6f855a;box-shadow:0 0 5px 2px #6f855a;}.t-editor-button .t-state-hover{border-color:#88ab72 #416926 #416926 #88ab72;background-color:#548231;}.t-editor-button .t-state-active{border-color:#2a4b17 #7f9c6d #7f9c6d #2a4b17;background-color:#446e29;}.t-slider .t-draghandle{background-image:url('Forest/sprite.png');color:#486b23;}.t-slider-track{border-color:#658843;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Forest/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Forest/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Forest/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Forest/slider-v.gif');}.t-tooltip{background:#486c24 0 -625px repeat-x url('Forest/sprite.png');color:#fff;}.t-callout{background-image:url('Forest/sprite.png');}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#527f2c;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Forest/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Forest/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#8aaf64;}.t-dropzone-hovered,.t-upload-files{background-color:#d1deb6;}.t-dropzone em{color:#6b715f;}.t-progress,.t-progress-status{background-image:url('Forest/sprite.png');}.t-progress{background-position:0 -466px;border-color:#52752e #6c8c49 #83a564;}.t-progress-status{background-position:0 -472px;border-color:#4f722b transparent #193809;}.t-imagebrowser .t-content{background:#d3e0c2;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#6b715f;}.t-toolbar .t-upload .t-button{color:#2b2c20;}.t-tiles-arrange{color:#6b715f;}.t-tiles{border-color:#8aaf64;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Forest/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#76ad3b;background-position:0 0;color:#2b2c20;}.t-tiles li.t-state-selected{border-color:#8aaf64;background-position:0 -100px;color:#2b2c20;}.t-tile .t-folder{background-image:url('Forest/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#6b715f;}.t-tile-empty strong{color:#8d947f;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.hay.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.hay.min.css new file mode 100644 index 000000000..84eb49c70 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.hay.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#7d7c6f;background-color:#ececd8;}.t-header,.t-grid-header{border-color:#378909;background:#4eb106 url('Hay/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Hay/sprite.png');}.t-editor .t-tool-icon{background-image:url('Hay/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Hay/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link{color:#fff;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#bbb99d;background-color:#ececd8;}.t-colorpicker .t-arrow-down{border-color:#378909;}.t-separator{border-color:#73c335;background-color:#378909;}.t-alt{background-color:#fff;}.t-state-default{border-color:#378909;}.t-active-filter{background-color:#51b200;}.t-state-hover,.t-state-hover .t-link,.t-group .t-state-hover{color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#6cc41a;border-color:#378909;}.t-state-active{background-color:#ececd8;border-color:#378909;}.t-state-active,.t-state-active .t-link{color:#333;}.t-state-active .t-header,.t-state-active .t-state-hover{color:#fff;}.t-state-selected{background:#4e8e13;}.t-state-focused{background-color:#d2d0b6;}.t-state-selected,.t-state-selected .t-header,.t-state-selected .t-state-hover,.t-state-selected .t-link{color:#fff;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#898772;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#e0e2cb url('Hay/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#bbbe94;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{color:#d2d2d2;border-color:#5ca136;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#bbb99d;background-color:#dee0c8;}.t-panelbar .t-link{border-color:#333;}.t-grid td{border-color:#ddd;}.t-grid tr.t-state-hover td{border-color:#6CC41A;}.t-grid tr.t-state-selected td{border-color:#378909;}.t-grouping-row td{background:#fff url('Hay/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#dee0c8;border-color:#bbb99d #dee0c8 #fff;}.t-group-footer td{background-color:#dee0c8;border-color:#bbb99d;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#dee0c8;border-color:#bbb99d;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('Hay/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Hay/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#2C8406;}.t-calendar th{border-color:#cac8ab;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Hay/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Hay/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Hay/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#73cd26 #38910a #38910a #73cd26;background-color:#63c215;}.t-editor-button .t-state-active{border-color:#257802 #60ba1d #60ba1d #257802;background-color:#47a605;}.t-slider .t-draghandle{background-image:url('Hay/sprite.png');color:#7d7c6f;}.t-slider-track{border-color:#b6b499;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Hay/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Hay/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Hay/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Hay/slider-v.gif');}.t-tooltip{border-color:#cccab0;background:#e0e2cb 0 -560px repeat-x url('Hay/sprite.png');}.t-callout{background-image:url('Hay/sprite.png');}.t-splitter{border-color:#cac8ab;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#ececd8;border-color:#cac8ab;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Hay/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Hay/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#bbb99d;}.t-dropzone-hovered,.t-upload-files{background-color:#f5f5e6;}.t-dropzone em{color:#787878;}.t-progress,.t-progress-status{background-image:url('Hay/sprite.png');}.t-progress{background-position:0 -467px;border-color:#9a9881 #b6b49b #cdccb7;}.t-progress-status{background-position:0 -472px;border-color:#74cd23 transparent #3a8e09;}.t-imagebrowser .t-content{background:#f5f5e6;}.t-search-wrap label,.t-tiles-arrange{color:#787878;}.t-breadcrumbs .t-link{color:#333;}.t-tiles{border-color:#bbb99d;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Hay/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#46a700;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#bbb99d;background-position:0 -100px;color:#000;}.t-tile .t-folder{background-image:url('Hay/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#525252;}.t-tile-empty strong{color:#bbb99d;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.office2007.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.office2007.min.css new file mode 100644 index 000000000..82d7b2db2 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.office2007.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#688caf;background-color:#fff;}.t-header,.t-grid-header{border-color:#688caf;background:#c3d8f1 url('Office2007/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Office2007/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2007/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Office2007/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#688caf;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#688caf;}.t-separator{border-color:#ebf1f9;background-color:#a0b2c7;}.t-alt{background-color:#fff;}.t-state-default{border-color:#688caf;}.t-active-filter{background-color:#c0d9ef;}.t-state-hover,.t-state-hover:hover{background-color:#d6e5f3;border-color:#688caf;}.t-state-active{background-color:#fff;border-color:#688caf;}.t-state-selected{background-color:#ffd176;}.t-state-focused{background-color:#d6e5f3;color:#092061;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{border-color:#688caf;background:#e5effb url('Office2007/sprite.png') repeat-x 0 -560px;}.t-button:hover{border-color:#d8ca95 #b9a073 #c6b99c;background-position:0 -624px;background-color:#ffdf84;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#82a6d7;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#5d8cc9;background-color:#d6e5f3;}.t-grid td{border-color:#d6e5f3;}.t-grouping-row td{background:#fff url('Office2007/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#d6e5f3;border-color:#567db0 #d6e5f3 #fff;}.t-group-footer td{background-color:#d6e5f3;border-color:#567db0;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#d6e5f3;border-color:#567db0;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('Office2007/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Office2007/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#a79d87;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#5d8cc9;}.t-calendar th{border-color:#9ebfdb;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Office2007/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Office2007/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Office2007/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#e8f0fa #98b2d0 #98b2d0 #e8f0fa;background-color:#d4e3f5;}.t-editor-button .t-state-active{border-color:#88a4c5 #d0dcea #d0dcea #88a4c5;background-color:#9fbad9;}.t-slider .t-draghandle{background-image:url('Office2007/sprite.png');color:#688caf;}.t-slider-track{border-color:#6b89b2;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2007/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2007/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2007/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2007/slider-v.gif');}.t-tooltip{border-color:#767676;background:#cad9ef 0 -96px repeat-x url('Office2007/sprite.png');color:#333;}.t-callout{background-image:url('Office2007/sprite.png');}.t-splitter{border-color:#9eb6ce;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#d7e6f7;border-color:#9eb6ce;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2007/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2007/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#688caf;}.t-dropzone-hovered,.t-upload-files{background-color:#d6e5f3;}.t-dropzone em{color:#3e7ecf;}.t-progress,.t-progress-status{background-image:url('Office2007/sprite.png');}.t-progress{background-position:0 -465px;border-color:#82a6d7 #8aacda #82a6d7;}.t-progress-status{background-position:0 -472px;border-color:#6b89b2 transparent;}.t-imagebrowser .t-content{background:#dde8f5;}.t-breadcrumbs .t-link{color:#3e7ecf;}.t-breadcrumbs .t-link:hover{color:#00156e;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#8bb2e2;}.t-tiles-arrange{color:#3e7ecf;}.t-toolbar .t-upload .t-button,.t-tiles-arrange .t-link{color:#00156e;}.t-tiles{border-color:#8bb2e2;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Office2007/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#c5af7f;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#c0a776;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Office2007/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#636363;}.t-tile-empty strong{color:#8bb2e2;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.office2010black.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.office2010black.min.css new file mode 100644 index 000000000..f65bc3f38 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.office2010black.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#2c2c2c;background-color:#6f6f6f;}.t-header,.t-grid-header{border-color:#444;background:#6b6b6b url('Office2010Black/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Office2010Black/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2010Black/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Office2010Black/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup,.t-group,.t-grid .t-header{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#f6f6f6;}.t-colorpicker .t-arrow-down{border-color:#606060;}.t-separator{border-color:#606060;background-color:#adadad;}.t-alt{background-color:#646464;}.t-state-default{border-color:#848484;}.t-active-filter{background-color:#f9d04c;}.t-state-hover,.t-state-hover:hover{background-color:#ffe175;border-color:#f7c840;}.t-header .t-state-hover{background-color:#ffe175;}.t-state-active,.t-header .t-state-active{background-color:#e6e6e6;border-color:#444;}.t-state-selected{background-color:#ffcb36;}.t-state-focused{background-color:#a9a9a9;}.t-state-hover,.t-state-selected{color:#000;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#262626;color:#000;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#6f6f6f url('Office2010Black/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#fff3c9;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#5e5e5e;}.t-popup,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #444;-webkit-box-shadow:2px 2px 2px #444;box-shadow:2px 2px 2px #444;}.t-autocomplete,.t-input{background-color:#fff;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#444;background-color:#777;}.t-grid{color:#fff;}.t-grid-pager .t-link{color:#fff;}.t-grid-pager .t-state-hover,.t-grid-pager .t-state-active{color:#000;}.t-grid td{border-color:#454545;}.t-grouping-row td{background:url('Office2010Black/sprite.png') repeat-x 0 -48px;}.t-grouping-header .t-group-indicator{border-color:#444;background:#6f6f6f url('Office2010Black/sprite.png') repeat-x 0 -560px;}.t-grouping-dropclue{background:url('Office2010Black/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#6f6f6f;}.t-treeview .t-drop-clue{background-image:url('Office2010Black/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#4f4f4f;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#4f4f4f;}.t-filter-options,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #4f4f4f;-webkit-box-shadow:2px 2px 2px #4f4f4f;box-shadow:2px 2px 2px #4f4f4f;}.t-calendar th{border-color:#c5c5c5;}.t-other-month .t-link{color:#898989;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Office2010Black/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Office2010Black/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Office2010Black/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}div.t-window{-moz-box-shadow:0 0 5px 2px #444;-webkit-box-shadow:0 0 5px 2px #444;box-shadow:0 0 5px 2px #444;}.t-slider .t-draghandle{background-image:url('Office2010Black/sprite.png');color:#666;}.t-slider-track{border-color:#2c2c2c;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2010Black/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2010Black/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2010Black/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2010Black/slider-v.gif');}.t-tooltip{border-color:#767676;background:#e9e9f2 0 -96px repeat-x url('Office2010Black/sprite.png');}.t-callout{background-image:url('Office2010Black/sprite.png');}.t-splitbar{border-color:#2c2c2c;background-color:#4b4b4b;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2010Black/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2010Black/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#2c2c2c;}.t-dropzone-active{background-color:#6f6f6f;}.t-dropzone-hovered,.t-upload-files{background-color:#4b4b4b;}.t-dropzone em{color:#e2e2e2;}.t-progress,.t-progress-status{background-image:url('Office2010Black/sprite.png');}.t-progress{background-position:0 -464px;border-color:#2c2c2c;}.t-progress-status{background-position:0 -472px;border-color:#ffe37c transparent #f9cd4c;}.t-imagebrowser .t-content{background:#9e9e9e;}.t-tiles{border-color:#848484;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Office2010Black/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#ffd14b;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#c28a30 #c29b43 #c2a44d;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Office2010Black/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#464646;}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.office2010blue.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.office2010blue.min.css new file mode 100644 index 000000000..0ee0eedd1 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.office2010blue.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#8ba0bc;background-color:#fff;}.t-header,.t-grid-header,.t-toolbar,.t-grouping-header,.t-tooltip,.t-grid-pager{border-color:#8ba0bc;background:#bccadd url('Office2010Blue/gradient.png') repeat-x 0 center;}.t-menu-vertical,.t-editor,.t-tooltip,.t-tabstrip{background-position:0 -48px;}.t-icon{background-image:url('Office2010Blue/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2010Blue/editor.png');}.t-picker-wrap{padding-right:23px;}.t-loading,.t-widget .t-loading{background:transparent url('Office2010Blue/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup,.t-grid .t-header{color:#384e73;}.t-group{background-color:#dce3ed;border-color:#8ba0bc;}.t-content,.t-editable-area{border-color:#8ba0bc;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#8ba0bc;}.t-separator{border-color:#8ba0bc;background-color:#f1f4f8;}.t-alt{background-color:#eff2f6;}.t-state-default{border-color:#8ba0bc;}.t-active-filter{background-color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#fae185;border-color:#f3d64a;color:#1e395b;}.t-state-active,.t-header .t-state-active{background-color:#fafbfd;border-color:#8ba0bc;}.t-state-selected{background-color:#ffcd42;}.t-state-focused{background-color:#bfcde0;}.t-state-hover,.t-state-selected{color:#1e395b;}.t-state-error{border-color:#ff7c7c;background-color:#ffe4e4;color:#f20000;}.t-button{border-color:#8ba0bc;color:#384e73;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#bccadd url('Office2010Blue/gradient.png') repeat-x 0 center;}.t-button:hover{border-color:#f3d64a;background-color:#fae185;color:#1e395b;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#8ba0bc;}.t-autocomplete{background-color:#fff;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#8ba0bc;background-color:#dce3ed;}.t-widget .t-status{background-color:transparent;}.t-grid td{border-color:#bfcde0;}.t-grouping-row td{background:url('Office2010Blue/sprite.png') repeat-x 0 -48px;}.t-grouping-header .t-group-indicator{border-color:#8ba0bc;}.t-grouping-dropclue{background:url('Office2010Blue/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Office2010Blue/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#e3bb4a;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#8ba0bc;}.t-calendar th{border-color:#dadcdd;background-color:#dbe3ee;}.t-other-month .t-link{color:#8ba0bc;}.t-slider .t-draghandle{background-image:url('Office2010Blue/sprite.png');color:#666;}.t-slider-track{border-color:#8ba0bc;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2010Blue/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2010Blue/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2010Blue/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2010Blue/slider-v.gif');}.t-tooltip{border-width:2px;border-color:#beccde;}.t-callout{background-image:url('Office2010Blue/sprite.png');}.t-callout-n,.t-callout-s{width:10px;height:5px;}.t-callout-w,.t-callout-e{width:5px;height:10px;}.t-callout-n{top:-7px;left:50%;margin-left:-5px;background-position:-64px -368px;}.t-callout-w{left:-7px;top:50%;margin-top:-5px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-5px;margin-top:2px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-5px;margin-left:2px;background-position:-64px -416px;}.t-splitbar{border-color:#8ba0bc;background-color:#dce3ed;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2010Blue/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2010Blue/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#8ba0bc;}.t-dropzone-hovered,.t-upload-files{background-color:#dce3ed;}.t-dropzone em{color:#8ba0bc;}.t-progress,.t-progress-status{background-image:url('Office2010Blue/sprite.png');}.t-progress{background-position:0 -464px;border-color:#8ba0bc;}.t-progress-status{background-position:0 -472px;border-color:#f3d64a transparent;}.t-tiles{border-color:#8ba0bc;background:#fff;}.t-tile{border-color:#fff;background-image:url('Office2010Blue/gradient.png');background-position:0 100px;background-repeat:repeat-x;}.t-tiles li.t-state-hover{border-color:#f3d64a;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#e3bb4a;background-position:0 0;}.t-tile .t-folder{background-image:url('Office2010Blue/imagebrowser.png');}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.office2010silver.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.office2010silver.min.css new file mode 100644 index 000000000..15a9ae2a6 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.office2010silver.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#a4abb2;background-color:#fff;}.t-header,.t-grid-header,.t-toolbar,.t-grouping-header,.t-tooltip,.t-grid-pager{border-color:#a4abb2;background:#d2d5d9 url('Office2010Silver/gradient.png') repeat-x 0 center;}.t-menu-vertical,.t-editor,.t-tooltip,.t-tabstrip{background-position:0 -48px;}.t-icon{background-image:url('Office2010Silver/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2010Silver/editor.png');}.t-picker-wrap{padding-right:23px;}.t-loading,.t-widget .t-loading{background:transparent url('Office2010Silver/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup,.t-grid .t-header{color:#3b3b3b;}.t-group{background-color:#f1f2f3;border-color:#a4abb2;}.t-content,.t-editable-area{border-color:#a4abb2;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#a4abb2;}.t-separator{border-color:#a4abb2;background-color:#fff;}.t-alt{background-color:#f1f2f3;}.t-state-default{border-color:#a4abb2;}.t-active-filter{background-color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#fae185;border-color:#f3d64a;color:#000;}.t-state-active,.t-header .t-state-active{background-color:#fff;border-color:#a4abb2;}.t-state-selected{background-color:#f4b914;}.t-state-focused{background-color:#d3d6da;}.t-state-hover,.t-state-selected{color:#000;}.t-state-error{border-color:#ff7c7c;background-color:#ffe4e4;color:#f20000;}.t-button{border-color:#a4abb2;color:#3b3b3b;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d2d5d9 url('Office2010Silver/gradient.png') repeat-x 0 center;}.t-button:hover{border-color:#f3d64a;background-color:#fae185;color:#000;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#a4abb2;}.t-autocomplete{background-color:#fff;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#a4abb2;background-color:#f1f2f3;}.t-widget .t-status{background-color:transparent;}.t-grid td{border-color:#d3d6da;}.t-grouping-row td{background:url('Office2010Silver/sprite.png') repeat-x 0 -48px;}.t-grouping-header .t-group-indicator{border-color:#a4abb2;}.t-grouping-dropclue{background:url('Office2010Silver/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Office2010Silver/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#f4b914;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#a4abb2;}.t-calendar th{border-color:#d3d6da;background-color:#f1f2f3;}.t-other-month .t-link{color:#a4abb2;}.t-slider .t-draghandle{background-image:url('Office2010Silver/sprite.png');color:#666;}.t-slider-track{border-color:#a4abb2;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2010Silver/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2010Silver/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2010Silver/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2010Silver/slider-v.gif');}.t-tooltip{border-width:2px;border-color:#dfe1e4;}.t-callout{background-image:url('Office2010Silver/sprite.png');}.t-callout-n,.t-callout-s{width:10px;height:5px;}.t-callout-w,.t-callout-e{width:5px;height:10px;}.t-callout-n{top:-7px;left:50%;margin-left:-5px;background-position:-64px -368px;}.t-callout-w{left:-7px;top:50%;margin-top:-5px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-5px;margin-top:2px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-5px;margin-left:2px;background-position:-64px -416px;}.t-splitbar{border-color:#a4abb2;background-color:#f1f2f3;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2010Silver/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2010Silver/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#a4abb2;}.t-dropzone-hovered,.t-upload-files{background-color:#f1f2f3;}.t-dropzone em{color:#a4abb2;}.t-progress,.t-progress-status{background-image:url('Office2010Silver/sprite.png');}.t-progress{background-position:0 -464px;border-color:#a4abb2;}.t-progress-status{background-position:0 -472px;border-color:#f3d64a transparent;}.t-tiles{border-color:#a4abb2;background:#fff;}.t-tile{border-color:#fff;background-image:url('Office2010Silver/gradient.png');background-position:0 100px;background-repeat:repeat-x;}.t-tiles li.t-state-hover{border-color:#f3d64a;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#f4b914;background-position:0 0;}.t-tile .t-folder{background-image:url('Office2010Silver/imagebrowser.png');}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.outlook.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.outlook.min.css new file mode 100644 index 000000000..1b341c235 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.outlook.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#5d8cc9;background-color:#fff;}.t-header,.t-grid-header{border-color:#5d8cc9;background:#7da5e0 url('Outlook/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Outlook/sprite.png');}.t-editor .t-tool-icon{background-image:url('Outlook/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Outlook/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#5d8cc9;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#5d8cc9;}.t-separator{border-color:#cfdef4;background-color:#7e98bc;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#5d8cc9;}.t-active-filter{background-color:#b6cef2;}.t-state-hover,.t-state-hover:hover{background-color:#d6e5f3;border-color:#5d8cc9;}.t-state-active{background-color:#fff;border-color:#5d8cc9;}.t-state-selected{background-color:#bcd3f3;}.t-state-focused{background-color:#a3c0ea;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#5d8cc9;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#ebe8e2 url('Outlook/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#f2f2f2;color:#000;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{color:#577aac;border-color:#7da5e0;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#5d8cc9;background-color:#d6e5f3;}.t-grid td{border-color:#ddd;}.t-grid tr.t-state-hover td{border-color:#d6e5f3;}.t-grid tr.t-state-selected td{border-color:#bcd3f3;}.t-grouping-row td{background:#fff url('Outlook/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#d6e5f3;border-color:#567db0 #d6e5f3 #fff;}.t-group-footer td{background-color:#d6e5f3;border-color:#567db0;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#d6e5f3;border-color:#567db0;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('Outlook/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Outlook/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#002d96;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#5d8cc9;}.t-calendar th{border-color:#89aee5;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Outlook/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Outlook/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Outlook/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#dae8fa #668dcf #668dcf #dae8fa;background-color:#93b5e7;}.t-editor-button .t-state-active{border-color:#5781c9 #a3c1ea #a3c1ea #5781c9;background-color:#7da5e0;}.t-slider .t-draghandle{background-image:url('Outlook/sprite.png');color:#5d8cc9;}.t-slider-track{border-color:#7b9ecc;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Outlook/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Outlook/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Outlook/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Outlook/slider-v.gif');}.t-tooltip{border-color:#000;background:#ffffe1;}.t-callout{background-image:url('Outlook/sprite.png');}.t-splitter{border-color:#89aee5;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#bcd3f3;border-color:#89aee5;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Outlook/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Outlook/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#7f9eba;}.t-dropzone-hovered,.t-upload-files{background-color:#d6e5f3;}.t-dropzone em{color:#6c7a8c;}.t-progress,.t-progress-status{background-image:url('Outlook/sprite.png');}.t-progress{background-position:0 -466px;border-color:#7699c5 #83a4ce #81a5d6;}.t-progress-status{background-position:0 -472px;border-color:#99bbea transparent #40689e;}.t-imagebrowser .t-content{background:#c3dafa;}.t-breadcrumbs .t-link:hover{color:#003db2;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#6c7a8c;}.t-tiles{border-color:#7f9eba;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Outlook/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#e0b224;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#df8b13;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Outlook/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#6c7a8c;}.t-tile-empty strong{color:#8bb2e2;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.rtl.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.rtl.min.css new file mode 100644 index 000000000..7a4008e26 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.rtl.min.css @@ -0,0 +1 @@ +.t-rtl{direction:rtl;zoom:1;}.t-rtl .t-button-icontext .t-icon{margin:0 -3px 0 3px;}.t-rtl .t-window-actions{right:auto;left:.5em;}.t-rtl .t-window-title .t-image{margin:0 0 0 5px;}.t-rtl .t-tabstrip-items .t-item,.t-rtl .t-panelbar .t-tabstrip-items .t-item{margin:.1em 0 0 .3em;}.t-rtl .t-tabstrip-items .t-item .t-icon,.t-rtl .t-panelbar .t-tabstrip-items .t-item .t-icon{margin:-1px -3px 0 4px;}.t-rtl .t-tabstrip-items .t-item .t-image,.t-rtl .t-tabstrip-items .t-item .t-sprite,.t-rtl .t-panelbar .t-tabstrip-items .t-item .t-image,.t-rtl .t-panelbar .t-tabstrip-items .t-item .t-sprite{margin:-4px -3px 0 3px;}.t-rtl .t-tabstrip-items .t-state-active,.t-rtl .t-panelbar .t-tabstrip-items .t-state-active{padding-bottom:1px;margin-bottom:-1px;}.t-rtl .t-panelbar .t-item{zoom:normal;}.t-rtl .t-panelbar .t-image,.t-rtl .t-panelbar .t-sprite{margin-right:0;margin-left:5px;float:right;}.t-rtl .t-panelbar .t-arrow-up,.t-rtl .t-panelbar .t-arrow-down{right:auto;left:2px;}.t-rtl .t-panelbar .t-group .t-group .t-link{padding-left:0;padding-right:2em;}.t-rtl .t-menu .t-group .t-link{padding-left:2em;padding-right:.97em;}.t-rtl .t-menu .t-item{border-width:0 0 0 1px;}.t-rtl .t-menu .t-image,.t-rtl .t-menu .t-sprite{margin:0 -4px 0 4px;}.t-rtl .t-menu .t-arrow-down{margin-left:-10px;margin-right:2px;}.t-rtl .t-menu .t-arrow-next{right:auto;left:0;}.t-rtl .t-menu .t-animation-container,.t-rtl .t-menu .t-group{left:auto;right:-1px;}.t-rtl .t-menu .t-animation-container .t-animation-container,.t-rtl .t-menu .t-group .t-group{right:100%;left:auto;}.t-rtl .t-menu-vertical .t-animation-container,.t-rtl .t-menu-vertical .t-group{right:100%;left:auto;}.t-rtl .t-menu .t-animation-container .t-group{right:auto;}.t-rtl .t-grid div.t-grid-header,.t-rtl .t-grid .t-grid-content,.t-rtl .t-grid .t-grid-footer,.t-rtl .t-grid .t-grouping-header,.t-rtl .t-grid .t-grid-toolbar,.t-rtl .t-grid .t-filter-options,.t-rtl .t-grid tbody{zoom:1;direction:rtl;}.t-rtl .t-grid table{border-collapse:separate;}.t-rtl .t-grid div.t-grid-header{padding-right:0;padding-left:17px;text-align:right;}.t-rtl .t-grid .t-header,.t-rtl .t-grid td{text-align:right;border-width:0 0 0 1px;}.t-rtl .t-grid .t-header .t-link{padding:.3em .6em .3em 2.4em;}.t-rtl .t-grid .t-grid-filter{float:left;margin-right:3px;margin-left:-.6em;}.t-rtl .t-grid .t-pager{direction:ltr;float:right;}.t-rtl .t-grid .t-status{float:right;border-right-width:0;border-left-style:solid;border-left-width:1px;margin:-.2em -.6em -.2em .6em;}.t-rtl .t-grid .t-status-text{float:left;}.t-rtl .t-grid .t-grouping-row p{margin-right:-0.6em;margin-left:0;padding-right:.6em;padding-left:0;}.t-rtl .t-grid .t-button .t-icon{margin-left:3px;margin-right:-3px;}.t-rtl .t-grid .t-last{border-left-width:0;}.t-rtl .t-grouping-header .t-button .t-icon{margin:0 3px 0 0;}.t-rtl .t-autocomplete{background-position:0 50%!important;}.t-rtl .t-dropdown-wrap{padding-right:0;padding-left:16px;zoom:1;}* html .t-rtl .t-combobox .t-dropdown-wrap{padding-right:0;padding-left:16px;}* html .t-rtl .t-picker-wrap{padding-right:0;padding-left:25px;}.t-rtl .t-picker-wrap .t-select,.t-rtl .t-dropdown-wrap .t-select{right:auto;left:0;zoom:1;}* html .t-rtl .t-picker-wrap .t-select,* html .t-rtl .t-dropdown-wrap .t-select{right:auto;left:1px;}.t-rtl .t-combobox .t-select{border-width:0 1px 0 0;}.t-rtl .t-dropdown .t-input,.t-rtl .t-selectbox .t-input{padding:.2em 3px .2em 0;}.t-rtl .t-picker-wrap .t-icon-calendar,.t-rtl .t-picker-wrap .t-icon-clock{margin:3px 3px 0 0;}.t-rtl .t-picker-wrap{padding:0 0 0 25px;}.t-rtl .t-datetimepicker .t-picker-wrap{padding:0 0 0 44px;}.t-rtl .t-treeview .t-item{padding:0 16px 0 0;}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{margin-left:0;margin-right:-16px;padding-left:0;padding-right:20px;}.t-rtl .t-treeview .t-plus,.t-rtl .t-treeview .t-minus,.t-rtl .t-treeview .t-plus-disabled,.t-rtl .t-treeview .t-minus-disabled{margin-left:0;margin-right:-20px;float:right;*float:none;}.t-rtl .t-treeview .t-image{margin-right:0;margin-left:3px;}.t-rtl .t-treeview-lines .t-top{background-position:100% 0;}.t-rtl .t-treeview-lines .t-bot{background-position:100% -22px;}.t-rtl .t-treeview-lines .t-mid{background-position:100% -44px;}.t-rtl .t-treeview-lines .t-last .t-top{background-position:100% -66px;}.t-rtl .t-treeview-lines .t-group .t-last .t-bot{background-position:100% -22px;}.t-rtl .t-treeview-lines .t-item{background-position:100% 0;}.t-rtl .t-treeview-lines .t-first{background-position:100% 16px;}.t-rtl .t-numerictextbox .t-icon{margin-left:0;margin-right:-16px;}.t-rtl .t-editor-colorpicker .t-icon{border-width:0 1px 0 0;}.t-rtl .t-header .t-tabstrip-items .t-link{padding:.3em .9em;}.t-rtl .t-breadcrumbs{float:right;margin:0 -1px 0 0;}.t-rtl .t-breadcrumbs-wrap{left:auto;right:0;padding-left:0;padding-right:5px;}.t-rtl .t-breadcrumbs-input{padding-left:0;padding-right:2px;}.t-rtl .t-search-wrap{float:left;}.t-rtl .t-search-wrap label{left:auto;right:7px;}.t-rtl .t-search-wrap .t-search{right:auto;left:2px;}.t-rtl .t-tile{float:right;}.t-rtl .t-imagebrowser .t-thumb{float:right;margin:4px 4px 0 10px;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.simple.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.simple.min.css new file mode 100644 index 000000000..6e9b31f70 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.simple.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#828282;background-color:#fff;}.t-header,.t-grid-header{border-color:#828282;background:#e6e6e6;}.t-icon{background-image:url('Simple/sprite.png');}.t-editor .t-tool-icon{background-image:url('Simple/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Simple/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#828282;}.t-separator{border-color:#fff;background-color:#999;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#828282;}.t-active-filter{background-color:#d8d8d8;}.t-state-hover,.t-state-hover:hover{background-color:#ffe79c;border-color:#c98400;}.t-state-active{background-color:#fff;border-color:#828282;}.t-state-selected{background-color:#ffa517;}.t-state-focused{background-color:#fff3cd;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{border-color:#828282;background:#e8e8e8;}.t-button:hover{background:#ffe79c;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aaa;background-color:#eee;}.t-grid td{border-color:#ddd;}.t-grid tr.t-state-selected td{border-color:#ffa517;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Simple/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row td,.t-grouping-row p{background:#fff;}.t-footer-template td{background-color:#e4e4e4;border-color:#999 #e4e4e4 #fff;}.t-group-footer td{background-color:#e4e4e4;border-color:#999;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e4e4e4;border-color:#999;}.t-treeview .t-drop-clue{background-image:url('Simple/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#ffa517;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#999;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Simple/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Simple/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Simple/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#f1f1f1 #8a8a8a #8a8a8a #f1f1f1;background-color:#e6e6e6;}.t-editor-button .t-state-active{border-color:#a4a4a4 #e0e0e0 #e0e0e0 #a4a4a4;background-color:#c8c8c8;}.t-slider .t-draghandle{border-width:1px;border-style:solid;color:#606060;}.t-slider-horizontal .t-draghandle{width:7px;height:18px;top:-8px;}.t-slider-vertical .t-draghandle{width:18px;height:7px;left:-8px;}.t-slider .t-draghandle,.t-state-disabled.t-slider a.t-draghandle,.t-state-disabled .t-slider a.t-draghandle{border-color:#828282;background-color:#e8e8e8;}.t-slider .t-draghandle:hover,.t-slider .t-draghandle:focus{border-color:#c98400;background-color:#ffe79c;}.t-slider .t-draghandle:active{border-color:#c98400;background-color:#ffa517;}.t-slider .t-slider-track{background:#e1e1e1 none;border:1px solid #acacac;}.t-slider .t-slider-selection{background:#ffa517 none;border:1px solid #ca4b0c;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{height:4px;}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{width:4px;}.t-slider-horizontal .t-tick{background-image:url('Simple/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Simple/slider-v.gif');}.t-tooltip{border-color:#ffa517;background:#ffe79c;}.t-callout{background-image:url('Simple/sprite.png');}.t-splitter{border-color:#828282;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#e6e6e6;border-color:#828282;}.t-splitbar-vertical-hover,.t-splitbar-horizontal-hover{background-color:#ffe79c;}.t-splitbar-horizontal-active,.t-splitbar-vertical-active,.t-ghost-splitbar-horizontal,.t-ghost-splitbar-vertical{background-color:#ffa517;}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active,.t-upload-files{border-color:#9b9b9b;}.t-dropzone-hovered,.t-upload-files{background-color:#e8e8e8;}.t-dropzone em{color:#9b9b9b;}.t-progress{background-color:#e1e1e1;border-color:#b4b4b4 #adadad #9e9e9e;}.t-progress-status{background-color:#ffa517;border-color:#ca4b0c;}.t-imagebrowser .t-content{background:#e8e8e8;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#9b9b9b;}.t-tiles{border-color:#9b9b9b;background:#fff;}.t-tile{border-color:#fff;}.t-tiles li.t-state-hover{border-color:#c98400;background-color:#ffe79c;}.t-tiles li.t-state-selected{border-color:#c98400;background-color:#ffa517;}.t-tile .t-folder{background-image:url('Simple/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#6e6659;}.t-tile-empty strong{color:#9e9e9e;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.sitefinity.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.sitefinity.min.css new file mode 100644 index 000000000..96567b193 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.sitefinity.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-width:0;border-color:#ccc;background:none;}.t-autocomplete{border-width:1px;border-style:solid;}.t-header,.t-grid-header{border-color:#ccc;background:#fff;}.t-icon{background-image:url('Sitefinity/sprite.png');}.t-editor .t-tool-icon{background-image:url('Sitefinity/editor.png');}.t-plus,.t-plus-disabled{background-position:-16px -272px;}.t-minus,.t-minus-disabled{background-position:0 -272px;}.t-rtl .t-plus,.t-rtl .t-plus-disabled{background-position:-32px -272px;}.t-rtl .t-minus,.t-rtl .t-minus-disabled{background-position:-1px -272px;}.t-grid .t-header .t-link .t-arrow-down{background-position:0 -256px;}.t-grid .t-header .t-link .t-arrow-up{background-position:-16px -256px;}.t-loading,.t-widget .t-loading{background:transparent url('Sitefinity/loading.gif') no-repeat 0 0;}.t-widget{color:#000;}.t-link,.t-popup{color:#105cd6;}.t-group,.t-content,.t-editable-area{border-color:#ccc #666 #666 #ccc;background-color:#fff;border-width:1px 2px 2px 1px;}.t-colorpicker .t-arrow-down{border-color:#ccc;}.t-separator{border-color:#fff;background-color:#999;}.t-alt{background:none;}.t-state-default{border-color:#eee;}.t-active-filter{background-color:#e5e5e5;}.t-state-hover{border-color:#dee2e7;}.t-state-active{background-color:#fff;border-color:#ccc;}.t-state-selected{background-color:#ffffe1;}.t-state-focused{background-color:#fffacd;}.t-state-error{border-color:#e50000;}.t-button{border-width:1px 2px 2px 1px;border-color:#ccc #666 #666 #ccc;color:#333;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#f1f1f1;}.t-button:hover{background:#fff;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#afaeae;border-color:#ccc;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#ccc;background-color:transparent;}.t-widget .t-status{border:0;}.t-autocomplete{border-width:1px;border-style:solid;}.t-combobox .t-state-default,.t-dropdown .t-state-default{border-color:#ccc;}.t-grid .t-header,.t-grid .t-header .t-link{letter-spacing:1px;text-transform:uppercase;font-size:.866em;line-height:2.6em;color:#666;background:none;}.t-grid .t-header,.t-grid td{border-bottom-width:1px;border-color:#eee;}.t-grid .t-grid-filter{border-left:0;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Sitefinity/sprite.png') no-repeat -48px -288px;}.t-treeview .t-drop-clue{background-image:url('Sitefinity/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#999;}.t-group-footer td,.t-footer-template td,.t-grid-footer{border-color:#eee #fff;}.t-grid-pager .t-state-hover{border-color:#ccc;color:#002bb8;background:#f0f0f0;}.t-menu .t-state-hover,.t-panelbar .t-state-hover,.t-tabstrip .t-state-hover{color:#002bb8;}.t-tabstrip{border:1px solid #ccc;}.t-tabstrip .t-state-default,.t-tabstrip .t-state-disabled{border-bottom-color:#ccc;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#ddd;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Sitefinity/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Sitefinity/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Sitefinity/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-window,.t-drag-clue{background-color:#fff;}.t-slider .t-draghandle{background-image:url('Sitefinity/sprite.png');color:#000;}.t-slider-track{border-color:#e8e9ea;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Sitefinity/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Sitefinity/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Sitefinity/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Sitefinity/slider-v.gif');}.t-tooltip{border-width:1px;background:#f1f1f1;color:#333;}.t-callout{background-image:url('Sitefinity/sprite.png');}div.t-splitter{border:1px solid #ccc;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#f1f1f1;border-color:#ccc;}.t-splitbar-vertical-hover,.t-splitbar-horizontal-hover{background-color:#ddd;}.t-splitbar-horizontal-active,.t-splitbar-vertical-active,.t-ghost-splitbar-horizontal,.t-ghost-splitbar-vertical{background-color:#ccc;}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active{border-color:#aaa;}.t-dropzone-hovered{background-color:#efefef;}.t-dropzone em{color:#999;}.t-upload-files{border-width:0;}.t-progress,.t-progress-status{background-image:url('Sitefinity/sprite.png');}.t-progress{background-position:0 -465px;border-color:#f8f8f8 transparent #cacaca;}.t-progress-status{background-position:0 -471px;border-color:#62962a transparent #4e8315;}.t-imagebrowser .t-content{background:#efefef;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#999;}.t-tiles-arrange a{color:#000;}.t-tiles{border-color:#ccc;background:#fff;}.t-tile{border-color:#fff;}.t-tiles li.t-state-hover{border-color:#abadb3;}.t-tiles li.t-state-selected{border-color:#abadb3;background-color:#999;color:#fff;}.t-tile .t-folder{background-image:url('Telerik/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#999;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#d2d2d2;}.t-tile-empty strong{color:#9b9b9b;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.sunset.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.sunset.min.css new file mode 100644 index 000000000..78c3cbb03 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.sunset.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#714734;background-color:#ececd8;}.t-header,.t-grid-header{border-color:#854324;background:#90330a url('Sunset/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Sunset/sprite.png');}.t-editor .t-tool-icon{background-image:url('Sunset/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Sunset/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link,.t-grid-header .t-header .t-link,.t-grid-header .t-header{color:#fbfbc7;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#bbb99d;background-color:#ececd8;}.t-colorpicker .t-arrow-down{border-color:#714734;}.t-separator{border-color:#a85835;background-color:#7c2f0c;}.t-alt{background-color:#fff;}.t-state-default{border-color:#854324;}.t-active-filter{background-color:#d25e21;}.t-state-selected{border-color:#904c23;background-color:#ea9959;}.t-state-hover,.t-state-hover .t-link,.t-group .t-state-hover{color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#c5551c;border-color:#854324;}.t-state-focused{background-color:#cdccb3;}.t-state-active{background-color:#ececd8;border-color:#854324;}.t-state-active,.t-state-active .t-link{color:#333;}.t-state-active .t-header,.t-state-active .t-state-hover{color:#fff;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#d1711a;color:#2d0e06;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d1711a url('Sunset/sprite.png') repeat-x 0 -560px;}.t-button:hover{border-color:#e7941e;background-position:0 -624px;background-color:#e8961e;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{border-color:#666;color:#bf9e8f;}a.t-button.t-state-disabled,button.t-button.t-state-disabled,.t-state-disabled .t-button{color:#b83b01;border-color:#d1711a;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{border-color:#a04a23;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#bbb99d;background-color:#dee0c8;}.t-panelbar .t-link{border-color:#714734;}.t-editor-button .t-state-active{background-color:#d3751a;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Sunset/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#dee0c8;border-color:#cabaab #dee0c8 #f1e9dc;}.t-group-footer td{background-color:#dee0c8;border-color:#cabaab;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#dee0c8;border-color:#cabaab;}.t-grouping-header .t-group-indicator{color:#333;border-color:#999;}.t-grouping-dropclue{background:url('Sunset/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Sunset/sprite.png');background-position:0 -358px;}.t-calendar th{border-color:#d2c7b4;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Sunset/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Sunset/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Sunset/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#ca734b #722205 #722205 #ca734b;background-color:#a13606;}.t-editor-button .t-state-active{border-color:#a24b0f #e09d5c #e09d5c #a24b0f;background-color:#d3751a;}.t-slider .t-draghandle{background-image:url('Sunset/sprite.png');color:#714734;}.t-slider-track{border-color:#c6c0a8;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Sunset/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Sunset/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Sunset/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Sunset/slider-v.gif');}.t-tooltip{border-color:#c0bca2;background:#d6ceba 0 -96px repeat-x url('Sunset/sprite.png');color:#2d0e06;}.t-callout{background-image:url('Sunset/sprite.png');}.t-splitter{border-color:#cac8ab;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#ececd8;border-color:#cac8ab;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Sunset/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Sunset/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#bbb99d;}.t-dropzone-hovered,.t-upload-files{background-color:#f5f5e6;}.t-dropzone em{color:#714734;}.t-progress,.t-progress-status{background-image:url('Sunset/sprite.png');}.t-progress{background-position:0 -465px;border-color:#cfc5b1 #cbc6af #c2bda4;}.t-progress-status{background-position:0 -472px;border-color:#2b140d transparent #593324;}.t-imagebrowser .t-content{background:#dee0c8;}.t-breadcrumbs .t-link{color:#2d0e06;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#714734;}.t-tiles-arrange{color:#714734;}.t-tiles-arrange a{color:#2d0e06;}.t-tiles{border-color:#bbb99d;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Sunset/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#e7941e;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#854324;background-position:0 -100px;color:#fff;}.t-tile .t-folder{background-image:url('Sunset/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#986011;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#dbaa93;}.t-tile-empty strong{color:#ae9b87;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.telerik.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.telerik.min.css new file mode 100644 index 000000000..c69ddea25 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.telerik.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#828282;background-color:#fff;}.t-header,.t-grid-header{border-color:#828282;background:#f6f6f6 url('Telerik/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Telerik/sprite.png');}.t-editor .t-tool-icon{background-image:url('Telerik/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Telerik/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#828282;}.t-separator{border-color:#f3f3f3;background-color:#bdbdbd;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#828282;}.t-active-filter{background-color:#dfdfdf;}.t-state-hover,.t-state-hover:hover{background-color:#b6f0a3;border-color:#28a900;}.t-state-active{background-color:#fff;border-color:#28a900;}.t-state-selected{background-color:#8cc569;}.t-state-focused{background-color:#d4ffc5;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#828282;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#f6f6f6 url('Telerik/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#a2ea8b;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aaa;background-color:#eee;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Telerik/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#eee;border-color:#828282 #eee #fff;}.t-group-footer td{background-color:#eee;border-color:#828282;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#eee;border-color:#828282;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Telerik/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Telerik/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#1c7600;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#c5c5c5;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Telerik/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Telerik/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Telerik/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#d6f1cd #809a77 #809a77 #d6f1cd;background-color:#c0e9b3;}.t-editor-button .t-state-active{border-color:#8c8c8c #d8d8d8 #d8d8d8 #8c8c8c;background-color:#c4c4c4;}.t-slider .t-draghandle{background-image:url('Telerik/sprite.png');color:#828282;}.t-slider-track{border-color:#a5a5a5;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Telerik/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Telerik/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Telerik/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Telerik/slider-v.gif');}.t-tooltip{border-color:#cccab0;background:#f6f6f6 0 -557px repeat-x url('Telerik/sprite.png');}.t-callout{background-image:url('Telerik/sprite.png');}.t-splitter{border-color:#aaa;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#eee;border-color:#aaa;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Telerik/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Telerik/sprite-vertical.png');}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active,.t-upload-files{border-color:#abadb3;}.t-dropzone-hovered,.t-upload-files{background-color:#f1f1f1;}.t-dropzone em{color:#999;}.t-progress,.t-progress-status{background-image:url('Telerik/sprite.png');}.t-progress{background-position:0 -465px;border-color:#b4b4b4 #cbc6af #c2bda4;}.t-progress-status{background-position:0 -472px;border-color:#9bcc76 transparent #63af3a;}.t-imagebrowser .t-content{background:#f1f1f1;}.t-breadcrumbs .t-link{color:#666;}.t-breadcrumbs .t-link:hover{color:#000;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#999;}.t-tiles-arrange{color:#666;}.t-tiles-arrange a{color:#000;}.t-tiles{border-color:#e2e3ea;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Telerik/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#abadb3;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#abadb3;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Telerik/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#666;}.t-tile-empty strong{color:#9e9e9e;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.transparent.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.transparent.min.css new file mode 100644 index 000000000..785d20722 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.transparent.min.css @@ -0,0 +1 @@ +.t-widget,div.t-combobox,.t-input{border-color:#c5c5c5;background:url('Transparent/widget.png');}.t-header,.t-grid-header,.t-grouping-header,.t-tooltip,.t-grid-pager{border-color:#c5c5c5;background:url('Transparent/gradient.png') repeat-x 0 center;}.t-menu-vertical,.t-editor,.t-tooltip,.t-tabstrip{background-position:0 -48px;}.t-icon{background-image:url('Transparent/sprite.png');}.t-editor .t-editor-toolbar .t-tool-icon{background-image:url('Transparent/editor.png');}.t-picker-wrap{padding-right:23px;}.t-loading,.t-widget .t-loading{background:transparent url('Transparent/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-state-hover .t-link:hover,.t-popup,.t-grid .t-header{color:#000;}.t-animation-container .t-group{background:url('Transparent/group.png');border-color:#e0e0e0;}.t-animation-container .t-content,.t-editable-area{border-color:#c5c5c5;background:url('Transparent/group.png');}.t-colorpicker .t-arrow-down{border-color:#c5c5c5;}.t-separator{border-color:#c5c5c5;background-color:#fff;}.t-alt{background:url('Transparent/widget.png');}.t-state-default{border-color:#c5c5c5;}.t-active-filter{background:url('Transparent/active.png');}.t-state-hover,.t-state-hover:hover{background-image:url('Transparent/hover.png');border-color:#999;color:#000;}.t-state-active,.t-header .t-state-active{background-image:url('Transparent/active.png');border-color:#c5c5c5;}.t-panelbar .t-item.t-state-active{background-image:none;}.t-state-selected{background-image:url('Transparent/selected.png');border-color:#aaa;}.t-state-selected,.t-state-selected .t-link,a.t-state-selected.t-link{color:#fff;}.t-state-focused{background:url('Transparent/hover.png');}.t-state-error{color:#f20000;}.t-button{border-color:#c5c5c5;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:url('Transparent/gradient.png') repeat-x 0 center;}.t-button:hover{color:#000;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#c5c5c5;}.t-combobox .t-input{background:transparent;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#c5c5c5;background:url('Transparent/toolbar.png');}.t-imagebrowser .t-toolbar{background-repeat:repeat;}.t-widget .t-status{background:none transparent;}.t-grid td{border-color:#c5c5c5;}.t-grouping-header .t-group-indicator{border-color:#c5c5c5;}.t-grouping-dropclue{background:url('Transparent/sprite.png') no-repeat -48px -288px;}.t-treeview .t-drop-clue{background-image:url('Transparent/sprite.png');background-position:0 -358px;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#c5c5c5;}.t-calendar th{border-color:#d3d6da;background:url('Transparent/toolbar.png');}.t-other-month .t-link{color:#666;}.t-slider{background-image:none;}.t-slider .t-draghandle{background-image:url('Transparent/sprite.png');color:#666;}.t-slider-track{border-color:#c5c5c5;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Transparent/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Transparent/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Transparent/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Transparent/slider-v.gif');}.t-tooltip{border-width:2px;border-color:#c5c5c5;}.t-callout{background-image:url('Transparent/sprite.png');}.t-callout-n,.t-callout-s{width:10px;height:5px;}.t-callout-w,.t-callout-e{width:5px;height:10px;}.t-callout-n{top:-7px;left:50%;margin-left:-5px;background-position:-64px -368px;}.t-callout-w{left:-7px;top:50%;margin-top:-5px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-5px;margin-top:2px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-5px;margin-left:2px;background-position:-64px -416px;}.t-splitbar{border-color:#c5c5c5;background:url('Transparent/toolbar.png');}.t-splitbar .t-icon{background-image:url('Transparent/sprite.png');}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Transparent/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Transparent/sprite-vertical.png');background-color:transparent;}.t-dropzone-active,.t-upload-files{border-color:#c5c5c5;}.t-dropzone-hovered,.t-upload-files{background:url('Transparent/toolbar.png');}.t-dropzone em{color:#c5c5c5;}.t-progress,.t-progress-status{background-image:url('Transparent/sprite.png');}.t-progress{background-position:0 -464px;border-color:#c5c5c5;}.t-progress-status{background-position:0 -472px;border-color:transparent;}.t-tiles{border-color:#c5c5c5;background:url('Transparent/alt.png');}.t-tile{border-color:#fff;background-image:url('Transparent/gradient.png');background-position:0 100px;background-repeat:repeat-x;}.t-tiles li.t-state-hover{border-color:#999;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#aaa;background-position:0 0;}.t-tile .t-folder{background-image:url('Transparent/imagebrowser.png');}.t-tile-empty strong{color:#aaa;}.t-window-content{background:url('Transparent/group.png');}.t-window-actions{background:none;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.vista.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.vista.min.css new file mode 100644 index 000000000..d9540ab03 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.vista.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#a7bac5;background-color:#fff;}.t-widget,.t-widget button,.t-widget input,.t-widget select,.t-button,.t-formatted-value{font-family:"Segoe UI",Arial,sans-serif;}.t-header,.t-grid-header{border-color:#a7bac5;background:#a6d9f4 url('Vista/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Vista/sprite.png');}.t-editor .t-tool-icon{background-image:url('Vista/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Vista/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#a7bac5;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#a7bac5;}.t-separator{border-color:#eaf6fd;background-color:#a7bac5;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#a7bac5;}.t-active-filter{background-color:#ceeefd;}.t-state-hover,.t-state-hover:hover{background-color:#e3f4fc;border-color:#a7bac5;}.t-state-active{background-color:#fff;border-color:#a7bac5;}.t-state-selected{background-color:#c8e8f8;}.t-state-focused{background-color:#90c5e1;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#a7bac5;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d1d1d1 url('Vista/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#a7daf4;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;border-color:#bbb;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#bbb;background-color:#eff7fc;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Vista/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#e0e5f5;border-color:#aec5d1 #e0e5f5 #fff;}.t-group-footer td{background-color:#e0e5f5;border-color:#aec5d1;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e0e5f5;border-color:#aec5d1;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Vista/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-grouping-row p{margin-left:-.6em;padding-left:.6em;}.t-treeview .t-drop-clue{background-image:url('Vista/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#99defd;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#e0e0e0;}.t-other-month .t-link{color:#777;}.t-editor-button .t-state-hover{border-color:#ebf6fd #88a1af #88a1af #ebf6fd;background-color:#c9e8fa;}.t-editor-button .t-state-active{border-color:#809eae #bae1f5 #bae1f5 #809eae;background-color:#95cfec;}.t-slider .t-draghandle{background-image:url('Vista/sprite.png');color:#333;}.t-slider-track{border-color:#d3dce2;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Vista/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Vista/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Vista/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Vista/slider-v.gif');}.t-tooltip{border-color:#767676;background:#e4e5f0 0 -96px repeat-x url('Vista/sprite.png');}.t-callout{background-image:url('Vista/sprite.png');}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Vista/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Vista/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#d2dfe6;}.t-dropzone-hovered,.t-upload-files{background-color:#eff7fc;}.t-dropzone em{color:#a7bac5;}.t-progress,.t-progress-status{background-image:url('Vista/sprite.png');}.t-progress{background-position:0 -467px;border-color:#bfd0da #c4d4dd;}.t-progress-status{background-position:0 -471px;border-color:#1db2ee transparent #0067c2;}.t-imagebrowser .t-content{background:#f1f1f1;}.t-breadcrumbs .t-link{color:#666;}.t-breadcrumbs .t-link:hover{color:#06c;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#777d81;}.t-tiles{border-color:#a7bac5;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Vista/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#99defd;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#9bd3f0;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Vista/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#767d80;}.t-tile-empty strong{color:#a7bac5;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.web20.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.web20.min.css new file mode 100644 index 000000000..b70d8f2ee --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.web20.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#4e75b3;background-color:#fff;}.t-header,.t-grid-header{border-color:#4a70ae;background:#7fa5d7 url('Web20/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Web20/sprite.png');}.t-editor .t-tool-icon{background-image:url('Web20/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Web20/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link{color:#fff;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#4a70ae;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#4e75b3;}.t-separator{border-color:#93b2dc;background-color:#688bbb;}.t-alt{background-color:#fff;}.t-state-default{border-color:#4a70ae;}.t-active-filter{background-color:#87a6d4;}.t-state-hover,.t-state-hover .t-link,.t-header .t-state-hover,.t-group .t-state-hover{color:#333;}.t-state-hover,.t-state-hover:hover{background-color:#a4c2f1;border-color:#4a70ae;}.t-state-active{background-color:#fff;border-color:#4a70ae;}.t-state-active,.t-state-active .t-link,.t-state-active .t-header .t-state-active,.t-state-active .t-header .t-state-active .t-link{color:#333;}.t-state-active .t-header,.t-state-active .t-header .t-link{color:#fff;}.t-state-active .t-state-hover,.t-state-active .t-header .t-state-hover .t-link{color:#333;}.t-state-selected{background-color:#d4ffbc;}.t-state-focused{background-color:#e3eeff;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#4a70ae;color:#fff;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#607fc5 url('Web20/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#c1d5ef;color:#0f3789;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#abb9de;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#829cbf;background-color:#e3eeff;}.t-panelbar .t-link{border-color:#4a70ae;}.t-grid td{border-bottom-width:1px;border-color:#cfd9e7 #829cbf;}.t-grouping-row td{background:#fff url('Web20/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#e3eeff;border-color:#829cbf #e3eeff #fff;}.t-group-footer td{background-color:#e3eeff;border-color:#829cbf;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e3eeff;border-color:#829cbf;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Web20/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Web20/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#85c843;}.t-editor-button .t-state-active{background-color:#4567ba;}.t-calendar th{background-color:#ecf4ff;border-color:#bcd2f1;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Web20/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Web20/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Web20/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-drag-clue{color:#fff;}.t-editor-button .t-state-hover{border-color:#8ea9d1 #385b9d #385b9d #8ea9d1;background-color:#7fa5d7;}.t-editor-button .t-state-active{border-color:#3a5c9d #89a2cc #89a2cc #3a5c9d;background-color:#567cb8;}.t-slider .t-draghandle{background-image:url('Web20/sprite.png');color:#4e75b3;}.t-slider-track{border-color:#7794c3;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Web20/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Web20/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Web20/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Web20/slider-v.gif');}.t-tooltip{border-color:#b2c5e4;background:#bed4f6 0 -96px repeat-x url('Web20/sprite.png');color:#0f3789;}.t-callout{background-image:url('Web20/sprite.png');}.t-splitter{border-color:#829cbf;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#93add4;border-color:#829cbf;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Web20/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Web20/sprite-vertical.png');}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active,.t-upload-files{border-color:#829cbf;}.t-dropzone-hovered,.t-upload-files{background-color:#cedcef;}.t-dropzone em{color:#747886;}.t-progress,.t-progress-status{background-image:url('Web20/sprite.png');}.t-progress{background-position:0 -465px;border-color:#7996c6 #819dca #7996c6;}.t-progress-status{background-position:0 -472px;border-color:#e1ff86 transparent #82eb30;}.t-imagebrowser .t-content{background:#c1d5ef;}.t-toolbar .t-upload .t-button,.t-breadcrumbs .t-link,.t-tiles-arrange,.t-tiles-arrange a{color:#102152;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#747886;}.t-tiles{border-color:#829cbf;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Web20/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#4a70ae;background-position:0 0;color:#fff;}.t-tiles li.t-state-selected{border-color:#29448b;background-position:0 -100px;color:#fff;}.t-tile .t-folder{background-image:url('Web20/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#747886;}.t-tiles li.t-state-hover em,.t-tiles li.t-state-hover .t-filesize .t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#b3c4ef;}.t-tile-empty strong{color:#a5bce0;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.webblue.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.webblue.min.css new file mode 100644 index 000000000..963347a39 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.webblue.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#768ca5;background-color:#fff;}.t-header,.t-grid-header{border-color:#426682;background:#718ca1 url('WebBlue/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('WebBlue/sprite.png');}.t-editor .t-tool-icon{background-image:url('WebBlue/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('WebBlue/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link{color:#fff;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#426682;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#768ca5;}.t-separator{border-color:#8aa0b1;background-color:#516273;}.t-alt{background-color:#dae2e8;}.t-state-default{border-color:#426682;}.t-active-filter{background-color:#8dc1d7;}.t-state-active{background-color:#fff;border-color:#426682;}.t-state-active,.t-state-active .t-link{color:#333;}.t-state-active .t-header{color:#fff;}.t-state-active .t-state-hover{color:#333;}.t-state-selected{background-color:#3e94b4;}.t-state-focused{background-color:#9bacbe;}.t-state-selected,.t-state-selected .t-link,.t-state-selected.t-link{color:#fff;}.t-state-hover,.t-state-hover .t-link,.t-state-hover.t-link,.t-header .t-state-hover,.t-group .t-state-hover{color:#333;}.t-state-hover,.t-state-hover:hover{background-color:#acd4e3;border-color:#5d9fb7;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#426682;color:#0d202b;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d6e1e7 url('WebBlue/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#bee3f6;color:#0e3d4f;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link{color:#bbb;}.t-button.t-state-disabled,.t-button.t-state-disabled:hover,.t-state-disabled .t-button{color:#657c8c;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{color:#abc0d3;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#a2b3c7;background-color:#dae2e8;}.t-panelbar .t-link{border-color:#333;}.t-grid td{border-color:#dae2e8;}.t-grouping-row td{background:#fff url('WebBlue/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#dae2e8;border-color:#a2b3c7 #dae2e8 #fff;}.t-group-footer td{background-color:#dae2e8;border-color:#a2b3c7;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#dae2e8;border-color:#a2b3c7;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('WebBlue/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('WebBlue/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#133C44;}.t-editor-button .t-state-active{background-color:#a2b9c9;}.t-calendar th{background-color:#dfeeff;border-color:#a7c0df;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('WebBlue/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('WebBlue/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('WebBlue/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#5f7c95 #3b576f #3b576f #5f7c95;background-color:#5f7c95;}.t-editor-button .t-state-active{border-color:#5b758e #97b5c7 #97b5c7 #5b758e;background-color:#8ca5b8;}.t-slider .t-draghandle{background-image:url('WebBlue/sprite.png');color:#768ca5;}.t-slider-track{border-color:#c1cbd6;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('WebBlue/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('WebBlue/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('WebBlue/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('WebBlue/slider-v.gif');}.t-tooltip{border-color:#a7c0df;background:#c4d4dd 0 -96px repeat-x url('WebBlue/sprite.png');color:#0d202b;}.t-callout{background-image:url('WebBlue/sprite.png');}.t-splitter{border-color:#a2b3c7;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#b4c5d9;border-color:#a2b3c7;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('WebBlue/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('WebBlue/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#a2b3c7;}.t-dropzone-hovered,.t-upload-files{background-color:#dae2e8;}.t-dropzone em{color:#8a98a8;}.t-progress,.t-progress-status{background-image:url('WebBlue/sprite.png');}.t-progress{background-position:0 -465px;border-color:#92a4b8 #adbac9 #a2b3c7;}.t-progress-status{background-position:0 -472px;border-color:#a4ff91 transparent #5aff62;}.t-imagebrowser .t-content{background:#dae2e8;}.t-toolbar .t-upload .t-button,.t-breadcrumbs .t-link,.t-tiles-arrange,.t-tiles-arrange a{color:#0e3d4f;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#8a98a8;}.t-tiles{border-color:#a2b3c7;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('WebBlue/imagebrowser.png');color:#0e3d4f;}.t-tiles li.t-state-hover{border-color:#4a70ae;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#768ca5;background-position:0 -100px;color:#fff;}.t-tile .t-folder{background-image:url('WebBlue/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#8a98a8;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#b2c5d2;}.t-tile-empty strong{color:#b3c6d3;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/2011.2.712/telerik.windows7.min.css b/NzbDrone.Web/Content/2011.2.712/telerik.windows7.min.css new file mode 100644 index 000000000..6c80ebda9 --- /dev/null +++ b/NzbDrone.Web/Content/2011.2.712/telerik.windows7.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#a5b3c5;background-color:#fcfcfc;}.t-header,.t-grid-header{border-color:#a5b3c5;background:#f1f5fb;}.t-icon{background-image:url('Windows7/sprite.png');}.t-editor .t-tool-icon{background-image:url('Windows7/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Windows7/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#000;}.t-header,.t-header .t-link{color:#4c607a;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#a5b3c5;background-color:#fcfcfc;}.t-colorpicker .t-arrow-down{border-color:#a5b3c5;}.t-separator{border-color:#fff;background-color:#c2cedb;}.t-alt{background-color:#ebeff3;}.t-state-default{border-color:#a5b3c5;}.t-active-filter{background-color:#c3dcfa;}.t-state-hover,.t-state-hover .t-link,.t-header .t-state-hover,.t-group .t-state-hover{color:#000;}.t-state-hover,.t-state-hover:hover{background-color:#d1e4fc;border-color:#8daed5;}.t-state-active{background-color:#fff;border-color:#426682;}.t-state-selected{background-color:#deecfe;}.t-state-focused{background-color:#c4d1e0;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{color:#0d202b;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{border-color:#c2cedb;background:#e7ecf5 url('Windows7/sprite.png') repeat-x 0 -560px;}.t-button:hover{border-color:#9bc9ff;background-position:0 -624px;background-color:#dde8f6;color:#0e3d4f;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aec5d1;background-color:#f1f5fb;}.t-panelbar .t-link{border-color:#a5b3c5;}.t-tabstrip .t-item{border-bottom-color:#426682;}.t-grid td{border-color:#dae2e8;}.t-grouping-row td{background:#fff url('Windows7/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#e2eaf4;border-color:#aec5d1 #e2eaf4;}.t-group-footer td{background-color:#e2eaf4;border-color:#aec5d1;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e2eaf4;border-color:#aec5d1;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Windows7/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Windows7/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#8fb0d6;}.t-calendar th{border-color:#d4dbe5;}.t-other-month .t-link{color:#a7a7a7;}.t-editor-button .t-state-hover{border-color:#e5f0fd #8ba6c4 #8ba6c4 #e5f0fd;background-color:#d1e4fc;}.t-editor-button .t-state-active{border-color:#aec1d6 #e3ebf5 #e3ebf5 #aec1d6;background-color:#ccdbed;}.t-slider .t-draghandle{background-image:url('Windows7/sprite.png');color:#4c607a;}.t-slider-track{border-color:#a6abc3;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Windows7/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Windows7/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Windows7/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Windows7/slider-v.gif');}.t-tooltip{background:#e7ecf5 0 -560px repeat-x url('Windows7/sprite.png');color:#0e3d4f;}.t-callout{background-image:url('Windows7/sprite.png');}.t-splitter{border-color:#dae2e8;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#f1f5fb;border-color:#dae2e8;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Windows7/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Windows7/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#c2cedb;}.t-dropzone-hovered,.t-upload-files{background-color:#f1f5fb;}.t-dropzone em{color:#a7a7a7;}.t-progress,.t-progress-status{background-image:url('Windows7/sprite.png');}.t-progress{background-position:0 -465px;border-color:#c2cedb #c2cedb;}.t-progress-status{background-position:0 -472px;border-color:#1db2ee transparent #3186db;}.t-imagebrowser .t-content{background:#f1f5fb;}.t-breadcrumbs .t-link,.t-tiles-arrange,.t-tiles-arrange a{color:#1e395b;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#a7a7a7;}.t-tiles{border-color:#c2cedb;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Windows7/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#b8d6fb;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#7da2ce;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Windows7/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#a7a7a7;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#7da2ce;}.t-tile-empty strong{color:#c2cedb;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 000000000..5b5dab2ab Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 000000000..ac8b229af Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_flat_75_ffffff_40x100.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 000000000..ad3d6346e Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_55_fbf9ee_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 000000000..42ccba269 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_65_ffffff_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 000000000..5a46b47cb Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_75_dadada_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 000000000..86c2baa65 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_75_e6e6e6_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 000000000..4443fdc1a Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/NzbDrone.Web/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 000000000..7c9fa6c6e Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-icons_222222_256x240.png b/NzbDrone.Web/Content/themes/base/images/ui-icons_222222_256x240.png new file mode 100644 index 000000000..ee039dc09 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-icons_222222_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-icons_2e83ff_256x240.png b/NzbDrone.Web/Content/themes/base/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 000000000..45e8928e5 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-icons_2e83ff_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-icons_454545_256x240.png b/NzbDrone.Web/Content/themes/base/images/ui-icons_454545_256x240.png new file mode 100644 index 000000000..7ec70d11b Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-icons_454545_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-icons_888888_256x240.png b/NzbDrone.Web/Content/themes/base/images/ui-icons_888888_256x240.png new file mode 100644 index 000000000..5ba708c39 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-icons_888888_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/images/ui-icons_cd0a0a_256x240.png b/NzbDrone.Web/Content/themes/base/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 000000000..7930a5580 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/images/ui-icons_cd0a0a_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/jquery-ui.css b/NzbDrone.Web/Content/themes/base/jquery-ui.css new file mode 100644 index 000000000..759a187fa --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery-ui.css @@ -0,0 +1,566 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.ui-helper-clearfix { display: inline-block; } +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { height:1%; } +.ui-helper-clearfix { display:block; } +/* end clearfix */ +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } +/* + * jQuery UI Accordion 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Accordion#theming + */ +/* IE/Win - Fix animation bug - #4615 */ +.ui-accordion { width: 100%; } +.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } +.ui-accordion .ui-accordion-li-fix { display: inline; } +.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } +.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; } +.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } +.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } +.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; } +.ui-accordion .ui-accordion-content-active { display: block; } +/* + * jQuery UI Autocomplete 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Autocomplete#theming + */ +.ui-autocomplete { position: absolute; cursor: default; } + +/* workarounds */ +* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ + +/* + * jQuery UI Menu 1.8.16 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Menu#theming + */ +.ui-menu { + list-style:none; + padding: 2px; + margin: 0; + display:block; + float: left; +} +.ui-menu .ui-menu { + margin-top: -3px; +} +.ui-menu .ui-menu-item { + margin:0; + padding: 0; + zoom: 1; + float: left; + clear: left; + width: 100%; +} +.ui-menu .ui-menu-item a { + text-decoration:none; + display:block; + padding:.2em .4em; + line-height:1.5; + zoom:1; +} +.ui-menu .ui-menu-item a.ui-state-hover, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} +/* + * jQuery UI Button 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Button#theming + */ +.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ +button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ +.ui-button-icons-only { width: 3.4em; } +button.ui-button-icons-only { width: 3.7em; } + +/*button text element */ +.ui-button .ui-button-text { display: block; line-height: 1.4; } +.ui-button-text-only .ui-button-text { padding: .4em 1em; } +.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; } +.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; } +.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; } +.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; } +/* no icon support for input elements, provide padding by default */ +input.ui-button { padding: .4em 1em; } + +/*button icon element(s) */ +.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; } +.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; } +.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; } +.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; } +.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; } + +/*button sets*/ +.ui-buttonset { margin-right: 7px; } +.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; } + +/* workarounds */ +button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */ +/* + * jQuery UI Datepicker 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker#theming + */ +.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +}/* + * jQuery UI Dialog 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Dialog#theming + */ +.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } +.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } +.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } +.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } +.ui-draggable .ui-dialog-titlebar { cursor: move; } +/* + * jQuery UI Progressbar 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Progressbar#theming + */ +.ui-progressbar { height:2em; text-align: left; } +.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* + * jQuery UI Resizable 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Resizable#theming + */ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; } +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* + * jQuery UI Selectable 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectable#theming + */ +.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; } +/* + * jQuery UI Slider 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Slider#theming + */ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; }/* + * jQuery UI Tabs 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs#theming + */ +.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } +.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } +.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } +.ui-tabs .ui-tabs-hide { display: none !important; } +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + * + * To view and modify this theme, visit http://jqueryui.com/themeroller/ + */ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; } +.ui-widget .ui-widget { font-size: 1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; } +.ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; color: #222222/*{fcContent}*/; } +.ui-widget-content a { color: #222222/*{fcContent}*/; } +.ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; color: #222222/*{fcHeader}*/; font-weight: bold; } +.ui-widget-header a { color: #222222/*{fcHeader}*/; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999/*{borderColorHover}*/; background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcHover}*/; } +.ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; } +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; text-decoration: none; } +.ui-widget :active { outline: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/; color: #363636/*{fcHighlight}*/; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636/*{fcHighlight}*/; } +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a/*{borderColorError}*/; background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/; color: #cd0a0a/*{fcError}*/; } +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a/*{fcError}*/; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a/*{fcError}*/; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; } +.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; } +.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/; } +.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/; } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/; } +.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/; } +.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/; } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/; } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; -khtml-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; } +.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; -khtml-border-top-right-radius: 4px/*{cornerRadius}*/; border-top-right-radius: 4px/*{cornerRadius}*/; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; -khtml-border-bottom-left-radius: 4px/*{cornerRadius}*/; border-bottom-left-radius: 4px/*{cornerRadius}*/; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; -khtml-border-bottom-right-radius: 4px/*{cornerRadius}*/; border-bottom-right-radius: 4px/*{cornerRadius}*/; } + +/* Overlays */ +.ui-widget-overlay { background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityOverlay}*/; } +.ui-widget-shadow { margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; padding: 8px/*{thicknessShadow}*/; background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityShadow}*/; -moz-border-radius: 8px/*{cornerRadiusShadow}*/; -khtml-border-radius: 8px/*{cornerRadiusShadow}*/; -webkit-border-radius: 8px/*{cornerRadiusShadow}*/; border-radius: 8px/*{cornerRadiusShadow}*/; } \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.accordion.css b/NzbDrone.Web/Content/themes/base/jquery.ui.accordion.css new file mode 100644 index 000000000..327beb50e --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.accordion.css @@ -0,0 +1,19 @@ +/* + * jQuery UI Accordion 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Accordion#theming + */ +/* IE/Win - Fix animation bug - #4615 */ +.ui-accordion { width: 100%; } +.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } +.ui-accordion .ui-accordion-li-fix { display: inline; } +.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } +.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; } +.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; } +.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } +.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; } +.ui-accordion .ui-accordion-content-active { display: block; } diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.all.css b/NzbDrone.Web/Content/themes/base/jquery.ui.all.css new file mode 100644 index 000000000..bf68bc41e --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.all.css @@ -0,0 +1,11 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming + */ +@import "jquery.ui.base.css"; +@import "jquery.ui.theme.css"; diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.autocomplete.css b/NzbDrone.Web/Content/themes/base/jquery.ui.autocomplete.css new file mode 100644 index 000000000..6de686736 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.autocomplete.css @@ -0,0 +1,53 @@ +/* + * jQuery UI Autocomplete 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Autocomplete#theming + */ +.ui-autocomplete { position: absolute; cursor: default; } + +/* workarounds */ +* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */ + +/* + * jQuery UI Menu 1.8.16 + * + * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Menu#theming + */ +.ui-menu { + list-style:none; + padding: 2px; + margin: 0; + display:block; + float: left; +} +.ui-menu .ui-menu { + margin-top: -3px; +} +.ui-menu .ui-menu-item { + margin:0; + padding: 0; + zoom: 1; + float: left; + clear: left; + width: 100%; +} +.ui-menu .ui-menu-item a { + text-decoration:none; + display:block; + padding:.2em .4em; + line-height:1.5; + zoom:1; +} +.ui-menu .ui-menu-item a.ui-state-hover, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.base.css b/NzbDrone.Web/Content/themes/base/jquery.ui.base.css new file mode 100644 index 000000000..209c24f30 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.base.css @@ -0,0 +1,21 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming + */ +@import url("jquery.ui.core.css"); + +@import url("jquery.ui.accordion.css"); +@import url("jquery.ui.autocomplete.css"); +@import url("jquery.ui.button.css"); +@import url("jquery.ui.datepicker.css"); +@import url("jquery.ui.dialog.css"); +@import url("jquery.ui.progressbar.css"); +@import url("jquery.ui.resizable.css"); +@import url("jquery.ui.selectable.css"); +@import url("jquery.ui.slider.css"); +@import url("jquery.ui.tabs.css"); diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.button.css b/NzbDrone.Web/Content/themes/base/jquery.ui.button.css new file mode 100644 index 000000000..31c79f9c4 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.button.css @@ -0,0 +1,38 @@ +/* + * jQuery UI Button 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Button#theming + */ +.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ +button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ +.ui-button-icons-only { width: 3.4em; } +button.ui-button-icons-only { width: 3.7em; } + +/*button text element */ +.ui-button .ui-button-text { display: block; line-height: 1.4; } +.ui-button-text-only .ui-button-text { padding: .4em 1em; } +.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; } +.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; } +.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; } +.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; } +/* no icon support for input elements, provide padding by default */ +input.ui-button { padding: .4em 1em; } + +/*button icon element(s) */ +.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; } +.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; } +.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; } +.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; } +.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; } + +/*button sets*/ +.ui-buttonset { margin-right: 7px; } +.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; } + +/* workarounds */ +button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */ diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.core.css b/NzbDrone.Web/Content/themes/base/jquery.ui.core.css new file mode 100644 index 000000000..375d4ad92 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.core.css @@ -0,0 +1,41 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.ui-helper-clearfix { display: inline-block; } +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { height:1%; } +.ui-helper-clearfix { display:block; } +/* end clearfix */ +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.datepicker.css b/NzbDrone.Web/Content/themes/base/jquery.ui.datepicker.css new file mode 100644 index 000000000..28efc9469 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.datepicker.css @@ -0,0 +1,68 @@ +/* + * jQuery UI Datepicker 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker#theming + */ +.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.dialog.css b/NzbDrone.Web/Content/themes/base/jquery.ui.dialog.css new file mode 100644 index 000000000..1b95d7f4d --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.dialog.css @@ -0,0 +1,21 @@ +/* + * jQuery UI Dialog 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Dialog#theming + */ +.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } +.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } +.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; } +.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; } +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } +.ui-draggable .ui-dialog-titlebar { cursor: move; } diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.progressbar.css b/NzbDrone.Web/Content/themes/base/jquery.ui.progressbar.css new file mode 100644 index 000000000..e885ced6c --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.progressbar.css @@ -0,0 +1,11 @@ +/* + * jQuery UI Progressbar 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Progressbar#theming + */ +.ui-progressbar { height:2em; text-align: left; } +.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; } \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.resizable.css b/NzbDrone.Web/Content/themes/base/jquery.ui.resizable.css new file mode 100644 index 000000000..dc706797f --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.resizable.css @@ -0,0 +1,20 @@ +/* + * jQuery UI Resizable 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Resizable#theming + */ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; } +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.selectable.css b/NzbDrone.Web/Content/themes/base/jquery.ui.selectable.css new file mode 100644 index 000000000..2d505fbfe --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.selectable.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Selectable 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectable#theming + */ +.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; } diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.slider.css b/NzbDrone.Web/Content/themes/base/jquery.ui.slider.css new file mode 100644 index 000000000..982f42c58 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.slider.css @@ -0,0 +1,24 @@ +/* + * jQuery UI Slider 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Slider#theming + */ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; } \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.tabs.css b/NzbDrone.Web/Content/themes/base/jquery.ui.tabs.css new file mode 100644 index 000000000..84d27b82c --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.tabs.css @@ -0,0 +1,18 @@ +/* + * jQuery UI Tabs 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs#theming + */ +.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ +.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; } +.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; } +.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; } +.ui-tabs .ui-tabs-hide { display: none !important; } diff --git a/NzbDrone.Web/Content/themes/base/jquery.ui.theme.css b/NzbDrone.Web/Content/themes/base/jquery.ui.theme.css new file mode 100644 index 000000000..1f6c8f2df --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/jquery.ui.theme.css @@ -0,0 +1,247 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + * + * To view and modify this theme, visit http://jqueryui.com/themeroller/ + */ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1.1em/*{fsDefault}*/; } +.ui-widget .ui-widget { font-size: 1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; font-size: 1em; } +.ui-widget-content { border: 1px solid #aaaaaa/*{borderColorContent}*/; background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; color: #222222/*{fcContent}*/; } +.ui-widget-content a { color: #222222/*{fcContent}*/; } +.ui-widget-header { border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; color: #222222/*{fcHeader}*/; font-weight: bold; } +.ui-widget-header a { color: #222222/*{fcHeader}*/; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555/*{fcDefault}*/; text-decoration: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999/*{borderColorHover}*/; background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcHover}*/; } +.ui-state-hover a, .ui-state-hover a:hover { color: #212121/*{fcHover}*/; text-decoration: none; } +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa/*{borderColorActive}*/; background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #212121/*{fcActive}*/; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121/*{fcActive}*/; text-decoration: none; } +.ui-widget :active { outline: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1/*{borderColorHighlight}*/; background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/; color: #363636/*{fcHighlight}*/; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636/*{fcHighlight}*/; } +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a/*{borderColorError}*/; background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/; color: #cd0a0a/*{fcError}*/; } +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a/*{fcError}*/; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a/*{fcError}*/; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; } +.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; } +.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/; } +.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/; } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/; } +.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/; } +.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/; } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/; } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px/*{cornerRadius}*/; -webkit-border-top-left-radius: 4px/*{cornerRadius}*/; -khtml-border-top-left-radius: 4px/*{cornerRadius}*/; border-top-left-radius: 4px/*{cornerRadius}*/; } +.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px/*{cornerRadius}*/; -webkit-border-top-right-radius: 4px/*{cornerRadius}*/; -khtml-border-top-right-radius: 4px/*{cornerRadius}*/; border-top-right-radius: 4px/*{cornerRadius}*/; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px/*{cornerRadius}*/; -webkit-border-bottom-left-radius: 4px/*{cornerRadius}*/; -khtml-border-bottom-left-radius: 4px/*{cornerRadius}*/; border-bottom-left-radius: 4px/*{cornerRadius}*/; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px/*{cornerRadius}*/; -webkit-border-bottom-right-radius: 4px/*{cornerRadius}*/; -khtml-border-bottom-right-radius: 4px/*{cornerRadius}*/; border-bottom-right-radius: 4px/*{cornerRadius}*/; } + +/* Overlays */ +.ui-widget-overlay { background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityOverlay}*/; } +.ui-widget-shadow { margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; padding: 8px/*{thicknessShadow}*/; background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/; opacity: .3;filter:Alpha(Opacity=30)/*{opacityShadow}*/; -moz-border-radius: 8px/*{cornerRadiusShadow}*/; -khtml-border-radius: 8px/*{cornerRadiusShadow}*/; -webkit-border-radius: 8px/*{cornerRadiusShadow}*/; border-radius: 8px/*{cornerRadiusShadow}*/; } \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 000000000..5b5dab2ab Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 000000000..ac8b229af Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_flat_75_ffffff_40x100.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 000000000..ad3d6346e Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_55_fbf9ee_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 000000000..42ccba269 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_65_ffffff_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 000000000..5a46b47cb Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_75_dadada_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 000000000..86c2baa65 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_75_e6e6e6_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 000000000..4443fdc1a Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 000000000..7c9fa6c6e Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-bg_highlight-soft_75_cccccc_1x100.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_222222_256x240.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_222222_256x240.png new file mode 100644 index 000000000..ee039dc09 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_222222_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_2e83ff_256x240.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_2e83ff_256x240.png new file mode 100644 index 000000000..45e8928e5 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_2e83ff_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_454545_256x240.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_454545_256x240.png new file mode 100644 index 000000000..7ec70d11b Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_454545_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_888888_256x240.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_888888_256x240.png new file mode 100644 index 000000000..5ba708c39 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_888888_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_cd0a0a_256x240.png b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 000000000..7930a5580 Binary files /dev/null and b/NzbDrone.Web/Content/themes/base/minified/images/ui-icons_cd0a0a_256x240.png differ diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery-ui.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery-ui.min.css new file mode 100644 index 000000000..82af48be7 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery-ui.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ +.ui-helper-hidden{display:none;}.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none;}.ui-helper-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.ui-helper-clearfix{display:inline-block;}/* required comment for clearfix to work in Opera \*/ * html .ui-helper-clearfix{height:1%;}.ui-helper-clearfix{display:block;}/* end clearfix */ .ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0);}.ui-state-disabled{cursor:default!important;}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;}.ui-accordion{width:100%;}.ui-accordion .ui-accordion-header{cursor:pointer;position:relative;margin-top:1px;zoom:1;}.ui-accordion .ui-accordion-li-fix{display:inline;}.ui-accordion .ui-accordion-header-active{border-bottom:0!important;}.ui-accordion .ui-accordion-header a{display:block;font-size:1em;padding:.5em .5em .5em .7em;}.ui-accordion-icons .ui-accordion-header a{padding-left:2.2em;}.ui-accordion .ui-accordion-header .ui-icon{position:absolute;left:.5em;top:50%;margin-top:-8px;}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;overflow:auto;display:none;zoom:1;}.ui-accordion .ui-accordion-content-active{display:block;}.ui-autocomplete{position:absolute;cursor:default;}* html .ui-autocomplete{width:1px;}.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left;}.ui-menu .ui-menu{margin-top:-3px;}.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%;}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1;}.ui-menu .ui-menu-item a.ui-state-hover,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px;}.ui-button{display:inline-block;position:relative;padding:0;margin-right:.1em;text-decoration:none!important;cursor:pointer;text-align:center;zoom:1;overflow:visible;}.ui-button-icon-only{width:2.2em;}button.ui-button-icon-only{width:2.4em;}.ui-button-icons-only{width:3.4em;}button.ui-button-icons-only{width:3.7em;}.ui-button .ui-button-text{display:block;line-height:1.4;}.ui-button-text-only .ui-button-text{padding:.4em 1em;}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px;}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em;}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em;}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em;}input.ui-button{padding:.4em 1em;}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px;}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px;}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em;}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em;}.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em;}.ui-buttonset{margin-right:7px;}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em;}button.ui-button::-moz-focus-inner{border:0;padding:0;}.ui-datepicker{width:17em;padding:.2em .2em 0;display:none;}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0;}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em;}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px;}.ui-datepicker .ui-datepicker-prev{left:2px;}.ui-datepicker .ui-datepicker-next{right:2px;}.ui-datepicker .ui-datepicker-prev-hover{left:1px;}.ui-datepicker .ui-datepicker-next-hover{right:1px;}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px;}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center;}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0;}.ui-datepicker select.ui-datepicker-month-year{width:100%;}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%;}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em;}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0;}.ui-datepicker td{border:0;padding:1px;}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none;}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0;}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible;}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left;}.ui-datepicker.ui-datepicker-multi{width:auto;}.ui-datepicker-multi .ui-datepicker-group{float:left;}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em;}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%;}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%;}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%;}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header{border-left-width:0;}.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0;}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left;}.ui-datepicker-row-break{clear:both;width:100%;font-size:0;}.ui-datepicker-rtl{direction:rtl;}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto;}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto;}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto;}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto;}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right;}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left;}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current{float:right;}.ui-datepicker-rtl .ui-datepicker-group{float:right;}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header{border-right-width:0;border-left-width:1px;}.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px;}.ui-datepicker-cover{display:none;display:block;position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px;}.ui-dialog{position:absolute;padding:.2em;width:300px;overflow:hidden;}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative;}.ui-dialog .ui-dialog-title{float:left;margin:.1em 16px .1em 0;}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px;}.ui-dialog .ui-dialog-titlebar-close span{display:block;margin:1px;}.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus{padding:0;}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto;zoom:1;}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em;}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right;}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer;}.ui-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px;}.ui-draggable .ui-dialog-titlebar{cursor:move;}.ui-progressbar{height:2em;text-align:left;}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%;}.ui-resizable{position:relative;}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block;}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none;}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0;}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0;}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%;}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%;}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px;}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px;}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px;}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px;}.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black;}.ui-slider{position:relative;text-align:left;}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0;}.ui-slider-horizontal{height:.8em;}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em;}.ui-slider-horizontal .ui-slider-range{top:0;height:100%;}.ui-slider-horizontal .ui-slider-range-min{left:0;}.ui-slider-horizontal .ui-slider-range-max{right:0;}.ui-slider-vertical{width:.8em;height:100px;}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em;}.ui-slider-vertical .ui-slider-range{left:0;width:100%;}.ui-slider-vertical .ui-slider-range-min{bottom:0;}.ui-slider-vertical .ui-slider-range-max{top:0;}.ui-tabs{position:relative;padding:.2em;zoom:1;}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0;}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:1px;margin:0 .2em 1px 0;border-bottom:0!important;padding:0;white-space:nowrap;}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none;}.ui-tabs .ui-tabs-nav li.ui-tabs-selected{margin-bottom:0;padding-bottom:1px;}.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a{cursor:text;}.ui-tabs .ui-tabs-nav li a,.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a{cursor:pointer;}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none;}.ui-tabs .ui-tabs-hide{display:none!important;}.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em;}.ui-widget .ui-widget{font-size:1em;}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em;}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222;}.ui-widget-content a{color:#222;}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:bold;}.ui-widget-header a{color:#222;}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#555;}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none;}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121;}.ui-state-hover a,.ui-state-hover a:hover{color:#212121;text-decoration:none;}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121;}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none;}.ui-widget :active{outline:none;}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636;}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636;}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a;}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a;}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a;}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold;}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal;}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none;}.ui-icon{width:16px;height:16px;background-image:url(images/ui-icons_222222_256x240.png);}.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png);}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png);}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png);}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png);}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png);}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png);}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png);}.ui-icon-carat-1-n{background-position:0 0;}.ui-icon-carat-1-ne{background-position:-16px 0;}.ui-icon-carat-1-e{background-position:-32px 0;}.ui-icon-carat-1-se{background-position:-48px 0;}.ui-icon-carat-1-s{background-position:-64px 0;}.ui-icon-carat-1-sw{background-position:-80px 0;}.ui-icon-carat-1-w{background-position:-96px 0;}.ui-icon-carat-1-nw{background-position:-112px 0;}.ui-icon-carat-2-n-s{background-position:-128px 0;}.ui-icon-carat-2-e-w{background-position:-144px 0;}.ui-icon-triangle-1-n{background-position:0 -16px;}.ui-icon-triangle-1-ne{background-position:-16px -16px;}.ui-icon-triangle-1-e{background-position:-32px -16px;}.ui-icon-triangle-1-se{background-position:-48px -16px;}.ui-icon-triangle-1-s{background-position:-64px -16px;}.ui-icon-triangle-1-sw{background-position:-80px -16px;}.ui-icon-triangle-1-w{background-position:-96px -16px;}.ui-icon-triangle-1-nw{background-position:-112px -16px;}.ui-icon-triangle-2-n-s{background-position:-128px -16px;}.ui-icon-triangle-2-e-w{background-position:-144px -16px;}.ui-icon-arrow-1-n{background-position:0 -32px;}.ui-icon-arrow-1-ne{background-position:-16px -32px;}.ui-icon-arrow-1-e{background-position:-32px -32px;}.ui-icon-arrow-1-se{background-position:-48px -32px;}.ui-icon-arrow-1-s{background-position:-64px -32px;}.ui-icon-arrow-1-sw{background-position:-80px -32px;}.ui-icon-arrow-1-w{background-position:-96px -32px;}.ui-icon-arrow-1-nw{background-position:-112px -32px;}.ui-icon-arrow-2-n-s{background-position:-128px -32px;}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px;}.ui-icon-arrow-2-e-w{background-position:-160px -32px;}.ui-icon-arrow-2-se-nw{background-position:-176px -32px;}.ui-icon-arrowstop-1-n{background-position:-192px -32px;}.ui-icon-arrowstop-1-e{background-position:-208px -32px;}.ui-icon-arrowstop-1-s{background-position:-224px -32px;}.ui-icon-arrowstop-1-w{background-position:-240px -32px;}.ui-icon-arrowthick-1-n{background-position:0 -48px;}.ui-icon-arrowthick-1-ne{background-position:-16px -48px;}.ui-icon-arrowthick-1-e{background-position:-32px -48px;}.ui-icon-arrowthick-1-se{background-position:-48px -48px;}.ui-icon-arrowthick-1-s{background-position:-64px -48px;}.ui-icon-arrowthick-1-sw{background-position:-80px -48px;}.ui-icon-arrowthick-1-w{background-position:-96px -48px;}.ui-icon-arrowthick-1-nw{background-position:-112px -48px;}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px;}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px;}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px;}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px;}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px;}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px;}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px;}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px;}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px;}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px;}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px;}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px;}.ui-icon-arrowreturn-1-w{background-position:-64px -64px;}.ui-icon-arrowreturn-1-n{background-position:-80px -64px;}.ui-icon-arrowreturn-1-e{background-position:-96px -64px;}.ui-icon-arrowreturn-1-s{background-position:-112px -64px;}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px;}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px;}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px;}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px;}.ui-icon-arrow-4{background-position:0 -80px;}.ui-icon-arrow-4-diag{background-position:-16px -80px;}.ui-icon-extlink{background-position:-32px -80px;}.ui-icon-newwin{background-position:-48px -80px;}.ui-icon-refresh{background-position:-64px -80px;}.ui-icon-shuffle{background-position:-80px -80px;}.ui-icon-transfer-e-w{background-position:-96px -80px;}.ui-icon-transferthick-e-w{background-position:-112px -80px;}.ui-icon-folder-collapsed{background-position:0 -96px;}.ui-icon-folder-open{background-position:-16px -96px;}.ui-icon-document{background-position:-32px -96px;}.ui-icon-document-b{background-position:-48px -96px;}.ui-icon-note{background-position:-64px -96px;}.ui-icon-mail-closed{background-position:-80px -96px;}.ui-icon-mail-open{background-position:-96px -96px;}.ui-icon-suitcase{background-position:-112px -96px;}.ui-icon-comment{background-position:-128px -96px;}.ui-icon-person{background-position:-144px -96px;}.ui-icon-print{background-position:-160px -96px;}.ui-icon-trash{background-position:-176px -96px;}.ui-icon-locked{background-position:-192px -96px;}.ui-icon-unlocked{background-position:-208px -96px;}.ui-icon-bookmark{background-position:-224px -96px;}.ui-icon-tag{background-position:-240px -96px;}.ui-icon-home{background-position:0 -112px;}.ui-icon-flag{background-position:-16px -112px;}.ui-icon-calendar{background-position:-32px -112px;}.ui-icon-cart{background-position:-48px -112px;}.ui-icon-pencil{background-position:-64px -112px;}.ui-icon-clock{background-position:-80px -112px;}.ui-icon-disk{background-position:-96px -112px;}.ui-icon-calculator{background-position:-112px -112px;}.ui-icon-zoomin{background-position:-128px -112px;}.ui-icon-zoomout{background-position:-144px -112px;}.ui-icon-search{background-position:-160px -112px;}.ui-icon-wrench{background-position:-176px -112px;}.ui-icon-gear{background-position:-192px -112px;}.ui-icon-heart{background-position:-208px -112px;}.ui-icon-star{background-position:-224px -112px;}.ui-icon-link{background-position:-240px -112px;}.ui-icon-cancel{background-position:0 -128px;}.ui-icon-plus{background-position:-16px -128px;}.ui-icon-plusthick{background-position:-32px -128px;}.ui-icon-minus{background-position:-48px -128px;}.ui-icon-minusthick{background-position:-64px -128px;}.ui-icon-close{background-position:-80px -128px;}.ui-icon-closethick{background-position:-96px -128px;}.ui-icon-key{background-position:-112px -128px;}.ui-icon-lightbulb{background-position:-128px -128px;}.ui-icon-scissors{background-position:-144px -128px;}.ui-icon-clipboard{background-position:-160px -128px;}.ui-icon-copy{background-position:-176px -128px;}.ui-icon-contact{background-position:-192px -128px;}.ui-icon-image{background-position:-208px -128px;}.ui-icon-video{background-position:-224px -128px;}.ui-icon-script{background-position:-240px -128px;}.ui-icon-alert{background-position:0 -144px;}.ui-icon-info{background-position:-16px -144px;}.ui-icon-notice{background-position:-32px -144px;}.ui-icon-help{background-position:-48px -144px;}.ui-icon-check{background-position:-64px -144px;}.ui-icon-bullet{background-position:-80px -144px;}.ui-icon-radio-off{background-position:-96px -144px;}.ui-icon-radio-on{background-position:-112px -144px;}.ui-icon-pin-w{background-position:-128px -144px;}.ui-icon-pin-s{background-position:-144px -144px;}.ui-icon-play{background-position:0 -160px;}.ui-icon-pause{background-position:-16px -160px;}.ui-icon-seek-next{background-position:-32px -160px;}.ui-icon-seek-prev{background-position:-48px -160px;}.ui-icon-seek-end{background-position:-64px -160px;}.ui-icon-seek-start{background-position:-80px -160px;}.ui-icon-seek-first{background-position:-80px -160px;}.ui-icon-stop{background-position:-96px -160px;}.ui-icon-eject{background-position:-112px -160px;}.ui-icon-volume-off{background-position:-128px -160px;}.ui-icon-volume-on{background-position:-144px -160px;}.ui-icon-power{background-position:0 -176px;}.ui-icon-signal-diag{background-position:-16px -176px;}.ui-icon-signal{background-position:-32px -176px;}.ui-icon-battery-0{background-position:-48px -176px;}.ui-icon-battery-1{background-position:-64px -176px;}.ui-icon-battery-2{background-position:-80px -176px;}.ui-icon-battery-3{background-position:-96px -176px;}.ui-icon-circle-plus{background-position:0 -192px;}.ui-icon-circle-minus{background-position:-16px -192px;}.ui-icon-circle-close{background-position:-32px -192px;}.ui-icon-circle-triangle-e{background-position:-48px -192px;}.ui-icon-circle-triangle-s{background-position:-64px -192px;}.ui-icon-circle-triangle-w{background-position:-80px -192px;}.ui-icon-circle-triangle-n{background-position:-96px -192px;}.ui-icon-circle-arrow-e{background-position:-112px -192px;}.ui-icon-circle-arrow-s{background-position:-128px -192px;}.ui-icon-circle-arrow-w{background-position:-144px -192px;}.ui-icon-circle-arrow-n{background-position:-160px -192px;}.ui-icon-circle-zoomin{background-position:-176px -192px;}.ui-icon-circle-zoomout{background-position:-192px -192px;}.ui-icon-circle-check{background-position:-208px -192px;}.ui-icon-circlesmall-plus{background-position:0 -208px;}.ui-icon-circlesmall-minus{background-position:-16px -208px;}.ui-icon-circlesmall-close{background-position:-32px -208px;}.ui-icon-squaresmall-plus{background-position:-48px -208px;}.ui-icon-squaresmall-minus{background-position:-64px -208px;}.ui-icon-squaresmall-close{background-position:-80px -208px;}.ui-icon-grip-dotted-vertical{background-position:0 -224px;}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px;}.ui-icon-grip-solid-vertical{background-position:-32px -224px;}.ui-icon-grip-solid-horizontal{background-position:-48px -224px;}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px;}.ui-icon-grip-diagonal-se{background-position:-80px -224px;}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px;}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px;}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px;}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.accordion.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.accordion.min.css new file mode 100644 index 000000000..a90484092 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.accordion.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Accordion 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Accordion#theming + */ +.ui-accordion{width:100%;}.ui-accordion .ui-accordion-header{cursor:pointer;position:relative;margin-top:1px;zoom:1;}.ui-accordion .ui-accordion-li-fix{display:inline;}.ui-accordion .ui-accordion-header-active{border-bottom:0!important;}.ui-accordion .ui-accordion-header a{display:block;font-size:1em;padding:.5em .5em .5em .7em;}.ui-accordion-icons .ui-accordion-header a{padding-left:2.2em;}.ui-accordion .ui-accordion-header .ui-icon{position:absolute;left:.5em;top:50%;margin-top:-8px;}.ui-accordion .ui-accordion-content{padding:1em 2.2em;border-top:0;margin-top:-2px;position:relative;top:1px;margin-bottom:2px;overflow:auto;display:none;zoom:1;}.ui-accordion .ui-accordion-content-active{display:block;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.all.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.all.min.css new file mode 100644 index 000000000..5212b3d35 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.all.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming + */ +@import "jquery.ui.base.min.css";@import "jquery.ui.theme.min.css"; \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.autocomplete.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.autocomplete.min.css new file mode 100644 index 000000000..bc105164d --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.autocomplete.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Autocomplete 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Autocomplete#theming + */ +.ui-autocomplete{position:absolute;cursor:default;}* html .ui-autocomplete{width:1px;}.ui-menu{list-style:none;padding:2px;margin:0;display:block;float:left;}.ui-menu .ui-menu{margin-top:-3px;}.ui-menu .ui-menu-item{margin:0;padding:0;zoom:1;float:left;clear:left;width:100%;}.ui-menu .ui-menu-item a{text-decoration:none;display:block;padding:.2em .4em;line-height:1.5;zoom:1;}.ui-menu .ui-menu-item a.ui-state-hover,.ui-menu .ui-menu-item a.ui-state-active{font-weight:normal;margin:-1px;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.base.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.base.min.css new file mode 100644 index 000000000..0f9a8a5fa --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.base.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming + */ +@import url("jquery.ui.core.min.css");@import url("jquery.ui.accordion.min.css");@import url("jquery.ui.autocomplete.min.css");@import url("jquery.ui.button.min.css");@import url("jquery.ui.datepicker.min.css");@import url("jquery.ui.dialog.min.css");@import url("jquery.ui.progressbar.min.css");@import url("jquery.ui.resizable.min.css");@import url("jquery.ui.selectable.min.css");@import url("jquery.ui.slider.min.css");@import url("jquery.ui.tabs.min.css"); \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.button.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.button.min.css new file mode 100644 index 000000000..75d866d35 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.button.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Button 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Button#theming + */ +.ui-button{display:inline-block;position:relative;padding:0;margin-right:.1em;text-decoration:none!important;cursor:pointer;text-align:center;zoom:1;overflow:visible;}.ui-button-icon-only{width:2.2em;}button.ui-button-icon-only{width:2.4em;}.ui-button-icons-only{width:3.4em;}button.ui-button-icons-only{width:3.7em;}.ui-button .ui-button-text{display:block;line-height:1.4;}.ui-button-text-only .ui-button-text{padding:.4em 1em;}.ui-button-icon-only .ui-button-text,.ui-button-icons-only .ui-button-text{padding:.4em;text-indent:-9999999px;}.ui-button-text-icon-primary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 1em .4em 2.1em;}.ui-button-text-icon-secondary .ui-button-text,.ui-button-text-icons .ui-button-text{padding:.4em 2.1em .4em 1em;}.ui-button-text-icons .ui-button-text{padding-left:2.1em;padding-right:2.1em;}input.ui-button{padding:.4em 1em;}.ui-button-icon-only .ui-icon,.ui-button-text-icon-primary .ui-icon,.ui-button-text-icon-secondary .ui-icon,.ui-button-text-icons .ui-icon,.ui-button-icons-only .ui-icon{position:absolute;top:50%;margin-top:-8px;}.ui-button-icon-only .ui-icon{left:50%;margin-left:-8px;}.ui-button-text-icon-primary .ui-button-icon-primary,.ui-button-text-icons .ui-button-icon-primary,.ui-button-icons-only .ui-button-icon-primary{left:.5em;}.ui-button-text-icon-secondary .ui-button-icon-secondary,.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em;}.ui-button-text-icons .ui-button-icon-secondary,.ui-button-icons-only .ui-button-icon-secondary{right:.5em;}.ui-buttonset{margin-right:7px;}.ui-buttonset .ui-button{margin-left:0;margin-right:-.3em;}button.ui-button::-moz-focus-inner{border:0;padding:0;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.core.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.core.min.css new file mode 100644 index 000000000..e8bfab70a --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.core.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ +.ui-helper-hidden{display:none;}.ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none;}.ui-helper-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.ui-helper-clearfix{display:inline-block;}/* required comment for clearfix to work in Opera \*/ * html .ui-helper-clearfix{height:1%;}.ui-helper-clearfix{display:block;}/* end clearfix */ .ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0);}.ui-state-disabled{cursor:default!important;}.ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.datepicker.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.datepicker.min.css new file mode 100644 index 000000000..af8120e17 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.datepicker.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Datepicker 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker#theming + */ +.ui-datepicker{width:17em;padding:.2em .2em 0;display:none;}.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0;}.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em;}.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px;}.ui-datepicker .ui-datepicker-prev{left:2px;}.ui-datepicker .ui-datepicker-next{right:2px;}.ui-datepicker .ui-datepicker-prev-hover{left:1px;}.ui-datepicker .ui-datepicker-next-hover{right:1px;}.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px;}.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center;}.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0;}.ui-datepicker select.ui-datepicker-month-year{width:100%;}.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:49%;}.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em;}.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:bold;border:0;}.ui-datepicker td{border:0;padding:1px;}.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none;}.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0;}.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em .6em;width:auto;overflow:visible;}.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left;}.ui-datepicker.ui-datepicker-multi{width:auto;}.ui-datepicker-multi .ui-datepicker-group{float:left;}.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em;}.ui-datepicker-multi-2 .ui-datepicker-group{width:50%;}.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%;}.ui-datepicker-multi-4 .ui-datepicker-group{width:25%;}.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header{border-left-width:0;}.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0;}.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left;}.ui-datepicker-row-break{clear:both;width:100%;font-size:0;}.ui-datepicker-rtl{direction:rtl;}.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto;}.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto;}.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto;}.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto;}.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right;}.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left;}.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current{float:right;}.ui-datepicker-rtl .ui-datepicker-group{float:right;}.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header{border-right-width:0;border-left-width:1px;}.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px;}.ui-datepicker-cover{display:none;display:block;position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.dialog.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.dialog.min.css new file mode 100644 index 000000000..cd1816be7 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.dialog.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Dialog 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Dialog#theming + */ +.ui-dialog{position:absolute;padding:.2em;width:300px;overflow:hidden;}.ui-dialog .ui-dialog-titlebar{padding:.4em 1em;position:relative;}.ui-dialog .ui-dialog-title{float:left;margin:.1em 16px .1em 0;}.ui-dialog .ui-dialog-titlebar-close{position:absolute;right:.3em;top:50%;width:19px;margin:-10px 0 0 0;padding:1px;height:18px;}.ui-dialog .ui-dialog-titlebar-close span{display:block;margin:1px;}.ui-dialog .ui-dialog-titlebar-close:hover,.ui-dialog .ui-dialog-titlebar-close:focus{padding:0;}.ui-dialog .ui-dialog-content{position:relative;border:0;padding:.5em 1em;background:none;overflow:auto;zoom:1;}.ui-dialog .ui-dialog-buttonpane{text-align:left;border-width:1px 0 0 0;background-image:none;margin:.5em 0 0 0;padding:.3em 1em .5em .4em;}.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset{float:right;}.ui-dialog .ui-dialog-buttonpane button{margin:.5em .4em .5em 0;cursor:pointer;}.ui-dialog .ui-resizable-se{width:14px;height:14px;right:3px;bottom:3px;}.ui-draggable .ui-dialog-titlebar{cursor:move;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.progressbar.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.progressbar.min.css new file mode 100644 index 000000000..b7961777d --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.progressbar.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Progressbar 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Progressbar#theming + */ +.ui-progressbar{height:2em;text-align:left;}.ui-progressbar .ui-progressbar-value{margin:-1px;height:100%;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.resizable.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.resizable.min.css new file mode 100644 index 000000000..db3cde0bd --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.resizable.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Resizable 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Resizable#theming + */ +.ui-resizable{position:relative;}.ui-resizable-handle{position:absolute;font-size:.1px;z-index:99999;display:block;}.ui-resizable-disabled .ui-resizable-handle,.ui-resizable-autohide .ui-resizable-handle{display:none;}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0;}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0;}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%;}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%;}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px;}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px;}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px;}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.selectable.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.selectable.min.css new file mode 100644 index 000000000..6515a8f25 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.selectable.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Selectable 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Selectable#theming + */ +.ui-selectable-helper{position:absolute;z-index:100;border:1px dotted black;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.slider.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.slider.min.css new file mode 100644 index 000000000..13dac7369 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.slider.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Slider 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Slider#theming + */ +.ui-slider{position:relative;text-align:left;}.ui-slider .ui-slider-handle{position:absolute;z-index:2;width:1.2em;height:1.2em;cursor:default;}.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background-position:0 0;}.ui-slider-horizontal{height:.8em;}.ui-slider-horizontal .ui-slider-handle{top:-.3em;margin-left:-.6em;}.ui-slider-horizontal .ui-slider-range{top:0;height:100%;}.ui-slider-horizontal .ui-slider-range-min{left:0;}.ui-slider-horizontal .ui-slider-range-max{right:0;}.ui-slider-vertical{width:.8em;height:100px;}.ui-slider-vertical .ui-slider-handle{left:-.3em;margin-left:0;margin-bottom:-.6em;}.ui-slider-vertical .ui-slider-range{left:0;width:100%;}.ui-slider-vertical .ui-slider-range-min{bottom:0;}.ui-slider-vertical .ui-slider-range-max{top:0;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.tabs.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.tabs.min.css new file mode 100644 index 000000000..90e42ab85 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.tabs.min.css @@ -0,0 +1,10 @@ +/* + * jQuery UI Tabs 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Tabs#theming + */ +.ui-tabs{position:relative;padding:.2em;zoom:1;}.ui-tabs .ui-tabs-nav{margin:0;padding:.2em .2em 0;}.ui-tabs .ui-tabs-nav li{list-style:none;float:left;position:relative;top:1px;margin:0 .2em 1px 0;border-bottom:0!important;padding:0;white-space:nowrap;}.ui-tabs .ui-tabs-nav li a{float:left;padding:.5em 1em;text-decoration:none;}.ui-tabs .ui-tabs-nav li.ui-tabs-selected{margin-bottom:0;padding-bottom:1px;}.ui-tabs .ui-tabs-nav li.ui-tabs-selected a,.ui-tabs .ui-tabs-nav li.ui-state-disabled a,.ui-tabs .ui-tabs-nav li.ui-state-processing a{cursor:text;}.ui-tabs .ui-tabs-nav li a,.ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a{cursor:pointer;}.ui-tabs .ui-tabs-panel{display:block;border-width:0;padding:1em 1.4em;background:none;}.ui-tabs .ui-tabs-hide{display:none!important;} \ No newline at end of file diff --git a/NzbDrone.Web/Content/themes/base/minified/jquery.ui.theme.min.css b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.theme.min.css new file mode 100644 index 000000000..c8bbe2081 --- /dev/null +++ b/NzbDrone.Web/Content/themes/base/minified/jquery.ui.theme.min.css @@ -0,0 +1,12 @@ +/* + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + * + * To view and modify this theme, visit http://jqueryui.com/themeroller/ + */ +.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em;}.ui-widget .ui-widget{font-size:1em;}.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em;}.ui-widget-content{border:1px solid #aaa;background:#fff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222;}.ui-widget-content a{color:#222;}.ui-widget-header{border:1px solid #aaa;background:#ccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:bold;}.ui-widget-header a{color:#222;}.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#555;}.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none;}.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:1px solid #999;background:#dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121;}.ui-state-hover a,.ui-state-hover a:hover{color:#212121;text-decoration:none;}.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:normal;color:#212121;}.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none;}.ui-widget :active{outline:none;}.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636;}.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636;}.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a;}.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a;}.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a;}.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:bold;}.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal;}.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none;}.ui-icon{width:16px;height:16px;background-image:url(images/ui-icons_222222_256x240.png);}.ui-widget-content .ui-icon{background-image:url(images/ui-icons_222222_256x240.png);}.ui-widget-header .ui-icon{background-image:url(images/ui-icons_222222_256x240.png);}.ui-state-default .ui-icon{background-image:url(images/ui-icons_888888_256x240.png);}.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(images/ui-icons_454545_256x240.png);}.ui-state-active .ui-icon{background-image:url(images/ui-icons_454545_256x240.png);}.ui-state-highlight .ui-icon{background-image:url(images/ui-icons_2e83ff_256x240.png);}.ui-state-error .ui-icon,.ui-state-error-text .ui-icon{background-image:url(images/ui-icons_cd0a0a_256x240.png);}.ui-icon-carat-1-n{background-position:0 0;}.ui-icon-carat-1-ne{background-position:-16px 0;}.ui-icon-carat-1-e{background-position:-32px 0;}.ui-icon-carat-1-se{background-position:-48px 0;}.ui-icon-carat-1-s{background-position:-64px 0;}.ui-icon-carat-1-sw{background-position:-80px 0;}.ui-icon-carat-1-w{background-position:-96px 0;}.ui-icon-carat-1-nw{background-position:-112px 0;}.ui-icon-carat-2-n-s{background-position:-128px 0;}.ui-icon-carat-2-e-w{background-position:-144px 0;}.ui-icon-triangle-1-n{background-position:0 -16px;}.ui-icon-triangle-1-ne{background-position:-16px -16px;}.ui-icon-triangle-1-e{background-position:-32px -16px;}.ui-icon-triangle-1-se{background-position:-48px -16px;}.ui-icon-triangle-1-s{background-position:-64px -16px;}.ui-icon-triangle-1-sw{background-position:-80px -16px;}.ui-icon-triangle-1-w{background-position:-96px -16px;}.ui-icon-triangle-1-nw{background-position:-112px -16px;}.ui-icon-triangle-2-n-s{background-position:-128px -16px;}.ui-icon-triangle-2-e-w{background-position:-144px -16px;}.ui-icon-arrow-1-n{background-position:0 -32px;}.ui-icon-arrow-1-ne{background-position:-16px -32px;}.ui-icon-arrow-1-e{background-position:-32px -32px;}.ui-icon-arrow-1-se{background-position:-48px -32px;}.ui-icon-arrow-1-s{background-position:-64px -32px;}.ui-icon-arrow-1-sw{background-position:-80px -32px;}.ui-icon-arrow-1-w{background-position:-96px -32px;}.ui-icon-arrow-1-nw{background-position:-112px -32px;}.ui-icon-arrow-2-n-s{background-position:-128px -32px;}.ui-icon-arrow-2-ne-sw{background-position:-144px -32px;}.ui-icon-arrow-2-e-w{background-position:-160px -32px;}.ui-icon-arrow-2-se-nw{background-position:-176px -32px;}.ui-icon-arrowstop-1-n{background-position:-192px -32px;}.ui-icon-arrowstop-1-e{background-position:-208px -32px;}.ui-icon-arrowstop-1-s{background-position:-224px -32px;}.ui-icon-arrowstop-1-w{background-position:-240px -32px;}.ui-icon-arrowthick-1-n{background-position:0 -48px;}.ui-icon-arrowthick-1-ne{background-position:-16px -48px;}.ui-icon-arrowthick-1-e{background-position:-32px -48px;}.ui-icon-arrowthick-1-se{background-position:-48px -48px;}.ui-icon-arrowthick-1-s{background-position:-64px -48px;}.ui-icon-arrowthick-1-sw{background-position:-80px -48px;}.ui-icon-arrowthick-1-w{background-position:-96px -48px;}.ui-icon-arrowthick-1-nw{background-position:-112px -48px;}.ui-icon-arrowthick-2-n-s{background-position:-128px -48px;}.ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px;}.ui-icon-arrowthick-2-e-w{background-position:-160px -48px;}.ui-icon-arrowthick-2-se-nw{background-position:-176px -48px;}.ui-icon-arrowthickstop-1-n{background-position:-192px -48px;}.ui-icon-arrowthickstop-1-e{background-position:-208px -48px;}.ui-icon-arrowthickstop-1-s{background-position:-224px -48px;}.ui-icon-arrowthickstop-1-w{background-position:-240px -48px;}.ui-icon-arrowreturnthick-1-w{background-position:0 -64px;}.ui-icon-arrowreturnthick-1-n{background-position:-16px -64px;}.ui-icon-arrowreturnthick-1-e{background-position:-32px -64px;}.ui-icon-arrowreturnthick-1-s{background-position:-48px -64px;}.ui-icon-arrowreturn-1-w{background-position:-64px -64px;}.ui-icon-arrowreturn-1-n{background-position:-80px -64px;}.ui-icon-arrowreturn-1-e{background-position:-96px -64px;}.ui-icon-arrowreturn-1-s{background-position:-112px -64px;}.ui-icon-arrowrefresh-1-w{background-position:-128px -64px;}.ui-icon-arrowrefresh-1-n{background-position:-144px -64px;}.ui-icon-arrowrefresh-1-e{background-position:-160px -64px;}.ui-icon-arrowrefresh-1-s{background-position:-176px -64px;}.ui-icon-arrow-4{background-position:0 -80px;}.ui-icon-arrow-4-diag{background-position:-16px -80px;}.ui-icon-extlink{background-position:-32px -80px;}.ui-icon-newwin{background-position:-48px -80px;}.ui-icon-refresh{background-position:-64px -80px;}.ui-icon-shuffle{background-position:-80px -80px;}.ui-icon-transfer-e-w{background-position:-96px -80px;}.ui-icon-transferthick-e-w{background-position:-112px -80px;}.ui-icon-folder-collapsed{background-position:0 -96px;}.ui-icon-folder-open{background-position:-16px -96px;}.ui-icon-document{background-position:-32px -96px;}.ui-icon-document-b{background-position:-48px -96px;}.ui-icon-note{background-position:-64px -96px;}.ui-icon-mail-closed{background-position:-80px -96px;}.ui-icon-mail-open{background-position:-96px -96px;}.ui-icon-suitcase{background-position:-112px -96px;}.ui-icon-comment{background-position:-128px -96px;}.ui-icon-person{background-position:-144px -96px;}.ui-icon-print{background-position:-160px -96px;}.ui-icon-trash{background-position:-176px -96px;}.ui-icon-locked{background-position:-192px -96px;}.ui-icon-unlocked{background-position:-208px -96px;}.ui-icon-bookmark{background-position:-224px -96px;}.ui-icon-tag{background-position:-240px -96px;}.ui-icon-home{background-position:0 -112px;}.ui-icon-flag{background-position:-16px -112px;}.ui-icon-calendar{background-position:-32px -112px;}.ui-icon-cart{background-position:-48px -112px;}.ui-icon-pencil{background-position:-64px -112px;}.ui-icon-clock{background-position:-80px -112px;}.ui-icon-disk{background-position:-96px -112px;}.ui-icon-calculator{background-position:-112px -112px;}.ui-icon-zoomin{background-position:-128px -112px;}.ui-icon-zoomout{background-position:-144px -112px;}.ui-icon-search{background-position:-160px -112px;}.ui-icon-wrench{background-position:-176px -112px;}.ui-icon-gear{background-position:-192px -112px;}.ui-icon-heart{background-position:-208px -112px;}.ui-icon-star{background-position:-224px -112px;}.ui-icon-link{background-position:-240px -112px;}.ui-icon-cancel{background-position:0 -128px;}.ui-icon-plus{background-position:-16px -128px;}.ui-icon-plusthick{background-position:-32px -128px;}.ui-icon-minus{background-position:-48px -128px;}.ui-icon-minusthick{background-position:-64px -128px;}.ui-icon-close{background-position:-80px -128px;}.ui-icon-closethick{background-position:-96px -128px;}.ui-icon-key{background-position:-112px -128px;}.ui-icon-lightbulb{background-position:-128px -128px;}.ui-icon-scissors{background-position:-144px -128px;}.ui-icon-clipboard{background-position:-160px -128px;}.ui-icon-copy{background-position:-176px -128px;}.ui-icon-contact{background-position:-192px -128px;}.ui-icon-image{background-position:-208px -128px;}.ui-icon-video{background-position:-224px -128px;}.ui-icon-script{background-position:-240px -128px;}.ui-icon-alert{background-position:0 -144px;}.ui-icon-info{background-position:-16px -144px;}.ui-icon-notice{background-position:-32px -144px;}.ui-icon-help{background-position:-48px -144px;}.ui-icon-check{background-position:-64px -144px;}.ui-icon-bullet{background-position:-80px -144px;}.ui-icon-radio-off{background-position:-96px -144px;}.ui-icon-radio-on{background-position:-112px -144px;}.ui-icon-pin-w{background-position:-128px -144px;}.ui-icon-pin-s{background-position:-144px -144px;}.ui-icon-play{background-position:0 -160px;}.ui-icon-pause{background-position:-16px -160px;}.ui-icon-seek-next{background-position:-32px -160px;}.ui-icon-seek-prev{background-position:-48px -160px;}.ui-icon-seek-end{background-position:-64px -160px;}.ui-icon-seek-start{background-position:-80px -160px;}.ui-icon-seek-first{background-position:-80px -160px;}.ui-icon-stop{background-position:-96px -160px;}.ui-icon-eject{background-position:-112px -160px;}.ui-icon-volume-off{background-position:-128px -160px;}.ui-icon-volume-on{background-position:-144px -160px;}.ui-icon-power{background-position:0 -176px;}.ui-icon-signal-diag{background-position:-16px -176px;}.ui-icon-signal{background-position:-32px -176px;}.ui-icon-battery-0{background-position:-48px -176px;}.ui-icon-battery-1{background-position:-64px -176px;}.ui-icon-battery-2{background-position:-80px -176px;}.ui-icon-battery-3{background-position:-96px -176px;}.ui-icon-circle-plus{background-position:0 -192px;}.ui-icon-circle-minus{background-position:-16px -192px;}.ui-icon-circle-close{background-position:-32px -192px;}.ui-icon-circle-triangle-e{background-position:-48px -192px;}.ui-icon-circle-triangle-s{background-position:-64px -192px;}.ui-icon-circle-triangle-w{background-position:-80px -192px;}.ui-icon-circle-triangle-n{background-position:-96px -192px;}.ui-icon-circle-arrow-e{background-position:-112px -192px;}.ui-icon-circle-arrow-s{background-position:-128px -192px;}.ui-icon-circle-arrow-w{background-position:-144px -192px;}.ui-icon-circle-arrow-n{background-position:-160px -192px;}.ui-icon-circle-zoomin{background-position:-176px -192px;}.ui-icon-circle-zoomout{background-position:-192px -192px;}.ui-icon-circle-check{background-position:-208px -192px;}.ui-icon-circlesmall-plus{background-position:0 -208px;}.ui-icon-circlesmall-minus{background-position:-16px -208px;}.ui-icon-circlesmall-close{background-position:-32px -208px;}.ui-icon-squaresmall-plus{background-position:-48px -208px;}.ui-icon-squaresmall-minus{background-position:-64px -208px;}.ui-icon-squaresmall-close{background-position:-80px -208px;}.ui-icon-grip-dotted-vertical{background-position:0 -224px;}.ui-icon-grip-dotted-horizontal{background-position:-16px -224px;}.ui-icon-grip-solid-vertical{background-position:-32px -224px;}.ui-icon-grip-solid-horizontal{background-position:-48px -224px;}.ui-icon-gripsmall-diagonal-se{background-position:-64px -224px;}.ui-icon-grip-diagonal-se{background-position:-80px -224px;}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px;}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px;}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px;}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px;}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;} \ No newline at end of file diff --git a/NzbDrone.Web/Global.asax.cs b/NzbDrone.Web/Global.asax.cs index 0c08f1d99..5892528b4 100644 --- a/NzbDrone.Web/Global.asax.cs +++ b/NzbDrone.Web/Global.asax.cs @@ -38,7 +38,7 @@ namespace NzbDrone.Web protected override void OnApplicationStarted() { base.OnApplicationStarted(); - WebAssetDefaultSettings.UseTelerikContentDeliveryNetwork = true; + //WebAssetDefaultSettings.UseTelerikContentDeliveryNetwork = true; RegisterRoutes(RouteTable.Routes); //base.OnApplicationStarted(); AreaRegistration.RegisterAllAreas(); diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 015d34733..9d0aa531a 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -122,9 +122,8 @@ - - False - ..\Libraries\Telerik\Telerik.Web.Mvc.dll + + ..\packages\TelerikMvcExtensions.2011.2.712\lib\net40\Telerik.Web.Mvc.dll False @@ -136,6 +135,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -148,6 +341,131 @@ + + True + True + EditorLocalization.bg-BG.resx + + + True + True + EditorLocalization.de-DE.resx + + + True + True + EditorLocalization.resx + + + True + True + EditorLocalization.en-US.resx + + + True + True + EditorLocalization.fr-FR.resx + + + True + True + EditorLocalization.nl-NL.resx + + + True + True + EditorLocalization.pl-PL.resx + + + True + True + EditorLocalization.pt-BR.resx + + + True + True + EditorLocalization.ru-RU.resx + + + True + True + EditorLocalization.uk-UA.resx + + + True + True + GridLocalization.bg-BG.resx + + + True + True + GridLocalization.de-DE.resx + + + True + True + GridLocalization.resx + + + True + True + GridLocalization.en-US.resx + + + True + True + GridLocalization.es-ES.resx + + + True + True + GridLocalization.fr-FR.resx + + + True + True + GridLocalization.pl-PL.resx + + + True + True + GridLocalization.pt-BR.resx + + + True + True + GridLocalization.pt-PT.resx + + + True + True + GridLocalization.ru-RU.resx + + + True + True + GridLocalization.uk-UA.resx + + + True + True + UploadLocalization.bg-BG.resx + + + True + True + UploadLocalization.en-US.resx + + + True + True + UploadLocalization.pl-PL.resx + + + True + True + UploadLocalization.ru-RU.resx + @@ -266,11 +584,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -362,6 +775,156 @@ + + + GlobalResourceProxyGenerator + UploadLocalization.ru-RU.designer.cs + + + + + GlobalResourceProxyGenerator + UploadLocalization.pl-PL.designer.cs + + + + + GlobalResourceProxyGenerator + UploadLocalization.en-US.designer.cs + + + + + GlobalResourceProxyGenerator + UploadLocalization.bg-BG.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.uk-UA.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.ru-RU.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.pt-PT.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.pt-BR.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.pl-PL.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.fr-FR.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.es-ES.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.en-US.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.de-DE.designer.cs + + + + + GlobalResourceProxyGenerator + GridLocalization.bg-BG.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.uk-UA.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.ru-RU.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.pt-BR.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.pl-PL.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.nl-NL.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.fr-FR.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.en-US.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.de-DE.designer.cs + + + + + GlobalResourceProxyGenerator + EditorLocalization.bg-BG.designer.cs + + ")}else{a8.push("")}}}}}}a3(a5);a8=a8.join("");if(a8.replace(am,"").replace(x,"")==""){return""}return a8}var v=0,ar=1,a=2,T=3;function q(a4){var a3=a4.startContainer;return a3.nodeType==9?a3:a3.ownerDocument}function E(a3){if(s.browser.msie){return new ax(a3.document)}return a3.getSelection()}function al(a4){var a3=q(a4);return a1(a3)}function a1(a3){return E(aA(a3))}function aA(a3){return a3.defaultView||a3.parentWindow}function an(a3,a4,a6){function a5(a9){var a7=a3.cloneRange();a7.collapse(a9);a7[a9?"setStartBefore":"setEndAfter"](a4);var a8=a7.extractContents();if(a6){a8=D.trim(a8)}D[a9?"insertBefore":"insertAfter"](a8,a4)}a5(true);a5(false)}function O(a4){var a5=U.image(a4);if(a5){a4.setStartAfter(a5);a4.setEndAfter(a5)}var a3=al(a4);a3.removeAllRanges();a3.addRange(a4)}function L(a3){s.extend(this,{ownerDocument:a3,startContainer:a3,endContainer:a3,commonAncestorContainer:a3,startOffset:0,endOffset:0,collapsed:true})}L.prototype={setStart:function(a3,a4){this.startContainer=a3;this.startOffset=a4;w(this);u(this,true)},setEnd:function(a3,a4){this.endContainer=a3;this.endOffset=a4;w(this);u(this,false)},setStartBefore:function(a3){this.setStart(a3.parentNode,p(a3))},setStartAfter:function(a3){this.setStart(a3.parentNode,p(a3)+1)},setEndBefore:function(a3){this.setEnd(a3.parentNode,p(a3))},setEndAfter:function(a3){this.setEnd(a3.parentNode,p(a3)+1)},selectNode:function(a3){this.setStartBefore(a3);this.setEndAfter(a3)},selectNodeContents:function(a3){this.setStart(a3,0);this.setEnd(a3,a3[a3.nodeType===1?"childNodes":"nodeValue"].length)},collapse:function(a3){if(a3){this.setEnd(this.startContainer,this.startOffset)}else{this.setStart(this.endContainer,this.endOffset)}},deleteContents:function(){var a4=this.cloneRange();if(this.startContainer!=this.commonAncestorContainer){this.setStartAfter(aC(this.commonAncestorContainer,this.startContainer))}this.collapse(true);(function a3(a5){while(a5.next()){a5.hasPartialSubtree()?a3(a5.getSubtreeIterator()):a5.remove()}})(new l(a4))},cloneContents:function(){var a3=q(this);return(function a4(a7){for(var a6,a5=a3.createDocumentFragment();a6=a7.next();){a6=a6.cloneNode(!a7.hasPartialSubtree());if(a7.hasPartialSubtree()){a6.appendChild(a4(a7.getSubtreeIterator()))}a5.appendChild(a6)}return a5})(new l(this))},extractContents:function(){var a4=this.cloneRange();if(this.startContainer!=this.commonAncestorContainer){this.setStartAfter(aC(this.commonAncestorContainer,this.startContainer))}this.collapse(true);var a5=this;var a3=q(this);return(function a6(a9){for(var a8,a7=a3.createDocumentFragment();a8=a9.next();){a9.hasPartialSubtree()?a8=a8.cloneNode(false):a9.remove(a5.originalRange);if(a9.hasPartialSubtree()){a8.appendChild(a6(a9.getSubtreeIterator()))}a7.appendChild(a8)}return a7})(new l(a4))},insertNode:function(a3){if(af(this.startContainer)){if(this.startOffset!=this.startContainer.nodeValue.length){aw(this.startContainer,this.startOffset)}D.insertAfter(a3,this.startContainer)}else{D.insertAt(this.startContainer,a3,this.startOffset)}this.setStart(this.startContainer,this.startOffset)},cloneRange:function(){return s.extend(new L(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var a4=this.startContainer.nodeName,a3=this.endContainer.nodeName;return[a4=="#text"?this.startContainer.nodeValue:a4,"(",this.startOffset,") : ",a3=="#text"?this.endContainer.nodeValue:a3,"(",this.endOffset,")"].join("")}};function m(a5,a3,ba,a7){if(a5==a3){return a7-ba}var a9=a3;while(a9&&a9.parentNode!=a5){a9=a9.parentNode}if(a9){return p(a9)-ba}a9=a5;while(a9&&a9.parentNode!=a3){a9=a9.parentNode}if(a9){return a7-p(a9)-1}var a8=D.commonAncestor(a5,a3);var a6=a5;while(a6&&a6.parentNode!=a8){a6=a6.parentNode}if(!a6){a6=a8}var a4=a3;while(a4&&a4.parentNode!=a8){a4=a4.parentNode}if(!a4){a4=a8}if(a6==a4){return 0}return p(a4)-p(a6)}function u(a4,a5){function a3(a7){try{return m(a7.startContainer,a7.endContainer,a7.startOffset,a7.endOffset)<0}catch(a6){return true}}if(a3(a4)){if(a5){a4.commonAncestorContainer=a4.endContainer=a4.startContainer;a4.endOffset=a4.startOffset}else{a4.commonAncestorContainer=a4.startContainer=a4.endContainer;a4.startOffset=a4.endOffset}a4.collapsed=true}}function w(a4){a4.collapsed=a4.startContainer==a4.endContainer&&a4.startOffset==a4.endOffset;var a3=a4.startContainer;while(a3&&a3!=a4.endContainer&&!k(a3,a4.endContainer)){a3=a3.parentNode}a4.commonAncestorContainer=a3}function aR(a3){if(s.browser.msie){return new L(a3)}return a3.createRange()}function l(a4){s.extend(this,{range:a4,_current:null,_next:null,_end:null});if(a4.collapsed){return}var a3=a4.commonAncestorContainer;this._next=a4.startContainer==a3&&!af(a4.startContainer)?a4.startContainer.childNodes[a4.startOffset]:aC(a3,a4.startContainer);this._end=a4.endContainer==a3&&!af(a4.endContainer)?a4.endContainer.childNodes[a4.endOffset]:aC(a3,a4.endContainer).nextSibling}l.prototype={hasNext:function(){return !!this._next},next:function(){var a3=this._current=this._next;this._next=this._current&&this._current.nextSibling!=this._end?this._current.nextSibling:null;if(af(this._current)){if(this.range.endContainer==this._current){(a3=a3.cloneNode(true)).deleteData(this.range.endOffset,a3.length-this.range.endOffset)}if(this.range.startContainer==this._current){(a3=a3.cloneNode(true)).deleteData(0,this.range.startOffset)}}return a3},traverse:function(a4){function a3(){this._current=this._next;this._next=this._current&&this._current.nextSibling!=this._end?this._current.nextSibling:null;return this._current}var a5;while(a5=a3.call(this)){if(this.hasPartialSubtree()){this.getSubtreeIterator().traverse(a4)}else{a4(a5)}}return a5},remove:function(a8){var a7=this.range.startContainer==this._current;var a5=this.range.endContainer==this._current;if(af(this._current)&&(a7||a5)){var a4=a7?this.range.startOffset:0;var a3=a5?this.range.endOffset:this._current.length;var ba=a3-a4;if(a8&&(a7||a5)){if(this._current==a8.startContainer&&a4<=a8.startOffset){a8.startOffset-=ba}if(this._current==a8.endContainer&&a3<=a8.endOffset){a8.endOffset-=ba}}this._current.deleteData(a4,ba)}else{var a9=this._current.parentNode;if(a8&&(this.range.startContainer==a9||this.range.endContainer==a9)){var a6=p(this._current);if(a9==a8.startContainer&&a6<=a8.startOffset){a8.startOffset-=1}if(a9==a8.endContainer&&a60&&a6.previousSibling);a9.setEndPoint(a3?"EndToStart":"EndToEnd",a8);var a7=a6.nextSibling;if(!a7){a7=a6.previousSibling;if(a7&&af(a7)){a4.setEnd(a7,a7.nodeValue.length);D.remove(a6)}else{a4.selectNodeContents(a5);D.remove(a6);a4.endOffset-=1}return}D.remove(a6);if(af(a7)){a4[a3?"setStart":"setEnd"](a7,a9.text.length)}else{a4[a3?"setStartBefore":"setEndBefore"](a7)}}function aj(a3){this.enumerate=function(){var a5=[];function a4(a6){if(D.is(a6,"img")||(a6.nodeType==3&&!D.isWhitespace(a6))){a5.push(a6)}else{a6=a6.firstChild;while(a6){a4(a6);a6=a6.nextSibling}}}new l(a3).traverse(a4);return a5}}function j(a3){return new aj(a3).enumerate()}function Z(a7){var a3=[];for(var a4=0,a6=a7.length;a4'}a5.selectNodeContents(a9)}}a5.collapse(true)};this.add=function(a4,a6){if(a6&&a4.collapsed){this.addCaret(a4);a4=U.expand(a4)}var a5=a4.cloneRange();a5.collapse(false);this.end=D.create(q(a4),"span",{className:"t-marker"});a5.insertNode(this.end);a5=a4.cloneRange();a5.collapse(true);this.start=this.end.cloneNode(true);a5.insertNode(this.start);a4.setStartBefore(this.start);a4.setEndAfter(this.end);g(a4.commonAncestorContainer);return a4};this.remove=function(bb){var a4=this.start,bg=this.end;g(bb.commonAncestorContainer);while(!a4.nextSibling&&a4.parentNode){a4=a4.parentNode}while(!bg.previousSibling&&bg.parentNode){bg=bg.parentNode}var a6=(a4.previousSibling&&a4.previousSibling.nodeType==3)&&(a4.nextSibling&&a4.nextSibling.nodeType==3);var bc=(bg.previousSibling&&bg.previousSibling.nodeType==3)&&(bg.nextSibling&&bg.nextSibling.nodeType==3);a4=a4.nextSibling;bg=bg.previousSibling;var bf=false;var a9=false;if(a4==this.end){a9=!!this.start.previousSibling;a4=bg=this.start.previousSibling||this.end.nextSibling;bf=true}D.remove(this.start);D.remove(this.end);if(a4==null||bg==null){bb.selectNodeContents(bb.commonAncestorContainer);bb.collapse(true);return}var be=bf?af(a4)?a4.nodeValue.length:a4.childNodes.length:0;var a7=af(bg)?bg.nodeValue.length:bg.childNodes.length;if(a4.nodeType==3){while(a4.previousSibling&&a4.previousSibling.nodeType==3){a4=a4.previousSibling;be+=a4.nodeValue.length}}if(bg.nodeType==3){while(bg.previousSibling&&bg.previousSibling.nodeType==3){bg=bg.previousSibling;a7+=bg.nodeValue.length}}var ba=p(a4),bd=a4.parentNode;var a8=p(bg),a5=bg.parentNode;for(var bi=a4;bi.previousSibling;bi=bi.previousSibling){if(bi.nodeType==3&&bi.previousSibling.nodeType==3){ba--}}for(var bh=bg;bh.previousSibling;bh=bh.previousSibling){if(bh.nodeType==3&&bh.previousSibling.nodeType==3){a8--}}g(bd);if(a4.nodeType==3){a4=bd.childNodes[ba]}g(a5);if(bg.nodeType==3){bg=a5.childNodes[a8]}if(bf){if(a4.nodeType==3){bb.setStart(a4,be)}else{bb[a9?"setStartAfter":"setStartBefore"](a4)}bb.collapse(true)}else{if(a4.nodeType==3){bb.setStart(a4,be)}else{bb.setStartBefore(a4)}if(bg.nodeType==3){bb.setEnd(bg,a7)}else{bb.setEndAfter(bg)}}if(a3){this.removeCaret(bb)}}}var au=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/;var U={nodes:function(a4){var a3=j(a4);if(!a3.length){a4.selectNodeContents(a4.commonAncestorContainer);a3=j(a4);if(!a3.length){a3=D.significantChildNodes(a4.commonAncestorContainer)}}return a3},image:function(a4){var a3=[];new l(a4).traverse(function(a5){if(D.is(a5,"img")){a3.push(a5)}});if(a3.length==1){return a3[0]}},expand:function(a4){var a5=a4.cloneRange();var a8=a5.startContainer.childNodes[a5.startOffset==0?0:a5.startOffset-1];var a9=a5.endContainer.childNodes[a5.endOffset];if(!af(a8)||!af(a9)){return a5}var a6=a8.nodeValue;var a7=a9.nodeValue;if(a6==""||a7==""){return a5}var a3=a6.split("").reverse().join("").search(au);var ba=a7.search(au);if(a3==0||ba==0){return a5}ba=ba==-1?a7.length:ba;a3=a3==-1?0:a6.length-a3;a5.setStart(a8,a3);a5.setEnd(a9,ba);return a5},isExpandable:function(a4){var a9=a4.startContainer;var a8=q(a4);if(a9==a8||a9==a8.body){return false}var a5=a4.cloneRange();var a3=a9.nodeValue;if(!a3){return false}var a6=a3.substring(0,a5.startOffset);var a7=a3.substring(a5.startOffset);var ba=0,bb=0;if(a6!=""){ba=a6.split("").reverse().join("").search(au)}if(a7!=""){bb=a7.search(au)}return ba!=0&&bb!=0}};function c(a4){var a5=new ao(a4.range);var a3=new ac();this.formatter=a4.formatter;this.getRange=function(){return a5.toRange()};this.lockRange=function(a6){return a3.add(this.getRange(),a6)};this.releaseRange=function(a6){a3.remove(a6);O(a6)};this.undo=function(){a5.body.innerHTML=a5.html;O(a5.toRange())};this.redo=function(){this.exec()};this.exec=function(){var a6=this.lockRange(true);this.formatter.editor=this.editor;this.formatter.toggle(a6);this.releaseRange(a6)}}function aY(a5,a4){var a3=a5.body;this.redo=function(){a3.innerHTML=a4.html;O(a4.toRange())};this.undo=function(){a3.innerHTML=a5.html;O(a5.toRange())}}function t(a3){c.call(this,a3);this.managesUndoRedo=true;this.exec=function(){var a5=this.editor;var a4=a5.getRange();var a6=new ao(a4);a5.clipboard.paste(a3.value||"");a5.undoRedoStack.push(new aY(a6,new ao(a5.getRange())));a5.focus()}}function aT(){X.call(this);this.command=function(a3){return new t(a3)};this.update=function(a3,a4){a3.data("tSelectBox").close()};this.init=function(a5,a3){var a4=a3.editor;a5.tSelectBox({data:a4.insertHtml,onItemCreate:function(a6){a6.html=''+a6.dataItem.Text+""},onChange:function(a6){X.exec(a4,"insertHtml",a6.value)},highlightFirst:false}).find(".t-input").html(a4.localization.insertHtml)}}function R(){var a4=[],a3=-1;this.push=function(a5){a4=a4.slice(0,a3+1);a3=a4.push(a5)-1};this.undo=function(){if(this.canUndo()){a4[a3--].undo()}};this.redo=function(){if(this.canRedo()){a4[++a3].redo()}};this.canUndo=function(){return a3>=0};this.canRedo=function(){return a3!=a4.length-1}}function aS(a3){this.keydown=function(a7){var a6=a3.keyboard;var a4=a6.isTypingKey(a7);if(a4&&!a6.typingInProgress()){var a5=a3.getRange();this.startRestorePoint=new ao(a5);a6.startTyping(s.proxy(function(){a3.selectionRestorePoint=this.endRestorePoint=new ao(a3.getRange());a3.undoRedoStack.push(new aY(this.startRestorePoint,this.endRestorePoint))},this));return true}return false};this.keyup=function(a4){var a5=a3.keyboard;if(a5.typingInProgress()){a5.endTyping();return true}return false}}function A(a4){var a3=false;this.createUndoCommand=function(){this.endRestorePoint=new ao(a4.getRange());a4.undoRedoStack.push(new aY(this.startRestorePoint,this.endRestorePoint));this.startRestorePoint=this.endRestorePoint};this.changed=function(){if(this.startRestorePoint){return this.startRestorePoint.html!=a4.body.innerHTML}return false};this.keydown=function(a5){var a6=a4.keyboard;if(a6.isModifierKey(a5)){if(a6.typingInProgress()){a6.endTyping(true)}this.startRestorePoint=new ao(a4.getRange());return true}if(a6.isSystem(a5)){a3=true;if(this.changed()){a3=false;this.createUndoCommand()}return true}return false};this.keyup=function(a5){if(a3&&this.changed()){a3=false;this.createUndoCommand(a5);return true}return false}}function aI(a4){var a6=false;var a9;var a5;function a3(ba){return(ba>=48&&ba<=90)||(ba>=96&&ba<=111)||(ba>=186&&ba<=192)||(ba>=219&&ba<=222)}this.toolFromShortcut=function(bc,be){var bb=String.fromCharCode(be.keyCode);for(var bd in bc){var ba=bc[bd];if((ba.key==bb||ba.key==be.keyCode)&&!!ba.ctrl==be.ctrlKey&&!!ba.alt==be.altKey&&!!ba.shift==be.shiftKey){return bd}}};this.isTypingKey=function(bb){var ba=bb.keyCode;return(a3(ba)&&!bb.ctrlKey&&!bb.altKey)||ba==32||ba==13||ba==8||(ba==46&&!bb.shiftKey&&!bb.ctrlKey&&!bb.altKey)};this.isModifierKey=function(bb){var ba=bb.keyCode;return(ba==17&&!bb.shiftKey&&!bb.altKey)||(ba==16&&!bb.ctrlKey&&!bb.altKey)||(ba==18&&!bb.ctrlKey&&!bb.shiftKey)};this.isSystem=function(ba){return ba.keyCode==46&&ba.ctrlKey&&!ba.altKey&&!ba.shiftKey};this.startTyping=function(ba){a5=ba;a6=true};function a7(){a6=false;a5()}this.endTyping=function(ba){this.clearTimeout();if(ba){a7()}else{a9=window.setTimeout(a7,1000)}};this.typingInProgress=function(){return a6};this.clearTimeout=function(){window.clearTimeout(a9)};function a8(bc,bb){for(var ba=0;ba$/g,"li>");bc=bc.replace(/"))}bb.insertNode(bi);bg=a5(a9,bh);if(bf){while(bh.parentNode!=bg){D.unwrap(bh.parentNode)}D.unwrap(bh.parentNode)}g(bb.commonAncestorContainer);bh.style.display="inline";D.scrollTo(bh);be.removeCaret(bb);O(bb)}}function f(){var a3=[//g,"",/mso-[^;"]*;?/ig,"",/<\/?(meta|link|style|o:|v:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:)[^>]*>)?/ig,""];this.applicable=function(a6){return/class="?Mso|style="[^"]*mso-/i.test(a6)};function a4(a6){if(/^[\u2022\u00b7\u00a7\u00d8o\-]\u00a0+/.test(a6)){return"ul"}if(/^\s*\w+[\.\)]\u00a0{2,}/.test(a6)){return"ol"}}function a5(bj){var bb=D.create(document,"div",{innerHTML:bj});var bi=s(H.join(","),bb);var bd=-1,a8,bh={ul:{},ol:{}},a6=bb;for(var be=0;be]*>/g,"").replace(/ /g,"\u00a0");var bc=a4(bj);if(!bc||D.name(a9)!="p"){if(a9.innerHTML==""){D.remove(a9)}else{bh={ul:{},ol:{}};a6=bb;bd=-1}continue}var bf=parseFloat(a9.style.marginLeft||0);var bg=bh[bc][bf];if(bf>bd||!bg){bg=D.create(document,bc);if(a6==bb){D.insertBefore(bg,a9)}else{a6.appendChild(bg)}bh[bc][bf]=bg}if(a8!=bc){for(var ba in bh){for(var a7 in bh[ba]){if(s.contains(bg,bh[ba][a7])){delete bh[ba][a7]}}}}D.remove(a9.firstChild);a6=D.create(document,"li",{innerHTML:a9.innerHTML});bg.appendChild(a6);D.remove(a9);bd=bf;a8=bc}return bb.innerHTML}this.clean=function(a7){for(var a6=0,a8=a3.length;a6]*"?/ig,"");return a7}}function i(a3){function a4(a7){var a5=0;for(var a6=a7.parentNode.firstChild;a6;a6=a6.nextSibling){if(a6!=a7&&a6.className!="t-marker"&&a6.nodeType==1){a5++}}return a5}this.findSuitable=function(a6,a5){if(!a5&&a4(a6)>0){return null}return D.parentOfType(a6,a3[0].tags)};this.findFormat=function(a9){for(var a5=0;a50){this.activate(a9,a8)}};this.apply=function(bb){var ba=[];for(var a8=0,a9=bb.length;a80){for(var a8=0,bb=bc.length;a81){var a8=ba.pop();var a9=ba[ba.length-1];if(a8.previousSibling&&a8.previousSibling.className=="t-marker"){a9.appendChild(a8.previousSibling)}if(a8.previousSibling==a9&&a8.style.cssText==a9.style.cssText){while(a8.firstChild){a9.appendChild(a8.firstChild)}D.remove(a8)}}}}function a2(a4,a3){i.call(this,a4);function a5(a9){var bk=a9.attributes,bh=s.trim;if(!bk){return}for(var a8=0,bf=bk.length;a8=0?D.toHex(a7):a7}}}}return}function a6(bb){var bc=s(af(bb)?bb.parentNode:bb);var ba=bc.parents().andSelf();for(var a8=0,a9=ba.length;a8'+bb.dataItem.Text+""}}}function a0(a5){X.call(this,a5);var a4=[{tags:["span"]}],a3=new a2(a4,a5.cssAttr);this.update=function(a6){a6.data("tColorPicker").close()};this.command=function(a6){return new aK(s.extend(a6,{formatter:function(){var a7={};a7[a5.domAttr]=a6.value;return new F(a4,{style:a7},a5.cssAttr)}}))};this.willDelayExecution=ad;this.init=function(a8,a6){var a7=a6.editor;a8.tColorPicker({selectedColor:"#000000",onChange:function(a9){X.exec(a7,a5.name,a9.value)}})}}function ab(){X.call(this);var a4=[{tags:["span"]}],a3=new a2(a4,"className");this.command=function(a5){return new aK(s.extend(a5,{formatter:function(){return new F(a4,{className:a5.value})}}))};this.update=function(a5,a7){var a6=a5.data("tSelectBox");a6.close();a6.value(a3.getFormat(a7))};this.init=function(a7,a5){var a6=a5.editor;a7.tSelectBox({data:a6.style,title:a6.localization.style,onItemCreate:function(a8){var a9=D.inlineStyle(a6.document,"span",{className:a8.dataItem.Value});a8.html=''+a8.html+""},onChange:function(a8){X.exec(a6,"style",a8.value)}})}}function y(a4){function a3(a7,a8){for(var a5=0;a5'+a8.dataItem.Text+""},onChange:function(a7){X.exec(a5,"formatBlock",a7.value)},highlightFirst:false})}}function aU(a3){c.call(this,a3);this.exec=function(){var a6=this.getRange(),bg=q(a6),a9,be=s.browser.msie?"":'
';var a8="p,h1,h2,h3,h4,h5,h6".split(","),bh=D.parentOfType(a6.startContainer,a8),a4=D.parentOfType(a6.endContainer,a8),a5=(bh&&!a4)||(!bh&&a4);a6.deleteContents();var bf=D.create(bg,"a");a6.insertNode(bf);g(bf.parentNode);var a7=D.parentOfType(bf,["li"]),bi=D.parentOfType(bf,"h1,h2,h3,h4,h5,h6".split(","));if(a7){var bb=a6.cloneRange();bb.selectNode(a7);if(j(bb).length==0){var bj=D.create(bg,"p");if(a7.nextSibling){an(bb,a7.parentNode)}D.insertAfter(bj,a7.parentNode);D.remove(a7.parentNode.childNodes.length==1?a7.parentNode:a7);bj.innerHTML=be;a9=bj}}else{if(bi&&!bf.nextSibling){var bj=D.create(bg,"p");D.insertAfter(bj,bi);bj.innerHTML=be;D.remove(bf);a9=bj}}if(!a9){if(!(a7||bi)){new W([{tags:["p"]}]).apply([bf])}a6.selectNode(bf);var ba=D.parentOfType(bf,[a7?"li":bi?D.name(bi):"p"]);an(a6,ba,a5);var bc=ba.previousSibling;if(D.is(bc,"li")&&bc.firstChild&&!D.is(bc.firstChild,"br")){bc=bc.firstChild}a9=ba.nextSibling;if(D.is(a9,"li")&&a9.firstChild&&!D.is(a9.firstChild,"br")){a9=a9.firstChild}D.remove(ba);function bd(bk){if(bk.firstChild&&D.is(bk.firstChild,"br")){D.remove(bk.firstChild)}if(af(bk)&&bk.nodeValue==""){bk=bk.parentNode}if(bk&&!D.is(bk,"img")&&bk.innerHTML==""){bk.innerHTML=be}}bd(bc);bd(a9);g(bc)}g(a9);if(!D.is(a9,"img")){a6.selectNodeContents(a9)}else{a6.setStartBefore(a9)}a6.collapse(true);D.scrollTo(a9);O(a6)}}function d(a3){c.call(this,a3);this.exec=function(){var a5=this.getRange();a5.deleteContents();var a4=D.create(q(a5),"br");a5.insertNode(a4);g(a4.parentNode);if(!s.browser.msie&&(!a4.nextSibling||D.isWhitespace(a4.nextSibling))){var a6=a4.cloneNode(true);a6.setAttribute("_moz_dirty","");D.insertAfter(a6,a4)}a5.setStartAfter(a4);a5.collapse(true);O(a5)}}function aq(a4){var a3=[a4=="ul"?"ol":"ul",a4];y.call(this,[{tags:a3}]);this.isFormatted=function(a8){var a5=[],a6;for(var a7=0;a71){D.insertAfter(a6[a6.length-1],a7);D.insertAfter(a6[1],a7);D[a5.length>0?"insertBefore":"insertAfter"](a6[0],a7)}}else{var a8=new b([{tags:["a"]}],a9);a8.finder=this.finder;a8.apply(a5)}}}function ap(a3){a3.formatter={toggle:function(a4){new b([{tags:["a"]}]).remove(j(a4))}};c.call(this,a3)}function aa(a4){c.call(this,a4);var a3;this.async=true;var a5=new aZ();this.exec=function(){var ba=this.getRange();var a8=ba.collapsed;ba=this.lockRange(true);var bd=j(ba);var bc=null;var a7=this;function be(bk){var bj=s("#t-editor-link-url",bb.element).val();if(bj&&bj!="http://"){a3={href:bj};var bg=s("#t-editor-link-title",bb.element).val();if(bg){a3.title=bg}var bh=s("#t-editor-link-text",bb.element).val();if(bh!==bc){a3.innerHTML=bh}var bi=s("#t-editor-link-target",bb.element).is(":checked");if(bi){a3.target="_blank"}a5.apply(ba,a3)}a9(bk);if(a7.change){a7.change()}}function a9(bg){bg.preventDefault();bb.destroy();aA(q(ba)).focus();a7.releaseRange(ba)}var bf=bd.length?a5.finder.findSuitable(bd[0]):null;var a6=bd.length<=1||(bd.length==2&&a8);var bb=at.window.create(s.extend({},this.editor.dialogOptions,{title:"Insert link",html:new s.telerik.stringBuilder().cat('
').cat("
    ").cat('
  1. ').catIf('
  2. ',a6).cat('
  3. ').cat('
  4. ').cat("
").cat('
').cat('').cat(" or ").cat('Close').cat("
").cat("
").string(),onClose:a9})).hide().find(".t-dialog-insert").click(be).end().find(".t-dialog-close").click(a9).end().find(".t-form-text-row input").keydown(function(bg){if(bg.keyCode==13){be(bg)}else{if(bg.keyCode==27){a9(bg)}}}).end().find("#t-editor-link-url").val(bf?bf.getAttribute("href",2):"http://").end().find("#t-editor-link-text").val(bd.length>0?(bd.length==1?bd[0].nodeValue:bd[0].nodeValue+bd[1].nodeValue):"").end().find("#t-editor-link-title").val(bf?bf.title:"").end().find("#t-editor-link-target").attr("checked",bf?bf.target=="_blank":false).end().show().data("tWindow").center();if(a6&&bd.length>0){bc=s("#t-editor-link-text",bb.element).val()}s("#t-editor-link-url",bb.element).focus().select()},this.redo=function(){var a6=this.lockRange(true);a5.apply(a6,a3);this.releaseRange(a6)}}function aV(a4){X.call(this,s.extend(a4,{command:ap}));var a3=new i([{tags:["a"]}]);this.init=function(a5){a5.attr("unselectable","on").addClass("t-state-disabled")};this.update=function(a5,a6){a5.toggleClass("t-state-disabled",!a3.isFormatted(a6)).removeClass("t-state-hover")}}function aP(a4){c.call(this,a4);this.async=true;var a3;function a5(a6,a7){if(a3.src&&a3.src!="http://"){if(!a6){a6=D.create(q(a7),"img",a3);a6.onload=a6.onerror=function(){a6.removeAttribute("complete");a6.removeAttribute("width");a6.removeAttribute("height")};a7.deleteContents();a7.insertNode(a6);a7.setStartAfter(a6);a7.setEndAfter(a6);O(a7);return true}else{D.attr(a6,a3)}}return false}this.redo=function(){var a6=this.lockRange();if(!a5(U.image(a6),a6)){this.releaseRange(a6)}};this.exec=function(){var a9=this.lockRange();var a6=false;var bc=U.image(a9);var a7=this;function bd(bg){a3={src:s("#t-editor-image-url",ba.element).val(),alt:s("#t-editor-image-title",ba.element).val()};a6=a5(bc,a9);a8(bg);if(a7.change){a7.change()}}function a8(bg){bg.preventDefault();ba.destroy();aA(q(a9)).focus();if(!a6){a7.releaseRange(a9)}}var bb=this.editor.fileBrowser;var be=bb&&bb.selectUrl!==undefined;function bf(){if(be){new at.imageBrowser(s(this).find(".t-image-browser"),s.extend(bb,{apply:bd,element:a7.editor.element,localization:a7.editor.localization}))}}var ba=at.window.create(s.extend({width:750},this.editor.dialogOptions,{title:"Insert image",html:new s.telerik.stringBuilder().cat('
').catIf('
',be).cat("
    ").cat('
  1. ').cat('
  2. ').cat("
").cat('
').cat('').cat(" or ").cat('Close').cat("
").cat("
").string(),onClose:a8,onActivate:bf})).hide().find(".t-dialog-insert").click(bd).end().find(".t-dialog-close").click(a8).end().find(".t-form-text-row input").keydown(function(bg){if(bg.keyCode==13){bd(bg)}else{if(bg.keyCode==27){a8(bg)}}}).end().toggleClass("t-imagebrowser",be).find("#t-editor-image-url").val(bc?bc.getAttribute("src",2):"http://").end().find("#t-editor-image-title").val(bc?bc.alt:"").end().show().data("tWindow").center();s("#t-editor-image-url",ba.element).focus().select()}}at.selectbox=function(a3,a4){var bb;var a5=s(a3);var a7=a5.find(".t-input");var a8=this.dropDown=new at.dropDown({effects:at.fx.slide.defaults(),onItemCreate:a4.onItemCreate,onClick:function(bc){ba(a4.data[s(bc.item).index()].Value);a4.onChange({value:bb})}});function a6(){if(!a8.$items){a8.dataBind(a4.data)}}function a9(bc){a7.html(bc?bc:" ")}function ba(be){a6();var bd=-1;for(var bc=0,bf=a4.data.length;bc0?"rtl":"");s(document.documentElement).bind("mousedown",s.proxy(function(be){var bc=a8.$element;var bd=bc&&bc.parent().length>0;if(bd&&!s.contains(a3,be.target)&&!s.contains(bc.parent()[0],be.target)){a8.close()}},this))};s.fn.tSelectBox=function(a3){return at.create(this,{name:"tSelectBox",init:function(a4,a5){return new at.selectbox(a4,a5)},options:a3})};s.fn.tSelectBox.defaults={effects:at.fx.slide.defaults()};at.colorpicker=function(a3,a4){this.element=a3;var a5=s(a3);s.extend(this,a4);a5.bind("click",s.proxy(this.click,this)).find("*").attr("unselectable","on");if(this.selectedColor){a5.find(".t-selected-color").css("background-color",this.selectedColor)}s(a3.ownerDocument.documentElement).bind("mousedown",s.proxy(function(a6){if(!s(a6.target).closest(".t-colorpicker-popup").length){this.close()}},this));at.bind(this,{change:this.onChange,load:this.onLoad})};at.colorpicker.prototype={select:function(a3){if(a3){a3=D.toHex(a3);if(!at.trigger(this.element,"change",{value:a3})){this.value(a3);this.close()}}else{at.trigger(this.element,"change",{value:this.selectedColor})}},open:function(){var a3=this.popup();var a6=s(this.element);var a5=a6.offset();a5.top+=a6.outerHeight();if(a6.closest(".t-rtl").length){a5.left-=a3.outerWidth()-a6.outerWidth()}var a4="auto";a6.parents().andSelf().each(function(){a4=s(this).css("zIndex");if(Number(a4)){a4=Number(a4)+1;return false}});at.fx._wrap(a3).css(s.extend({position:"absolute",zIndex:a4},a5));a3.find(".t-item").bind("click",s.proxy(function(a8){var a7=s(a8.target,a8.target.ownerDocument).css("background-color");this.select(a7)},this));at.fx.play(this.effects,a3,{direction:"bottom"})},close:function(){if(!this.$popup){return}at.fx.rewind(this.effects,this.$popup,{direction:"bottom"},s.proxy(function(){D.remove(this.$popup[0].parentNode);this.$popup=null},this))},toggle:function(){if(!this.$popup||!this.$popup.is(":visible")){this.open()}else{this.close()}},click:function(a3){if(s(a3.target).closest(".t-tool-icon").length>0){this.select()}else{this.toggle()}},value:function(a3){if(!a3){return this.selectedColor}a3=D.toHex(a3);this.selectedColor=a3;s(".t-selected-color",this.element).css("background-color",a3)},popup:function(){if(!this.$popup){this.$popup=s(at.colorpicker.buildPopup(this)).hide().appendTo(document.body).find("*").attr("unselectable","on").end()}return this.$popup}};s.extend(at.colorpicker,{buildPopup:function(a3){var a6=new at.stringBuilder();a6.cat('
').cat('
    ');var a8=a3.data;var a5=(a3.value()||"").substring(1);for(var a4=0,a7=a8.length;a4')}a6.cat("
");return a6.string()}});s.fn.tColorPicker=function(a3){return at.create(this,{name:"tColorPicker",init:function(a4,a5){return new at.colorpicker(a4,a5)},options:a3})};s.fn.tColorPicker.defaults={data:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),selectedColor:null,effects:at.fx.slide.defaults()};function aX(){var a4=new y([{tags:H}]);function a3(a5){return a5.style.marginLeft||0}this.apply=function(ba){var a8=a4.findSuitable(ba);if(a8.length){var a7=[];for(var a6=0;a6ul")[0];if(!bd){bd=D.create(bb.ownerDocument,D.name(be));a9.append(bd)}while(bb&&bb.parentNode==be){bd.appendChild(bb);bb=a7.shift()}}else{var a5=parseInt(a3(bb))+30;D.style(bb,{marginLeft:a5})}}}else{var bc=new W([{tags:H}],{style:{marginLeft:30}});bc.apply(ba)}};this.remove=function(a7){var a9=a4.findSuitable(a7);for(var a5=0;a51)||(D.ofType(a6[a5],["ul","ol"])&&a9>0)}if(a7){a4.removeClass("t-state-disabled");return}}a4.addClass("t-state-disabled").removeClass("t-state-hover")}}function aF(a3){this.editor=a3;this.formats=[]}aF.prototype={apply:function(a7){if(!this.hasPending()){return}var a6=new ac();a6.addCaret(a7);var a3=a7.startContainer.childNodes[a7.startOffset];var a9=a3.previousSibling;if(!a9.nodeValue){a9=a9.previousSibling}a7.setStart(a9,a9.nodeValue.length-1);a6.add(a7);if(j(a7).length==0){a6.remove(a7);a7.collapse(true);this.editor.selectRange(a7);return}var a5=a6.end.previousSibling.previousSibling;var bb,a8=this.formats;for(var a4=0;a40},isPending:function(a3){return !!this.getPending(a3)},getPending:function(a4){var a5=this.formats;for(var a3=0;a3",{src:'javascript:""',frameBorder:"0"}).css("display","").addClass("t-content").insertBefore(a3)[0];var a4=a7.contentWindow||a7;var a6=a4.document||a7.contentDocument;var a5=a3.val().replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/ig,"$1").replace(/[\r\n\v\f\t ]+/ig," ");if(!a5.length&&s.browser.mozilla){a5='
'}a6.designMode="On";a6.open();a6.write(new at.stringBuilder().cat("").cat('').cat('").cat(s.map(a8,function(a9){return[''].join("")}).join("")).cat('').cat(a5).cat("").string());a6.close();return a4}function V(a3){at.trigger(a3.element,"selectionChange")}function aJ(a4){var a3=true;a4.window=ay(s(a4.textarea),a4.stylesheets);a4.document=a4.window.contentDocument||a4.window.document;a4.body=a4.document.body;s(a4.document).bind({keydown:function(a7){var a5=a4.keyboard.toolFromShortcut(a4.tools,a7);if(a5){a7.preventDefault();a4.exec(a5);return false}if(a4.keyboard.isTypingKey(a7)&&a4.pendingFormats.hasPending()){if(a3){a3=false}else{var a6=a4.getRange();a4.pendingFormats.apply(a6);a4.selectRange(a6)}}a4.keyboard.clearTimeout();a4.keyboard.keydown(a7)},keyup:function(a7){var a6=[8,9,33,34,35,36,37,38,39,40,40,45,46];if(s.browser.mozilla&&a7.keyCode==8){aL(a4,a7)}if(s.inArray(a7.keyCode,a6)>-1||(a7.keyCode==65&&a7.ctrlKey&&!a7.altKey&&!a7.shiftKey)){a4.pendingFormats.clear();V(a4)}if(a4.keyboard.isTypingKey(a7)){if(a4.pendingFormats.hasPending()){var a5=a4.getRange();a4.pendingFormats.apply(a5);a4.selectRange(a5)}}else{a3=true}a4.keyboard.keyup(a7)},mousedown:function(a5){a4.pendingFormats.clear();var a6=s(a5.target);if(!s.browser.gecko&&a5.which==2&&a6.is("a[href]")){window.open(a6.attr("href"),"_new")}},mouseup:function(){V(a4)}});s(a4.window).bind("blur",function(){var a5=a4.textarea.value,a6=a4.encodedValue();a4.update(a6);if(a6!=a5){at.trigger(a4.element,"change")}});s(a4.body).bind("cut paste",function(a5){a4.clipboard["on"+a5.type](a5)})}at.editor=function(a3,a4){if(/Mobile.*Safari/.test(navigator.userAgent)){return}var a5=this;this.element=a3;var a6=s(a3);a6.closest("form").bind("submit",function(){a5.update()});s.extend(this,a4);at.bind(this,{load:this.onLoad,selectionChange:this.onSelectionChange,change:this.onChange,execute:this.onExecute,error:this.onError,paste:this.onPaste});for(var a9 in this.tools){this.tools[a9].name=a9.toLowerCase()}this.textarea=a6.find("textarea").attr("autocomplete","off")[0];aJ(this);this.keyboard=new aI([new aS(this),new A(this)]);this.clipboard=new aB(this);this.pendingFormats=new aF(this);this.undoRedoStack=new R();function bd(be){var bf=s.grep(be.className.split(" "),function(bg){return !/^t-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(bg)});return bf[0]?bf[0].substring(2):"custom"}function ba(bf,be){if(!be.key){return bf}return new at.stringBuilder().cat(bf).cat(" (").catIf("Ctrl + ",be.ctrl).catIf("Shift + ",be.shift).catIf("Alt + ",be.alt).cat(be.key).cat(")").string()}var a8=".t-editor-toolbar > li > *",a7=".t-editor-button .t-tool-icon",bb=a7+":not(.t-state-disabled)",bc=a7+".t-state-disabled";a6.delegate(bb,"mouseenter",at.hover).delegate(bb,"mouseleave",at.leave).delegate(a7,"mousedown",at.preventDefault).delegate(bb,"click",at.stopAll(function(be){a5.exec(bd(this))})).delegate(bc,"click",function(be){be.preventDefault()}).find(a8).each(function(){var bi=bd(this),bf=a5.tools[bi],bh=a5.localization[bi],bg=s(this);if(!bf){return}if(bi=="fontSize"||bi=="fontName"){var be=a5.localization[bi+"Inherit"]||aQ[bi+"Inherit"];a5[bi][0].Text=be;bg.find("input").val(be).end().find("span.t-input").text(be).end()}bf.init(bg,{title:ba(bh,bf),editor:a5})}).end().bind("selectionChange",function(){var bf=a5.getRange();a5.selectionRestorePoint=new ao(bf);var be=j(bf);if(!be.length){be=[bf.startContainer]}a6.find(a8).each(function(){var bg=a5.tools[bd(this)];if(bg){bg.update(s(this),be,a5.pendingFormats)}})});s(document).bind("DOMNodeInserted",function(be){if(s.contains(be.target,a5.element)||a5.element==be.target){s(a5.element).find("iframe").remove();aJ(a5)}}).bind("mousedown",function(be){try{if(a5.keyboard.typingInProgress()){a5.keyboard.endTyping(true)}if(!a5.selectionRestorePoint){a5.selectionRestorePoint=new ao(a5.getRange())}}catch(be){}})};function aL(a3,a6){var a4=a3.getRange(),a7=a4.startContainer;if(a7==a3.body.firstChild||!D.isBlock(a7)||(a7.childNodes.length>0&&!(a7.childNodes.length==1&&D.is(a7.firstChild,"br")))){return}var a9=a7.previousSibling;while(a9&&!D.isBlock(a9)){a9=a9.previousSibling}if(!a9){return}var a8=a3.document.createTreeWalker(a9,NodeFilter.SHOW_TEXT,null,false);var a5;while(a5=a8.nextNode()){a9=a5}a4.setStart(a9,af(a9)?a9.nodeValue.length:0);a4.collapse(true);O(a4);D.remove(a7);a6.preventDefault()}s.extend(at.editor,{BlockFormatFinder:y,BlockFormatter:W,Dom:D,FormatCommand:aK,GenericCommand:aY,GreedyBlockFormatter:av,GreedyInlineFormatFinder:a2,GreedyInlineFormatter:F,ImageCommand:aP,IndentCommand:o,IndentFormatter:aX,InlineFormatFinder:i,InlineFormatter:b,InsertHtmlCommand:t,Keyboard:aI,LinkCommand:aa,LinkFormatFinder:I,LinkFormatter:aZ,ListCommand:az,ListFormatFinder:aq,ListFormatter:J,MSWordFormatCleaner:f,Marker:ac,NewLineCommand:d,OutdentCommand:S,ParagraphCommand:aU,PendingFormats:aF,RangeEnumerator:aj,RangeUtils:U,RestorePoint:ao,SystemHandler:A,TypingHandler:aS,UndoRedoStack:R,UnlinkCommand:ap});at.editor.prototype={value:function(a5){var a3=this.body;if(a5===undefined){return C(a3)}this.pendingFormats.clear();a5=a5.replace(//g,"");a5=a5.replace(/]*)>(.*)?<\/script>/ig,"$2");if(s.browser.mozilla){a5=a5.replace(/]*)>(\s*)?<\/p>/ig,'


')}if(s.browser.msie&&parseInt(s.browser.version)<9){a5="
"+a5;var a6="originalsrc",a4="originalhref";a5=a5.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,a4+'="$1"');a5=a5.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,a6+'="$1"');a3.innerHTML=a5;D.remove(a3.firstChild);s(a3).find("telerik\\:script,script,link,img,a").each(function(){var a7=this;if(a7[a4]){a7.setAttribute("href",a7[a4]);a7.removeAttribute(a4)}if(a7[a6]){a7.setAttribute("src",a7[a6]);a7.removeAttribute(a6)}})}else{a3.innerHTML=a5;if(s.browser.msie){g(a3)}}this.selectionRestorePoint=null;this.update()},focus:function(){this.window.focus()},update:function(a3){this.textarea.value=a3||this.encoded?this.encodedValue():this.value()},encodedValue:function(){return D.encode(this.value())},createRange:function(a3){return aR(a3||this.document)},getSelection:function(){return a1(this.document)},selectRange:function(a4){this.focus();var a3=this.getSelection();a3.removeAllRanges();a3.addRange(a4)},getRange:function(){var a4=this.getSelection();var a3=a4.rangeCount>0?a4.getRangeAt(0):this.createRange();if(a3.startContainer==this.document&&a3.endContainer==this.document&&a3.startOffset==0&&a3.endOffset==0){a3.setStart(this.body,0);a3.collapse(true)}return a3},selectedHtml:function(){return C(this.getRange().cloneContents())},paste:function(a3){this.clipboard.paste(a3)},exec:function(a6,a3){if(!this.keyboard.typingInProgress()){this.focus();if(this.selectionRestorePoint){this.selectRange(this.selectionRestorePoint.toRange());this.selectionRestorePoint=null}}a6=a6.toLowerCase();var a8="";for(var a5 in this.tools){if(a5.toLowerCase()==a6){a8=this.tools[a5];break}}if(a8){var a4=this.getRange();if(!/undo|redo/i.test(a6)&&a8.willDelayExecution(a4)){this.pendingFormats.toggle({name:a6,params:a3,command:a8.command});V(this);return}var a7=a8.command?a8.command(s.extend({range:a4},a3)):null;at.trigger(this.element,"execute",{name:a6,command:a7});if(/undo|redo/i.test(a6)){this.undoRedoStack[a6]()}else{if(a7){if(!a7.managesUndoRedo){this.undoRedoStack.push(a7)}a7.editor=this;a7.exec();if(a7.async){a7.change=s.proxy(function(){V(this)},this);return}}}V(this)}}};s.fn.tEditor=function(a3){return at.create(this,{name:"tEditor",init:function(a4,a5){return new at.editor(a4,a5)},options:a3})};var ak={bold:[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}],italic:[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}],underline:[{tags:["span"],attr:{style:{textDecoration:"underline"}}}],strikethrough:[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}],justifyLeft:[{tags:H,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}],justifyCenter:[{tags:H,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}],justifyRight:[{tags:H,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}],justifyFull:[{tags:H,attr:{style:{textAlign:"justify"}}}]};function ae(a5,a4){for(var a3=0;a3=0){return a4[a3]}}}function X(a3){s.extend(this,a3);this.init=function(a4,a5){a4.attr({unselectable:"on",title:a5.title})};this.command=function(a4){return new a3.command(a4)};this.update=function(){};this.willDelayExecution=function(){return false}}X.exec=function(a4,a5,a3){a4.exec(a5,{value:a3})};function ai(a3){X.call(this,a3);this.command=function(a4){return new aK(s.extend(a4,{formatter:a3.formatter}))};this.update=function(a4,a8,a6){var a5=a6.isPending(this.name),a7=a3.finder.isFormatted(a8),a9=a5?!a7:a7;a4.toggleClass("t-state-active",a9)}}var Q=function(){return{isFormatted:function(){return false}}};var aQ={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found."};s.fn.tEditor.defaults={localization:aQ,formats:ak,encoded:true,stylesheets:[],dialogOptions:{modal:true,resizable:false,draggable:true,effects:{list:[{name:"toggle"}]}},fontName:[{Text:aQ.fontNameInherit,Value:"inherit"},{Text:"Arial",Value:"Arial,Helvetica,sans-serif"},{Text:"Courier New",Value:"'Courier New',Courier,monospace"},{Text:"Georgia",Value:"Georgia,serif"},{Text:"Impact",Value:"Impact,Charcoal,sans-serif"},{Text:"Lucida Console",Value:"'Lucida Console',Monaco,monospace"},{Text:"Tahoma",Value:"Tahoma,Geneva,sans-serif"},{Text:"Times New Roman",Value:"'Times New Roman',Times,serif"},{Text:"Trebuchet MS",Value:"'Trebuchet MS',Helvetica,sans-serif"},{Text:"Verdana",Value:"Verdana,Geneva,sans-serif"}],fontSize:[{Text:aQ.fontSizeInherit,Value:"inherit"},{Text:"1 (8pt)",Value:"xx-small"},{Text:"2 (10pt)",Value:"x-small"},{Text:"3 (12pt)",Value:"small"},{Text:"4 (14pt)",Value:"medium"},{Text:"5 (18pt)",Value:"large"},{Text:"6 (24pt)",Value:"x-large"},{Text:"7 (36pt)",Value:"xx-large"}],formatBlock:[{Text:"Paragraph",Value:"p"},{Text:"Quotation",Value:"blockquote"},{Text:"Heading 1",Value:"h1"},{Text:"Heading 2",Value:"h2"},{Text:"Heading 3",Value:"h3"},{Text:"Heading 4",Value:"h4"},{Text:"Heading 5",Value:"h5"},{Text:"Heading 6",Value:"h6"}],tools:{bold:new Y({key:"B",ctrl:true,format:ak.bold}),italic:new Y({key:"I",ctrl:true,format:ak.italic}),underline:new Y({key:"U",ctrl:true,format:ak.underline}),strikethrough:new Y({format:ak.strikethrough}),undo:{key:"Z",ctrl:true},redo:{key:"Y",ctrl:true},insertLineBreak:new X({key:13,shift:true,command:d}),insertParagraph:new X({key:13,command:aU}),justifyCenter:new P({format:ak.justifyCenter}),justifyLeft:new P({format:ak.justifyLeft}),justifyRight:new P({format:ak.justifyRight}),justifyFull:new P({format:ak.justifyFull}),insertUnorderedList:new aO({tag:"ul"}),insertOrderedList:new aO({tag:"ol"}),createLink:new X({key:"K",ctrl:true,command:aa}),unlink:new aV({key:"K",ctrl:true,shift:true}),insertImage:new X({command:aP}),indent:new X({command:o}),outdent:new ag(),insertHtml:new aT(),style:new ab(),fontName:new aD({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName"}),fontSize:new aD({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize"}),formatBlock:new n(),foreColor:new a0({cssAttr:"color",domAttr:"color",name:"foreColor"}),backColor:new a0({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor"})}}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.editing.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.editing.min.js new file mode 100644 index 000000000..e6cd9f878 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.editing.min.js @@ -0,0 +1 @@ +(function(i){var c=i.telerik,k=/^\/Date\((.*?)\)\/$/,g=/[0#?]/,l=/[npc?]/;c.scripts.push("telerik.grid.editing.js");var h=function(n){this.formId=n;this._isBuild=false;var p="tUnobtrusiveValidation";var o="tUnobtrusiveContainer";var m=this.unobtrusive={adapters:[],parseElement:function(q,t){var r=i(q),s=r.parents("form")[0],v,u,w;if(!s){return}v=m.validationInfo(s);v.options.rules[q.name]=u={};v.options.messages[q.name]=w={};i.each(this.adapters,function(){var x="data-val-"+this.name,y=r.attr(x),z={};if(y!==undefined){x+="-";i.each(this.params,function(){z[this]=r.attr(x+this)});this.adapt({element:q,form:s,message:y,params:z,rules:u,messages:w})}});if(!t){v.attachValidation()}},parse:function(q){i(q).find(":input[data-val=true]").each(function(){m.parseElement(this,true)});i(q).each(function(){var r=m.validationInfo(this);if(r){r.attachValidation()}})},onError:function(q,t){var s=i(this).find("[data-valmsg-for='"+t[0].name+"']"),r=i.parseJSON(s.attr("data-valmsg-replace"))!==false;s.removeClass("field-validation-valid").addClass("field-validation-error");q.data(o,s);if(r){s.empty();q.removeClass("input-validation-error").appendTo(s)}else{q.hide()}},onErrors:function(q,t){var s=i(this).find("[data-valmsg-summary=true]"),r=s.find("ul");if(r&&r.length&&t.errorList.length){r.empty();s.addClass("validation-summary-errors").removeClass("validation-summary-valid");i.each(t.errorList,function(){i("
  • ").html(this.message).appendTo(r)})}},onSuccess:function(q){var s=q.data(o),r=i.parseJSON(s.attr("data-valmsg-replace"));if(s){s.addClass("field-valiion-valid").removeClass("field-validation-error");q.removeData(o);if(r){s.empty()}}},validationInfo:function(q){var s=i(q),r=s.data(p);if(!r){r={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:i.proxy(m.onError,q),invalidHandler:i.proxy(m.onErrors,q),messages:{},rules:{},success:i.proxy(m.onSuccess,q)},attachValidation:function(){s.validate(this.options)},validate:function(){s.validate();return s.valid()}};s.data(p,r)}return r}}};h.prototype={build:function(){if(this._isBuild){return}this._isBuild=true;var q=[];function o(t,s,r){t.rules[s]=r;if(t.message){t.messages[s]=t.message}}function p(r){return r.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function n(r){return r.substr(0,r.lastIndexOf(".")+1)}function m(s,r){if(s.indexOf("*.")===0){s=s.replace("*.",r)}return s}q=this.unobtrusive.adapters;q.add=function(t,s,r){if(!r){r=s;s=[]}this.push({name:t,params:s,adapt:r});return this};q.addBool=function(s,r){return this.add(s,function(t){o(t,r||s,true)})};q.addMinMax=function(u,s,w,r,t,v){return this.add(u,[t||"min",v||"max"],function(z){var x=z.params.min,y=z.params.max;if(x&&y){o(z,r,[x,y])}else{if(x){o(z,s,x)}else{if(y){o(z,w,y)}}}})};q.addSingleVal=function(s,t,r){return this.add(s,[t||"val"],function(u){o(u,r||s,u.params[t])})};q.addSingleVal("accept","exts").addSingleVal("regex","pattern");q.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");q.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");q.add("equalto",["other"],function(s){var r=i(s.form).find(":input[name="+s.params.other+"]")[0];o(s,"equalTo",r)});q.add("required",function(r){if(r.element.tagName.toUpperCase()!=="INPUT"||r.element.type.toUpperCase()!=="CHECKBOX"){o(r,"required",true)}});q.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},s=n(t.element.name);i.each(p(t.params.additionalfields||t.element.name),function(u,w){var v=m(w,s);r.data[v]=function(){return i(t.form).find(":input[name='"+v+"']").val()}});o(t,"remote",r)});if(i.validator.unobtrusive&&i.validator.unobtrusive.adapters){i.extend(q,i.validator.unobtrusive.adapters)}i.validator.addMethod("regex",function(r,t,s){if(this.optional(t)){return true}var u=new RegExp(s).exec(r);return u&&u.index==0&&u[0].length==r.length});i.validator.addMethod("number",function(r,u){var s=c.cultureInfo.numericgroupsize;if(s){var t=new c.stringBuilder();t.cat("^-?(?:\\d+|\\d{1,").cat(s).cat("}(?:").cat(c.cultureInfo.numericgroupseparator).cat("\\d{").cat(s).cat("})+)(?:\\").cat(c.cultureInfo.numericdecimalseparator).cat("\\d+)?$");return this.optional(u)||(t&&new RegExp(t.string()).test(r))}return this.optional(u)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(r)})},parse:function(){this.build();this.unobtrusive.parse(this.formId)}};var f=function(m){this.validationMetaData=m};f.prototype={build:function(q){i.validator.addMethod("regex",function(C,E,D){if(this.optional(E)){return true}var F=new RegExp(D).exec(C);return F&&F.index==0&&F[0].length==C.length});i.validator.addMethod("number",function(C,F){var D=c.cultureInfo.numericgroupsize;var E=new c.stringBuilder();E.cat("^-?(?:\\d+|\\d{1,").cat(D).cat("}(?:").cat(c.cultureInfo.numericgroupseparator).cat("\\d{").cat(D).cat("})+)(?:\\").cat(c.cultureInfo.numericdecimalseparator).cat("\\d+)?$");return this.optional(F)||new RegExp(E.string()).test(C)});function v(D,C,E){D.range=[C,E]}function r(C,D){C.regex=D}function B(C){C.required=true}function x(C,D){C.maxlength=D}function o(C,D,E){C[D]=E}function z(F){var C={};for(var E=0;E-1){var o=q.substring(0,p);var n=m[o]||{};n[q.substring(p+1)]=m[q];m[o]=j(n);delete m[q]}}return m}function d(n){var o,m,p;for(o in n){m=n[o];if(typeof m==="string"){p=k.exec(m);if(p){n[o]=new Date(parseInt(p[1]))}}else{if(i.isPlainObject(m)){d(m)}}}}c.editing.initialize=function(n){i.extend(n,this.implementation);var m=i(n.element);n.modelBinder=new c.grid.ModelBinder();n.formViewBinder=new c.grid.FormViewBinder({date:function(x,u){var w=n.columnFromMember(x);var v=w?w.format:"";return c.formatString(v||"{0:G}",u)}});if(n.isAjax()){if(n.editing.mode=="InCell"){d(n.editing.defaultDataItem||{});n.changeLog=new c.grid.ChangeLog(n.pageSize||(n.data&&n.data.length)||0);i(n.element).bind("dataBound",function(){n.changeLog.clear();n.valid=true;n.td=null});n.cellEditor=new c.grid.CellEditor({columns:n.columns,cellIndex:function(u){return n.cellIndex(u)},id:n.formId(),bind:i.proxy(n.formViewBinder.bind,n.formViewBinder),validate:i.proxy(n.validation,n)});m.delegate(".t-grid-save-changes:not(.t-state-disabled)","click",c.stopAll(function(u){n.submitChanges()}));m.delegate(".t-grid-cancel-changes","click",c.stopAll(function(u){n.cancelChanges()}));n.hasChanges=function(){return n.changeLog.dirty()};n.submitChanges=function(){if(n.changeLog.dirty()&&n.validate()){var u=n.changeLog.inserted;var x=i.grep(n.changeLog.updated,function(z){return z!=undefined});var w=i.grep(n.changeLog.deleted,function(z){return z!=undefined});var v={};if(c.trigger(n.element,"submitChanges",{inserted:u,updated:x,deleted:w,values:v})){return}var y=n.ws?{inserted:i.map(u,function(z){return n._convert(z)}),updated:i.map(x,function(z){return n._convert(z)}),deleted:i.map(w,function(z){return n._convert(z)})}:n.changeLog.serialize(u,x,w);n.sendValues(i.extend(y,v),"updateUrl")}};n.cancelChanges=function(){n.changeLog.clear();n.valid=true;n.td=null;n.ajaxRequest()};n.cellIndex=function(u){return i(u).parent().find("td:not(.t-group-cell,.t-hierarchy-cell)").index(u)};n.rowIndex=function(u){return i(u).parent().find("tr:not(.t-detail-row,.t-grouping-row)").index(u)};var r;n.valid=true;n.editCell=function(x){var u=n.columns[n.cellIndex(x)];if(n.valid&&(u&&!u.readonly)){n.td=x;if(n.form().length){i.data(n.form()[0],"validator",null)}x=i(x);var w=x.parent();var y=n.rowIndex(w);var v=n.changeLog.get(y)||n.dataItem(w);r=x.find(".t-dirty");n.cellEditor.edit(x,v);c.trigger(n.element,"edit",{mode:w.hasClass("t-grid-new-row")?"insert":"edit",form:n.form()[0],dataItem:v,cell:x[0]})}};n.saveCell=function(x){n.valid=n.validate();if(n.valid){x=i(x);var w=x.parent();var v=n.dataItem(w);var y=j(n.modelBinder.bind(x));var u=false;if(c.trigger(n.element,"save",{mode:w.hasClass("t-grid-new-row")?"insert":"edit",dataItem:v,values:y,form:n.form()[0],cell:x[0]})){return}if(w.hasClass("t-grid-new-row")){n.changeLog.insert(n.rowIndex(w),y)}else{u=n.changeLog.update(n.rowIndex(w),v,y)}n.cellEditor.display(x,i.extend(true,{},v,y));if(u||w.hasClass("t-grid-new-row")){r=i('')}if(r&&r.length){r.prependTo(n.td)}n.td=null}};n.cancelCell=function(x){x=i(x);var w=x.parent(),u=n.rowIndex(w),v=n.changeLog.get(u)||n.dataItem(w);n.valid=true;n.cellEditor.display(x,v);if(r&&r.length){r.prependTo(n.td)}n.td=null};n.td=null;n.$tbody.delegate("tr:not(.t-grouping-row,.t-no-data) > td:not(.t-detail-cell,.t-grid-edit-cell,.t-group-cell,.t-hierarchy-cell)",n.editing.beginEdit||"click",function(u){if(i(this).closest("tbody")[0]==n.$tbody[0]){n.editCell(this)}});i(document).mousedown(function(u){if(n.td&&!i.contains(n.td,u.target)&&n.td!=u.target&&!i(u.target).closest(".t-animation-container").length){n.saveCell(n.td)}})}else{if(n.editing.beginEdit){n.$tbody.delegate("tr:not(.t-detail-row,.t-grouping-row,.t-grid-edit-row,.t-group-footer)",n.editing.beginEdit,function(u){if(!i(u.target).is(":button,a,:input,a>.t-icon")){n.editRow(i(this))}})}}m.delegate(".t-grid-edit","click",c.stopAll(function(u){n.editRow(i(this).closest("tr"))})).delegate(".t-grid-delete","click",c.stopAll(function(u){n.deleteRow(i(this).closest("tr"))})).delegate(".t-grid-add","click",c.stopAll(function(u){n.addRow()}))}else{m.delegate(".t-grid-delete","click",c.stop(function(u){if(n.editing.confirmDelete!==false&&!confirm(n.localization.deleteConfirmation)){u.preventDefault()}}));n.validation()}n.errorView=new c.grid.ErrorView();var t=new c.grid.DataCellBuilder({columns:n.columns,rowTemplate:n.rowTemplate});var o=i.grep(n.columns,function(u){return u.commands&&i.grep(u.commands,function(v){return v.name=="edit"})[0]})[0];if(!o){o={commands:[{name:"edit",buttonType:"Text"}]};o.insert=n.insertFor(o);o.edit=n.editFor(o)}var p=new c.grid.FormContainerBuilder({html:function(){return unescape(n.editing.editor)},insert:function(){return o.insert()},edit:function(){return o.edit()}});var s=n.editing.mode;var q=function(){return(n.groups||[]).length};if(s=="InLine"){n.rowEditor=new c.grid.Editor({id:n.formId(),cancel:t.display,edit:t.edit,insert:t.insert,groups:q,details:n.detail})}else{if(s=="InForm"){n.rowEditor=new c.grid.Editor({id:n.formId(),cancel:t.display,groups:q,details:n.detail,edit:function(){return''+p.edit()+""},insert:function(){return''+p.insert()+""}})}else{if(s=="PopUp"){n.rowEditor=new c.grid.PopUpEditor({id:n.formId(),edit:p.edit,container:n.element,settings:n.editing.popup,insert:p.insert,editTitle:n.localization.edit,insertTitle:n.localization.insert})}else{t=new c.grid.CellBuilder({columns:n.columns});n.rowEditor=new c.grid.Editor({id:n.formId(),cancel:t.display,edit:t.edit,insert:t.insert})}}}if(!n.keyboardNavigation){m.delegate(":input:not(.t-button):not(textarea)","keydown",c.stop(function(v){if(v.keyCode==13||v.keyCode==27){v.preventDefault();var u={13:".t-grid-update, .t-grid-insert",27:".t-grid-cancel"};i(this).closest("tr").find(u[v.keyCode]).click()}}))}};c.editing.implementation={editFor:function(n){var o=this.localization;if(n.commands){var q=i.grep(n.commands,function(s){return s.name=="edit"})[0];if(q){var r=c.grid.ButtonBuilder.create(i.extend({text:o.update},q,{name:"update"}));var p=c.grid.ButtonBuilder.create(i.extend({text:o.cancel},q,{name:"cancel"}));var m=r.build()+p.build();return function(){return m}}else{return function(){return""}}}else{if(!n.readonly&&n.editor){return function(){return unescape(n.editor)}}}return this.displayFor(n)},insertFor:function(n){var o=this.localization;if(n.commands){var q=i.grep(n.commands,function(s){return s.name=="edit"})[0];if(q){var r=c.grid.ButtonBuilder.create(i.extend({text:o.insert},q,{name:"insert"}));var p=c.grid.ButtonBuilder.create(i.extend({text:o.cancel},q,{name:"cancel"}));var m=r.build()+p.build();return function(){return m}}else{return function(){return""}}}else{return this.editFor(n)}},insertRow:function(m){if(this.validate()){var n=this.extractValues(m);if(c.trigger(this.element,"save",{mode:"insert",values:n,form:this.form()[0]})){return}this.sendValues(n,"insertUrl")}},updateRow:function(m){if(this.validate()){var n=this.dataItem(m.data("tr")||m);var o=this.extractValues(m,(this.editing.mode!="InCell"||!this.ws));if(c.trigger(this.element,"save",{mode:"edit",dataItem:n,values:o,form:this.form()[0]})){return}if(this.editing.mode=="InCell"){o=i.extend(n,o)}d(o);this.sendValues(o,"updateUrl")}},deleteRow:function(m){var n=this.dataItem(m);if(this.editing.mode!="InCell"){var o=this.extractValues(m,true);if(c.trigger(this.element,"delete",{dataItem:n,values:o})){return}if(!this._isServerOperation()&&this.dataSource){this.deletedIds.push(this.dataSource.id(n))}if(this.editing.confirmDelete===false||confirm(this.localization.deleteConfirmation)){this.sendValues(o,"deleteUrl")}}else{if(this.editing.confirmDelete===false||confirm(this.localization.deleteConfirmation)){this.changeLog.erase(this.rowIndex(m),n);if(this.td&&i.contains(m[0],this.td)){this.td=null;this.valid=true}if(!this._isServerOperation()&&this.dataSource){this.deletedIds.push(this.dataSource.id(n))}this.cancelRow(m);m.hide()}}},editRow:function(m){var o=this.dataItem(m);if(this.editing.mode!="InCell"){b();var p=this.rowEditor.edit(m,o);var n=this.form();n.undelegate(".t-grid-update").delegate(".t-grid-update","click",c.stopAll(i.proxy(function(){this.updateRow(p)},this))).undelegate(".t-grid-cancel").delegate(".t-grid-cancel","click",c.stopAll(i.proxy(function(){this.cancelRow(m)},this)));this.formViewBinder.bind(p,o);c.trigger(this.element,"edit",{mode:"edit",form:n[0],dataItem:o});this.validation()}else{if(this.valid){this.rowEditor.edit(m,o);this.td=row.find(":input:visible:first").focus().closest("td")[0];this.validation()}}},form:function(){return i("#"+this.formId())},addRow:function(){var p=i.extend(true,{},this.editing.defaultDataItem);if(this.editing.mode!="InCell"){b();var r=this.rowEditor.insert(this.$tbody,p);var n=this.form();n.undelegate(".t-grid-insert").delegate(".t-grid-insert","click",c.stopAll(i.proxy(function(){this.insertRow(r)},this))).undelegate(".t-grid-cancel").delegate(".t-grid-cancel","click",c.stopAll(i.proxy(function(){this.cancelRow(r)},this)));c.trigger(this.element,"edit",{mode:"insert",form:n[0],dataItem:p});this.validation()}else{if(this.valid){var o=this.rowEditor.insert(this.$tbody,p);this.changeLog.insert(p);this.td=o.find(":input:enabled:visible:first").focus().closest("td")[0];for(var m=this.columns.length-1;m>=0;m--){if(!this.columns[m].readonly){var q=o.children().eq(m);if(q[0]!=this.td){q.prepend('')}}}c.trigger(this.element,"edit",{mode:"insert",form:this.form()[0],dataItem:p,cell:this.td});this.validation()}}if(this.editing.mode!="PopUp"){this.$tbody.find(" > tr.t-no-data").hide()}},extractValues:function(r,o){var p=this.modelBinder.bind(r);if(o){var q=this.dataItem(r.data("tr")||r);for(var n in this.dataKeys){var m=this.valueFor({member:n})(q);if(m instanceof Date){m=c.formatString("{0:G}",m)}p[this.ws?n:this.dataKeys[n]]=m}}return p},cancelRow:function(m){if(!m.length){return}var n=this.dataItem(m);this.rowEditor.cancel(m,n);if(m.is(".t-grid-new-row")){this.$tbody.find(" > tr.t-no-data").show();return}c.trigger(this.element,"rowDataBound",{row:m[0],dataItem:n})},validate:function(){var m=this.form();if(m.length){var o=m.validate();var n=o.form();if(o.pendingRequest){o.formSubmitted=true;return false}return n}return true},cancel:function(){this.cancelRow(this.$tbody.find(">.t-grid-edit-row"))},_dataSource:function(){var m=this,p=this._dataSourceOptions(),o=[],n=[];i.each(m.dataKeys,function(r,q){o.push(q);n.push(c.getter(r))});if(m.isAjax()){i.extend(true,p,{model:c.Model.define({id:function(r,q){var s;if(q===undefined){return i.map(n,function(t){return t(r)}).join("-")}else{s=q.split("-");i.each(o,function(u,t){r[t]=s[u]})}}})})}m.dataSource=new c.DataSource(p)},_convert:function(o){for(var s in o){var n=o[s];if(n instanceof Date){var p=this.columnFromMember(s);var m="{0:G}";if(p&&p.format){m=p.format}o[s]=this.ws?"\\/Date("+n.getTime()+")\\/":c.formatString(m,n)}if(typeof n==="number"){var t="numeric",p=this.columnFromMember(s),m=(p&&p.format?p.format:"N").toLowerCase(),r={n:t,p:"percent",c:"currency","#":t,"0":t};n=n.toString();var q=m.match(l)||m.match(g);o[s]=q?n.replace(".",c.cultureInfo[r[q]+"decimalseparator"]):n}if(n==undefined){delete o[s]}if(i.isPlainObject(n)){this._convert(n)}}return o},sendValues:function(p,m){if(this.editing.mode!="InCell"||!this.ws){this._convert(p);for(var n in this.dataKeys){var o=this.valueFor({member:n})(p);if(o!=undefined){p[this.ws?n:this.dataKeys[n]]=o}}}this.showBusy();i.ajax(this.ajaxOptions({data:this.ws?(this.editing.mode=="InCell"?p:{value:p}):p,url:this.url(m),hasErrors:i.proxy(this.hasErrors,this),displayErrors:i.proxy(this.displayErrors,this)}))},displayErrors:function(m){this.errorView.bind(i("#"+this.formId()),m.modelState)},hasErrors:function(m){var n=m.modelState;var o=false;if(n){i.each(n,function(p,q){if("errors" in q){o=true;return false}})}return o},formId:function(){return i(this.element).attr("id")+"form"},validation:function(){this.validator().parse()},validator:function(){if(this.validationMetadata){return new f(this.validationMetadata)}else{return new h("#"+this.formId())}}};c.grid.ModelBinder=function(){this.binders={":input.t-autocomplete":function(){return i(this).val()},".t-numerictextbox :input":function(){return i(this).data("tTextBox").value()},":input:not(.t-input):not(:radio),:radio:checked":function(){return i(this).val()},":checkbox":function(){return i(this).is(":checked")},".t-datepicker :input":function(){return i(this).data("tDatePicker").value()},".t-timepicker :input":function(){return i(this).data("tTimePicker").value()},".t-datetimepicker :input":function(){return i(this).data("tDateTimePicker").value()},".t-editor textarea:hidden":function(){var m=i(this).closest(".t-editor").data("tEditor");if(m.encoded){return m.encodedValue()}return m.value()}};this.bind=function(m){var n={};i.each(this.binders,function(o,p){m.find(o).each(function(){if(!this.disabled){n[this.name]=p.call(this)}})});return n}};c.grid.FormViewBinder=function(o){this.converters=o||{};this.binders={":input:not(:radio)":function(p){if(typeof p=="boolean"){p=p+""}i(this).val(p)},":checkbox":function(p){i(this).attr("checked",p==true)},":radio":function(q){var p=i(this).val();if(typeof q=="boolean"){p=p.toLowerCase()}if(p==q.toString()){i(this).attr("checked",true)}}};function n(p){return function(q){i(this).data(p).value(q)}}function m(){return function(p){i(this).closest(".t-editor").data("tEditor").value(p)}}this.binders[".t-numerictextbox :input"]=n("tTextBox");this.binders[".t-dropdown :input:hidden"]=n("tDropDownList");this.binders[".t-datepicker :input"]=n("tDatePicker");this.binders[".t-datetimepicker :input"]=n("tDateTimePicker");this.binders[".t-timepicker :input"]=n("tTimePicker");this.binders[".t-slider :input"]=n("tSlider");this.binders[".t-combobox :input:hidden"]=n("tComboBox");this.binders[".t-editor textarea:hidden"]=m();this.evaluate=function(q,t){if(t!=null){var p=q,r=false,v=t.split(".");while(v.length){var w=v.shift();if(w.indexOf("[")>-1){p=new Function("d","try { return d."+w+"}catch(e){}")(p);if(p!=null){r=true}}else{if(p!=null&&typeof(p[w])!="undefined"){p=p[w];r=true}else{if(r){r=false;break}}}}if(r&&!i.isPlainObject(p)){var s=k.exec(p);if(s){p=new Date(parseInt(s[1]))}var u=c.getType(p);if(u in this.converters){p=this.converters[u](t,p)}return p}}};this.bind=function(r,q){var p;i.each(this.binders,i.proxy(function(s,t){r.find(s).each(i.proxy(function(v,w){var u=this.evaluate(q,w.name);if(u!=p){t.call(w,u)}},this))},this))}};c.grid.CellBuilder=function(m){function n(p,o){return i.map(m.columns,function(q,r){var s;if(r==0&&o=="insert"){s="t-grid-edit-cell"}else{if(r==m.columns.length-1){s="t-last"}}return""+q[r==0?o:"display"](p)+""}).join("")}this.edit=function(o){return n(o,"edit")};this.insert=function(o){return n(o,"insert")};this.display=function(o){return n(o,"display")}};c.grid.DataCellBuilder=function(m){function n(p,o){return i.map(m.columns,function(r,q){return"':">")+r[o](p)+""}).join("")}this.edit=function(o){return n(o,"edit")};this.insert=function(o){return n(o,"insert")};this.display=function(o){if(m.rowTemplate){return''+m.rowTemplate(o)+""}return n(o,"display")}};c.grid.FormContainerBuilder=function(m){function n(o){return'
    '+m.html()+m[o]()+"
    "}this.edit=function(){return n("edit")};this.insert=function(){return n("insert")}};function e(m){return i("
    ",{className:"t-edit-form",id:m}).submit(c.preventDefault)}c.grid.PopUpEditor=function(o){var n;function m(){var q=n.data("tWindow");q&&q.close();n.remove()}function p(r,q){n=i("
    ",{id:o.container.id+"PopUp"}).appendTo(o.container).css({top:0,left:"50%",marginLeft:-90}).tWindow(o.settings).find(".t-window-content").append(o[q](r)).wrapInner(e(o.id)).end();i(o.container).one("dataBound",m);n.find(".t-close").click(c.stopAll(m)).end().data("tWindow").open().title(o[q+"Title"]);return n}this.edit=function(q,r){q.addClass("t-grid-edit-row");return p(r,"edit").data("tr",q)};this.insert=function(q,r){return p(r,"insert")};this.cancel=function(q){q.removeClass("t-grid-edit-row");m()}};c.grid.Editor=function(o){var n=o.groups||function(){return 0};function m(p,q,r){var s=p.find(".t-group-cell,.t-hierarchy-cell");p.addClass("t-grid-edit-row").empty().append(s).append(o[r](q)).closest("table").wrap(function(){if(!i(this).parent().is("form")){return e(o.id)}})}this.cancel=function(p,q){if(p.is(".t-grid-new-row")){p.remove()}else{m(p,q,"cancel");p.removeClass("t-grid-edit-row")}};this.insert=function(r,q){var s=''+new Array(n()+1).join('')+((o.details)?'':"")+"";var p=i(s);r.prepend(p);m(p,q,"insert");return p};this.edit=function(p,q){m(p,q,"edit");return p}};c.grid.CellEditor=function(m){this.edit=function(p,o){var n=m.columns[m.cellIndex(p)];if(!n.readonly){p.parent().addClass("t-grid-edit-row").end().empty().html(n.edit(o)).closest("table").wrap(function(){if(!i(this).parent().is("form")){return e(m.id)}});m.bind(p,o);m.validate();p.find(":input:visible:first").trigger("focusin").focus();p.addClass("t-grid-edit-cell")}return !n.readonly};this.display=function(p,o){var n=m.columns[m.cellIndex(p)];p.removeClass("t-grid-edit-cell").empty().html(n.display(o)).parent().removeClass("t-grid-edit-row")}};c.grid.ChangeLog=function(n){this.insert=function(o,q){if(q==undefined){q=o;this.inserted.splice(0,0,q)}else{var p=this.inserted[o];if(p===undefined){this.inserted.splice(0,0,q)}else{i.extend(p,q)}}};this.get=function(p){var o=this.inserted[p];if(this.inserted[p]){return o}return this.updated[p-this.inserted.length]};this.update=function(u,r,q){u=u-this.inserted.length;var v=this.updated[u]||r||{};var t=false;for(var o in q){var s=v[o],p=q[o];if(s instanceof Date){if(p instanceof Date&&p.getTime()!==s.getTime()){t=true}}else{if(p!==s){t=true}}}if(t){this.updated[u]=i.extend({},v,q)}return t};this.erase=function(p,r){var o=this.inserted[p];if(o){this.inserted.splice(p,1)}else{p=p-this.inserted.length;var q=this.updated[p];if(q){delete this.updated[p]}this.deleted[p]=r}};this.clear=function(){this.updated=new Array(n);this.deleted=new Array(n);this.inserted=[]};function m(p,t,v){var w={};for(var u=0,q=0;u .t-grid-content",g.element).bind("scroll",function(){g.hideFilter()});c(document).click(function(h){if(h.which!=3){g.hideFilter()}});g.$header.find(".t-grid-filter").click(c.proxy(g.showFilter,g)).hover(function(){c(this).toggleClass("t-state-hover")})};b.filtering.implementation={createFilterCommands:function(h,g){var j={};c.each(this.localization,function(n,k){var l="filter"+g.type;var m=n.indexOf(l);if(m>-1){j[n.substring(m+l.length).toLowerCase()]=k}});if(g.type=="String"){var i=j.endswith;delete j.endswith;j.endswith=i}h.cat('")},createTypeSpecificInput:function(j,g,h,i){if(g.type=="Date"){j.cat('
    ').cat('').cat('
    ')}else{if(g.type=="Boolean"){j.cat('
    ').cat('
    ")}else{if(g.type=="Enum"){j.cat("
    ")}else{if(g.type=="Number"){j.cat('
    ').cat('').cat("
    ")}else{j.cat('')}}}}},createFilterMenu:function(g){var j=new b.stringBuilder();j.cat('
    ");var i=c(j.string());c.each(g.filters||[],function(k){i.find(".t-filter-operator:eq("+k+")").val(this.operator).end().find(":text:eq("+k+"),select:not(.t-filter-operator):eq("+k+")").val(a(g,this.value));if(g.type=="Boolean"){i.find(":radio[id$="+this.value+"]").attr("checked",true)}});return i.appendTo(this.element).find(".t-datepicker .t-input").each(function(){c(this).tDatePicker({format:f(g)})}).end().find(".t-numerictextbox .t-input").each(function(){c(this).tTextBox({type:"numeric",minValue:null,maxValue:null,numFormat:"",groupSeparator:""})}).end()},showFilter:function(m){m.stopPropagation();var g=c(m.target).closest(".t-grid-filter");this.hideFilter(function(){return this.parentNode!=g[0]});var k=g.data("filter");if(!k){var h=this.columns[this.$columns().index(g.parent())];k=this.createFilterMenu(h).data("column",h).click(function(p){p.stopPropagation();if(c(p.target).parents(".t-datepicker").length==0){c(".t-datepicker .t-input",this).each(function(){c(this).data("tDatePicker").hidePopup()})}}).find(".t-filter-button").click(c.proxy(this.filterClick,this)).end().find(".t-clear-button").click(c.proxy(this.clearClick,this)).end().find("input[type=text]").keyup(c.proxy(function(p){if(p.keyCode==13){this.filterClick(p)}},this)).end();g.data("filter",k)}var l=0;c(this.element).find("> .t-grouping-header, > .t-grid-toolbar").add(this.$header).each(function(){l+=this.offsetHeight});var i={top:l};var n=-this.$headerWrap.scrollLeft()-1;g.parent().add(g.parent().prevAll("th")).each(function(){if(c(this).css("display")!="none"){n+=this.offsetWidth}});var j=n-g.outerWidth();var o=k.outerWidth()||k.find(".t-group").outerWidth();if(j+o>this.$header.outerWidth()){j=n-o+1}if(c(this.element).closest(".t-rtl").length){i.right=j+(c.browser.mozilla||c.browser.safari?18:0)}else{i.left=j}k.css(i);b.fx[k.find(".t-filter-options").is(":visible")?"rewind":"play"](d,k.find(".t-filter-options"),{direction:"bottom"})},hideFilter:function(g){g=g||function(){return true};c(".t-grid .t-animation-container").find(".t-datepicker .t-input").each(function(){c(this).data("tDatePicker").hidePopup()}).end().find(".t-filter-options").filter(g).each(function(){b.fx.rewind(d,c(this),{direction:"bottom"})})},clearClick:function(i){i.preventDefault();var h=c(i.target);var g=h.closest(".t-animation-container").data("column");g.filters=null;h.parent().find("input").removeAttr("checked").removeClass("t-state-error").not(":radio").val("").end().end().find("select").removeClass("t-state-error").find("option:first").attr("selected","selected");this.filter(this.filterExpr())},filterClick:function(j){j.preventDefault();var i=c(j.target);var g=i.closest(".t-animation-container").data("column");g.filters=[];var h=false;i.closest(".t-filter-options").find("input[type=text]:visible,select:not(.t-filter-operator)").each(c.proxy(function(p,n){var l=c(n);var k=c.trim(l.val());if(!k){l.removeClass("t-state-error");return true}var m=this.isValidFilterValue(g,k);l.toggleClass("t-state-error",!m);if(!m){h=true;return true}var o=l.prev("select").val()||l.parent().prev("select").val()||l.parent().parent().prev("select").val();if(k!=this.localization.filterSelectValue){g.filters.push({operator:o,value:k})}},this));i.parent().find("input:checked").each(c.proxy(function(m,l){var n=c(l);var k=c(l).attr("value");g.filters.push({operator:"eq",value:k})},this));if(!h){if(g.filters.length>0){this.filter(this.filterExpr())}else{g.filters=null}this.hideFilter()}},isValidFilterValue:function(g,h){if(g.type=="Date"){var i;if(h.indexOf("Date(")>-1){i=new Date(parseInt(h.replace(/^\/Date\((.*?)\)\/$/,"$1")))}else{i=b.datetime.parse({value:h,format:f(g)})}return i!=undefined}return true},encodeFilterValue:function(g,h){switch(g.type){case"String":return"'"+h.replace(e,"''")+"'";case"Date":var i;if(h.indexOf("Date(")>-1){i=new Date(parseInt(h.replace(/^\/Date\((.*?)\)\/$/,"$1")))}else{i=b.datetime.parse({value:h,format:f(g)}).toDate()}return"datetime'"+b.formatString("{0:yyyy-MM-ddTHH-mm-ss}",i)+"'"}return h},filterExpr:function(){var h=[];for(var g=0;g');f.$groupHeader=d("> .t-grouping-header",f.element);function h(){var k=d.map(f.$groupHeader.find(".t-group-indicator"),function(l){var m=d(l);var n=m.offset().left;var o=m.outerWidth();return{left:n,right:n+o,width:o,$group:m}});return{first:k[0],all:k,last:k[k.length-1]}}function g(u){var l=u.$cue.text();if(!d.contains(f.element,u.target)||!d(u.target).closest(".t-grouping-header").length||(f.groupFromTitle(l)&&u.$draggable.closest(".t-header").length)){f.$groupDropCue.remove();return}var w=d(f.element),o=w.find("> .t-grid-toolbar"),m=o.outerHeight()+c,q=h(),p=w.closest(".t-rtl").length;if(!q.all.length){var r=p?o.width()-a:a;f.$groupDropCue.css({top:m,left:r}).appendTo(f.$groupHeader);return}var v=q.first;var t=q.last;var k=parseInt(v.$group.css("marginLeft"));var s=parseInt(v.$group.css("marginRight"));var n=d.grep(q.all,function(x){return u.pageX>=x.left-k-s&&u.pageX<=x.right})[0];if(!n&&v){if(!p&&u.pageX=0){f.groups.splice(d.inArray(m,f.groups),1);f.groups.splice(o,0,m)}f.groupBy=d.map(f.groups,function(q){return q.member+"-"+q.order}).join("~");if(this.isAjax()){var p=this.$groupHeader.find('div:contains("'+l+'")');if(p.length==0){var k=new d.telerik.stringBuilder().cat('").string();p=d(k).appendTo(this.$groupHeader)}if(this.$groupDropCue.is(":visible")){p.insertBefore(this.$groupDropCue)}p.find(".t-link .t-icon").toggleClass("t-arrow-up-small",m.order=="asc").toggleClass("t-arrow-down-small",m.order=="desc").html("("+(m.order=="asc"?f.localization.sortedAsc:f.localization.sortedDesc)+")");this.ajaxRequest()}else{this.serverRequest()}};f.unGroup=function(l){var k=f.groupFromTitle(l);f.groups.splice(d.inArray(k,f.groups),1);if(f.groups.length==0){f.$groupHeader.html(f.localization.groupHint)}f.groupBy=d.map(f.groups,function(m){return m.member+"-"+m.order}).join("~");if(f.isAjax()){f.$groupHeader.find('div:contains("'+k.title+'")').remove();f.ajaxRequest()}else{f.serverRequest()}},f.normalizeColumns=function(n){var o=f.groups.length;var m=n-f.$tbody.parent().find(" > colgroup > col").length;if(m==0){return}var p=f.$tbody.parent().add(f.$headerWrap.find("table")).add(f.$footer.find("table"));if(d.browser.msie){if(m>0){d(new b.stringBuilder().rep('',m).string()).prependTo(p.find("colgroup"));d(new b.stringBuilder().rep(' ',m).string()).insertBefore(p.find("th.t-header:first"));d(new b.stringBuilder().rep(' ',m).string()).insertBefore(p.find("tr.t-footer-template > td:first"))}else{p.find("th:lt("+Math.abs(m)+"), tr.t-footer-template > td:lt("+Math.abs(m)+")").remove().end().find("col:lt("+Math.abs(m)+")").remove()}var k=[];var l=0;d("table, .t-grid-bottom",f.element).each(function(){k.push(this.parentNode)}).appendTo(d("
    ")).each(function(){k[l++].appendChild(this)})}else{p.find("col.t-group-col").remove();d(new b.stringBuilder().rep('',o).string()).prependTo(p.find("colgroup"));p.find("th.t-group-cell").remove();p.find("tr.t-footer-template > td.t-group-cell").remove();d(new b.stringBuilder().rep(' ',o).string()).insertBefore(p.find("th.t-header:first"));d(new b.stringBuilder().rep(' ',o).string()).insertBefore(p.find("tr.t-footer-template > td:first"))}},f.bindGroup=function(n,r,q,p){var o=f.groups[p];var t=n.value;var m=d.grep(f.columns,function(l){return o.member==l.member})[0];if(m&&(m.format||m.type=="Date")){t=b.formatString(m.format||"{0:G}",t)}q.cat('').rep('',p).cat('

    ');if(m){q.cat(m.groupHeader(d.extend({Title:o.title,Key:t},f._mapAggregates(n.aggregates[m.member]))))}else{q.cat(o.title+": "+t)}q.cat("

    ");if(n.hasSubgroups){for(var k=0,s=n.items.length;k').rep('',f.groups.length);d.each(f.columns,function(){q.cat("");if(this.groupFooter){q.cat(this.groupFooter(f._mapAggregates(n.aggregates[this.member])))}q.cat("")});q.cat("")}}}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.min.js new file mode 100644 index 000000000..55d153d1a --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.min.js @@ -0,0 +1 @@ +(function(e){var d={TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F12:123};var k=e.telerik;var c=/"+\\\/Date\((.*?)\)\\\/"+/g;var g="tr:not(.t-grouping-row,.t-group-footer,.t-detail-row,.t-no-data,.t-footer-template):visible",f=">td:not(.t-group-cell,.t-hierarchy-cell)",a=g+f+":first";FOCUSED="t-state-focused";k.scripts.push("telerik.grid.js");function h(l){return new Function("data",("var p=[];with(data){p.push('"+unescape(l).replace(/[\r\t\n]/g," ").replace(/'(?=[^#]*#>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<#=(.+?)#>/g,"',$1,'").split("<#").join("');").split("#>").join("p.push('")+"');}return p.join('');"))}function j(l){return(l!=null?l+"":"").replace(/&/g,"&").replace(//g,">")}k.grid=function(l,m){this.element=l;this.groups=[];this.editing={};this.filterBy="";this.groupBy="";this.orderBy="";e.extend(this,m);this.sorted=e.grep(this.columns,function(t){return t.order});this.$tbody=e("> .t-grid-content > table > tbody",l);this.scrollable=this.$tbody.length>0;if(!this.scrollable){this.$tbody=e("> table > tbody",l);this.$header=e("> table > thead tr",l);this.$footer=e("> table > tfoot",l)}else{e("> .t-grid-content",l).tScrollable();this.$header=e("> .t-grid-header tr",l);this.$footer=e("> .t-grid-footer",l)}this.$headerWrap=e("> .t-grid-header > .t-grid-header-wrap",l);this.$footerWrap=e("> .t-grid-footer > .t-grid-footer-wrap",l);var r=this.$headerWrap.add(this.$footerWrap);var p=this;e("> .t-grid-content",l).bind("scroll",function(){if(p.pageOnScroll){var t=this.scrollTop+this.clientHeight;if(t===this.scrollHeight&&p.currentPage').rep('',t.find(".t-group-cell").length).cat('').cat('').cat(this.displayDetails(this.dataItem(t))).cat("").string()).insertAfter(t)}k.trigger(this.element,u?"detailViewExpand":"detailViewCollapse",{masterRow:t[0],detailRow:t.next(".t-detail-row")[0]});t.next().toggle(u)},this));this.$pager=e("> .t-grid-pager .t-pager",l);var q=new k.dropDown({effects:k.fx.slide.defaults(),onClick:e.proxy(function(t){this.changePageSize(e(t.item).text());q.close()},this)});q.dataBind(m.pageSizesInDropDown||[]);e(document.documentElement).bind("mousedown",function(u){var t=q.$element[0];if(!e.contains(t,u.target)){q.close()}});this.$pager.delegate(".t-state-disabled","click",k.preventDefault).delegate(".t-link:not(.t-state-disabled)","mouseenter",k.hover).delegate(".t-link:not(.t-state-disabled)","mouseleave",k.leave).delegate("input[type=text]","keydown",e.proxy(this.pagerKeyDown,this)).delegate(".t-page-size .t-dropdown-wrap","click",function(){var t=e(this);q.open({offset:t.offset(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth(),zIndex:k.getElementZIndex(this)})});e("> .t-grid-pager",l).delegate(".t-refresh","click",e.proxy(this.refreshClick,this));e(l).delegate(".t-button","hover",k.preventDefault);if(this.sort){this.$header.delegate("a.t-link","hover",function(){e(this).toggleClass("t-state-hover")})}var s="tr:not(.t-grouping-row,.t-detail-row,.t-no-data,:has(>.t-edit-container))";if(this.selectable){var n=this.$tbody[0];this.$tbody.delegate(s,"click",function(t){if(this.parentNode==n){p.rowClick(t)}}).delegate(s,"hover",function(t){if(this.parentNode==n){if(t.type=="mouseenter"){e(this).addClass("t-state-hover")}else{e(this).removeClass("t-state-hover")}}})}if(this.isAjax()||this.operationMode==="client"){this.$pager.delegate(".t-link:not(.t-state-disabled)","click",k.stop(this.pagerClick,this));if(this.sort){this.$header.delegate("a.t-link","click",k.stop(this.headerClick,this))}}for(var o=0;o0,C=q.selectable,r=u.has("tr>td>.t-grid-select").length>0,z=e(y.target),l=!z.is(":button,a,:input,a>.t-icon"),s=q.editRow,t=false,n;if(!B){if(q.editing&&q.editing.mode=="PopUp"){B=q._current=m.find(a)}else{return}}n=B.index();if(!e.browser.msie){l=l&&z[0]===m[0]}if(l){if(A&&d.PAGEUP==x){if(!q.pageOnScroll){m.one(p,function(){v(m.find(a));q._focusGridElement()})}if(q.currentPage.t-icon")){t=q._handleEditing(y)}if(t){y.preventDefault();y.stopPropagation()}},_handleEditing:function(A){var p=this,y=A.keyCode,w=e.proxy(p.current,p),B=e.proxy(p._clearInputSelection,p),v=e.proxy(p._focusGridElement,p),D=w(),n=e(p.element),o=p.$tbody,q=D.parent(),m=q.index(),x,r=false,t="td.t-grid-edit-cell",u=":input:visible:first",l=p.isAjax(),C=q.closest("tr.t-grid-new-row")[0],E=p.editing.mode==="InCell",z=p.editing.mode==="PopUp",s=q.closest("tr.t-grid-edit-row")[0]||(z&&e("#"+p.formId()+":visible").length);if(d.ENTER==y||d.F12==y){r=true;if(s){B(D.find(u)[0]);if(E){x=p.validate();if(!x){D.find(u).focus();return}if(D.is(t)){p.saveCell(D[0])}else{q.find(t).each(function(){p.saveCell(this)});p.editCell(D[0])}if(p.valid){v()}}else{if(l){n.one("dataBound",function(){var F=e(this).data("tGrid");F._current=F.$tbody.children().eq(m).find(f).eq(0);v()});if(z){e(".t-grid-update,.t-grid-insert","#"+p.formId()).click()}else{if(C){p.insertRow(q)}else{p.updateRow(q)}}}else{if(p.validate()){if(z){q=e("#"+p.formId())}q.find(".t-grid-update,.t-grid-insert").click()}}}}else{if(E){o.find(t).each(function(){p.saveCell(this)});p.editCell(D[0])}else{if(l){p.editRow(q);w(q.children().eq(0));if(z){q=e("#"+p.formId())}q.find(u).focus()}else{location.href=q.find(".t-grid-edit:first").attr("href")}}}}else{if(d.ESC==y&&s){r=true;B(D.find(u)[0]);if(E&&D.is(t)){p.cancelCell(D);v()}else{if(l){if(z){e(".t-grid-cancel","#"+this.formId()).click()}else{p.cancelRow(q)}w(q.find(f).eq(0));v()}else{if(z){q=e("#"+p.formId())}location.href=q.find(".t-grid-cancel:first").attr("href")}}}else{if(s&&E&&d.TAB==y){r=true;B(D.find(u)[0]);p.saveCell(D);if(p.valid){v();w(A.shiftKey?D.prev():D.next())}}}}return r},_initNavigationMouseEvents:function(){var r=this,o=r.$tbody,l=g+f,p=e.browser,q="click",u="mousedown",m,t,n,v=".t-grid-edit-row",s=":button,a,:input,a>.t-icon";if(p.msie){o.delegate(l,q,function(w){t=e(w.target),n=e(w.currentTarget),m=r._current;if(n.closest("tbody")[0]!==o[0]){return}if(t.is(s)){if(!(m&&!n.parent().is(v))){if(m){m.removeClass(FOCUSED)}r._current=n}}else{if(m&&m[0]===n[0]){r._current=null}r.current(n);w.preventDefault()}})}else{o.delegate(l,u,function(w){t=e(w.target),n=e(w.currentTarget),m=r._current;if(n.closest("tbody")[0]!==o[0]){return}if(t.is(s)){if(!(m&&!n.parent().is(v))){if(m){m.removeClass(FOCUSED)}r._current=n}}else{r.current(n)}})}},_clearInputSelection:function(m){if(!m){return}var l=e.browser,n;if(l.msie&&parseInt(l.version)==8){n=m.createTextRange();n.moveStart("textedit",1);n.select()}},_focusGridElement:function(){var l=e.browser;if(l.msie&&parseInt(l.version)<9){e("body",document).focus()}this.element.focus()},current:function(m){var l=this,n=l._current;if(m!==undefined&&m.length){if(!n||n[0]!==m[0]){m.addClass(FOCUSED);if(n){n.removeClass(FOCUSED)}l._current=m;l._scrollTo(m.parent()[0])}}else{return l._current}},_scrollTo:function(m){var p=this.$tbody.closest("div.t-grid-content")[0];if(!m||!p){return}var l=m.offsetTop,r=m.offsetHeight,q=p.scrollTop,n=p.clientHeight,o=l+r;p.scrollTop=q>l?l:o>(q+n)?o-n:q},_transformParams:function(n){var m=this,l=m._isServerOperation();params={},filter=e.isFunction(m.filterExpr)?m.filterExpr():"";if(l){if(n.page){params[m.queryString.page]=n.page}if(n.pageSize){params[m.queryString.size]=n.pageSize}if(n.sort&&n.sort.length){params[m.queryString.orderBy]=e.map(n.sort,function(o){return o.field+"-"+o.dir}).join("~")}if(filter!==""){params[m.queryString.filter]=filter}if(m.groupBy){params[m.queryString.groupBy]=m.groupBy}if(n.aggregates&&n.aggregates.length){params.aggregates=e.map(m.columns,function(o){if(o.aggregates){return o.member+"-"+o.aggregates.join("-")}}).join("~")}}delete n.page;delete n.pageSize;delete n.sort;delete n.filter;delete n.group;delete n.aggregates;params=e.extend(params,n);if(m.ws){params=k.toJson({state:params})}return params},_dataSourceOptions:function(){var n=this,l=this.pageSize>0,m,o=n.data||[];remoteOperations=n._isServerOperation(),deserializer={translateGroup:function(p){return{value:p.Key,hasSubgroups:p.HasSubgroups,aggregates:p.Aggregates,items:p.HasSubgroups?e.map(p.Items,e.proxy(this.translateGroup,this)):p.Items}},flatGroups:function(p){if(p.HasSubgroups){return this.flatGroups(p.Items)}return p.Items},convert:function(p){return p.d||p},mergeChanges:function(q,t,p){var s,w,v,r=[],u,x=n.dataSource;e.each(p,function(z,y){for(w=0,v=q.length;w.t-icon")){n.stopPropagation();var l=m.closest("tr").addClass("t-state-selected").siblings().removeClass("t-state-selected").end();k.trigger(this.element,"rowSelect",{row:l[0]})}},$rows:function(){return this.$tbody.find("> tr:not(.t-grouping-row,.t-detail-row)")},expandRow:function(l){e(l).find("> td .t-plus, > td .t-expand").click()},collapseRow:function(l){e(l).find("> td .t-minus, > td .t-collapse").click()},headerClick:function(l){l.preventDefault();this.toggleOrder(this.$columns().index(e(l.target).closest("th")));this.sort(this.sortExpr())},refreshClick:function(m,l){if(e(l).is(".t-loading")){return}if(this.isAjax()){m.preventDefault();if(!this._isServerOperation()){this.dataSource.read()}else{this.ajaxRequest(true)}}},sort:function(l){this.orderBy=l;this.ajaxRequest()},columnFromTitle:function(m){m=e.trim(m);var l=e.grep(this.$columns(),function(n){return e.trim(e(n).text())==m})[0];if(l){return this.columns[this.$columns().index(l)]}return e.grep(this.columns,function(n){return n.title==m})[0]},columnFromMember:function(l){var m=e.grep(this.columns,function(n){return n.member==l})[0];if(!m){m=e.grep(this.columns,function(o){var n="."+o.member;return l.substr(l.length-n.length)==n})[0]}return m},toggleOrder:function(l){l=typeof l=="number"?this.columns[l]:l;var n="asc";if(l.order=="asc"){n="desc"}else{if(l.order=="desc"){n=null}}l.order=n;var m=e.inArray(l,this.sorted);if(this.sortMode=="single"&&m<0){e.each(this.sorted,function(){this.order=null});this.sorted=[]}if(m<0&&n){this.sorted.push(l)}if(!n){this.sorted.splice(m,1)}},sortExpr:function(){return e.map(this.sorted,function(l){return l.member+"-"+l.order}).join("~")},pagerKeyDown:function(l){if(l.keyCode==13){var m=this.sanitizePage(e(l.target).val());if(m!=this.currentPage){this.pageTo(m)}else{e(l.target).val(m)}}},isAjax:function(){return this.ajax||this.ws||this.onDataBinding},url:function(l){return(this.ajax||this.ws)[l]},pagerClick:function(q){q.preventDefault();var m=e(q.target).closest(".t-link");var n=this.currentPage;var o=m.find(".t-icon");if(o.hasClass("t-arrow-next")){n++}else{if(o.hasClass("t-arrow-last")){n=this.totalPages()}else{if(o.hasClass("t-arrow-prev")){n--}else{if(o.hasClass("t-arrow-first")){n=1}else{var l=m.text();if(l=="..."){var p=m.parent().children().index(m);if(p==0){n=parseInt(m.next().text())-1}else{n=parseInt(m.prev().text())+1}}else{n=parseInt(l)}}}}}this.pageTo(isFinite(n)?n:this.currentPage)},changePageSize:function(m){var l=parseInt(m,10);if(isNaN(l)||l<1){return this.pageSize}l=Math.max(l,1);this.currentPage=1;this.pageSize=l;if(this.isAjax()){this.ajaxRequest()}else{this.serverRequest()}},pageTo:function(l){this._pagingInProgress=true;this.currentPage=l;if(this.isAjax()){this.ajaxRequest()}else{this.serverRequest()}},_dataChange:function(){var m=this.dataSource;this.total=m.total();this.aggregates=m.aggregates();var l=m.view();if(this.pageOnScroll&&this._pagingInProgress===true){l=(this.data||[]).concat(l);this._pagingInProgress=false}this._current=null;this._populate(l)},_populate:function(l){this.data=[];this.bindTo(l);this.bindFooter();this.updatePager();this.updateSorting();k.trigger(this.element,"dataBound");k.trigger(this.element,"repaint")},ajaxOptions:function(m){var l={type:"POST",dataType:"text",dataFilter:function(o,p){return o.replace(c,"new Date($1)")},error:e.proxy(function(p,o){if(k.ajaxError(this.element,"error",p,o)){return}},this),complete:e.proxy(this.hideBusy,this),success:e.proxy(function(p,q,o){try{p=eval("("+p+")")}catch(r){if(!k.ajaxError(this.element,"error",o,"parseeror")){alert("Error! The requested URL did not return JSON.")}return}p=p.d||p;if(m.hasErrors&&m.hasErrors(p)){if(!k.trigger(this.element,"error",{XMLHttpRequest:o,textStatus:"modelstateerror",modelState:p.modelState})){m.displayErrors(p)}return}this.dataSource.success(p)},this)};e.extend(l,m);var n=this.ws?l.data.state={}:l.data;n[this.queryString.page]=this.currentPage;n[this.queryString.size]=this.pageSize;n[this.queryString.orderBy]=this.orderBy||"";n[this.queryString.groupBy]=this.groupBy;n[this.queryString.filter]=(this.filterBy||"").replace(/\"/g,'\\"');n[this.queryString.aggregates]=e.map(this.columns,function(o){if(o.aggregates){return o.member+"-"+o.aggregates.join("-")}}).join("~");if(this.ws){l.data=k.toJson(l.data);l.contentType="application/json; charset=utf-8"}return l},showBusy:function(){this.busyTimeout=setTimeout(e.proxy(function(){e("> .t-grid-pager .t-status .t-icon",this.element).addClass("t-loading")},this),100)},hideBusy:function(){clearTimeout(this.busyTimeout);e("> .t-grid-pager .t-status .t-icon",this.element).removeClass("t-loading")},serverRequest:function(){if(this.operationMode==="client"){this.ajaxRequest()}else{location.href=k.formatString(unescape(this.urlFormat),this.currentPage,this.orderBy||"~",this.groupBy||"~",encodeURIComponent(this.filterBy)||"~",this.pageSize||"~")}},_isServerOperation:function(){return this.operationMode!=="client"},ajaxRequest:function(n){var p=this,o=p.pageSize,m=p.currentPage,l=e.map(p.columns,function(r){return e.map(r.aggregates||[],function(s){return{field:r.member,aggregate:s}})});if(m>1&&p.pageOnScroll&&!p._pagingInProgress){o=m*p.pageSize;m=1}var q={page:m,sortedColumns:p.sorted,filteredColumns:e.grep(p.columns,function(r){return r.filters})};if(k.trigger(p.element,"dataBinding",q)){return}if(!p.ajax&&!p.ws&&this.operationMode!=="client"){return}if(p.dataSource.transport.options&&p.dataSource.transport.options.read){p.dataSource.transport.options.read.url=this.url("selectUrl")}if(p._isServerOperation()){p.showBusy()}p.dataSource.query(e.extend({page:m,pageSize:o,sort:e.map(p.sorted,function(r){return{field:r.member,dir:r.order}}),filter:e.map(e.grep(p.columns,function(r){return r.filters}),function(r){return e.map(r.filters,function(t){if(r.type=="Number"){t.value=parseFloat(t.value)}else{if(r.type=="Date"){var s=r.format?/\{0(:([^\}]+))?\}/.exec(r.format)[2]:k.cultureInfo.shortDate;t.value=k.datetime.parse({value:t.value,format:s}).toDate()}}return{field:r.member,operator:t.operator,value:t.value}})}),group:e.map(p.groups,function(r){return{field:r.member,dir:r.order,aggregates:l}}),aggregates:l},e.extend({},q.data,n)))},valueFor:function(l){if(l.type=="Date"){return new Function("data","var value = data."+l.member+'; if (!value) return null; return value instanceof Date? value : new Date(parseInt(value.replace(/\\/Date\\((.*?)\\)\\//, "$1")));')}return new Function("data","return data"+(l.member?"."+l.member:"")+";")},displayFor:function(l){var n=this.localization;if(l.commands){var o=e.map(l.commands,function(p){var q=k.grid.ButtonBuilder.create(e.extend({text:n[p.name]},p));return q.build()}).join("");return function(){return o}}if(!l.template){var m=l.value||function(){return""};if(l.format||l.type=="Date"){m=function(p){var q=l.value(p);return q==null?"":k.formatString(l.format||"{0:G}",q)}}return l.encoded===false?m:function(p){return j(m(p))}}return h(l.template)},insertFor:function(l){return this.displayFor(l)},editFor:function(l){return this.displayFor(l)},initializeColumns:function(){e.each(this.columns,e.proxy(function(n,o){if(o.member!==undefined){o.value=this.valueFor(o)}else{o.readonly=true}o.insert=this.insertFor(o);o.edit=this.editFor(o);o.display=this.displayFor(o);if(o.footerTemplate){o.footer=h(o.footerTemplate)}if(o.groupFooterTemplate){this.showGroupFooter=true;o.groupFooter=h(o.groupFooterTemplate)}o.groupHeader=h("<#= Title #>: <#= Key #>");if(o.groupHeaderTemplate){o.groupHeader=h(o.groupHeaderTemplate)}},this));var m=this.columns.length-1;while(m>=0){var l=this.columns[m];if(l.hidden){m--;continue}if(!l.attr){l.attr=' class="t-last"';break}else{if(l.attr.indexOf("class")==-1){l.attr+=' class="t-last"';break}else{l.attr=l.attr.replace('class="','class="t-last ');break}}m--}if(this.detail){this.displayDetails=h(this.detail.template)}},bindData:function(m,p,r){Array.prototype.push.apply(this.data,m);var t=this.pageOnScroll?m.length:Math.min(this.pageSize,m.length);var q=this.columns.length;t=this.pageSize?t:m.length;if(e.browser.msie){e(this.element).find(".t-grid-content colgroup:first col").css("display","")}for(var u=0;u')}else{p.cat("")}p.rep('',r).catIf('',this.detail);if(this.rowTemplate){p.cat('').cat(this.rowTemplate(m[u])).cat("")}else{for(var n=0,o=this.columns.length;n").cat(s.display(m[u]));p.cat("")}}p.cat("")}},normalizeColumns:function(){},dataItem:function(l){return this.data[this.$tbody.find("> tr:not(.t-grouping-row,.t-detail-row,.t-grid-new-row,.t-group-footer)").index(e(l))]},_colspan:function(){return this.groups.length+this.columns.length+(this.detail?1:0)},bindTo:function(q){var o=new k.stringBuilder();var p=this._colspan();if(q&&q.length){this.normalizeColumns(p);if(typeof q[0].hasSubgroups!="undefined"){for(var m=0,n=q.length;m").cat("").cat(this.noRecordsTemplate?this.noRecordsTemplate:this.localization.noRecords).cat("")}this.$tbody.html(o.string());if(this.onRowDataBound){var r=jQuery.grep(this.$tbody[0].rows,function(l){return !e(l).hasClass("t-grouping-row")});for(var m=0,n=this.data.length;m=l).removeClass("t-state-hover");this.$pager.find(".t-arrow-prev").parent().add(this.$pager.find(".t-arrow-first").parent()).toggleClass("t-state-disabled",n==1).removeClass("t-state-hover");var m=this.localization;this.$pager.find(".t-page-i-of-n").each(function(){this.innerHTML=new k.stringBuilder().cat(m.page).cat(' ').cat(k.formatString(m.pageOf,l)).string()});this.$pager.find(".t-page-size").each(function(){var p='
    '+o+'select
    ';this.innerHTML=p});this.$pager.find(".t-numeric").each(e.proxy(function(q,p){this.numericPager(p,n,l)},this));this.$pager.parent().find(".t-status-text").text(k.formatString(m.displayingItems,this.firstItemInPage(),this.lastItemInPage(),this.total))},numericPager:function(m,s,t){var q=10;var o=1;if(s>q){var l=(s%q);o=(l==0)?(s-q)+1:(s-l)+1}var p=(o+q)-1;p=Math.min(p,t);var n=new k.stringBuilder();if(o>1){n.cat('
    ...')}for(var r=o;r<=p;r++){if(r==s){n.cat('').cat(r).cat("")}else{n.cat('').cat(r).cat("")}}if(p...')}m.innerHTML=n.string()},$columns:function(){return this.$header.find("th:not(.t-hierarchy-cell,.t-group-cell)")},updateSorting:function(){this.sorted=[];e.each(this.orderBy.split("~"),e.proxy(function(m,l){var n=l.split("-");var o=this.columnFromMember(n[0]);if(o){o.order=n[1];this.sorted.push(o)}},this));this.$columns().each(e.proxy(function(m,p){var n=this.columns[m].order;var l=e(p).children("a.t-link");var o=l.children(".t-icon");if(!n){o.hide()}else{if(o.length==0){o=e('').appendTo(l)}o.toggleClass("t-arrow-up",n=="asc").toggleClass("t-arrow-down",n=="desc").html("("+(n=="asc"?this.localization.sortedAsc:this.localization.sortedDesc)+")").show()}},this))},sanitizePage:function(m){var l=parseInt(m,10);if(isNaN(l)||l<1){return this.currentPage}return Math.min(l,this.totalPages())},totalPages:function(){return Math.ceil(this.total/this.pageSize)},firstItemInPage:function(){return this.total>0?(this.currentPage-1)*this.pageSize+1:0},lastItemInPage:function(){return Math.min(this.currentPage*this.pageSize,this.total)},dataBind:function(l){this.dataSource.success(l)},bindFooter:function(){var l=this,n=l.$footer.find("td:not(.t-group-cell,.t-hierarchy-cell)"),m=l.aggregates;e.each(l.columns,function(o){if(this.footer){n.eq(o).html(this.footer(l._mapAggregates(m[this.member]||{})))}})},rebind:function(l){this.sorted=[];this.orderBy="";this.filterBy="";this.currentPage=1;e.each(this.columns,function(){this.order=null;this.filters=null});e(".t-filter-options",this.element).find('input[type="text"], select').val("").removeClass("t-state-error").end().find("div.t-formatted-value").html("");e(".t-grid-filter",this.element).removeClass("t-active-filter");this.ajaxRequest(l)}};k.grid.ButtonBuilder=function(l){this.classNames=["t-button","t-grid-"+l.name];this.content=function(){return l.text};this.build=function(){return'"+this.content()+""}};k.grid.ButtonBuilder.create=function(l){return new (i[l.buttonType])(l)};function b(m,l){return'"}k.grid.ImageButtonBuilder=function(l){k.grid.ButtonBuilder.call(this,l);this.classNames.push("t-button-icon");this.content=function(){return b(l.name,l.imageAttr)}};k.grid.ImageTextButtonBuilder=function(l){k.grid.ButtonBuilder.call(this,l);this.classNames.push("t-button-icontext");this.content=function(){return'"+l.text}};k.grid.BareImageButtonBuilder=function(l,m){k.grid.ImageButtonBuilder.call(this,l,m);this.classNames.push("t-button-icon","t-button-bare")};var i={Text:k.grid.ButtonBuilder,ImageAndText:k.grid.ImageTextButtonBuilder,Image:k.grid.ImageButtonBuilder,BareImage:k.grid.BareImageButtonBuilder};e.fn.tGrid=function(l){return k.create(this,{name:"tGrid",init:function(m,n){return new k.grid(m,n)},options:l,success:function(m){if(m.$tbody.find("tr.t-no-data").length){m.ajaxRequest()}}})};e.fn.tGrid.defaults={columns:[],plugins:[],currentPage:1,pageSize:10,localization:{addNew:"Add new record","delete":"Delete",cancel:"Cancel",insert:"Insert",update:"Update",select:"Select",pageOf:"of {0}",displayingItems:"Displaying items {0} - {1} of {2}",edit:"Edit",noRecords:"No records to display.",page:"Page ",filter:"Filter",filterClear:"Clear Filter",filterShowRows:"Show rows with value that",filterAnd:"And",filterStringEq:"Is equal to",filterStringNe:"Is not equal to",filterStringStartsWith:"Starts with",filterStringSubstringOf:"Contains",filterStringEndsWith:"Ends with",filterNumberEq:"Is equal to",filterNumberNe:"Is not equal to",filterNumberLt:"Is less than",filterNumberLe:"Is less than or equal to",filterNumberGt:"Is greater than",filterNumberGe:"Is greater than or equal to",filterDateEq:"Is equal to",filterDateNe:"Is not equal to",filterDateLt:"Is before",filterDateLe:"Is before or equal to",filterDateGt:"Is after",filterDateGe:"Is after or equal to",filterEnumEq:"Is equal to",filterEnumNe:"Is not equal to",filterBoolIsTrue:"is true",filterBoolIsFalse:"is false",filterSelectValue:"-Select value-",filterOpenPopupHint:"Open the calendar popup",groupHint:"Drag a column header and drop it here to group by that column",deleteConfirmation:"Are you sure you want to delete this record?",sortedAsc:"sorted ascending",sortedDesc:"sorted descending",ungroup:"ungroup"},queryString:{page:"page",size:"size",orderBy:"orderBy",groupBy:"groupBy",filter:"filter",aggregates:"aggregates"}}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.reordering.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.reordering.min.js new file mode 100644 index 000000000..9d206df59 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.reordering.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.grid.reordering.js");b.reordering={};b.reordering.initialize=function(d){d.$reorderDropCue=a('
    ');var c=d.$header.children("th").length-1;var e=function(i,l){var k=a.inArray(l,d.columns);d.columns.splice(k,1);d.columns.splice(i,0,l);h(d.$columns(),k,i);h(d.$tbody.parent().find("> colgroup > col:not(.t-group-col,.t-hierarchy-col)"),k,i);h(d.$headerWrap.find("table").find("> colgroup > col:not(.t-group-col,.t-hierarchy-col)"),k,i);var j=d.$footer.find("table");h(j.find("> colgroup > col:not(.t-group-col,.t-hierarchy-col)"),k,i);h(j.find("> tbody > tr.t-footer-template > td:not(.t-group-cell,.t-hierarchy-cell)").add(d.$footer.find("tr.t-footer-template > td:not(.t-group-cell,.t-hierarchy-cell)")),k,i);a.each(d.$tbody.children(),function(){h(a(this).find(" > td:not(.t-group-cell, .t-hierarchy-cell, .t-detail-cell)"),k,i)})};d.reorderColumn=e;function f(i,k,l,j){g(i,k,l,j,"th","t-last-header");g(i,k,l,j,"td","t-last")}function g(j,l,k,m,i,n){if(k.is(i)&&m==c){j.addClass(n);k.removeClass(n)}if(j.is(i)&&l==c){j.removeClass(n).prev(i).addClass(n)}}function h(j,k,i){var l=j.eq(k);var m=j.eq(i);f(l,k,m,i);l[k>i?"insertBefore":"insertAfter"](m)}new b.draggable({owner:d.$header,selector:".t-header:not(.t-group-cell,.t-hierarchy-cell)",scope:d.element.id+"-reodering",cue:function(i){return b.dragCue(i.$draggable.text())},destroy:function(i){i.$cue.remove()}});new b.droppable({owner:d.$header,scope:d.element.id+"-reodering",selector:".t-header:not(.t-group-cell,.t-hierarchy-cell)",over:function(k){var i=a.trim(k.$draggable.text())==a.trim(k.$droppable.text());b.dragCueStatus(k.$cue,i?"t-denied":"t-add");var j=0;a("> .t-grid-top, > .t-grouping-header",d.element).each(function(){j+=a(this).outerHeight()});if(!i){d.$reorderDropCue.css({height:k.$droppable.outerHeight(),top:j,left:function(){return k.$droppable.position().left+((k.$droppable.index()>k.$draggable.index())?k.$droppable.outerWidth():0)}}).appendTo(d.element)}},out:function(i){d.$reorderDropCue.remove();b.dragCueStatus(i.$cue,"t-denied")},drop:function(k){d.$reorderDropCue.remove();if(k.$cue.find(".t-drag-status").is(".t-add")){var i=d.columnFromTitle(a.trim(k.$draggable.text()));var j=d.$columns().index(k.$droppable);b.trigger(d.element,"columnReorder",{column:i,oldIndex:a.inArray(i,d.columns),newIndex:j});e(j,i);b.trigger(d.element,"repaint")}}})}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.resizing.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.resizing.min.js new file mode 100644 index 000000000..e591f5fe0 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.grid.resizing.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.grid.resizing.js");b.resizing={};b.resizing.initialize=function(p){var c,o=a('
    '),i,d,h,l=3;function m(q,r){a("th, th .t-grid-filter, th .t-link",q).add(document.body).css("cursor",r)}function k(q){var r=0;a("> .t-grouping-header, > .t-grid-top",q).each(function(){r+=this.offsetHeight});return r}function e(t){var r=0;a(".t-resize-handle",p.element).each(function(){r+=a(this).data("th").outerWidth();a(this).css("left",r-l)});r=-p.$tbody.closest(".t-grid-content").scrollLeft();t.prevAll("th").add(t).each(function(){r+=this.offsetWidth});var q=p.scrollable?a(".t-grid-content",p.element):a("tbody",p.element);var s=q.attr(p.scrollable?"clientWidth":"offsetWidth");if(r>=s){o.remove()}else{o.css({left:r,top:k(p.element),height:t.outerHeight()+q.attr(p.scrollable?"clientHeight":"offsetHeight")});if(!o.parent().length){o.appendTo(p.element)}}}function j(r){var q=r.$draggable.data("th");c=a("colgroup",p.element).find("col:eq("+q.index()+")");h=r.pageX;d=q.outerWidth();i=p.$tbody.outerWidth()}function g(q){var r=d+q.pageX-h;if(r>10){c.css("width",r);if(p.scrollable){p.$tbody.parent().add(p.$headerWrap.find("table")).add(p.$footer.find("table")).css("width",i+q.pageX-h)}e(q.$draggable.data("th"))}}function f(s){o.remove();m(p.element,"");var r=s.$draggable.data("th");var q=r.outerWidth();if(p.onColumnResize&&q!=d){b.trigger(p.element,"columnResize",{column:p.columns[p.$columns().index(r)],oldWidth:d,newWidth:q})}return false}function n(){var r=0,q=p.element.id+"-column-resizing";var s=b.draggable.get(q);if(s){s._destroy()}p.$headerWrap.add(p.element).find("> .t-resize-handle").remove();p.$header.find(".t-header:visible").each(function(){r+=this.offsetWidth;var t=a(this);a('
    ').css({left:r-l,top:p.scrollable?0:k(p.element),width:l*2}).appendTo(p.scrollable?p.$headerWrap:p.element).data("th",t).mousedown(function(){e(t);m(p.element,a(this).css("cursor"))}).mouseup(function(){m(p.element,"")})});new b.draggable({owner:p.element,selector:".t-resize-handle",scope:q,distance:0,start:j,drag:g,stop:f})}n();a(p.element).one("mouseenter",n).bind("repaint",n)}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.imagebrowser.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.imagebrowser.min.js new file mode 100644 index 000000000..de97d4dc3 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.imagebrowser.min.js @@ -0,0 +1 @@ +(function(i,o){var n=i.telerik,e=i.telerik.query;n.scripts.push("telerik.imagebrowser.js");n.imageBrowser=function(q,r){this.element=q;this.wrapper=i(q);var t=r.filter||"*.png,*.gif,*.jpg,*.jpeg";var s=r.localization;this.wrapper.append('
    select
    ').append(k(s,r.uploadUrl,r.createDirectoryUrl,r.deleteFileUrl||r.deleteDirectoryUrl)).append('
      ');var u=this.wrapper.find(".t-breadcrumbs");var y=this.wrapper.find(".t-tiles");var v=this.wrapper.find(".t-search-wrap");if(r.uploadUrl){this.wrapper.find(".t-upload input").tUpload({async:{saveUrl:r.uploadUrl,autoUpload:true},multiple:false,onUpload:function(B){var C=new RegExp(("("+t.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i");var A=B.files[0].name;if(C.test(A)){B.data={path:u.val()};y.trigger("t:upload",[{name:A},function(){B.preventDefault()}])}else{B.preventDefault();alert(n.formatString(s.invalidFileType,A,t))}},onError:function(A){A.preventDefault();y.trigger("t:error",[A.files[0]]);var B=A.XMLHttpRequest;if(n.ajaxError(r.element,"error",B,B.statusText)){return}},onSuccess:function(A){y.trigger("t:completeFile",[i.extend(A.response,{path:u.val()})])}})}new n.searchBox(v[0]);new n.fileListView(y[0],{thumbnailUrl:r.thumbUrl,localization:s});var w=new n.dropDown({effects:n.fx.slide.defaults(),onClick:function(A){i(q).find(".t-tiles-arrange a span:first").html(i(A.item).text());w.close();u.trigger("t:change")}});var z=[{Text:s.orderByName,Value:"name"},{Text:s.orderBySize,Value:"size"}];w.dataBind(z);this.wrapper.find(".t-tiles-arrange a").click(function(B){B.preventDefault();var A=i(this);w.open({offset:A.offset(),outerHeight:A.outerHeight(),outerWidth:A.outerWidth(),zIndex:n.getElementZIndex(this)})}).end().delegate(".t-button:not(.t-state-disabled):has(.t-delete)","click",function(){var A=y.find(".t-state-selected");if(A.length&&confirm(n.formatString(s.deleteFile,A.find("strong").text()))){i.ajax({type:"POST",url:A.data("kind")=="f"?r.deleteFileUrl:r.deleteDirectoryUrl,data:{path:A.data("url")},error:function(C,B){if(n.ajaxError(r.element,"error",C,B)){return}},success:function(){y.trigger("t:delete");i(q).find(".t-delete").parent().addClass("t-state-disabled")}})}}).delegate(".t-button:not(.t-state-disabled):has(.t-addfolder)","click",function(){y.trigger("t:createDirectory",[function(A){i.ajax({type:"POST",url:r.createDirectoryUrl,data:{path:u.val(),name:A},error:function(C,B){y.trigger("t:errorDirectory",{name:A});if(n.ajaxError(r.element,"error",C,B)){return}},success:function(){y.trigger("t:completeDirectory",{path:u.val(),name:A})}})}])});i(document.documentElement).bind("mousedown",function(B){var A=w.$element[0];if(!i.contains(A,B.target)){w.close()}});var x=new n.dataSource({error:function(A,C){var B=n.trigger(r.element,"error",{XMLHttpRequest:A,textStatus:C});if(!B){if(C=="error"){if(A.status=="404"){alert(r.localization.directoryNotFound)}else{if(A.status!="0"){alert("Error! The requested URL returned "+A.status+" - "+A.statusText)}}}else{if(C=="timeout"){alert("Error! Server timeout.")}}}},url:r.selectUrl,callback:function(B){i(q).find(".t-delete").parent().addClass("t-state-disabled");if(!u.val()){new n.breadcrumbs(u[0],{path:B.Path,roots:B.ContentPaths})}u.val(B.Path).trigger("t:refresh");var C=i(q).find(".t-tiles-arrange a span:first").text();var A=i.map(z,function(E){if(E.Text==C){return E.Value}})[0];var D=v.val();y.trigger("t:refresh",[B,A,D])}});v.bind("t:change",function(){u.trigger("t:change")});x.get({path:""});y.bind("t:select",function(A){if(A.kind=="d"){x.get({path:A.url})}else{r.apply(A)}}).bind("t:change",function(B){var C=i(q).find(".t-delete").parent().addClass("t-state-disabled");if(B.kind=="f"){var A=B.url;if(r.imageUrl){A=r.imageUrl+"?path="+A}i(q).parent().find("#t-editor-image-url").val(A)}if((B.kind=="f"&&r.deleteFileUrl)||(B.kind=="d"&&r.deleteDirectoryUrl)){C.removeClass("t-state-disabled")}});u.bind("t:change",function(){var A=i(this).val();if(!A.match(/\/$/)){A=A+"/"}x.get({path:A})})};function k(r,s,t,q){var v=!s?"":'
      '+r.uploadFile+'
      ',u=!t?"":'',w=!q?"":' ';return'
      '+v+u+w+'
      '+r.orderBy+' '+r.orderByName+'
      '}n.fileInfoReader=function(q){this._thumbnailUrl=q.thumbnailUrl||""};n.fileInfoReader.prototype={read:function(q,r){return r[q]||r[(q.charAt(0).toUpperCase()+q.substring(1))]},directories:function(q){return this.read("directories",q)},files:function(q){return this.read("files",q)},thumbUrl:function(q,r){return this._thumbnailUrl+"/?path="+q+r},size:function(s){var q=this.read("size",s);if(!q){return""}var r=" bytes";if(q>=1073741824){r=" GB";q/=1073741824}else{if(q>=1048576){r=" MB";q/=1048576}else{if(q>=1024){r=" KB";q/=1024}}}return Math.round(q*100)/100+r},name:function(q){return this.read("name",q)},path:function(q){return this.read("path",q)},concatPaths:function(q,r){if(q===o||!q.match(/\/$/)){q=(q||"")+"/"}return q+r}};n.fileListView=function(q,r){this.element=q;this.wrapper=i(q);this._localization=r.localization;this._reader=r.reader||new n.fileInfoReader({thumbnailUrl:r.thumbnailUrl});this._pageSize=r.pageSize||20;this.wrapper.bind({"t:refresh":i.proxy(this._refresh,this),"t:upload":i.proxy(this._upload,this),"t:completeFile":i.proxy(this._completeFile,this),"t:completeDirectory":i.proxy(this._completeDirectory,this),"t:delete":i.proxy(this._delete,this),"t:errorFile":i.proxy(this._errorFile,this),"t:errorDirectory":i.proxy(this._errorDirectory,this),"t:createDirectory":i.proxy(this._createDirectory,this),scroll:i.proxy(this._scroll,this)}).delegate("li[data-url]:not(.t-tile-empty)","click",i.proxy(this._click,this)).delegate("li[data-url]:not(.t-tile-empty)","dblclick",i.proxy(this._dblclick,this))};function d(q){return'
    • '+q.name+"
    • "}function m(q){return'
    • '+q+"
    • "}function h(q){return'
    • '+q.name+''+q.size+"";"
    • "}function l(q){return'
    • '+q.name+"
    • "}function p(q){return'
    • '}function b(r){var s=i(r);var q=i("",{src:s.data("thumbUrl"),alt:s.data("filename")}).hide().bind("load",function(){i(this).prev().remove().end().addClass("t-image").fadeIn()});s.find(".t-loading").after(q);r.loaded=true}if(i.browser.msie&&parseFloat(i.browser.version)<8){var a=function(q){return q.offsetTop}}else{var a=function(q){return q.offsetTop-i(q).height()}}var f=/(\:|\^|\$|\/|\.|\+|\||\(|\)|\[|\]|\{|\}|\\)/g,j=/\*/g,c=/\?/g;function g(q){return new RegExp(q.replace(f,"\\$1").replace(j,".*").replace(c,".?"),"ig")}n.fileListView.prototype={bindTo:function(r,t,s){this._filter=s;var x=this._reader;this.wrapper.empty();var q=e(this._reader.directories(r)||[]);var v=e(this._reader.files(r)||[]);if(s){var w=function(z){return g(s).test(x.name(z))};q=q.where(w);v=v.where(w)}var y=function(z){return x[t](z)};this._data=this._process(this._reader.path(r),q.orderBy(y),v.orderBy(y));var u=this._data.select(function(z){return z.kind=="f"?h(z):l(z)}).toArray().join("");this.wrapper.append(u);this._tiles=this.wrapper.find("li[data-kind=f]");this._scroll();this._asEmpty()},_asEmpty:function(){if(!this._data.any()&&!this._filter){this.wrapper.append(m(this._localization.emptyFolder))}},_completeFile:function(u,r){var t=this._reader.name(r);var q=this._reader.path(r);var s=i(h({kind:"f",thumbUrl:this._reader.thumbUrl(q,t),url:this._reader.concatPaths(q,t),name:t,size:this._reader.size(r)}));this.wrapper.find("li").eq(this.fileIndex(t)).replaceWith(s);b(s[0]);s.click()},_completeDirectory:function(u,r){var t=this._reader.name(r);var q=this._reader.path(r);var s=i(l({kind:"d",url:this._reader.concatPaths(q,t),name:t}));this.wrapper.find("li").eq(this.directoryIndex(t)).replaceWith(s)},_delete:function(){var q=this.wrapper.find(".t-state-selected");if(q.length){var r=this._data.toArray();r.splice(q.index(),1);this._data=e(r);q.remove();this._scroll();this._asEmpty()}},_scroll:function(q){clearTimeout(this._timeout);this._timeout=setTimeout(i.proxy(function(){var r=this.wrapper.outerHeight();var t=this.wrapper.scrollTop();var s=t+r;this._tiles.each(function(){var v=a(this);var u=v+this.offsetHeight;if((v>=t&&v=t&&us){return false}});this._tiles=this._tiles.filter(function(){return !this.loaded})},this),250)},_upload:function(u,q,v){var s=this.fileIndex(q.name);if(s>-1&&!confirm(n.formatString(this._localization.overwriteFile,q.name))){v()}else{this.wrapper.find(".t-tile-empty").remove();var w=i(d(q));if(s>-1){w.data("existing",true);this.wrapper.find("li").eq(s).replaceWith(w)}else{var t=this.wrapper.find("li[data-kind=f]:first");if(t.length){t.before(w)}else{this.wrapper.append(w)}var r=this._data.toArray();r.splice(w.index(),0,{name:q.name,kind:"f"})}this.wrapper.scrollTop(w.attr("offsetTop")-this.element.offsetHeight)}},_nameDirectory:function(){var t="New folder";var s=this._data.where(function(u){return u.kind=="d"&&u.name.indexOf(t)>-1}).select(function(u){return u.name}).toArray();if(i.inArray(t,s)>-1){var r=2;do{var q=t+" ("+r+")";r++}while(i.inArray(q,s)>-1);t=q}return t},_createDirectory:function(u,r){var t=this._nameDirectory();var w=i(p(t));var v=this.wrapper.find("li[data-kind=f]:first");if(v.length){v.before(w)}else{this.wrapper.append(w)}var q=this._data.toArray();var s=w.addClass("t-state-selected").siblings().removeClass("t-state-selected").end().find("input").keydown(function(x){if(x.keyCode==13){this.blur()}}).blur(i.proxy(function(x){var y=i.trim(x.target.value);if(!y||this._data.any(function(z){return z.kind=="d"&&z.name.toLowerCase()==y.toLowerCase()})){y=this._nameDirectory()}q.splice(w.index(),0,{name:y,kind:"d"});i(x.target).replaceWith(""+y+"");r(y)},this));setTimeout(function(){s.select()});this.wrapper.find(".t-tile-empty").remove();this.wrapper.scrollTop(w.attr("offsetTop")-this.element.offsetHeight)},_errorFile:function(u,s){var q=this.fileIndex(s.name);if(q>-1){var r=this.wrapper.find("li").eq(q);if(r.data("existing")){var t=i(h(this._data.toArray()[q]));r.replaceWith(t);b(t[0])}else{r.remove();this._data.toArray().splice(q,1)}this._asEmpty()}},_errorDirectory:function(s,r){var q=this.directoryIndex(r.name);if(q>-1){this.wrapper.find("li").eq(q).remove();this._data.toArray().splice(q,1);this._asEmpty()}},fileIndex:function(q){return this._index("f",q)},directoryIndex:function(q){return this._index("d",q)},_index:function(s,t){var q=-1,r=this._data?this._data.toArray():[];t=t.toLowerCase();i.each(r,function(u,v){if(v.kind==s&&v.name.toLowerCase()==t){q=u;return false}});return q},_raise:function(s,q){var r=i(s.currentTarget);n.trigger(this.wrapper,q,{kind:r.data("kind"),url:r.data("url")})},_click:function(q){i(q.currentTarget).addClass("t-state-selected").siblings().removeClass("t-state-selected");this._raise(q,"t:change")},_dblclick:function(q){if(document.selection&&document.selection.empty){document.selection.empty()}this._raise(q,"t:select")},_refresh:function(t,q,s,r){this.bindTo(q,s,r)},_process:function(s,q,r){var t=this._reader;var q=q.select(function(u){return{url:t.concatPaths(s,t.name(u)),name:t.name(u),kind:"d"}});var r=r.select(function(u){var v=t.name(u);return{url:t.concatPaths(s,v),name:v,kind:"f",thumbUrl:t.thumbUrl(s,v),size:t.size(u)}});return q.concat(r)}};n.dataSource=function(q){this._url=q.url;this._callback=q.callback;this._error=q.error};n.dataSource.prototype={_complete:function(q){if(this._callback){this._callback(q)}},get:function(q){i.ajax({type:"POST",url:this._url,data:q,success:i.proxy(this._complete,this),error:this._error})}};n.breadcrumbs=function(r,s){this.element=r;this.wrapper=i(r);this._gap=s.gap||50;this._initPaths(s.path);var q=new n.dropDown({effects:n.fx.slide.defaults(),onClick:i.proxy(function(t){var u=i(t.item).text();q.close();this._initPaths(u);i(r).val(u).trigger("t:change")},this)});q.dataBind(s.roots);this.wrapper.delegate("input","focus",i.proxy(this._focus,this)).delegate("input","blur",i.proxy(this._blur,this)).delegate("input","keydown",i.proxy(function(t){if(t.keyCode==13){this._blur()}},this)).delegate("a:not(.t-first)","click",n.stopAll(this._click,this)).delegate(".t-select","click",function(){var t=i(r);q.open({offset:t.offset(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth(),zIndex:n.getElementZIndex(this)})}).bind("t:refresh",i.proxy(this.refresh,this));i(document.documentElement).bind("mousedown",function(u){var t=q.$element[0];if(!i.contains(t,u.target)){q.close()}});this.value(s.path)};n.breadcrumbs.prototype={_initPaths:function(q){this._basePath=(q||"").replace(/\/{2,}/g,"/").replace(/\/$/,"");q=this._basePath.split("/");q.pop();this._root=q.join("/")},_html:function(){var r=this._basePath.split("/").length-1;var q=this.value();if(q===o||!q.match(/^\//)){q="/"+(q||"")}return'
      '+i.map(q.split("/"),function(t,s){if(t&&s>=r){return''+t+""}}).join('>')+'
      select
      '},_path:function(q){return this._root+"/"+i.map(q,function(r){return i(r).text()}).join("/")},_update:function(q){q=q.charAt(0)==="/"?q:"/"+q;var r=this.value()!=q;this.value(q);if(r){this.wrapper.trigger("t:change")}},value:function(q){if(q!==o){this.wrapper.val(q.replace(/\/{2,}/g,"/"));this.refresh()}else{return this.wrapper.val()}},_click:function(q){this._update(this._path(i(q.target).prevAll("a").andSelf()))},refresh:function(){this.wrapper.empty().append(this._html());var r=this.wrapper.width()-this._gap;var q=this.wrapper.find("a");q.each(function(t){var s=i(this);if(s.parent().width()>r){if(t==q.length-1){s.width(r)}else{s.prev().andSelf().hide()}}})},_focus:function(){var q=this.wrapper.find(".t-breadcrumbs-wrap").hide().end().find("input").val(this.value());setTimeout(function(){q.select()})},_blur:function(){var q=this.wrapper.find("input").val().replace(/\/{2,}/g,"/");if(!q||q.toLowerCase().indexOf(this._basePath.toLowerCase())<0){q=this._basePath}this._update(q)}};n.searchBox=function(q){this.element=q;this.wrapper=i(q);this.wrapper.delegate("input","focus",i.proxy(this._focus,this)).delegate("input","blur",i.proxy(this._blur,this)).delegate("input","keydown",i.proxy(function(r){if(r.keyCode==13){this._blur()}},this)).delegate("a","click",n.stopAll(this._click,this));this._render()};n.searchBox.prototype={_render:function(){var q='search';this.wrapper.empty().append(i(q))},_focus:function(){this.wrapper.find("label").hide()},_blur:function(){this._update(this.wrapper.find("input").val());if(this.value()==""){this.wrapper.find("label").show()}},_update:function(q){var r=this.value()!=q;this.value(q);if(r){this.wrapper.trigger("t:change")}},value:function(q){if(q!==o){this.wrapper.val(q)}else{return this.wrapper.val()}},_click:function(){this._blur()}}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.list.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.list.min.js new file mode 100644 index 000000000..11a4970c6 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.list.min.js @@ -0,0 +1 @@ +(function(e){var a=e.telerik;var b=/\s+/;a.scripts.push("telerik.list.js");a.list={htmlBuilder:function(g,f,h){var k,n,l=g.id,m=g.name,o=new a.stringBuilder(),i=e(g);if(h){n=i.find("option:selected").text();k=i.val()}else{n=g.value}function j(){return e(['
      '].join(" "))}this.render=function(){i.wrap(j()).hide();var p=e('
      ').insertBefore(i);this.text({builder:o,text:n,id:l,name:m}).appendTo(p);e('select').appendTo(p);if(h){o.buffer=[];e(o.cat('").string()).insertAfter(p)}};this.text=function(p){return e(['',p.text||" ",""].join(""))}},initialize:function(){this.previousValue=this.value();a.bind(this,{dataBinding:this.onDataBinding,dataBound:this.onDataBound,error:this.onError,open:this.onOpen,close:this.onClose,valueChange:this.onChange,load:this.onLoad})},common:function(){this.open=function(){if(!this.loader.isAjax()&&(!this.data||this.data.length==0)){return}var g=this.$wrapper||this.$element,f=this.dropDown;var h={offset:g.offset(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth(),zIndex:a.getElementZIndex(g[0])};if(f.$items){f.open(h)}else{this.fill(function(){f.open(h)})}};this.close=function(){this.dropDown.close()};this.dataBind=function(k,g){this.data=k=(k||[]);var j=-1;for(var f=0,h=k.length;f-1&&j0){m.filters[k](m,f,j);var g=m.filteredDataIndexes;if((g&&g.length>0)||(k==0&&m.selectedIndex!=-1)){s=false}}if(s){var p={};p[m.queryString.text]=j;m.loader.ajaxRequest(function(u){var v=m.trigger;var t=m.dropDown;if(u&&u.length==0){t.close();t.dataBind();return}m.data=u;a.trigger(m.element,"dataBound");m.filters[k](m,u,j);var w=t.$items;if(w.length>0){if(!t.isOpened()){v.open()}m.filtering.autoFill(m,w.first().text())}else{v.close()}},{data:p})}}else{s=false;m.filters[k](m,m.data,j)}if(!s){var r=l.$items;if(!r){return}var h=r.length,i=m.selectedIndex;var n=k==0?i!=-1?r[i].innerText||r[i].textContent:"":r.length>0?r.first().text():"";this.autoFill(m,n);if(h==0){o.close()}else{if(!l.isOpened()){o.open()}}}};this.multiple=function(f){return f}},filters:function(){this.filters=[function f(g,k,n){if(!k||k.length==0){return}var l=g.dropDown;var j=l.$items;if(!j||j.length==0||g.loader.isAjax()){l.dataBind(k,g.encoded);j=l.$items}for(var h=0,m=k.length;h .t-dropdown-wrap .t-icon").addClass("t-loading")},this),100)},this.hideBusy=function(){clearTimeout(this.busyTimeout);this.component.$wrapper.find("> .t-dropdown-wrap .t-icon").removeClass("t-loading")}},trigger:function(f){this.component=f;this.change=function(){var g=f.previousValue;var h=f.value();if(g==undefined||h!=g){a.trigger(f.element,"valueChange",{value:h})}f.previousValue=h};this.open=function(){var g=f.dropDown;if((g.$items&&g.$items.length>0)&&!g.isOpened()&&!a.trigger(f.element,"open")){f.open()}};this.close=function(){var g=f.dropDown;if((g.$element.is(":animated")||g.isOpened())&&!a.trigger(f.element,"close")){f.close()}}},retrieveData:function(l){var k=[];var h=e(l).find("option");for(var f=0,g=h.length;f]*)("+l.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)",f?"ig":"i");h.filteredDataIndexes=j;h.selectedIndex=-1;h.dropDown.onItemCreate=function(n){if(l){n.html=n.html.replace(m,"$1")}};h.dropDown.dataBind(e.map(j,function(o,n){return k[o]}),h.encoded);var i=h.dropDown.$items;i.removeClass("t-state-selected");a.list.highlightFirstOnFilter(h,i)}}function c(f,h,k){if(!f||!h){return null}var l=k.length;k=k.toLowerCase();for(var g=0,j=f.length;g .t-dropdown-wrap > .t-input");if(!this.$wrapper.attr("tabIndex")){this.$wrapper.attr("tabIndex",0)}this.dropDown=new a.dropDown({attr:this.dropDownAttr,effects:this.effects,onClick:e.proxy(function(p){this.select(p.item);this.trigger.change();this.trigger.close();this.$wrapper.focus()},this)});this.dropDown.$element.css("direction",this.$wrapper.closest(".t-rtl").length?"rtl":"");var o=function(t){var p="class",r=h.attr(p);if((t.attrName&&t.attrName=="class")||(t.propertyName&&t.propertyName=="className")){var s=h.prev(".t-dropdown-wrap");var q=/\b(t-state-[\w]+)\b/.exec(s.attr(p));if(!(q&&q[0])){q=""}else{q=q[0]}if(r!=s.attr(p)){s.attr(p,r).addClass("t-dropdown-wrap "+q)}}};if(e.browser.msie){f.attachEvent("onpropertychange",o)}else{h.bind("DOMAttrModified",o)}h.closest("form").bind("reset",e.proxy(function(q){var p=this;window.setTimeout(function(){if(h.val()!=""){p.value(h.val())}else{p.text("");p.highlight(0);p.selectedIndex=0}},1)},this));this.fill=function(s){function r(u){var t,w=u.selectedValue||u.value();if(w){t=function(z){return w==(z.Value||z.Text)}}else{var v=u.dropDown.$items,x=u.index,y=v.filter(".t-state-selected").length;t=x!=-1&&x0?y-1:0}u.select(t)}var p=this.dropDown,q=this.loader;if(!p.$items&&!q.ajaxError){if(q.isAjax()){q.ajaxRequest(function(t){this.dataBind(t);r(this);a.trigger(this.element,"dataBound");this.trigger.change();if(s){s()}})}else{this.dataBind(this.data);r(this);if(s){s()}}}};this.enable=function(){var p=this.$wrapper.removeClass("t-state-disabled");if(!p.data("events")){this.$wrapper.removeClass("t-state-disabled").bind({keydown:e.proxy(k,this),keypress:e.proxy(l,this),click:e.proxy(function(s){var r=this.trigger;var q=this.dropDown;this.$wrapper.focus();if(q.isOpened()){r.close()}else{if(!q.$items){this.fill(r.open)}else{r.open()}}},this)})}h.removeAttr("disabled")};this.disable=function(){h.attr("disabled","disabled");this.$wrapper.addClass("t-state-disabled").unbind()};this.reload=function(){this.dropDown.$items=null;this.fill()};this.select=function(q){var p=this.highlight(q);if(p!=-1){this.selectedIndex=p;a.list.updateTextAndValue(this,this.data[p].Text,this.data[p].Value)}return p};this.text=function(p){if(p!==undefined){if(this.encoded){p=a.encode(p)}this.$text.html(p&&p.replace(b,"")?p:" ")}else{return this.$text.html()}};this.value=function(q){if(q!==undefined){var p=this.select(function(r){return q==r.Value});if(p==-1){p=this.select(function(r){return q==r.Text})}if(p!=-1){this.previousValue=this.$element.val()}}else{return this.$element.val()}};a.list.common.call(this);a.list.initialize.call(this);e(document.documentElement).bind("mousedown",e.proxy(function(r){var p=this.dropDown.$element;var q=p&&p.parent().length>0;if(e.contains(this.$wrapper[0],r.target)||(q&&e.contains(p.parent()[0],r.target))){return}this.trigger.change();this.trigger.close()},this));this[this.enabled?"enable":"disable"]();function m(){clearTimeout(this.timeout);this.timeout=setTimeout(e.proxy(function(){i=""},this),this.delay)}function k(w){var t=this.trigger;var q=this.dropDown;var u=w.keyCode||w.which;if(w.altKey&&(u==38||u==40)){var r=u==38?t.close:t.open;if(!q.$items){this.fill(r)}else{r()}return}if(u>34&&u<41){w.preventDefault();if(!q.$items){this.fill();return}var s=q.$items,v=e(s[this.selectedIndex]);var p=(u==35)?s.last():(u==36)?s.first():(u==37||u==38)?v.prev():(u==39||u==40)?v.next():[];if(p.length){var x=p[0];this.select(x);q.scrollTo(x);if(!q.isOpened()){t.change()}}}if(u==8){e.proxy(m,this)();w.preventDefault();i=i.slice(0,-1)}if(u==9||u==13||u==27){t.change();t.close()}}function l(t){var p=this.dropDown;var q=t.keyCode||t.charCode;if(q==0||e.inArray(q,a.list.keycodes)!=-1||t.ctrlKey||t.altKey||t.shiftKey){return}if(!p.$items){this.fill();return}var r=i;r+=String.fromCharCode(q);if(r){var s=c(this.data,p.$items,r);if(s){this.select(s);p.scrollTo(s)}i=r}e.proxy(m,this)()}};e.fn.tDropDownList=function(f){return a.create(this,{name:"tDropDownList",init:function(g,h){return new a.dropDownList(g,h)},options:f})};e.fn.tDropDownList.defaults={effects:a.fx.slide.defaults(),accessible:false,index:0,delay:500,enabled:true,encoded:true}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.menu.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.menu.min.js new file mode 100644 index 000000000..279dd455a --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.menu.min.js @@ -0,0 +1 @@ +(function(d){var a=d.telerik;a.scripts.push("telerik.menu.js");a.menu=function(e,f){this.element=e;this.nextItemZIndex=100;d.extend(this,f);d(".t-item:not(.t-state-disabled)",e).live("mouseenter",a.delegate(this,this.mouseenter),true).live("mouseleave",a.delegate(this,this.mouseleave),true).live("click",a.delegate(this,this.click));d(".t-item:not(.t-state-disabled) > .t-link",e).live("mouseenter",a.hover).live("mouseleave",a.leave);d(".t-item.t-state-disabled",e).live("click",function(){return false});d(document).click(a.delegate(this,this.documentClick));a.bind(this,{select:this.onSelect,open:this.onOpen,close:this.onClose,load:this.onLoad})};function b(e){var f=e.parent();return{direction:f.hasClass("t-menu")?f.hasClass("t-menu-vertical")?"right":"bottom":"right"}}function c(f,g){try{return d.contains(f,g)}catch(h){return false}}a.menu.prototype={toggle:function(f,e){d(f).each(function(){d(this).toggleClass("t-state-default",e).toggleClass("t-state-disabled",!e)})},enable:function(e){this.toggle(e,true)},disable:function(e){this.toggle(e,false)},open:function(f){var e=this;d(f).each(function(){var g=d(this);clearTimeout(g.data("timer"));g.data("timer",setTimeout(function(){var h=g.find(".t-group:first");if(h.length){a.fx.play(e.effects,h,b(g));g.css("z-index",e.nextItemZIndex++)}},100))})},close:function(f){var e=this;d(f).each(function(h,i){var g=d(i);clearTimeout(g.data("timer"));g.data("timer",setTimeout(function(){var j=g.find(".t-group:first");if(j.length){a.fx.rewind(e.effects,j,b(g),function(){g.css("zIndex","");if(d(e.element).find(".t-group:visible").length==0){e.nextItemZIndex=100}});j.find(".t-group").stop(false,true)}},100))})},mouseenter:function(i,h){var g=d(h);if(!this.openOnClick||this.clicked){if(!c(h,i.relatedTarget)){this.triggerEvent("open",g);this.open(g);var f=g.parent().closest(".t-item")[0];if(f&&!c(f,i.relatedTarget)){this.mouseenter(i,f)}}}if(this.openOnClick&&this.clicked){this.triggerEvent("close",g);g.siblings().each(d.proxy(function(j,e){this.close(d(e))},this))}},mouseleave:function(i,h){if(!this.openOnClick&&!c(h,i.relatedTarget)){var g=d(h);this.triggerEvent("close",g);this.close(g);var f=g.parent().closest(".t-item")[0];if(f&&!c(f,i.relatedTarget)){this.mouseleave(i,f)}}},click:function(h,g){h.stopPropagation();var f=d(g);if(f.hasClass("t-state-disabled")){h.preventDefault();return}a.trigger(this.element,"select",{item:f[0]});if(!f.parent().hasClass("t-menu")||!this.openOnClick){return}h.preventDefault();this.clicked=true;this.triggerEvent("open",f);this.open(f)},documentClick:function(g,f){if(d.contains(this.element,g.target)){return}if(this.clicked){this.clicked=false;d(this.element).children(".t-item").each(d.proxy(function(e,h){this.close(d(h))},this))}},hasChildren:function(e){return e.find(".t-group:first").length},triggerEvent:function(e,f){if(this.hasChildren(f)){a.trigger(this.element,e,{item:f[0]})}}};d.fn.tMenu=function(e){return a.create(this,{name:"tMenu",init:function(f,g){return new a.menu(f,g)},options:e})};d.fn.tMenu.defaults={orientation:"horizontal",effects:a.fx.slide.defaults(),openOnClick:false}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.panelbar.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.panelbar.min.js new file mode 100644 index 000000000..64f58d521 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.panelbar.min.js @@ -0,0 +1 @@ +(function(c){var a=c.telerik,b={single:0,multi:1};a.scripts.push("telerik.panelbar.js");c.extend(a,{panelbar:function(f,g){this.element=f;c.extend(this,g);var h=c(f),e=h.find("li.t-state-active > .t-content"),d=".t-item:not(.t-state-disabled) > .t-link";h.delegate(d,"click",c.proxy(this._click,this)).delegate(d,"mouseenter",a.hover).delegate(d,"mouseleave",a.leave).delegate(".t-item.t-state-disabled > .t-link","click",a.preventDefault);a.bind(this,{expand:this.onExpand,collapse:this.onCollapse,select:c.proxy(function(i){if(i.target==this.element&&this.onSelect){this.onSelect(i)}},this),error:this.onError,load:this.onLoad});if(this.contentUrls){h.find("> .t-item").each(c.proxy(function(i,j){c(j).find(".t-link").data("ContentUrl",this.contentUrls[i])},this))}if(e.length>0&&e.is(":empty")){this.expand(e.parent())}}});a.panelbar.prototype={expand:function(d){c(d).each(c.proxy(function(f,g){var e=c(g);if(!e.hasClass(".t-state-disabled")&&e.find("> .t-group, > .t-content").length>0){if(this.expandMode==b.single&&this._collapseAllExpanded(e)){return}this._toggleItem(e,false,null)}},this))},collapse:function(d){c(d).each(c.proxy(function(f,g){var e=c(g);if(!e.hasClass(".t-state-disabled")&&e.find("> .t-group, > .t-content").is(":visible")){this._toggleItem(e,true,null)}},this))},toggle:function(e,d){c(e).each(function(){c(this).toggleClass("t-state-default",d).toggleClass("t-state-disabled",!d)})},enable:function(d){this.toggle(d,true)},disable:function(d){this.toggle(d,false)},_click:function(m){var f=c(m.target),g=this.element;if(f.closest(".t-widget")[0]!=g){return}var d=f.closest(".t-link"),j=d.closest(".t-item");c(".t-state-selected",g).removeClass("t-state-selected");d.addClass("t-state-selected");if(a.trigger(g,"select",{item:j[0]})){m.preventDefault()}var l=j.find("> .t-content, > .t-group"),h=d.attr("href"),k=d.data("ContentUrl")||(h&&(h.charAt(h.length-1)=="#"||h.indexOf("#"+g.id+"-")!=-1));if(k||l.length>0){m.preventDefault()}else{return}if(this.expandMode==b.single){if(this._collapseAllExpanded(j)){return}}if(l.length!=0){var i=l.is(":visible");if(!a.trigger(g,!i?"expand":"collapse",{item:j[0]})){this._toggleItem(j,i,m)}}},_toggleItem:function(f,h,i){var j=f.find("> .t-group");if(j.length){this._toggleGroup(j,h);if(i!=null){i.preventDefault()}}else{var g=f.parent().children().index(f),d=f.find("> .t-content");if(d.length){if(i!=null){i.preventDefault()}if(!d.is(":empty")){this._toggleGroup(d,h)}else{this._ajaxRequest(f,d,h)}}}},_toggleGroup:function(d,e){if(d.is(":visible")!=e||d.data("animating")){return}d.data("animating",true).parent().toggleClass("t-state-default",e).toggleClass("t-state-active",!e).find("> .t-link > .t-icon").toggleClass("t-arrow-up",!e).toggleClass("t-panelbar-collapse",!e).toggleClass("t-arrow-down",e).toggleClass("t-panelbar-expand",e);a.fx[!e?"play":"rewind"](this.effects,d,null,function(){d.data("animating",false)})},_collapseAllExpanded:function(d){if(d.find("> .t-link").hasClass("t-header")){if(d.find("> .t-content, > .t-group").is(":visible")||d.find("> .t-content, > .t-group").length==0){return true}else{c(this.element).children().find("> .t-content, > .t-group").filter(function(){return c(this).is(":visible")}).each(c.proxy(function(f,e){this._toggleGroup(c(e),true)},this))}}},_ajaxRequest:function(f,d,h){var i=f.find(".t-panelbar-collapse, .t-panelbar-expand"),e=f.find(".t-link"),g=setTimeout(function(){i.addClass("t-loading")},100),j={};c.ajax({type:"GET",cache:false,url:e.data("ContentUrl")||e.attr("href"),dataType:"html",data:j,error:c.proxy(function(l,k){if(a.ajaxError(this.element,"error",l,k)){return}},this),complete:function(){clearTimeout(g);i.removeClass("t-loading")},success:c.proxy(function(k,l){d.html(k);this._toggleGroup(d,h)},this)})}};c.fn.tPanelBar=function(d){return a.create(this,{name:"tPanelBar",init:function(e,f){return new a.panelbar(e,f)},options:d})};c.fn.tPanelBar.defaults={effects:a.fx.property.defaults("height")}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.slider.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.slider.min.js new file mode 100644 index 000000000..71cffeba0 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.slider.min.js @@ -0,0 +1 @@ +(function(g){var l=g.telerik;l.scripts.push("telerik.slider.js");l.slider=function(n,o){var p=g(n);this.element=n;o.distance=o.maxValue-o.minValue;g.extend(this,o);o.position=this.orientation=="horizontal"?"left":"bottom";o.size=this.orientation=="horizontal"?"width":"height";o.orientation=this.orientation;k(n,o);this.wrapper=p.closest(".t-slider");this.trackDiv=this.wrapper.find(".t-slider-track");l.slider.setTrackDivWidth(this.wrapper,o);this.maxSelection=this.trackDiv[o.size]();var r=this.maxSelection/((this.maxValue-this.minValue)/this.smallStep);var q=l.slider.calculateItemsWidth(this.wrapper,o,Math.floor(this.distance/this.smallStep));if(o.tickPlacement!="none"&&r>=2){this.trackDiv.before(c(o));l.slider.setItemsWidth(this.wrapper,this.trackDiv,q,o);l.slider.setItemsTitle(this.wrapper,o);l.slider.setItemsLargeTick(this.wrapper,o)}l.slider.calculateSteps.call(this,q);var m={element:n,dragHandle:this.wrapper.find(".t-draghandle"),orientation:o.orientation,size:o.size,position:o.position,owner:this};this._setValueInRange(o.val);this[o.enabled?"enable":"disable"]();new l.slider.Selection(m);this._drag=new l.slider.Drag(m);this.keyMap={37:h(o.smallStep),40:h(o.smallStep),39:j(o.smallStep),38:j(o.smallStep),35:e(o.maxValue),36:e(o.minValue),33:j(o.largeStep),34:h(o.largeStep)};l.bind(this,{slide:this.onSlide,change:this.onChange,load:this.onLoad})};g.extend(l.slider,{setTrackDivWidth:function(o,p){var n=o.find(".t-slider-track");var m=parseFloat(n.css(p.position),10)*2;n[p.size]((o[p.size]()-2)-m)},setItemsWidth:function(u,q,p,n){var m=Math.floor(n.distance/n.smallStep),s=u.find(".t-tick"),r=0,t=q[n.size]();arr=g.extend([],p);if(n.orientation=="horizontal"){for(var o=0;o=0;m--){g(q[m]).attr("title",l.formatString(p.tooltip.format||"{0}",parseFloat(n.toFixed(3),10)));n+=p.smallStep}}},setItemsLargeTick:function(r,o){if((1000*o.largeStep)%(1000*o.smallStep)==0){var q=r.find(".t-tick"),p={},m=parseFloat((o.largeStep/o.smallStep).toFixed(3),10);if(o.orientation=="horizontal"){for(var n=0;n").html(p.attr("title")))}}else{for(var n=q.length-1;n>=0;n=parseFloat((n-m).toFixed(3),10)){p=g(q[n]);p.addClass("t-tick-large").html(g("").html(p.attr("title")));if(n!=0&&n!=q.length-1){p.css("line-height",p[o.size]()+"px")}}}}},calculateItemsWidth:function(t,o,n){var s=parseFloat(t.find(".t-slider-track").css(o.size))+1,p=s/o.distance;if((o.distance/o.smallStep)-Math.floor(o.distance/o.smallStep)>0){s-=((o.distance%o.smallStep)*p)}var m=s/n,r=new Array();for(var q=0;q=this._valuesArray.length-1||p<=0){this._setValueInRange(this.val+(r*this.smallStep))}else{this._setValueInRange(this._valuesArray[p+(r*1)])}},this);if(this.showButtons){var n=g.proxy(function(p,q){if(p.which==1){o(p,q);this.timeout=setTimeout(g.proxy(function(){this.timer=setInterval(function(){o(p,q)},60)},this),200)}},this);this.wrapper.find(".t-button").unbind("mousedown").unbind("mouseup").bind("mouseup",g.proxy(function(p){this._clearTimer()},this)).unbind("mouseover").bind("mouseover",function(p){g(p.currentTarget).addClass("t-state-hover")}).unbind("mouseout").bind("mouseout",g.proxy(function(p){g(p.currentTarget).removeClass("t-state-hover");this._clearTimer()},this)).eq(0).bind("mousedown",g.proxy(function(p){n(p,1)},this)).end().eq(1).bind("mousedown",g.proxy(function(p){n(p,-1)},this))}this.wrapper.find(".t-draghandle").bind({keydown:g.proxy(this._keydown,this)});this.enabled=true},disable:function(){this.wrapper.attr("disabled","disabled").removeClass("t-state-default").addClass("t-state-disabled");var m=l.preventDefault;this.wrapper.find(".t-button").unbind("mousedown").bind("mousedown",m).unbind("mouseup").bind("mouseup",m).unbind("mouseleave").bind("mouseleave",m).unbind("mouseover").bind("mouseover",m);this.wrapper.find(".t-tick").unbind("mousedown").end().find(".t-slider-track").unbind("mousedown");this.wrapper.find(".t-draghandle").unbind("keydown").bind("keydown",m);this.enabled=false},_update:function(m){var n=this.value()!=m;this.value(m);if(n){l.trigger(this.element,"change",{value:this.val})}},value:function(m){m=parseFloat(parseFloat(m,10).toFixed(3),10);if(isNaN(m)){return this.val}if(m>=this.minValue&&m<=this.maxValue){if(this.val!=m){g(this.element).attr("value",a(m));this.val=m;this.refresh()}}},refresh:function(){l.trigger(this.element,"t:moveSelection",{value:this.val})},_clearTimer:function(m){clearTimeout(this.timeout);clearInterval(this.timer)},_keydown:function(m){if(m.keyCode in this.keyMap){this._setValueInRange(this.keyMap[m.keyCode](this.val));m.preventDefault()}},_setValueInRange:function(m){m=parseFloat(parseFloat(m,10).toFixed(3),10);if(isNaN(m)){this._update(this.minValue);return}m=Math.max(m,this.minValue);m=Math.min(m,this.maxValue);this._update(m)}};l.slider.Selection=function(o){var p=g(o.element);function n(t){var v=o.owner,s=t-v.minValue,w=Math.ceil(s/v.smallStep),r=v._pixelStepsArray[w],q=v.trackDiv.find(".t-slider-selection"),u=parseInt(o.dragHandle[o.size]()/2,10)+1;q[o.size](r);o.dragHandle.css(o.position,r-u)}n(parseFloat(p.val(),10));var m=function(q){n(parseFloat(q.value,10))};p.bind({change:m,slide:m,"t:moveSelection":m})};l.slider.Drag=function(n){n.dragHandleSize=n.dragHandle[n.size]();g.extend(this,n);var m="";switch(n.type){case"firstHandle":m=".t-draghandle:first";break;case"lastHandle":m=".t-draghandle:last";break;default:m=".t-draghandle";break}this.draggable=new l.draggable({distance:0,owner:n.owner.wrapper[0],selector:m,scope:n.element.id,start:g.proxy(this._start,this),drag:g.proxy(this.drag,this),stop:g.proxy(this.stop,this)})};l.slider.Drag.prototype={start:function(m){this.draggable._startDrag(m.currentTarget,{x:m.pageX,y:m.pageY})},_start:function(p){if(!this.owner.enabled){return false}g(this.element).unbind("mouseover");this.val=parseFloat(g(this.element).val());this.dragableArea=l.slider.getDragableArea(this.owner.trackDiv,this.owner.maxSelection,this.orientation);this.step=Math.max(this.owner.smallStep*(this.owner.maxSelection/this.owner.distance),0);this.selectionStart=this.owner.selectionStart;this.selectionEnd=this.owner.selectionEnd;this.oldVal=this.val;this.format=this.owner.tooltip.format||"{0}";if(this.type){this.owner._setZIndex(this.type)}if(this.owner.tooltip.enabled){this.tooltipDiv=g("
      ").appendTo(document.body);if(this.type){var n=l.formatString(this.format,this.selectionStart),m=l.formatString(this.format,this.selectionEnd);this.tooltipDiv.html(n+" - "+m)}else{var o="t-callout-";if(this.orientation=="horizontal"){if(this.owner.tickPlacement=="topLeft"){o+="n"}else{o+="s"}}else{if(this.owner.tickPlacement=="topLeft"){o+="w"}else{o+="e"}}this.tooltipInnerDiv="
      ";this.tooltipDiv.html(l.formatString(this.owner.tooltip.format||"{0}",this.val)+this.tooltipInnerDiv)}this.moveTooltip(this.tooltipDiv)}},drag:function(o){if(this.orientation=="horizontal"){this.val=this.horizontalDrag(o)}else{this.val=this.verticalDrag(o)}if(this.oldVal!=this.val){this.oldVal=this.val;if(this.type){if(this.type=="firstHandle"){if(this.valthis.selectionStart){this.selectionEnd=this.val}else{this.selectionStart=this.selectionEnd=this.val}}l.trigger(this.element,"slide",{values:[this.selectionStart,this.selectionEnd]});if(this.owner.tooltip.enabled){var n=l.formatString(this.format,this.selectionStart),m=l.formatString(this.format,this.selectionEnd);this.tooltipDiv.html(n+" - "+m)}}else{l.trigger(this.element,"slide",{value:this.val});if(this.owner.tooltip.enabled){this.tooltipDiv.html(l.formatString(this.format,this.val)+this.tooltipInnerDiv)}}if(this.owner.tooltip.enabled){this.moveTooltip(this.tooltipDiv)}}},stop:function(m){if(m.keyCode==27){this.owner.refresh()}else{if(this.type){this.owner._update(this.selectionStart,this.selectionEnd)}else{this.owner._update(this.val)}}if(this.owner.tooltip.enabled){this.tooltipDiv.remove()}g(this.element).bind("mouseover");return false},moveTooltip:function(s){var r=0,p=0;if(this.type){var o=this.owner.wrapper.find(".t-draghandle"),n=o.eq(0).offset(),t=o.eq(1).offset();if(this.orientation=="horizontal"){r=t.top;p=n.left+((t.left-n.left)/2)}else{r=n.top+((t.top-n.top)/2);p=t.left}}else{var q=this.dragHandle.offset();r=q.top;p=q.left}var m=s[this.size]()/2;if(this.orientation=="horizontal"){p-=m;if(this.owner.tickPlacement!="topLeft"){r-=35}else{r+=33}}else{r-=m;if(this.owner.tickPlacement!="topLeft"){p-=s.width()+23}else{p+=31}}s.css({top:r,left:p})},horizontalDrag:function(m){var n=0;if(this.dragableArea.startPoint=this.dragableArea.endPoint){n=this.owner.maxValue}else{n=this.owner.minValue}}return n},verticalDrag:function(m){var n=0;if(this.dragableArea.startPoint>m.pageY&&m.pageY>this.dragableArea.endPoint){n=l.slider.getValueFromPosition(m.pageY,this.dragableArea,this.owner)}else{if(m.pageY<=this.dragableArea.endPoint){n=this.owner.maxValue}else{n=this.owner.minValue}}return n}};function b(n,m){var o=g(m),r=n.orientation=="horizontal"?" t-slider-horizontal":" t-slider-vertical",p;if(n.tickPlacement=="bottomRight"){p=" t-slider-bottomright"}else{if(n.tickPlacement=="topLeft"){p=" t-slider-topleft"}}var q=n.style?n.style:o.attr("style");return new l.stringBuilder().cat("
      ").cat("
      ").string()}function d(p,o){var n,m=p.orientation=="horizontal";if(o=="increase"){n=m?"t-arrow-next":"t-arrow-up"}else{n=m?"t-arrow-prev":"t-arrow-down"}return new l.stringBuilder().cat("").cat(p[o+"ButtonTitle"]).cat("").string()}function c(m){return new l.stringBuilder().cat("
        ").rep("
      •  
      • ",(Math.floor((m.distance/m.smallStep).toFixed(3),10)+1)).cat("
      ").string()}function f(m){var n=m.is("input")?1:2;return new l.stringBuilder().cat("
      ").cat("
      ").cat("Drag").catIf("Drag",n>1).cat("
      ").string()}function k(m,n){var o=g(m);o.val(n.val);o.wrap(b(n,m)).hide();if(n.showButtons){o.before(d(n,"increase")).before(d(n,"decrease"))}o.before(f(o))}g.fn.tSlider=function(m){return l.create(this,{name:"tSlider",init:function(n,o){return new l.slider(n,o)},options:m})};g.fn.tSlider.defaults={enabled:true,minValue:0,maxValue:10,val:0,smallStep:1,largeStep:5,showButtons:true,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:true,format:"{0}"}};l.rangeSlider=function(m,n){var o=g(m);this.element=m;n.distance=n.maxValue-n.minValue;g.extend(this,n);n.position=this.orientation=="horizontal"?"left":"bottom";n.size=this.orientation=="horizontal"?"width":"height";k(m,n);this.wrapper=o.closest(".t-slider");this.trackDiv=this.wrapper.find(".t-slider-track");l.slider.setTrackDivWidth(this.wrapper,n);this.maxSelection=this.trackDiv[n.size]();var q=this.maxSelection/((this.maxValue-this.minValue)/this.smallStep);var p=l.slider.calculateItemsWidth(this.wrapper,n,Math.floor(this.distance/this.smallStep));if(n.tickPlacement!="none"&&q>=2){this.trackDiv.before(c(n));l.slider.setItemsWidth(this.wrapper,this.trackDiv,p,n);l.slider.setItemsTitle(this.wrapper,n);l.slider.setItemsLargeTick(this.wrapper,n)}l.slider.calculateSteps.call(this,p);this._correctValues(this.selectionStart,this.selectionEnd);var s={element:m,type:"firstHandle",dragHandle:this.wrapper.find(".t-draghandle:first"),orientation:n.orientation,size:n.size,position:n.position,owner:this};this._firstHandleDrag=new l.slider.Drag(s);new l.rangeSlider.Selection(s);var r={element:m,type:"lastHandle",dragHandle:this.wrapper.find(".t-draghandle:last"),orientation:n.orientation,size:n.size,position:n.position,owner:this};this._lastHandleDrag=new l.slider.Drag(r);this[n.enabled?"enable":"disable"]();this.keyMap={37:h(n.smallStep),40:h(n.smallStep),39:j(n.smallStep),38:j(n.smallStep),35:e(n.maxValue),36:e(n.minValue),33:j(n.largeStep),34:h(n.largeStep)};l.bind(this,{slide:this.onSlide,change:this.onChange,load:this.onLoad})};l.rangeSlider.prototype={enable:function(){this.wrapper.removeAttr("disabled").removeClass("t-state-disabled").addClass("t-state-default");var m=g.proxy(function(q){if(g(q.target).hasClass("t-draghandle")){return}var o=this.orientation=="horizontal"?q.pageX:q.pageY,n=l.slider.getDragableArea(this.trackDiv,this.maxSelection,this.orientation),p=l.slider.getValueFromPosition(o,n,this);if(pthis.selectionEnd){this._setValueInRange(this.selectionStart,p);this._lastHandleDrag.start(q)}else{if(p-this.selectionStart<=this.selectionEnd-p){this._setValueInRange(p,this.selectionEnd);this._firstHandleDrag.start(q)}else{this._setValueInRange(this.selectionStart,p);this._lastHandleDrag.start(q)}}}},this);this.wrapper.find(".t-tick").bind("mousedown",m).end().find(".t-slider-track").bind("mousedown",m);this.wrapper.find(".t-draghandle").eq(0).bind({keydown:g.proxy(function(n){this._keydown(n,true)},this)}).end().eq(1).bind({keydown:g.proxy(function(n){this._keydown(n,false)},this)});this.enabled=true},disable:function(){this.wrapper.attr("disabled","disabled").removeClass("t-state-default").addClass("t-state-disabled");this.wrapper.find(".t-tick").unbind("mousedown").end().find(".t-slider-track").unbind("mousedown");this.wrapper.find(".t-draghandle").unbind("keydown").bind("keydown",l.preventDefault);this.enabled=false},_keydown:function(p,m){var o=this.selectionStart,n=this.selectionEnd;if(p.keyCode in this.keyMap){if(m){o=this.keyMap[p.keyCode](o);if(o>n){n=o}}else{n=this.keyMap[p.keyCode](n);if(n=this.minValue&&n<=this.maxValue&&m>=this.minValue&&m<=this.maxValue&&n<=m){if(this.selectionStart!=n||this.selectionEnd!=m){g(this.element).find("input").eq(0).attr("value",a(n)).end().eq(1).attr("value",a(m));this.selectionStart=n;this.selectionEnd=m;this.refresh()}}},refresh:function(){l.trigger(this.element,"t:moveSelection",{values:[this.selectionStart,this.selectionEnd]});if(this.selectionStart==this.maxValue&&this.slectionEnd==this.maxValue){this._setZIndex("firstHandle")}},_setValueInRange:function(m,n){m=Math.max(m,this.minValue);m=Math.min(m,this.maxValue);n=Math.max(n,this.minValue);n=Math.min(n,this.maxValue);if(this.selectionStart==this.maxValue&&this.slectionEnd==this.maxValue){this._setZIndex("firstHandle")}this._update(m,n)},_correctValues:function(n,m){if(n>=m){this._setValueInRange(m,n)}else{this._setValueInRange(n,m)}},_setZIndex:function(o){var q=this.wrapper.find(".t-draghandle"),m=q.eq(0),p=q.eq(1),n="z-index";if(o=="firstHandle"){m.css(n,"1");p.css(n,"")}else{m.css(n,"");p.css(n,"1")}}};l.rangeSlider.Selection=function(m){var q=m.owner;function r(t){var z=t[0]-q.minValue,x=t[1]-q.minValue,y=Math.ceil(z/q.smallStep),v=Math.ceil(x/q.smallStep),u=q._pixelStepsArray[y],w=q._pixelStepsArray[v],s=q.wrapper.find(".t-draghandle"),A=parseInt(s.eq(0)[m.size]()/2,10)+1;s.eq(0).css(m.position,u-A).end().eq(1).css(m.position,w-A);o(u,w)}function o(v,t){var u=0,w=0,s=q.trackDiv.find(".t-slider-selection");u=Math.abs(v-t);w=v");f.ajax(this.ajaxOptions(k,{url:j||l.contentUrl}))}},resize:function(){var v=this.$element,C=v.children(":not(.t-splitbar)"),k=this.orientation=="horizontal",q=v.children(".t-splitbar").length,z=k?"width":"height",D=v[z]();if(q===0){q=C.length-1;for(var l=0;l")}return this};t.cat("
      ").catIconIf("t-collapse-prev",n.collapsible&&!n.collapsed).catIconIf("t-expand-prev",n.collapsible&&n.collapsed).catIconIf("t-resize-handle",s).catIconIf("t-collapse-next",o.collapsible&&!o.collapsed).catIconIf("t-expand-next",o.collapsible&&o.collapsed).cat("
      ");j.after(t.string())}}D-=h*q;var y=0,x=0,p=f();C.css({position:"absolute",top:0})[z](function(){var E=f(this).data("pane"),F;if(E.collapsed){F=0}else{if(c(E.size)){p=p.add(this);return}else{F=parseInt(E.size,10);if(b(E.size)){F=Math.floor(F*D/100)}}}x++;y+=F;return F});D-=y;var u=p.length,B=Math.floor(D/u);p.slice(0,u-1).css(z,B).end().eq(u-1).css(z,D-(u-1)*B);var w=0,r=k?"height":"width",m=k?"left":"top",A=k?"offsetWidth":"offsetHeight";v.children().css(r,v[r]()).each(function(E,F){F.style[m]=Math.floor(w)+"px";w+=F[A]})}};i.splitter.PaneResizing=function(j){this.owner=j;new i.draggable({distance:0,owner:j.element,selector:".t-splitbar-draggable-horizontal, .t-splitbar-draggable-vertical",scope:j.element.id,start:f.proxy(this.start,this),drag:f.proxy(this.drag,this),stop:f.proxy(this.stop,this)})};i.splitter.PaneResizing.prototype={start:function(x){var l=x.$draggable,o=l.prev(),p=l.next(),m=o.data("pane"),q=p.data("pane"),u=this.owner.orientation==="horizontal",y=u?"width":"height",z=u?"offsetWidth":"offsetHeight",s=u?"height":"width";this.positioningProperty=u?"left":"top";this.mousePositioningProperty=u?"pageX":"pageY";this.previousPane=o;this.nextPane=p;this.initialSplitBarPosition=parseInt(l[0].style[this.positioningProperty]);this.initialMousePosition=x[this.mousePositioningProperty];this.ghostSplitBar=f("
      ").css(s,x.$draggable[s]()).css(this.positioningProperty,this.initialSplitBarPosition).appendTo(this.owner.element);var A=parseInt(o[0].style[this.positioningProperty]),n=parseInt(p[0].style[this.positioningProperty])+p[0][z]-h,w=this.owner.$element.css(y),t=function(C){var B=parseInt(C,10);return(g(C)?B:(w*B)/100)||0},v=t(m.minSize),k=t(m.maxSize)||n-A,j=t(q.minSize),r=t(q.maxSize)||n-A;this.maxSize=Math.min(n-j,A+k);this.minSize=Math.max(A+v,n-r);f(document.body).css("cursor",l.css("cursor"))},drag:function(k){var j=Math.min(this.maxSize,Math.max(this.minSize,this.initialSplitBarPosition+(k[this.mousePositioningProperty]-this.initialMousePosition)));this.ghostSplitBar.toggleClass("t-restricted-size-"+this.owner.orientation,j==this.maxSize||j==this.minSize)[0].style[this.positioningProperty]=j+"px"},stop:function(r){if(r.keyCode!==27){var n=parseInt(this.ghostSplitBar[0].style[this.positioningProperty]),j=this.owner.orientation==="horizontal",p=j?"width":"height",o=j?"offsetWidth":"offsetHeight",k=this.previousPane.data("pane"),q=this.nextPane.data("pane"),l=n-parseInt(this.previousPane[0].style[this.positioningProperty]),t=parseInt(this.nextPane[0].style[this.positioningProperty])+this.nextPane[0][o]-n-h,m=this.owner.$element[p]();m-=h*this.owner.$element.children(".t-splitbar").length;var s=this.owner.$element.children(".t-pane").filter(function(){return c(f(this).data("pane").size)}).length;if(!c(k.size)||s>1){if(c(k.size)){s--}k.size=l+"px"}if(!c(q.size)||s>1){q.size=t+"px"}}this.ghostSplitBar.remove();if(r.keyCode!==27){this.owner.$element.trigger("resize")}f(document.body).css("cursor","");return false}};f.fn.tSplitter=function(j){return i.create(this,{name:"tSplitter",init:function(k,l){return new i.splitter(k,l)},options:j})};f.fn.tSplitter.defaults={orientation:"horizontal"}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.tabstrip.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.tabstrip.min.js new file mode 100644 index 000000000..31253e38e --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.tabstrip.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.tabstrip.js");b.tabstrip=function(c,d){this.element=c;var f=a(c);this.$contentElements=f.find("> .t-content");a.extend(this,d);if(this.contentUrls){f.find(".t-tabstrip-items > .t-item").each(a.proxy(function(i,j){a(j).find(".t-link").data("ContentUrl",this.contentUrls[i])},this))}var h=".t-tabstrip-items > .t-item:not(.t-state-disabled)";f.delegate(h,"mouseenter",b.hover).delegate(h,"mouseleave",b.leave).delegate(h,d.activateEvent,b.delegate(this,this._click)).delegate(".t-tabstrip-items > .t-state-disabled .t-link","click",b.preventDefault);b.bind(this,{select:a.proxy(function(i){if(i.target==this.element&&this.onSelect){this.onSelect(i)}},this),contentLoad:this.onContentLoad,error:this.onError,load:this.onLoad});var g=f.find("li.t-state-active"),e=a(this.getContentElement(g.parent().children().index(g)));if(e.length>0&&e[0].childNodes.length==0){this.activateTab(g.eq(0))}};a.extend(b.tabstrip.prototype,{select:function(c){a(c).each(a.proxy(function(e,f){var d=a(f);if(d.is(".t-state-disabled,.t-state-active")){return}this.activateTab(d)},this))},enable:function(c){a(c).addClass("t-state-default").removeClass("t-state-disabled")},disable:function(c){a(c).removeClass("t-state-default").removeClass("t-state-active").addClass("t-state-disabled")},reload:function(d){var c=this;a(d).each(function(){var f=a(this),e=f.find(".t-link").data("ContentUrl");if(e){c.ajaxRequest(f,a(c.getContentElement(f.index())),null,e)}})},_click:function(j,f){var h=a(f),c=h.find(".t-link"),d=c.attr("href"),g=a(this.getContentElement(h.index()));if(h.is(".t-state-disabled,.t-state-active")){j.preventDefault();return}if(b.trigger(this.element,"select",{item:h[0],contentElement:g[0]})){j.preventDefault()}else{var i=c.data("ContentUrl")||(d&&(d.charAt(d.length-1)=="#"||d.indexOf("#"+this.element.id+"-")!=-1));if(!d||i||(g.length>0&&g[0].childNodes.length==0)){j.preventDefault()}else{return}if(this.activateTab(h)){j.preventDefault()}}},activateTab:function(d){var f=d.parent().children().removeClass("t-state-active").addClass("t-state-default").index(d);d.removeClass("t-state-default").addClass("t-state-active");var g=this.$contentElements;if(g.length==0){return false}var j=g.filter(".t-state-active");var e=a(this.getContentElement(f));var h=this;if(e.length==0){j.removeClass("t-state-active");b.fx.rewind(h.effects,j,{});return false}var c=e.is(":empty"),i=function(){e.addClass("t-state-active");b.fx.play(h.effects,e,{})};j.removeClass("t-state-active").stop(false,true);b.fx.rewind(h.effects,j,{},function(){if(d.hasClass("t-state-active")){if(!c){i()}else{h.ajaxRequest(d,e,function(){if(d.hasClass("t-state-active")){i()}})}}});return true},getSelectedTabIndex:function(){return a(this.element).find("li.t-state-active").index()},getContentElement:function(g){if(isNaN(g-0)){return}var c=this.$contentElements,e=new RegExp("-"+(g+1)+"$");for(var d=0,f=c.length;d').prependTo(d)},100);a.ajax({type:"GET",cache:false,url:g||d.data("ContentUrl")||d.attr("href"),dataType:"html",data:c,error:a.proxy(function(l,k){if(b.ajaxError(this.element,"error",l,k)){return}},this),complete:function(){clearTimeout(h);if(i!==null){i.remove()}},success:a.proxy(function(k,l){e.html(k);if(j){j.call(this,e)}b.trigger(this.element,"contentLoad",{item:f[0],contentElement:e[0]})},this)})}});a.fn.tTabStrip=function(c){return b.create(this,{name:"tTabStrip",init:function(d,e){return new b.tabstrip(d,e)},options:c})};a.fn.tTabStrip.defaults={activateEvent:"click",effects:b.fx.toggle.defaults()}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.textbox.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.textbox.min.js new file mode 100644 index 000000000..ead65903f --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.textbox.min.js @@ -0,0 +1 @@ +(function(d){var f=d.telerik,a=[8,9,37,38,39,40,46,35,36,44],b=["font-family","font-size","font-stretch","font-style","font-weight","line-height","color","text-align","text-decoration","text-transform"];f.scripts.push("telerik.textbox.js");function e(k){var n={};for(var j=0,m=b.length;j
      '));if(this.showIncreaseButton){m.cat('Increment')}if(this.showDecreaseButton){m.cat('Decrement')}if(m.buffer.length>0){d(m.string()).insertAfter(j)}}this.$wrapper=j.closest(".t-numerictextbox").find(".t-arrow-up, .t-arrow-down").bind({click:f.preventDefault,dragstart:f.preventDefault}).end().bind({focusin:d.proxy(this._focus,this),focusout:d.proxy(this._blur,this)});this.enabled=!j.is("[disabled]");m.buffer=[];m.cat("[ |").cat(this.groupSeparator).catIf("|"+this.symbol,this.symbol).cat("]");this.replaceRegExp=new RegExp(m.string(),"g");var k=j.attr("value"),l=j.attr("class").replace("t-input","");m.buffer=[];m.cat('
      ').cat(k||(this.enabled?this.text:"")).cat("
      ");this.$text=d(m.string()).insertBefore(j).css(e(j)).click(function(n){h.focus()});this._blur();this[this.enabled?"enable":"disable"]();this.numFormat=this.numFormat===undefined?this.type.charAt(0):this.numFormat;this.step=this.parse(this.step);this.val=this.parse(this.val);this.minValue=this.parse(this.minValue);this.maxValue=this.parse(this.maxValue);this.decimals={"190":".","188":","};this.specialDecimals={"110":this.separator};this.value(k||this.val);f.bind(this,{load:this.onLoad,valueChange:this.onChange})};f.textbox.prototype={_paste:function(h){setTimeout(d.proxy(function(){var i=h.target.value;if(i=="-"){return true}var j=this.parse(i);if(j||j==0){this._update(j)}},this))},_keydown:function(w){setTimeout(d.proxy(function(){u.toggleClass("t-state-error",!this.inRange(this.parse(u.val()),this.minValue,this.maxValue))},this));var n=w.keyCode,u=this.$element,k=u[0],r=u.val(),t=this.separator,o=g(k),s=o.start,q=o.end,v=r?r.indexOf(t):-1,x=v===-1;if(!x&&s!==-1){if(v>=s&&v0&&x){return true}else{w.preventDefault()}}if(n==8||n==46||n==13){setTimeout(d.proxy(function(){this._update(this.parse(u.val()))},this));return true}if(n==38||n==40){var p=n==38?1:-1;this._modify(p*this.step);return true}if(n==222){w.preventDefault()}},_keypress:function(k){var j=k.target,h=k.keyCode||k.which;if(h==0||d.inArray(h,a)!=-1||k.ctrlKey||(k.shiftKey&&h==45)){return true}var i;if(this.minValue!==null&&this.minValue<0){if(g(j).start===0||(f.caretPos(j)===0&&j.value.indexOf("-")===-1)){i=true}}if((i&&String.fromCharCode(h)=="-")||this.inRange(h,48,57)){return true}k.preventDefault()},_focus:function(){if(this.enabled){this._showTextBoxValue();this.$text.hide();var h=this.$element[0];setTimeout(function(){h.focus();if(d.browser.msie){h.select()}else{h.selectionStart=0;h.selectionEnd=h.value.length}},0)}},_blur:function(){this.$element.removeClass("t-state-error");if(this.enabled){this.$text.show();this._hideTextBoxValue()}var h=this.minValue,j=this.maxValue,i=this.parse(this.$element.val());if(i!=null){if(h!=null&&ij){i=j}}i=parseFloat(i.toFixed(this.digits))}this._update(i)},_clearTimer:function(h){clearTimeout(this.timeout);clearInterval(this.timer);clearInterval(this.acceleration)},_stepper:function(j,h){if(j.which==1){var i=this.step;this._modify(h*i);this.timeout=setTimeout(d.proxy(function(){this.timer=setInterval(d.proxy(function(){this._modify(h*i)},this),80);this.acceleration=setInterval(function(){i+=1},1000)},this),200)}},_modify:function(k){var h=this.parse(this.element.value),i=this.minValue,j=this.maxValue;h=h?h+k:k;if(i!==null&&hj){h=j}}this._update(parseFloat(h.toFixed(this.digits)))},_update:function(h){var i=this.val;this._value(h);if(i!=h){if(f.trigger(this.element,"valueChange",{oldValue:i,newValue:h})){this._value(i)}}},_value:function(h){var j=(typeof h==="number")?h:this.parse(h),k=this.enabled?this.text:"",i=j===null;if(j!=null){j=parseFloat(j.toFixed(this.digits))}this.val=j;this.$element.val(i?"":this.formatEdit(j));this.$text.html(i?k:this.format(j));this.$text.toggleClass("t-state-empty",i)},_hideTextBoxValue:function(){var h=this.$element;if(this.enabled){setTimeout(function(){h.css("color",h.css("background-color"))});if(d.browser.opera){h.css({color:h.css("background-color"),"text-indent":"-4444px"})}}else{if(!d.browser.msie){h.css({color:h.css("background-color"),"text-indent":"-4444px"})}else{h.css({color:h.css("background-color"),"letter-spacing":"1000px"})}}},_showTextBoxValue:function(){var h=this.$element,i=this.$text;if(this.enabled){setTimeout(function(){h.css({color:i.css("color"),"text-indent":"","letter-spacing":""})})}else{if(!d.browser.msie){h.css({color:i.css("background-color"),"text-indent":"0px"})}else{h.css({color:i.css("background-color"),"letter-spacing":"0px"})}}},_onParentFormReset:function(){var h=this;window.setTimeout(function(){h._value(h.$element.val())},1)},enable:function(){var h=this.$wrapper.find(".t-arrow-up, .t-arrow-down"),i=d.proxy(this._clearTimer,this);this.enabled=true;this.$element.removeAttr("disabled");if(!this.val&&this.val!=0){this.$text.addClass("t-state-empty").html(this.text)}else{this._hideTextBoxValue()}this.$wrapper.removeClass("t-state-disabled");h.unbind("mouseup").unbind("mouseout").unbind("dblclick").bind({mouseup:i,mouseout:i,dblclick:i});var j="mousedown";h.eq(0).unbind(j).bind(j,d.proxy(function(k){this._stepper(k,1)},this));h.eq(1).unbind(j).bind(j,d.proxy(function(k){this._stepper(k,-1)},this))},disable:function(){this.enabled=false;this.$wrapper.addClass("t-state-disabled").find(".t-icon").unbind("mousedown").bind("mousedown",f.preventDefault);this.$element.attr("disabled","disabled");if(!this.val&&this.val!=0){this.$text.html("")}else{this._hideTextBoxValue()}},value:function(i){if(i===undefined){return this.parse(this.element.value)}var h=(typeof i==="number")?i:this.parse(i);if(!this.inRange(h,this.minValue,this.maxValue)){h=null}this._value(h)},formatEdit:function(i){var h=this.separator;if(i&&h!="."){i=i.toString().replace(".",h)}return i},format:function(h){return f.formatNumber(h,this.numFormat,this.digits,this.separator,this.groupSeparator,this.groupSize,this.positive,this.negative,this.symbol,true)},inRange:function(j,h,i){return j===null||((h!==null?j>=h:true)&&(i!==null?j<=i:true))},parse:function(h){var i=null,j=this.separator;if(h||h=="0"){if(typeof h==typeof 1){return h}h=h.replace(this.replaceRegExp,"");if(j&&j!="."){h=h.replace(j,".")}var l=f.patterns[this.type].negative[this.negative].replace(/(\(|\))/g,"\\$1").replace("*","").replace("n","([\\d|\\.]*)"),k=new RegExp(l);if(k.test(h)){i=-parseFloat(k.exec(h)[1])}else{i=parseFloat(h)}}return isNaN(i)?null:i}};d.fn.tTextBox=function(j){var i="numeric";if(j&&j.type){i=j.type}var h=d.fn.tTextBox.defaults[i];h.digits=f.cultureInfo[i+"decimaldigits"];h.separator=f.cultureInfo[i+"decimalseparator"];h.groupSeparator=f.cultureInfo[i+"groupseparator"];h.groupSize=f.cultureInfo[i+"groupsize"];h.positive=f.cultureInfo[i+"positive"];h.negative=f.cultureInfo[i+"negative"];h.symbol=f.cultureInfo[i+"symbol"];j=d.extend({},h,j);j.type=i;return this.each(function(){var k=d(this);j=d.meta?d.extend({},j,k.data()):j;if(!k.data("tTextBox")){k.data("tTextBox",new f.textbox(this,j));f.trigger(this,"load")}})};var c={val:null,text:"",step:1,inputAttributes:"",increaseButtonTitle:"Increase value",decreaseButtonTitle:"Decrease value",showIncreaseButton:true,showDecreaseButton:true};d.fn.tTextBox.defaults={numeric:d.extend(c,{minValue:-100,maxValue:100}),currency:d.extend(c,{minValue:0,maxValue:1000}),percent:d.extend(c,{minValue:0,maxValue:100})};function g(i){var k=-1,h=-1;if(document.selection){var l=i.document.selection.createRange().text,m=l.length;if(m>0){k=i.value.indexOf(l);h=m}}else{if(i.selectionStart!==undefined){var j=i.selectionStart,n=i.selectionEnd;if(j!=n){k=j;h=n}}}return{start:k,end:h}}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/2011.2.712/telerik.timepicker.min.js b/NzbDrone.Web/Scripts/2011.2.712/telerik.timepicker.min.js new file mode 100644 index 000000000..041512c06 --- /dev/null +++ b/NzbDrone.Web/Scripts/2011.2.712/telerik.timepicker.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.timepicker.js");b.timeView=function(c){a.extend(this,c);var d=this.dropDown=new b.dropDown({attr:this.dropDownAttr,effects:this.effects,onClick:function(f){var g=f.item;c.onChange(g.innerText||g.textContent)}});d.$element.addClass("t-time-popup").css("direction",this.isRtl?"rtl":"")};b.timeView.prototype={_ensureItems:function(){if(!this.dropDown.$items){this.bind()}},open:function(c){this._ensureItems();this.dropDown.open(c)},close:function(){this.dropDown.close()},bind:function(){var j=b.timeView.getTimeMilliseconds;var g=[];var c=this.format;var n=this.interval;var p=new b.datetime(this.minValue);var d=j(p);var f=j(this.maxValue);var l=n*b.datetime.msPerMinute;var k=parseInt(b.datetime.msPerDay/(n*b.datetime.msPerMinute));if(d!=f){var o=di?i+d:i;h=e>h?h+d:h;return e-h==0||i>=e&&i<=h},getTimeMilliseconds:function(c){c=c.value?c:new b.datetime(c);return((c.hours()*60)+c.minutes())*b.datetime.msPerMinute+c.seconds()*1000+c.milliseconds()}});b.timepicker=function(d,e){a.extend(this,e);if(d.nodeName.toLowerCase()!=="input"&&d.type.toLowerCase()!=="text"){throw"Target element is not a INPUT"}this.element=d;var f=this.$element=a(d).addClass("t-input").attr("autocomplete","off").bind({keydown:a.proxy(this._keydown,this),focus:a.proxy(function(j){if(this.openOnFocus){this._open()}this.$element.removeClass("t-state-error")},this)});if(!f.parent().hasClass("t-picker-wrap")){f.wrap('
      ');if(e.showButton){var i=new b.stringBuilder(),g=e.buttonTitle;a(i.cat('').cat('').string()).insertAfter(f)}}this.timeView=new b.timeView({effects:this.effects,dropDownAttr:this.dropDownAttr,format:this.format,interval:this.interval,isRtl:f.closest(".t-rtl").length,minValue:this.minValue,maxValue:this.maxValue,onNavigateWithOpenPopup:a.proxy(function(j){this.$element.val(j)},this),onChange:a.proxy(function(j){if(j!=this.inputValue){this._update(j)}this._close()},this)});this.inputValue=f.val();var c=this.selectedValue||this.inputValue;if(c){this._value(this.parse(c))}var h=this.enabled?a.proxy(this._togglePopup,this):b.preventDefault;this.$wrapper=f.closest(".t-timepicker").find(".t-icon").bind("click",h).end();a(document.documentElement).bind("mousedown",a.proxy(function(m){var l=this.$element.val();if(l!=this.inputValue){this._update(l)}var j=this.timeView.dropDown.$element;var k=j&&j.parent().length>0;if(!k||a.contains(this.$wrapper[0],m.target)||a.contains(j.parent()[0],m.target)){return}this._close()},this));b.bind(this,{open:this.onOpen,close:this.onClose,valueChange:this.onChange,load:this.onLoad})};b.timepicker.prototype={_close:function(){var c=this.timeView.dropDown;if(!c.$element.is(":animated")&&c.isOpened()){this._trigger("close")}},_open:function(){if(!this.timeView.isOpened()){this._trigger("open")}},_trigger:function(c){if(!b.trigger(this.element,c)){this[c]()}},_togglePopup:function(){if(this.timeView.isOpened()){this._close()}else{this.element.focus();this._open()}},_update:function(f){var k=this.minValue,c=this.maxValue,f=this.parse(f),d=this.selectedValue;if(f!=null&&!b.timeView.isInRange(f,k,c)){var e=b.timeView.getTimeMilliseconds,i=e(f),j=Math.abs(e(k)-i),l=Math.abs(e(c)-i);f=new Date(j0)})}b.treeview=function(e,f){this.element=e;var g=c(e);c.extend(this,f);var d=".t-in:not(.t-state-selected,.t-state-disabled)";c(".t-in.t-state-selected",e).live("mouseenter",b.preventDefault);g.delegate(d,"mouseenter",b.hover).delegate(d,"mouseleave",b.leave).delegate(d,"click",b.delegate(this,this.nodeSelect)).delegate("div:not(.t-state-disabled) .t-in","dblclick",b.delegate(this,this.nodeClick)).delegate(":checkbox","click",b.delegate(this,this.checkboxClick)).delegate(".t-plus, .t-minus","click",b.delegate(this,this.nodeClick));if(this.isAjax()){a(g)}if(this.dragAndDrop){b.bind(this,{nodeDragStart:this.onNodeDragStart,nodeDragging:this.onNodeDragging,nodeDragCancelled:this.onNodeDragCancelled,nodeDrop:this.onNodeDrop,nodeDropped:this.onNodeDropped});(function(j){var h=c("
      ");var m;function i(n){if(b.trigger(j.element,"nodeDragStart",{item:n.$draggable.closest(".t-item")[0]})){return false}h.appendTo(j.element)}function k(v){var q;m=c(v.target);if(j.dragAndDrop.dropTargets&&c(v.target).closest(j.dragAndDrop.dropTargets).length>0){q="t-add"}else{if(!c.contains(j.element,v.target)){q="t-denied"}else{if(c.contains(v.$draggable.closest(".t-item")[0],v.target)){q="t-denied"}else{q="t-insert-middle";h.css("visibility","visible");var p=m.closest(".t-top,.t-mid,.t-bot");if(p.length>0){var u=p.outerHeight();var s=p.offset().top;var x=m.closest(".t-in");var w=u/(x.length>0?4:2);var t=v.pageY<(s+w);var n=(s+u-w)0&&!t&&!n;x.toggleClass("t-state-hover",o);h.css("visibility",o?"hidden":"visible");if(o){q="t-add"}else{var r=p.position();r.top+=t?0:u;h.css(r)[t?"prependTo":"appendTo"](m.closest(".t-item").find("> div:first"));if(t&&p.hasClass("t-top")){q="t-insert-top"}if(n&&p.hasClass("t-bot")){q="t-insert-bottom"}}}}}}b.trigger(j.element,"nodeDragging",{pageY:v.pageY,pageX:v.pageX,dropTarget:v.target,status:q.substring(2),setStatusClass:function(y){q=y},item:v.$draggable.closest(".t-item")[0]});if(q.indexOf("t-insert")!=0){h.css("visibility","hidden")}b.dragCueStatus(v.$cue,q)}function l(u){if(u.keyCode==27){b.trigger(j.element,"nodeDragCancelled",{item:u.$draggable.closest(".t-item")[0]})}else{var q="over",o;if(h.css("visibility")=="visible"){q=h.prevAll(".t-in").length>0?"after":"before";o=h.closest(".t-item").find("> div")}else{if(m){o=m.closest(".t-top,.t-mid,.t-bot")}}var v=!u.$cue.find(".t-drag-status").hasClass("t-denied"),p=b.trigger(j.element,"nodeDrop",{isValid:v,dropTarget:u.target,destinationItem:o.parent()[0],dropPosition:q,item:u.$draggable.closest(".t-item")[0]});if(!v){return false}if(p||!c.contains(j.element,u.target)){return !p}var s=u.$draggable.closest(".t-top,.t-mid,.t-bot");var t=s.parent();var x=s.closest(".t-group");if(c.contains(t[0],u.target)){return false}if(t.hasClass("t-last")){t.removeClass("t-last").prev().addClass("t-last").find("> div").removeClass("t-top t-mid").addClass("t-bot")}if(h.css("visibility")=="visible"){o.parent()[q](t)}else{var n=o.next(".t-group");if(n.length===0){n=c('
        ').appendTo(o.parent());if(!j.isAjax()){o.prepend('')}else{n.hide();j.nodeToggle(null,o.parent(),true);n.show()}}n.append(t);if(o.find("> .t-icon").hasClass("t-plus")){j.nodeToggle(null,o.parent(),true)}}var r=t.parents(".t-group").length;function w(z){var A=z.prev().length===0;var y=z.next().length===0;z.toggleClass("t-first",A&&r===1).toggleClass("t-last",y).find("> div").toggleClass("t-top",A&&!y).toggleClass("t-mid",!A&&!y).toggleClass("t-bot",y)}w(t);w(t.prev());w(t.next());if(x.children().length===0){x.prev("div").find(".t-plus,.t-minus").remove();x.remove()}b.trigger(j.element,"nodeDropped",{destinationItem:o.closest(".t-item")[0],dropPosition:q,item:s.parent(".t-item")[0]});return false}}new b.draggable({owner:j.element,selector:"div:not(.t-state-disabled) .t-in",scope:j.element.id,cue:function(n){return b.dragCue(n.$draggable.text())},start:i,drag:k,stop:l,destroy:function(n){h.remove();n.$cue.remove()}})})(this)}b.bind(this,{expand:this.onExpand,collapse:this.onCollapse,select:c.proxy(function(h){if(h.target==this.element&&this.onSelect){this.onSelect(h)}},this),checked:this.onChecked,error:this.onError,load:this.onLoad,dataBinding:this.onDataBinding,dataBound:this.onDataBound})};b.treeview.prototype={expand:function(d){c(d,this.element).each(c.proxy(function(g,h){var f=c(h);var e=f.find("> .t-group, > .t-content");if((e.length>0&&!e.is(":visible"))||this.isAjax()){this.nodeToggle(null,f)}},this))},collapse:function(d){c(d,this.element).each(c.proxy(function(g,h){var f=c(h),e=f.find("> .t-group, > .t-content");if(e.length>0&&e.is(":visible")){this.nodeToggle(null,f)}},this))},enable:function(d){this.toggle(d,true)},disable:function(d){this.toggle(d,false)},toggle:function(e,d){c(e,this.element).each(c.proxy(function(g,h){var f=c(h),i=!f.find("> .t-group, > .t-content").is(":visible");if(!d){this.collapse(f);i=true}f.find("> div > .t-in").toggleClass("t-state-default",d).toggleClass("t-state-disabled",!d).end().find("> div > .t-checkbox > :checkbox").attr("disabled",d?"":"disabled").end().find("> div > .t-icon").toggleClass("t-plus",i&&d).toggleClass("t-plus-disabled",i&&!d).toggleClass("t-minus",!i&&d).toggleClass("t-minus-disabled",!i&&!d)},this))},reload:function(e){var d=this;c(e).each(function(){var f=c(this);f.find(".t-group").remove();d.ajaxRequest(f)})},shouldNavigate:function(e){var d=c(e).closest(".t-item").find("> .t-content, > .t-group");var f=c(e).attr("href");return !((f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+this.element.id+"-")!=-1))||(d.length>0&&d.children().length==0))},nodeSelect:function(g,f){if(!this.shouldNavigate(f)){g.preventDefault()}var d=c(f);if(!d.hasClass(".t-state-selected")&&!b.trigger(this.element,"select",{item:d.closest(".t-item")[0]})){c(".t-in",this.element).removeClass("t-state-hover t-state-selected");d.addClass("t-state-selected")}},nodeToggle:function(i,f,h){if(f.find(".t-minus").length==0&&f.find(".t-plus").length==0){return}if(i!=null){i.preventDefault()}if(f.data("animating")||f.find("> div > .t-in").hasClass("t-state-disabled")){return}f.data("animating",!h);var d=f.find(">.t-group, >.t-content, >.t-animation-container>.t-group, >.t-animation-container>.t-content"),g=!d.is(":visible");if(d.children().length>0&&f.data("loaded")!==false&&!b.trigger(this.element,g?"expand":"collapse",{item:f[0]})){f.find("> div > .t-icon").toggleClass("t-minus",g).toggleClass("t-plus",!g);if(!h){b.fx[g?"play":"rewind"](this.effects,d,{direction:"bottom"},function(){f.data("animating",false)})}else{d[g?"show":"hide"]()}}else{if(g&&this.isAjax()&&(d.length==0||f.data("loaded")===false)){if(!b.trigger(this.element,g?"expand":"collapse",{item:f[0]})){this.ajaxRequest(f)}}}},nodeClick:function(h,g){var f=c(g),d=f.closest(".t-item");if(f.hasClass("t-plus-disabled")||f.hasClass("t-minus-disabled")){return}this.nodeToggle(h,d)},isAjax:function(){return this.ajax||this.ws||this.onDataBinding},url:function(d){return(this.ajax||this.ws)[d]},ajaxOptions:function(e,h){var f={type:"POST",dataType:"text",error:c.proxy(function(j,i){if(b.ajaxError(this.element,"error",j,i)){return}if(i=="parsererror"){alert("Error! The requested URL did not return JSON.")}},this),success:c.proxy(function(i){i=eval("("+i+")");i=i.d||i;this.dataBind(e,i)},this)};f=c.extend(f,h);var g=this.ws?f.data.node={}:f.data;if(e.hasClass("t-item")){g[this.queryString.value]=this.getItemValue(e);g[this.queryString.text]=this.getItemText(e);var d=e.find(".t-checkbox:first :checkbox");if(d.length){g[this.queryString.checked]=d.is(":checked")}}if(this.ws){f.data=b.toJson(f.data);f.contentType="application/json; charset=utf-8"}return f},ajaxRequest:function(f){f=f||c(this.element);var d={item:f[0]};if(b.trigger(this.element,"dataBinding",d)||(!this.ajax&&!this.ws)){return}f.data("loadingIconTimeout",setTimeout(function(){f.find("> div > .t-icon").addClass("t-loading")},100));c.ajax(this.ajaxOptions(f,{data:c.extend({},d.data),url:this.url("selectUrl")}))},bindTo:function(d){this.dataBind(this.element,d)},dataBind:function(d,h){d=c(d);if(h.length==0){c(".t-icon",d).hide();return}var g=new b.stringBuilder(),e=d.find("> .t-group"),f=e.length==0;b.treeview.getGroupHtml({data:h,html:g,isAjax:this.isAjax(),isFirstLevel:d.hasClass("t-treeview"),showCheckBoxes:this.showCheckBox,groupLevel:d.find('> div > .t-checkbox :input[name="'+this.element.id+'_checkedNodes.Index"]').val(),isExpanded:(f?d.eq(0).is(".t-treeview")?true:h[0].Expanded:false),renderGroup:f,elementId:this.element.id});d.data("animating",true);if(e.length>0&&d.data("loaded")===false){c(g.string()).prependTo(e)}else{if(e.length>0&&d.data("loaded")!==false){e.html(g.string())}else{if(e.length==0){e=c(g.string()).appendTo(d)}}}b.fx.play(this.effects,e,{direction:"bottom"},function(){d.data("animating",false)});clearTimeout(d.data("loadingIconTimeout"));if(d.hasClass("t-item")){d.data("loaded",true).find(".t-icon:first").removeClass("t-loading").removeClass("t-plus").addClass("t-minus")}if(this.isAjax()){a(d)}b.trigger(this.element,"dataBound")},checkboxClick:function(h,f){var d=c(f).is(":checked");var g=b.trigger(this.element,"checked",{item:c(f).closest(".t-item")[0],checked:d});if(!g){this.nodeCheck(f,d)}else{h.preventDefault()}return g},nodeCheck:function(e,d){c(e,this.element).each(c.proxy(function(h,i){var f=c(i).closest(".t-item"),g=c("> div > .t-checkbox",f),j=this.element.id+"_checkedNodes",h=g.find(':input[name="'+j+'.Index"]').val();g.find(':input[name="'+j+"["+h+'].Text"]').remove();g.find(':input[name="'+j+"["+h+'].Value"]').remove();g.find(":checkbox").attr({checked:d?"checked":"",value:d});if(d){c(b.treeview.getNodeInputsHtml(this.getItemValue(f),this.getItemText(f),j,h)).appendTo(g)}},this))},getItemText:function(d){return c(d).find("> div > .t-in").text()},getItemValue:function(d){return c(d).find('>div>:input[name="itemValue"]').val()||this.getItemText(d)}};c.extend(b.treeview,{getNodeInputsHtml:function(g,e,f,d){return new b.stringBuilder().cat('').cat('').string()},getItemHtml:function(e){var m=e.item,h=e.html,i=e.isFirstLevel,f=e.groupLevel,g=e.itemIndex,d=e.itemsCount,l=new b.stringBuilder().cat(f).catIf(":",f).cat(g).string();h.cat('
      • ').cat('
        ');if((e.isAjax&&m.LoadOnDemand)||(m.Items&&m.Items.length>0)){h.cat('')}if(e.showCheckBoxes&&m.Checkable!==false){var j=e.elementId+"_checkedNodes";h.cat('').cat('').cat('");if(m.Checked){h.cat(b.treeview.getNodeInputsHtml(m.Value,m.Text,j,l))}h.cat("")}var k=m.NavigateUrl||m.Url;h.cat(k?'');if(m.ImageUrl!=null){h.cat('')}if(m.SpriteCssClasses!=null){h.cat('')}h.catIf(m.Text,m.Encoded===false).catIf(m.Text.replace(//g,">"),m.Encoded!==false).cat(k?"":"");if(m.Value){h.cat('')}h.cat("
        ");if(m.Items&&m.Items.length>0){b.treeview.getGroupHtml({data:m.Items,html:h,isAjax:e.isAjax,isFirstLevel:false,showCheckBoxes:e.showCheckBoxes,groupLevel:l,isExpanded:m.Expanded,elementId:e.elementId})}h.cat("
      • ")},getGroupHtml:function(e){var d=e.data;var g=e.html;var j=e.isFirstLevel;var k=e.renderGroup;if(k!==false){g.cat('
      ").catIf("
    ",!f);if(f){d(f).html(e.string())}else{delete g.title;return d(e.string()).appendTo(document.body).tWindow(g)}},getResizeHandlesHtml:function(){var e=new a.stringBuilder();d.each("n e s w se sw ne nw".split(" "),function(f,g){e.cat('
    ')});return e.string()}});d.fn.tWindow=function(e){return a.create(this,{name:"tWindow",init:function(f,g){return new a.window(f,g)},success:function(h){var g=h.element,f=d(g);if(f.is(":visible")){a.trigger(g,"open");a.trigger(g,"activated")}},options:e})};d.fn.tWindow.defaults={effects:{list:[{name:"zoom"},{name:"property",properties:["opacity"]}],openDuration:"fast",closeDuration:"fast"},modal:false,resizable:true,draggable:true,minWidth:50,minHeight:50}})(jQuery); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/Plugins/MicrosoftAjax.debug.js b/NzbDrone.Web/Scripts/Plugins/MicrosoftAjax.debug.js new file mode 100644 index 000000000..a5f7942ef --- /dev/null +++ b/NzbDrone.Web/Scripts/Plugins/MicrosoftAjax.debug.js @@ -0,0 +1,7117 @@ +// Name: MicrosoftAjax.debug.js +// Assembly: System.Web.Extensions +// Version: 4.0.0.0 +// FileVersion: 4.0.20526.0 +//----------------------------------------------------------------------- +// Copyright (C) Microsoft Corporation. All rights reserved. +//----------------------------------------------------------------------- +// MicrosoftAjax.js +// Microsoft AJAX Framework. + +Function.__typeName = 'Function'; +Function.__class = true; +Function.createCallback = function Function$createCallback(method, context) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "method", type: Function}, + {name: "context", mayBeNull: true} + ]); + if (e) throw e; + return function() { + var l = arguments.length; + if (l > 0) { + var args = []; + for (var i = 0; i < l; i++) { + args[i] = arguments[i]; + } + args[l] = context; + return method.apply(this, args); + } + return method.call(this, context); + } +} +Function.createDelegate = function Function$createDelegate(instance, method) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance", mayBeNull: true}, + {name: "method", type: Function} + ]); + if (e) throw e; + return function() { + return method.apply(instance, arguments); + } +} +Function.emptyFunction = Function.emptyMethod = function Function$emptyMethod() { + /// +} +Function.validateParameters = function Function$validateParameters(parameters, expectedParameters, validateParameterCount) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "parameters"}, + {name: "expectedParameters"}, + {name: "validateParameterCount", type: Boolean, optional: true} + ]); + if (e) throw e; + return Function._validateParams(parameters, expectedParameters, validateParameterCount); +} +Function._validateParams = function Function$_validateParams(params, expectedParams, validateParameterCount) { + var e, expectedLength = expectedParams.length; + validateParameterCount = validateParameterCount || (typeof(validateParameterCount) === "undefined"); + e = Function._validateParameterCount(params, expectedParams, validateParameterCount); + if (e) { + e.popStackFrame(); + return e; + } + for (var i = 0, l = params.length; i < l; i++) { + var expectedParam = expectedParams[Math.min(i, expectedLength - 1)], + paramName = expectedParam.name; + if (expectedParam.parameterArray) { + paramName += "[" + (i - expectedLength + 1) + "]"; + } + else if (!validateParameterCount && (i >= expectedLength)) { + break; + } + e = Function._validateParameter(params[i], expectedParam, paramName); + if (e) { + e.popStackFrame(); + return e; + } + } + return null; +} +Function._validateParameterCount = function Function$_validateParameterCount(params, expectedParams, validateParameterCount) { + var i, error, + expectedLen = expectedParams.length, + actualLen = params.length; + if (actualLen < expectedLen) { + var minParams = expectedLen; + for (i = 0; i < expectedLen; i++) { + var param = expectedParams[i]; + if (param.optional || param.parameterArray) { + minParams--; + } + } + if (actualLen < minParams) { + error = true; + } + } + else if (validateParameterCount && (actualLen > expectedLen)) { + error = true; + for (i = 0; i < expectedLen; i++) { + if (expectedParams[i].parameterArray) { + error = false; + break; + } + } + } + if (error) { + var e = Error.parameterCount(); + e.popStackFrame(); + return e; + } + return null; +} +Function._validateParameter = function Function$_validateParameter(param, expectedParam, paramName) { + var e, + expectedType = expectedParam.type, + expectedInteger = !!expectedParam.integer, + expectedDomElement = !!expectedParam.domElement, + mayBeNull = !!expectedParam.mayBeNull; + e = Function._validateParameterType(param, expectedType, expectedInteger, expectedDomElement, mayBeNull, paramName); + if (e) { + e.popStackFrame(); + return e; + } + var expectedElementType = expectedParam.elementType, + elementMayBeNull = !!expectedParam.elementMayBeNull; + if (expectedType === Array && typeof(param) !== "undefined" && param !== null && + (expectedElementType || !elementMayBeNull)) { + var expectedElementInteger = !!expectedParam.elementInteger, + expectedElementDomElement = !!expectedParam.elementDomElement; + for (var i=0; i < param.length; i++) { + var elem = param[i]; + e = Function._validateParameterType(elem, expectedElementType, + expectedElementInteger, expectedElementDomElement, elementMayBeNull, + paramName + "[" + i + "]"); + if (e) { + e.popStackFrame(); + return e; + } + } + } + return null; +} +Function._validateParameterType = function Function$_validateParameterType(param, expectedType, expectedInteger, expectedDomElement, mayBeNull, paramName) { + var e, i; + if (typeof(param) === "undefined") { + if (mayBeNull) { + return null; + } + else { + e = Error.argumentUndefined(paramName); + e.popStackFrame(); + return e; + } + } + if (param === null) { + if (mayBeNull) { + return null; + } + else { + e = Error.argumentNull(paramName); + e.popStackFrame(); + return e; + } + } + if (expectedType && expectedType.__enum) { + if (typeof(param) !== 'number') { + e = Error.argumentType(paramName, Object.getType(param), expectedType); + e.popStackFrame(); + return e; + } + if ((param % 1) === 0) { + var values = expectedType.prototype; + if (!expectedType.__flags || (param === 0)) { + for (i in values) { + if (values[i] === param) return null; + } + } + else { + var v = param; + for (i in values) { + var vali = values[i]; + if (vali === 0) continue; + if ((vali & param) === vali) { + v -= vali; + } + if (v === 0) return null; + } + } + } + e = Error.argumentOutOfRange(paramName, param, String.format(Sys.Res.enumInvalidValue, param, expectedType.getName())); + e.popStackFrame(); + return e; + } + if (expectedDomElement && (!Sys._isDomElement(param) || (param.nodeType === 3))) { + e = Error.argument(paramName, Sys.Res.argumentDomElement); + e.popStackFrame(); + return e; + } + if (expectedType && !Sys._isInstanceOfType(expectedType, param)) { + e = Error.argumentType(paramName, Object.getType(param), expectedType); + e.popStackFrame(); + return e; + } + if (expectedType === Number && expectedInteger) { + if ((param % 1) !== 0) { + e = Error.argumentOutOfRange(paramName, param, Sys.Res.argumentInteger); + e.popStackFrame(); + return e; + } + } + return null; +} + +Error.__typeName = 'Error'; +Error.__class = true; +Error.create = function Error$create(message, errorInfo) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "message", type: String, mayBeNull: true, optional: true}, + {name: "errorInfo", mayBeNull: true, optional: true} + ]); + if (e) throw e; + var err = new Error(message); + err.message = message; + if (errorInfo) { + for (var v in errorInfo) { + err[v] = errorInfo[v]; + } + } + err.popStackFrame(); + return err; +} +Error.argument = function Error$argument(paramName, message) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "paramName", type: String, mayBeNull: true, optional: true}, + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.ArgumentException: " + (message ? message : Sys.Res.argument); + if (paramName) { + displayMessage += "\n" + String.format(Sys.Res.paramName, paramName); + } + var err = Error.create(displayMessage, { name: "Sys.ArgumentException", paramName: paramName }); + err.popStackFrame(); + return err; +} +Error.argumentNull = function Error$argumentNull(paramName, message) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "paramName", type: String, mayBeNull: true, optional: true}, + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.ArgumentNullException: " + (message ? message : Sys.Res.argumentNull); + if (paramName) { + displayMessage += "\n" + String.format(Sys.Res.paramName, paramName); + } + var err = Error.create(displayMessage, { name: "Sys.ArgumentNullException", paramName: paramName }); + err.popStackFrame(); + return err; +} +Error.argumentOutOfRange = function Error$argumentOutOfRange(paramName, actualValue, message) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "paramName", type: String, mayBeNull: true, optional: true}, + {name: "actualValue", mayBeNull: true, optional: true}, + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.ArgumentOutOfRangeException: " + (message ? message : Sys.Res.argumentOutOfRange); + if (paramName) { + displayMessage += "\n" + String.format(Sys.Res.paramName, paramName); + } + if (typeof(actualValue) !== "undefined" && actualValue !== null) { + displayMessage += "\n" + String.format(Sys.Res.actualValue, actualValue); + } + var err = Error.create(displayMessage, { + name: "Sys.ArgumentOutOfRangeException", + paramName: paramName, + actualValue: actualValue + }); + err.popStackFrame(); + return err; +} +Error.argumentType = function Error$argumentType(paramName, actualType, expectedType, message) { + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "paramName", type: String, mayBeNull: true, optional: true}, + {name: "actualType", type: Type, mayBeNull: true, optional: true}, + {name: "expectedType", type: Type, mayBeNull: true, optional: true}, + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.ArgumentTypeException: "; + if (message) { + displayMessage += message; + } + else if (actualType && expectedType) { + displayMessage += + String.format(Sys.Res.argumentTypeWithTypes, actualType.getName(), expectedType.getName()); + } + else { + displayMessage += Sys.Res.argumentType; + } + if (paramName) { + displayMessage += "\n" + String.format(Sys.Res.paramName, paramName); + } + var err = Error.create(displayMessage, { + name: "Sys.ArgumentTypeException", + paramName: paramName, + actualType: actualType, + expectedType: expectedType + }); + err.popStackFrame(); + return err; +} +Error.argumentUndefined = function Error$argumentUndefined(paramName, message) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "paramName", type: String, mayBeNull: true, optional: true}, + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.ArgumentUndefinedException: " + (message ? message : Sys.Res.argumentUndefined); + if (paramName) { + displayMessage += "\n" + String.format(Sys.Res.paramName, paramName); + } + var err = Error.create(displayMessage, { name: "Sys.ArgumentUndefinedException", paramName: paramName }); + err.popStackFrame(); + return err; +} +Error.format = function Error$format(message) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.FormatException: " + (message ? message : Sys.Res.format); + var err = Error.create(displayMessage, {name: 'Sys.FormatException'}); + err.popStackFrame(); + return err; +} +Error.invalidOperation = function Error$invalidOperation(message) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.InvalidOperationException: " + (message ? message : Sys.Res.invalidOperation); + var err = Error.create(displayMessage, {name: 'Sys.InvalidOperationException'}); + err.popStackFrame(); + return err; +} +Error.notImplemented = function Error$notImplemented(message) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.NotImplementedException: " + (message ? message : Sys.Res.notImplemented); + var err = Error.create(displayMessage, {name: 'Sys.NotImplementedException'}); + err.popStackFrame(); + return err; +} +Error.parameterCount = function Error$parameterCount(message) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "message", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var displayMessage = "Sys.ParameterCountException: " + (message ? message : Sys.Res.parameterCount); + var err = Error.create(displayMessage, {name: 'Sys.ParameterCountException'}); + err.popStackFrame(); + return err; +} +Error.prototype.popStackFrame = function Error$popStackFrame() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (typeof(this.stack) === "undefined" || this.stack === null || + typeof(this.fileName) === "undefined" || this.fileName === null || + typeof(this.lineNumber) === "undefined" || this.lineNumber === null) { + return; + } + var stackFrames = this.stack.split("\n"); + var currentFrame = stackFrames[0]; + var pattern = this.fileName + ":" + this.lineNumber; + while(typeof(currentFrame) !== "undefined" && + currentFrame !== null && + currentFrame.indexOf(pattern) === -1) { + stackFrames.shift(); + currentFrame = stackFrames[0]; + } + var nextFrame = stackFrames[1]; + if (typeof(nextFrame) === "undefined" || nextFrame === null) { + return; + } + var nextFrameParts = nextFrame.match(/@(.*):(\d+)$/); + if (typeof(nextFrameParts) === "undefined" || nextFrameParts === null) { + return; + } + this.fileName = nextFrameParts[1]; + this.lineNumber = parseInt(nextFrameParts[2]); + stackFrames.shift(); + this.stack = stackFrames.join("\n"); +} + +Object.__typeName = 'Object'; +Object.__class = true; +Object.getType = function Object$getType(instance) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance"} + ]); + if (e) throw e; + var ctor = instance.constructor; + if (!ctor || (typeof(ctor) !== "function") || !ctor.__typeName || (ctor.__typeName === 'Object')) { + return Object; + } + return ctor; +} +Object.getTypeName = function Object$getTypeName(instance) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance"} + ]); + if (e) throw e; + return Object.getType(instance).getName(); +} + +String.__typeName = 'String'; +String.__class = true; +String.prototype.endsWith = function String$endsWith(suffix) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "suffix", type: String} + ]); + if (e) throw e; + return (this.substr(this.length - suffix.length) === suffix); +} +String.prototype.startsWith = function String$startsWith(prefix) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "prefix", type: String} + ]); + if (e) throw e; + return (this.substr(0, prefix.length) === prefix); +} +String.prototype.trim = function String$trim() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this.replace(/^\s+|\s+$/g, ''); +} +String.prototype.trimEnd = function String$trimEnd() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this.replace(/\s+$/, ''); +} +String.prototype.trimStart = function String$trimStart() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this.replace(/^\s+/, ''); +} +String.format = function String$format(format, args) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "format", type: String}, + {name: "args", mayBeNull: true, parameterArray: true} + ]); + if (e) throw e; + return String._toFormattedString(false, arguments); +} +String._toFormattedString = function String$_toFormattedString(useLocale, args) { + var result = ''; + var format = args[0]; + for (var i=0;;) { + var open = format.indexOf('{', i); + var close = format.indexOf('}', i); + if ((open < 0) && (close < 0)) { + result += format.slice(i); + break; + } + if ((close > 0) && ((close < open) || (open < 0))) { + if (format.charAt(close + 1) !== '}') { + throw Error.argument('format', Sys.Res.stringFormatBraceMismatch); + } + result += format.slice(i, close + 1); + i = close + 2; + continue; + } + result += format.slice(i, open); + i = open + 1; + if (format.charAt(i) === '{') { + result += '{'; + i++; + continue; + } + if (close < 0) throw Error.argument('format', Sys.Res.stringFormatBraceMismatch); + var brace = format.substring(i, close); + var colonIndex = brace.indexOf(':'); + var argNumber = parseInt((colonIndex < 0)? brace : brace.substring(0, colonIndex), 10) + 1; + if (isNaN(argNumber)) throw Error.argument('format', Sys.Res.stringFormatInvalid); + var argFormat = (colonIndex < 0)? '' : brace.substring(colonIndex + 1); + var arg = args[argNumber]; + if (typeof(arg) === "undefined" || arg === null) { + arg = ''; + } + if (arg.toFormattedString) { + result += arg.toFormattedString(argFormat); + } + else if (useLocale && arg.localeFormat) { + result += arg.localeFormat(argFormat); + } + else if (arg.format) { + result += arg.format(argFormat); + } + else + result += arg.toString(); + i = close + 1; + } + return result; +} + +Boolean.__typeName = 'Boolean'; +Boolean.__class = true; +Boolean.parse = function Boolean$parse(value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String} + ], false); + if (e) throw e; + var v = value.trim().toLowerCase(); + if (v === 'false') return false; + if (v === 'true') return true; + throw Error.argumentOutOfRange('value', value, Sys.Res.boolTrueOrFalse); +} + +Date.__typeName = 'Date'; +Date.__class = true; + +Number.__typeName = 'Number'; +Number.__class = true; + +RegExp.__typeName = 'RegExp'; +RegExp.__class = true; + +if (!window) this.window = this; +window.Type = Function; +Type.__fullyQualifiedIdentifierRegExp = new RegExp("^[^.0-9 \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\]([^ \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\]*[^. \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\])?$", "i"); +Type.__identifierRegExp = new RegExp("^[^.0-9 \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\][^. \\s|,;:&*=+\\-()\\[\\]{}^%#@!~\\n\\r\\t\\f\\\\]*$", "i"); +Type.prototype.callBaseMethod = function Type$callBaseMethod(instance, name, baseArguments) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance"}, + {name: "name", type: String}, + {name: "baseArguments", type: Array, mayBeNull: true, optional: true, elementMayBeNull: true} + ]); + if (e) throw e; + var baseMethod = Sys._getBaseMethod(this, instance, name); + if (!baseMethod) throw Error.invalidOperation(String.format(Sys.Res.methodNotFound, name)); + if (!baseArguments) { + return baseMethod.apply(instance); + } + else { + return baseMethod.apply(instance, baseArguments); + } +} +Type.prototype.getBaseMethod = function Type$getBaseMethod(instance, name) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance"}, + {name: "name", type: String} + ]); + if (e) throw e; + return Sys._getBaseMethod(this, instance, name); +} +Type.prototype.getBaseType = function Type$getBaseType() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return (typeof(this.__baseType) === "undefined") ? null : this.__baseType; +} +Type.prototype.getInterfaces = function Type$getInterfaces() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var result = []; + var type = this; + while(type) { + var interfaces = type.__interfaces; + if (interfaces) { + for (var i = 0, l = interfaces.length; i < l; i++) { + var interfaceType = interfaces[i]; + if (!Array.contains(result, interfaceType)) { + result[result.length] = interfaceType; + } + } + } + type = type.__baseType; + } + return result; +} +Type.prototype.getName = function Type$getName() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return (typeof(this.__typeName) === "undefined") ? "" : this.__typeName; +} +Type.prototype.implementsInterface = function Type$implementsInterface(interfaceType) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "interfaceType", type: Type} + ]); + if (e) throw e; + this.resolveInheritance(); + var interfaceName = interfaceType.getName(); + var cache = this.__interfaceCache; + if (cache) { + var cacheEntry = cache[interfaceName]; + if (typeof(cacheEntry) !== 'undefined') return cacheEntry; + } + else { + cache = this.__interfaceCache = {}; + } + var baseType = this; + while (baseType) { + var interfaces = baseType.__interfaces; + if (interfaces) { + if (Array.indexOf(interfaces, interfaceType) !== -1) { + return cache[interfaceName] = true; + } + } + baseType = baseType.__baseType; + } + return cache[interfaceName] = false; +} +Type.prototype.inheritsFrom = function Type$inheritsFrom(parentType) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "parentType", type: Type} + ]); + if (e) throw e; + this.resolveInheritance(); + var baseType = this.__baseType; + while (baseType) { + if (baseType === parentType) { + return true; + } + baseType = baseType.__baseType; + } + return false; +} +Type.prototype.initializeBase = function Type$initializeBase(instance, baseArguments) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance"}, + {name: "baseArguments", type: Array, mayBeNull: true, optional: true, elementMayBeNull: true} + ]); + if (e) throw e; + if (!Sys._isInstanceOfType(this, instance)) throw Error.argumentType('instance', Object.getType(instance), this); + this.resolveInheritance(); + if (this.__baseType) { + if (!baseArguments) { + this.__baseType.apply(instance); + } + else { + this.__baseType.apply(instance, baseArguments); + } + } + return instance; +} +Type.prototype.isImplementedBy = function Type$isImplementedBy(instance) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance", mayBeNull: true} + ]); + if (e) throw e; + if (typeof(instance) === "undefined" || instance === null) return false; + var instanceType = Object.getType(instance); + return !!(instanceType.implementsInterface && instanceType.implementsInterface(this)); +} +Type.prototype.isInstanceOfType = function Type$isInstanceOfType(instance) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "instance", mayBeNull: true} + ]); + if (e) throw e; + return Sys._isInstanceOfType(this, instance); +} +Type.prototype.registerClass = function Type$registerClass(typeName, baseType, interfaceTypes) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "typeName", type: String}, + {name: "baseType", type: Type, mayBeNull: true, optional: true}, + {name: "interfaceTypes", type: Type, parameterArray: true} + ]); + if (e) throw e; + if (!Type.__fullyQualifiedIdentifierRegExp.test(typeName)) throw Error.argument('typeName', Sys.Res.notATypeName); + var parsedName; + try { + parsedName = eval(typeName); + } + catch(e) { + throw Error.argument('typeName', Sys.Res.argumentTypeName); + } + if (parsedName !== this) throw Error.argument('typeName', Sys.Res.badTypeName); + if (Sys.__registeredTypes[typeName]) throw Error.invalidOperation(String.format(Sys.Res.typeRegisteredTwice, typeName)); + if ((arguments.length > 1) && (typeof(baseType) === 'undefined')) throw Error.argumentUndefined('baseType'); + if (baseType && !baseType.__class) throw Error.argument('baseType', Sys.Res.baseNotAClass); + this.prototype.constructor = this; + this.__typeName = typeName; + this.__class = true; + if (baseType) { + this.__baseType = baseType; + this.__basePrototypePending = true; + } + Sys.__upperCaseTypes[typeName.toUpperCase()] = this; + if (interfaceTypes) { + this.__interfaces = []; + this.resolveInheritance(); + for (var i = 2, l = arguments.length; i < l; i++) { + var interfaceType = arguments[i]; + if (!interfaceType.__interface) throw Error.argument('interfaceTypes[' + (i - 2) + ']', Sys.Res.notAnInterface); + for (var methodName in interfaceType.prototype) { + var method = interfaceType.prototype[methodName]; + if (!this.prototype[methodName]) { + this.prototype[methodName] = method; + } + } + this.__interfaces.push(interfaceType); + } + } + Sys.__registeredTypes[typeName] = true; + return this; +} +Type.prototype.registerInterface = function Type$registerInterface(typeName) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "typeName", type: String} + ]); + if (e) throw e; + if (!Type.__fullyQualifiedIdentifierRegExp.test(typeName)) throw Error.argument('typeName', Sys.Res.notATypeName); + var parsedName; + try { + parsedName = eval(typeName); + } + catch(e) { + throw Error.argument('typeName', Sys.Res.argumentTypeName); + } + if (parsedName !== this) throw Error.argument('typeName', Sys.Res.badTypeName); + if (Sys.__registeredTypes[typeName]) throw Error.invalidOperation(String.format(Sys.Res.typeRegisteredTwice, typeName)); + Sys.__upperCaseTypes[typeName.toUpperCase()] = this; + this.prototype.constructor = this; + this.__typeName = typeName; + this.__interface = true; + Sys.__registeredTypes[typeName] = true; + return this; +} +Type.prototype.resolveInheritance = function Type$resolveInheritance() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this.__basePrototypePending) { + var baseType = this.__baseType; + baseType.resolveInheritance(); + for (var memberName in baseType.prototype) { + var memberValue = baseType.prototype[memberName]; + if (!this.prototype[memberName]) { + this.prototype[memberName] = memberValue; + } + } + delete this.__basePrototypePending; + } +} +Type.getRootNamespaces = function Type$getRootNamespaces() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return Array.clone(Sys.__rootNamespaces); +} +Type.isClass = function Type$isClass(type) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "type", mayBeNull: true} + ]); + if (e) throw e; + if ((typeof(type) === 'undefined') || (type === null)) return false; + return !!type.__class; +} +Type.isInterface = function Type$isInterface(type) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "type", mayBeNull: true} + ]); + if (e) throw e; + if ((typeof(type) === 'undefined') || (type === null)) return false; + return !!type.__interface; +} +Type.isNamespace = function Type$isNamespace(object) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "object", mayBeNull: true} + ]); + if (e) throw e; + if ((typeof(object) === 'undefined') || (object === null)) return false; + return !!object.__namespace; +} +Type.parse = function Type$parse(typeName, ns) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "typeName", type: String, mayBeNull: true}, + {name: "ns", mayBeNull: true, optional: true} + ]); + if (e) throw e; + var fn; + if (ns) { + fn = Sys.__upperCaseTypes[ns.getName().toUpperCase() + '.' + typeName.toUpperCase()]; + return fn || null; + } + if (!typeName) return null; + if (!Type.__htClasses) { + Type.__htClasses = {}; + } + fn = Type.__htClasses[typeName]; + if (!fn) { + fn = eval(typeName); + if (typeof(fn) !== 'function') throw Error.argument('typeName', Sys.Res.notATypeName); + Type.__htClasses[typeName] = fn; + } + return fn; +} +Type.registerNamespace = function Type$registerNamespace(namespacePath) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "namespacePath", type: String} + ]); + if (e) throw e; + Type._registerNamespace(namespacePath); +} +Type._registerNamespace = function Type$_registerNamespace(namespacePath) { + if (!Type.__fullyQualifiedIdentifierRegExp.test(namespacePath)) throw Error.argument('namespacePath', Sys.Res.invalidNameSpace); + var rootObject = window; + var namespaceParts = namespacePath.split('.'); + for (var i = 0; i < namespaceParts.length; i++) { + var currentPart = namespaceParts[i]; + var ns = rootObject[currentPart]; + var nsType = typeof(ns); + if ((nsType !== "undefined") && (ns !== null)) { + if (nsType === "function") { + throw Error.invalidOperation(String.format(Sys.Res.namespaceContainsClass, namespaceParts.splice(0, i + 1).join('.'))); + } + if ((typeof(ns) !== "object") || (ns instanceof Array)) { + throw Error.invalidOperation(String.format(Sys.Res.namespaceContainsNonObject, namespaceParts.splice(0, i + 1).join('.'))); + } + } + if (!ns) { + ns = rootObject[currentPart] = {}; + } + if (!ns.__namespace) { + if ((i === 0) && (namespacePath !== "Sys")) { + Sys.__rootNamespaces[Sys.__rootNamespaces.length] = ns; + } + ns.__namespace = true; + ns.__typeName = namespaceParts.slice(0, i + 1).join('.'); + var parsedName; + try { + parsedName = eval(ns.__typeName); + } + catch(e) { + parsedName = null; + } + if (parsedName !== ns) { + delete rootObject[currentPart]; + throw Error.argument('namespacePath', Sys.Res.invalidNameSpace); + } + ns.getName = function ns$getName() {return this.__typeName;} + } + rootObject = ns; + } +} +Type._checkDependency = function Type$_checkDependency(dependency, featureName) { + var scripts = Type._registerScript._scripts, isDependent = (scripts ? (!!scripts[dependency]) : false); + if ((typeof(featureName) !== 'undefined') && !isDependent) { + throw Error.invalidOperation(String.format(Sys.Res.requiredScriptReferenceNotIncluded, + featureName, dependency)); + } + return isDependent; +} +Type._registerScript = function Type$_registerScript(scriptName, dependencies) { + var scripts = Type._registerScript._scripts; + if (!scripts) { + Type._registerScript._scripts = scripts = {}; + } + if (scripts[scriptName]) { + throw Error.invalidOperation(String.format(Sys.Res.scriptAlreadyLoaded, scriptName)); + } + scripts[scriptName] = true; + if (dependencies) { + for (var i = 0, l = dependencies.length; i < l; i++) { + var dependency = dependencies[i]; + if (!Type._checkDependency(dependency)) { + throw Error.invalidOperation(String.format(Sys.Res.scriptDependencyNotFound, scriptName, dependency)); + } + } + } +} +Type._registerNamespace("Sys"); +Sys.__upperCaseTypes = {}; +Sys.__rootNamespaces = [Sys]; +Sys.__registeredTypes = {}; +Sys._isInstanceOfType = function Sys$_isInstanceOfType(type, instance) { + if (typeof(instance) === "undefined" || instance === null) return false; + if (instance instanceof type) return true; + var instanceType = Object.getType(instance); + return !!(instanceType === type) || + (instanceType.inheritsFrom && instanceType.inheritsFrom(type)) || + (instanceType.implementsInterface && instanceType.implementsInterface(type)); +} +Sys._getBaseMethod = function Sys$_getBaseMethod(type, instance, name) { + if (!Sys._isInstanceOfType(type, instance)) throw Error.argumentType('instance', Object.getType(instance), type); + var baseType = type.getBaseType(); + if (baseType) { + var baseMethod = baseType.prototype[name]; + return (baseMethod instanceof Function) ? baseMethod : null; + } + return null; +} +Sys._isDomElement = function Sys$_isDomElement(obj) { + var val = false; + if (typeof (obj.nodeType) !== 'number') { + var doc = obj.ownerDocument || obj.document || obj; + if (doc != obj) { + var w = doc.defaultView || doc.parentWindow; + val = (w != obj); + } + else { + val = (typeof (doc.body) === 'undefined'); + } + } + return !val; +} + +Array.__typeName = 'Array'; +Array.__class = true; +Array.add = Array.enqueue = function Array$enqueue(array, item) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + array[array.length] = item; +} +Array.addRange = function Array$addRange(array, items) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "items", type: Array, elementMayBeNull: true} + ]); + if (e) throw e; + array.push.apply(array, items); +} +Array.clear = function Array$clear(array) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true} + ]); + if (e) throw e; + array.length = 0; +} +Array.clone = function Array$clone(array) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true} + ]); + if (e) throw e; + if (array.length === 1) { + return [array[0]]; + } + else { + return Array.apply(null, array); + } +} +Array.contains = function Array$contains(array, item) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + return (Sys._indexOf(array, item) >= 0); +} +Array.dequeue = function Array$dequeue(array) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true} + ]); + if (e) throw e; + return array.shift(); +} +Array.forEach = function Array$forEach(array, method, instance) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "method", type: Function}, + {name: "instance", mayBeNull: true, optional: true} + ]); + if (e) throw e; + for (var i = 0, l = array.length; i < l; i++) { + var elt = array[i]; + if (typeof(elt) !== 'undefined') method.call(instance, elt, i, array); + } +} +Array.indexOf = function Array$indexOf(array, item, start) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "item", mayBeNull: true, optional: true}, + {name: "start", mayBeNull: true, optional: true} + ]); + if (e) throw e; + return Sys._indexOf(array, item, start); +} +Array.insert = function Array$insert(array, index, item) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "index", mayBeNull: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + array.splice(index, 0, item); +} +Array.parse = function Array$parse(value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String, mayBeNull: true} + ]); + if (e) throw e; + if (!value) return []; + var v = eval(value); + if (!Array.isInstanceOfType(v)) throw Error.argument('value', Sys.Res.arrayParseBadFormat); + return v; +} +Array.remove = function Array$remove(array, item) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + var index = Sys._indexOf(array, item); + if (index >= 0) { + array.splice(index, 1); + } + return (index >= 0); +} +Array.removeAt = function Array$removeAt(array, index) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "array", type: Array, elementMayBeNull: true}, + {name: "index", mayBeNull: true} + ]); + if (e) throw e; + array.splice(index, 1); +} +Sys._indexOf = function Sys$_indexOf(array, item, start) { + if (typeof(item) === "undefined") return -1; + var length = array.length; + if (length !== 0) { + start = start - 0; + if (isNaN(start)) { + start = 0; + } + else { + if (isFinite(start)) { + start = start - (start % 1); + } + if (start < 0) { + start = Math.max(0, length + start); + } + } + for (var i = start; i < length; i++) { + if ((typeof(array[i]) !== "undefined") && (array[i] === item)) { + return i; + } + } + } + return -1; +} +Type._registerScript._scripts = { + "MicrosoftAjaxCore.js": true, + "MicrosoftAjaxGlobalization.js": true, + "MicrosoftAjaxSerialization.js": true, + "MicrosoftAjaxComponentModel.js": true, + "MicrosoftAjaxHistory.js": true, + "MicrosoftAjaxNetwork.js" : true, + "MicrosoftAjaxWebServices.js": true }; + +Sys.IDisposable = function Sys$IDisposable() { + throw Error.notImplemented(); +} + function Sys$IDisposable$dispose() { + throw Error.notImplemented(); + } +Sys.IDisposable.prototype = { + dispose: Sys$IDisposable$dispose +} +Sys.IDisposable.registerInterface('Sys.IDisposable'); + +Sys.StringBuilder = function Sys$StringBuilder(initialText) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "initialText", mayBeNull: true, optional: true} + ]); + if (e) throw e; + this._parts = (typeof(initialText) !== 'undefined' && initialText !== null && initialText !== '') ? + [initialText.toString()] : []; + this._value = {}; + this._len = 0; +} + function Sys$StringBuilder$append(text) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "text", mayBeNull: true} + ]); + if (e) throw e; + this._parts[this._parts.length] = text; + } + function Sys$StringBuilder$appendLine(text) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "text", mayBeNull: true, optional: true} + ]); + if (e) throw e; + this._parts[this._parts.length] = + ((typeof(text) === 'undefined') || (text === null) || (text === '')) ? + '\r\n' : text + '\r\n'; + } + function Sys$StringBuilder$clear() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._parts = []; + this._value = {}; + this._len = 0; + } + function Sys$StringBuilder$isEmpty() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this._parts.length === 0) return true; + return this.toString() === ''; + } + function Sys$StringBuilder$toString(separator) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "separator", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + separator = separator || ''; + var parts = this._parts; + if (this._len !== parts.length) { + this._value = {}; + this._len = parts.length; + } + var val = this._value; + if (typeof(val[separator]) === 'undefined') { + if (separator !== '') { + for (var i = 0; i < parts.length;) { + if ((typeof(parts[i]) === 'undefined') || (parts[i] === '') || (parts[i] === null)) { + parts.splice(i, 1); + } + else { + i++; + } + } + } + val[separator] = this._parts.join(separator); + } + return val[separator]; + } +Sys.StringBuilder.prototype = { + append: Sys$StringBuilder$append, + appendLine: Sys$StringBuilder$appendLine, + clear: Sys$StringBuilder$clear, + isEmpty: Sys$StringBuilder$isEmpty, + toString: Sys$StringBuilder$toString +} +Sys.StringBuilder.registerClass('Sys.StringBuilder'); + +Sys.Browser = {}; +Sys.Browser.InternetExplorer = {}; +Sys.Browser.Firefox = {}; +Sys.Browser.Safari = {}; +Sys.Browser.Opera = {}; +Sys.Browser.agent = null; +Sys.Browser.hasDebuggerStatement = false; +Sys.Browser.name = navigator.appName; +Sys.Browser.version = parseFloat(navigator.appVersion); +Sys.Browser.documentMode = 0; +if (navigator.userAgent.indexOf(' MSIE ') > -1) { + Sys.Browser.agent = Sys.Browser.InternetExplorer; + Sys.Browser.version = parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]); + if (Sys.Browser.version >= 8) { + if (document.documentMode >= 7) { + Sys.Browser.documentMode = document.documentMode; + } + } + Sys.Browser.hasDebuggerStatement = true; +} +else if (navigator.userAgent.indexOf(' Firefox/') > -1) { + Sys.Browser.agent = Sys.Browser.Firefox; + Sys.Browser.version = parseFloat(navigator.userAgent.match(/ Firefox\/(\d+\.\d+)/)[1]); + Sys.Browser.name = 'Firefox'; + Sys.Browser.hasDebuggerStatement = true; +} +else if (navigator.userAgent.indexOf(' AppleWebKit/') > -1) { + Sys.Browser.agent = Sys.Browser.Safari; + Sys.Browser.version = parseFloat(navigator.userAgent.match(/ AppleWebKit\/(\d+(\.\d+)?)/)[1]); + Sys.Browser.name = 'Safari'; +} +else if (navigator.userAgent.indexOf('Opera/') > -1) { + Sys.Browser.agent = Sys.Browser.Opera; +} + +Sys.EventArgs = function Sys$EventArgs() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); +} +Sys.EventArgs.registerClass('Sys.EventArgs'); +Sys.EventArgs.Empty = new Sys.EventArgs(); + +Sys.CancelEventArgs = function Sys$CancelEventArgs() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + Sys.CancelEventArgs.initializeBase(this); + this._cancel = false; +} + function Sys$CancelEventArgs$get_cancel() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._cancel; + } + function Sys$CancelEventArgs$set_cancel(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Boolean}]); + if (e) throw e; + this._cancel = value; + } +Sys.CancelEventArgs.prototype = { + get_cancel: Sys$CancelEventArgs$get_cancel, + set_cancel: Sys$CancelEventArgs$set_cancel +} +Sys.CancelEventArgs.registerClass('Sys.CancelEventArgs', Sys.EventArgs); +Type.registerNamespace('Sys.UI'); + +Sys._Debug = function Sys$_Debug() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); +} + function Sys$_Debug$_appendConsole(text) { + if ((typeof(Debug) !== 'undefined') && Debug.writeln) { + Debug.writeln(text); + } + if (window.console && window.console.log) { + window.console.log(text); + } + if (window.opera) { + window.opera.postError(text); + } + if (window.debugService) { + window.debugService.trace(text); + } + } + function Sys$_Debug$_appendTrace(text) { + var traceElement = document.getElementById('TraceConsole'); + if (traceElement && (traceElement.tagName.toUpperCase() === 'TEXTAREA')) { + traceElement.value += text + '\n'; + } + } + function Sys$_Debug$assert(condition, message, displayCaller) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "condition", type: Boolean}, + {name: "message", type: String, mayBeNull: true, optional: true}, + {name: "displayCaller", type: Boolean, optional: true} + ]); + if (e) throw e; + if (!condition) { + message = (displayCaller && this.assert.caller) ? + String.format(Sys.Res.assertFailedCaller, message, this.assert.caller) : + String.format(Sys.Res.assertFailed, message); + if (confirm(String.format(Sys.Res.breakIntoDebugger, message))) { + this.fail(message); + } + } + } + function Sys$_Debug$clearTrace() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var traceElement = document.getElementById('TraceConsole'); + if (traceElement && (traceElement.tagName.toUpperCase() === 'TEXTAREA')) { + traceElement.value = ''; + } + } + function Sys$_Debug$fail(message) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "message", type: String, mayBeNull: true} + ]); + if (e) throw e; + this._appendConsole(message); + if (Sys.Browser.hasDebuggerStatement) { + eval('debugger'); + } + } + function Sys$_Debug$trace(text) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "text"} + ]); + if (e) throw e; + this._appendConsole(text); + this._appendTrace(text); + } + function Sys$_Debug$traceDump(object, name) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "object", mayBeNull: true}, + {name: "name", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var text = this._traceDump(object, name, true); + } + function Sys$_Debug$_traceDump(object, name, recursive, indentationPadding, loopArray) { + name = name? name : 'traceDump'; + indentationPadding = indentationPadding? indentationPadding : ''; + if (object === null) { + this.trace(indentationPadding + name + ': null'); + return; + } + switch(typeof(object)) { + case 'undefined': + this.trace(indentationPadding + name + ': Undefined'); + break; + case 'number': case 'string': case 'boolean': + this.trace(indentationPadding + name + ': ' + object); + break; + default: + if (Date.isInstanceOfType(object) || RegExp.isInstanceOfType(object)) { + this.trace(indentationPadding + name + ': ' + object.toString()); + break; + } + if (!loopArray) { + loopArray = []; + } + else if (Array.contains(loopArray, object)) { + this.trace(indentationPadding + name + ': ...'); + return; + } + Array.add(loopArray, object); + if ((object == window) || (object === document) || + (window.HTMLElement && (object instanceof HTMLElement)) || + (typeof(object.nodeName) === 'string')) { + var tag = object.tagName? object.tagName : 'DomElement'; + if (object.id) { + tag += ' - ' + object.id; + } + this.trace(indentationPadding + name + ' {' + tag + '}'); + } + else { + var typeName = Object.getTypeName(object); + this.trace(indentationPadding + name + (typeof(typeName) === 'string' ? ' {' + typeName + '}' : '')); + if ((indentationPadding === '') || recursive) { + indentationPadding += " "; + var i, length, properties, p, v; + if (Array.isInstanceOfType(object)) { + length = object.length; + for (i = 0; i < length; i++) { + this._traceDump(object[i], '[' + i + ']', recursive, indentationPadding, loopArray); + } + } + else { + for (p in object) { + v = object[p]; + if (!Function.isInstanceOfType(v)) { + this._traceDump(v, p, recursive, indentationPadding, loopArray); + } + } + } + } + } + Array.remove(loopArray, object); + } + } +Sys._Debug.prototype = { + _appendConsole: Sys$_Debug$_appendConsole, + _appendTrace: Sys$_Debug$_appendTrace, + assert: Sys$_Debug$assert, + clearTrace: Sys$_Debug$clearTrace, + fail: Sys$_Debug$fail, + trace: Sys$_Debug$trace, + traceDump: Sys$_Debug$traceDump, + _traceDump: Sys$_Debug$_traceDump +} +Sys._Debug.registerClass('Sys._Debug'); +Sys.Debug = new Sys._Debug(); + Sys.Debug.isDebug = true; + +function Sys$Enum$parse(value, ignoreCase) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String}, + {name: "ignoreCase", type: Boolean, optional: true} + ]); + if (e) throw e; + var values, parsed, val; + if (ignoreCase) { + values = this.__lowerCaseValues; + if (!values) { + this.__lowerCaseValues = values = {}; + var prototype = this.prototype; + for (var name in prototype) { + values[name.toLowerCase()] = prototype[name]; + } + } + } + else { + values = this.prototype; + } + if (!this.__flags) { + val = (ignoreCase ? value.toLowerCase() : value); + parsed = values[val.trim()]; + if (typeof(parsed) !== 'number') throw Error.argument('value', String.format(Sys.Res.enumInvalidValue, value, this.__typeName)); + return parsed; + } + else { + var parts = (ignoreCase ? value.toLowerCase() : value).split(','); + var v = 0; + for (var i = parts.length - 1; i >= 0; i--) { + var part = parts[i].trim(); + parsed = values[part]; + if (typeof(parsed) !== 'number') throw Error.argument('value', String.format(Sys.Res.enumInvalidValue, value.split(',')[i].trim(), this.__typeName)); + v |= parsed; + } + return v; + } +} +function Sys$Enum$toString(value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", mayBeNull: true, optional: true} + ]); + if (e) throw e; + if ((typeof(value) === 'undefined') || (value === null)) return this.__string; + if ((typeof(value) != 'number') || ((value % 1) !== 0)) throw Error.argumentType('value', Object.getType(value), this); + var values = this.prototype; + var i; + if (!this.__flags || (value === 0)) { + for (i in values) { + if (values[i] === value) { + return i; + } + } + } + else { + var sorted = this.__sortedValues; + if (!sorted) { + sorted = []; + for (i in values) { + sorted[sorted.length] = {key: i, value: values[i]}; + } + sorted.sort(function(a, b) { + return a.value - b.value; + }); + this.__sortedValues = sorted; + } + var parts = []; + var v = value; + for (i = sorted.length - 1; i >= 0; i--) { + var kvp = sorted[i]; + var vali = kvp.value; + if (vali === 0) continue; + if ((vali & value) === vali) { + parts[parts.length] = kvp.key; + v -= vali; + if (v === 0) break; + } + } + if (parts.length && v === 0) return parts.reverse().join(', '); + } + throw Error.argumentOutOfRange('value', value, String.format(Sys.Res.enumInvalidValue, value, this.__typeName)); +} +Type.prototype.registerEnum = function Type$registerEnum(name, flags) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "name", type: String}, + {name: "flags", type: Boolean, optional: true} + ]); + if (e) throw e; + if (!Type.__fullyQualifiedIdentifierRegExp.test(name)) throw Error.argument('name', Sys.Res.notATypeName); + var parsedName; + try { + parsedName = eval(name); + } + catch(e) { + throw Error.argument('name', Sys.Res.argumentTypeName); + } + if (parsedName !== this) throw Error.argument('name', Sys.Res.badTypeName); + if (Sys.__registeredTypes[name]) throw Error.invalidOperation(String.format(Sys.Res.typeRegisteredTwice, name)); + for (var j in this.prototype) { + var val = this.prototype[j]; + if (!Type.__identifierRegExp.test(j)) throw Error.invalidOperation(String.format(Sys.Res.enumInvalidValueName, j)); + if (typeof(val) !== 'number' || (val % 1) !== 0) throw Error.invalidOperation(Sys.Res.enumValueNotInteger); + if (typeof(this[j]) !== 'undefined') throw Error.invalidOperation(String.format(Sys.Res.enumReservedName, j)); + } + Sys.__upperCaseTypes[name.toUpperCase()] = this; + for (var i in this.prototype) { + this[i] = this.prototype[i]; + } + this.__typeName = name; + this.parse = Sys$Enum$parse; + this.__string = this.toString(); + this.toString = Sys$Enum$toString; + this.__flags = flags; + this.__enum = true; + Sys.__registeredTypes[name] = true; +} +Type.isEnum = function Type$isEnum(type) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "type", mayBeNull: true} + ]); + if (e) throw e; + if ((typeof(type) === 'undefined') || (type === null)) return false; + return !!type.__enum; +} +Type.isFlags = function Type$isFlags(type) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "type", mayBeNull: true} + ]); + if (e) throw e; + if ((typeof(type) === 'undefined') || (type === null)) return false; + return !!type.__flags; +} +Sys.CollectionChange = function Sys$CollectionChange(action, newItems, newStartingIndex, oldItems, oldStartingIndex) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "action", type: Sys.NotifyCollectionChangedAction}, + {name: "newItems", mayBeNull: true, optional: true}, + {name: "newStartingIndex", type: Number, mayBeNull: true, integer: true, optional: true}, + {name: "oldItems", mayBeNull: true, optional: true}, + {name: "oldStartingIndex", type: Number, mayBeNull: true, integer: true, optional: true} + ]); + if (e) throw e; + this.action = action; + if (newItems) { + if (!(newItems instanceof Array)) { + newItems = [newItems]; + } + } + this.newItems = newItems || null; + if (typeof newStartingIndex !== "number") { + newStartingIndex = -1; + } + this.newStartingIndex = newStartingIndex; + if (oldItems) { + if (!(oldItems instanceof Array)) { + oldItems = [oldItems]; + } + } + this.oldItems = oldItems || null; + if (typeof oldStartingIndex !== "number") { + oldStartingIndex = -1; + } + this.oldStartingIndex = oldStartingIndex; +} +Sys.CollectionChange.registerClass("Sys.CollectionChange"); +Sys.NotifyCollectionChangedAction = function Sys$NotifyCollectionChangedAction() { + /// + /// + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} +Sys.NotifyCollectionChangedAction.prototype = { + add: 0, + remove: 1, + reset: 2 +} +Sys.NotifyCollectionChangedAction.registerEnum('Sys.NotifyCollectionChangedAction'); +Sys.NotifyCollectionChangedEventArgs = function Sys$NotifyCollectionChangedEventArgs(changes) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "changes", type: Array, elementType: Sys.CollectionChange} + ]); + if (e) throw e; + this._changes = changes; + Sys.NotifyCollectionChangedEventArgs.initializeBase(this); +} + function Sys$NotifyCollectionChangedEventArgs$get_changes() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._changes || []; + } +Sys.NotifyCollectionChangedEventArgs.prototype = { + get_changes: Sys$NotifyCollectionChangedEventArgs$get_changes +} +Sys.NotifyCollectionChangedEventArgs.registerClass("Sys.NotifyCollectionChangedEventArgs", Sys.EventArgs); +Sys.Observer = function Sys$Observer() { + throw Error.invalidOperation(); +} +Sys.Observer.registerClass("Sys.Observer"); +Sys.Observer.makeObservable = function Sys$Observer$makeObservable(target) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"} + ]); + if (e) throw e; + var isArray = target instanceof Array, + o = Sys.Observer; + Sys.Observer._ensureObservable(target); + if (target.setValue === o._observeMethods.setValue) return target; + o._addMethods(target, o._observeMethods); + if (isArray) { + o._addMethods(target, o._arrayMethods); + } + return target; +} +Sys.Observer._ensureObservable = function Sys$Observer$_ensureObservable(target) { + var type = typeof target; + if ((type === "string") || (type === "number") || (type === "boolean") || (type === "date")) { + throw Error.invalidOperation(String.format(Sys.Res.notObservable, type)); + } +} +Sys.Observer._addMethods = function Sys$Observer$_addMethods(target, methods) { + for (var m in methods) { + if (target[m] && (target[m] !== methods[m])) { + throw Error.invalidOperation(String.format(Sys.Res.observableConflict, m)); + } + target[m] = methods[m]; + } +} +Sys.Observer._addEventHandler = function Sys$Observer$_addEventHandler(target, eventName, handler) { + Sys.Observer._getContext(target, true).events._addHandler(eventName, handler); +} +Sys.Observer.addEventHandler = function Sys$Observer$addEventHandler(target, eventName, handler) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "eventName", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + Sys.Observer._addEventHandler(target, eventName, handler); +} +Sys.Observer._removeEventHandler = function Sys$Observer$_removeEventHandler(target, eventName, handler) { + Sys.Observer._getContext(target, true).events._removeHandler(eventName, handler); +} +Sys.Observer.removeEventHandler = function Sys$Observer$removeEventHandler(target, eventName, handler) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "eventName", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + Sys.Observer._removeEventHandler(target, eventName, handler); +} +Sys.Observer.raiseEvent = function Sys$Observer$raiseEvent(target, eventName, eventArgs) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "eventName", type: String}, + {name: "eventArgs", type: Sys.EventArgs} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + var ctx = Sys.Observer._getContext(target); + if (!ctx) return; + var handler = ctx.events.getHandler(eventName); + if (handler) { + handler(target, eventArgs); + } +} +Sys.Observer.addPropertyChanged = function Sys$Observer$addPropertyChanged(target, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + Sys.Observer._addEventHandler(target, "propertyChanged", handler); +} +Sys.Observer.removePropertyChanged = function Sys$Observer$removePropertyChanged(target, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + Sys.Observer._removeEventHandler(target, "propertyChanged", handler); +} +Sys.Observer.beginUpdate = function Sys$Observer$beginUpdate(target) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + Sys.Observer._getContext(target, true).updating = true; +} +Sys.Observer.endUpdate = function Sys$Observer$endUpdate(target) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + var ctx = Sys.Observer._getContext(target); + if (!ctx || !ctx.updating) return; + ctx.updating = false; + var dirty = ctx.dirty; + ctx.dirty = false; + if (dirty) { + if (target instanceof Array) { + var changes = ctx.changes; + ctx.changes = null; + Sys.Observer.raiseCollectionChanged(target, changes); + } + Sys.Observer.raisePropertyChanged(target, ""); + } +} +Sys.Observer.isUpdating = function Sys$Observer$isUpdating(target) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + var ctx = Sys.Observer._getContext(target); + return ctx ? ctx.updating : false; +} +Sys.Observer._setValue = function Sys$Observer$_setValue(target, propertyName, value) { + var getter, setter, mainTarget = target, path = propertyName.split('.'); + for (var i = 0, l = (path.length - 1); i < l ; i++) { + var name = path[i]; + getter = target["get_" + name]; + if (typeof (getter) === "function") { + target = getter.call(target); + } + else { + target = target[name]; + } + var type = typeof (target); + if ((target === null) || (type === "undefined")) { + throw Error.invalidOperation(String.format(Sys.Res.nullReferenceInPath, propertyName)); + } + } + var currentValue, lastPath = path[l]; + getter = target["get_" + lastPath]; + setter = target["set_" + lastPath]; + if (typeof(getter) === 'function') { + currentValue = getter.call(target); + } + else { + currentValue = target[lastPath]; + } + if (typeof(setter) === 'function') { + setter.call(target, value); + } + else { + target[lastPath] = value; + } + if (currentValue !== value) { + var ctx = Sys.Observer._getContext(mainTarget); + if (ctx && ctx.updating) { + ctx.dirty = true; + return; + }; + Sys.Observer.raisePropertyChanged(mainTarget, path[0]); + } +} +Sys.Observer.setValue = function Sys$Observer$setValue(target, propertyName, value) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "propertyName", type: String}, + {name: "value", mayBeNull: true} + ]); + if (e) throw e; + Sys.Observer._ensureObservable(target); + Sys.Observer._setValue(target, propertyName, value); +} +Sys.Observer.raisePropertyChanged = function Sys$Observer$raisePropertyChanged(target, propertyName) { + /// + /// + /// + Sys.Observer.raiseEvent(target, "propertyChanged", new Sys.PropertyChangedEventArgs(propertyName)); +} +Sys.Observer.addCollectionChanged = function Sys$Observer$addCollectionChanged(target, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._addEventHandler(target, "collectionChanged", handler); +} +Sys.Observer.removeCollectionChanged = function Sys$Observer$removeCollectionChanged(target, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._removeEventHandler(target, "collectionChanged", handler); +} +Sys.Observer._collectionChange = function Sys$Observer$_collectionChange(target, change) { + var ctx = Sys.Observer._getContext(target); + if (ctx && ctx.updating) { + ctx.dirty = true; + var changes = ctx.changes; + if (!changes) { + ctx.changes = changes = [change]; + } + else { + changes.push(change); + } + } + else { + Sys.Observer.raiseCollectionChanged(target, [change]); + Sys.Observer.raisePropertyChanged(target, 'length'); + } +} +Sys.Observer.add = function Sys$Observer$add(target, item) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + var change = new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add, [item], target.length); + Array.add(target, item); + Sys.Observer._collectionChange(target, change); +} +Sys.Observer.addRange = function Sys$Observer$addRange(target, items) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "items", type: Array, elementMayBeNull: true} + ]); + if (e) throw e; + var change = new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add, items, target.length); + Array.addRange(target, items); + Sys.Observer._collectionChange(target, change); +} +Sys.Observer.clear = function Sys$Observer$clear(target) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true} + ]); + if (e) throw e; + var oldItems = Array.clone(target); + Array.clear(target); + Sys.Observer._collectionChange(target, new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.reset, null, -1, oldItems, 0)); +} +Sys.Observer.insert = function Sys$Observer$insert(target, index, item) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "index", type: Number, integer: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + Array.insert(target, index, item); + Sys.Observer._collectionChange(target, new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add, [item], index)); +} +Sys.Observer.remove = function Sys$Observer$remove(target, item) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "item", mayBeNull: true} + ]); + if (e) throw e; + var index = Array.indexOf(target, item); + if (index !== -1) { + Array.remove(target, item); + Sys.Observer._collectionChange(target, new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove, null, -1, [item], index)); + return true; + } + return false; +} +Sys.Observer.removeAt = function Sys$Observer$removeAt(target, index) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target", type: Array, elementMayBeNull: true}, + {name: "index", type: Number, integer: true} + ]); + if (e) throw e; + if ((index > -1) && (index < target.length)) { + var item = target[index]; + Array.removeAt(target, index); + Sys.Observer._collectionChange(target, new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove, null, -1, [item], index)); + } +} +Sys.Observer.raiseCollectionChanged = function Sys$Observer$raiseCollectionChanged(target, changes) { + /// + /// + /// + Sys.Observer.raiseEvent(target, "collectionChanged", new Sys.NotifyCollectionChangedEventArgs(changes)); +} +Sys.Observer._observeMethods = { + add_propertyChanged: function(handler) { + Sys.Observer._addEventHandler(this, "propertyChanged", handler); + }, + remove_propertyChanged: function(handler) { + Sys.Observer._removeEventHandler(this, "propertyChanged", handler); + }, + addEventHandler: function(eventName, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "eventName", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._addEventHandler(this, eventName, handler); + }, + removeEventHandler: function(eventName, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "eventName", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.Observer._removeEventHandler(this, eventName, handler); + }, + get_isUpdating: function() { + /// + /// + return Sys.Observer.isUpdating(this); + }, + beginUpdate: function() { + /// + Sys.Observer.beginUpdate(this); + }, + endUpdate: function() { + /// + Sys.Observer.endUpdate(this); + }, + setValue: function(name, value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "name", type: String}, + {name: "value", mayBeNull: true} + ]); + if (e) throw e; + Sys.Observer._setValue(this, name, value); + }, + raiseEvent: function(eventName, eventArgs) { + /// + /// + /// + Sys.Observer.raiseEvent(this, eventName, eventArgs); + }, + raisePropertyChanged: function(name) { + /// + /// + Sys.Observer.raiseEvent(this, "propertyChanged", new Sys.PropertyChangedEventArgs(name)); + } +} +Sys.Observer._arrayMethods = { + add_collectionChanged: function(handler) { + Sys.Observer._addEventHandler(this, "collectionChanged", handler); + }, + remove_collectionChanged: function(handler) { + Sys.Observer._removeEventHandler(this, "collectionChanged", handler); + }, + add: function(item) { + /// + /// + Sys.Observer.add(this, item); + }, + addRange: function(items) { + /// + /// + Sys.Observer.addRange(this, items); + }, + clear: function() { + /// + Sys.Observer.clear(this); + }, + insert: function(index, item) { + /// + /// + /// + Sys.Observer.insert(this, index, item); + }, + remove: function(item) { + /// + /// + /// + return Sys.Observer.remove(this, item); + }, + removeAt: function(index) { + /// + /// + Sys.Observer.removeAt(this, index); + }, + raiseCollectionChanged: function(changes) { + /// + /// + Sys.Observer.raiseEvent(this, "collectionChanged", new Sys.NotifyCollectionChangedEventArgs(changes)); + } +} +Sys.Observer._getContext = function Sys$Observer$_getContext(obj, create) { + var ctx = obj._observerContext; + if (ctx) return ctx(); + if (create) { + return (obj._observerContext = Sys.Observer._createContext())(); + } + return null; +} +Sys.Observer._createContext = function Sys$Observer$_createContext() { + var ctx = { + events: new Sys.EventHandlerList() + }; + return function() { + return ctx; + } +} +Date._appendPreOrPostMatch = function Date$_appendPreOrPostMatch(preMatch, strBuilder) { + var quoteCount = 0; + var escaped = false; + for (var i = 0, il = preMatch.length; i < il; i++) { + var c = preMatch.charAt(i); + switch (c) { + case '\'': + if (escaped) strBuilder.append("'"); + else quoteCount++; + escaped = false; + break; + case '\\': + if (escaped) strBuilder.append("\\"); + escaped = !escaped; + break; + default: + strBuilder.append(c); + escaped = false; + break; + } + } + return quoteCount; +} +Date._expandFormat = function Date$_expandFormat(dtf, format) { + if (!format) { + format = "F"; + } + var len = format.length; + if (len === 1) { + switch (format) { + case "d": + return dtf.ShortDatePattern; + case "D": + return dtf.LongDatePattern; + case "t": + return dtf.ShortTimePattern; + case "T": + return dtf.LongTimePattern; + case "f": + return dtf.LongDatePattern + " " + dtf.ShortTimePattern; + case "F": + return dtf.FullDateTimePattern; + case "M": case "m": + return dtf.MonthDayPattern; + case "s": + return dtf.SortableDateTimePattern; + case "Y": case "y": + return dtf.YearMonthPattern; + default: + throw Error.format(Sys.Res.formatInvalidString); + } + } + else if ((len === 2) && (format.charAt(0) === "%")) { + format = format.charAt(1); + } + return format; +} +Date._expandYear = function Date$_expandYear(dtf, year) { + var now = new Date(), + era = Date._getEra(now); + if (year < 100) { + var curr = Date._getEraYear(now, dtf, era); + year += curr - (curr % 100); + if (year > dtf.Calendar.TwoDigitYearMax) { + year -= 100; + } + } + return year; +} +Date._getEra = function Date$_getEra(date, eras) { + if (!eras) return 0; + var start, ticks = date.getTime(); + for (var i = 0, l = eras.length; i < l; i += 4) { + start = eras[i+2]; + if ((start === null) || (ticks >= start)) { + return i; + } + } + return 0; +} +Date._getEraYear = function Date$_getEraYear(date, dtf, era, sortable) { + var year = date.getFullYear(); + if (!sortable && dtf.eras) { + year -= dtf.eras[era + 3]; + } + return year; +} +Date._getParseRegExp = function Date$_getParseRegExp(dtf, format) { + if (!dtf._parseRegExp) { + dtf._parseRegExp = {}; + } + else if (dtf._parseRegExp[format]) { + return dtf._parseRegExp[format]; + } + var expFormat = Date._expandFormat(dtf, format); + expFormat = expFormat.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g, "\\\\$1"); + var regexp = new Sys.StringBuilder("^"); + var groups = []; + var index = 0; + var quoteCount = 0; + var tokenRegExp = Date._getTokenRegExp(); + var match; + while ((match = tokenRegExp.exec(expFormat)) !== null) { + var preMatch = expFormat.slice(index, match.index); + index = tokenRegExp.lastIndex; + quoteCount += Date._appendPreOrPostMatch(preMatch, regexp); + if ((quoteCount%2) === 1) { + regexp.append(match[0]); + continue; + } + switch (match[0]) { + case 'dddd': case 'ddd': + case 'MMMM': case 'MMM': + case 'gg': case 'g': + regexp.append("(\\D+)"); + break; + case 'tt': case 't': + regexp.append("(\\D*)"); + break; + case 'yyyy': + regexp.append("(\\d{4})"); + break; + case 'fff': + regexp.append("(\\d{3})"); + break; + case 'ff': + regexp.append("(\\d{2})"); + break; + case 'f': + regexp.append("(\\d)"); + break; + case 'dd': case 'd': + case 'MM': case 'M': + case 'yy': case 'y': + case 'HH': case 'H': + case 'hh': case 'h': + case 'mm': case 'm': + case 'ss': case 's': + regexp.append("(\\d\\d?)"); + break; + case 'zzz': + regexp.append("([+-]?\\d\\d?:\\d{2})"); + break; + case 'zz': case 'z': + regexp.append("([+-]?\\d\\d?)"); + break; + case '/': + regexp.append("(\\" + dtf.DateSeparator + ")"); + break; + default: + Sys.Debug.fail("Invalid date format pattern"); + } + Array.add(groups, match[0]); + } + Date._appendPreOrPostMatch(expFormat.slice(index), regexp); + regexp.append("$"); + var regexpStr = regexp.toString().replace(/\s+/g, "\\s+"); + var parseRegExp = {'regExp': regexpStr, 'groups': groups}; + dtf._parseRegExp[format] = parseRegExp; + return parseRegExp; +} +Date._getTokenRegExp = function Date$_getTokenRegExp() { + return /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g; +} +Date.parseLocale = function Date$parseLocale(value, formats) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String}, + {name: "formats", mayBeNull: true, optional: true, parameterArray: true} + ]); + if (e) throw e; + return Date._parse(value, Sys.CultureInfo.CurrentCulture, arguments); +} +Date.parseInvariant = function Date$parseInvariant(value, formats) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String}, + {name: "formats", mayBeNull: true, optional: true, parameterArray: true} + ]); + if (e) throw e; + return Date._parse(value, Sys.CultureInfo.InvariantCulture, arguments); +} +Date._parse = function Date$_parse(value, cultureInfo, args) { + var i, l, date, format, formats, custom = false; + for (i = 1, l = args.length; i < l; i++) { + format = args[i]; + if (format) { + custom = true; + date = Date._parseExact(value, format, cultureInfo); + if (date) return date; + } + } + if (! custom) { + formats = cultureInfo._getDateTimeFormats(); + for (i = 0, l = formats.length; i < l; i++) { + date = Date._parseExact(value, formats[i], cultureInfo); + if (date) return date; + } + } + return null; +} +Date._parseExact = function Date$_parseExact(value, format, cultureInfo) { + value = value.trim(); + var dtf = cultureInfo.dateTimeFormat, + parseInfo = Date._getParseRegExp(dtf, format), + match = new RegExp(parseInfo.regExp).exec(value); + if (match === null) return null; + + var groups = parseInfo.groups, + era = null, year = null, month = null, date = null, weekDay = null, + hour = 0, hourOffset, min = 0, sec = 0, msec = 0, tzMinOffset = null, + pmHour = false; + for (var j = 0, jl = groups.length; j < jl; j++) { + var matchGroup = match[j+1]; + if (matchGroup) { + switch (groups[j]) { + case 'dd': case 'd': + date = parseInt(matchGroup, 10); + if ((date < 1) || (date > 31)) return null; + break; + case 'MMMM': + month = cultureInfo._getMonthIndex(matchGroup); + if ((month < 0) || (month > 11)) return null; + break; + case 'MMM': + month = cultureInfo._getAbbrMonthIndex(matchGroup); + if ((month < 0) || (month > 11)) return null; + break; + case 'M': case 'MM': + month = parseInt(matchGroup, 10) - 1; + if ((month < 0) || (month > 11)) return null; + break; + case 'y': case 'yy': + year = Date._expandYear(dtf,parseInt(matchGroup, 10)); + if ((year < 0) || (year > 9999)) return null; + break; + case 'yyyy': + year = parseInt(matchGroup, 10); + if ((year < 0) || (year > 9999)) return null; + break; + case 'h': case 'hh': + hour = parseInt(matchGroup, 10); + if (hour === 12) hour = 0; + if ((hour < 0) || (hour > 11)) return null; + break; + case 'H': case 'HH': + hour = parseInt(matchGroup, 10); + if ((hour < 0) || (hour > 23)) return null; + break; + case 'm': case 'mm': + min = parseInt(matchGroup, 10); + if ((min < 0) || (min > 59)) return null; + break; + case 's': case 'ss': + sec = parseInt(matchGroup, 10); + if ((sec < 0) || (sec > 59)) return null; + break; + case 'tt': case 't': + var upperToken = matchGroup.toUpperCase(); + pmHour = (upperToken === dtf.PMDesignator.toUpperCase()); + if (!pmHour && (upperToken !== dtf.AMDesignator.toUpperCase())) return null; + break; + case 'f': + msec = parseInt(matchGroup, 10) * 100; + if ((msec < 0) || (msec > 999)) return null; + break; + case 'ff': + msec = parseInt(matchGroup, 10) * 10; + if ((msec < 0) || (msec > 999)) return null; + break; + case 'fff': + msec = parseInt(matchGroup, 10); + if ((msec < 0) || (msec > 999)) return null; + break; + case 'dddd': + weekDay = cultureInfo._getDayIndex(matchGroup); + if ((weekDay < 0) || (weekDay > 6)) return null; + break; + case 'ddd': + weekDay = cultureInfo._getAbbrDayIndex(matchGroup); + if ((weekDay < 0) || (weekDay > 6)) return null; + break; + case 'zzz': + var offsets = matchGroup.split(/:/); + if (offsets.length !== 2) return null; + hourOffset = parseInt(offsets[0], 10); + if ((hourOffset < -12) || (hourOffset > 13)) return null; + var minOffset = parseInt(offsets[1], 10); + if ((minOffset < 0) || (minOffset > 59)) return null; + tzMinOffset = (hourOffset * 60) + (matchGroup.startsWith('-')? -minOffset : minOffset); + break; + case 'z': case 'zz': + hourOffset = parseInt(matchGroup, 10); + if ((hourOffset < -12) || (hourOffset > 13)) return null; + tzMinOffset = hourOffset * 60; + break; + case 'g': case 'gg': + var eraName = matchGroup; + if (!eraName || !dtf.eras) return null; + eraName = eraName.toLowerCase().trim(); + for (var i = 0, l = dtf.eras.length; i < l; i += 4) { + if (eraName === dtf.eras[i + 1].toLowerCase()) { + era = i; + break; + } + } + if (era === null) return null; + break; + } + } + } + var result = new Date(), defaults, convert = dtf.Calendar.convert; + if (convert) { + defaults = convert.fromGregorian(result); + } + if (!convert) { + defaults = [result.getFullYear(), result.getMonth(), result.getDate()]; + } + if (year === null) { + year = defaults[0]; + } + else if (dtf.eras) { + year += dtf.eras[(era || 0) + 3]; + } + if (month === null) { + month = defaults[1]; + } + if (date === null) { + date = defaults[2]; + } + if (convert) { + result = convert.toGregorian(year, month, date); + if (result === null) return null; + } + else { + result.setFullYear(year, month, date); + if (result.getDate() !== date) return null; + if ((weekDay !== null) && (result.getDay() !== weekDay)) { + return null; + } + } + if (pmHour && (hour < 12)) { + hour += 12; + } + result.setHours(hour, min, sec, msec); + if (tzMinOffset !== null) { + var adjustedMin = result.getMinutes() - (tzMinOffset + result.getTimezoneOffset()); + result.setHours(result.getHours() + parseInt(adjustedMin/60, 10), adjustedMin%60); + } + return result; +} +Date.prototype.format = function Date$format(format) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "format", type: String} + ]); + if (e) throw e; + return this._toFormattedString(format, Sys.CultureInfo.InvariantCulture); +} +Date.prototype.localeFormat = function Date$localeFormat(format) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "format", type: String} + ]); + if (e) throw e; + return this._toFormattedString(format, Sys.CultureInfo.CurrentCulture); +} +Date.prototype._toFormattedString = function Date$_toFormattedString(format, cultureInfo) { + var dtf = cultureInfo.dateTimeFormat, + convert = dtf.Calendar.convert; + if (!format || !format.length || (format === 'i')) { + if (cultureInfo && cultureInfo.name.length) { + if (convert) { + return this._toFormattedString(dtf.FullDateTimePattern, cultureInfo); + } + else { + var eraDate = new Date(this.getTime()); + var era = Date._getEra(this, dtf.eras); + eraDate.setFullYear(Date._getEraYear(this, dtf, era)); + return eraDate.toLocaleString(); + } + } + else { + return this.toString(); + } + } + var eras = dtf.eras, + sortable = (format === "s"); + format = Date._expandFormat(dtf, format); + var ret = new Sys.StringBuilder(); + var hour; + function addLeadingZero(num) { + if (num < 10) { + return '0' + num; + } + return num.toString(); + } + function addLeadingZeros(num) { + if (num < 10) { + return '00' + num; + } + if (num < 100) { + return '0' + num; + } + return num.toString(); + } + function padYear(year) { + if (year < 10) { + return '000' + year; + } + else if (year < 100) { + return '00' + year; + } + else if (year < 1000) { + return '0' + year; + } + return year.toString(); + } + + var foundDay, checkedDay, dayPartRegExp = /([^d]|^)(d|dd)([^d]|$)/g; + function hasDay() { + if (foundDay || checkedDay) { + return foundDay; + } + foundDay = dayPartRegExp.test(format); + checkedDay = true; + return foundDay; + } + + var quoteCount = 0, + tokenRegExp = Date._getTokenRegExp(), + converted; + if (!sortable && convert) { + converted = convert.fromGregorian(this); + } + for (;;) { + var index = tokenRegExp.lastIndex; + var ar = tokenRegExp.exec(format); + var preMatch = format.slice(index, ar ? ar.index : format.length); + quoteCount += Date._appendPreOrPostMatch(preMatch, ret); + if (!ar) break; + if ((quoteCount%2) === 1) { + ret.append(ar[0]); + continue; + } + + function getPart(date, part) { + if (converted) { + return converted[part]; + } + switch (part) { + case 0: return date.getFullYear(); + case 1: return date.getMonth(); + case 2: return date.getDate(); + } + } + switch (ar[0]) { + case "dddd": + ret.append(dtf.DayNames[this.getDay()]); + break; + case "ddd": + ret.append(dtf.AbbreviatedDayNames[this.getDay()]); + break; + case "dd": + foundDay = true; + ret.append(addLeadingZero(getPart(this, 2))); + break; + case "d": + foundDay = true; + ret.append(getPart(this, 2)); + break; + case "MMMM": + ret.append((dtf.MonthGenitiveNames && hasDay()) + ? dtf.MonthGenitiveNames[getPart(this, 1)] + : dtf.MonthNames[getPart(this, 1)]); + break; + case "MMM": + ret.append((dtf.AbbreviatedMonthGenitiveNames && hasDay()) + ? dtf.AbbreviatedMonthGenitiveNames[getPart(this, 1)] + : dtf.AbbreviatedMonthNames[getPart(this, 1)]); + break; + case "MM": + ret.append(addLeadingZero(getPart(this, 1) + 1)); + break; + case "M": + ret.append(getPart(this, 1) + 1); + break; + case "yyyy": + ret.append(padYear(converted ? converted[0] : Date._getEraYear(this, dtf, Date._getEra(this, eras), sortable))); + break; + case "yy": + ret.append(addLeadingZero((converted ? converted[0] : Date._getEraYear(this, dtf, Date._getEra(this, eras), sortable)) % 100)); + break; + case "y": + ret.append((converted ? converted[0] : Date._getEraYear(this, dtf, Date._getEra(this, eras), sortable)) % 100); + break; + case "hh": + hour = this.getHours() % 12; + if (hour === 0) hour = 12; + ret.append(addLeadingZero(hour)); + break; + case "h": + hour = this.getHours() % 12; + if (hour === 0) hour = 12; + ret.append(hour); + break; + case "HH": + ret.append(addLeadingZero(this.getHours())); + break; + case "H": + ret.append(this.getHours()); + break; + case "mm": + ret.append(addLeadingZero(this.getMinutes())); + break; + case "m": + ret.append(this.getMinutes()); + break; + case "ss": + ret.append(addLeadingZero(this.getSeconds())); + break; + case "s": + ret.append(this.getSeconds()); + break; + case "tt": + ret.append((this.getHours() < 12) ? dtf.AMDesignator : dtf.PMDesignator); + break; + case "t": + ret.append(((this.getHours() < 12) ? dtf.AMDesignator : dtf.PMDesignator).charAt(0)); + break; + case "f": + ret.append(addLeadingZeros(this.getMilliseconds()).charAt(0)); + break; + case "ff": + ret.append(addLeadingZeros(this.getMilliseconds()).substr(0, 2)); + break; + case "fff": + ret.append(addLeadingZeros(this.getMilliseconds())); + break; + case "z": + hour = this.getTimezoneOffset() / 60; + ret.append(((hour <= 0) ? '+' : '-') + Math.floor(Math.abs(hour))); + break; + case "zz": + hour = this.getTimezoneOffset() / 60; + ret.append(((hour <= 0) ? '+' : '-') + addLeadingZero(Math.floor(Math.abs(hour)))); + break; + case "zzz": + hour = this.getTimezoneOffset() / 60; + ret.append(((hour <= 0) ? '+' : '-') + addLeadingZero(Math.floor(Math.abs(hour))) + + ":" + addLeadingZero(Math.abs(this.getTimezoneOffset() % 60))); + break; + case "g": + case "gg": + if (dtf.eras) { + ret.append(dtf.eras[Date._getEra(this, eras) + 1]); + } + break; + case "/": + ret.append(dtf.DateSeparator); + break; + default: + Sys.Debug.fail("Invalid date format pattern"); + } + } + return ret.toString(); +} +String.localeFormat = function String$localeFormat(format, args) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "format", type: String}, + {name: "args", mayBeNull: true, parameterArray: true} + ]); + if (e) throw e; + return String._toFormattedString(true, arguments); +} +Number.parseLocale = function Number$parseLocale(value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String} + ], false); + if (e) throw e; + return Number._parse(value, Sys.CultureInfo.CurrentCulture); +} +Number.parseInvariant = function Number$parseInvariant(value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String} + ], false); + if (e) throw e; + return Number._parse(value, Sys.CultureInfo.InvariantCulture); +} +Number._parse = function Number$_parse(value, cultureInfo) { + value = value.trim(); + + if (value.match(/^[+-]?infinity$/i)) { + return parseFloat(value); + } + if (value.match(/^0x[a-f0-9]+$/i)) { + return parseInt(value); + } + var numFormat = cultureInfo.numberFormat; + var signInfo = Number._parseNumberNegativePattern(value, numFormat, numFormat.NumberNegativePattern); + var sign = signInfo[0]; + var num = signInfo[1]; + + if ((sign === '') && (numFormat.NumberNegativePattern !== 1)) { + signInfo = Number._parseNumberNegativePattern(value, numFormat, 1); + sign = signInfo[0]; + num = signInfo[1]; + } + if (sign === '') sign = '+'; + + var exponent; + var intAndFraction; + var exponentPos = num.indexOf('e'); + if (exponentPos < 0) exponentPos = num.indexOf('E'); + if (exponentPos < 0) { + intAndFraction = num; + exponent = null; + } + else { + intAndFraction = num.substr(0, exponentPos); + exponent = num.substr(exponentPos + 1); + } + + var integer; + var fraction; + var decimalPos = intAndFraction.indexOf(numFormat.NumberDecimalSeparator); + if (decimalPos < 0) { + integer = intAndFraction; + fraction = null; + } + else { + integer = intAndFraction.substr(0, decimalPos); + fraction = intAndFraction.substr(decimalPos + numFormat.NumberDecimalSeparator.length); + } + + integer = integer.split(numFormat.NumberGroupSeparator).join(''); + var altNumGroupSeparator = numFormat.NumberGroupSeparator.replace(/\u00A0/g, " "); + if (numFormat.NumberGroupSeparator !== altNumGroupSeparator) { + integer = integer.split(altNumGroupSeparator).join(''); + } + + var p = sign + integer; + if (fraction !== null) { + p += '.' + fraction; + } + if (exponent !== null) { + var expSignInfo = Number._parseNumberNegativePattern(exponent, numFormat, 1); + if (expSignInfo[0] === '') { + expSignInfo[0] = '+'; + } + p += 'e' + expSignInfo[0] + expSignInfo[1]; + } + if (p.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)) { + return parseFloat(p); + } + return Number.NaN; +} +Number._parseNumberNegativePattern = function Number$_parseNumberNegativePattern(value, numFormat, numberNegativePattern) { + var neg = numFormat.NegativeSign; + var pos = numFormat.PositiveSign; + switch (numberNegativePattern) { + case 4: + neg = ' ' + neg; + pos = ' ' + pos; + case 3: + if (value.endsWith(neg)) { + return ['-', value.substr(0, value.length - neg.length)]; + } + else if (value.endsWith(pos)) { + return ['+', value.substr(0, value.length - pos.length)]; + } + break; + case 2: + neg += ' '; + pos += ' '; + case 1: + if (value.startsWith(neg)) { + return ['-', value.substr(neg.length)]; + } + else if (value.startsWith(pos)) { + return ['+', value.substr(pos.length)]; + } + break; + case 0: + if (value.startsWith('(') && value.endsWith(')')) { + return ['-', value.substr(1, value.length - 2)]; + } + break; + default: + Sys.Debug.fail(""); + } + return ['', value]; +} +Number.prototype.format = function Number$format(format) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "format", type: String} + ]); + if (e) throw e; + return this._toFormattedString(format, Sys.CultureInfo.InvariantCulture); +} +Number.prototype.localeFormat = function Number$localeFormat(format) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "format", type: String} + ]); + if (e) throw e; + return this._toFormattedString(format, Sys.CultureInfo.CurrentCulture); +} +Number.prototype._toFormattedString = function Number$_toFormattedString(format, cultureInfo) { + if (!format || (format.length === 0) || (format === 'i')) { + if (cultureInfo && (cultureInfo.name.length > 0)) { + return this.toLocaleString(); + } + else { + return this.toString(); + } + } + + var _percentPositivePattern = ["n %", "n%", "%n" ]; + var _percentNegativePattern = ["-n %", "-n%", "-%n"]; + var _numberNegativePattern = ["(n)","-n","- n","n-","n -"]; + var _currencyPositivePattern = ["$n","n$","$ n","n $"]; + var _currencyNegativePattern = ["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"]; + function zeroPad(str, count, left) { + for (var l=str.length; l < count; l++) { + str = (left ? ('0' + str) : (str + '0')); + } + return str; + } + + function expandNumber(number, precision, groupSizes, sep, decimalChar) { + Sys.Debug.assert(groupSizes.length > 0, "groupSizes must be an array of at least 1"); + var curSize = groupSizes[0]; + var curGroupIndex = 1; + var factor = Math.pow(10, precision); + var rounded = (Math.round(number * factor) / factor); + if (!isFinite(rounded)) { + rounded = number; + } + number = rounded; + + var numberString = number.toString(); + var right = ""; + var exponent; + + + var split = numberString.split(/e/i); + numberString = split[0]; + exponent = (split.length > 1 ? parseInt(split[1]) : 0); + split = numberString.split('.'); + numberString = split[0]; + right = split.length > 1 ? split[1] : ""; + + var l; + if (exponent > 0) { + right = zeroPad(right, exponent, false); + numberString += right.slice(0, exponent); + right = right.substr(exponent); + } + else if (exponent < 0) { + exponent = -exponent; + numberString = zeroPad(numberString, exponent+1, true); + right = numberString.slice(-exponent, numberString.length) + right; + numberString = numberString.slice(0, -exponent); + } + if (precision > 0) { + if (right.length > precision) { + right = right.slice(0, precision); + } + else { + right = zeroPad(right, precision, false); + } + right = decimalChar + right; + } + else { + right = ""; + } + var stringIndex = numberString.length-1; + var ret = ""; + while (stringIndex >= 0) { + if (curSize === 0 || curSize > stringIndex) { + if (ret.length > 0) + return numberString.slice(0, stringIndex + 1) + sep + ret + right; + else + return numberString.slice(0, stringIndex + 1) + right; + } + if (ret.length > 0) + ret = numberString.slice(stringIndex - curSize + 1, stringIndex+1) + sep + ret; + else + ret = numberString.slice(stringIndex - curSize + 1, stringIndex+1); + stringIndex -= curSize; + if (curGroupIndex < groupSizes.length) { + curSize = groupSizes[curGroupIndex]; + curGroupIndex++; + } + } + return numberString.slice(0, stringIndex + 1) + sep + ret + right; + } + var nf = cultureInfo.numberFormat; + var number = Math.abs(this); + if (!format) + format = "D"; + var precision = -1; + if (format.length > 1) precision = parseInt(format.slice(1), 10); + var pattern; + switch (format.charAt(0)) { + case "d": + case "D": + pattern = 'n'; + if (precision !== -1) { + number = zeroPad(""+number, precision, true); + } + if (this < 0) number = -number; + break; + case "c": + case "C": + if (this < 0) pattern = _currencyNegativePattern[nf.CurrencyNegativePattern]; + else pattern = _currencyPositivePattern[nf.CurrencyPositivePattern]; + if (precision === -1) precision = nf.CurrencyDecimalDigits; + number = expandNumber(Math.abs(this), precision, nf.CurrencyGroupSizes, nf.CurrencyGroupSeparator, nf.CurrencyDecimalSeparator); + break; + case "n": + case "N": + if (this < 0) pattern = _numberNegativePattern[nf.NumberNegativePattern]; + else pattern = 'n'; + if (precision === -1) precision = nf.NumberDecimalDigits; + number = expandNumber(Math.abs(this), precision, nf.NumberGroupSizes, nf.NumberGroupSeparator, nf.NumberDecimalSeparator); + break; + case "p": + case "P": + if (this < 0) pattern = _percentNegativePattern[nf.PercentNegativePattern]; + else pattern = _percentPositivePattern[nf.PercentPositivePattern]; + if (precision === -1) precision = nf.PercentDecimalDigits; + number = expandNumber(Math.abs(this) * 100, precision, nf.PercentGroupSizes, nf.PercentGroupSeparator, nf.PercentDecimalSeparator); + break; + default: + throw Error.format(Sys.Res.formatBadFormatSpecifier); + } + var regex = /n|\$|-|%/g; + var ret = ""; + for (;;) { + var index = regex.lastIndex; + var ar = regex.exec(pattern); + ret += pattern.slice(index, ar ? ar.index : pattern.length); + if (!ar) + break; + switch (ar[0]) { + case "n": + ret += number; + break; + case "$": + ret += nf.CurrencySymbol; + break; + case "-": + if (/[1-9]/.test(number)) { + ret += nf.NegativeSign; + } + break; + case "%": + ret += nf.PercentSymbol; + break; + default: + Sys.Debug.fail("Invalid number format pattern"); + } + } + return ret; +} + +Sys.CultureInfo = function Sys$CultureInfo(name, numberFormat, dateTimeFormat) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "name", type: String}, + {name: "numberFormat", type: Object}, + {name: "dateTimeFormat", type: Object} + ]); + if (e) throw e; + this.name = name; + this.numberFormat = numberFormat; + this.dateTimeFormat = dateTimeFormat; +} + function Sys$CultureInfo$_getDateTimeFormats() { + if (! this._dateTimeFormats) { + var dtf = this.dateTimeFormat; + this._dateTimeFormats = + [ dtf.MonthDayPattern, + dtf.YearMonthPattern, + dtf.ShortDatePattern, + dtf.ShortTimePattern, + dtf.LongDatePattern, + dtf.LongTimePattern, + dtf.FullDateTimePattern, + dtf.RFC1123Pattern, + dtf.SortableDateTimePattern, + dtf.UniversalSortableDateTimePattern ]; + } + return this._dateTimeFormats; + } + function Sys$CultureInfo$_getIndex(value, a1, a2) { + var upper = this._toUpper(value), + i = Array.indexOf(a1, upper); + if (i === -1) { + i = Array.indexOf(a2, upper); + } + return i; + } + function Sys$CultureInfo$_getMonthIndex(value) { + if (!this._upperMonths) { + this._upperMonths = this._toUpperArray(this.dateTimeFormat.MonthNames); + this._upperMonthsGenitive = this._toUpperArray(this.dateTimeFormat.MonthGenitiveNames); + } + return this._getIndex(value, this._upperMonths, this._upperMonthsGenitive); + } + function Sys$CultureInfo$_getAbbrMonthIndex(value) { + if (!this._upperAbbrMonths) { + this._upperAbbrMonths = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames); + this._upperAbbrMonthsGenitive = this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthGenitiveNames); + } + return this._getIndex(value, this._upperAbbrMonths, this._upperAbbrMonthsGenitive); + } + function Sys$CultureInfo$_getDayIndex(value) { + if (!this._upperDays) { + this._upperDays = this._toUpperArray(this.dateTimeFormat.DayNames); + } + return Array.indexOf(this._upperDays, this._toUpper(value)); + } + function Sys$CultureInfo$_getAbbrDayIndex(value) { + if (!this._upperAbbrDays) { + this._upperAbbrDays = this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames); + } + return Array.indexOf(this._upperAbbrDays, this._toUpper(value)); + } + function Sys$CultureInfo$_toUpperArray(arr) { + var result = []; + for (var i = 0, il = arr.length; i < il; i++) { + result[i] = this._toUpper(arr[i]); + } + return result; + } + function Sys$CultureInfo$_toUpper(value) { + return value.split("\u00A0").join(' ').toUpperCase(); + } +Sys.CultureInfo.prototype = { + _getDateTimeFormats: Sys$CultureInfo$_getDateTimeFormats, + _getIndex: Sys$CultureInfo$_getIndex, + _getMonthIndex: Sys$CultureInfo$_getMonthIndex, + _getAbbrMonthIndex: Sys$CultureInfo$_getAbbrMonthIndex, + _getDayIndex: Sys$CultureInfo$_getDayIndex, + _getAbbrDayIndex: Sys$CultureInfo$_getAbbrDayIndex, + _toUpperArray: Sys$CultureInfo$_toUpperArray, + _toUpper: Sys$CultureInfo$_toUpper +} +Sys.CultureInfo.registerClass('Sys.CultureInfo'); +Sys.CultureInfo._parse = function Sys$CultureInfo$_parse(value) { + var dtf = value.dateTimeFormat; + if (dtf && !dtf.eras) { + dtf.eras = value.eras; + } + return new Sys.CultureInfo(value.name, value.numberFormat, dtf); +} +Sys.CultureInfo.InvariantCulture = Sys.CultureInfo._parse({"name":"","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":true,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"\u00A4","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":true},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, dd MMMM yyyy HH:mm:ss","LongDatePattern":"dddd, dd MMMM yyyy","LongTimePattern":"HH:mm:ss","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","ShortDatePattern":"MM/dd/yyyy","ShortTimePattern":"HH:mm","SortableDateTimePattern":"yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","YearMonthPattern":"yyyy MMMM","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":true,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]},"eras":[1,"A.D.",null,0]}); +if (typeof(__cultureInfo) === "object") { + Sys.CultureInfo.CurrentCulture = Sys.CultureInfo._parse(__cultureInfo); + delete __cultureInfo; +} +else { + Sys.CultureInfo.CurrentCulture = Sys.CultureInfo._parse({"name":"en-US","numberFormat":{"CurrencyDecimalDigits":2,"CurrencyDecimalSeparator":".","IsReadOnly":false,"CurrencyGroupSizes":[3],"NumberGroupSizes":[3],"PercentGroupSizes":[3],"CurrencyGroupSeparator":",","CurrencySymbol":"$","NaNSymbol":"NaN","CurrencyNegativePattern":0,"NumberNegativePattern":1,"PercentPositivePattern":0,"PercentNegativePattern":0,"NegativeInfinitySymbol":"-Infinity","NegativeSign":"-","NumberDecimalDigits":2,"NumberDecimalSeparator":".","NumberGroupSeparator":",","CurrencyPositivePattern":0,"PositiveInfinitySymbol":"Infinity","PositiveSign":"+","PercentDecimalDigits":2,"PercentDecimalSeparator":".","PercentGroupSeparator":",","PercentSymbol":"%","PerMilleSymbol":"\u2030","NativeDigits":["0","1","2","3","4","5","6","7","8","9"],"DigitSubstitution":1},"dateTimeFormat":{"AMDesignator":"AM","Calendar":{"MinSupportedDateTime":"@-62135568000000@","MaxSupportedDateTime":"@253402300799999@","AlgorithmType":1,"CalendarType":1,"Eras":[1],"TwoDigitYearMax":2029,"IsReadOnly":false},"DateSeparator":"/","FirstDayOfWeek":0,"CalendarWeekRule":0,"FullDateTimePattern":"dddd, MMMM dd, yyyy h:mm:ss tt","LongDatePattern":"dddd, MMMM dd, yyyy","LongTimePattern":"h:mm:ss tt","MonthDayPattern":"MMMM dd","PMDesignator":"PM","RFC1123Pattern":"ddd, dd MMM yyyy HH\':\'mm\':\'ss \'GMT\'","ShortDatePattern":"M/d/yyyy","ShortTimePattern":"h:mm tt","SortableDateTimePattern":"yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","TimeSeparator":":","UniversalSortableDateTimePattern":"yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","YearMonthPattern":"MMMM, yyyy","AbbreviatedDayNames":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"ShortestDayNames":["Su","Mo","Tu","We","Th","Fr","Sa"],"DayNames":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"AbbreviatedMonthNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthNames":["January","February","March","April","May","June","July","August","September","October","November","December",""],"IsReadOnly":false,"NativeCalendarName":"Gregorian Calendar","AbbreviatedMonthGenitiveNames":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],"MonthGenitiveNames":["January","February","March","April","May","June","July","August","September","October","November","December",""]},"eras":[1,"A.D.",null,0]}); +} +Type.registerNamespace('Sys.Serialization'); +Sys.Serialization.JavaScriptSerializer = function Sys$Serialization$JavaScriptSerializer() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); +} +Sys.Serialization.JavaScriptSerializer.registerClass('Sys.Serialization.JavaScriptSerializer'); +Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs = []; +Sys.Serialization.JavaScriptSerializer._charsToEscape = []; +Sys.Serialization.JavaScriptSerializer._dateRegEx = new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"', 'g'); +Sys.Serialization.JavaScriptSerializer._escapeChars = {}; +Sys.Serialization.JavaScriptSerializer._escapeRegEx = new RegExp('["\\\\\\x00-\\x1F]', 'i'); +Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal = new RegExp('["\\\\\\x00-\\x1F]', 'g'); +Sys.Serialization.JavaScriptSerializer._jsonRegEx = new RegExp('[^,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]', 'g'); +Sys.Serialization.JavaScriptSerializer._jsonStringRegEx = new RegExp('"(\\\\.|[^"\\\\])*"', 'g'); +Sys.Serialization.JavaScriptSerializer._serverTypeFieldName = '__type'; +Sys.Serialization.JavaScriptSerializer._init = function Sys$Serialization$JavaScriptSerializer$_init() { + var replaceChars = ['\\u0000','\\u0001','\\u0002','\\u0003','\\u0004','\\u0005','\\u0006','\\u0007', + '\\b','\\t','\\n','\\u000b','\\f','\\r','\\u000e','\\u000f','\\u0010','\\u0011', + '\\u0012','\\u0013','\\u0014','\\u0015','\\u0016','\\u0017','\\u0018','\\u0019', + '\\u001a','\\u001b','\\u001c','\\u001d','\\u001e','\\u001f']; + Sys.Serialization.JavaScriptSerializer._charsToEscape[0] = '\\'; + Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs['\\'] = new RegExp('\\\\', 'g'); + Sys.Serialization.JavaScriptSerializer._escapeChars['\\'] = '\\\\'; + Sys.Serialization.JavaScriptSerializer._charsToEscape[1] = '"'; + Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs['"'] = new RegExp('"', 'g'); + Sys.Serialization.JavaScriptSerializer._escapeChars['"'] = '\\"'; + for (var i = 0; i < 32; i++) { + var c = String.fromCharCode(i); + Sys.Serialization.JavaScriptSerializer._charsToEscape[i+2] = c; + Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[c] = new RegExp(c, 'g'); + Sys.Serialization.JavaScriptSerializer._escapeChars[c] = replaceChars[i]; + } +} +Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder = function Sys$Serialization$JavaScriptSerializer$_serializeBooleanWithBuilder(object, stringBuilder) { + stringBuilder.append(object.toString()); +} +Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder = function Sys$Serialization$JavaScriptSerializer$_serializeNumberWithBuilder(object, stringBuilder) { + if (isFinite(object)) { + stringBuilder.append(String(object)); + } + else { + throw Error.invalidOperation(Sys.Res.cannotSerializeNonFiniteNumbers); + } +} +Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder = function Sys$Serialization$JavaScriptSerializer$_serializeStringWithBuilder(string, stringBuilder) { + stringBuilder.append('"'); + if (Sys.Serialization.JavaScriptSerializer._escapeRegEx.test(string)) { + if (Sys.Serialization.JavaScriptSerializer._charsToEscape.length === 0) { + Sys.Serialization.JavaScriptSerializer._init(); + } + if (string.length < 128) { + string = string.replace(Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal, + function(x) { return Sys.Serialization.JavaScriptSerializer._escapeChars[x]; }); + } + else { + for (var i = 0; i < 34; i++) { + var c = Sys.Serialization.JavaScriptSerializer._charsToEscape[i]; + if (string.indexOf(c) !== -1) { + if (Sys.Browser.agent === Sys.Browser.Opera || Sys.Browser.agent === Sys.Browser.FireFox) { + string = string.split(c).join(Sys.Serialization.JavaScriptSerializer._escapeChars[c]); + } + else { + string = string.replace(Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[c], + Sys.Serialization.JavaScriptSerializer._escapeChars[c]); + } + } + } + } + } + stringBuilder.append(string); + stringBuilder.append('"'); +} +Sys.Serialization.JavaScriptSerializer._serializeWithBuilder = function Sys$Serialization$JavaScriptSerializer$_serializeWithBuilder(object, stringBuilder, sort, prevObjects) { + var i; + switch (typeof object) { + case 'object': + if (object) { + if (prevObjects){ + for( var j = 0; j < prevObjects.length; j++) { + if (prevObjects[j] === object) { + throw Error.invalidOperation(Sys.Res.cannotSerializeObjectWithCycle); + } + } + } + else { + prevObjects = new Array(); + } + try { + Array.add(prevObjects, object); + + if (Number.isInstanceOfType(object)){ + Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(object, stringBuilder); + } + else if (Boolean.isInstanceOfType(object)){ + Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(object, stringBuilder); + } + else if (String.isInstanceOfType(object)){ + Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(object, stringBuilder); + } + + else if (Array.isInstanceOfType(object)) { + stringBuilder.append('['); + + for (i = 0; i < object.length; ++i) { + if (i > 0) { + stringBuilder.append(','); + } + Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(object[i], stringBuilder,false,prevObjects); + } + stringBuilder.append(']'); + } + else { + if (Date.isInstanceOfType(object)) { + stringBuilder.append('"\\/Date('); + stringBuilder.append(object.getTime()); + stringBuilder.append(')\\/"'); + break; + } + var properties = []; + var propertyCount = 0; + for (var name in object) { + if (name.startsWith('$')) { + continue; + } + if (name === Sys.Serialization.JavaScriptSerializer._serverTypeFieldName && propertyCount !== 0){ + properties[propertyCount++] = properties[0]; + properties[0] = name; + } + else{ + properties[propertyCount++] = name; + } + } + if (sort) properties.sort(); + stringBuilder.append('{'); + var needComma = false; + + for (i=0; i + /// + /// + var e = Function._validateParams(arguments, [ + {name: "object", mayBeNull: true} + ]); + if (e) throw e; + var stringBuilder = new Sys.StringBuilder(); + Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(object, stringBuilder, false); + return stringBuilder.toString(); +} +Sys.Serialization.JavaScriptSerializer.deserialize = function Sys$Serialization$JavaScriptSerializer$deserialize(data, secure) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "data", type: String}, + {name: "secure", type: Boolean, optional: true} + ]); + if (e) throw e; + + if (data.length === 0) throw Error.argument('data', Sys.Res.cannotDeserializeEmptyString); + try { + var exp = data.replace(Sys.Serialization.JavaScriptSerializer._dateRegEx, "$1new Date($2)"); + + if (secure && Sys.Serialization.JavaScriptSerializer._jsonRegEx.test( + exp.replace(Sys.Serialization.JavaScriptSerializer._jsonStringRegEx, ''))) throw null; + return eval('(' + exp + ')'); + } + catch (e) { + throw Error.argument('data', Sys.Res.cannotDeserializeInvalidJson); + } +} +Type.registerNamespace('Sys.UI'); + +Sys.EventHandlerList = function Sys$EventHandlerList() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._list = {}; +} + function Sys$EventHandlerList$_addHandler(id, handler) { + Array.add(this._getEvent(id, true), handler); + } + function Sys$EventHandlerList$addHandler(id, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "id", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + this._addHandler(id, handler); + } + function Sys$EventHandlerList$_removeHandler(id, handler) { + var evt = this._getEvent(id); + if (!evt) return; + Array.remove(evt, handler); + } + function Sys$EventHandlerList$removeHandler(id, handler) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "id", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + this._removeHandler(id, handler); + } + function Sys$EventHandlerList$getHandler(id) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "id", type: String} + ]); + if (e) throw e; + var evt = this._getEvent(id); + if (!evt || (evt.length === 0)) return null; + evt = Array.clone(evt); + return function(source, args) { + for (var i = 0, l = evt.length; i < l; i++) { + evt[i](source, args); + } + }; + } + function Sys$EventHandlerList$_getEvent(id, create) { + if (!this._list[id]) { + if (!create) return null; + this._list[id] = []; + } + return this._list[id]; + } +Sys.EventHandlerList.prototype = { + _addHandler: Sys$EventHandlerList$_addHandler, + addHandler: Sys$EventHandlerList$addHandler, + _removeHandler: Sys$EventHandlerList$_removeHandler, + removeHandler: Sys$EventHandlerList$removeHandler, + getHandler: Sys$EventHandlerList$getHandler, + _getEvent: Sys$EventHandlerList$_getEvent +} +Sys.EventHandlerList.registerClass('Sys.EventHandlerList'); +Sys.CommandEventArgs = function Sys$CommandEventArgs(commandName, commandArgument, commandSource) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "commandName", type: String}, + {name: "commandArgument", mayBeNull: true}, + {name: "commandSource", mayBeNull: true} + ]); + if (e) throw e; + Sys.CommandEventArgs.initializeBase(this); + this._commandName = commandName; + this._commandArgument = commandArgument; + this._commandSource = commandSource; +} + function Sys$CommandEventArgs$get_commandName() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._commandName; + } + function Sys$CommandEventArgs$get_commandArgument() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._commandArgument; + } + function Sys$CommandEventArgs$get_commandSource() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._commandSource; + } +Sys.CommandEventArgs.prototype = { + _commandName: null, + _commandArgument: null, + _commandSource: null, + get_commandName: Sys$CommandEventArgs$get_commandName, + get_commandArgument: Sys$CommandEventArgs$get_commandArgument, + get_commandSource: Sys$CommandEventArgs$get_commandSource +} +Sys.CommandEventArgs.registerClass("Sys.CommandEventArgs", Sys.CancelEventArgs); + +Sys.INotifyPropertyChange = function Sys$INotifyPropertyChange() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} + function Sys$INotifyPropertyChange$add_propertyChanged(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + throw Error.notImplemented(); + } + function Sys$INotifyPropertyChange$remove_propertyChanged(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + throw Error.notImplemented(); + } +Sys.INotifyPropertyChange.prototype = { + add_propertyChanged: Sys$INotifyPropertyChange$add_propertyChanged, + remove_propertyChanged: Sys$INotifyPropertyChange$remove_propertyChanged +} +Sys.INotifyPropertyChange.registerInterface('Sys.INotifyPropertyChange'); + +Sys.PropertyChangedEventArgs = function Sys$PropertyChangedEventArgs(propertyName) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "propertyName", type: String} + ]); + if (e) throw e; + Sys.PropertyChangedEventArgs.initializeBase(this); + this._propertyName = propertyName; +} + + function Sys$PropertyChangedEventArgs$get_propertyName() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._propertyName; + } +Sys.PropertyChangedEventArgs.prototype = { + get_propertyName: Sys$PropertyChangedEventArgs$get_propertyName +} +Sys.PropertyChangedEventArgs.registerClass('Sys.PropertyChangedEventArgs', Sys.EventArgs); + +Sys.INotifyDisposing = function Sys$INotifyDisposing() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} + function Sys$INotifyDisposing$add_disposing(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + throw Error.notImplemented(); + } + function Sys$INotifyDisposing$remove_disposing(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + throw Error.notImplemented(); + } +Sys.INotifyDisposing.prototype = { + add_disposing: Sys$INotifyDisposing$add_disposing, + remove_disposing: Sys$INotifyDisposing$remove_disposing +} +Sys.INotifyDisposing.registerInterface("Sys.INotifyDisposing"); + +Sys.Component = function Sys$Component() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (Sys.Application) Sys.Application.registerDisposableObject(this); +} + function Sys$Component$get_events() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._events) { + this._events = new Sys.EventHandlerList(); + } + return this._events; + } + function Sys$Component$get_id() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._id; + } + function Sys$Component$set_id(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + if (this._idSet) throw Error.invalidOperation(Sys.Res.componentCantSetIdTwice); + this._idSet = true; + var oldId = this.get_id(); + if (oldId && Sys.Application.findComponent(oldId)) throw Error.invalidOperation(Sys.Res.componentCantSetIdAfterAddedToApp); + this._id = value; + } + function Sys$Component$get_isInitialized() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._initialized; + } + function Sys$Component$get_isUpdating() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._updating; + } + function Sys$Component$add_disposing(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().addHandler("disposing", handler); + } + function Sys$Component$remove_disposing(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().removeHandler("disposing", handler); + } + function Sys$Component$add_propertyChanged(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().addHandler("propertyChanged", handler); + } + function Sys$Component$remove_propertyChanged(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().removeHandler("propertyChanged", handler); + } + function Sys$Component$beginUpdate() { + this._updating = true; + } + function Sys$Component$dispose() { + if (this._events) { + var handler = this._events.getHandler("disposing"); + if (handler) { + handler(this, Sys.EventArgs.Empty); + } + } + delete this._events; + Sys.Application.unregisterDisposableObject(this); + Sys.Application.removeComponent(this); + } + function Sys$Component$endUpdate() { + this._updating = false; + if (!this._initialized) this.initialize(); + this.updated(); + } + function Sys$Component$initialize() { + this._initialized = true; + } + function Sys$Component$raisePropertyChanged(propertyName) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "propertyName", type: String} + ]); + if (e) throw e; + if (!this._events) return; + var handler = this._events.getHandler("propertyChanged"); + if (handler) { + handler(this, new Sys.PropertyChangedEventArgs(propertyName)); + } + } + function Sys$Component$updated() { + } +Sys.Component.prototype = { + _id: null, + _idSet: false, + _initialized: false, + _updating: false, + get_events: Sys$Component$get_events, + get_id: Sys$Component$get_id, + set_id: Sys$Component$set_id, + get_isInitialized: Sys$Component$get_isInitialized, + get_isUpdating: Sys$Component$get_isUpdating, + add_disposing: Sys$Component$add_disposing, + remove_disposing: Sys$Component$remove_disposing, + add_propertyChanged: Sys$Component$add_propertyChanged, + remove_propertyChanged: Sys$Component$remove_propertyChanged, + beginUpdate: Sys$Component$beginUpdate, + dispose: Sys$Component$dispose, + endUpdate: Sys$Component$endUpdate, + initialize: Sys$Component$initialize, + raisePropertyChanged: Sys$Component$raisePropertyChanged, + updated: Sys$Component$updated +} +Sys.Component.registerClass('Sys.Component', null, Sys.IDisposable, Sys.INotifyPropertyChange, Sys.INotifyDisposing); +function Sys$Component$_setProperties(target, properties) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "target"}, + {name: "properties"} + ]); + if (e) throw e; + var current; + var targetType = Object.getType(target); + var isObject = (targetType === Object) || (targetType === Sys.UI.DomElement); + var isComponent = Sys.Component.isInstanceOfType(target) && !target.get_isUpdating(); + if (isComponent) target.beginUpdate(); + for (var name in properties) { + var val = properties[name]; + var getter = isObject ? null : target["get_" + name]; + if (isObject || typeof(getter) !== 'function') { + var targetVal = target[name]; + if (!isObject && typeof(targetVal) === 'undefined') throw Error.invalidOperation(String.format(Sys.Res.propertyUndefined, name)); + if (!val || (typeof(val) !== 'object') || (isObject && !targetVal)) { + target[name] = val; + } + else { + Sys$Component$_setProperties(targetVal, val); + } + } + else { + var setter = target["set_" + name]; + if (typeof(setter) === 'function') { + setter.apply(target, [val]); + } + else if (val instanceof Array) { + current = getter.apply(target); + if (!(current instanceof Array)) throw new Error.invalidOperation(String.format(Sys.Res.propertyNotAnArray, name)); + for (var i = 0, j = current.length, l= val.length; i < l; i++, j++) { + current[j] = val[i]; + } + } + else if ((typeof(val) === 'object') && (Object.getType(val) === Object)) { + current = getter.apply(target); + if ((typeof(current) === 'undefined') || (current === null)) throw new Error.invalidOperation(String.format(Sys.Res.propertyNullOrUndefined, name)); + Sys$Component$_setProperties(current, val); + } + else { + throw new Error.invalidOperation(String.format(Sys.Res.propertyNotWritable, name)); + } + } + } + if (isComponent) target.endUpdate(); +} +function Sys$Component$_setReferences(component, references) { + for (var name in references) { + var setter = component["set_" + name]; + var reference = $find(references[name]); + if (typeof(setter) !== 'function') throw new Error.invalidOperation(String.format(Sys.Res.propertyNotWritable, name)); + if (!reference) throw Error.invalidOperation(String.format(Sys.Res.referenceNotFound, references[name])); + setter.apply(component, [reference]); + } +} +var $create = Sys.Component.create = function Sys$Component$create(type, properties, events, references, element) { + /// + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "type", type: Type}, + {name: "properties", mayBeNull: true, optional: true}, + {name: "events", mayBeNull: true, optional: true}, + {name: "references", mayBeNull: true, optional: true}, + {name: "element", mayBeNull: true, domElement: true, optional: true} + ]); + if (e) throw e; + if (!type.inheritsFrom(Sys.Component)) { + throw Error.argument('type', String.format(Sys.Res.createNotComponent, type.getName())); + } + if (type.inheritsFrom(Sys.UI.Behavior) || type.inheritsFrom(Sys.UI.Control)) { + if (!element) throw Error.argument('element', Sys.Res.createNoDom); + } + else if (element) throw Error.argument('element', Sys.Res.createComponentOnDom); + var component = (element ? new type(element): new type()); + var app = Sys.Application; + var creatingComponents = app.get_isCreatingComponents(); + component.beginUpdate(); + if (properties) { + Sys$Component$_setProperties(component, properties); + } + if (events) { + for (var name in events) { + if (!(component["add_" + name] instanceof Function)) throw new Error.invalidOperation(String.format(Sys.Res.undefinedEvent, name)); + if (!(events[name] instanceof Function)) throw new Error.invalidOperation(Sys.Res.eventHandlerNotFunction); + component["add_" + name](events[name]); + } + } + if (component.get_id()) { + app.addComponent(component); + } + if (creatingComponents) { + app._createdComponents[app._createdComponents.length] = component; + if (references) { + app._addComponentToSecondPass(component, references); + } + else { + component.endUpdate(); + } + } + else { + if (references) { + Sys$Component$_setReferences(component, references); + } + component.endUpdate(); + } + return component; +} + +Sys.UI.MouseButton = function Sys$UI$MouseButton() { + /// + /// + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} +Sys.UI.MouseButton.prototype = { + leftButton: 0, + middleButton: 1, + rightButton: 2 +} +Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton"); + +Sys.UI.Key = function Sys$UI$Key() { + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} +Sys.UI.Key.prototype = { + backspace: 8, + tab: 9, + enter: 13, + esc: 27, + space: 32, + pageUp: 33, + pageDown: 34, + end: 35, + home: 36, + left: 37, + up: 38, + right: 39, + down: 40, + del: 127 +} +Sys.UI.Key.registerEnum("Sys.UI.Key"); + +Sys.UI.Point = function Sys$UI$Point(x, y) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "x", type: Number, integer: true}, + {name: "y", type: Number, integer: true} + ]); + if (e) throw e; + this.x = x; + this.y = y; +} +Sys.UI.Point.registerClass('Sys.UI.Point'); + +Sys.UI.Bounds = function Sys$UI$Bounds(x, y, width, height) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "x", type: Number, integer: true}, + {name: "y", type: Number, integer: true}, + {name: "width", type: Number, integer: true}, + {name: "height", type: Number, integer: true} + ]); + if (e) throw e; + this.x = x; + this.y = y; + this.height = height; + this.width = width; +} +Sys.UI.Bounds.registerClass('Sys.UI.Bounds'); + +Sys.UI.DomEvent = function Sys$UI$DomEvent(eventObject) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "eventObject"} + ]); + if (e) throw e; + var ev = eventObject; + var etype = this.type = ev.type.toLowerCase(); + this.rawEvent = ev; + this.altKey = ev.altKey; + if (typeof(ev.button) !== 'undefined') { + this.button = (typeof(ev.which) !== 'undefined') ? ev.button : + (ev.button === 4) ? Sys.UI.MouseButton.middleButton : + (ev.button === 2) ? Sys.UI.MouseButton.rightButton : + Sys.UI.MouseButton.leftButton; + } + if (etype === 'keypress') { + this.charCode = ev.charCode || ev.keyCode; + } + else if (ev.keyCode && (ev.keyCode === 46)) { + this.keyCode = 127; + } + else { + this.keyCode = ev.keyCode; + } + this.clientX = ev.clientX; + this.clientY = ev.clientY; + this.ctrlKey = ev.ctrlKey; + this.target = ev.target ? ev.target : ev.srcElement; + if (!etype.startsWith('key')) { + if ((typeof(ev.offsetX) !== 'undefined') && (typeof(ev.offsetY) !== 'undefined')) { + this.offsetX = ev.offsetX; + this.offsetY = ev.offsetY; + } + else if (this.target && (this.target.nodeType !== 3) && (typeof(ev.clientX) === 'number')) { + var loc = Sys.UI.DomElement.getLocation(this.target); + var w = Sys.UI.DomElement._getWindow(this.target); + this.offsetX = (w.pageXOffset || 0) + ev.clientX - loc.x; + this.offsetY = (w.pageYOffset || 0) + ev.clientY - loc.y; + } + } + this.screenX = ev.screenX; + this.screenY = ev.screenY; + this.shiftKey = ev.shiftKey; +} + function Sys$UI$DomEvent$preventDefault() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this.rawEvent.preventDefault) { + this.rawEvent.preventDefault(); + } + else if (window.event) { + this.rawEvent.returnValue = false; + } + } + function Sys$UI$DomEvent$stopPropagation() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this.rawEvent.stopPropagation) { + this.rawEvent.stopPropagation(); + } + else if (window.event) { + this.rawEvent.cancelBubble = true; + } + } +Sys.UI.DomEvent.prototype = { + preventDefault: Sys$UI$DomEvent$preventDefault, + stopPropagation: Sys$UI$DomEvent$stopPropagation +} +Sys.UI.DomEvent.registerClass('Sys.UI.DomEvent'); +var $addHandler = Sys.UI.DomEvent.addHandler = function Sys$UI$DomEvent$addHandler(element, eventName, handler, autoRemove) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element"}, + {name: "eventName", type: String}, + {name: "handler", type: Function}, + {name: "autoRemove", type: Boolean, optional: true} + ]); + if (e) throw e; + Sys.UI.DomEvent._ensureDomNode(element); + if (eventName === "error") throw Error.invalidOperation(Sys.Res.addHandlerCantBeUsedForError); + if (!element._events) { + element._events = {}; + } + var eventCache = element._events[eventName]; + if (!eventCache) { + element._events[eventName] = eventCache = []; + } + var browserHandler; + if (element.addEventListener) { + browserHandler = function(e) { + return handler.call(element, new Sys.UI.DomEvent(e)); + } + element.addEventListener(eventName, browserHandler, false); + } + else if (element.attachEvent) { + browserHandler = function() { + var e = {}; + try {e = Sys.UI.DomElement._getWindow(element).event} catch(ex) {} + return handler.call(element, new Sys.UI.DomEvent(e)); + } + element.attachEvent('on' + eventName, browserHandler); + } + eventCache[eventCache.length] = {handler: handler, browserHandler: browserHandler, autoRemove: autoRemove }; + if (autoRemove) { + var d = element.dispose; + if (d !== Sys.UI.DomEvent._disposeHandlers) { + element.dispose = Sys.UI.DomEvent._disposeHandlers; + if (typeof(d) !== "undefined") { + element._chainDispose = d; + } + } + } +} +var $addHandlers = Sys.UI.DomEvent.addHandlers = function Sys$UI$DomEvent$addHandlers(element, events, handlerOwner, autoRemove) { + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element"}, + {name: "events", type: Object}, + {name: "handlerOwner", optional: true}, + {name: "autoRemove", type: Boolean, optional: true} + ]); + if (e) throw e; + Sys.UI.DomEvent._ensureDomNode(element); + for (var name in events) { + var handler = events[name]; + if (typeof(handler) !== 'function') throw Error.invalidOperation(Sys.Res.cantAddNonFunctionhandler); + if (handlerOwner) { + handler = Function.createDelegate(handlerOwner, handler); + } + $addHandler(element, name, handler, autoRemove || false); + } +} +var $clearHandlers = Sys.UI.DomEvent.clearHandlers = function Sys$UI$DomEvent$clearHandlers(element) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element"} + ]); + if (e) throw e; + Sys.UI.DomEvent._ensureDomNode(element); + Sys.UI.DomEvent._clearHandlers(element, false); +} +Sys.UI.DomEvent._clearHandlers = function Sys$UI$DomEvent$_clearHandlers(element, autoRemoving) { + if (element._events) { + var cache = element._events; + for (var name in cache) { + var handlers = cache[name]; + for (var i = handlers.length - 1; i >= 0; i--) { + var entry = handlers[i]; + if (!autoRemoving || entry.autoRemove) { + $removeHandler(element, name, entry.handler); + } + } + } + element._events = null; + } +} +Sys.UI.DomEvent._disposeHandlers = function Sys$UI$DomEvent$_disposeHandlers() { + Sys.UI.DomEvent._clearHandlers(this, true); + var d = this._chainDispose, type = typeof(d); + if (type !== "undefined") { + this.dispose = d; + this._chainDispose = null; + if (type === "function") { + this.dispose(); + } + } +} +var $removeHandler = Sys.UI.DomEvent.removeHandler = function Sys$UI$DomEvent$removeHandler(element, eventName, handler) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element"}, + {name: "eventName", type: String}, + {name: "handler", type: Function} + ]); + if (e) throw e; + Sys.UI.DomEvent._removeHandler(element, eventName, handler); +} +Sys.UI.DomEvent._removeHandler = function Sys$UI$DomEvent$_removeHandler(element, eventName, handler) { + Sys.UI.DomEvent._ensureDomNode(element); + var browserHandler = null; + if ((typeof(element._events) !== 'object') || !element._events) throw Error.invalidOperation(Sys.Res.eventHandlerInvalid); + var cache = element._events[eventName]; + if (!(cache instanceof Array)) throw Error.invalidOperation(Sys.Res.eventHandlerInvalid); + for (var i = 0, l = cache.length; i < l; i++) { + if (cache[i].handler === handler) { + browserHandler = cache[i].browserHandler; + break; + } + } + if (typeof(browserHandler) !== 'function') throw Error.invalidOperation(Sys.Res.eventHandlerInvalid); + if (element.removeEventListener) { + element.removeEventListener(eventName, browserHandler, false); + } + else if (element.detachEvent) { + element.detachEvent('on' + eventName, browserHandler); + } + cache.splice(i, 1); +} +Sys.UI.DomEvent._ensureDomNode = function Sys$UI$DomEvent$_ensureDomNode(element) { + if (element.tagName && (element.tagName.toUpperCase() === "SCRIPT")) return; + + var doc = element.ownerDocument || element.document || element; + if ((typeof(element.document) !== 'object') && (element != doc) && (typeof(element.nodeType) !== 'number')) { + throw Error.argument("element", Sys.Res.argumentDomNode); + } +} + +Sys.UI.DomElement = function Sys$UI$DomElement() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} +Sys.UI.DomElement.registerClass('Sys.UI.DomElement'); +Sys.UI.DomElement.addCssClass = function Sys$UI$DomElement$addCssClass(element, className) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "className", type: String} + ]); + if (e) throw e; + if (!Sys.UI.DomElement.containsCssClass(element, className)) { + if (element.className === '') { + element.className = className; + } + else { + element.className += ' ' + className; + } + } +} +Sys.UI.DomElement.containsCssClass = function Sys$UI$DomElement$containsCssClass(element, className) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "className", type: String} + ]); + if (e) throw e; + return Array.contains(element.className.split(' '), className); +} +Sys.UI.DomElement.getBounds = function Sys$UI$DomElement$getBounds(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + var offset = Sys.UI.DomElement.getLocation(element); + return new Sys.UI.Bounds(offset.x, offset.y, element.offsetWidth || 0, element.offsetHeight || 0); +} +var $get = Sys.UI.DomElement.getElementById = function Sys$UI$DomElement$getElementById(id, element) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "id", type: String}, + {name: "element", mayBeNull: true, domElement: true, optional: true} + ]); + if (e) throw e; + if (!element) return document.getElementById(id); + if (element.getElementById) return element.getElementById(id); + var nodeQueue = []; + var childNodes = element.childNodes; + for (var i = 0; i < childNodes.length; i++) { + var node = childNodes[i]; + if (node.nodeType == 1) { + nodeQueue[nodeQueue.length] = node; + } + } + while (nodeQueue.length) { + node = nodeQueue.shift(); + if (node.id == id) { + return node; + } + childNodes = node.childNodes; + for (i = 0; i < childNodes.length; i++) { + node = childNodes[i]; + if (node.nodeType == 1) { + nodeQueue[nodeQueue.length] = node; + } + } + } + return null; +} +if (document.documentElement.getBoundingClientRect) { + Sys.UI.DomElement.getLocation = function Sys$UI$DomElement$getLocation(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + if (element.self || element.nodeType === 9) return new Sys.UI.Point(0,0); + var clientRect = element.getBoundingClientRect(); + if (!clientRect) { + return new Sys.UI.Point(0,0); + } + var documentElement = element.ownerDocument.documentElement, + offsetX = Math.floor(clientRect.left + 0.5) + documentElement.scrollLeft, + offsetY = Math.floor(clientRect.top + 0.5) + documentElement.scrollTop; + if (Sys.Browser.agent === Sys.Browser.InternetExplorer) { + try { + var f = element.ownerDocument.parentWindow.frameElement || null; + if (f) { + var offset = (f.frameBorder === "0" || f.frameBorder === "no") ? 2 : 0; + offsetX += offset; + offsetY += offset; + } + } + catch(ex) { + } + if (Sys.Browser.version <= 7) { + + var multiplier, before, rect, d = document.createElement("div"); + d.style.cssText = "position:absolute !important;left:0px !important;right:0px !important;height:0px !important;width:1px !important;display:hidden !important"; + try { + before = document.body.childNodes[0]; + document.body.insertBefore(d, before); + rect = d.getBoundingClientRect(); + document.body.removeChild(d); + multiplier = (rect.right - rect.left); + } + catch (e) { + } + if (multiplier && (multiplier !== 1)) { + offsetX = Math.floor(offsetX / multiplier); + offsetY = Math.floor(offsetY / multiplier); + } + } + if ((document.documentMode || 0) < 8) { + offsetX -= 2; + offsetY -= 2; + } + } + return new Sys.UI.Point(offsetX, offsetY); + } +} +else if (Sys.Browser.agent === Sys.Browser.Safari) { + Sys.UI.DomElement.getLocation = function Sys$UI$DomElement$getLocation(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + if ((element.window && (element.window === element)) || element.nodeType === 9) return new Sys.UI.Point(0,0); + var offsetX = 0, offsetY = 0, + parent, + previous = null, + previousStyle = null, + currentStyle; + for (parent = element; parent; previous = parent, previousStyle = currentStyle, parent = parent.offsetParent) { + currentStyle = Sys.UI.DomElement._getCurrentStyle(parent); + var tagName = parent.tagName ? parent.tagName.toUpperCase() : null; + if ((parent.offsetLeft || parent.offsetTop) && + ((tagName !== "BODY") || (!previousStyle || previousStyle.position !== "absolute"))) { + offsetX += parent.offsetLeft; + offsetY += parent.offsetTop; + } + if (previous && Sys.Browser.version >= 3) { + offsetX += parseInt(currentStyle.borderLeftWidth); + offsetY += parseInt(currentStyle.borderTopWidth); + } + } + currentStyle = Sys.UI.DomElement._getCurrentStyle(element); + var elementPosition = currentStyle ? currentStyle.position : null; + if (!elementPosition || (elementPosition !== "absolute")) { + for (parent = element.parentNode; parent; parent = parent.parentNode) { + tagName = parent.tagName ? parent.tagName.toUpperCase() : null; + if ((tagName !== "BODY") && (tagName !== "HTML") && (parent.scrollLeft || parent.scrollTop)) { + offsetX -= (parent.scrollLeft || 0); + offsetY -= (parent.scrollTop || 0); + } + currentStyle = Sys.UI.DomElement._getCurrentStyle(parent); + var parentPosition = currentStyle ? currentStyle.position : null; + if (parentPosition && (parentPosition === "absolute")) break; + } + } + return new Sys.UI.Point(offsetX, offsetY); + } +} +else { + Sys.UI.DomElement.getLocation = function Sys$UI$DomElement$getLocation(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + if ((element.window && (element.window === element)) || element.nodeType === 9) return new Sys.UI.Point(0,0); + var offsetX = 0, offsetY = 0, + parent, + previous = null, + previousStyle = null, + currentStyle = null; + for (parent = element; parent; previous = parent, previousStyle = currentStyle, parent = parent.offsetParent) { + var tagName = parent.tagName ? parent.tagName.toUpperCase() : null; + currentStyle = Sys.UI.DomElement._getCurrentStyle(parent); + if ((parent.offsetLeft || parent.offsetTop) && + !((tagName === "BODY") && + (!previousStyle || previousStyle.position !== "absolute"))) { + offsetX += parent.offsetLeft; + offsetY += parent.offsetTop; + } + if (previous !== null && currentStyle) { + if ((tagName !== "TABLE") && (tagName !== "TD") && (tagName !== "HTML")) { + offsetX += parseInt(currentStyle.borderLeftWidth) || 0; + offsetY += parseInt(currentStyle.borderTopWidth) || 0; + } + if (tagName === "TABLE" && + (currentStyle.position === "relative" || currentStyle.position === "absolute")) { + offsetX += parseInt(currentStyle.marginLeft) || 0; + offsetY += parseInt(currentStyle.marginTop) || 0; + } + } + } + currentStyle = Sys.UI.DomElement._getCurrentStyle(element); + var elementPosition = currentStyle ? currentStyle.position : null; + if (!elementPosition || (elementPosition !== "absolute")) { + for (parent = element.parentNode; parent; parent = parent.parentNode) { + tagName = parent.tagName ? parent.tagName.toUpperCase() : null; + if ((tagName !== "BODY") && (tagName !== "HTML") && (parent.scrollLeft || parent.scrollTop)) { + offsetX -= (parent.scrollLeft || 0); + offsetY -= (parent.scrollTop || 0); + currentStyle = Sys.UI.DomElement._getCurrentStyle(parent); + if (currentStyle) { + offsetX += parseInt(currentStyle.borderLeftWidth) || 0; + offsetY += parseInt(currentStyle.borderTopWidth) || 0; + } + } + } + } + return new Sys.UI.Point(offsetX, offsetY); + } +} +Sys.UI.DomElement.isDomElement = function Sys$UI$DomElement$isDomElement(obj) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "obj"} + ]); + if (e) throw e; + return Sys._isDomElement(obj); +} +Sys.UI.DomElement.removeCssClass = function Sys$UI$DomElement$removeCssClass(element, className) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "className", type: String} + ]); + if (e) throw e; + var currentClassName = ' ' + element.className + ' '; + var index = currentClassName.indexOf(' ' + className + ' '); + if (index >= 0) { + element.className = (currentClassName.substr(0, index) + ' ' + + currentClassName.substring(index + className.length + 1, currentClassName.length)).trim(); + } +} +Sys.UI.DomElement.resolveElement = function Sys$UI$DomElement$resolveElement(elementOrElementId, containerElement) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "elementOrElementId", mayBeNull: true}, + {name: "containerElement", mayBeNull: true, domElement: true, optional: true} + ]); + if (e) throw e; + var el = elementOrElementId; + if (!el) return null; + if (typeof(el) === "string") { + el = Sys.UI.DomElement.getElementById(el, containerElement); + if (!el) { + throw Error.argument("elementOrElementId", String.format(Sys.Res.elementNotFound, elementOrElementId)); + } + } + else if(!Sys.UI.DomElement.isDomElement(el)) { + throw Error.argument("elementOrElementId", Sys.Res.expectedElementOrId); + } + return el; +} +Sys.UI.DomElement.raiseBubbleEvent = function Sys$UI$DomElement$raiseBubbleEvent(source, args) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "source", domElement: true}, + {name: "args", type: Sys.EventArgs} + ]); + if (e) throw e; + var target = source; + while (target) { + var control = target.control; + if (control && control.onBubbleEvent && control.raiseBubbleEvent) { + Sys.UI.DomElement._raiseBubbleEventFromControl(control, source, args); + return; + } + target = target.parentNode; + } +} +Sys.UI.DomElement._raiseBubbleEventFromControl = function Sys$UI$DomElement$_raiseBubbleEventFromControl(control, source, args) { + if (!control.onBubbleEvent(source, args)) { + control._raiseBubbleEvent(source, args); + } +} +Sys.UI.DomElement.setLocation = function Sys$UI$DomElement$setLocation(element, x, y) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "x", type: Number, integer: true}, + {name: "y", type: Number, integer: true} + ]); + if (e) throw e; + var style = element.style; + style.position = 'absolute'; + style.left = x + "px"; + style.top = y + "px"; +} +Sys.UI.DomElement.toggleCssClass = function Sys$UI$DomElement$toggleCssClass(element, className) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "className", type: String} + ]); + if (e) throw e; + if (Sys.UI.DomElement.containsCssClass(element, className)) { + Sys.UI.DomElement.removeCssClass(element, className); + } + else { + Sys.UI.DomElement.addCssClass(element, className); + } +} +Sys.UI.DomElement.getVisibilityMode = function Sys$UI$DomElement$getVisibilityMode(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + return (element._visibilityMode === Sys.UI.VisibilityMode.hide) ? + Sys.UI.VisibilityMode.hide : + Sys.UI.VisibilityMode.collapse; +} +Sys.UI.DomElement.setVisibilityMode = function Sys$UI$DomElement$setVisibilityMode(element, value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "value", type: Sys.UI.VisibilityMode} + ]); + if (e) throw e; + Sys.UI.DomElement._ensureOldDisplayMode(element); + if (element._visibilityMode !== value) { + element._visibilityMode = value; + if (Sys.UI.DomElement.getVisible(element) === false) { + if (element._visibilityMode === Sys.UI.VisibilityMode.hide) { + element.style.display = element._oldDisplayMode; + } + else { + element.style.display = 'none'; + } + } + element._visibilityMode = value; + } +} +Sys.UI.DomElement.getVisible = function Sys$UI$DomElement$getVisible(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + var style = element.currentStyle || Sys.UI.DomElement._getCurrentStyle(element); + if (!style) return true; + return (style.visibility !== 'hidden') && (style.display !== 'none'); +} +Sys.UI.DomElement.setVisible = function Sys$UI$DomElement$setVisible(element, value) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "value", type: Boolean} + ]); + if (e) throw e; + if (value !== Sys.UI.DomElement.getVisible(element)) { + Sys.UI.DomElement._ensureOldDisplayMode(element); + element.style.visibility = value ? 'visible' : 'hidden'; + if (value || (element._visibilityMode === Sys.UI.VisibilityMode.hide)) { + element.style.display = element._oldDisplayMode; + } + else { + element.style.display = 'none'; + } + } +} +Sys.UI.DomElement._ensureOldDisplayMode = function Sys$UI$DomElement$_ensureOldDisplayMode(element) { + if (!element._oldDisplayMode) { + var style = element.currentStyle || Sys.UI.DomElement._getCurrentStyle(element); + element._oldDisplayMode = style ? style.display : null; + if (!element._oldDisplayMode || element._oldDisplayMode === 'none') { + switch(element.tagName.toUpperCase()) { + case 'DIV': case 'P': case 'ADDRESS': case 'BLOCKQUOTE': case 'BODY': case 'COL': + case 'COLGROUP': case 'DD': case 'DL': case 'DT': case 'FIELDSET': case 'FORM': + case 'H1': case 'H2': case 'H3': case 'H4': case 'H5': case 'H6': case 'HR': + case 'IFRAME': case 'LEGEND': case 'OL': case 'PRE': case 'TABLE': case 'TD': + case 'TH': case 'TR': case 'UL': + element._oldDisplayMode = 'block'; + break; + case 'LI': + element._oldDisplayMode = 'list-item'; + break; + default: + element._oldDisplayMode = 'inline'; + } + } + } +} +Sys.UI.DomElement._getWindow = function Sys$UI$DomElement$_getWindow(element) { + var doc = element.ownerDocument || element.document || element; + return doc.defaultView || doc.parentWindow; +} +Sys.UI.DomElement._getCurrentStyle = function Sys$UI$DomElement$_getCurrentStyle(element) { + if (element.nodeType === 3) return null; + var w = Sys.UI.DomElement._getWindow(element); + if (element.documentElement) element = element.documentElement; + var computedStyle = (w && (element !== w) && w.getComputedStyle) ? + w.getComputedStyle(element, null) : + element.currentStyle || element.style; + if (!computedStyle && (Sys.Browser.agent === Sys.Browser.Safari) && element.style) { + var oldDisplay = element.style.display; + var oldPosition = element.style.position; + element.style.position = 'absolute'; + element.style.display = 'block'; + var style = w.getComputedStyle(element, null); + element.style.display = oldDisplay; + element.style.position = oldPosition; + computedStyle = {}; + for (var n in style) { + computedStyle[n] = style[n]; + } + computedStyle.display = 'none'; + } + return computedStyle; +} + +Sys.IContainer = function Sys$IContainer() { + throw Error.notImplemented(); +} + function Sys$IContainer$addComponent(component) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "component", type: Sys.Component} + ]); + if (e) throw e; + throw Error.notImplemented(); + } + function Sys$IContainer$removeComponent(component) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "component", type: Sys.Component} + ]); + if (e) throw e; + throw Error.notImplemented(); + } + function Sys$IContainer$findComponent(id) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "id", type: String} + ]); + if (e) throw e; + throw Error.notImplemented(); + } + function Sys$IContainer$getComponents() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } +Sys.IContainer.prototype = { + addComponent: Sys$IContainer$addComponent, + removeComponent: Sys$IContainer$removeComponent, + findComponent: Sys$IContainer$findComponent, + getComponents: Sys$IContainer$getComponents +} +Sys.IContainer.registerInterface("Sys.IContainer"); + +Sys.ApplicationLoadEventArgs = function Sys$ApplicationLoadEventArgs(components, isPartialLoad) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "components", type: Array, elementType: Sys.Component}, + {name: "isPartialLoad", type: Boolean} + ]); + if (e) throw e; + Sys.ApplicationLoadEventArgs.initializeBase(this); + this._components = components; + this._isPartialLoad = isPartialLoad; +} + + function Sys$ApplicationLoadEventArgs$get_components() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._components; + } + function Sys$ApplicationLoadEventArgs$get_isPartialLoad() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._isPartialLoad; + } +Sys.ApplicationLoadEventArgs.prototype = { + get_components: Sys$ApplicationLoadEventArgs$get_components, + get_isPartialLoad: Sys$ApplicationLoadEventArgs$get_isPartialLoad +} +Sys.ApplicationLoadEventArgs.registerClass('Sys.ApplicationLoadEventArgs', Sys.EventArgs); + +Sys._Application = function Sys$_Application() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + Sys._Application.initializeBase(this); + this._disposableObjects = []; + this._components = {}; + this._createdComponents = []; + this._secondPassComponents = []; + this._unloadHandlerDelegate = Function.createDelegate(this, this._unloadHandler); + Sys.UI.DomEvent.addHandler(window, "unload", this._unloadHandlerDelegate); + this._domReady(); +} + function Sys$_Application$get_isCreatingComponents() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._creatingComponents; + } + function Sys$_Application$get_isDisposing() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._disposing; + } + function Sys$_Application$add_init(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + if (this._initialized) { + handler(this, Sys.EventArgs.Empty); + } + else { + this.get_events().addHandler("init", handler); + } + } + function Sys$_Application$remove_init(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().removeHandler("init", handler); + } + function Sys$_Application$add_load(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().addHandler("load", handler); + } + function Sys$_Application$remove_load(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().removeHandler("load", handler); + } + function Sys$_Application$add_unload(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().addHandler("unload", handler); + } + function Sys$_Application$remove_unload(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this.get_events().removeHandler("unload", handler); + } + function Sys$_Application$addComponent(component) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "component", type: Sys.Component} + ]); + if (e) throw e; + var id = component.get_id(); + if (!id) throw Error.invalidOperation(Sys.Res.cantAddWithoutId); + if (typeof(this._components[id]) !== 'undefined') throw Error.invalidOperation(String.format(Sys.Res.appDuplicateComponent, id)); + this._components[id] = component; + } + function Sys$_Application$beginCreateComponents() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._creatingComponents = true; + } + function Sys$_Application$dispose() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._disposing) { + this._disposing = true; + if (this._timerCookie) { + window.clearTimeout(this._timerCookie); + delete this._timerCookie; + } + if (this._endRequestHandler) { + Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler); + delete this._endRequestHandler; + } + if (this._beginRequestHandler) { + Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler); + delete this._beginRequestHandler; + } + if (window.pageUnload) { + window.pageUnload(this, Sys.EventArgs.Empty); + } + var unloadHandler = this.get_events().getHandler("unload"); + if (unloadHandler) { + unloadHandler(this, Sys.EventArgs.Empty); + } + var disposableObjects = Array.clone(this._disposableObjects); + for (var i = 0, l = disposableObjects.length; i < l; i++) { + var object = disposableObjects[i]; + if (typeof(object) !== "undefined") { + object.dispose(); + } + } + Array.clear(this._disposableObjects); + Sys.UI.DomEvent.removeHandler(window, "unload", this._unloadHandlerDelegate); + if (Sys._ScriptLoader) { + var sl = Sys._ScriptLoader.getInstance(); + if(sl) { + sl.dispose(); + } + } + Sys._Application.callBaseMethod(this, 'dispose'); + } + } + function Sys$_Application$disposeElement(element, childNodesOnly) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element"}, + {name: "childNodesOnly", type: Boolean} + ]); + if (e) throw e; + if (element.nodeType === 1) { + var children = element.getElementsByTagName("*"); + for (var i = children.length - 1; i >= 0; i--) { + this._disposeElementInternal(children[i]); + } + if (!childNodesOnly) { + this._disposeElementInternal(element); + } + } + } + function Sys$_Application$endCreateComponents() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var components = this._secondPassComponents; + for (var i = 0, l = components.length; i < l; i++) { + var component = components[i].component; + Sys$Component$_setReferences(component, components[i].references); + component.endUpdate(); + } + this._secondPassComponents = []; + this._creatingComponents = false; + } + function Sys$_Application$findComponent(id, parent) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "id", type: String}, + {name: "parent", mayBeNull: true, optional: true} + ]); + if (e) throw e; + return (parent ? + ((Sys.IContainer.isInstanceOfType(parent)) ? + parent.findComponent(id) : + parent[id] || null) : + Sys.Application._components[id] || null); + } + function Sys$_Application$getComponents() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var res = []; + var components = this._components; + for (var name in components) { + res[res.length] = components[name]; + } + return res; + } + function Sys$_Application$initialize() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if(!this.get_isInitialized() && !this._disposing) { + Sys._Application.callBaseMethod(this, 'initialize'); + this._raiseInit(); + if (this.get_stateString) { + if (Sys.WebForms && Sys.WebForms.PageRequestManager) { + this._beginRequestHandler = Function.createDelegate(this, this._onPageRequestManagerBeginRequest); + Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(this._beginRequestHandler); + this._endRequestHandler = Function.createDelegate(this, this._onPageRequestManagerEndRequest); + Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._endRequestHandler); + } + var loadedEntry = this.get_stateString(); + if (loadedEntry !== this._currentEntry) { + this._navigate(loadedEntry); + } + else { + this._ensureHistory(); + } + } + this.raiseLoad(); + } + } + function Sys$_Application$notifyScriptLoaded() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + } + function Sys$_Application$registerDisposableObject(object) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "object", type: Sys.IDisposable} + ]); + if (e) throw e; + if (!this._disposing) { + var objects = this._disposableObjects, + i = objects.length; + objects[i] = object; + object.__msdisposeindex = i; + } + } + function Sys$_Application$raiseLoad() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var h = this.get_events().getHandler("load"); + var args = new Sys.ApplicationLoadEventArgs(Array.clone(this._createdComponents), !!this._loaded); + this._loaded = true; + if (h) { + h(this, args); + } + if (window.pageLoad) { + window.pageLoad(this, args); + } + this._createdComponents = []; + } + function Sys$_Application$removeComponent(component) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "component", type: Sys.Component} + ]); + if (e) throw e; + var id = component.get_id(); + if (id) delete this._components[id]; + } + function Sys$_Application$unregisterDisposableObject(object) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "object", type: Sys.IDisposable} + ]); + if (e) throw e; + if (!this._disposing) { + var i = object.__msdisposeindex; + if (typeof(i) === "number") { + var disposableObjects = this._disposableObjects; + delete disposableObjects[i]; + delete object.__msdisposeindex; + if (++this._deleteCount > 1000) { + var newArray = []; + for (var j = 0, l = disposableObjects.length; j < l; j++) { + object = disposableObjects[j]; + if (typeof(object) !== "undefined") { + object.__msdisposeindex = newArray.length; + newArray.push(object); + } + } + this._disposableObjects = newArray; + this._deleteCount = 0; + } + } + } + } + function Sys$_Application$_addComponentToSecondPass(component, references) { + this._secondPassComponents[this._secondPassComponents.length] = {component: component, references: references}; + } + function Sys$_Application$_disposeComponents(list) { + if (list) { + for (var i = list.length - 1; i >= 0; i--) { + var item = list[i]; + if (typeof(item.dispose) === "function") { + item.dispose(); + } + } + } + } + function Sys$_Application$_disposeElementInternal(element) { + var d = element.dispose; + if (d && typeof(d) === "function") { + element.dispose(); + } + else { + var c = element.control; + if (c && typeof(c.dispose) === "function") { + c.dispose(); + } + } + var list = element._behaviors; + if (list) { + this._disposeComponents(list); + } + list = element._components; + if (list) { + this._disposeComponents(list); + element._components = null; + } + } + function Sys$_Application$_domReady() { + var check, er, app = this; + function init() { app.initialize(); } + var onload = function() { + Sys.UI.DomEvent.removeHandler(window, "load", onload); + init(); + } + Sys.UI.DomEvent.addHandler(window, "load", onload); + + if (document.addEventListener) { + try { + document.addEventListener("DOMContentLoaded", check = function() { + document.removeEventListener("DOMContentLoaded", check, false); + init(); + }, false); + } + catch (er) { } + } + else if (document.attachEvent) { + if ((window == window.top) && document.documentElement.doScroll) { + var timeout, el = document.createElement("div"); + check = function() { + try { + el.doScroll("left"); + } + catch (er) { + timeout = window.setTimeout(check, 0); + return; + } + el = null; + init(); + } + check(); + } + else { + document.attachEvent("onreadystatechange", check = function() { + if (document.readyState === "complete") { + document.detachEvent("onreadystatechange", check); + init(); + } + }); + } + } + } + function Sys$_Application$_raiseInit() { + var handler = this.get_events().getHandler("init"); + if (handler) { + this.beginCreateComponents(); + handler(this, Sys.EventArgs.Empty); + this.endCreateComponents(); + } + } + function Sys$_Application$_unloadHandler(event) { + this.dispose(); + } +Sys._Application.prototype = { + _creatingComponents: false, + _disposing: false, + _deleteCount: 0, + get_isCreatingComponents: Sys$_Application$get_isCreatingComponents, + get_isDisposing: Sys$_Application$get_isDisposing, + add_init: Sys$_Application$add_init, + remove_init: Sys$_Application$remove_init, + add_load: Sys$_Application$add_load, + remove_load: Sys$_Application$remove_load, + add_unload: Sys$_Application$add_unload, + remove_unload: Sys$_Application$remove_unload, + addComponent: Sys$_Application$addComponent, + beginCreateComponents: Sys$_Application$beginCreateComponents, + dispose: Sys$_Application$dispose, + disposeElement: Sys$_Application$disposeElement, + endCreateComponents: Sys$_Application$endCreateComponents, + findComponent: Sys$_Application$findComponent, + getComponents: Sys$_Application$getComponents, + initialize: Sys$_Application$initialize, + notifyScriptLoaded: Sys$_Application$notifyScriptLoaded, + registerDisposableObject: Sys$_Application$registerDisposableObject, + raiseLoad: Sys$_Application$raiseLoad, + removeComponent: Sys$_Application$removeComponent, + unregisterDisposableObject: Sys$_Application$unregisterDisposableObject, + _addComponentToSecondPass: Sys$_Application$_addComponentToSecondPass, + _disposeComponents: Sys$_Application$_disposeComponents, + _disposeElementInternal: Sys$_Application$_disposeElementInternal, + _domReady: Sys$_Application$_domReady, + _raiseInit: Sys$_Application$_raiseInit, + _unloadHandler: Sys$_Application$_unloadHandler +} +Sys._Application.registerClass('Sys._Application', Sys.Component, Sys.IContainer); +Sys.Application = new Sys._Application(); +var $find = Sys.Application.findComponent; + +Sys.UI.Behavior = function Sys$UI$Behavior(element) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + Sys.UI.Behavior.initializeBase(this); + this._element = element; + var behaviors = element._behaviors; + if (!behaviors) { + element._behaviors = [this]; + } + else { + behaviors[behaviors.length] = this; + } +} + function Sys$UI$Behavior$get_element() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._element; + } + function Sys$UI$Behavior$get_id() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var baseId = Sys.UI.Behavior.callBaseMethod(this, 'get_id'); + if (baseId) return baseId; + if (!this._element || !this._element.id) return ''; + return this._element.id + '$' + this.get_name(); + } + function Sys$UI$Behavior$get_name() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this._name) return this._name; + var name = Object.getTypeName(this); + var i = name.lastIndexOf('.'); + if (i !== -1) name = name.substr(i + 1); + if (!this.get_isInitialized()) this._name = name; + return name; + } + function Sys$UI$Behavior$set_name(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + if ((value === '') || (value.charAt(0) === ' ') || (value.charAt(value.length - 1) === ' ')) + throw Error.argument('value', Sys.Res.invalidId); + if (typeof(this._element[value]) !== 'undefined') + throw Error.invalidOperation(String.format(Sys.Res.behaviorDuplicateName, value)); + if (this.get_isInitialized()) throw Error.invalidOperation(Sys.Res.cantSetNameAfterInit); + this._name = value; + } + function Sys$UI$Behavior$initialize() { + Sys.UI.Behavior.callBaseMethod(this, 'initialize'); + var name = this.get_name(); + if (name) this._element[name] = this; + } + function Sys$UI$Behavior$dispose() { + Sys.UI.Behavior.callBaseMethod(this, 'dispose'); + var e = this._element; + if (e) { + var name = this.get_name(); + if (name) { + e[name] = null; + } + var behaviors = e._behaviors; + Array.remove(behaviors, this); + if (behaviors.length === 0) { + e._behaviors = null; + } + delete this._element; + } + } +Sys.UI.Behavior.prototype = { + _name: null, + get_element: Sys$UI$Behavior$get_element, + get_id: Sys$UI$Behavior$get_id, + get_name: Sys$UI$Behavior$get_name, + set_name: Sys$UI$Behavior$set_name, + initialize: Sys$UI$Behavior$initialize, + dispose: Sys$UI$Behavior$dispose +} +Sys.UI.Behavior.registerClass('Sys.UI.Behavior', Sys.Component); +Sys.UI.Behavior.getBehaviorByName = function Sys$UI$Behavior$getBehaviorByName(element, name) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "name", type: String} + ]); + if (e) throw e; + var b = element[name]; + return (b && Sys.UI.Behavior.isInstanceOfType(b)) ? b : null; +} +Sys.UI.Behavior.getBehaviors = function Sys$UI$Behavior$getBehaviors(element) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + if (!element._behaviors) return []; + return Array.clone(element._behaviors); +} +Sys.UI.Behavior.getBehaviorsByType = function Sys$UI$Behavior$getBehaviorsByType(element, type) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true}, + {name: "type", type: Type} + ]); + if (e) throw e; + var behaviors = element._behaviors; + var results = []; + if (behaviors) { + for (var i = 0, l = behaviors.length; i < l; i++) { + if (type.isInstanceOfType(behaviors[i])) { + results[results.length] = behaviors[i]; + } + } + } + return results; +} + +Sys.UI.VisibilityMode = function Sys$UI$VisibilityMode() { + /// + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); +} +Sys.UI.VisibilityMode.prototype = { + hide: 0, + collapse: 1 +} +Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode"); + +Sys.UI.Control = function Sys$UI$Control(element) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "element", domElement: true} + ]); + if (e) throw e; + if (typeof(element.control) !== 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined); + Sys.UI.Control.initializeBase(this); + this._element = element; + element.control = this; + var role = this.get_role(); + if (role) { + element.setAttribute("role", role); + } +} + function Sys$UI$Control$get_element() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._element; + } + function Sys$UI$Control$get_id() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._element) return ''; + return this._element.id; + } + function Sys$UI$Control$set_id(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + throw Error.invalidOperation(Sys.Res.cantSetId); + } + function Sys$UI$Control$get_parent() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this._parent) return this._parent; + if (!this._element) return null; + + var parentElement = this._element.parentNode; + while (parentElement) { + if (parentElement.control) { + return parentElement.control; + } + parentElement = parentElement.parentNode; + } + return null; + } + function Sys$UI$Control$set_parent(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Sys.UI.Control}]); + if (e) throw e; + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + var parents = [this]; + var current = value; + while (current) { + if (Array.contains(parents, current)) throw Error.invalidOperation(Sys.Res.circularParentChain); + parents[parents.length] = current; + current = current.get_parent(); + } + this._parent = value; + } + function Sys$UI$Control$get_role() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return null; + } + function Sys$UI$Control$get_visibilityMode() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + return Sys.UI.DomElement.getVisibilityMode(this._element); + } + function Sys$UI$Control$set_visibilityMode(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Sys.UI.VisibilityMode}]); + if (e) throw e; + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + Sys.UI.DomElement.setVisibilityMode(this._element, value); + } + function Sys$UI$Control$get_visible() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + return Sys.UI.DomElement.getVisible(this._element); + } + function Sys$UI$Control$set_visible(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Boolean}]); + if (e) throw e; + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + Sys.UI.DomElement.setVisible(this._element, value) + } + function Sys$UI$Control$addCssClass(className) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "className", type: String} + ]); + if (e) throw e; + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + Sys.UI.DomElement.addCssClass(this._element, className); + } + function Sys$UI$Control$dispose() { + Sys.UI.Control.callBaseMethod(this, 'dispose'); + if (this._element) { + this._element.control = null; + delete this._element; + } + if (this._parent) delete this._parent; + } + function Sys$UI$Control$onBubbleEvent(source, args) { + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "source"}, + {name: "args", type: Sys.EventArgs} + ]); + if (e) throw e; + return false; + } + function Sys$UI$Control$raiseBubbleEvent(source, args) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "source"}, + {name: "args", type: Sys.EventArgs} + ]); + if (e) throw e; + this._raiseBubbleEvent(source, args); + } + function Sys$UI$Control$_raiseBubbleEvent(source, args) { + var currentTarget = this.get_parent(); + while (currentTarget) { + if (currentTarget.onBubbleEvent(source, args)) { + return; + } + currentTarget = currentTarget.get_parent(); + } + } + function Sys$UI$Control$removeCssClass(className) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "className", type: String} + ]); + if (e) throw e; + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + Sys.UI.DomElement.removeCssClass(this._element, className); + } + function Sys$UI$Control$toggleCssClass(className) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "className", type: String} + ]); + if (e) throw e; + if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose); + Sys.UI.DomElement.toggleCssClass(this._element, className); + } +Sys.UI.Control.prototype = { + _parent: null, + _visibilityMode: Sys.UI.VisibilityMode.hide, + get_element: Sys$UI$Control$get_element, + get_id: Sys$UI$Control$get_id, + set_id: Sys$UI$Control$set_id, + get_parent: Sys$UI$Control$get_parent, + set_parent: Sys$UI$Control$set_parent, + get_role: Sys$UI$Control$get_role, + get_visibilityMode: Sys$UI$Control$get_visibilityMode, + set_visibilityMode: Sys$UI$Control$set_visibilityMode, + get_visible: Sys$UI$Control$get_visible, + set_visible: Sys$UI$Control$set_visible, + addCssClass: Sys$UI$Control$addCssClass, + dispose: Sys$UI$Control$dispose, + onBubbleEvent: Sys$UI$Control$onBubbleEvent, + raiseBubbleEvent: Sys$UI$Control$raiseBubbleEvent, + _raiseBubbleEvent: Sys$UI$Control$_raiseBubbleEvent, + removeCssClass: Sys$UI$Control$removeCssClass, + toggleCssClass: Sys$UI$Control$toggleCssClass +} +Sys.UI.Control.registerClass('Sys.UI.Control', Sys.Component); +Sys.HistoryEventArgs = function Sys$HistoryEventArgs(state) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "state", type: Object} + ]); + if (e) throw e; + Sys.HistoryEventArgs.initializeBase(this); + this._state = state; +} + function Sys$HistoryEventArgs$get_state() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._state; + } +Sys.HistoryEventArgs.prototype = { + get_state: Sys$HistoryEventArgs$get_state +} +Sys.HistoryEventArgs.registerClass('Sys.HistoryEventArgs', Sys.EventArgs); +Sys.Application._appLoadHandler = null; +Sys.Application._beginRequestHandler = null; +Sys.Application._clientId = null; +Sys.Application._currentEntry = ''; +Sys.Application._endRequestHandler = null; +Sys.Application._history = null; +Sys.Application._enableHistory = false; +Sys.Application._historyEnabledInScriptManager = false; +Sys.Application._historyFrame = null; +Sys.Application._historyInitialized = false; +Sys.Application._historyPointIsNew = false; +Sys.Application._ignoreTimer = false; +Sys.Application._initialState = null; +Sys.Application._state = {}; +Sys.Application._timerCookie = 0; +Sys.Application._timerHandler = null; +Sys.Application._uniqueId = null; +Sys._Application.prototype.get_stateString = function Sys$_Application$get_stateString() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + var hash = null; + + if (Sys.Browser.agent === Sys.Browser.Firefox) { + var href = window.location.href; + var hashIndex = href.indexOf('#'); + if (hashIndex !== -1) { + hash = href.substring(hashIndex + 1); + } + else { + hash = ""; + } + return hash; + } + else { + hash = window.location.hash; + } + + if ((hash.length > 0) && (hash.charAt(0) === '#')) { + hash = hash.substring(1); + } + return hash; +}; +Sys._Application.prototype.get_enableHistory = function Sys$_Application$get_enableHistory() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._enableHistory; +}; +Sys._Application.prototype.set_enableHistory = function Sys$_Application$set_enableHistory(value) { + if (this._initialized && !this._initializing) { + throw Error.invalidOperation(Sys.Res.historyCannotEnableHistory); + } + else if (this._historyEnabledInScriptManager && !value) { + throw Error.invalidOperation(Sys.Res.invalidHistorySettingCombination); + } + this._enableHistory = value; +}; +Sys._Application.prototype.add_navigate = function Sys$_Application$add_navigate(handler) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "handler", type: Function} + ]); + if (e) throw e; + this.get_events().addHandler("navigate", handler); +}; +Sys._Application.prototype.remove_navigate = function Sys$_Application$remove_navigate(handler) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "handler", type: Function} + ]); + if (e) throw e; + this.get_events().removeHandler("navigate", handler); +}; +Sys._Application.prototype.addHistoryPoint = function Sys$_Application$addHistoryPoint(state, title) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "state", type: Object}, + {name: "title", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + if (!this._enableHistory) throw Error.invalidOperation(Sys.Res.historyCannotAddHistoryPointWithHistoryDisabled); + for (var n in state) { + var v = state[n]; + var t = typeof(v); + if ((v !== null) && ((t === 'object') || (t === 'function') || (t === 'undefined'))) { + throw Error.argument('state', Sys.Res.stateMustBeStringDictionary); + } + } + this._ensureHistory(); + var initialState = this._state; + for (var key in state) { + var value = state[key]; + if (value === null) { + if (typeof(initialState[key]) !== 'undefined') { + delete initialState[key]; + } + } + else { + initialState[key] = value; + } + } + var entry = this._serializeState(initialState); + this._historyPointIsNew = true; + this._setState(entry, title); + this._raiseNavigate(); +}; +Sys._Application.prototype.setServerId = function Sys$_Application$setServerId(clientId, uniqueId) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "clientId", type: String}, + {name: "uniqueId", type: String} + ]); + if (e) throw e; + this._clientId = clientId; + this._uniqueId = uniqueId; +}; +Sys._Application.prototype.setServerState = function Sys$_Application$setServerState(value) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "value", type: String} + ]); + if (e) throw e; + this._ensureHistory(); + this._state.__s = value; + this._updateHiddenField(value); +}; +Sys._Application.prototype._deserializeState = function Sys$_Application$_deserializeState(entry) { + var result = {}; + entry = entry || ''; + var serverSeparator = entry.indexOf('&&'); + if ((serverSeparator !== -1) && (serverSeparator + 2 < entry.length)) { + result.__s = entry.substr(serverSeparator + 2); + entry = entry.substr(0, serverSeparator); + } + var tokens = entry.split('&'); + for (var i = 0, l = tokens.length; i < l; i++) { + var token = tokens[i]; + var equal = token.indexOf('='); + if ((equal !== -1) && (equal + 1 < token.length)) { + var name = token.substr(0, equal); + var value = token.substr(equal + 1); + result[name] = decodeURIComponent(value); + } + } + return result; +}; +Sys._Application.prototype._enableHistoryInScriptManager = function Sys$_Application$_enableHistoryInScriptManager() { + this._enableHistory = true; + this._historyEnabledInScriptManager = true; +}; +Sys._Application.prototype._ensureHistory = function Sys$_Application$_ensureHistory() { + if (!this._historyInitialized && this._enableHistory) { + if ((Sys.Browser.agent === Sys.Browser.InternetExplorer) && (Sys.Browser.documentMode < 8)) { + this._historyFrame = document.getElementById('__historyFrame'); + if (!this._historyFrame) throw Error.invalidOperation(Sys.Res.historyMissingFrame); + this._ignoreIFrame = true; + } + this._timerHandler = Function.createDelegate(this, this._onIdle); + this._timerCookie = window.setTimeout(this._timerHandler, 100); + + try { + this._initialState = this._deserializeState(this.get_stateString()); + } catch(e) {} + + this._historyInitialized = true; + } +}; +Sys._Application.prototype._navigate = function Sys$_Application$_navigate(entry) { + this._ensureHistory(); + var state = this._deserializeState(entry); + + if (this._uniqueId) { + var oldServerEntry = this._state.__s || ''; + var newServerEntry = state.__s || ''; + if (newServerEntry !== oldServerEntry) { + this._updateHiddenField(newServerEntry); + __doPostBack(this._uniqueId, newServerEntry); + this._state = state; + return; + } + } + this._setState(entry); + this._state = state; + this._raiseNavigate(); +}; +Sys._Application.prototype._onIdle = function Sys$_Application$_onIdle() { + delete this._timerCookie; + + var entry = this.get_stateString(); + if (entry !== this._currentEntry) { + if (!this._ignoreTimer) { + this._historyPointIsNew = false; + this._navigate(entry); + } + } + else { + this._ignoreTimer = false; + } + this._timerCookie = window.setTimeout(this._timerHandler, 100); +}; +Sys._Application.prototype._onIFrameLoad = function Sys$_Application$_onIFrameLoad(entry) { + this._ensureHistory(); + if (!this._ignoreIFrame) { + this._historyPointIsNew = false; + this._navigate(entry); + } + this._ignoreIFrame = false; +}; +Sys._Application.prototype._onPageRequestManagerBeginRequest = function Sys$_Application$_onPageRequestManagerBeginRequest(sender, args) { + this._ignoreTimer = true; +}; +Sys._Application.prototype._onPageRequestManagerEndRequest = function Sys$_Application$_onPageRequestManagerEndRequest(sender, args) { + var dataItem = args.get_dataItems()[this._clientId]; + var eventTarget = document.getElementById("__EVENTTARGET"); + if (eventTarget && eventTarget.value === this._uniqueId) { + eventTarget.value = ''; + } + if (typeof(dataItem) !== 'undefined') { + this.setServerState(dataItem); + this._historyPointIsNew = true; + } + else { + this._ignoreTimer = false; + } + var entry = this._serializeState(this._state); + if (entry !== this._currentEntry) { + this._ignoreTimer = true; + this._setState(entry); + this._raiseNavigate(); + } +}; +Sys._Application.prototype._raiseNavigate = function Sys$_Application$_raiseNavigate() { + var h = this.get_events().getHandler("navigate"); + var stateClone = {}; + for (var key in this._state) { + if (key !== '__s') { + stateClone[key] = this._state[key]; + } + } + var args = new Sys.HistoryEventArgs(stateClone); + if (h) { + h(this, args); + } + var err; + try { + if ((Sys.Browser.agent === Sys.Browser.Firefox) && window.location.hash && + (!window.frameElement || window.top.location.hash)) { + window.history.go(0); + } + } + catch(err) { + } +}; +Sys._Application.prototype._serializeState = function Sys$_Application$_serializeState(state) { + var serialized = []; + for (var key in state) { + var value = state[key]; + if (key === '__s') { + var serverState = value; + } + else { + if (key.indexOf('=') !== -1) throw Error.argument('state', Sys.Res.stateFieldNameInvalid); + serialized[serialized.length] = key + '=' + encodeURIComponent(value); + } + } + return serialized.join('&') + (serverState ? '&&' + serverState : ''); +}; +Sys._Application.prototype._setState = function Sys$_Application$_setState(entry, title) { + if (this._enableHistory) { + entry = entry || ''; + if (entry !== this._currentEntry) { + if (window.theForm) { + var action = window.theForm.action; + var hashIndex = action.indexOf('#'); + window.theForm.action = ((hashIndex !== -1) ? action.substring(0, hashIndex) : action) + '#' + entry; + } + + if (this._historyFrame && this._historyPointIsNew) { + this._ignoreIFrame = true; + var frameDoc = this._historyFrame.contentWindow.document; + frameDoc.open("javascript:''"); + frameDoc.write("" + (title || document.title) + + "parent.Sys.Application._onIFrameLoad(" + + Sys.Serialization.JavaScriptSerializer.serialize(entry) + + ");"); + frameDoc.close(); + } + this._ignoreTimer = false; + this._currentEntry = entry; + if (this._historyFrame || this._historyPointIsNew) { + var currentHash = this.get_stateString(); + if (entry !== currentHash) { + var loc = document.location; + if (loc.href.length - loc.hash.length + entry.length > 1024) { + throw Error.invalidOperation(Sys.Res.urlMustBeLessThan1024chars); + } + window.location.hash = entry; + this._currentEntry = this.get_stateString(); + if ((typeof(title) !== 'undefined') && (title !== null)) { + document.title = title; + } + } + } + this._historyPointIsNew = false; + } + } +}; +Sys._Application.prototype._updateHiddenField = function Sys$_Application$_updateHiddenField(value) { + if (this._clientId) { + var serverStateField = document.getElementById(this._clientId); + if (serverStateField) { + serverStateField.value = value; + } + } +}; + +if (!window.XMLHttpRequest) { + window.XMLHttpRequest = function window$XMLHttpRequest() { + var progIDs = [ 'Msxml2.XMLHTTP.3.0', 'Msxml2.XMLHTTP' ]; + for (var i = 0, l = progIDs.length; i < l; i++) { + try { + return new ActiveXObject(progIDs[i]); + } + catch (ex) { + } + } + return null; + } +} +Type.registerNamespace('Sys.Net'); + +Sys.Net.WebRequestExecutor = function Sys$Net$WebRequestExecutor() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._webRequest = null; + this._resultObject = null; +} + function Sys$Net$WebRequestExecutor$get_webRequest() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._webRequest; + } + function Sys$Net$WebRequestExecutor$_set_webRequest(value) { + if (this.get_started()) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOnceStarted, 'set_webRequest')); + } + this._webRequest = value; + } + function Sys$Net$WebRequestExecutor$get_started() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_responseAvailable() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_timedOut() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_aborted() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_responseData() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_statusCode() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_statusText() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_xml() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$get_object() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._resultObject) { + this._resultObject = Sys.Serialization.JavaScriptSerializer.deserialize(this.get_responseData()); + } + return this._resultObject; + } + function Sys$Net$WebRequestExecutor$executeRequest() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$abort() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$getResponseHeader(header) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "header", type: String} + ]); + if (e) throw e; + throw Error.notImplemented(); + } + function Sys$Net$WebRequestExecutor$getAllResponseHeaders() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + throw Error.notImplemented(); + } +Sys.Net.WebRequestExecutor.prototype = { + get_webRequest: Sys$Net$WebRequestExecutor$get_webRequest, + _set_webRequest: Sys$Net$WebRequestExecutor$_set_webRequest, + get_started: Sys$Net$WebRequestExecutor$get_started, + get_responseAvailable: Sys$Net$WebRequestExecutor$get_responseAvailable, + get_timedOut: Sys$Net$WebRequestExecutor$get_timedOut, + get_aborted: Sys$Net$WebRequestExecutor$get_aborted, + get_responseData: Sys$Net$WebRequestExecutor$get_responseData, + get_statusCode: Sys$Net$WebRequestExecutor$get_statusCode, + get_statusText: Sys$Net$WebRequestExecutor$get_statusText, + get_xml: Sys$Net$WebRequestExecutor$get_xml, + get_object: Sys$Net$WebRequestExecutor$get_object, + executeRequest: Sys$Net$WebRequestExecutor$executeRequest, + abort: Sys$Net$WebRequestExecutor$abort, + getResponseHeader: Sys$Net$WebRequestExecutor$getResponseHeader, + getAllResponseHeaders: Sys$Net$WebRequestExecutor$getAllResponseHeaders +} +Sys.Net.WebRequestExecutor.registerClass('Sys.Net.WebRequestExecutor'); + +Sys.Net.XMLDOM = function Sys$Net$XMLDOM(markup) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "markup", type: String} + ]); + if (e) throw e; + if (!window.DOMParser) { + var progIDs = [ 'Msxml2.DOMDocument.3.0', 'Msxml2.DOMDocument' ]; + for (var i = 0, l = progIDs.length; i < l; i++) { + try { + var xmlDOM = new ActiveXObject(progIDs[i]); + xmlDOM.async = false; + xmlDOM.loadXML(markup); + xmlDOM.setProperty('SelectionLanguage', 'XPath'); + return xmlDOM; + } + catch (ex) { + } + } + } + else { + try { + var domParser = new window.DOMParser(); + return domParser.parseFromString(markup, 'text/xml'); + } + catch (ex) { + } + } + return null; +} +Sys.Net.XMLHttpExecutor = function Sys$Net$XMLHttpExecutor() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + Sys.Net.XMLHttpExecutor.initializeBase(this); + var _this = this; + this._xmlHttpRequest = null; + this._webRequest = null; + this._responseAvailable = false; + this._timedOut = false; + this._timer = null; + this._aborted = false; + this._started = false; + this._onReadyStateChange = (function () { + + if (_this._xmlHttpRequest.readyState === 4 ) { + try { + if (typeof(_this._xmlHttpRequest.status) === "undefined") { + return; + } + } + catch(ex) { + return; + } + + _this._clearTimer(); + _this._responseAvailable = true; + _this._webRequest.completed(Sys.EventArgs.Empty); + if (_this._xmlHttpRequest != null) { + _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod; + _this._xmlHttpRequest = null; + } + } + }); + this._clearTimer = (function() { + if (_this._timer != null) { + window.clearTimeout(_this._timer); + _this._timer = null; + } + }); + this._onTimeout = (function() { + if (!_this._responseAvailable) { + _this._clearTimer(); + _this._timedOut = true; + _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod; + _this._xmlHttpRequest.abort(); + _this._webRequest.completed(Sys.EventArgs.Empty); + _this._xmlHttpRequest = null; + } + }); +} + function Sys$Net$XMLHttpExecutor$get_timedOut() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._timedOut; + } + function Sys$Net$XMLHttpExecutor$get_started() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._started; + } + function Sys$Net$XMLHttpExecutor$get_responseAvailable() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._responseAvailable; + } + function Sys$Net$XMLHttpExecutor$get_aborted() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._aborted; + } + function Sys$Net$XMLHttpExecutor$executeRequest() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._webRequest = this.get_webRequest(); + if (this._started) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOnceStarted, 'executeRequest')); + } + if (this._webRequest === null) { + throw Error.invalidOperation(Sys.Res.nullWebRequest); + } + var body = this._webRequest.get_body(); + var headers = this._webRequest.get_headers(); + this._xmlHttpRequest = new XMLHttpRequest(); + this._xmlHttpRequest.onreadystatechange = this._onReadyStateChange; + var verb = this._webRequest.get_httpVerb(); + this._xmlHttpRequest.open(verb, this._webRequest.getResolvedUrl(), true ); + this._xmlHttpRequest.setRequestHeader("X-Requested-With", "XMLHttpRequest"); + if (headers) { + for (var header in headers) { + var val = headers[header]; + if (typeof(val) !== "function") + this._xmlHttpRequest.setRequestHeader(header, val); + } + } + if (verb.toLowerCase() === "post") { + if ((headers === null) || !headers['Content-Type']) { + this._xmlHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8'); + } + if (!body) { + body = ""; + } + } + var timeout = this._webRequest.get_timeout(); + if (timeout > 0) { + this._timer = window.setTimeout(Function.createDelegate(this, this._onTimeout), timeout); + } + this._xmlHttpRequest.send(body); + this._started = true; + } + function Sys$Net$XMLHttpExecutor$getResponseHeader(header) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "header", type: String} + ]); + if (e) throw e; + if (!this._responseAvailable) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'getResponseHeader')); + } + if (!this._xmlHttpRequest) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'getResponseHeader')); + } + var result; + try { + result = this._xmlHttpRequest.getResponseHeader(header); + } catch (e) { + } + if (!result) result = ""; + return result; + } + function Sys$Net$XMLHttpExecutor$getAllResponseHeaders() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._responseAvailable) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'getAllResponseHeaders')); + } + if (!this._xmlHttpRequest) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'getAllResponseHeaders')); + } + return this._xmlHttpRequest.getAllResponseHeaders(); + } + function Sys$Net$XMLHttpExecutor$get_responseData() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._responseAvailable) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_responseData')); + } + if (!this._xmlHttpRequest) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_responseData')); + } + return this._xmlHttpRequest.responseText; + } + function Sys$Net$XMLHttpExecutor$get_statusCode() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._responseAvailable) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_statusCode')); + } + if (!this._xmlHttpRequest) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_statusCode')); + } + var result = 0; + try { + result = this._xmlHttpRequest.status; + } + catch(ex) { + } + return result; + } + function Sys$Net$XMLHttpExecutor$get_statusText() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._responseAvailable) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_statusText')); + } + if (!this._xmlHttpRequest) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_statusText')); + } + return this._xmlHttpRequest.statusText; + } + function Sys$Net$XMLHttpExecutor$get_xml() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._responseAvailable) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_xml')); + } + if (!this._xmlHttpRequest) { + throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_xml')); + } + var xml = this._xmlHttpRequest.responseXML; + if (!xml || !xml.documentElement) { + xml = Sys.Net.XMLDOM(this._xmlHttpRequest.responseText); + if (!xml || !xml.documentElement) + return null; + } + else if (navigator.userAgent.indexOf('MSIE') !== -1) { + xml.setProperty('SelectionLanguage', 'XPath'); + } + if (xml.documentElement.namespaceURI === "http://www.mozilla.org/newlayout/xml/parsererror.xml" && + xml.documentElement.tagName === "parsererror") { + return null; + } + + if (xml.documentElement.firstChild && xml.documentElement.firstChild.tagName === "parsererror") { + return null; + } + + return xml; + } + function Sys$Net$XMLHttpExecutor$abort() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (!this._started) { + throw Error.invalidOperation(Sys.Res.cannotAbortBeforeStart); + } + if (this._aborted || this._responseAvailable || this._timedOut) + return; + this._aborted = true; + this._clearTimer(); + if (this._xmlHttpRequest && !this._responseAvailable) { + this._xmlHttpRequest.onreadystatechange = Function.emptyMethod; + this._xmlHttpRequest.abort(); + + this._xmlHttpRequest = null; + this._webRequest.completed(Sys.EventArgs.Empty); + } + } +Sys.Net.XMLHttpExecutor.prototype = { + get_timedOut: Sys$Net$XMLHttpExecutor$get_timedOut, + get_started: Sys$Net$XMLHttpExecutor$get_started, + get_responseAvailable: Sys$Net$XMLHttpExecutor$get_responseAvailable, + get_aborted: Sys$Net$XMLHttpExecutor$get_aborted, + executeRequest: Sys$Net$XMLHttpExecutor$executeRequest, + getResponseHeader: Sys$Net$XMLHttpExecutor$getResponseHeader, + getAllResponseHeaders: Sys$Net$XMLHttpExecutor$getAllResponseHeaders, + get_responseData: Sys$Net$XMLHttpExecutor$get_responseData, + get_statusCode: Sys$Net$XMLHttpExecutor$get_statusCode, + get_statusText: Sys$Net$XMLHttpExecutor$get_statusText, + get_xml: Sys$Net$XMLHttpExecutor$get_xml, + abort: Sys$Net$XMLHttpExecutor$abort +} +Sys.Net.XMLHttpExecutor.registerClass('Sys.Net.XMLHttpExecutor', Sys.Net.WebRequestExecutor); + +Sys.Net._WebRequestManager = function Sys$Net$_WebRequestManager() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._defaultTimeout = 0; + this._defaultExecutorType = "Sys.Net.XMLHttpExecutor"; +} + function Sys$Net$_WebRequestManager$add_invokingRequest(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this._get_eventHandlerList().addHandler("invokingRequest", handler); + } + function Sys$Net$_WebRequestManager$remove_invokingRequest(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this._get_eventHandlerList().removeHandler("invokingRequest", handler); + } + function Sys$Net$_WebRequestManager$add_completedRequest(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this._get_eventHandlerList().addHandler("completedRequest", handler); + } + function Sys$Net$_WebRequestManager$remove_completedRequest(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this._get_eventHandlerList().removeHandler("completedRequest", handler); + } + function Sys$Net$_WebRequestManager$_get_eventHandlerList() { + if (!this._events) { + this._events = new Sys.EventHandlerList(); + } + return this._events; + } + function Sys$Net$_WebRequestManager$get_defaultTimeout() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._defaultTimeout; + } + function Sys$Net$_WebRequestManager$set_defaultTimeout(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Number}]); + if (e) throw e; + if (value < 0) { + throw Error.argumentOutOfRange("value", value, Sys.Res.invalidTimeout); + } + this._defaultTimeout = value; + } + function Sys$Net$_WebRequestManager$get_defaultExecutorType() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._defaultExecutorType; + } + function Sys$Net$_WebRequestManager$set_defaultExecutorType(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + this._defaultExecutorType = value; + } + function Sys$Net$_WebRequestManager$executeRequest(webRequest) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "webRequest", type: Sys.Net.WebRequest} + ]); + if (e) throw e; + var executor = webRequest.get_executor(); + if (!executor) { + var failed = false; + try { + var executorType = eval(this._defaultExecutorType); + executor = new executorType(); + } catch (e) { + failed = true; + } + if (failed || !Sys.Net.WebRequestExecutor.isInstanceOfType(executor) || !executor) { + throw Error.argument("defaultExecutorType", String.format(Sys.Res.invalidExecutorType, this._defaultExecutorType)); + } + webRequest.set_executor(executor); + } + if (executor.get_aborted()) { + return; + } + var evArgs = new Sys.Net.NetworkRequestEventArgs(webRequest); + var handler = this._get_eventHandlerList().getHandler("invokingRequest"); + if (handler) { + handler(this, evArgs); + } + if (!evArgs.get_cancel()) { + executor.executeRequest(); + } + } +Sys.Net._WebRequestManager.prototype = { + add_invokingRequest: Sys$Net$_WebRequestManager$add_invokingRequest, + remove_invokingRequest: Sys$Net$_WebRequestManager$remove_invokingRequest, + add_completedRequest: Sys$Net$_WebRequestManager$add_completedRequest, + remove_completedRequest: Sys$Net$_WebRequestManager$remove_completedRequest, + _get_eventHandlerList: Sys$Net$_WebRequestManager$_get_eventHandlerList, + get_defaultTimeout: Sys$Net$_WebRequestManager$get_defaultTimeout, + set_defaultTimeout: Sys$Net$_WebRequestManager$set_defaultTimeout, + get_defaultExecutorType: Sys$Net$_WebRequestManager$get_defaultExecutorType, + set_defaultExecutorType: Sys$Net$_WebRequestManager$set_defaultExecutorType, + executeRequest: Sys$Net$_WebRequestManager$executeRequest +} +Sys.Net._WebRequestManager.registerClass('Sys.Net._WebRequestManager'); +Sys.Net.WebRequestManager = new Sys.Net._WebRequestManager(); + +Sys.Net.NetworkRequestEventArgs = function Sys$Net$NetworkRequestEventArgs(webRequest) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "webRequest", type: Sys.Net.WebRequest} + ]); + if (e) throw e; + Sys.Net.NetworkRequestEventArgs.initializeBase(this); + this._webRequest = webRequest; +} + function Sys$Net$NetworkRequestEventArgs$get_webRequest() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._webRequest; + } +Sys.Net.NetworkRequestEventArgs.prototype = { + get_webRequest: Sys$Net$NetworkRequestEventArgs$get_webRequest +} +Sys.Net.NetworkRequestEventArgs.registerClass('Sys.Net.NetworkRequestEventArgs', Sys.CancelEventArgs); + +Sys.Net.WebRequest = function Sys$Net$WebRequest() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._url = ""; + this._headers = { }; + this._body = null; + this._userContext = null; + this._httpVerb = null; + this._executor = null; + this._invokeCalled = false; + this._timeout = 0; +} + function Sys$Net$WebRequest$add_completed(handler) { + /// + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this._get_eventHandlerList().addHandler("completed", handler); + } + function Sys$Net$WebRequest$remove_completed(handler) { + var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); + if (e) throw e; + this._get_eventHandlerList().removeHandler("completed", handler); + } + function Sys$Net$WebRequest$completed(eventArgs) { + /// + /// + var e = Function._validateParams(arguments, [ + {name: "eventArgs", type: Sys.EventArgs} + ]); + if (e) throw e; + var handler = Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest"); + if (handler) { + handler(this._executor, eventArgs); + } + handler = this._get_eventHandlerList().getHandler("completed"); + if (handler) { + handler(this._executor, eventArgs); + } + } + function Sys$Net$WebRequest$_get_eventHandlerList() { + if (!this._events) { + this._events = new Sys.EventHandlerList(); + } + return this._events; + } + function Sys$Net$WebRequest$get_url() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._url; + } + function Sys$Net$WebRequest$set_url(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + this._url = value; + } + function Sys$Net$WebRequest$get_headers() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._headers; + } + function Sys$Net$WebRequest$get_httpVerb() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this._httpVerb === null) { + if (this._body === null) { + return "GET"; + } + return "POST"; + } + return this._httpVerb; + } + function Sys$Net$WebRequest$set_httpVerb(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + if (value.length === 0) { + throw Error.argument('value', Sys.Res.invalidHttpVerb); + } + this._httpVerb = value; + } + function Sys$Net$WebRequest$get_body() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._body; + } + function Sys$Net$WebRequest$set_body(value) { + var e = Function._validateParams(arguments, [{name: "value", mayBeNull: true}]); + if (e) throw e; + this._body = value; + } + function Sys$Net$WebRequest$get_userContext() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._userContext; + } + function Sys$Net$WebRequest$set_userContext(value) { + var e = Function._validateParams(arguments, [{name: "value", mayBeNull: true}]); + if (e) throw e; + this._userContext = value; + } + function Sys$Net$WebRequest$get_executor() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._executor; + } + function Sys$Net$WebRequest$set_executor(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Sys.Net.WebRequestExecutor}]); + if (e) throw e; + if (this._executor !== null && this._executor.get_started()) { + throw Error.invalidOperation(Sys.Res.setExecutorAfterActive); + } + this._executor = value; + this._executor._set_webRequest(this); + } + function Sys$Net$WebRequest$get_timeout() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this._timeout === 0) { + return Sys.Net.WebRequestManager.get_defaultTimeout(); + } + return this._timeout; + } + function Sys$Net$WebRequest$set_timeout(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Number}]); + if (e) throw e; + if (value < 0) { + throw Error.argumentOutOfRange("value", value, Sys.Res.invalidTimeout); + } + this._timeout = value; + } + function Sys$Net$WebRequest$getResolvedUrl() { + /// + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return Sys.Net.WebRequest._resolveUrl(this._url); + } + function Sys$Net$WebRequest$invoke() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + if (this._invokeCalled) { + throw Error.invalidOperation(Sys.Res.invokeCalledTwice); + } + Sys.Net.WebRequestManager.executeRequest(this); + this._invokeCalled = true; + } +Sys.Net.WebRequest.prototype = { + add_completed: Sys$Net$WebRequest$add_completed, + remove_completed: Sys$Net$WebRequest$remove_completed, + completed: Sys$Net$WebRequest$completed, + _get_eventHandlerList: Sys$Net$WebRequest$_get_eventHandlerList, + get_url: Sys$Net$WebRequest$get_url, + set_url: Sys$Net$WebRequest$set_url, + get_headers: Sys$Net$WebRequest$get_headers, + get_httpVerb: Sys$Net$WebRequest$get_httpVerb, + set_httpVerb: Sys$Net$WebRequest$set_httpVerb, + get_body: Sys$Net$WebRequest$get_body, + set_body: Sys$Net$WebRequest$set_body, + get_userContext: Sys$Net$WebRequest$get_userContext, + set_userContext: Sys$Net$WebRequest$set_userContext, + get_executor: Sys$Net$WebRequest$get_executor, + set_executor: Sys$Net$WebRequest$set_executor, + get_timeout: Sys$Net$WebRequest$get_timeout, + set_timeout: Sys$Net$WebRequest$set_timeout, + getResolvedUrl: Sys$Net$WebRequest$getResolvedUrl, + invoke: Sys$Net$WebRequest$invoke +} +Sys.Net.WebRequest._resolveUrl = function Sys$Net$WebRequest$_resolveUrl(url, baseUrl) { + if (url && url.indexOf('://') !== -1) { + return url; + } + if (!baseUrl || baseUrl.length === 0) { + var baseElement = document.getElementsByTagName('base')[0]; + if (baseElement && baseElement.href && baseElement.href.length > 0) { + baseUrl = baseElement.href; + } + else { + baseUrl = document.URL; + } + } + var qsStart = baseUrl.indexOf('?'); + if (qsStart !== -1) { + baseUrl = baseUrl.substr(0, qsStart); + } + qsStart = baseUrl.indexOf('#'); + if (qsStart !== -1) { + baseUrl = baseUrl.substr(0, qsStart); + } + baseUrl = baseUrl.substr(0, baseUrl.lastIndexOf('/') + 1); + if (!url || url.length === 0) { + return baseUrl; + } + if (url.charAt(0) === '/') { + var slashslash = baseUrl.indexOf('://'); + if (slashslash === -1) { + throw Error.argument("baseUrl", Sys.Res.badBaseUrl1); + } + var nextSlash = baseUrl.indexOf('/', slashslash + 3); + if (nextSlash === -1) { + throw Error.argument("baseUrl", Sys.Res.badBaseUrl2); + } + return baseUrl.substr(0, nextSlash) + url; + } + else { + var lastSlash = baseUrl.lastIndexOf('/'); + if (lastSlash === -1) { + throw Error.argument("baseUrl", Sys.Res.badBaseUrl3); + } + return baseUrl.substr(0, lastSlash+1) + url; + } +} +Sys.Net.WebRequest._createQueryString = function Sys$Net$WebRequest$_createQueryString(queryString, encodeMethod, addParams) { + encodeMethod = encodeMethod || encodeURIComponent; + var i = 0, obj, val, arg, sb = new Sys.StringBuilder(); + if (queryString) { + for (arg in queryString) { + obj = queryString[arg]; + if (typeof(obj) === "function") continue; + val = Sys.Serialization.JavaScriptSerializer.serialize(obj); + if (i++) { + sb.append('&'); + } + sb.append(arg); + sb.append('='); + sb.append(encodeMethod(val)); + } + } + if (addParams) { + if (i) { + sb.append('&'); + } + sb.append(addParams); + } + return sb.toString(); +} +Sys.Net.WebRequest._createUrl = function Sys$Net$WebRequest$_createUrl(url, queryString, addParams) { + if (!queryString && !addParams) { + return url; + } + var qs = Sys.Net.WebRequest._createQueryString(queryString, null, addParams); + return qs.length + ? url + ((url && url.indexOf('?') >= 0) ? "&" : "?") + qs + : url; +} +Sys.Net.WebRequest.registerClass('Sys.Net.WebRequest'); + +Sys._ScriptLoaderTask = function Sys$_ScriptLoaderTask(scriptElement, completedCallback) { + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "scriptElement", domElement: true}, + {name: "completedCallback", type: Function} + ]); + if (e) throw e; + this._scriptElement = scriptElement; + this._completedCallback = completedCallback; +} + function Sys$_ScriptLoaderTask$get_scriptElement() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._scriptElement; + } + function Sys$_ScriptLoaderTask$dispose() { + if(this._disposed) { + return; + } + this._disposed = true; + this._removeScriptElementHandlers(); + Sys._ScriptLoaderTask._clearScript(this._scriptElement); + this._scriptElement = null; + } + function Sys$_ScriptLoaderTask$execute() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + this._addScriptElementHandlers(); + var headElements = document.getElementsByTagName('head'); + if (headElements.length === 0) { + throw new Error.invalidOperation(Sys.Res.scriptLoadFailedNoHead); + } + else { + headElements[0].appendChild(this._scriptElement); + } + } + function Sys$_ScriptLoaderTask$_addScriptElementHandlers() { + this._scriptLoadDelegate = Function.createDelegate(this, this._scriptLoadHandler); + + if (Sys.Browser.agent !== Sys.Browser.InternetExplorer) { + this._scriptElement.readyState = 'loaded'; + $addHandler(this._scriptElement, 'load', this._scriptLoadDelegate); + } + else { + $addHandler(this._scriptElement, 'readystatechange', this._scriptLoadDelegate); + } + if (this._scriptElement.addEventListener) { + this._scriptErrorDelegate = Function.createDelegate(this, this._scriptErrorHandler); + this._scriptElement.addEventListener('error', this._scriptErrorDelegate, false); + } + } + function Sys$_ScriptLoaderTask$_removeScriptElementHandlers() { + if(this._scriptLoadDelegate) { + var scriptElement = this.get_scriptElement(); + if (Sys.Browser.agent !== Sys.Browser.InternetExplorer) { + $removeHandler(scriptElement, 'load', this._scriptLoadDelegate); + } + else { + $removeHandler(scriptElement, 'readystatechange', this._scriptLoadDelegate); + } + if (this._scriptErrorDelegate) { + this._scriptElement.removeEventListener('error', this._scriptErrorDelegate, false); + this._scriptErrorDelegate = null; + } + this._scriptLoadDelegate = null; + } + } + function Sys$_ScriptLoaderTask$_scriptErrorHandler() { + if(this._disposed) { + return; + } + + this._completedCallback(this.get_scriptElement(), false); + } + function Sys$_ScriptLoaderTask$_scriptLoadHandler() { + if(this._disposed) { + return; + } + var scriptElement = this.get_scriptElement(); + if ((scriptElement.readyState !== 'loaded') && + (scriptElement.readyState !== 'complete')) { + return; + } + + this._completedCallback(scriptElement, true); + } +Sys._ScriptLoaderTask.prototype = { + get_scriptElement: Sys$_ScriptLoaderTask$get_scriptElement, + dispose: Sys$_ScriptLoaderTask$dispose, + execute: Sys$_ScriptLoaderTask$execute, + _addScriptElementHandlers: Sys$_ScriptLoaderTask$_addScriptElementHandlers, + _removeScriptElementHandlers: Sys$_ScriptLoaderTask$_removeScriptElementHandlers, + _scriptErrorHandler: Sys$_ScriptLoaderTask$_scriptErrorHandler, + _scriptLoadHandler: Sys$_ScriptLoaderTask$_scriptLoadHandler +} +Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask", null, Sys.IDisposable); +Sys._ScriptLoaderTask._clearScript = function Sys$_ScriptLoaderTask$_clearScript(scriptElement) { + if (!Sys.Debug.isDebug) { + scriptElement.parentNode.removeChild(scriptElement); + } +} +Type.registerNamespace('Sys.Net'); + +Sys.Net.WebServiceProxy = function Sys$Net$WebServiceProxy() { +} + function Sys$Net$WebServiceProxy$get_timeout() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._timeout || 0; + } + function Sys$Net$WebServiceProxy$set_timeout(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Number}]); + if (e) throw e; + if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); } + this._timeout = value; + } + function Sys$Net$WebServiceProxy$get_defaultUserContext() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return (typeof(this._userContext) === "undefined") ? null : this._userContext; + } + function Sys$Net$WebServiceProxy$set_defaultUserContext(value) { + var e = Function._validateParams(arguments, [{name: "value", mayBeNull: true}]); + if (e) throw e; + this._userContext = value; + } + function Sys$Net$WebServiceProxy$get_defaultSucceededCallback() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._succeeded || null; + } + function Sys$Net$WebServiceProxy$set_defaultSucceededCallback(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Function, mayBeNull: true}]); + if (e) throw e; + this._succeeded = value; + } + function Sys$Net$WebServiceProxy$get_defaultFailedCallback() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._failed || null; + } + function Sys$Net$WebServiceProxy$set_defaultFailedCallback(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Function, mayBeNull: true}]); + if (e) throw e; + this._failed = value; + } + function Sys$Net$WebServiceProxy$get_enableJsonp() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return !!this._jsonp; + } + function Sys$Net$WebServiceProxy$set_enableJsonp(value) { + var e = Function._validateParams(arguments, [{name: "value", type: Boolean}]); + if (e) throw e; + this._jsonp = value; + } + function Sys$Net$WebServiceProxy$get_path() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._path || null; + } + function Sys$Net$WebServiceProxy$set_path(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + this._path = value; + } + function Sys$Net$WebServiceProxy$get_jsonpCallbackParameter() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._callbackParameter || "callback"; + } + function Sys$Net$WebServiceProxy$set_jsonpCallbackParameter(value) { + var e = Function._validateParams(arguments, [{name: "value", type: String}]); + if (e) throw e; + this._callbackParameter = value; + } + function Sys$Net$WebServiceProxy$_invoke(servicePath, methodName, useGet, params, onSuccess, onFailure, userContext) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "servicePath", type: String}, + {name: "methodName", type: String}, + {name: "useGet", type: Boolean}, + {name: "params"}, + {name: "onSuccess", type: Function, mayBeNull: true, optional: true}, + {name: "onFailure", type: Function, mayBeNull: true, optional: true}, + {name: "userContext", mayBeNull: true, optional: true} + ]); + if (e) throw e; + onSuccess = onSuccess || this.get_defaultSucceededCallback(); + onFailure = onFailure || this.get_defaultFailedCallback(); + if (userContext === null || typeof userContext === 'undefined') userContext = this.get_defaultUserContext(); + return Sys.Net.WebServiceProxy.invoke(servicePath, methodName, useGet, params, onSuccess, onFailure, userContext, this.get_timeout(), this.get_enableJsonp(), this.get_jsonpCallbackParameter()); + } +Sys.Net.WebServiceProxy.prototype = { + get_timeout: Sys$Net$WebServiceProxy$get_timeout, + set_timeout: Sys$Net$WebServiceProxy$set_timeout, + get_defaultUserContext: Sys$Net$WebServiceProxy$get_defaultUserContext, + set_defaultUserContext: Sys$Net$WebServiceProxy$set_defaultUserContext, + get_defaultSucceededCallback: Sys$Net$WebServiceProxy$get_defaultSucceededCallback, + set_defaultSucceededCallback: Sys$Net$WebServiceProxy$set_defaultSucceededCallback, + get_defaultFailedCallback: Sys$Net$WebServiceProxy$get_defaultFailedCallback, + set_defaultFailedCallback: Sys$Net$WebServiceProxy$set_defaultFailedCallback, + get_enableJsonp: Sys$Net$WebServiceProxy$get_enableJsonp, + set_enableJsonp: Sys$Net$WebServiceProxy$set_enableJsonp, + get_path: Sys$Net$WebServiceProxy$get_path, + set_path: Sys$Net$WebServiceProxy$set_path, + get_jsonpCallbackParameter: Sys$Net$WebServiceProxy$get_jsonpCallbackParameter, + set_jsonpCallbackParameter: Sys$Net$WebServiceProxy$set_jsonpCallbackParameter, + _invoke: Sys$Net$WebServiceProxy$_invoke +} +Sys.Net.WebServiceProxy.registerClass('Sys.Net.WebServiceProxy'); +Sys.Net.WebServiceProxy.invoke = function Sys$Net$WebServiceProxy$invoke(servicePath, methodName, useGet, params, onSuccess, onFailure, userContext, timeout, enableJsonp, jsonpCallbackParameter) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "servicePath", type: String}, + {name: "methodName", type: String, mayBeNull: true, optional: true}, + {name: "useGet", type: Boolean, optional: true}, + {name: "params", mayBeNull: true, optional: true}, + {name: "onSuccess", type: Function, mayBeNull: true, optional: true}, + {name: "onFailure", type: Function, mayBeNull: true, optional: true}, + {name: "userContext", mayBeNull: true, optional: true}, + {name: "timeout", type: Number, optional: true}, + {name: "enableJsonp", type: Boolean, mayBeNull: true, optional: true}, + {name: "jsonpCallbackParameter", type: String, mayBeNull: true, optional: true} + ]); + if (e) throw e; + var schemeHost = (enableJsonp !== false) ? Sys.Net.WebServiceProxy._xdomain.exec(servicePath) : null, + tempCallback, jsonp = schemeHost && (schemeHost.length === 3) && + ((schemeHost[1] !== location.protocol) || (schemeHost[2] !== location.host)); + useGet = jsonp || useGet; + if (jsonp) { + jsonpCallbackParameter = jsonpCallbackParameter || "callback"; + tempCallback = "_jsonp" + Sys._jsonp++; + } + if (!params) params = {}; + var urlParams = params; + if (!useGet || !urlParams) urlParams = {}; + var script, error, timeoutcookie = null, loader, body = null, + url = Sys.Net.WebRequest._createUrl(methodName + ? (servicePath+"/"+encodeURIComponent(methodName)) + : servicePath, urlParams, jsonp ? (jsonpCallbackParameter + "=Sys." + tempCallback) : null); + if (jsonp) { + script = document.createElement("script"); + script.src = url; + loader = new Sys._ScriptLoaderTask(script, function(script, loaded) { + if (!loaded || tempCallback) { + jsonpComplete({ Message: String.format(Sys.Res.webServiceFailedNoMsg, methodName) }, -1); + } + }); + function jsonpComplete(data, statusCode) { + if (timeoutcookie !== null) { + window.clearTimeout(timeoutcookie); + timeoutcookie = null; + } + loader.dispose(); + delete Sys[tempCallback]; + tempCallback = null; + if ((typeof(statusCode) !== "undefined") && (statusCode !== 200)) { + if (onFailure) { + error = new Sys.Net.WebServiceError(false, + data.Message || String.format(Sys.Res.webServiceFailedNoMsg, methodName), + data.StackTrace || null, + data.ExceptionType || null, + data); + error._statusCode = statusCode; + onFailure(error, userContext, methodName); + } + else { + if (data.StackTrace && data.Message) { + error = data.StackTrace + "-- " + data.Message; + } + else { + error = data.StackTrace || data.Message; + } + error = String.format(error ? Sys.Res.webServiceFailed : Sys.Res.webServiceFailedNoMsg, methodName, error); + throw Sys.Net.WebServiceProxy._createFailedError(methodName, String.format(Sys.Res.webServiceFailed, methodName, error)); + } + } + else if (onSuccess) { + onSuccess(data, userContext, methodName); + } + } + Sys[tempCallback] = jsonpComplete; + loader.execute(); + return null; + } + var request = new Sys.Net.WebRequest(); + request.set_url(url); + request.get_headers()['Content-Type'] = 'application/json; charset=utf-8'; + if (!useGet) { + body = Sys.Serialization.JavaScriptSerializer.serialize(params); + if (body === "{}") body = ""; + } + request.set_body(body); + request.add_completed(onComplete); + if (timeout && timeout > 0) request.set_timeout(timeout); + request.invoke(); + + function onComplete(response, eventArgs) { + if (response.get_responseAvailable()) { + var statusCode = response.get_statusCode(); + var result = null; + + try { + var contentType = response.getResponseHeader("Content-Type"); + if (contentType.startsWith("application/json")) { + result = response.get_object(); + } + else if (contentType.startsWith("text/xml")) { + result = response.get_xml(); + } + else { + result = response.get_responseData(); + } + } catch (ex) { + } + var error = response.getResponseHeader("jsonerror"); + var errorObj = (error === "true"); + if (errorObj) { + if (result) { + result = new Sys.Net.WebServiceError(false, result.Message, result.StackTrace, result.ExceptionType, result); + } + } + else if (contentType.startsWith("application/json")) { + result = (!result || (typeof(result.d) === "undefined")) ? result : result.d; + } + if (((statusCode < 200) || (statusCode >= 300)) || errorObj) { + if (onFailure) { + if (!result || !errorObj) { + result = new Sys.Net.WebServiceError(false , String.format(Sys.Res.webServiceFailedNoMsg, methodName)); + } + result._statusCode = statusCode; + onFailure(result, userContext, methodName); + } + else { + if (result && errorObj) { + error = result.get_exceptionType() + "-- " + result.get_message(); + } + else { + error = response.get_responseData(); + } + throw Sys.Net.WebServiceProxy._createFailedError(methodName, String.format(Sys.Res.webServiceFailed, methodName, error)); + } + } + else if (onSuccess) { + onSuccess(result, userContext, methodName); + } + } + else { + var msg; + if (response.get_timedOut()) { + msg = String.format(Sys.Res.webServiceTimedOut, methodName); + } + else { + msg = String.format(Sys.Res.webServiceFailedNoMsg, methodName) + } + if (onFailure) { + onFailure(new Sys.Net.WebServiceError(response.get_timedOut(), msg, "", ""), userContext, methodName); + } + else { + throw Sys.Net.WebServiceProxy._createFailedError(methodName, msg); + } + } + } + return request; +} +Sys.Net.WebServiceProxy._createFailedError = function Sys$Net$WebServiceProxy$_createFailedError(methodName, errorMessage) { + var displayMessage = "Sys.Net.WebServiceFailedException: " + errorMessage; + var e = Error.create(displayMessage, { 'name': 'Sys.Net.WebServiceFailedException', 'methodName': methodName }); + e.popStackFrame(); + return e; +} +Sys.Net.WebServiceProxy._defaultFailedCallback = function Sys$Net$WebServiceProxy$_defaultFailedCallback(err, methodName) { + var error = err.get_exceptionType() + "-- " + err.get_message(); + throw Sys.Net.WebServiceProxy._createFailedError(methodName, String.format(Sys.Res.webServiceFailed, methodName, error)); +} +Sys.Net.WebServiceProxy._generateTypedConstructor = function Sys$Net$WebServiceProxy$_generateTypedConstructor(type) { + return function(properties) { + if (properties) { + for (var name in properties) { + this[name] = properties[name]; + } + } + this.__type = type; + } +} +Sys._jsonp = 0; +Sys.Net.WebServiceProxy._xdomain = /^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/; + +Sys.Net.WebServiceError = function Sys$Net$WebServiceError(timedOut, message, stackTrace, exceptionType, errorObject) { + /// + /// + /// + /// + /// + /// + var e = Function._validateParams(arguments, [ + {name: "timedOut", type: Boolean}, + {name: "message", type: String, mayBeNull: true}, + {name: "stackTrace", type: String, mayBeNull: true, optional: true}, + {name: "exceptionType", type: String, mayBeNull: true, optional: true}, + {name: "errorObject", type: Object, mayBeNull: true, optional: true} + ]); + if (e) throw e; + this._timedOut = timedOut; + this._message = message; + this._stackTrace = stackTrace; + this._exceptionType = exceptionType; + this._errorObject = errorObject; + this._statusCode = -1; +} + function Sys$Net$WebServiceError$get_timedOut() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._timedOut; + } + function Sys$Net$WebServiceError$get_statusCode() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._statusCode; + } + function Sys$Net$WebServiceError$get_message() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._message; + } + function Sys$Net$WebServiceError$get_stackTrace() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._stackTrace || ""; + } + function Sys$Net$WebServiceError$get_exceptionType() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._exceptionType || ""; + } + function Sys$Net$WebServiceError$get_errorObject() { + /// + if (arguments.length !== 0) throw Error.parameterCount(); + return this._errorObject || null; + } +Sys.Net.WebServiceError.prototype = { + get_timedOut: Sys$Net$WebServiceError$get_timedOut, + get_statusCode: Sys$Net$WebServiceError$get_statusCode, + get_message: Sys$Net$WebServiceError$get_message, + get_stackTrace: Sys$Net$WebServiceError$get_stackTrace, + get_exceptionType: Sys$Net$WebServiceError$get_exceptionType, + get_errorObject: Sys$Net$WebServiceError$get_errorObject +} +Sys.Net.WebServiceError.registerClass('Sys.Net.WebServiceError'); + + +Type.registerNamespace('Sys'); + +Sys.Res={ +'urlMustBeLessThan1024chars':'The history state must be small enough to not make the url larger than 1024 characters.', +'argumentTypeName':'Value is not the name of an existing type.', +'cantBeCalledAfterDispose':'Can\'t be called after dispose.', +'componentCantSetIdAfterAddedToApp':'The id property of a component can\'t be set after it\'s been added to the Application object.', +'behaviorDuplicateName':'A behavior with name \'{0}\' already exists or it is the name of an existing property on the target element.', +'notATypeName':'Value is not a valid type name.', +'elementNotFound':'An element with id \'{0}\' could not be found.', +'stateMustBeStringDictionary':'The state object can only have null and string fields.', +'boolTrueOrFalse':'Value must be \'true\' or \'false\'.', +'scriptLoadFailedNoHead':'ScriptLoader requires pages to contain a element.', +'stringFormatInvalid':'The format string is invalid.', +'referenceNotFound':'Component \'{0}\' was not found.', +'enumReservedName':'\'{0}\' is a reserved name that can\'t be used as an enum value name.', +'circularParentChain':'The chain of control parents can\'t have circular references.', +'namespaceContainsNonObject':'Object {0} already exists and is not an object.', +'undefinedEvent':'\'{0}\' is not an event.', +'propertyUndefined':'\'{0}\' is not a property or an existing field.', +'observableConflict':'Object already contains a member with the name \'{0}\'.', +'historyCannotEnableHistory':'Cannot set enableHistory after initialization.', +'eventHandlerInvalid':'Handler was not added through the Sys.UI.DomEvent.addHandler method.', +'scriptLoadFailedDebug':'The script \'{0}\' failed to load. Check for:\r\n Inaccessible path.\r\n Script errors. (IE) Enable \'Display a notification about every script error\' under advanced settings.', +'propertyNotWritable':'\'{0}\' is not a writable property.', +'enumInvalidValueName':'\'{0}\' is not a valid name for an enum value.', +'controlAlreadyDefined':'A control is already associated with the element.', +'addHandlerCantBeUsedForError':'Can\'t add a handler for the error event using this method. Please set the window.onerror property instead.', +'cantAddNonFunctionhandler':'Can\'t add a handler that is not a function.', +'invalidNameSpace':'Value is not a valid namespace identifier.', +'notAnInterface':'Value is not a valid interface.', +'eventHandlerNotFunction':'Handler must be a function.', +'propertyNotAnArray':'\'{0}\' is not an Array property.', +'namespaceContainsClass':'Object {0} already exists as a class, enum, or interface.', +'typeRegisteredTwice':'Type {0} has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.', +'cantSetNameAfterInit':'The name property can\'t be set on this object after initialization.', +'historyMissingFrame':'For the history feature to work in IE, the page must have an iFrame element with id \'__historyFrame\' pointed to a page that gets its title from the \'title\' query string parameter and calls Sys.Application._onIFrameLoad() on the parent window. This can be done by setting EnableHistory to true on ScriptManager.', +'appDuplicateComponent':'Two components with the same id \'{0}\' can\'t be added to the application.', +'historyCannotAddHistoryPointWithHistoryDisabled':'A history point can only be added if enableHistory is set to true.', +'baseNotAClass':'Value is not a class.', +'expectedElementOrId':'Value must be a DOM element or DOM element Id.', +'methodNotFound':'No method found with name \'{0}\'.', +'arrayParseBadFormat':'Value must be a valid string representation for an array. It must start with a \'[\' and end with a \']\'.', +'stateFieldNameInvalid':'State field names must not contain any \'=\' characters.', +'cantSetId':'The id property can\'t be set on this object.', +'stringFormatBraceMismatch':'The format string contains an unmatched opening or closing brace.', +'enumValueNotInteger':'An enumeration definition can only contain integer values.', +'propertyNullOrUndefined':'Cannot set the properties of \'{0}\' because it returned a null value.', +'argumentDomNode':'Value must be a DOM element or a text node.', +'componentCantSetIdTwice':'The id property of a component can\'t be set more than once.', +'createComponentOnDom':'Value must be null for Components that are not Controls or Behaviors.', +'createNotComponent':'{0} does not derive from Sys.Component.', +'createNoDom':'Value must not be null for Controls and Behaviors.', +'cantAddWithoutId':'Can\'t add a component that doesn\'t have an id.', +'notObservable':'Instances of type \'{0}\' cannot be observed.', +'badTypeName':'Value is not the name of the type being registered or the name is a reserved word.', +'argumentInteger':'Value must be an integer.', +'invokeCalledTwice':'Cannot call invoke more than once.', +'webServiceFailed':'The server method \'{0}\' failed with the following error: {1}', +'argumentType':'Object cannot be converted to the required type.', +'argumentNull':'Value cannot be null.', +'scriptAlreadyLoaded':'The script \'{0}\' has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit.', +'scriptDependencyNotFound':'The script \'{0}\' failed to load because it is dependent on script \'{1}\'.', +'formatBadFormatSpecifier':'Format specifier was invalid.', +'requiredScriptReferenceNotIncluded':'\'{0}\' requires that you have included a script reference to \'{1}\'.', +'webServiceFailedNoMsg':'The server method \'{0}\' failed.', +'argumentDomElement':'Value must be a DOM element.', +'invalidExecutorType':'Could not create a valid Sys.Net.WebRequestExecutor from: {0}.', +'cannotCallBeforeResponse':'Cannot call {0} when responseAvailable is false.', +'actualValue':'Actual value was {0}.', +'enumInvalidValue':'\'{0}\' is not a valid value for enum {1}.', +'scriptLoadFailed':'The script \'{0}\' could not be loaded.', +'parameterCount':'Parameter count mismatch.', +'cannotDeserializeEmptyString':'Cannot deserialize empty string.', +'formatInvalidString':'Input string was not in a correct format.', +'invalidTimeout':'Value must be greater than or equal to zero.', +'cannotAbortBeforeStart':'Cannot abort when executor has not started.', +'argument':'Value does not fall within the expected range.', +'cannotDeserializeInvalidJson':'Cannot deserialize. The data does not correspond to valid JSON.', +'invalidHttpVerb':'httpVerb cannot be set to an empty or null string.', +'nullWebRequest':'Cannot call executeRequest with a null webRequest.', +'eventHandlerInvalid':'Handler was not added through the Sys.UI.DomEvent.addHandler method.', +'cannotSerializeNonFiniteNumbers':'Cannot serialize non finite numbers.', +'argumentUndefined':'Value cannot be undefined.', +'webServiceInvalidReturnType':'The server method \'{0}\' returned an invalid type. Expected type: {1}', +'servicePathNotSet':'The path to the web service has not been set.', +'argumentTypeWithTypes':'Object of type \'{0}\' cannot be converted to type \'{1}\'.', +'cannotCallOnceStarted':'Cannot call {0} once started.', +'badBaseUrl1':'Base URL does not contain ://.', +'badBaseUrl2':'Base URL does not contain another /.', +'badBaseUrl3':'Cannot find last / in base URL.', +'setExecutorAfterActive':'Cannot set executor after it has become active.', +'paramName':'Parameter name: {0}', +'nullReferenceInPath':'Null reference while evaluating data path: \'{0}\'.', +'cannotCallOutsideHandler':'Cannot call {0} outside of a completed event handler.', +'cannotSerializeObjectWithCycle':'Cannot serialize object with cyclic reference within child properties.', +'format':'One of the identified items was in an invalid format.', +'assertFailedCaller':'Assertion Failed: {0}\r\nat {1}', +'argumentOutOfRange':'Specified argument was out of the range of valid values.', +'webServiceTimedOut':'The server method \'{0}\' timed out.', +'notImplemented':'The method or operation is not implemented.', +'assertFailed':'Assertion Failed: {0}', +'invalidOperation':'Operation is not valid due to the current state of the object.', +'breakIntoDebugger':'{0}\r\n\r\nBreak into debugger?' +}; diff --git a/NzbDrone.Web/Scripts/Plugins/MicrosoftAjax.js b/NzbDrone.Web/Scripts/Plugins/MicrosoftAjax.js new file mode 100644 index 000000000..52e6626a0 --- /dev/null +++ b/NzbDrone.Web/Scripts/Plugins/MicrosoftAjax.js @@ -0,0 +1,6 @@ +//---------------------------------------------------------- +// Copyright (C) Microsoft Corporation. All rights reserved. +//---------------------------------------------------------- +// MicrosoftAjax.js +Function.__typeName="Function";Function.__class=true;Function.createCallback=function(b,a){return function(){var e=arguments.length;if(e>0){var d=[];for(var c=0;c=d)break;a=Function._validateParameter(g[b],f,h);if(a){a.popStackFrame();return a}}return null};Function._validateParameterCount=function(j,d,i){var a,c,b=d.length,e=j.length;if(eb){c=true;for(a=0;a0&&(d=0};Array.dequeue=function(a){return a.shift()};Array.forEach=function(b,e,d){for(var a=0,f=b.length;a=0)b.splice(a,1);return a>=0};Array.removeAt=function(a,b){a.splice(b,1)};Sys._indexOf=function(d,e,a){if(typeof e==="undefined")return -1;var c=d.length;if(c!==0){a=a-0;if(isNaN(a))a=0;else{if(isFinite(a))a=a-a%1;if(a<0)a=Math.max(0,c+a)}for(var b=a;b-1){Sys.Browser.agent=Sys.Browser.InternetExplorer;Sys.Browser.version=parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]);if(Sys.Browser.version>=8)if(document.documentMode>=7)Sys.Browser.documentMode=document.documentMode;Sys.Browser.hasDebuggerStatement=true}else if(navigator.userAgent.indexOf(" Firefox/")>-1){Sys.Browser.agent=Sys.Browser.Firefox;Sys.Browser.version=parseFloat(navigator.userAgent.match(/Firefox\/(\d+\.\d+)/)[1]);Sys.Browser.name="Firefox";Sys.Browser.hasDebuggerStatement=true}else if(navigator.userAgent.indexOf(" AppleWebKit/")>-1){Sys.Browser.agent=Sys.Browser.Safari;Sys.Browser.version=parseFloat(navigator.userAgent.match(/AppleWebKit\/(\d+(\.\d+)?)/)[1]);Sys.Browser.name="Safari"}else if(navigator.userAgent.indexOf("Opera/")>-1)Sys.Browser.agent=Sys.Browser.Opera;Sys.EventArgs=function(){};Sys.EventArgs.registerClass("Sys.EventArgs");Sys.EventArgs.Empty=new Sys.EventArgs;Sys.CancelEventArgs=function(){Sys.CancelEventArgs.initializeBase(this);this._cancel=false};Sys.CancelEventArgs.prototype={get_cancel:function(){return this._cancel},set_cancel:function(a){this._cancel=a}};Sys.CancelEventArgs.registerClass("Sys.CancelEventArgs",Sys.EventArgs);Type.registerNamespace("Sys.UI");Sys._Debug=function(){};Sys._Debug.prototype={_appendConsole:function(a){if(typeof Debug!=="undefined"&&Debug.writeln)Debug.writeln(a);if(window.console&&window.console.log)window.console.log(a);if(window.opera)window.opera.postError(a);if(window.debugService)window.debugService.trace(a)},_appendTrace:function(b){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA")a.value+=b+"\n"},assert:function(c,a,b){if(!c){a=b&&this.assert.caller?String.format(Sys.Res.assertFailedCaller,a,this.assert.caller):String.format(Sys.Res.assertFailed,a);if(confirm(String.format(Sys.Res.breakIntoDebugger,a)))this.fail(a)}},clearTrace:function(){var a=document.getElementById("TraceConsole");if(a&&a.tagName.toUpperCase()==="TEXTAREA")a.value=""},fail:function(message){this._appendConsole(message);if(Sys.Browser.hasDebuggerStatement)eval("debugger")},trace:function(a){this._appendConsole(a);this._appendTrace(a)},traceDump:function(a,b){var c=this._traceDump(a,b,true)},_traceDump:function(a,c,f,b,d){c=c?c:"traceDump";b=b?b:"";if(a===null){this.trace(b+c+": null");return}switch(typeof a){case "undefined":this.trace(b+c+": Undefined");break;case "number":case "string":case "boolean":this.trace(b+c+": "+a);break;default:if(Date.isInstanceOfType(a)||RegExp.isInstanceOfType(a)){this.trace(b+c+": "+a.toString());break}if(!d)d=[];else if(Array.contains(d,a)){this.trace(b+c+": ...");return}Array.add(d,a);if(a==window||a===document||window.HTMLElement&&a instanceof HTMLElement||typeof a.nodeName==="string"){var k=a.tagName?a.tagName:"DomElement";if(a.id)k+=" - "+a.id;this.trace(b+c+" {"+k+"}")}else{var i=Object.getTypeName(a);this.trace(b+c+(typeof i==="string"?" {"+i+"}":""));if(b===""||f){b+=" ";var e,j,l,g,h;if(Array.isInstanceOfType(a)){j=a.length;for(e=0;e=0;d--){var k=h[d].trim();b=a[k];if(typeof b!=="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,c.split(",")[d].trim(),this.__typeName));j|=b}return j}}function Sys$Enum$toString(c){if(typeof c==="undefined"||c===null)return this.__string;var d=this.prototype,a;if(!this.__flags||c===0){for(a in d)if(d[a]===c)return a}else{var b=this.__sortedValues;if(!b){b=[];for(a in d)b[b.length]={key:a,value:d[a]};b.sort(function(a,b){return a.value-b.value});this.__sortedValues=b}var e=[],g=c;for(a=b.length-1;a>=0;a--){var h=b[a],f=h.value;if(f===0)continue;if((f&c)===f){e[e.length]=h.key;g-=f;if(g===0)break}}if(e.length&&g===0)return e.reverse().join(", ")}return ""}Type.prototype.registerEnum=function(b,c){Sys.__upperCaseTypes[b.toUpperCase()]=this;for(var a in this.prototype)this[a]=this.prototype[a];this.__typeName=b;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=c;this.__enum=true};Type.isEnum=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__enum};Type.isFlags=function(a){if(typeof a==="undefined"||a===null)return false;return !!a.__flags};Sys.CollectionChange=function(e,a,c,b,d){this.action=e;if(a)if(!(a instanceof Array))a=[a];this.newItems=a||null;if(typeof c!=="number")c=-1;this.newStartingIndex=c;if(b)if(!(b instanceof Array))b=[b];this.oldItems=b||null;if(typeof d!=="number")d=-1;this.oldStartingIndex=d};Sys.CollectionChange.registerClass("Sys.CollectionChange");Sys.NotifyCollectionChangedAction=function(){throw Error.notImplemented()};Sys.NotifyCollectionChangedAction.prototype={add:0,remove:1,reset:2};Sys.NotifyCollectionChangedAction.registerEnum("Sys.NotifyCollectionChangedAction");Sys.NotifyCollectionChangedEventArgs=function(a){this._changes=a;Sys.NotifyCollectionChangedEventArgs.initializeBase(this)};Sys.NotifyCollectionChangedEventArgs.prototype={get_changes:function(){return this._changes||[]}};Sys.NotifyCollectionChangedEventArgs.registerClass("Sys.NotifyCollectionChangedEventArgs",Sys.EventArgs);Sys.Observer=function(){};Sys.Observer.registerClass("Sys.Observer");Sys.Observer.makeObservable=function(a){var c=a instanceof Array,b=Sys.Observer;if(a.setValue===b._observeMethods.setValue)return a;b._addMethods(a,b._observeMethods);if(c)b._addMethods(a,b._arrayMethods);return a};Sys.Observer._addMethods=function(c,b){for(var a in b)c[a]=b[a]};Sys.Observer._addEventHandler=function(c,a,b){Sys.Observer._getContext(c,true).events._addHandler(a,b)};Sys.Observer.addEventHandler=function(c,a,b){Sys.Observer._addEventHandler(c,a,b)};Sys.Observer._removeEventHandler=function(c,a,b){Sys.Observer._getContext(c,true).events._removeHandler(a,b)};Sys.Observer.removeEventHandler=function(c,a,b){Sys.Observer._removeEventHandler(c,a,b)};Sys.Observer.raiseEvent=function(b,e,d){var c=Sys.Observer._getContext(b);if(!c)return;var a=c.events.getHandler(e);if(a)a(b,d)};Sys.Observer.addPropertyChanged=function(b,a){Sys.Observer._addEventHandler(b,"propertyChanged",a)};Sys.Observer.removePropertyChanged=function(b,a){Sys.Observer._removeEventHandler(b,"propertyChanged",a)};Sys.Observer.beginUpdate=function(a){Sys.Observer._getContext(a,true).updating=true};Sys.Observer.endUpdate=function(b){var a=Sys.Observer._getContext(b);if(!a||!a.updating)return;a.updating=false;var d=a.dirty;a.dirty=false;if(d){if(b instanceof Array){var c=a.changes;a.changes=null;Sys.Observer.raiseCollectionChanged(b,c)}Sys.Observer.raisePropertyChanged(b,"")}};Sys.Observer.isUpdating=function(b){var a=Sys.Observer._getContext(b);return a?a.updating:false};Sys.Observer._setValue=function(a,j,g){var b,f,k=a,d=j.split(".");for(var i=0,m=d.length-1;i-1&&ac.Calendar.TwoDigitYearMax)a-=100}return a};Date._getEra=function(e,c){if(!c)return 0;var b,d=e.getTime();for(var a=0,f=c.length;a=b)return a}return 0};Date._getEraYear=function(d,b,e,c){var a=d.getFullYear();if(!c&&b.eras)a-=b.eras[e+3];return a};Date._getParseRegExp=function(b,e){if(!b._parseRegExp)b._parseRegExp={};else if(b._parseRegExp[e])return b._parseRegExp[e];var c=Date._expandFormat(b,e);c=c.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");var a=new Sys.StringBuilder("^"),j=[],f=0,i=0,h=Date._getTokenRegExp(),d;while((d=h.exec(c))!==null){var l=c.slice(f,d.index);f=h.lastIndex;i+=Date._appendPreOrPostMatch(l,a);if(i%2===1){a.append(d[0]);continue}switch(d[0]){case "dddd":case "ddd":case "MMMM":case "MMM":case "gg":case "g":a.append("(\\D+)");break;case "tt":case "t":a.append("(\\D*)");break;case "yyyy":a.append("(\\d{4})");break;case "fff":a.append("(\\d{3})");break;case "ff":a.append("(\\d{2})");break;case "f":a.append("(\\d)");break;case "dd":case "d":case "MM":case "M":case "yy":case "y":case "HH":case "H":case "hh":case "h":case "mm":case "m":case "ss":case "s":a.append("(\\d\\d?)");break;case "zzz":a.append("([+-]?\\d\\d?:\\d{2})");break;case "zz":case "z":a.append("([+-]?\\d\\d?)");break;case "/":a.append("(\\"+b.DateSeparator+")")}Array.add(j,d[0])}Date._appendPreOrPostMatch(c.slice(f),a);a.append("$");var k=a.toString().replace(/\s+/g,"\\s+"),g={"regExp":k,"groups":j};b._parseRegExp[e]=g;return g};Date._getTokenRegExp=function(){return /\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g};Date.parseLocale=function(a){return Date._parse(a,Sys.CultureInfo.CurrentCulture,arguments)};Date.parseInvariant=function(a){return Date._parse(a,Sys.CultureInfo.InvariantCulture,arguments)};Date._parse=function(h,d,i){var a,c,b,f,e,g=false;for(a=1,c=i.length;a31)return null;break;case "MMMM":c=k._getMonthIndex(a);if(c<0||c>11)return null;break;case "MMM":c=k._getAbbrMonthIndex(a);if(c<0||c>11)return null;break;case "M":case "MM":c=parseInt(a,10)-1;if(c<0||c>11)return null;break;case "y":case "yy":e=Date._expandYear(g,parseInt(a,10));if(e<0||e>9999)return null;break;case "yyyy":e=parseInt(a,10);if(e<0||e>9999)return null;break;case "h":case "hh":d=parseInt(a,10);if(d===12)d=0;if(d<0||d>11)return null;break;case "H":case "HH":d=parseInt(a,10);if(d<0||d>23)return null;break;case "m":case "mm":q=parseInt(a,10);if(q<0||q>59)return null;break;case "s":case "ss":r=parseInt(a,10);if(r<0||r>59)return null;break;case "tt":case "t":var z=a.toUpperCase();v=z===g.PMDesignator.toUpperCase();if(!v&&z!==g.AMDesignator.toUpperCase())return null;break;case "f":f=parseInt(a,10)*100;if(f<0||f>999)return null;break;case "ff":f=parseInt(a,10)*10;if(f<0||f>999)return null;break;case "fff":f=parseInt(a,10);if(f<0||f>999)return null;break;case "dddd":i=k._getDayIndex(a);if(i<0||i>6)return null;break;case "ddd":i=k._getAbbrDayIndex(a);if(i<0||i>6)return null;break;case "zzz":var u=a.split(/:/);if(u.length!==2)return null;h=parseInt(u[0],10);if(h<-12||h>13)return null;var o=parseInt(u[1],10);if(o<0||o>59)return null;n=h*60+(a.startsWith("-")?-o:o);break;case "z":case "zz":h=parseInt(a,10);if(h<-12||h>13)return null;n=h*60;break;case "g":case "gg":var p=a;if(!p||!g.eras)return null;p=p.toLowerCase().trim();for(var s=0,F=g.eras.length;s0)return this.toLocaleString();else return this.toString();var o=["n %","n%","%n"],n=["-n %","-n%","-%n"],p=["(n)","-n","- n","n-","n -"],m=["$n","n$","$ n","n $"],l=["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"];function g(a,c,d){for(var b=a.length;b1?parseInt(e[1]):0;e=b.split(".");b=e[0];a=e.length>1?e[1]:"";var q;if(c>0){a=g(a,c,false);b+=a.slice(0,c);a=a.substr(c)}else if(c<0){c=-c;b=g(b,c+1,true);a=b.slice(-c,b.length)+a;b=b.slice(0,-c)}if(i>0){if(a.length>i)a=a.slice(0,i);else a=g(a,i,false);a=p+a}else a="";var d=b.length-1,f="";while(d>=0){if(h===0||h>d)if(f.length>0)return b.slice(0,d+1)+n+f+a;else return b.slice(0,d+1)+a;if(f.length>0)f=b.slice(d-h+1,d+1)+n+f;else f=b.slice(d-h+1,d+1);d-=h;if(k1)b=parseInt(e.slice(1),10);var c;switch(e.charAt(0)){case "d":case "D":c="n";if(b!==-1)d=g(""+d,b,true);if(this<0)d=-d;break;case "c":case "C":if(this<0)c=l[a.CurrencyNegativePattern];else c=m[a.CurrencyPositivePattern];if(b===-1)b=a.CurrencyDecimalDigits;d=i(Math.abs(this),b,a.CurrencyGroupSizes,a.CurrencyGroupSeparator,a.CurrencyDecimalSeparator);break;case "n":case "N":if(this<0)c=p[a.NumberNegativePattern];else c="n";if(b===-1)b=a.NumberDecimalDigits;d=i(Math.abs(this),b,a.NumberGroupSizes,a.NumberGroupSeparator,a.NumberDecimalSeparator);break;case "p":case "P":if(this<0)c=n[a.PercentNegativePattern];else c=o[a.PercentPositivePattern];if(b===-1)b=a.PercentDecimalDigits;d=i(Math.abs(this)*100,b,a.PercentGroupSizes,a.PercentGroupSeparator,a.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier)}var k=/n|\$|-|%/g,f="";for(;true;){var q=k.lastIndex,h=k.exec(c);f+=c.slice(q,h?h.index:c.length);if(!h)break;switch(h[0]){case "n":f+=d;break;case "$":f+=a.CurrencySymbol;break;case "-":if(/[1-9]/.test(d))f+=a.NegativeSign;break;case "%":f+=a.PercentSymbol}}return f};Sys.CultureInfo=function(c,b,a){this.name=c;this.numberFormat=b;this.dateTimeFormat=a};Sys.CultureInfo.prototype={_getDateTimeFormats:function(){if(!this._dateTimeFormats){var a=this.dateTimeFormat;this._dateTimeFormats=[a.MonthDayPattern,a.YearMonthPattern,a.ShortDatePattern,a.ShortTimePattern,a.LongDatePattern,a.LongTimePattern,a.FullDateTimePattern,a.RFC1123Pattern,a.SortableDateTimePattern,a.UniversalSortableDateTimePattern]}return this._dateTimeFormats},_getIndex:function(c,d,e){var b=this._toUpper(c),a=Array.indexOf(d,b);if(a===-1)a=Array.indexOf(e,b);return a},_getMonthIndex:function(a){if(!this._upperMonths){this._upperMonths=this._toUpperArray(this.dateTimeFormat.MonthNames);this._upperMonthsGenitive=this._toUpperArray(this.dateTimeFormat.MonthGenitiveNames)}return this._getIndex(a,this._upperMonths,this._upperMonthsGenitive)},_getAbbrMonthIndex:function(a){if(!this._upperAbbrMonths){this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames);this._upperAbbrMonthsGenitive=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthGenitiveNames)}return this._getIndex(a,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},_getDayIndex:function(a){if(!this._upperDays)this._upperDays=this._toUpperArray(this.dateTimeFormat.DayNames);return Array.indexOf(this._upperDays,this._toUpper(a))},_getAbbrDayIndex:function(a){if(!this._upperAbbrDays)this._upperAbbrDays=this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames);return Array.indexOf(this._upperAbbrDays,this._toUpper(a))},_toUpperArray:function(c){var b=[];for(var a=0,d=c.length;a0)a.append(",");Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(b[c],a,false,g)}a.append("]")}else{if(Date.isInstanceOfType(b)){a.append('"\\/Date(');a.append(b.getTime());a.append(')\\/"');break}var d=[],f=0;for(var e in b){if(e.startsWith("$"))continue;if(e===Sys.Serialization.JavaScriptSerializer._serverTypeFieldName&&f!==0){d[f++]=d[0];d[0]=e}else d[f++]=e}if(i)d.sort();a.append("{");var j=false;for(c=0;c=0;c--){var f=d[c];if(!g||f.autoRemove)$removeHandler(a,b,f.handler)}}a._events=null}};Sys.UI.DomEvent._disposeHandlers=function(){Sys.UI.DomEvent._clearHandlers(this,true);var b=this._chainDispose,a=typeof b;if(a!=="undefined"){this.dispose=b;this._chainDispose=null;if(a==="function")this.dispose()}};var $removeHandler=Sys.UI.DomEvent.removeHandler=function(b,a,c){Sys.UI.DomEvent._removeHandler(b,a,c)};Sys.UI.DomEvent._removeHandler=function(a,e,f){var d=null,c=a._events[e];for(var b=0,g=c.length;b=3){d+=parseInt(b.borderLeftWidth);e+=parseInt(b.borderTopWidth)}}b=Sys.UI.DomElement._getCurrentStyle(c);var h=b?b.position:null;if(!h||h!=="absolute")for(a=c.parentNode;a;a=a.parentNode){f=a.tagName?a.tagName.toUpperCase():null;if(f!=="BODY"&&f!=="HTML"&&(a.scrollLeft||a.scrollTop)){d-=a.scrollLeft||0;e-=a.scrollTop||0}b=Sys.UI.DomElement._getCurrentStyle(a);var i=b?b.position:null;if(i&&i==="absolute")break}return new Sys.UI.Point(d,e)};else Sys.UI.DomElement.getLocation=function(d){if(d.window&&d.window===d||d.nodeType===9)return new Sys.UI.Point(0,0);var e=0,f=0,a,i=null,g=null,b=null;for(a=d;a;i=a,(g=b,a=a.offsetParent)){var c=a.tagName?a.tagName.toUpperCase():null;b=Sys.UI.DomElement._getCurrentStyle(a);if((a.offsetLeft||a.offsetTop)&&!(c==="BODY"&&(!g||g.position!=="absolute"))){e+=a.offsetLeft;f+=a.offsetTop}if(i!==null&&b){if(c!=="TABLE"&&c!=="TD"&&c!=="HTML"){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}if(c==="TABLE"&&(b.position==="relative"||b.position==="absolute")){e+=parseInt(b.marginLeft)||0;f+=parseInt(b.marginTop)||0}}}b=Sys.UI.DomElement._getCurrentStyle(d);var h=b?b.position:null;if(!h||h!=="absolute")for(a=d.parentNode;a;a=a.parentNode){c=a.tagName?a.tagName.toUpperCase():null;if(c!=="BODY"&&c!=="HTML"&&(a.scrollLeft||a.scrollTop)){e-=a.scrollLeft||0;f-=a.scrollTop||0;b=Sys.UI.DomElement._getCurrentStyle(a);if(b){e+=parseInt(b.borderLeftWidth)||0;f+=parseInt(b.borderTopWidth)||0}}}return new Sys.UI.Point(e,f)};Sys.UI.DomElement.isDomElement=function(a){return Sys._isDomElement(a)};Sys.UI.DomElement.removeCssClass=function(d,c){var a=" "+d.className+" ",b=a.indexOf(" "+c+" ");if(b>=0)d.className=(a.substr(0,b)+" "+a.substring(b+c.length+1,a.length)).trim()};Sys.UI.DomElement.resolveElement=function(b,c){var a=b;if(!a)return null;if(typeof a==="string")a=Sys.UI.DomElement.getElementById(a,c);return a};Sys.UI.DomElement.raiseBubbleEvent=function(c,d){var b=c;while(b){var a=b.control;if(a&&a.onBubbleEvent&&a.raiseBubbleEvent){Sys.UI.DomElement._raiseBubbleEventFromControl(a,c,d);return}b=b.parentNode}};Sys.UI.DomElement._raiseBubbleEventFromControl=function(a,b,c){if(!a.onBubbleEvent(b,c))a._raiseBubbleEvent(b,c)};Sys.UI.DomElement.setLocation=function(b,c,d){var a=b.style;a.position="absolute";a.left=c+"px";a.top=d+"px"};Sys.UI.DomElement.toggleCssClass=function(b,a){if(Sys.UI.DomElement.containsCssClass(b,a))Sys.UI.DomElement.removeCssClass(b,a);else Sys.UI.DomElement.addCssClass(b,a)};Sys.UI.DomElement.getVisibilityMode=function(a){return a._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse};Sys.UI.DomElement.setVisibilityMode=function(a,b){Sys.UI.DomElement._ensureOldDisplayMode(a);if(a._visibilityMode!==b){a._visibilityMode=b;if(Sys.UI.DomElement.getVisible(a)===false)if(a._visibilityMode===Sys.UI.VisibilityMode.hide)a.style.display=a._oldDisplayMode;else a.style.display="none";a._visibilityMode=b}};Sys.UI.DomElement.getVisible=function(b){var a=b.currentStyle||Sys.UI.DomElement._getCurrentStyle(b);if(!a)return true;return a.visibility!=="hidden"&&a.display!=="none"};Sys.UI.DomElement.setVisible=function(a,b){if(b!==Sys.UI.DomElement.getVisible(a)){Sys.UI.DomElement._ensureOldDisplayMode(a);a.style.visibility=b?"visible":"hidden";if(b||a._visibilityMode===Sys.UI.VisibilityMode.hide)a.style.display=a._oldDisplayMode;else a.style.display="none"}};Sys.UI.DomElement._ensureOldDisplayMode=function(a){if(!a._oldDisplayMode){var b=a.currentStyle||Sys.UI.DomElement._getCurrentStyle(a);a._oldDisplayMode=b?b.display:null;if(!a._oldDisplayMode||a._oldDisplayMode==="none")switch(a.tagName.toUpperCase()){case "DIV":case "P":case "ADDRESS":case "BLOCKQUOTE":case "BODY":case "COL":case "COLGROUP":case "DD":case "DL":case "DT":case "FIELDSET":case "FORM":case "H1":case "H2":case "H3":case "H4":case "H5":case "H6":case "HR":case "IFRAME":case "LEGEND":case "OL":case "PRE":case "TABLE":case "TD":case "TH":case "TR":case "UL":a._oldDisplayMode="block";break;case "LI":a._oldDisplayMode="list-item";break;default:a._oldDisplayMode="inline"}}};Sys.UI.DomElement._getWindow=function(a){var b=a.ownerDocument||a.document||a;return b.defaultView||b.parentWindow};Sys.UI.DomElement._getCurrentStyle=function(a){if(a.nodeType===3)return null;var c=Sys.UI.DomElement._getWindow(a);if(a.documentElement)a=a.documentElement;var b=c&&a!==c&&c.getComputedStyle?c.getComputedStyle(a,null):a.currentStyle||a.style;if(!b&&Sys.Browser.agent===Sys.Browser.Safari&&a.style){var g=a.style.display,f=a.style.position;a.style.position="absolute";a.style.display="block";var e=c.getComputedStyle(a,null);a.style.display=g;a.style.position=f;b={};for(var d in e)b[d]=e[d];b.display="none"}return b};Sys.IContainer=function(){};Sys.IContainer.prototype={};Sys.IContainer.registerInterface("Sys.IContainer");Sys.ApplicationLoadEventArgs=function(b,a){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=b;this._isPartialLoad=a};Sys.ApplicationLoadEventArgs.prototype={get_components:function(){return this._components},get_isPartialLoad:function(){return this._isPartialLoad}};Sys.ApplicationLoadEventArgs.registerClass("Sys.ApplicationLoadEventArgs",Sys.EventArgs);Sys._Application=function(){Sys._Application.initializeBase(this);this._disposableObjects=[];this._components={};this._createdComponents=[];this._secondPassComponents=[];this._unloadHandlerDelegate=Function.createDelegate(this,this._unloadHandler);Sys.UI.DomEvent.addHandler(window,"unload",this._unloadHandlerDelegate);this._domReady()};Sys._Application.prototype={_creatingComponents:false,_disposing:false,_deleteCount:0,get_isCreatingComponents:function(){return this._creatingComponents},get_isDisposing:function(){return this._disposing},add_init:function(a){if(this._initialized)a(this,Sys.EventArgs.Empty);else this.get_events().addHandler("init",a)},remove_init:function(a){this.get_events().removeHandler("init",a)},add_load:function(a){this.get_events().addHandler("load",a)},remove_load:function(a){this.get_events().removeHandler("load",a)},add_unload:function(a){this.get_events().addHandler("unload",a)},remove_unload:function(a){this.get_events().removeHandler("unload",a)},addComponent:function(a){this._components[a.get_id()]=a},beginCreateComponents:function(){this._creatingComponents=true},dispose:function(){if(!this._disposing){this._disposing=true;if(this._timerCookie){window.clearTimeout(this._timerCookie);delete this._timerCookie}if(this._endRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler);delete this._endRequestHandler}if(this._beginRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler);delete this._beginRequestHandler}if(window.pageUnload)window.pageUnload(this,Sys.EventArgs.Empty);var c=this.get_events().getHandler("unload");if(c)c(this,Sys.EventArgs.Empty);var b=Array.clone(this._disposableObjects);for(var a=0,f=b.length;a=0;b--)this._disposeElementInternal(c[b]);if(!d)this._disposeElementInternal(a)}},endCreateComponents:function(){var b=this._secondPassComponents;for(var a=0,d=b.length;a1000){var c=[];for(var d=0,f=b.length;d=0;b--){var c=a[b];if(typeof c.dispose==="function")c.dispose()}},_disposeElementInternal:function(a){var d=a.dispose;if(d&&typeof d==="function")a.dispose();else{var c=a.control;if(c&&typeof c.dispose==="function")c.dispose()}var b=a._behaviors;if(b)this._disposeComponents(b);b=a._components;if(b){this._disposeComponents(b);a._components=null}},_domReady:function(){var a,g,f=this;function b(){f.initialize()}var c=function(){Sys.UI.DomEvent.removeHandler(window,"load",c);b()};Sys.UI.DomEvent.addHandler(window,"load",c);if(document.addEventListener)try{document.addEventListener("DOMContentLoaded",a=function(){document.removeEventListener("DOMContentLoaded",a,false);b()},false)}catch(h){}else if(document.attachEvent)if(window==window.top&&document.documentElement.doScroll){var e,d=document.createElement("div");a=function(){try{d.doScroll("left")}catch(c){e=window.setTimeout(a,0);return}d=null;b()};a()}else document.attachEvent("onreadystatechange",a=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",a);b()}})},_raiseInit:function(){var a=this.get_events().getHandler("init");if(a){this.beginCreateComponents();a(this,Sys.EventArgs.Empty);this.endCreateComponents()}},_unloadHandler:function(){this.dispose()}};Sys._Application.registerClass("Sys._Application",Sys.Component,Sys.IContainer);Sys.Application=new Sys._Application;var $find=Sys.Application.findComponent;Sys.UI.Behavior=function(b){Sys.UI.Behavior.initializeBase(this);this._element=b;var a=b._behaviors;if(!a)b._behaviors=[this];else a[a.length]=this};Sys.UI.Behavior.prototype={_name:null,get_element:function(){return this._element},get_id:function(){var a=Sys.UI.Behavior.callBaseMethod(this,"get_id");if(a)return a;if(!this._element||!this._element.id)return "";return this._element.id+"$"+this.get_name()},get_name:function(){if(this._name)return this._name;var a=Object.getTypeName(this),b=a.lastIndexOf(".");if(b!==-1)a=a.substr(b+1);if(!this.get_isInitialized())this._name=a;return a},set_name:function(a){this._name=a},initialize:function(){Sys.UI.Behavior.callBaseMethod(this,"initialize");var a=this.get_name();if(a)this._element[a]=this},dispose:function(){Sys.UI.Behavior.callBaseMethod(this,"dispose");var a=this._element;if(a){var c=this.get_name();if(c)a[c]=null;var b=a._behaviors;Array.remove(b,this);if(b.length===0)a._behaviors=null;delete this._element}}};Sys.UI.Behavior.registerClass("Sys.UI.Behavior",Sys.Component);Sys.UI.Behavior.getBehaviorByName=function(b,c){var a=b[c];return a&&Sys.UI.Behavior.isInstanceOfType(a)?a:null};Sys.UI.Behavior.getBehaviors=function(a){if(!a._behaviors)return [];return Array.clone(a._behaviors)};Sys.UI.Behavior.getBehaviorsByType=function(d,e){var a=d._behaviors,c=[];if(a)for(var b=0,f=a.length;b0&&a.charAt(0)==="#")a=a.substring(1);return a};Sys._Application.prototype.get_enableHistory=function(){return this._enableHistory};Sys._Application.prototype.set_enableHistory=function(a){this._enableHistory=a};Sys._Application.prototype.add_navigate=function(a){this.get_events().addHandler("navigate",a)};Sys._Application.prototype.remove_navigate=function(a){this.get_events().removeHandler("navigate",a)};Sys._Application.prototype.addHistoryPoint=function(c,f){this._ensureHistory();var b=this._state;for(var a in c){var d=c[a];if(d===null){if(typeof b[a]!=="undefined")delete b[a]}else b[a]=d}var e=this._serializeState(b);this._historyPointIsNew=true;this._setState(e,f);this._raiseNavigate()};Sys._Application.prototype.setServerId=function(a,b){this._clientId=a;this._uniqueId=b};Sys._Application.prototype.setServerState=function(a){this._ensureHistory();this._state.__s=a;this._updateHiddenField(a)};Sys._Application.prototype._deserializeState=function(a){var e={};a=a||"";var b=a.indexOf("&&");if(b!==-1&&b+2'");c.write(""+(b||document.title)+"parent.Sys.Application._onIFrameLoad('+Sys.Serialization.JavaScriptSerializer.serialize(a)+");");c.close()}this._ignoreTimer=false;this._currentEntry=a;if(this._historyFrame||this._historyPointIsNew){var f=this.get_stateString();if(a!==f){window.location.hash=a;this._currentEntry=this.get_stateString();if(typeof b!=="undefined"&&b!==null)document.title=b}}this._historyPointIsNew=false}}};Sys._Application.prototype._updateHiddenField=function(b){if(this._clientId){var a=document.getElementById(this._clientId);if(a)a.value=b}};if(!window.XMLHttpRequest)window.XMLHttpRequest=function(){var b=["Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP"];for(var a=0,c=b.length;a0)this._timer=window.setTimeout(Function.createDelegate(this,this._onTimeout),d);this._xmlHttpRequest.send(c);this._started=true},getResponseHeader:function(b){var a;try{a=this._xmlHttpRequest.getResponseHeader(b)}catch(c){}if(!a)a="";return a},getAllResponseHeaders:function(){return this._xmlHttpRequest.getAllResponseHeaders()},get_responseData:function(){return this._xmlHttpRequest.responseText},get_statusCode:function(){var a=0;try{a=this._xmlHttpRequest.status}catch(b){}return a},get_statusText:function(){return this._xmlHttpRequest.statusText},get_xml:function(){var a=this._xmlHttpRequest.responseXML;if(!a||!a.documentElement){a=Sys.Net.XMLDOM(this._xmlHttpRequest.responseText);if(!a||!a.documentElement)return null}else if(navigator.userAgent.indexOf("MSIE")!==-1)a.setProperty("SelectionLanguage","XPath");if(a.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"&&a.documentElement.tagName==="parsererror")return null;if(a.documentElement.firstChild&&a.documentElement.firstChild.tagName==="parsererror")return null;return a},abort:function(){if(this._aborted||this._responseAvailable||this._timedOut)return;this._aborted=true;this._clearTimer();if(this._xmlHttpRequest&&!this._responseAvailable){this._xmlHttpRequest.onreadystatechange=Function.emptyMethod;this._xmlHttpRequest.abort();this._xmlHttpRequest=null;this._webRequest.completed(Sys.EventArgs.Empty)}}};Sys.Net.XMLHttpExecutor.registerClass("Sys.Net.XMLHttpExecutor",Sys.Net.WebRequestExecutor);Sys.Net._WebRequestManager=function(){this._defaultTimeout=0;this._defaultExecutorType="Sys.Net.XMLHttpExecutor"};Sys.Net._WebRequestManager.prototype={add_invokingRequest:function(a){this._get_eventHandlerList().addHandler("invokingRequest",a)},remove_invokingRequest:function(a){this._get_eventHandlerList().removeHandler("invokingRequest",a)},add_completedRequest:function(a){this._get_eventHandlerList().addHandler("completedRequest",a)},remove_completedRequest:function(a){this._get_eventHandlerList().removeHandler("completedRequest",a)},_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_defaultTimeout:function(){return this._defaultTimeout},set_defaultTimeout:function(a){this._defaultTimeout=a},get_defaultExecutorType:function(){return this._defaultExecutorType},set_defaultExecutorType:function(a){this._defaultExecutorType=a},executeRequest:function(webRequest){var executor=webRequest.get_executor();if(!executor){var failed=false;try{var executorType=eval(this._defaultExecutorType);executor=new executorType}catch(a){failed=true}webRequest.set_executor(executor)}if(executor.get_aborted())return;var evArgs=new Sys.Net.NetworkRequestEventArgs(webRequest),handler=this._get_eventHandlerList().getHandler("invokingRequest");if(handler)handler(this,evArgs);if(!evArgs.get_cancel())executor.executeRequest()}};Sys.Net._WebRequestManager.registerClass("Sys.Net._WebRequestManager");Sys.Net.WebRequestManager=new Sys.Net._WebRequestManager;Sys.Net.NetworkRequestEventArgs=function(a){Sys.Net.NetworkRequestEventArgs.initializeBase(this);this._webRequest=a};Sys.Net.NetworkRequestEventArgs.prototype={get_webRequest:function(){return this._webRequest}};Sys.Net.NetworkRequestEventArgs.registerClass("Sys.Net.NetworkRequestEventArgs",Sys.CancelEventArgs);Sys.Net.WebRequest=function(){this._url="";this._headers={};this._body=null;this._userContext=null;this._httpVerb=null;this._executor=null;this._invokeCalled=false;this._timeout=0};Sys.Net.WebRequest.prototype={add_completed:function(a){this._get_eventHandlerList().addHandler("completed",a)},remove_completed:function(a){this._get_eventHandlerList().removeHandler("completed",a)},completed:function(b){var a=Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest");if(a)a(this._executor,b);a=this._get_eventHandlerList().getHandler("completed");if(a)a(this._executor,b)},_get_eventHandlerList:function(){if(!this._events)this._events=new Sys.EventHandlerList;return this._events},get_url:function(){return this._url},set_url:function(a){this._url=a},get_headers:function(){return this._headers},get_httpVerb:function(){if(this._httpVerb===null){if(this._body===null)return "GET";return "POST"}return this._httpVerb},set_httpVerb:function(a){this._httpVerb=a},get_body:function(){return this._body},set_body:function(a){this._body=a},get_userContext:function(){return this._userContext},set_userContext:function(a){this._userContext=a},get_executor:function(){return this._executor},set_executor:function(a){this._executor=a;this._executor._set_webRequest(this)},get_timeout:function(){if(this._timeout===0)return Sys.Net.WebRequestManager.get_defaultTimeout();return this._timeout},set_timeout:function(a){this._timeout=a},getResolvedUrl:function(){return Sys.Net.WebRequest._resolveUrl(this._url)},invoke:function(){Sys.Net.WebRequestManager.executeRequest(this);this._invokeCalled=true}};Sys.Net.WebRequest._resolveUrl=function(b,a){if(b&&b.indexOf("://")!==-1)return b;if(!a||a.length===0){var d=document.getElementsByTagName("base")[0];if(d&&d.href&&d.href.length>0)a=d.href;else a=document.URL}var c=a.indexOf("?");if(c!==-1)a=a.substr(0,c);c=a.indexOf("#");if(c!==-1)a=a.substr(0,c);a=a.substr(0,a.lastIndexOf("/")+1);if(!b||b.length===0)return a;if(b.charAt(0)==="/"){var e=a.indexOf("://"),g=a.indexOf("/",e+3);return a.substr(0,g)+b}else{var f=a.lastIndexOf("/");return a.substr(0,f+1)+b}};Sys.Net.WebRequest._createQueryString=function(c,b,f){b=b||encodeURIComponent;var h=0,e,g,d,a=new Sys.StringBuilder;if(c)for(d in c){e=c[d];if(typeof e==="function")continue;g=Sys.Serialization.JavaScriptSerializer.serialize(e);if(h++)a.append("&");a.append(d);a.append("=");a.append(b(g))}if(f){if(h)a.append("&");a.append(f)}return a.toString()};Sys.Net.WebRequest._createUrl=function(a,b,c){if(!b&&!c)return a;var d=Sys.Net.WebRequest._createQueryString(b,null,c);return d.length?a+(a&&a.indexOf("?")>=0?"&":"?")+d:a};Sys.Net.WebRequest.registerClass("Sys.Net.WebRequest");Sys._ScriptLoaderTask=function(b,a){this._scriptElement=b;this._completedCallback=a};Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement},dispose:function(){if(this._disposed)return;this._disposed=true;this._removeScriptElementHandlers();Sys._ScriptLoaderTask._clearScript(this._scriptElement);this._scriptElement=null},execute:function(){this._addScriptElementHandlers();document.getElementsByTagName("head")[0].appendChild(this._scriptElement)},_addScriptElementHandlers:function(){this._scriptLoadDelegate=Function.createDelegate(this,this._scriptLoadHandler);if(Sys.Browser.agent!==Sys.Browser.InternetExplorer){this._scriptElement.readyState="loaded";$addHandler(this._scriptElement,"load",this._scriptLoadDelegate)}else $addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);if(this._scriptElement.addEventListener){this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler);this._scriptElement.addEventListener("error",this._scriptErrorDelegate,false)}},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var a=this.get_scriptElement();if(Sys.Browser.agent!==Sys.Browser.InternetExplorer)$removeHandler(a,"load",this._scriptLoadDelegate);else $removeHandler(a,"readystatechange",this._scriptLoadDelegate);if(this._scriptErrorDelegate){this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,false);this._scriptErrorDelegate=null}this._scriptLoadDelegate=null}},_scriptErrorHandler:function(){if(this._disposed)return;this._completedCallback(this.get_scriptElement(),false)},_scriptLoadHandler:function(){if(this._disposed)return;var a=this.get_scriptElement();if(a.readyState!=="loaded"&&a.readyState!=="complete")return;this._completedCallback(a,true)}};Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable);Sys._ScriptLoaderTask._clearScript=function(a){if(!Sys.Debug.isDebug)a.parentNode.removeChild(a)};Type.registerNamespace("Sys.Net");Sys.Net.WebServiceProxy=function(){};Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(a){if(a<0)throw Error.argumentOutOfRange("value",a,Sys.Res.invalidTimeout);this._timeout=a},get_defaultUserContext:function(){return typeof this._userContext==="undefined"?null:this._userContext},set_defaultUserContext:function(a){this._userContext=a},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(a){this._succeeded=a},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(a){this._failed=a},get_enableJsonp:function(){return !!this._jsonp},set_enableJsonp:function(a){this._jsonp=a},get_path:function(){return this._path||null},set_path:function(a){this._path=a},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(a){this._callbackParameter=a},_invoke:function(d,e,g,f,c,b,a){c=c||this.get_defaultSucceededCallback();b=b||this.get_defaultFailedCallback();if(a===null||typeof a==="undefined")a=this.get_defaultUserContext();return Sys.Net.WebServiceProxy.invoke(d,e,g,f,c,b,a,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}};Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy");Sys.Net.WebServiceProxy.invoke=function(q,a,m,l,j,b,g,e,w,p){var i=w!==false?Sys.Net.WebServiceProxy._xdomain.exec(q):null,c,n=i&&i.length===3&&(i[1]!==location.protocol||i[2]!==location.host);m=n||m;if(n){p=p||"callback";c="_jsonp"+Sys._jsonp++}if(!l)l={};var r=l;if(!m||!r)r={};var s,h,f=null,k,o=null,u=Sys.Net.WebRequest._createUrl(a?q+"/"+encodeURIComponent(a):q,r,n?p+"=Sys."+c:null);if(n){s=document.createElement("script");s.src=u;k=new Sys._ScriptLoaderTask(s,function(d,b){if(!b||c)t({Message:String.format(Sys.Res.webServiceFailedNoMsg,a)},-1)});function v(){if(f===null)return;f=null;h=new Sys.Net.WebServiceError(true,String.format(Sys.Res.webServiceTimedOut,a));k.dispose();delete Sys[c];if(b)b(h,g,a)}function t(d,e){if(f!==null){window.clearTimeout(f);f=null}k.dispose();delete Sys[c];c=null;if(typeof e!=="undefined"&&e!==200){if(b){h=new Sys.Net.WebServiceError(false,d.Message||String.format(Sys.Res.webServiceFailedNoMsg,a),d.StackTrace||null,d.ExceptionType||null,d);h._statusCode=e;b(h,g,a)}}else if(j)j(d,g,a)}Sys[c]=t;e=e||Sys.Net.WebRequestManager.get_defaultTimeout();if(e>0)f=window.setTimeout(v,e);k.execute();return null}var d=new Sys.Net.WebRequest;d.set_url(u);d.get_headers()["Content-Type"]="application/json; charset=utf-8";if(!m){o=Sys.Serialization.JavaScriptSerializer.serialize(l);if(o==="{}")o=""}d.set_body(o);d.add_completed(x);if(e&&e>0)d.set_timeout(e);d.invoke();function x(d){if(d.get_responseAvailable()){var f=d.get_statusCode(),c=null;try{var e=d.getResponseHeader("Content-Type");if(e.startsWith("application/json"))c=d.get_object();else if(e.startsWith("text/xml"))c=d.get_xml();else c=d.get_responseData()}catch(m){}var k=d.getResponseHeader("jsonerror"),h=k==="true";if(h){if(c)c=new Sys.Net.WebServiceError(false,c.Message,c.StackTrace,c.ExceptionType,c)}else if(e.startsWith("application/json"))c=!c||typeof c.d==="undefined"?c:c.d;if(f<200||f>=300||h){if(b){if(!c||!h)c=new Sys.Net.WebServiceError(false,String.format(Sys.Res.webServiceFailedNoMsg,a));c._statusCode=f;b(c,g,a)}}else if(j)j(c,g,a)}else{var i;if(d.get_timedOut())i=String.format(Sys.Res.webServiceTimedOut,a);else i=String.format(Sys.Res.webServiceFailedNoMsg,a);if(b)b(new Sys.Net.WebServiceError(d.get_timedOut(),i,"",""),g,a)}}return d};Sys.Net.WebServiceProxy._generateTypedConstructor=function(a){return function(b){if(b)for(var c in b)this[c]=b[c];this.__type=a}};Sys._jsonp=0;Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/;Sys.Net.WebServiceError=function(d,e,c,a,b){this._timedOut=d;this._message=e;this._stackTrace=c;this._exceptionType=a;this._errorObject=b;this._statusCode=-1};Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut},get_statusCode:function(){return this._statusCode},get_message:function(){return this._message},get_stackTrace:function(){return this._stackTrace||""},get_exceptionType:function(){return this._exceptionType||""},get_errorObject:function(){return this._errorObject||null}};Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError"); +Type.registerNamespace('Sys');Sys.Res={'argumentInteger':'Value must be an integer.','invokeCalledTwice':'Cannot call invoke more than once.','webServiceFailed':'The server method \'{0}\' failed with the following error: {1}','argumentType':'Object cannot be converted to the required type.','argumentNull':'Value cannot be null.','scriptAlreadyLoaded':'The script \'{0}\' has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit.','scriptDependencyNotFound':'The script \'{0}\' failed to load because it is dependent on script \'{1}\'.','formatBadFormatSpecifier':'Format specifier was invalid.','requiredScriptReferenceNotIncluded':'\'{0}\' requires that you have included a script reference to \'{1}\'.','webServiceFailedNoMsg':'The server method \'{0}\' failed.','argumentDomElement':'Value must be a DOM element.','invalidExecutorType':'Could not create a valid Sys.Net.WebRequestExecutor from: {0}.','cannotCallBeforeResponse':'Cannot call {0} when responseAvailable is false.','actualValue':'Actual value was {0}.','enumInvalidValue':'\'{0}\' is not a valid value for enum {1}.','scriptLoadFailed':'The script \'{0}\' could not be loaded.','parameterCount':'Parameter count mismatch.','cannotDeserializeEmptyString':'Cannot deserialize empty string.','formatInvalidString':'Input string was not in a correct format.','invalidTimeout':'Value must be greater than or equal to zero.','cannotAbortBeforeStart':'Cannot abort when executor has not started.','argument':'Value does not fall within the expected range.','cannotDeserializeInvalidJson':'Cannot deserialize. The data does not correspond to valid JSON.','invalidHttpVerb':'httpVerb cannot be set to an empty or null string.','nullWebRequest':'Cannot call executeRequest with a null webRequest.','eventHandlerInvalid':'Handler was not added through the Sys.UI.DomEvent.addHandler method.','cannotSerializeNonFiniteNumbers':'Cannot serialize non finite numbers.','argumentUndefined':'Value cannot be undefined.','webServiceInvalidReturnType':'The server method \'{0}\' returned an invalid type. Expected type: {1}','servicePathNotSet':'The path to the web service has not been set.','argumentTypeWithTypes':'Object of type \'{0}\' cannot be converted to type \'{1}\'.','cannotCallOnceStarted':'Cannot call {0} once started.','badBaseUrl1':'Base URL does not contain ://.','badBaseUrl2':'Base URL does not contain another /.','badBaseUrl3':'Cannot find last / in base URL.','setExecutorAfterActive':'Cannot set executor after it has become active.','paramName':'Parameter name: {0}','nullReferenceInPath':'Null reference while evaluating data path: \'{0}\'.','cannotCallOutsideHandler':'Cannot call {0} outside of a completed event handler.','cannotSerializeObjectWithCycle':'Cannot serialize object with cyclic reference within child properties.','format':'One of the identified items was in an invalid format.','assertFailedCaller':'Assertion Failed: {0}\r\nat {1}','argumentOutOfRange':'Specified argument was out of the range of valid values.','webServiceTimedOut':'The server method \'{0}\' timed out.','notImplemented':'The method or operation is not implemented.','assertFailed':'Assertion Failed: {0}','invalidOperation':'Operation is not valid due to the current state of the object.','breakIntoDebugger':'{0}\r\n\r\nBreak into debugger?'}; diff --git a/NzbDrone.Web/Scripts/Plugins/MicrosoftMvcAjax.debug.js b/NzbDrone.Web/Scripts/Plugins/MicrosoftMvcAjax.debug.js new file mode 100644 index 000000000..eb68ba7e7 --- /dev/null +++ b/NzbDrone.Web/Scripts/Plugins/MicrosoftMvcAjax.debug.js @@ -0,0 +1,408 @@ +//!---------------------------------------------------------- +//! Copyright (C) Microsoft Corporation. All rights reserved. +//!---------------------------------------------------------- +//! MicrosoftMvcAjax.js + +Type.registerNamespace('Sys.Mvc'); + +//////////////////////////////////////////////////////////////////////////////// +// Sys.Mvc.AjaxOptions + +Sys.Mvc.$create_AjaxOptions = function Sys_Mvc_AjaxOptions() { return {}; } + + +//////////////////////////////////////////////////////////////////////////////// +// Sys.Mvc.InsertionMode + +Sys.Mvc.InsertionMode = function() { + /// + /// + /// + /// + /// + /// +}; +Sys.Mvc.InsertionMode.prototype = { + replace: 0, + insertBefore: 1, + insertAfter: 2 +} +Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode', false); + + +//////////////////////////////////////////////////////////////////////////////// +// Sys.Mvc.AjaxContext + +Sys.Mvc.AjaxContext = function Sys_Mvc_AjaxContext(request, updateTarget, loadingElement, insertionMode) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + this._request = request; + this._updateTarget = updateTarget; + this._loadingElement = loadingElement; + this._insertionMode = insertionMode; +} +Sys.Mvc.AjaxContext.prototype = { + _insertionMode: 0, + _loadingElement: null, + _response: null, + _request: null, + _updateTarget: null, + + get_data: function Sys_Mvc_AjaxContext$get_data() { + /// + if (this._response) { + return this._response.get_responseData(); + } + else { + return null; + } + }, + + get_insertionMode: function Sys_Mvc_AjaxContext$get_insertionMode() { + /// + return this._insertionMode; + }, + + get_loadingElement: function Sys_Mvc_AjaxContext$get_loadingElement() { + /// + return this._loadingElement; + }, + + get_object: function Sys_Mvc_AjaxContext$get_object() { + /// + var executor = this.get_response(); + return (executor) ? executor.get_object() : null; + }, + + get_response: function Sys_Mvc_AjaxContext$get_response() { + /// + return this._response; + }, + set_response: function Sys_Mvc_AjaxContext$set_response(value) { + /// + this._response = value; + return value; + }, + + get_request: function Sys_Mvc_AjaxContext$get_request() { + /// + return this._request; + }, + + get_updateTarget: function Sys_Mvc_AjaxContext$get_updateTarget() { + /// + return this._updateTarget; + } +} + + +//////////////////////////////////////////////////////////////////////////////// +// Sys.Mvc.AsyncHyperlink + +Sys.Mvc.AsyncHyperlink = function Sys_Mvc_AsyncHyperlink() { +} +Sys.Mvc.AsyncHyperlink.handleClick = function Sys_Mvc_AsyncHyperlink$handleClick(anchor, evt, ajaxOptions) { + /// + /// + /// + /// + /// + /// + evt.preventDefault(); + Sys.Mvc.MvcHelpers._asyncRequest(anchor.href, 'post', '', anchor, ajaxOptions); +} + + +//////////////////////////////////////////////////////////////////////////////// +// Sys.Mvc.MvcHelpers + +Sys.Mvc.MvcHelpers = function Sys_Mvc_MvcHelpers() { +} +Sys.Mvc.MvcHelpers._serializeSubmitButton = function Sys_Mvc_MvcHelpers$_serializeSubmitButton(element, offsetX, offsetY) { + /// + /// + /// + /// + /// + /// + /// + if (element.disabled) { + return null; + } + var name = element.name; + if (name) { + var tagName = element.tagName.toUpperCase(); + var encodedName = encodeURIComponent(name); + var inputElement = element; + if (tagName === 'INPUT') { + var type = inputElement.type; + if (type === 'submit') { + return encodedName + '=' + encodeURIComponent(inputElement.value); + } + else if (type === 'image') { + return encodedName + '.x=' + offsetX + '&' + encodedName + '.y=' + offsetY; + } + } + else if ((tagName === 'BUTTON') && (name.length) && (inputElement.type === 'submit')) { + return encodedName + '=' + encodeURIComponent(inputElement.value); + } + } + return null; +} +Sys.Mvc.MvcHelpers._serializeForm = function Sys_Mvc_MvcHelpers$_serializeForm(form) { + /// + /// + /// + var formElements = form.elements; + var formBody = new Sys.StringBuilder(); + var count = formElements.length; + for (var i = 0; i < count; i++) { + var element = formElements[i]; + var name = element.name; + if (!name || !name.length) { + continue; + } + var tagName = element.tagName.toUpperCase(); + if (tagName === 'INPUT') { + var inputElement = element; + var type = inputElement.type; + if ((type === 'text') || (type === 'password') || (type === 'hidden') || (((type === 'checkbox') || (type === 'radio')) && element.checked)) { + formBody.append(encodeURIComponent(name)); + formBody.append('='); + formBody.append(encodeURIComponent(inputElement.value)); + formBody.append('&'); + } + } + else if (tagName === 'SELECT') { + var selectElement = element; + var optionCount = selectElement.options.length; + for (var j = 0; j < optionCount; j++) { + var optionElement = selectElement.options[j]; + if (optionElement.selected) { + formBody.append(encodeURIComponent(name)); + formBody.append('='); + formBody.append(encodeURIComponent(optionElement.value)); + formBody.append('&'); + } + } + } + else if (tagName === 'TEXTAREA') { + formBody.append(encodeURIComponent(name)); + formBody.append('='); + formBody.append(encodeURIComponent((element.value))); + formBody.append('&'); + } + } + var additionalInput = form._additionalInput; + if (additionalInput) { + formBody.append(additionalInput); + formBody.append('&'); + } + return formBody.toString(); +} +Sys.Mvc.MvcHelpers._asyncRequest = function Sys_Mvc_MvcHelpers$_asyncRequest(url, verb, body, triggerElement, ajaxOptions) { + /// + /// + /// + /// + /// + /// + /// + /// + /// + /// + if (ajaxOptions.confirm) { + if (!confirm(ajaxOptions.confirm)) { + return; + } + } + if (ajaxOptions.url) { + url = ajaxOptions.url; + } + if (ajaxOptions.httpMethod) { + verb = ajaxOptions.httpMethod; + } + if (body.length > 0 && !body.endsWith('&')) { + body += '&'; + } + body += 'X-Requested-With=XMLHttpRequest'; + var upperCaseVerb = verb.toUpperCase(); + var isGetOrPost = (upperCaseVerb === 'GET' || upperCaseVerb === 'POST'); + if (!isGetOrPost) { + body += '&'; + body += 'X-HTTP-Method-Override=' + upperCaseVerb; + } + var requestBody = ''; + if (upperCaseVerb === 'GET' || upperCaseVerb === 'DELETE') { + if (url.indexOf('?') > -1) { + if (!url.endsWith('&')) { + url += '&'; + } + url += body; + } + else { + url += '?'; + url += body; + } + } + else { + requestBody = body; + } + var request = new Sys.Net.WebRequest(); + request.set_url(url); + if (isGetOrPost) { + request.set_httpVerb(verb); + } + else { + request.set_httpVerb('POST'); + request.get_headers()['X-HTTP-Method-Override'] = upperCaseVerb; + } + request.set_body(requestBody); + if (verb.toUpperCase() === 'PUT') { + request.get_headers()['Content-Type'] = 'application/x-www-form-urlencoded;'; + } + request.get_headers()['X-Requested-With'] = 'XMLHttpRequest'; + var updateElement = null; + if (ajaxOptions.updateTargetId) { + updateElement = $get(ajaxOptions.updateTargetId); + } + var loadingElement = null; + if (ajaxOptions.loadingElementId) { + loadingElement = $get(ajaxOptions.loadingElementId); + } + var ajaxContext = new Sys.Mvc.AjaxContext(request, updateElement, loadingElement, ajaxOptions.insertionMode); + var continueRequest = true; + if (ajaxOptions.onBegin) { + continueRequest = ajaxOptions.onBegin(ajaxContext) !== false; + } + if (loadingElement) { + Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), true); + } + if (continueRequest) { + request.add_completed(Function.createDelegate(null, function(executor) { + Sys.Mvc.MvcHelpers._onComplete(request, ajaxOptions, ajaxContext); + })); + request.invoke(); + } +} +Sys.Mvc.MvcHelpers._onComplete = function Sys_Mvc_MvcHelpers$_onComplete(request, ajaxOptions, ajaxContext) { + /// + /// + /// + /// + /// + /// + ajaxContext.set_response(request.get_executor()); + if (ajaxOptions.onComplete && ajaxOptions.onComplete(ajaxContext) === false) { + return; + } + var statusCode = ajaxContext.get_response().get_statusCode(); + if ((statusCode >= 200 && statusCode < 300) || statusCode === 304 || statusCode === 1223) { + if (statusCode !== 204 && statusCode !== 304 && statusCode !== 1223) { + var contentType = ajaxContext.get_response().getResponseHeader('Content-Type'); + if ((contentType) && (contentType.indexOf('application/x-javascript') !== -1)) { + eval(ajaxContext.get_data()); + } + else { + Sys.Mvc.MvcHelpers.updateDomElement(ajaxContext.get_updateTarget(), ajaxContext.get_insertionMode(), ajaxContext.get_data()); + } + } + if (ajaxOptions.onSuccess) { + ajaxOptions.onSuccess(ajaxContext); + } + } + else { + if (ajaxOptions.onFailure) { + ajaxOptions.onFailure(ajaxContext); + } + } + if (ajaxContext.get_loadingElement()) { + Sys.UI.DomElement.setVisible(ajaxContext.get_loadingElement(), false); + } +} +Sys.Mvc.MvcHelpers.updateDomElement = function Sys_Mvc_MvcHelpers$updateDomElement(target, insertionMode, content) { + /// + /// + /// + /// + /// + /// + if (target) { + switch (insertionMode) { + case Sys.Mvc.InsertionMode.replace: + target.innerHTML = content; + break; + case Sys.Mvc.InsertionMode.insertBefore: + if (content && content.length > 0) { + target.innerHTML = content + target.innerHTML.trimStart(); + } + break; + case Sys.Mvc.InsertionMode.insertAfter: + if (content && content.length > 0) { + target.innerHTML = target.innerHTML.trimEnd() + content; + } + break; + } + } +} + + +//////////////////////////////////////////////////////////////////////////////// +// Sys.Mvc.AsyncForm + +Sys.Mvc.AsyncForm = function Sys_Mvc_AsyncForm() { +} +Sys.Mvc.AsyncForm.handleClick = function Sys_Mvc_AsyncForm$handleClick(form, evt) { + /// + /// + /// + /// + var additionalInput = Sys.Mvc.MvcHelpers._serializeSubmitButton(evt.target, evt.offsetX, evt.offsetY); + form._additionalInput = additionalInput; +} +Sys.Mvc.AsyncForm.handleSubmit = function Sys_Mvc_AsyncForm$handleSubmit(form, evt, ajaxOptions) { + /// + /// + /// + /// + /// + /// + evt.preventDefault(); + var validationCallbacks = form.validationCallbacks; + if (validationCallbacks) { + for (var i = 0; i < validationCallbacks.length; i++) { + var callback = validationCallbacks[i]; + if (!callback()) { + return; + } + } + } + var body = Sys.Mvc.MvcHelpers._serializeForm(form); + Sys.Mvc.MvcHelpers._asyncRequest(form.action, form.method || 'post', body, form, ajaxOptions); +} + + +Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext'); +Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink'); +Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers'); +Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm'); + +// ---- Do not remove this footer ---- +// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net) +// ----------------------------------- diff --git a/NzbDrone.Web/Scripts/Plugins/MicrosoftMvcAjax.js b/NzbDrone.Web/Scripts/Plugins/MicrosoftMvcAjax.js new file mode 100644 index 000000000..c5a6165e7 --- /dev/null +++ b/NzbDrone.Web/Scripts/Plugins/MicrosoftMvcAjax.js @@ -0,0 +1,25 @@ +//---------------------------------------------------------- +// Copyright (C) Microsoft Corporation. All rights reserved. +//---------------------------------------------------------- +// MicrosoftMvcAjax.js + +Type.registerNamespace('Sys.Mvc');Sys.Mvc.$create_AjaxOptions=function(){return {};} +Sys.Mvc.InsertionMode=function(){};Sys.Mvc.InsertionMode.prototype = {replace:0,insertBefore:1,insertAfter:2} +Sys.Mvc.InsertionMode.registerEnum('Sys.Mvc.InsertionMode',false);Sys.Mvc.AjaxContext=function(request,updateTarget,loadingElement,insertionMode){this.$3=request;this.$4=updateTarget;this.$1=loadingElement;this.$0=insertionMode;} +Sys.Mvc.AjaxContext.prototype={$0:0,$1:null,$2:null,$3:null,$4:null,get_data:function(){if(this.$2){return this.$2.get_responseData();}else{return null;}},get_insertionMode:function(){return this.$0;},get_loadingElement:function(){return this.$1;},get_object:function(){var $0=this.get_response();return ($0)?$0.get_object():null;},get_response:function(){return this.$2;},set_response:function(value){this.$2=value;return value;},get_request:function(){return this.$3;},get_updateTarget:function(){return this.$4;}} +Sys.Mvc.AsyncHyperlink=function(){} +Sys.Mvc.AsyncHyperlink.handleClick=function(anchor,evt,ajaxOptions){evt.preventDefault();Sys.Mvc.MvcHelpers.$2(anchor.href,'post','',anchor,ajaxOptions);} +Sys.Mvc.MvcHelpers=function(){} +Sys.Mvc.MvcHelpers.$0=function($p0,$p1,$p2){if($p0.disabled){return null;}var $0=$p0.name;if($0){var $1=$p0.tagName.toUpperCase();var $2=encodeURIComponent($0);var $3=$p0;if($1==='INPUT'){var $4=$3.type;if($4==='submit'){return $2+'='+encodeURIComponent($3.value);}else if($4==='image'){return $2+'.x='+$p1+'&'+$2+'.y='+$p2;}}else if(($1==='BUTTON')&&($0.length)&&($3.type==='submit')){return $2+'='+encodeURIComponent($3.value);}}return null;} +Sys.Mvc.MvcHelpers.$1=function($p0){var $0=$p0.elements;var $1=new Sys.StringBuilder();var $2=$0.length;for(var $4=0;$4<$2;$4++){var $5=$0[$4];var $6=$5.name;if(!$6||!$6.length){continue;}var $7=$5.tagName.toUpperCase();if($7==='INPUT'){var $8=$5;var $9=$8.type;if(($9==='text')||($9==='password')||($9==='hidden')||((($9==='checkbox')||($9==='radio'))&&$5.checked)){$1.append(encodeURIComponent($6));$1.append('=');$1.append(encodeURIComponent($8.value));$1.append('&');}}else if($7==='SELECT'){var $A=$5;var $B=$A.options.length;for(var $C=0;$C<$B;$C++){var $D=$A.options[$C];if($D.selected){$1.append(encodeURIComponent($6));$1.append('=');$1.append(encodeURIComponent($D.value));$1.append('&');}}}else if($7==='TEXTAREA'){$1.append(encodeURIComponent($6));$1.append('=');$1.append(encodeURIComponent(($5.value)));$1.append('&');}}var $3=$p0._additionalInput;if($3){$1.append($3);$1.append('&');}return $1.toString();} +Sys.Mvc.MvcHelpers.$2=function($p0,$p1,$p2,$p3,$p4){if($p4.confirm){if(!confirm($p4.confirm)){return;}}if($p4.url){$p0=$p4.url;}if($p4.httpMethod){$p1=$p4.httpMethod;}if($p2.length>0&&!$p2.endsWith('&')){$p2+='&';}$p2+='X-Requested-With=XMLHttpRequest';var $0=$p1.toUpperCase();var $1=($0==='GET'||$0==='POST');if(!$1){$p2+='&';$p2+='X-HTTP-Method-Override='+$0;}var $2='';if($0==='GET'||$0==='DELETE'){if($p0.indexOf('?')>-1){if(!$p0.endsWith('&')){$p0+='&';}$p0+=$p2;}else{$p0+='?';$p0+=$p2;}}else{$2=$p2;}var $3=new Sys.Net.WebRequest();$3.set_url($p0);if($1){$3.set_httpVerb($p1);}else{$3.set_httpVerb('POST');$3.get_headers()['X-HTTP-Method-Override']=$0;}$3.set_body($2);if($p1.toUpperCase()==='PUT'){$3.get_headers()['Content-Type']='application/x-www-form-urlencoded;';}$3.get_headers()['X-Requested-With']='XMLHttpRequest';var $4=null;if($p4.updateTargetId){$4=$get($p4.updateTargetId);}var $5=null;if($p4.loadingElementId){$5=$get($p4.loadingElementId);}var $6=new Sys.Mvc.AjaxContext($3,$4,$5,$p4.insertionMode);var $7=true;if($p4.onBegin){$7=$p4.onBegin($6)!==false;}if($5){Sys.UI.DomElement.setVisible($6.get_loadingElement(),true);}if($7){$3.add_completed(Function.createDelegate(null,function($p1_0){ +Sys.Mvc.MvcHelpers.$3($3,$p4,$6);}));$3.invoke();}} +Sys.Mvc.MvcHelpers.$3=function($p0,$p1,$p2){$p2.set_response($p0.get_executor());if($p1.onComplete&&$p1.onComplete($p2)===false){return;}var $0=$p2.get_response().get_statusCode();if(($0>=200&&$0<300)||$0===304||$0===1223){if($0!==204&&$0!==304&&$0!==1223){var $1=$p2.get_response().getResponseHeader('Content-Type');if(($1)&&($1.indexOf('application/x-javascript')!==-1)){eval($p2.get_data());}else{Sys.Mvc.MvcHelpers.updateDomElement($p2.get_updateTarget(),$p2.get_insertionMode(),$p2.get_data());}}if($p1.onSuccess){$p1.onSuccess($p2);}}else{if($p1.onFailure){$p1.onFailure($p2);}}if($p2.get_loadingElement()){Sys.UI.DomElement.setVisible($p2.get_loadingElement(),false);}} +Sys.Mvc.MvcHelpers.updateDomElement=function(target,insertionMode,content){if(target){switch(insertionMode){case 0:target.innerHTML=content;break;case 1:if(content&&content.length>0){target.innerHTML=content+target.innerHTML.trimStart();}break;case 2:if(content&&content.length>0){target.innerHTML=target.innerHTML.trimEnd()+content;}break;}}} +Sys.Mvc.AsyncForm=function(){} +Sys.Mvc.AsyncForm.handleClick=function(form,evt){var $0=Sys.Mvc.MvcHelpers.$0(evt.target,evt.offsetX,evt.offsetY);form._additionalInput = $0;} +Sys.Mvc.AsyncForm.handleSubmit=function(form,evt,ajaxOptions){evt.preventDefault();var $0=form.validationCallbacks;if($0){for(var $2=0;$2<$0.length;$2++){var $3=$0[$2];if(!$3()){return;}}}var $1=Sys.Mvc.MvcHelpers.$1(form);Sys.Mvc.MvcHelpers.$2(form.action,form.method||'post',$1,form,ajaxOptions);} +Sys.Mvc.AjaxContext.registerClass('Sys.Mvc.AjaxContext');Sys.Mvc.AsyncHyperlink.registerClass('Sys.Mvc.AsyncHyperlink');Sys.Mvc.MvcHelpers.registerClass('Sys.Mvc.MvcHelpers');Sys.Mvc.AsyncForm.registerClass('Sys.Mvc.AsyncForm'); +// ---- Do not remove this footer ---- +// Generated using Script# v0.5.0.0 (http://projects.nikhilk.net) +// ----------------------------------- diff --git a/NzbDrone.Web/Scripts/Plugins/jquery-1.6.3-vsdoc.js b/NzbDrone.Web/Scripts/Plugins/jquery-1.6.3-vsdoc.js new file mode 100644 index 000000000..ca2db44fb --- /dev/null +++ b/NzbDrone.Web/Scripts/Plugins/jquery-1.6.3-vsdoc.js @@ -0,0 +1,7023 @@ +/* +* This file has been generated to support Visual Studio IntelliSense. +* You should not use this file at runtime inside the browser--it is only +* intended to be used only for design-time IntelliSense. Please use the +* standard jQuery library for all production use. +* +* Comment version: 1.6.3 +*/ + +/*! +* jQuery JavaScript Library v1.6.3 +* http://jquery.com/ +* +* Distributed in whole under the terms of the MIT +* +* Copyright 2010, John Resig +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* +* Includes Sizzle.js +* http://sizzlejs.com/ +* Copyright 2010, The Dojo Foundation +* Released under the MIT and BSD Licenses. +*/ + +(function ( window, undefined ) { +var jQuery = function( selector, context ) { +/// +/// 1: Accepts a string containing a CSS selector which is then used to match a set of elements. +/// 1.1 - $(selector, context) +/// 1.2 - $(element) +/// 1.3 - $(elementArray) +/// 1.4 - $(jQuery object) +/// 1.5 - $() +/// 2: Creates DOM elements on the fly from the provided string of raw HTML. +/// 2.1 - $(html, ownerDocument) +/// 2.2 - $(html, props) +/// 3: Binds a function to be executed when the DOM has finished loading. +/// 3.1 - $(callback) +/// +/// +/// A string containing a selector expression +/// +/// +/// A DOM Element, Document, or jQuery to use as context +/// +/// + + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }; +jQuery.Deferred = function( func ) { + + var deferred = jQuery._Deferred(), + failDeferred = jQuery._Deferred(), + promise; + // Add errorDeferred methods, then and promise + jQuery.extend( deferred, { + then: function( doneCallbacks, failCallbacks ) { + deferred.done( doneCallbacks ).fail( failCallbacks ); + return this; + }, + always: function() { + return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments ); + }, + fail: failDeferred.done, + rejectWith: failDeferred.resolveWith, + reject: failDeferred.resolve, + isRejected: failDeferred.isResolved, + pipe: function( fnDone, fnFail ) { + return jQuery.Deferred(function( newDefer ) { + jQuery.each( { + done: [ fnDone, "resolve" ], + fail: [ fnFail, "reject" ] + }, function( handler, data ) { + var fn = data[ 0 ], + action = data[ 1 ], + returned; + if ( jQuery.isFunction( fn ) ) { + deferred[ handler ](function() { + returned = fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise().then( newDefer.resolve, newDefer.reject ); + } else { + newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); + } + }); + } else { + deferred[ handler ]( newDefer[ action ] ); + } + }); + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + if ( obj == null ) { + if ( promise ) { + return promise; + } + promise = obj = {}; + } + var i = promiseMethods.length; + while( i-- ) { + obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ]; + } + return obj; + } + }); + // Make sure only one callback list will be used + deferred.done( failDeferred.cancel ).fail( deferred.cancel ); + // Unexpose cancel + delete deferred.cancel; + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + return deferred; + }; +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !this.preventDefault ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // timeStamp is buggy for some events on Firefox(#3843) + // So we won't rely on the native value + this.timeStamp = jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; +jQuery._Deferred = function() { + + var // callbacks list + callbacks = [], + // stored [ context , args ] + fired, + // to avoid firing when already doing so + firing, + // flag to know if the deferred has been cancelled + cancelled, + // the deferred itself + deferred = { + + // done( f1, f2, ...) + done: function() { + if ( !cancelled ) { + var args = arguments, + i, + length, + elem, + type, + _fired; + if ( fired ) { + _fired = fired; + fired = 0; + } + for ( i = 0, length = args.length; i < length; i++ ) { + elem = args[ i ]; + type = jQuery.type( elem ); + if ( type === "array" ) { + deferred.done.apply( deferred, elem ); + } else if ( type === "function" ) { + callbacks.push( elem ); + } + } + if ( _fired ) { + deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] ); + } + } + return this; + }, + + // resolve with given context and args + resolveWith: function( context, args ) { + if ( !cancelled && !fired && !firing ) { + // make sure args are available (#8421) + args = args || []; + firing = 1; + try { + while( callbacks[ 0 ] ) { + callbacks.shift().apply( context, args ); + } + } + finally { + fired = [ context, args ]; + firing = 0; + } + } + return this; + }, + + // resolve with this as context and given arguments + resolve: function() { + deferred.resolveWith( this, arguments ); + return this; + }, + + // Has this deferred been resolved? + isResolved: function() { + return !!( firing || fired ); + }, + + // Cancel + cancel: function() { + cancelled = 1; + callbacks = []; + return this; + } + }; + + return deferred; + }; +jQuery._data = function( elem, name, data ) { + + return jQuery.data( elem, name, data, true ); + }; +jQuery._mark = function( elem, type ) { + + if ( elem ) { + type = (type || "fx") + "mark"; + jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true ); + } + }; +jQuery._unmark = function( force, elem, type ) { + + if ( force !== true ) { + type = elem; + elem = force; + force = false; + } + if ( elem ) { + type = type || "fx"; + var key = type + "mark", + count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 ); + if ( count ) { + jQuery.data( elem, key, count, true ); + } else { + jQuery.removeData( elem, key, true ); + handleQueueMarkDefer( elem, type, "mark" ); + } + } + }; +jQuery.acceptData = function( elem ) { + + if ( elem.nodeName ) { + var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; + + if ( match ) { + return !(match === true || elem.getAttribute("classid") !== match); + } + } + + return true; + }; +jQuery.access = function( elems, key, value, exec, fn, pass ) { + + var length = elems.length; + + // Setting many attributes + if ( typeof key === "object" ) { + for ( var k in key ) { + jQuery.access( elems, k, key[k], exec, fn, value ); + } + return elems; + } + + // Setting one attribute + if ( value !== undefined ) { + // Optionally, function values get executed if exec is true + exec = !pass && exec && jQuery.isFunction(value); + + for ( var i = 0; i < length; i++ ) { + fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); + } + + return elems; + } + + // Getting an attribute + return length ? fn( elems[0], key ) : undefined; + }; +jQuery.active = 0; +jQuery.ajax = function( url, options ) { +/// +/// Perform an asynchronous HTTP (Ajax) request. +/// 1 - jQuery.ajax(url, settings) +/// 2 - jQuery.ajax(settings) +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings. +/// + + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + // Callbacks context + callbackContext = s.context || s, + // Context for global events + // It's the callbackContext if one was provided in the options + // and if it's a DOM node or a jQuery collection + globalEventContext = callbackContext !== s && + ( callbackContext.nodeType || callbackContext instanceof jQuery ) ? + jQuery( callbackContext ) : jQuery.event, + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery._Deferred(), + // Status-dependent callbacks + statusCode = s.statusCode || {}, + // ifModified key + ifModifiedKey, + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + // Response headers + responseHeadersString, + responseHeaders, + // transport + transport, + // timeout handle + timeoutTimer, + // Cross-domain detection vars + parts, + // The jqXHR state + state = 0, + // To know if global events are to be dispatched + fireGlobals, + // Loop variable + i, + // Fake xhr + jqXHR = { + + readyState: 0, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( !state ) { + var lname = name.toLowerCase(); + name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Raw string + getAllResponseHeaders: function() { + return state === 2 ? responseHeadersString : null; + }, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( state === 2 ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; + } + } + match = responseHeaders[ key.toLowerCase() ]; + } + return match === undefined ? null : match; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( !state ) { + s.mimeType = type; + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + statusText = statusText || "abort"; + if ( transport ) { + transport.abort( statusText ); + } + done( 0, statusText ); + return this; + } + }; + + // Callback for when everything is done + // It is defined here because jslint complains if it is declared + // at the end of the function (which would be more logical and readable) + function done( status, nativeStatusText, responses, headers ) { + + // Called once + if ( state === 2 ) { + return; + } + + // State is "done" now + state = 2; + + // Clear timeout if it exists + if ( timeoutTimer ) { + clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + var isSuccess, + success, + error, + statusText = nativeStatusText, + response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined, + lastModified, + etag; + + // If successful, handle type chaining + if ( status >= 200 && status < 300 || status === 304 ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + + if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) { + jQuery.lastModified[ ifModifiedKey ] = lastModified; + } + if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) { + jQuery.etag[ ifModifiedKey ] = etag; + } + } + + // If not modified + if ( status === 304 ) { + + statusText = "notmodified"; + isSuccess = true; + + // If we have data + } else { + + try { + success = ajaxConvert( s, response ); + statusText = "success"; + isSuccess = true; + } catch(e) { + // We have a parsererror + statusText = "parsererror"; + error = e; + } + } + } else { + // We extract error from statusText + // then normalize statusText and status for non-aborts + error = statusText; + if( !statusText || status ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = "" + ( nativeStatusText || statusText ); + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ), + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.resolveWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + // Attach deferreds + deferred.promise( jqXHR ); + jqXHR.success = jqXHR.done; + jqXHR.error = jqXHR.fail; + jqXHR.complete = completeDeferred.done; + + // Status-dependent callbacks + jqXHR.statusCode = function( map ) { + if ( map ) { + var tmp; + if ( state < 2 ) { + for( tmp in map ) { + statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ]; + } + } else { + tmp = map[ jqXHR.status ]; + jqXHR.then( tmp, tmp ); + } + } + return this; + }; + + // Remove hash character (#7531: and string promotion) + // Add protocol if not provided (#5866: IE7 issue with protocol-less urls) + // We also use the url parameter if available + s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); + + // Extract dataTypes list + s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax ); + + // Determine if a cross-domain request is in order + if ( s.crossDomain == null ) { + parts = rurl.exec( s.url.toLowerCase() ); + s.crossDomain = !!( parts && + ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] || + ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) != + ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) ) + ); + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefiler, stop there + if ( state === 2 ) { + return false; + } + + // We can fire global events as of now if asked to + fireGlobals = s.global; + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // If data is available, append data to url + if ( s.data ) { + s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data; + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Get ifModifiedKey before adding the anti-cache parameter + ifModifiedKey = s.url; + + // Add anti-cache in url if needed + if ( s.cache === false ) { + + var ts = jQuery.now(), + // try replacing _= if it is there + ret = s.url.replace( rts, "$1_=" + ts ); + + // if nothing was replaced, add timestamp to the end + s.url = ret + ( (ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + ifModifiedKey = ifModifiedKey || s.url; + if ( jQuery.lastModified[ ifModifiedKey ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] ); + } + if ( jQuery.etag[ ifModifiedKey ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] ); + } + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? + s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { + // Abort if not done already + jqXHR.abort(); + return false; + + } + + // Install callbacks on deferreds + for ( i in { success: 1, error: 1, complete: 1 } ) { + jqXHR[ i ]( s[ i ] ); + } + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = setTimeout( function(){ + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + state = 1; + transport.send( requestHeaders, done ); + } catch (e) { + // Propagate exception as error if not done + if ( state < 2 ) { + done( -1, e ); + // Simply rethrow otherwise + } else { + jQuery.error( e ); + } + } + } + + return jqXHR; + }; +jQuery.ajaxPrefilter = function( dataTypeExpression, func ) { +/// +/// Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). +/// +/// +/// An optional string containing one or more space-separated dataTypes +/// +/// +/// A handler to set default values for future Ajax requests. +/// +/// + + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + if ( jQuery.isFunction( func ) ) { + var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ), + i = 0, + length = dataTypes.length, + dataType, + list, + placeBefore; + + // For each dataType in the dataTypeExpression + for(; i < length; i++ ) { + dataType = dataTypes[ i ]; + // We control if we're asked to add before + // any existing element + placeBefore = /^\+/.test( dataType ); + if ( placeBefore ) { + dataType = dataType.substr( 1 ) || "*"; + } + list = structure[ dataType ] = structure[ dataType ] || []; + // then we add to the structure accordingly + list[ placeBefore ? "unshift" : "push" ]( func ); + } + } + }; +jQuery.ajaxSettings = { "url": 'http://localhost:25813/?ver=1.6.3&newLineMethod=para', +"isLocal": false, +"global": true, +"type": 'GET', +"contentType": 'application/x-www-form-urlencoded', +"processData": true, +"async": true, +"accepts": {}, +"contents": {}, +"responseFields": {}, +"converters": {}, +"flatOptions": {}, +"jsonp": 'callback' }; +jQuery.ajaxSetup = function( target, settings ) { +/// +/// Set default values for future Ajax requests. +/// +/// +/// A set of key/value pairs that configure the default Ajax request. All options are optional. +/// + + if ( settings ) { + // Building a settings object + ajaxExtend( target, jQuery.ajaxSettings ); + } else { + // Extending ajaxSettings + settings = target; + target = jQuery.ajaxSettings; + } + ajaxExtend( target, settings ); + return target; + }; +jQuery.ajaxTransport = function( dataTypeExpression, func ) { + + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + if ( jQuery.isFunction( func ) ) { + var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ), + i = 0, + length = dataTypes.length, + dataType, + list, + placeBefore; + + // For each dataType in the dataTypeExpression + for(; i < length; i++ ) { + dataType = dataTypes[ i ]; + // We control if we're asked to add before + // any existing element + placeBefore = /^\+/.test( dataType ); + if ( placeBefore ) { + dataType = dataType.substr( 1 ) || "*"; + } + list = structure[ dataType ] = structure[ dataType ] || []; + // then we add to the structure accordingly + list[ placeBefore ? "unshift" : "push" ]( func ); + } + } + }; +jQuery.attr = function( elem, name, value, pass ) { + + var nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + if ( pass && name in jQuery.attrFn ) { + return jQuery( elem )[ name ]( value ); + } + + // Fallback to prop when attributes are not supported + if ( !("getAttribute" in elem) ) { + return jQuery.prop( elem, name, value ); + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + // Normalize the name if needed + if ( notxml ) { + name = jQuery.attrFix[ name ] || name; + + hooks = jQuery.attrHooks[ name ]; + + if ( !hooks ) { + // Use boolHook for boolean attributes + if ( rboolean.test( name ) ) { + hooks = boolHook; + + // Use nodeHook if available( IE6/7 ) + } else if ( nodeHook ) { + hooks = nodeHook; + } + } + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return undefined; + + } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, "" + value ); + return value; + } + + } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + + ret = elem.getAttribute( name ); + + // Non-existent attributes return null, we normalize to undefined + return ret === null ? + undefined : + ret; + } + }; +jQuery.attrFix = { "tabindex": 'tabIndex' }; +jQuery.attrFn = { "val": true, +"css": true, +"html": true, +"text": true, +"data": true, +"width": true, +"height": true, +"offset": true, +"blur": true, +"focus": true, +"focusin": true, +"focusout": true, +"load": true, +"resize": true, +"scroll": true, +"unload": true, +"click": true, +"dblclick": true, +"mousedown": true, +"mouseup": true, +"mousemove": true, +"mouseover": true, +"mouseout": true, +"mouseenter": true, +"mouseleave": true, +"change": true, +"select": true, +"submit": true, +"keydown": true, +"keypress": true, +"keyup": true, +"error": true }; +jQuery.attrHooks = { "type": {}, +"value": {}, +"tabIndex": {} }; +jQuery.bindReady = function() { + + if ( readyList ) { + return; + } + + readyList = jQuery._Deferred(); + + // Catch cases where $(document).ready() is called after the + // browser event has already occurred. + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 1 ); + } + + // Mozilla, Opera and webkit nightlies currently support this event + if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", jQuery.ready, false ); + + // If IE event model is used + } else if ( document.attachEvent ) { + // ensure firing before onload, + // maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", DOMContentLoaded ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", jQuery.ready ); + + // If IE and not a frame + // continually check to see if the document is ready + var toplevel = false; + + try { + toplevel = window.frameElement == null; + } catch(e) {} + + if ( document.documentElement.doScroll && toplevel ) { + doScrollCheck(); + } + } + }; +jQuery.boxModel = true; +jQuery.browser = { "msie": true, +"version": '9.0' }; +jQuery.buildFragment = function( args, nodes, scripts ) { + + var fragment, cacheable, cacheresults, doc; + + // nodes may contain either an explicit document object, + // a jQuery collection or context object. + // If nodes[0] contains a valid object to assign to doc + if ( nodes && nodes[0] ) { + doc = nodes[0].ownerDocument || nodes[0]; + } + + // Ensure that an attr object doesn't incorrectly stand in as a document object + // Chrome and Firefox seem to allow this to occur and will throw exception + // Fixes #8950 + if ( !doc.createDocumentFragment ) { + doc = document; + } + + // Only cache "small" (1/2 KB) HTML strings that are associated with the main document + // Cloning options loses the selected state, so don't cache them + // IE 6 doesn't like it when you put or elements in a fragment + // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache + if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document && + args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) { + + cacheable = true; + + cacheresults = jQuery.fragments[ args[0] ]; + if ( cacheresults && cacheresults !== 1 ) { + fragment = cacheresults; + } + } + + if ( !fragment ) { + fragment = doc.createDocumentFragment(); + jQuery.clean( args, doc, fragment, scripts ); + } + + if ( cacheable ) { + jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1; + } + + return { fragment: fragment, cacheable: cacheable }; +}; +jQuery.cache = {}; +jQuery.camelCase = function( string ) { + + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }; +jQuery.clean = function( elems, context, fragment, scripts ) { + + var checkScriptType; + + context = context || document; + + // !context.createElement fails in IE with an error but returns typeof 'object' + if ( typeof context.createElement === "undefined" ) { + context = context.ownerDocument || context[0] && context[0].ownerDocument || document; + } + + var ret = [], j; + + for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { + if ( typeof elem === "number" ) { + elem += ""; + } + + if ( !elem ) { + continue; + } + + // Convert html string into DOM nodes + if ( typeof elem === "string" ) { + if ( !rhtml.test( elem ) ) { + elem = context.createTextNode( elem ); + } else { + // Fix "XHTML"-style tags in all browsers + elem = elem.replace(rxhtmlTag, "<$1>"); + + // Trim whitespace, otherwise indexOf won't work as expected + var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(), + wrap = wrapMap[ tag ] || wrapMap._default, + depth = wrap[0], + div = context.createElement("div"); + + // Go to html and back, then peel off extra wrappers + div.innerHTML = wrap[1] + elem + wrap[2]; + + // Move to the right depth + while ( depth-- ) { + div = div.lastChild; + } + + // Remove IE's autoinserted from table fragments + if ( !jQuery.support.tbody ) { + + // String was a , *may* have spurious + var hasBody = rtbody.test(elem), + tbody = tag === "table" && !hasBody ? + div.firstChild && div.firstChild.childNodes : + + // String was a bare or + wrap[1] === "
    " && !hasBody ? + div.childNodes : + []; + + for ( j = tbody.length - 1; j >= 0 ; --j ) { + if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { + tbody[ j ].parentNode.removeChild( tbody[ j ] ); + } + } + } + + // IE completely kills leading whitespace when innerHTML is used + if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { + div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild ); + } + + elem = div.childNodes; + } + } + + // Resets defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + var len; + if ( !jQuery.support.appendChecked ) { + if ( elem[0] && typeof (len = elem.length) === "number" ) { + for ( j = 0; j < len; j++ ) { + findInputs( elem[j] ); + } + } else { + findInputs( elem ); + } + } + + if ( elem.nodeType ) { + ret.push( elem ); + } else { + ret = jQuery.merge( ret, elem ); + } + } + + if ( fragment ) { + checkScriptType = function( elem ) { + return !elem.type || rscriptType.test( elem.type ); + }; + for ( i = 0; ret[i]; i++ ) { + if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) { + scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] ); + + } else { + if ( ret[i].nodeType === 1 ) { + var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType ); + + ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) ); + } + fragment.appendChild( ret[i] ); + } + } + } + + return ret; + }; +jQuery.cleanData = function( elems ) { + + var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special, + deleteExpando = jQuery.support.deleteExpando; + + for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { + if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { + continue; + } + + id = elem[ jQuery.expando ]; + + if ( id ) { + data = cache[ id ] && cache[ id ][ internalKey ]; + + if ( data && data.events ) { + for ( var type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + + // Null the DOM reference to avoid IE6/7/8 leak (#7054) + if ( data.handle ) { + data.handle.elem = null; + } + } + + if ( deleteExpando ) { + delete elem[ jQuery.expando ]; + + } else if ( elem.removeAttribute ) { + elem.removeAttribute( jQuery.expando ); + } + + delete cache[ id ]; + } + } + }; +jQuery.clone = function( elem, dataAndEvents, deepDataAndEvents ) { + + var clone = elem.cloneNode(true), + srcElements, + destElements, + i; + + if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { + // IE copies events bound via attachEvent when using cloneNode. + // Calling detachEvent on the clone will also remove the events + // from the original. In order to get around this, we use some + // proprietary methods to clear the events. Thanks to MooTools + // guys for this hotness. + + cloneFixAttributes( elem, clone ); + + // Using Sizzle here is crazy slow, so we use getElementsByTagName + // instead + srcElements = getAll( elem ); + destElements = getAll( clone ); + + // Weird iteration because IE will replace the length property + // with an element if you are cloning the body and one of the + // elements on the page has a name or id of "length" + for ( i = 0; srcElements[i]; ++i ) { + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + cloneFixAttributes( srcElements[i], destElements[i] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + cloneCopyEvent( elem, clone ); + + if ( deepDataAndEvents ) { + srcElements = getAll( elem ); + destElements = getAll( clone ); + + for ( i = 0; srcElements[i]; ++i ) { + cloneCopyEvent( srcElements[i], destElements[i] ); + } + } + } + + srcElements = destElements = null; + + // Return the cloned set + return clone; + }; +jQuery.contains = function( a, b ) { +/// +/// Check to see if a DOM element is within another DOM element. +/// +/// +/// The DOM element that may contain the other element. +/// +/// +/// The DOM element that may be contained by the other element. +/// +/// + + return a !== b && (a.contains ? a.contains(b) : true); + }; +jQuery.css = function( elem, name, extra ) { + + var ret, hooks; + + // Make sure that we're working with the right name + name = jQuery.camelCase( name ); + hooks = jQuery.cssHooks[ name ]; + name = jQuery.cssProps[ name ] || name; + + // cssFloat needs a special treatment + if ( name === "cssFloat" ) { + name = "float"; + } + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) { + return ret; + + // Otherwise, if a way to get the computed value exists, use that + } else if ( curCSS ) { + return curCSS( elem, name ); + } + }; +jQuery.cssHooks = { "opacity": {}, +"height": {}, +"width": {} }; +jQuery.cssNumber = { "fillOpacity": true, +"fontWeight": true, +"lineHeight": true, +"opacity": true, +"orphans": true, +"widows": true, +"zIndex": true, +"zoom": true }; +jQuery.cssProps = { "float": 'cssFloat' }; +jQuery.curCSS = function( elem, name, extra ) { + + var ret, hooks; + + // Make sure that we're working with the right name + name = jQuery.camelCase( name ); + hooks = jQuery.cssHooks[ name ]; + name = jQuery.cssProps[ name ] || name; + + // cssFloat needs a special treatment + if ( name === "cssFloat" ) { + name = "float"; + } + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) { + return ret; + + // Otherwise, if a way to get the computed value exists, use that + } else if ( curCSS ) { + return curCSS( elem, name ); + } + }; +jQuery.data = function( elem, name, data, pvt /* Internal Use Only */ ) { +/// +/// 1: Store arbitrary data associated with the specified element. Returns the value that was set. +/// 1.1 - jQuery.data(element, key, value) +/// 2: Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. +/// 2.1 - jQuery.data(element, key) +/// 2.2 - jQuery.data(element) +/// +/// +/// The DOM element to associate with the data. +/// +/// +/// A string naming the piece of data to set. +/// +/// +/// The new data value. +/// +/// + + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, ret, + internalKey = jQuery.expando, + getByName = typeof name === "string", + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + elem[ jQuery.expando ] = id = ++jQuery.uuid; + } else { + id = jQuery.expando; + } + } + + if ( !cache[ id ] ) { + cache[ id ] = {}; + + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name); + } else { + cache[ id ] = jQuery.extend(cache[ id ], name); + } + } + + thisCache = cache[ id ]; + + // Internal jQuery data is stored in a separate object inside the object's data + // cache in order to avoid key collisions between internal data and user-defined + // data + if ( pvt ) { + if ( !thisCache[ internalKey ] ) { + thisCache[ internalKey ] = {}; + } + + thisCache = thisCache[ internalKey ]; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should + // not attempt to inspect the internal events object using jQuery.data, as this + // internal data object is undocumented and subject to change. + if ( name === "events" && !thisCache[name] ) { + return thisCache[ internalKey ] && thisCache[ internalKey ].events; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( getByName ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; + }; +jQuery.dequeue = function( elem, type ) { +/// +/// Execute the next function on the queue for the matched element. +/// +/// +/// A DOM element from which to remove and execute a queued function. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + fn = queue.shift(), + defer; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + } + + if ( fn ) { + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift("inprogress"); + } + + fn.call(elem, function() { + jQuery.dequeue(elem, type); + }); + } + + if ( !queue.length ) { + jQuery.removeData( elem, type + "queue", true ); + handleQueueMarkDefer( elem, type, "queue" ); + } + }; +jQuery.dir = function( elem, dir, until ) { + + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }; +jQuery.each = function( object, callback, args ) { +/// +/// A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. +/// +/// +/// The object or array to iterate over. +/// +/// +/// The function that will be executed on every object. +/// +/// + + var name, i = 0, + length = object.length, + isObj = length === undefined || jQuery.isFunction( object ); + + if ( args ) { + if ( isObj ) { + for ( name in object ) { + if ( callback.apply( object[ name ], args ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.apply( object[ i++ ], args ) === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isObj ) { + for ( name in object ) { + if ( callback.call( object[ name ], name, object[ name ] ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { + break; + } + } + } + } + + return object; + }; +jQuery.easing = {}; +jQuery.error = function( msg ) { +/// +/// Takes a string and throws an exception containing it. +/// +/// +/// The message to send out. +/// + + throw msg; + }; +jQuery.etag = {}; +jQuery.event = { "global": {}, +"customEvent": {}, +"props": ['altKey','attrChange','attrName','bubbles','button','cancelable','charCode','clientX','clientY','ctrlKey','currentTarget','data','detail','eventPhase','fromElement','handler','keyCode','layerX','layerY','metaKey','newValue','offsetX','offsetY','pageX','pageY','prevValue','relatedNode','relatedTarget','screenX','screenY','shiftKey','srcElement','target','toElement','view','wheelDelta','which'], +"guid": 100000000, +"special": {}, +"triggered": }; +jQuery.expr = { "order": ['ID','CLASS','NAME','TAG'], +"match": {}, +"leftMatch": {}, +"attrMap": {}, +"attrHandle": {}, +"relative": {}, +"find": {}, +"preFilter": {}, +"filters": {}, +"setFilters": {}, +"filter": {}, +":": {} }; +jQuery.extend = function() { +/// +/// Merge the contents of two or more objects together into the first object. +/// 1 - jQuery.extend(target, object1, objectN) +/// 2 - jQuery.extend(deep, target, object1, objectN) +/// +/// +/// If true, the merge becomes recursive (aka. deep copy). +/// +/// +/// The object to extend. It will receive the new properties. +/// +/// +/// An object containing additional properties to merge in. +/// +/// +/// Additional objects containing properties to merge in. +/// +/// + + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; +jQuery.filter = function( expr, elems, not ) { + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 ? + jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : + jQuery.find.matches(expr, elems); + }; +jQuery.find = function( query, context, extra, seed ) { + + context = context || document; + + // Only use querySelectorAll on non-XML documents + // (ID selectors don't work in non-HTML documents) + if ( !seed && !Sizzle.isXML(context) ) { + // See if we find a selector to speed up + var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); + + if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { + // Speed-up: Sizzle("TAG") + if ( match[1] ) { + return makeArray( context.getElementsByTagName( query ), extra ); + + // Speed-up: Sizzle(".CLASS") + } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { + return makeArray( context.getElementsByClassName( match[2] ), extra ); + } + } + + if ( context.nodeType === 9 ) { + // Speed-up: Sizzle("body") + // The body element only exists once, optimize finding it + if ( query === "body" && context.body ) { + return makeArray( [ context.body ], extra ); + + // Speed-up: Sizzle("#ID") + } else if ( match && match[3] ) { + var elem = context.getElementById( match[3] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id === match[3] ) { + return makeArray( [ elem ], extra ); + } + + } else { + return makeArray( [], extra ); + } + } + + try { + return makeArray( context.querySelectorAll(query), extra ); + } catch(qsaError) {} + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + var oldContext = context, + old = context.getAttribute( "id" ), + nid = old || id, + hasParent = context.parentNode, + relativeHierarchySelector = /^\s*[+~]/.test( query ); + + if ( !old ) { + context.setAttribute( "id", nid ); + } else { + nid = nid.replace( /'/g, "\\$&" ); + } + if ( relativeHierarchySelector && hasParent ) { + context = context.parentNode; + } + + try { + if ( !relativeHierarchySelector || hasParent ) { + return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); + } + + } catch(pseudoError) { + } finally { + if ( !old ) { + oldContext.removeAttribute( "id" ); + } + } + } + } + + return oldSizzle(query, context, extra, seed); + }; +jQuery.fn = { "selector": '', +"jquery": '1.6.3', +"length": 0 }; +jQuery.fragments = {}; +jQuery.fx = function( elem, options, prop ) { + + this.options = options; + this.elem = elem; + this.prop = prop; + + options.orig = options.orig || {}; + }; +jQuery.get = function( url, data, callback, type ) { +/// +/// Load data from the server using a HTTP GET request. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed if the request succeeds. +/// +/// +/// The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). +/// + + // shift arguments if data argument was omitted + if ( jQuery.isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + return jQuery.ajax({ + type: method, + url: url, + data: data, + success: callback, + dataType: type + }); + }; +jQuery.getJSON = function( url, data, callback ) { +/// +/// Load JSON-encoded data from the server using a GET HTTP request. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed if the request succeeds. +/// + + return jQuery.get( url, data, callback, "json" ); + }; +jQuery.getScript = function( url, callback ) { +/// +/// Load a JavaScript file from the server using a GET HTTP request, then execute it. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A callback function that is executed if the request succeeds. +/// + + return jQuery.get( url, undefined, callback, "script" ); + }; +jQuery.globalEval = function( data ) { +/// +/// Execute some JavaScript code globally. +/// +/// +/// The JavaScript code to execute. +/// + + if ( data && rnotwhite.test( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }; +jQuery.grep = function( elems, callback, inv ) { +/// +/// Finds the elements of an array which satisfy a filter function. The original array is not affected. +/// +/// +/// The array to search through. +/// +/// +/// The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object. +/// +/// +/// If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false. +/// +/// + + var ret = [], retVal; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( var i = 0, length = elems.length; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }; +jQuery.guid = 1; +jQuery.hasData = function( elem ) { +/// +/// Determine whether an element has any jQuery data associated with it. +/// +/// +/// A DOM element to be checked for data. +/// +/// + + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + + return !!elem && !isEmptyDataObject( elem ); + }; +jQuery.holdReady = function( hold ) { +/// +/// Holds or releases the execution of jQuery's ready event. +/// +/// +/// Indicates whether the ready hold is being requested or released +/// +/// + + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }; +jQuery.inArray = function( elem, array ) { +/// +/// Search for a specified value within an array and return its index (or -1 if not found). +/// +/// +/// The value to search for. +/// +/// +/// An array through which to search. +/// +/// + + if ( !array ) { + return -1; + } + + if ( indexOf ) { + return indexOf.call( array, elem ); + } + + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[ i ] === elem ) { + return i; + } + } + + return -1; + }; +jQuery.isEmptyObject = function( obj ) { +/// +/// Check to see if an object is empty (contains no properties). +/// +/// +/// The object that will be checked to see if it's empty. +/// +/// + + for ( var name in obj ) { + return false; + } + return true; + }; +jQuery.isFunction = function( obj ) { +/// +/// Determine if the argument passed is a Javascript function object. +/// +/// +/// Object to test whether or not it is a function. +/// +/// + + return jQuery.type(obj) === "function"; + }; +jQuery.isNaN = function( obj ) { + + return obj == null || !rdigit.test( obj ) || isNaN( obj ); + }; +jQuery.isPlainObject = function( obj ) { +/// +/// Check to see if an object is a plain object (created using "{}" or "new Object"). +/// +/// +/// The object that will be checked to see if it's a plain object. +/// +/// + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + + var key; + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }; +jQuery.isReady = true; +jQuery.isWindow = function( obj ) { +/// +/// Determine whether the argument is a window. +/// +/// +/// Object to test whether or not it is a window. +/// +/// + + return obj && typeof obj === "object" && "setInterval" in obj; + }; +jQuery.isXMLDoc = function( elem ) { +/// +/// Check to see if a DOM node is within an XML document (or is an XML document). +/// +/// +/// The DOM node that will be checked to see if it's in an XML document. +/// +/// + + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; + + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; +jQuery.lastModified = {}; +jQuery.makeArray = function( array, results ) { +/// +/// Convert an array-like object into a true JavaScript array. +/// +/// +/// Any object to turn into a native Array. +/// +/// + + var ret = results || []; + + if ( array != null ) { + // The window, strings (and functions) also have 'length' + // The extra typeof function check is to prevent crashes + // in Safari 2 (See: #3039) + // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 + var type = jQuery.type( array ); + + if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) { + push.call( ret, array ); + } else { + jQuery.merge( ret, array ); + } + } + + return ret; + }; +jQuery.map = function( elems, callback, arg ) { +/// +/// Translate all items in an array or object to new array of items. +/// 1 - jQuery.map(array, callback(elementOfArray, indexInArray)) +/// 2 - jQuery.map(arrayOrObject, callback( value, indexOrKey )) +/// +/// +/// The Array to translate. +/// +/// +/// The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object. +/// +/// + + var value, key, ret = [], + i = 0, + length = elems.length, + // jquery objects are treated as arrays + isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( key in elems ) { + value = callback( elems[ key ], key, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return ret.concat.apply( [], ret ); + }; +jQuery.merge = function( first, second ) { +/// +/// Merge the contents of two arrays together into the first array. +/// +/// +/// The first array to merge, the elements of second added. +/// +/// +/// The second array to merge into the first, unaltered. +/// +/// + + var i = first.length, + j = 0; + + if ( typeof second.length === "number" ) { + for ( var l = second.length; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }; +jQuery.noConflict = function( deep ) { +/// +/// Relinquish jQuery's control of the $ variable. +/// +/// +/// A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). +/// +/// + + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }; +jQuery.noData = { "embed": true, +"object": 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', +"applet": true }; +jQuery.nodeName = function( elem, name ) { + + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + }; +jQuery.noop = function() { +/// +/// An empty function. +/// +/// +}; +jQuery.now = function() { +/// +/// Return a number representing the current time. +/// +/// + + return (new Date()).getTime(); + }; +jQuery.nth = function( cur, result, dir, elem ) { + + result = result || 1; + var num = 0; + + for ( ; cur; cur = cur[dir] ) { + if ( cur.nodeType === 1 && ++num === result ) { + break; + } + } + + return cur; + }; +jQuery.offset = {}; +jQuery.param = function( a, traditional ) { +/// +/// Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. +/// 1 - jQuery.param(obj) +/// 2 - jQuery.param(obj, traditional) +/// +/// +/// An array or object to serialize. +/// +/// +/// A Boolean indicating whether to perform a traditional "shallow" serialization. +/// +/// + + var s = [], + add = function( key, value ) { + // If value is a function, invoke it and return its value + value = jQuery.isFunction( value ) ? value() : value; + s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); + }; + + // Set traditional to true for jQuery <= 1.3.2 behavior. + if ( traditional === undefined ) { + traditional = jQuery.ajaxSettings.traditional; + } + + // If an array was passed in, assume that it is an array of form elements. + if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + }); + + } else { + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( var prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ).replace( r20, "+" ); + }; +jQuery.parseJSON = function( data ) { +/// +/// Takes a well-formed JSON string and returns the resulting JavaScript object. +/// +/// +/// The JSON string to parse. +/// +/// + + if ( typeof data !== "string" || !data ) { + return null; + } + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return (new Function( "return " + data ))(); + + } + jQuery.error( "Invalid JSON: " + data ); + }; +jQuery.parseXML = function( data ) { +/// +/// Parses a string into an XML document. +/// +/// +/// a well-formed XML string to be parsed +/// +/// + + var xml, tmp; + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }; +jQuery.post = function( url, data, callback, type ) { +/// +/// Load data from the server using a HTTP POST request. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed if the request succeeds. +/// +/// +/// The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). +/// + + // shift arguments if data argument was omitted + if ( jQuery.isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + return jQuery.ajax({ + type: method, + url: url, + data: data, + success: callback, + dataType: type + }); + }; +jQuery.prop = function( elem, name, value ) { + + var nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + return (elem[ name ] = value); + } + + } else { + if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + return elem[ name ]; + } + } + }; +jQuery.propFix = { "tabindex": 'tabIndex', +"readonly": 'readOnly', +"for": 'htmlFor', +"class": 'className', +"maxlength": 'maxLength', +"cellspacing": 'cellSpacing', +"cellpadding": 'cellPadding', +"rowspan": 'rowSpan', +"colspan": 'colSpan', +"usemap": 'useMap', +"frameborder": 'frameBorder', +"contenteditable": 'contentEditable' }; +jQuery.propHooks = { "tabIndex": {}, +"selected": {} }; +jQuery.proxy = function( fn, context ) { +/// +/// Takes a function and returns a new one that will always have a particular context. +/// 1 - jQuery.proxy(function, context) +/// 2 - jQuery.proxy(context, name) +/// +/// +/// The function whose context will be changed. +/// +/// +/// The object to which the context (this) of the function should be set. +/// +/// + + if ( typeof context === "string" ) { + var tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + var args = slice.call( arguments, 2 ), + proxy = function() { + return fn.apply( context, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + + return proxy; + }; +jQuery.queue = function( elem, type, data ) { +/// +/// 1: Show the queue of functions to be executed on the matched element. +/// 1.1 - jQuery.queue(element, queueName) +/// 2: Manipulate the queue of functions to be executed on the matched element. +/// 2.1 - jQuery.queue(element, queueName, newQueue) +/// 2.2 - jQuery.queue(element, queueName, callback()) +/// +/// +/// A DOM element where the array of queued functions is attached. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// +/// An array of functions to replace the current queue contents. +/// +/// + + if ( elem ) { + type = (type || "fx") + "queue"; + var q = jQuery.data( elem, type, undefined, true ); + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !q || jQuery.isArray(data) ) { + q = jQuery.data( elem, type, jQuery.makeArray(data), true ); + } else { + q.push( data ); + } + } + return q || []; + } + }; +jQuery.ready = function( wait ) { + + // Either a released hold or an DOMready/load event and not yet ready + if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready, 1 ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger( "ready" ).unbind( "ready" ); + } + } + }; +jQuery.readyWait = 0; +jQuery.removeAttr = function( elem, name ) { + + var propName; + if ( elem.nodeType === 1 ) { + name = jQuery.attrFix[ name ] || name; + + jQuery.attr( elem, name, "" ); + elem.removeAttribute( name ); + + // Set corresponding property to false for boolean attributes + if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) { + elem[ propName ] = false; + } + } + }; +jQuery.removeData = function( elem, name, pvt /* Internal Use Only */ ) { +/// +/// Remove a previously-stored piece of data. +/// +/// +/// A DOM element from which to remove data. +/// +/// +/// A string naming the piece of data to remove. +/// +/// + + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, + + // Reference to internal data cache key + internalKey = jQuery.expando, + + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + + // See jQuery.data for more information + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ]; + + if ( thisCache ) { + + // Support interoperable removal of hyphenated or camelcased keys + if ( !thisCache[ name ] ) { + name = jQuery.camelCase( name ); + } + + delete thisCache[ name ]; + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( !isEmptyDataObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( pvt ) { + delete cache[ id ][ internalKey ]; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject(cache[ id ]) ) { + return; + } + } + + var internalCache = cache[ id ][ internalKey ]; + + // Browsers that fail expando deletion also refuse to delete expandos on + // the window, but it will allow it on all other JS objects; other browsers + // don't care + // Ensure that `cache` is not a window object #10080 + if ( jQuery.support.deleteExpando || !cache.setInterval ) { + delete cache[ id ]; + } else { + cache[ id ] = null; + } + + // We destroyed the entire user cache at once because it's faster than + // iterating through each key, but we need to continue to persist internal + // data if it existed + if ( internalCache ) { + cache[ id ] = {}; + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + + cache[ id ][ internalKey ] = internalCache; + + // Otherwise, we need to eliminate the expando on the node to avoid + // false lookups in the cache for entries that no longer exist + } else if ( isNode ) { + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( jQuery.support.deleteExpando ) { + delete elem[ jQuery.expando ]; + } else if ( elem.removeAttribute ) { + elem.removeAttribute( jQuery.expando ); + } else { + elem[ jQuery.expando ] = null; + } + } + }; +jQuery.removeEvent = function( elem, type, handle ) { + + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + }; +jQuery.sibling = function( n, elem ) { + + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + }; +jQuery.speed = function( speed, easing, fn ) { + + var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : { + complete: fn || !fn && easing || + jQuery.isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !jQuery.isFunction(easing) && easing + }; + + opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : + opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default; + + // Queueing + opt.old = opt.complete; + opt.complete = function( noUnmark ) { + if ( jQuery.isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue !== false ) { + jQuery.dequeue( this ); + } else if ( noUnmark !== false ) { + jQuery._unmark( this ); + } + }; + + return opt; + }; +jQuery.style = function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, origName = jQuery.camelCase( name ), + style = elem.style, hooks = jQuery.cssHooks[ origName ]; + + name = jQuery.cssProps[ origName ] || origName; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // convert relative number strings (+= or -=) to relative numbers. #7345 + if ( type === "string" && (ret = rrelNum.exec( value )) ) { + value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) ); + // Fixes bug #9237 + type = "number"; + } + + // Make sure that NaN and null values aren't set. See: #7116 + if ( value == null || type === "number" && isNaN( value ) ) { + return; + } + + // If a number was passed in, add 'px' to the (except for certain CSS properties) + if ( type === "number" && !jQuery.cssNumber[ origName ] ) { + value += "px"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) { + // Wrapped to prevent IE from throwing errors when 'invalid' values are provided + // Fixes bug #5509 + try { + style[ name ] = value; + } catch(e) {} + } + + } else { + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }; +jQuery.sub = function() { +/// +/// Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object. +/// +/// + + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }; +jQuery.support = { "leadingWhitespace": true, +"tbody": true, +"htmlSerialize": true, +"style": true, +"hrefNormalized": true, +"opacity": true, +"cssFloat": true, +"checkOn": true, +"optSelected": false, +"getSetAttribute": true, +"submitBubbles": true, +"changeBubbles": true, +"focusinBubbles": true, +"deleteExpando": true, +"noCloneEvent": true, +"inlineBlockNeedsLayout": false, +"shrinkWrapBlocks": false, +"reliableMarginRight": true, +"noCloneChecked": false, +"optDisabled": true, +"radioValue": false, +"checkClone": , +"appendChecked": true, +"boxModel": true, +"reliableHiddenOffsets": true, +"ajax": true, +"cors": false }; +jQuery.swap = function( elem, options, callback ) { + + var old = {}; + + // Remember the old values, and insert the new ones + for ( var name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + callback.call( elem ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + }; +jQuery.text = function( elems ) { + + var ret = "", elem; + + for ( var i = 0; elems[i]; i++ ) { + elem = elems[i]; + + // Get the text from text nodes and CDATA nodes + if ( elem.nodeType === 3 || elem.nodeType === 4 ) { + ret += elem.nodeValue; + + // Traverse everything else, except comment nodes + } else if ( elem.nodeType !== 8 ) { + ret += Sizzle.getText( elem.childNodes ); + } + } + + return ret; +}; +jQuery.trim = function( text ) { +/// +/// Remove the whitespace from the beginning and end of a string. +/// +/// +/// The string to trim. +/// +/// + + return text == null ? + "" : + trim.call( text ); + }; +jQuery.type = function( obj ) { +/// +/// Determine the internal JavaScript [[Class]] of an object. +/// +/// +/// Object to get the internal JavaScript [[Class]] of. +/// +/// + + return obj == null ? + String( obj ) : + class2type[ toString.call(obj) ] || "object"; + }; +jQuery.uaMatch = function( ua ) { + + ua = ua.toLowerCase(); + + var match = rwebkit.exec( ua ) || + ropera.exec( ua ) || + rmsie.exec( ua ) || + ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || + []; + + return { browser: match[1] || "", version: match[2] || "0" }; + }; +jQuery.unique = function( results ) { +/// +/// Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers. +/// +/// +/// The Array of DOM elements. +/// +/// + + if ( sortOrder ) { + hasDuplicate = baseHasDuplicate; + results.sort( sortOrder ); + + if ( hasDuplicate ) { + for ( var i = 1; i < results.length; i++ ) { + if ( results[i] === results[ i - 1 ] ) { + results.splice( i--, 1 ); + } + } + } + } + + return results; +}; +jQuery.uuid = 0; +jQuery.valHooks = { "option": {}, +"select": {}, +"radio": {}, +"checkbox": {} }; +jQuery.when = function( firstParam ) { +/// +/// Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events. +/// +/// +/// One or more Deferred objects, or plain JavaScript objects. +/// +/// + + var args = arguments, + i = 0, + length = args.length, + count = length, + deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ? + firstParam : + jQuery.Deferred(); + function resolveFunc( i ) { + return function( value ) { + args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; + if ( !( --count ) ) { + // Strange bug in FF4: + // Values changed onto the arguments object sometimes end up as undefined values + // outside the $.when method. Cloning the object into a fresh array solves the issue + deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) ); + } + }; + } + if ( length > 1 ) { + for( ; i < length; i++ ) { + if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) { + args[ i ].promise().then( resolveFunc(i), deferred.reject ); + } else { + --count; + } + } + if ( !count ) { + deferred.resolveWith( deferred, args ); + } + } else if ( deferred !== firstParam ) { + deferred.resolveWith( deferred, length ? [ firstParam ] : [] ); + } + return deferred.promise(); + }; +jQuery.Event.prototype.isDefaultPrevented = function returnFalse() { +/// +/// Returns whether event.preventDefault() was ever called on this event object. +/// +/// + + return false; +}; +jQuery.Event.prototype.isImmediatePropagationStopped = function returnFalse() { +/// +/// Returns whether event.stopImmediatePropagation() was ever called on this event object. +/// +/// + + return false; +}; +jQuery.Event.prototype.isPropagationStopped = function returnFalse() { +/// +/// Returns whether event.stopPropagation() was ever called on this event object. +/// +/// + + return false; +}; +jQuery.Event.prototype.preventDefault = function() { +/// +/// If this method is called, the default action of the event will not be triggered. +/// +/// + + this.isDefaultPrevented = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + + // if preventDefault exists run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // otherwise set the returnValue property of the original event to false (IE) + } else { + e.returnValue = false; + } + }; +jQuery.Event.prototype.stopImmediatePropagation = function() { +/// +/// Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. +/// + + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + }; +jQuery.Event.prototype.stopPropagation = function() { +/// +/// Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. +/// + + this.isPropagationStopped = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + // if stopPropagation exists run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + // otherwise set the cancelBubble property of the original event to true (IE) + e.cancelBubble = true; + }; +jQuery.prototype._toggle = function( fn ) { + + // Save reference to arguments for access in closure + var args = arguments, + guid = fn.guid || jQuery.guid++, + i = 0, + toggler = function( event ) { + // Figure out which function to execute + var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i; + jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 ); + + // Make sure that clicks stop + event.preventDefault(); + + // and execute the function + return args[ lastToggle ].apply( this, arguments ) || false; + }; + + // link all the functions, so any of them can unbind this click handler + toggler.guid = guid; + while ( i < args.length ) { + args[ i++ ].guid = guid; + } + + return this.click( toggler ); + }; +jQuery.prototype.add = function( selector, context ) { +/// +/// Add elements to the set of matched elements. +/// 1 - add(selector) +/// 2 - add(elements) +/// 3 - add(html) +/// 4 - add(jQuery object) +/// 5 - add(selector, context) +/// +/// +/// A string representing a selector expression to find additional elements to add to the set of matched elements. +/// +/// +/// The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method. +/// +/// + + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? + all : + jQuery.unique( all ) ); + }; +jQuery.prototype.addClass = function( value ) { +/// +/// Adds the specified class(es) to each of the set of matched elements. +/// 1 - addClass(className) +/// 2 - addClass(function(index, currentClass)) +/// +/// +/// One or more class names to be added to the class attribute of each matched element. +/// +/// + + var classNames, i, l, elem, + setClass, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call(this, j, this.className) ); + }); + } + + if ( value && typeof value === "string" ) { + classNames = value.split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 ) { + if ( !elem.className && classNames.length === 1 ) { + elem.className = value; + + } else { + setClass = " " + elem.className + " "; + + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) { + setClass += classNames[ c ] + " "; + } + } + elem.className = jQuery.trim( setClass ); + } + } + } + } + + return this; + }; +jQuery.prototype.after = function() { +/// +/// Insert content, specified by the parameter, after each element in the set of matched elements. +/// 1 - after(content, content) +/// 2 - after(function(index)) +/// +/// +/// HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements. +/// +/// + + if ( this[0] && this[0].parentNode ) { + return this.domManip(arguments, false, function( elem ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + }); + } else if ( arguments.length ) { + var set = this.pushStack( this, "after", arguments ); + set.push.apply( set, jQuery(arguments[0]).toArray() ); + return set; + } + }; +jQuery.prototype.ajaxComplete = function( f ){ +/// +/// Register a handler to be called when Ajax requests complete. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxError = function( f ){ +/// +/// Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxSend = function( f ){ +/// +/// Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxStart = function( f ){ +/// +/// Register a handler to be called when the first Ajax request begins. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxStop = function( f ){ +/// +/// Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxSuccess = function( f ){ +/// +/// Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.andSelf = function() { +/// +/// Add the previous set of elements on the stack to the current set. +/// +/// + + return this.add( this.prevObject ); + }; +jQuery.prototype.animate = function( prop, speed, easing, callback ) { +/// +/// Perform a custom animation of a set of CSS properties. +/// 1 - animate(properties, duration, easing, complete) +/// 2 - animate(properties, options) +/// +/// +/// A map of CSS properties that the animation will move toward. +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + var optall = jQuery.speed(speed, easing, callback); + + if ( jQuery.isEmptyObject( prop ) ) { + return this.each( optall.complete, [ false ] ); + } + + // Do not change referenced properties as per-property easing will be lost + prop = jQuery.extend( {}, prop ); + + return this[ optall.queue === false ? "each" : "queue" ](function() { + // XXX 'this' does not always have a nodeName when running the + // test suite + + if ( optall.queue === false ) { + jQuery._mark( this ); + } + + var opt = jQuery.extend( {}, optall ), + isElement = this.nodeType === 1, + hidden = isElement && jQuery(this).is(":hidden"), + name, val, p, + display, e, + parts, start, end, unit; + + // will store per property easing and be used to determine when an animation is complete + opt.animatedProperties = {}; + + for ( p in prop ) { + + // property name normalization + name = jQuery.camelCase( p ); + if ( p !== name ) { + prop[ name ] = prop[ p ]; + delete prop[ p ]; + } + + val = prop[ name ]; + + // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default) + if ( jQuery.isArray( val ) ) { + opt.animatedProperties[ name ] = val[ 1 ]; + val = prop[ name ] = val[ 0 ]; + } else { + opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing'; + } + + if ( val === "hide" && hidden || val === "show" && !hidden ) { + return opt.complete.call( this ); + } + + if ( isElement && ( name === "height" || name === "width" ) ) { + // Make sure that nothing sneaks out + // Record all 3 overflow attributes because IE does not + // change the overflow attribute when overflowX and + // overflowY are set to the same value + opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ]; + + // Set display property to inline-block for height/width + // animations on inline elements that are having width/height + // animated + if ( jQuery.css( this, "display" ) === "inline" && + jQuery.css( this, "float" ) === "none" ) { + if ( !jQuery.support.inlineBlockNeedsLayout ) { + this.style.display = "inline-block"; + + } else { + display = defaultDisplay( this.nodeName ); + + // inline-level elements accept inline-block; + // block-level elements need to be inline with layout + if ( display === "inline" ) { + this.style.display = "inline-block"; + + } else { + this.style.display = "inline"; + this.style.zoom = 1; + } + } + } + } + } + + if ( opt.overflow != null ) { + this.style.overflow = "hidden"; + } + + for ( p in prop ) { + e = new jQuery.fx( this, opt, p ); + val = prop[ p ]; + + if ( rfxtypes.test(val) ) { + e[ val === "toggle" ? hidden ? "show" : "hide" : val ](); + + } else { + parts = rfxnum.exec( val ); + start = e.cur(); + + if ( parts ) { + end = parseFloat( parts[2] ); + unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" ); + + // We need to compute starting value + if ( unit !== "px" ) { + jQuery.style( this, p, (end || 1) + unit); + start = ((end || 1) / e.cur()) * start; + jQuery.style( this, p, start + unit); + } + + // If a +=/-= token was provided, we're doing a relative animation + if ( parts[1] ) { + end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start; + } + + e.custom( start, end, unit ); + + } else { + e.custom( start, val, "" ); + } + } + } + + // For JS strict compliance + return true; + }); + }; +jQuery.prototype.append = function() { +/// +/// Insert content, specified by the parameter, to the end of each element in the set of matched elements. +/// 1 - append(content, content) +/// 2 - append(function(index, html)) +/// +/// +/// DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements. +/// +/// + + return this.domManip(arguments, true, function( elem ) { + if ( this.nodeType === 1 ) { + this.appendChild( elem ); + } + }); + }; +jQuery.prototype.appendTo = function( selector ) { +/// +/// Insert every element in the set of matched elements to the end of the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.attr = function( name, value ) { +/// +/// 1: Get the value of an attribute for the first element in the set of matched elements. +/// 1.1 - attr(attributeName) +/// 2: Set one or more attributes for the set of matched elements. +/// 2.1 - attr(attributeName, value) +/// 2.2 - attr(map) +/// 2.3 - attr(attributeName, function(index, attr)) +/// +/// +/// The name of the attribute to set. +/// +/// +/// A value to set for the attribute. +/// +/// + + return jQuery.access( this, name, value, true, jQuery.attr ); + }; +jQuery.prototype.before = function() { +/// +/// Insert content, specified by the parameter, before each element in the set of matched elements. +/// 1 - before(content, content) +/// 2 - before(function) +/// +/// +/// HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements. +/// +/// + + if ( this[0] && this[0].parentNode ) { + return this.domManip(arguments, false, function( elem ) { + this.parentNode.insertBefore( elem, this ); + }); + } else if ( arguments.length ) { + var set = jQuery(arguments[0]); + set.push.apply( set, this.toArray() ); + return this.pushStack( set, "before", arguments ); + } + }; +jQuery.prototype.bind = function( type, data, fn ) { +/// +/// Attach a handler to an event for the elements. +/// 1 - bind(eventType, eventData, handler(eventObject)) +/// 2 - bind(eventType, eventData, preventBubble) +/// 3 - bind(events) +/// +/// +/// A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + var handler; + + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( arguments.length === 2 || data === false ) { + fn = data; + data = undefined; + } + + if ( name === "one" ) { + handler = function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }; + handler.guid = fn.guid || jQuery.guid++; + } else { + handler = fn; + } + + if ( type === "unload" && name !== "one" ) { + this.one( type, data, fn ); + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.add( this[i], type, handler, data ); + } + } + + return this; + }; +jQuery.prototype.blur = function( data, fn ) { +/// +/// Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. +/// 1 - blur(handler(eventObject)) +/// 2 - blur(eventData, handler(eventObject)) +/// 3 - blur() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.change = function( data, fn ) { +/// +/// Bind an event handler to the "change" JavaScript event, or trigger that event on an element. +/// 1 - change(handler(eventObject)) +/// 2 - change(eventData, handler(eventObject)) +/// 3 - change() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.children = function( until, selector ) { +/// +/// Get the children of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.clearQueue = function( type ) { +/// +/// Remove from the queue all items that have not yet been run. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + return this.queue( type || "fx", [] ); + }; +jQuery.prototype.click = function( data, fn ) { +/// +/// Bind an event handler to the "click" JavaScript event, or trigger that event on an element. +/// 1 - click(handler(eventObject)) +/// 2 - click(eventData, handler(eventObject)) +/// 3 - click() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.clone = function( dataAndEvents, deepDataAndEvents ) { +/// +/// Create a deep copy of the set of matched elements. +/// 1 - clone(withDataAndEvents) +/// 2 - clone(withDataAndEvents, deepWithDataAndEvents) +/// +/// +/// A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. *In jQuery 1.5.0 the default value was incorrectly true; it was changed back to false in 1.5.1 and up. +/// +/// +/// A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false). +/// +/// + + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function () { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }; +jQuery.prototype.closest = function( selectors, context ) { +/// +/// 1: Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree. +/// 1.1 - closest(selector) +/// 1.2 - closest(selector, context) +/// 1.3 - closest(jQuery object) +/// 1.4 - closest(element) +/// 2: Gets an array of all the elements and selectors matched against the current element up through the DOM tree. +/// 2.1 - closest(selectors, context) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// +/// A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead. +/// +/// + + var ret = [], i, l, cur = this[0]; + + // Array + if ( jQuery.isArray( selectors ) ) { + var match, selector, + matches = {}, + level = 1; + + if ( cur && selectors.length ) { + for ( i = 0, l = selectors.length; i < l; i++ ) { + selector = selectors[i]; + + if ( !matches[ selector ] ) { + matches[ selector ] = POS.test( selector ) ? + jQuery( selector, context || this.context ) : + selector; + } + } + + while ( cur && cur.ownerDocument && cur !== context ) { + for ( selector in matches ) { + match = matches[ selector ]; + + if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) { + ret.push({ selector: selector, elem: cur, level: level }); + } + } + + cur = cur.parentNode; + level++; + } + } + + return ret; + } + + // String + var pos = POS.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( i = 0, l = this.length; i < l; i++ ) { + cur = this[i]; + + while ( cur ) { + if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { + ret.push( cur ); + break; + + } else { + cur = cur.parentNode; + if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) { + break; + } + } + } + } + + ret = ret.length > 1 ? jQuery.unique( ret ) : ret; + + return this.pushStack( ret, "closest", selectors ); + }; +jQuery.prototype.constructor = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }; +jQuery.prototype.contents = function( until, selector ) { +/// +/// Get the children of each element in the set of matched elements, including text and comment nodes. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.css = function( name, value ) { +/// +/// 1: Get the value of a style property for the first element in the set of matched elements. +/// 1.1 - css(propertyName) +/// 2: Set one or more CSS properties for the set of matched elements. +/// 2.1 - css(propertyName, value) +/// 2.2 - css(propertyName, function(index, value)) +/// 2.3 - css(map) +/// +/// +/// A CSS property name. +/// +/// +/// A value to set for the property. +/// +/// + + // Setting 'undefined' is a no-op + if ( arguments.length === 2 && value === undefined ) { + return this; + } + + return jQuery.access( this, name, value, true, function( elem, name, value ) { + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }); +}; +jQuery.prototype.data = function( key, value ) { +/// +/// 1: Store arbitrary data associated with the matched elements. +/// 1.1 - data(key, value) +/// 1.2 - data(obj) +/// 2: Returns value at named data store for the first element in the jQuery collection, as set by data(name, value). +/// 2.1 - data(key) +/// 2.2 - data() +/// +/// +/// A string naming the piece of data to set. +/// +/// +/// The new data value; it can be any Javascript type including Array or Object. +/// +/// + + var data = null; + + if ( typeof key === "undefined" ) { + if ( this.length ) { + data = jQuery.data( this[0] ); + + if ( this[0].nodeType === 1 ) { + var attr = this[0].attributes, name; + for ( var i = 0, l = attr.length; i < l; i++ ) { + name = attr[i].name; + + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.substring(5) ); + + dataAttr( this[0], name, data[ name ] ); + } + } + } + } + + return data; + + } else if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + // Try to fetch any internally stored data first + if ( data === undefined && this.length ) { + data = jQuery.data( this[0], key ); + data = dataAttr( this[0], key, data ); + } + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + + } else { + return this.each(function() { + var $this = jQuery( this ), + args = [ parts[0], value ]; + + $this.triggerHandler( "setData" + parts[1] + "!", args ); + jQuery.data( this, key, value ); + $this.triggerHandler( "changeData" + parts[1] + "!", args ); + }); + } + }; +jQuery.prototype.dblclick = function( data, fn ) { +/// +/// Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element. +/// 1 - dblclick(handler(eventObject)) +/// 2 - dblclick(eventData, handler(eventObject)) +/// 3 - dblclick() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.delay = function( time, type ) { +/// +/// Set a timer to delay execution of subsequent items in the queue. +/// +/// +/// An integer indicating the number of milliseconds to delay execution of the next item in the queue. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; + type = type || "fx"; + + return this.queue( type, function() { + var elem = this; + setTimeout(function() { + jQuery.dequeue( elem, type ); + }, time ); + }); + }; +jQuery.prototype.delegate = function( selector, types, data, fn ) { +/// +/// Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. +/// 1 - delegate(selector, eventType, handler) +/// 2 - delegate(selector, eventType, eventData, handler) +/// 3 - delegate(selector, events) +/// +/// +/// A selector to filter the elements that trigger the event. +/// +/// +/// A string containing one or more space-separated JavaScript event types, such as "click" or "keydown," or custom event names. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + return this.live( types, data, fn, selector ); + }; +jQuery.prototype.dequeue = function( type ) { +/// +/// Execute the next function on the queue for the matched elements. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }; +jQuery.prototype.detach = function( selector ) { +/// +/// Remove the set of matched elements from the DOM. +/// +/// +/// A selector expression that filters the set of matched elements to be removed. +/// +/// + + return this.remove( selector, true ); + }; +jQuery.prototype.die = function( types, data, fn, origSelector /* Internal Use Only */ ) { +/// +/// 1: Remove all event handlers previously attached using .live() from the elements. +/// 1.1 - die() +/// 2: Remove an event handler previously attached using .live() from the elements. +/// 2.1 - die(eventType, handler) +/// 2.2 - die(eventTypes) +/// +/// +/// A string containing a JavaScript event type, such as click or keydown. +/// +/// +/// The function that is no longer to be executed. +/// +/// + + var type, i = 0, match, namespaces, preType, + selector = origSelector || this.selector, + context = origSelector ? this : jQuery( this.context ); + + if ( typeof types === "object" && !types.preventDefault ) { + for ( var key in types ) { + context[ name ]( key, data, types[key], selector ); + } + + return this; + } + + if ( name === "die" && !types && + origSelector && origSelector.charAt(0) === "." ) { + + context.unbind( origSelector ); + + return this; + } + + if ( data === false || jQuery.isFunction( data ) ) { + fn = data || returnFalse; + data = undefined; + } + + types = (types || "").split(" "); + + while ( (type = types[ i++ ]) != null ) { + match = rnamespaces.exec( type ); + namespaces = ""; + + if ( match ) { + namespaces = match[0]; + type = type.replace( rnamespaces, "" ); + } + + if ( type === "hover" ) { + types.push( "mouseenter" + namespaces, "mouseleave" + namespaces ); + continue; + } + + preType = type; + + if ( liveMap[ type ] ) { + types.push( liveMap[ type ] + namespaces ); + type = type + namespaces; + + } else { + type = (liveMap[ type ] || type) + namespaces; + } + + if ( name === "live" ) { + // bind live handler + for ( var j = 0, l = context.length; j < l; j++ ) { + jQuery.event.add( context[j], "live." + liveConvert( type, selector ), + { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } ); + } + + } else { + // unbind live handler + context.unbind( "live." + liveConvert( type, selector ), fn ); + } + } + + return this; + }; +jQuery.prototype.domManip = function( args, table, callback ) { + + var results, first, fragment, parent, + value = args[0], + scripts = []; + + // We can't cloneNode fragments that contain checked, in WebKit + if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) { + return this.each(function() { + jQuery(this).domManip( args, table, callback, true ); + }); + } + + if ( jQuery.isFunction(value) ) { + return this.each(function(i) { + var self = jQuery(this); + args[0] = value.call(this, i, table ? self.html() : undefined); + self.domManip( args, table, callback ); + }); + } + + if ( this[0] ) { + parent = value && value.parentNode; + + // If we're in a fragment, just use that instead of building a new one + if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) { + results = { fragment: parent }; + + } else { + results = jQuery.buildFragment( args, this, scripts ); + } + + fragment = results.fragment; + + if ( fragment.childNodes.length === 1 ) { + first = fragment = fragment.firstChild; + } else { + first = fragment.firstChild; + } + + if ( first ) { + table = table && jQuery.nodeName( first, "tr" ); + + for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) { + callback.call( + table ? + root(this[i], first) : + this[i], + // Make sure that we do not leak memory by inadvertently discarding + // the original fragment (which might have attached data) instead of + // using it; in addition, use the original fragment object for the last + // item instead of first because it can end up being emptied incorrectly + // in certain situations (Bug #8070). + // Fragments from the fragment cache must always be cloned and never used + // in place. + results.cacheable || (l > 1 && i < lastIndex) ? + jQuery.clone( fragment, true, true ) : + fragment + ); + } + } + + if ( scripts.length ) { + jQuery.each( scripts, evalScript ); + } + } + + return this; + }; +jQuery.prototype.each = function( callback, args ) { +/// +/// Iterate over a jQuery object, executing a function for each matched element. +/// +/// +/// A function to execute for each matched element. +/// +/// + + return jQuery.each( this, callback, args ); + }; +jQuery.prototype.empty = function() { +/// +/// Remove all child nodes of the set of matched elements from the DOM. +/// +/// + + for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( elem.getElementsByTagName("*") ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + } + + return this; + }; +jQuery.prototype.end = function() { +/// +/// End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. +/// +/// + + return this.prevObject || this.constructor(null); + }; +jQuery.prototype.eq = function( i ) { +/// +/// Reduce the set of matched elements to the one at the specified index. +/// 1 - eq(index) +/// 2 - eq(-index) +/// +/// +/// An integer indicating the 0-based position of the element. +/// +/// + + return i === -1 ? + this.slice( i ) : + this.slice( i, +i + 1 ); + }; +jQuery.prototype.error = function( data, fn ) { +/// +/// Bind an event handler to the "error" JavaScript event. +/// 1 - error(handler(eventObject)) +/// 2 - error(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.extend = function() { + + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; +jQuery.prototype.fadeIn = function( speed, easing, callback ) { +/// +/// Display the matched elements by fading them to opaque. +/// 1 - fadeIn(duration, callback) +/// 2 - fadeIn(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.fadeOut = function( speed, easing, callback ) { +/// +/// Hide the matched elements by fading them to transparent. +/// 1 - fadeOut(duration, callback) +/// 2 - fadeOut(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.fadeTo = function( speed, to, easing, callback ) { +/// +/// Adjust the opacity of the matched elements. +/// 1 - fadeTo(duration, opacity, callback) +/// 2 - fadeTo(duration, opacity, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A number between 0 and 1 denoting the target opacity. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.filter(":hidden").css("opacity", 0).show().end() + .animate({opacity: to}, speed, easing, callback); + }; +jQuery.prototype.fadeToggle = function( speed, easing, callback ) { +/// +/// Display or hide the matched elements by animating their opacity. +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.filter = function( selector ) { +/// +/// Reduce the set of matched elements to those that match the selector or pass the function's test. +/// 1 - filter(selector) +/// 2 - filter(function(index)) +/// 3 - filter(element) +/// 4 - filter(jQuery object) +/// +/// +/// A string containing a selector expression to match the current set of elements against. +/// +/// + + return this.pushStack( winnow(this, selector, true), "filter", selector ); + }; +jQuery.prototype.find = function( selector ) { +/// +/// Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. +/// 1 - find(selector) +/// 2 - find(jQuery object) +/// 3 - find(element) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var self = this, + i, l; + + if ( typeof selector !== "string" ) { + return jQuery( selector ).filter(function() { + for ( i = 0, l = self.length; i < l; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }); + } + + var ret = this.pushStack( "", "find", selector ), + length, n, r; + + for ( i = 0, l = this.length; i < l; i++ ) { + length = ret.length; + jQuery.find( selector, this[i], ret ); + + if ( i > 0 ) { + // Make sure that the results are unique + for ( n = length; n < ret.length; n++ ) { + for ( r = 0; r < length; r++ ) { + if ( ret[r] === ret[n] ) { + ret.splice(n--, 1); + break; + } + } + } + } + } + + return ret; + }; +jQuery.prototype.first = function() { +/// +/// Reduce the set of matched elements to the first in the set. +/// +/// + + return this.eq( 0 ); + }; +jQuery.prototype.focus = function( data, fn ) { +/// +/// Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. +/// 1 - focus(handler(eventObject)) +/// 2 - focus(eventData, handler(eventObject)) +/// 3 - focus() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.focusin = function( data, fn ) { +/// +/// Bind an event handler to the "focusin" JavaScript event. +/// 1 - focusin(handler(eventObject)) +/// 2 - focusin(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.focusout = function( data, fn ) { +/// +/// Bind an event handler to the "focusout" JavaScript event. +/// 1 - focusout(handler(eventObject)) +/// 2 - focusout(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.get = function( num ) { +/// +/// Retrieve the DOM elements matched by the jQuery object. +/// +/// +/// A zero-based integer indicating which element to retrieve. +/// +/// + + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }; +jQuery.prototype.has = function( target ) { +/// +/// Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. +/// 1 - has(selector) +/// 2 - has(contained) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var targets = jQuery( target ); + return this.filter(function() { + for ( var i = 0, l = targets.length; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }; +jQuery.prototype.hasClass = function( selector ) { +/// +/// Determine whether any of the matched elements are assigned the given class. +/// +/// +/// The class name to search for. +/// +/// + + var className = " " + selector + " "; + for ( var i = 0, l = this.length; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { + return true; + } + } + + return false; + }; +jQuery.prototype.height = function( size ) { +/// +/// 1: Get the current computed height for the first element in the set of matched elements. +/// 1.1 - height() +/// 2: Set the CSS height of every matched element. +/// 2.1 - height(value) +/// 2.2 - height(function(index, height)) +/// +/// +/// An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string). +/// +/// + + // Get window width or height + var elem = this[0]; + if ( !elem ) { + return size == null ? null : this; + } + + if ( jQuery.isFunction( size ) ) { + return this.each(function( i ) { + var self = jQuery( this ); + self[ type ]( size.call( this, i, self[ type ]() ) ); + }); + } + + if ( jQuery.isWindow( elem ) ) { + // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode + // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat + var docElemProp = elem.document.documentElement[ "client" + name ], + body = elem.document.body; + return elem.document.compatMode === "CSS1Compat" && docElemProp || + body && body[ "client" + name ] || docElemProp; + + // Get document width or height + } else if ( elem.nodeType === 9 ) { + // Either scroll[Width/Height] or offset[Width/Height], whichever is greater + return Math.max( + elem.documentElement["client" + name], + elem.body["scroll" + name], elem.documentElement["scroll" + name], + elem.body["offset" + name], elem.documentElement["offset" + name] + ); + + // Get or set width or height on the element + } else if ( size === undefined ) { + var orig = jQuery.css( elem, type ), + ret = parseFloat( orig ); + + return jQuery.isNaN( ret ) ? orig : ret; + + // Set the width or height on the element (default to pixels if value is unitless) + } else { + return this.css( type, typeof size === "string" ? size : size + "px" ); + } + }; +jQuery.prototype.hide = function( speed, easing, callback ) { +/// +/// Hide the matched elements. +/// 1 - hide() +/// 2 - hide(duration, callback) +/// 3 - hide(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + if ( speed || speed === 0 ) { + return this.animate( genFx("hide", 3), speed, easing, callback); + + } else { + for ( var i = 0, j = this.length; i < j; i++ ) { + if ( this[i].style ) { + var display = jQuery.css( this[i], "display" ); + + if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) { + jQuery._data( this[i], "olddisplay", display ); + } + } + } + + // Set the display of the elements in a second loop + // to avoid the constant reflow + for ( i = 0; i < j; i++ ) { + if ( this[i].style ) { + this[i].style.display = "none"; + } + } + + return this; + } + }; +jQuery.prototype.hover = function( fnOver, fnOut ) { +/// +/// 1: Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. +/// 1.1 - hover(handlerIn(eventObject), handlerOut(eventObject)) +/// 2: Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements. +/// 2.1 - hover(handlerInOut(eventObject)) +/// +/// +/// A function to execute when the mouse pointer enters the element. +/// +/// +/// A function to execute when the mouse pointer leaves the element. +/// +/// + + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + }; +jQuery.prototype.html = function( value ) { +/// +/// 1: Get the HTML contents of the first element in the set of matched elements. +/// 1.1 - html() +/// 2: Set the HTML contents of each element in the set of matched elements. +/// 2.1 - html(htmlString) +/// 2.2 - html(function(index, oldhtml)) +/// +/// +/// A string of HTML to set as the content of each matched element. +/// +/// + + if ( value === undefined ) { + return this[0] && this[0].nodeType === 1 ? + this[0].innerHTML.replace(rinlinejQuery, "") : + null; + + // See if we can take a shortcut and just use innerHTML + } else if ( typeof value === "string" && !rnocache.test( value ) && + (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) && + !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) { + + value = value.replace(rxhtmlTag, "<$1>"); + + try { + for ( var i = 0, l = this.length; i < l; i++ ) { + // Remove element nodes and prevent memory leaks + if ( this[i].nodeType === 1 ) { + jQuery.cleanData( this[i].getElementsByTagName("*") ); + this[i].innerHTML = value; + } + } + + // If using innerHTML throws an exception, use the fallback method + } catch(e) { + this.empty().append( value ); + } + + } else if ( jQuery.isFunction( value ) ) { + this.each(function(i){ + var self = jQuery( this ); + + self.html( value.call(this, i, self.html()) ); + }); + + } else { + this.empty().append( value ); + } + + return this; + }; +jQuery.prototype.index = function( elem ) { +/// +/// Search for a given element from among the matched elements. +/// 1 - index() +/// 2 - index(selector) +/// 3 - index(element) +/// +/// +/// A selector representing a jQuery collection in which to look for an element. +/// +/// + + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }; +jQuery.prototype.init = function( selector, context, rootjQuery ) { + + var match, elem, ret, doc; + + // Handle $(""), $(null), or $(undefined) + if ( !selector ) { + return this; + } + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + } + + // The body element only exists once, optimize finding it + if ( selector === "body" && !context && document.body ) { + this.context = document; + this[0] = document.body; + this.selector = selector; + this.length = 1; + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + // Are we dealing with HTML string or an ID? + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = quickExpr.exec( selector ); + } + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + doc = (context ? context.ownerDocument || context : document); + + // If a single string is passed in and it's a single tag + // just do a createElement and skip the rest + ret = rsingleTag.exec( selector ); + + if ( ret ) { + if ( jQuery.isPlainObject( context ) ) { + selector = [ document.createElement( ret[1] ) ]; + jQuery.fn.attr.call( selector, context, true ); + + } else { + selector = [ doc.createElement( ret[1] ) ]; + } + + } else { + ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); + selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes; + } + + return jQuery.merge( this, selector ); + + // HANDLE: $("#id") + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return (context || rootjQuery).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if (selector.selector !== undefined) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }; +jQuery.prototype.innerHeight = function() { +/// +/// Get the current computed height for the first element in the set of matched elements, including padding but not border. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, "padding" ) ) : + null; + }; +jQuery.prototype.innerWidth = function() { +/// +/// Get the current computed width for the first element in the set of matched elements, including padding but not border. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, "padding" ) ) : + null; + }; +jQuery.prototype.insertAfter = function( selector ) { +/// +/// Insert every element in the set of matched elements after the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.insertBefore = function( selector ) { +/// +/// Insert every element in the set of matched elements before the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.is = function( selector ) { +/// +/// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. +/// 1 - is(selector) +/// 2 - is(function(index)) +/// 3 - is(jQuery object) +/// 4 - is(element) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + return !!selector && ( typeof selector === "string" ? + jQuery.filter( selector, this ).length > 0 : + this.filter( selector ).length > 0 ); + }; +jQuery.prototype.keydown = function( data, fn ) { +/// +/// Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element. +/// 1 - keydown(handler(eventObject)) +/// 2 - keydown(eventData, handler(eventObject)) +/// 3 - keydown() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.keypress = function( data, fn ) { +/// +/// Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element. +/// 1 - keypress(handler(eventObject)) +/// 2 - keypress(eventData, handler(eventObject)) +/// 3 - keypress() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.keyup = function( data, fn ) { +/// +/// Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element. +/// 1 - keyup(handler(eventObject)) +/// 2 - keyup(eventData, handler(eventObject)) +/// 3 - keyup() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.last = function() { +/// +/// Reduce the set of matched elements to the final one in the set. +/// +/// + + return this.eq( -1 ); + }; +jQuery.prototype.length = 0; +jQuery.prototype.live = function( types, data, fn, origSelector /* Internal Use Only */ ) { +/// +/// Attach a handler to the event for all elements which match the current selector, now and in the future. +/// 1 - live(eventType, handler) +/// 2 - live(eventType, eventData, handler) +/// 3 - live(events) +/// +/// +/// A string containing a JavaScript event type, such as "click" or "keydown." As of jQuery 1.4 the string can contain multiple, space-separated event types or custom event names, as well. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + var type, i = 0, match, namespaces, preType, + selector = origSelector || this.selector, + context = origSelector ? this : jQuery( this.context ); + + if ( typeof types === "object" && !types.preventDefault ) { + for ( var key in types ) { + context[ name ]( key, data, types[key], selector ); + } + + return this; + } + + if ( name === "die" && !types && + origSelector && origSelector.charAt(0) === "." ) { + + context.unbind( origSelector ); + + return this; + } + + if ( data === false || jQuery.isFunction( data ) ) { + fn = data || returnFalse; + data = undefined; + } + + types = (types || "").split(" "); + + while ( (type = types[ i++ ]) != null ) { + match = rnamespaces.exec( type ); + namespaces = ""; + + if ( match ) { + namespaces = match[0]; + type = type.replace( rnamespaces, "" ); + } + + if ( type === "hover" ) { + types.push( "mouseenter" + namespaces, "mouseleave" + namespaces ); + continue; + } + + preType = type; + + if ( liveMap[ type ] ) { + types.push( liveMap[ type ] + namespaces ); + type = type + namespaces; + + } else { + type = (liveMap[ type ] || type) + namespaces; + } + + if ( name === "live" ) { + // bind live handler + for ( var j = 0, l = context.length; j < l; j++ ) { + jQuery.event.add( context[j], "live." + liveConvert( type, selector ), + { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } ); + } + + } else { + // unbind live handler + context.unbind( "live." + liveConvert( type, selector ), fn ); + } + } + + return this; + }; +jQuery.prototype.load = function( url, params, callback ) { +/// +/// 1: Bind an event handler to the "load" JavaScript event. +/// 1.1 - load(handler(eventObject)) +/// 1.2 - load(eventData, handler(eventObject)) +/// 2: Load data from the server and place the returned HTML into the matched element. +/// 2.1 - load(url, data, complete(responseText, textStatus, XMLHttpRequest)) +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed when the request completes. +/// +/// + + if ( typeof url !== "string" && _load ) { + return _load.apply( this, arguments ); + + // Don't do a request if no elements are being requested + } else if ( !this.length ) { + return this; + } + + var off = url.indexOf( " " ); + if ( off >= 0 ) { + var selector = url.slice( off, url.length ); + url = url.slice( 0, off ); + } + + // Default to a GET request + var type = "GET"; + + // If the second parameter was provided + if ( params ) { + // If it's a function + if ( jQuery.isFunction( params ) ) { + // We assume that it's the callback + callback = params; + params = undefined; + + // Otherwise, build a param string + } else if ( typeof params === "object" ) { + params = jQuery.param( params, jQuery.ajaxSettings.traditional ); + type = "POST"; + } + } + + var self = this; + + // Request the remote document + jQuery.ajax({ + url: url, + type: type, + dataType: "html", + data: params, + // Complete callback (responseText is used internally) + complete: function( jqXHR, status, responseText ) { + // Store the response as specified by the jqXHR object + responseText = jqXHR.responseText; + // If successful, inject the HTML into all the matched elements + if ( jqXHR.isResolved() ) { + // #4825: Get the actual response in case + // a dataFilter is present in ajaxSettings + jqXHR.done(function( r ) { + responseText = r; + }); + // See if a selector was specified + self.html( selector ? + // Create a dummy div to hold the results + jQuery("
    ") + // inject the contents of the document in, removing the scripts + // to avoid any 'Permission Denied' errors in IE + .append(responseText.replace(rscript, "")) + + // Locate the specified elements + .find(selector) : + + // If not, just inject the full result + responseText ); + } + + if ( callback ) { + self.each( callback, [ responseText, status, jqXHR ] ); + } + } + }); + + return this; + }; +jQuery.prototype.map = function( callback ) { +/// +/// Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. +/// +/// +/// A function object that will be invoked for each element in the current set. +/// +/// + + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }; +jQuery.prototype.mousedown = function( data, fn ) { +/// +/// Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. +/// 1 - mousedown(handler(eventObject)) +/// 2 - mousedown(eventData, handler(eventObject)) +/// 3 - mousedown() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseenter = function( data, fn ) { +/// +/// Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. +/// 1 - mouseenter(handler(eventObject)) +/// 2 - mouseenter(eventData, handler(eventObject)) +/// 3 - mouseenter() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseleave = function( data, fn ) { +/// +/// Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. +/// 1 - mouseleave(handler(eventObject)) +/// 2 - mouseleave(eventData, handler(eventObject)) +/// 3 - mouseleave() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mousemove = function( data, fn ) { +/// +/// Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element. +/// 1 - mousemove(handler(eventObject)) +/// 2 - mousemove(eventData, handler(eventObject)) +/// 3 - mousemove() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseout = function( data, fn ) { +/// +/// Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element. +/// 1 - mouseout(handler(eventObject)) +/// 2 - mouseout(eventData, handler(eventObject)) +/// 3 - mouseout() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseover = function( data, fn ) { +/// +/// Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element. +/// 1 - mouseover(handler(eventObject)) +/// 2 - mouseover(eventData, handler(eventObject)) +/// 3 - mouseover() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseup = function( data, fn ) { +/// +/// Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element. +/// 1 - mouseup(handler(eventObject)) +/// 2 - mouseup(eventData, handler(eventObject)) +/// 3 - mouseup() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.next = function( until, selector ) { +/// +/// Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.nextAll = function( until, selector ) { +/// +/// Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.nextUntil = function( until, selector ) { +/// +/// Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. +/// 1 - nextUntil(selector, filter) +/// 2 - nextUntil(element, filter) +/// +/// +/// A string containing a selector expression to indicate where to stop matching following sibling elements. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.not = function( selector ) { +/// +/// Remove elements from the set of matched elements. +/// 1 - not(selector) +/// 2 - not(elements) +/// 3 - not(function(index)) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + return this.pushStack( winnow(this, selector, false), "not", selector); + }; +jQuery.prototype.offset = function( options ) { +/// +/// 1: Get the current coordinates of the first element in the set of matched elements, relative to the document. +/// 1.1 - offset() +/// 2: Set the current coordinates of every element in the set of matched elements, relative to the document. +/// 2.1 - offset(coordinates) +/// 2.2 - offset(function(index, coords)) +/// +/// +/// An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements. +/// +/// + + var elem = this[0], box; + + if ( options ) { + return this.each(function( i ) { + jQuery.offset.setOffset( this, options, i ); + }); + } + + if ( !elem || !elem.ownerDocument ) { + return null; + } + + if ( elem === elem.ownerDocument.body ) { + return jQuery.offset.bodyOffset( elem ); + } + + try { + box = elem.getBoundingClientRect(); + } catch(e) {} + + var doc = elem.ownerDocument, + docElem = doc.documentElement; + + // Make sure we're not dealing with a disconnected DOM node + if ( !box || !jQuery.contains( docElem, elem ) ) { + return box ? { top: box.top, left: box.left } : { top: 0, left: 0 }; + } + + var body = doc.body, + win = getWindow(doc), + clientTop = docElem.clientTop || body.clientTop || 0, + clientLeft = docElem.clientLeft || body.clientLeft || 0, + scrollTop = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop, + scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft, + top = box.top + scrollTop - clientTop, + left = box.left + scrollLeft - clientLeft; + + return { top: top, left: left }; + }; +jQuery.prototype.offsetParent = function() { +/// +/// Get the closest ancestor element that is positioned. +/// +/// + + return this.map(function() { + var offsetParent = this.offsetParent || document.body; + while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) { + offsetParent = offsetParent.offsetParent; + } + return offsetParent; + }); + }; +jQuery.prototype.one = function( type, data, fn ) { +/// +/// Attach a handler to an event for the elements. The handler is executed at most once per element. +/// +/// +/// A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + var handler; + + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( arguments.length === 2 || data === false ) { + fn = data; + data = undefined; + } + + if ( name === "one" ) { + handler = function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }; + handler.guid = fn.guid || jQuery.guid++; + } else { + handler = fn; + } + + if ( type === "unload" && name !== "one" ) { + this.one( type, data, fn ); + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.add( this[i], type, handler, data ); + } + } + + return this; + }; +jQuery.prototype.outerHeight = function( margin ) { +/// +/// Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. +/// +/// +/// A Boolean indicating whether to include the element's margin in the calculation. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) : + null; + }; +jQuery.prototype.outerWidth = function( margin ) { +/// +/// Get the current computed width for the first element in the set of matched elements, including padding and border. +/// +/// +/// A Boolean indicating whether to include the element's margin in the calculation. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) : + null; + }; +jQuery.prototype.parent = function( until, selector ) { +/// +/// Get the parent of each element in the current set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.parents = function( until, selector ) { +/// +/// Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.parentsUntil = function( until, selector ) { +/// +/// Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. +/// 1 - parentsUntil(selector, filter) +/// 2 - parentsUntil(element, filter) +/// +/// +/// A string containing a selector expression to indicate where to stop matching ancestor elements. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.position = function() { +/// +/// Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. +/// +/// + + if ( !this[0] ) { + return null; + } + + var elem = this[0], + + // Get *real* offsetParent + offsetParent = this.offsetParent(), + + // Get correct offsets + offset = this.offset(), + parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset(); + + // Subtract element margins + // note: when an element has margin: auto the offsetLeft and marginLeft + // are the same in Safari causing offset.left to incorrectly be 0 + offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0; + offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0; + + // Add offsetParent borders + parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0; + parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0; + + // Subtract the two offsets + return { + top: offset.top - parentOffset.top, + left: offset.left - parentOffset.left + }; + }; +jQuery.prototype.prepend = function() { +/// +/// Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. +/// 1 - prepend(content, content) +/// 2 - prepend(function(index, html)) +/// +/// +/// DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements. +/// +/// + + return this.domManip(arguments, true, function( elem ) { + if ( this.nodeType === 1 ) { + this.insertBefore( elem, this.firstChild ); + } + }); + }; +jQuery.prototype.prependTo = function( selector ) { +/// +/// Insert every element in the set of matched elements to the beginning of the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.prev = function( until, selector ) { +/// +/// Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.prevAll = function( until, selector ) { +/// +/// Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.prevUntil = function( until, selector ) { +/// +/// Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. +/// 1 - prevUntil(selector, filter) +/// 2 - prevUntil(element, filter) +/// +/// +/// A string containing a selector expression to indicate where to stop matching preceding sibling elements. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.promise = function( type, object ) { +/// +/// Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished. +/// +/// +/// The type of queue that needs to be observed. +/// +/// +/// Object onto which the promise methods have to be attached +/// +/// + + if ( typeof type !== "string" ) { + object = type; + type = undefined; + } + type = type || "fx"; + var defer = jQuery.Deferred(), + elements = this, + i = elements.length, + count = 1, + deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + tmp; + function resolve() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + } + while( i-- ) { + if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) || + ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) || + jQuery.data( elements[ i ], markDataKey, undefined, true ) ) && + jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) { + count++; + tmp.done( resolve ); + } + } + resolve(); + return defer.promise(); + }; +jQuery.prototype.prop = function( name, value ) { +/// +/// 1: Get the value of a property for the first element in the set of matched elements. +/// 1.1 - prop(propertyName) +/// 2: Set one or more properties for the set of matched elements. +/// 2.1 - prop(propertyName, value) +/// 2.2 - prop(map) +/// 2.3 - prop(propertyName, function(index, oldPropertyValue)) +/// +/// +/// The name of the property to set. +/// +/// +/// A value to set for the property. +/// +/// + + return jQuery.access( this, name, value, true, jQuery.prop ); + }; +jQuery.prototype.pushStack = function( elems, name, selector ) { +/// +/// Add a collection of DOM elements onto the jQuery stack. +/// 1 - pushStack(elements) +/// 2 - pushStack(elements, name, arguments) +/// +/// +/// An array of elements to push onto the stack and make into a new jQuery object. +/// +/// +/// The name of a jQuery method that generated the array of elements. +/// +/// +/// The arguments that were passed in to the jQuery method (for serialization). +/// +/// + + // Build a new jQuery matched element set + var ret = this.constructor(); + + if ( jQuery.isArray( elems ) ) { + push.apply( ret, elems ); + + } else { + jQuery.merge( ret, elems ); + } + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + ret.context = this.context; + + if ( name === "find" ) { + ret.selector = this.selector + (this.selector ? " " : "") + selector; + } else if ( name ) { + ret.selector = this.selector + "." + name + "(" + selector + ")"; + } + + // Return the newly-formed element set + return ret; + }; +jQuery.prototype.queue = function( type, data ) { +/// +/// 1: Show the queue of functions to be executed on the matched elements. +/// 1.1 - queue(queueName) +/// 2: Manipulate the queue of functions to be executed on the matched elements. +/// 2.1 - queue(queueName, newQueue) +/// 2.2 - queue(queueName, callback( next )) +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// +/// An array of functions to replace the current queue contents. +/// +/// + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + } + + if ( data === undefined ) { + return jQuery.queue( this[0], type ); + } + return this.each(function() { + var queue = jQuery.queue( this, type, data ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }; +jQuery.prototype.ready = function( fn ) { +/// +/// Specify a function to execute when the DOM is fully loaded. +/// +/// +/// A function to execute after the DOM is ready. +/// +/// + + // Attach the listeners + jQuery.bindReady(); + + // Add the callback + readyList.done( fn ); + + return this; + }; +jQuery.prototype.remove = function( selector, keepData ) { +/// +/// Remove the set of matched elements from the DOM. +/// +/// +/// A selector expression that filters the set of matched elements to be removed. +/// +/// + + for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { + if ( !selector || jQuery.filter( selector, [ elem ] ).length ) { + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( elem.getElementsByTagName("*") ); + jQuery.cleanData( [ elem ] ); + } + + if ( elem.parentNode ) { + elem.parentNode.removeChild( elem ); + } + } + } + + return this; + }; +jQuery.prototype.removeAttr = function( name ) { +/// +/// Remove an attribute from each element in the set of matched elements. +/// +/// +/// An attribute to remove. +/// +/// + + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }; +jQuery.prototype.removeClass = function( value ) { +/// +/// Remove a single class, multiple classes, or all classes from each element in the set of matched elements. +/// 1 - removeClass(className) +/// 2 - removeClass(function(index, class)) +/// +/// +/// One or more space-separated classes to be removed from the class attribute of each matched element. +/// +/// + + var classNames, i, l, elem, className, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call(this, j, this.className) ); + }); + } + + if ( (value && typeof value === "string") || value === undefined ) { + classNames = (value || "").split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 && elem.className ) { + if ( value ) { + className = (" " + elem.className + " ").replace( rclass, " " ); + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + className = className.replace(" " + classNames[ c ] + " ", " "); + } + elem.className = jQuery.trim( className ); + + } else { + elem.className = ""; + } + } + } + } + + return this; + }; +jQuery.prototype.removeData = function( key ) { +/// +/// Remove a previously-stored piece of data. +/// +/// +/// A string naming the piece of data to delete. +/// +/// + + return this.each(function() { + jQuery.removeData( this, key ); + }); + }; +jQuery.prototype.removeProp = function( name ) { +/// +/// Remove a property for the set of matched elements. +/// +/// +/// The name of the property to set. +/// +/// + + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }; +jQuery.prototype.replaceAll = function( selector ) { +/// +/// Replace each target element with the set of matched elements. +/// +/// +/// A selector expression indicating which element(s) to replace. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.replaceWith = function( value ) { +/// +/// Replace each element in the set of matched elements with the provided new content. +/// 1 - replaceWith(newContent) +/// 2 - replaceWith(function) +/// +/// +/// The content to insert. May be an HTML string, DOM element, or jQuery object. +/// +/// + + if ( this[0] && this[0].parentNode ) { + // Make sure that the elements are removed from the DOM before they are inserted + // this can help fix replacing a parent with child elements + if ( jQuery.isFunction( value ) ) { + return this.each(function(i) { + var self = jQuery(this), old = self.html(); + self.replaceWith( value.call( this, i, old ) ); + }); + } + + if ( typeof value !== "string" ) { + value = jQuery( value ).detach(); + } + + return this.each(function() { + var next = this.nextSibling, + parent = this.parentNode; + + jQuery( this ).remove(); + + if ( next ) { + jQuery(next).before( value ); + } else { + jQuery(parent).append( value ); + } + }); + } else { + return this.length ? + this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) : + this; + } + }; +jQuery.prototype.resize = function( data, fn ) { +/// +/// Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. +/// 1 - resize(handler(eventObject)) +/// 2 - resize(eventData, handler(eventObject)) +/// 3 - resize() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.scroll = function( data, fn ) { +/// +/// Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. +/// 1 - scroll(handler(eventObject)) +/// 2 - scroll(eventData, handler(eventObject)) +/// 3 - scroll() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.scrollLeft = function( val ) { +/// +/// 1: Get the current horizontal position of the scroll bar for the first element in the set of matched elements. +/// 1.1 - scrollLeft() +/// 2: Set the current horizontal position of the scroll bar for each of the set of matched elements. +/// 2.1 - scrollLeft(value) +/// +/// +/// An integer indicating the new position to set the scroll bar to. +/// +/// + + var elem, win; + + if ( val === undefined ) { + elem = this[ 0 ]; + + if ( !elem ) { + return null; + } + + win = getWindow( elem ); + + // Return the scroll offset + return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] : + jQuery.support.boxModel && win.document.documentElement[ method ] || + win.document.body[ method ] : + elem[ method ]; + } + + // Set the scroll offset + return this.each(function() { + win = getWindow( this ); + + if ( win ) { + win.scrollTo( + !i ? val : jQuery( win ).scrollLeft(), + i ? val : jQuery( win ).scrollTop() + ); + + } else { + this[ method ] = val; + } + }); + }; +jQuery.prototype.scrollTop = function( val ) { +/// +/// 1: Get the current vertical position of the scroll bar for the first element in the set of matched elements. +/// 1.1 - scrollTop() +/// 2: Set the current vertical position of the scroll bar for each of the set of matched elements. +/// 2.1 - scrollTop(value) +/// +/// +/// An integer indicating the new position to set the scroll bar to. +/// +/// + + var elem, win; + + if ( val === undefined ) { + elem = this[ 0 ]; + + if ( !elem ) { + return null; + } + + win = getWindow( elem ); + + // Return the scroll offset + return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] : + jQuery.support.boxModel && win.document.documentElement[ method ] || + win.document.body[ method ] : + elem[ method ]; + } + + // Set the scroll offset + return this.each(function() { + win = getWindow( this ); + + if ( win ) { + win.scrollTo( + !i ? val : jQuery( win ).scrollLeft(), + i ? val : jQuery( win ).scrollTop() + ); + + } else { + this[ method ] = val; + } + }); + }; +jQuery.prototype.select = function( data, fn ) { +/// +/// Bind an event handler to the "select" JavaScript event, or trigger that event on an element. +/// 1 - select(handler(eventObject)) +/// 2 - select(eventData, handler(eventObject)) +/// 3 - select() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.serialize = function() { +/// +/// Encode a set of form elements as a string for submission. +/// +/// + + return jQuery.param( this.serializeArray() ); + }; +jQuery.prototype.serializeArray = function() { +/// +/// Encode a set of form elements as an array of names and values. +/// +/// + + return this.map(function(){ + return this.elements ? jQuery.makeArray( this.elements ) : this; + }) + .filter(function(){ + return this.name && !this.disabled && + ( this.checked || rselectTextarea.test( this.nodeName ) || + rinput.test( this.type ) ); + }) + .map(function( i, elem ){ + var val = jQuery( this ).val(); + + return val == null ? + null : + jQuery.isArray( val ) ? + jQuery.map( val, function( val, i ){ + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + }) : + { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + }).get(); + }; +jQuery.prototype.show = function( speed, easing, callback ) { +/// +/// Display the matched elements. +/// 1 - show() +/// 2 - show(duration, callback) +/// 3 - show(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + var elem, display; + + if ( speed || speed === 0 ) { + return this.animate( genFx("show", 3), speed, easing, callback); + + } else { + for ( var i = 0, j = this.length; i < j; i++ ) { + elem = this[i]; + + if ( elem.style ) { + display = elem.style.display; + + // Reset the inline display of this element to learn if it is + // being hidden by cascaded rules or not + if ( !jQuery._data(elem, "olddisplay") && display === "none" ) { + display = elem.style.display = ""; + } + + // Set elements which have been overridden with display: none + // in a stylesheet to whatever the default browser style is + // for such an element + if ( display === "" && jQuery.css( elem, "display" ) === "none" ) { + jQuery._data(elem, "olddisplay", defaultDisplay(elem.nodeName)); + } + } + } + + // Set the display of most of the elements in a second loop + // to avoid the constant reflow + for ( i = 0; i < j; i++ ) { + elem = this[i]; + + if ( elem.style ) { + display = elem.style.display; + + if ( display === "" || display === "none" ) { + elem.style.display = jQuery._data(elem, "olddisplay") || ""; + } + } + } + + return this; + } + }; +jQuery.prototype.siblings = function( until, selector ) { +/// +/// Get the siblings of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.size = function() { +/// +/// Return the number of elements in the jQuery object. +/// +/// + + return this.length; + }; +jQuery.prototype.slice = function() { +/// +/// Reduce the set of matched elements to a subset specified by a range of indices. +/// +/// +/// An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set. +/// +/// +/// An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set. +/// +/// + + return this.pushStack( slice.apply( this, arguments ), + "slice", slice.call(arguments).join(",") ); + }; +jQuery.prototype.slideDown = function( speed, easing, callback ) { +/// +/// Display the matched elements with a sliding motion. +/// 1 - slideDown(duration, callback) +/// 2 - slideDown(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.slideToggle = function( speed, easing, callback ) { +/// +/// Display or hide the matched elements with a sliding motion. +/// 1 - slideToggle(duration, callback) +/// 2 - slideToggle(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.slideUp = function( speed, easing, callback ) { +/// +/// Hide the matched elements with a sliding motion. +/// 1 - slideUp(duration, callback) +/// 2 - slideUp(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.stop = function( clearQueue, gotoEnd ) { +/// +/// Stop the currently-running animation on the matched elements. +/// +/// +/// A Boolean indicating whether to remove queued animation as well. Defaults to false. +/// +/// +/// A Boolean indicating whether to complete the current animation immediately. Defaults to false. +/// +/// + + if ( clearQueue ) { + this.queue([]); + } + + this.each(function() { + var timers = jQuery.timers, + i = timers.length; + // clear marker counters if we know they won't be + if ( !gotoEnd ) { + jQuery._unmark( true, this ); + } + while ( i-- ) { + if ( timers[i].elem === this ) { + if (gotoEnd) { + // force the next step to be the last + timers[i](true); + } + + timers.splice(i, 1); + } + } + }); + + // start the next in the queue if the last step wasn't forced + if ( !gotoEnd ) { + this.dequeue(); + } + + return this; + }; +jQuery.prototype.submit = function( data, fn ) { +/// +/// Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. +/// 1 - submit(handler(eventObject)) +/// 2 - submit(eventData, handler(eventObject)) +/// 3 - submit() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.text = function( text ) { +/// +/// 1: Get the combined text contents of each element in the set of matched elements, including their descendants. +/// 1.1 - text() +/// 2: Set the content of each element in the set of matched elements to the specified text. +/// 2.1 - text(textString) +/// 2.2 - text(function(index, text)) +/// +/// +/// A string of text to set as the content of each matched element. +/// +/// + + if ( jQuery.isFunction(text) ) { + return this.each(function(i) { + var self = jQuery( this ); + + self.text( text.call(this, i, self.text()) ); + }); + } + + if ( typeof text !== "object" && text !== undefined ) { + return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); + } + + return jQuery.text( this ); + }; +jQuery.prototype.toArray = function() { +/// +/// Retrieve all the DOM elements contained in the jQuery set, as an array. +/// +/// + + return slice.call( this, 0 ); + }; +jQuery.prototype.toggle = function( fn, fn2, callback ) { +/// +/// 1: Bind two or more handlers to the matched elements, to be executed on alternate clicks. +/// 1.1 - toggle(handler(eventObject), handler(eventObject), handler(eventObject)) +/// 2: Display or hide the matched elements. +/// 2.1 - toggle(duration, callback) +/// 2.2 - toggle(duration, easing, callback) +/// 2.3 - toggle(showOrHide) +/// +/// +/// A function to execute every even time the element is clicked. +/// +/// +/// A function to execute every odd time the element is clicked. +/// +/// +/// Additional handlers to cycle through after clicks. +/// +/// + + var bool = typeof fn === "boolean"; + + if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) { + this._toggle.apply( this, arguments ); + + } else if ( fn == null || bool ) { + this.each(function() { + var state = bool ? fn : jQuery(this).is(":hidden"); + jQuery(this)[ state ? "show" : "hide" ](); + }); + + } else { + this.animate(genFx("toggle", 3), fn, fn2, callback); + } + + return this; + }; +jQuery.prototype.toggleClass = function( value, stateVal ) { +/// +/// Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. +/// 1 - toggleClass(className) +/// 2 - toggleClass(className, switch) +/// 3 - toggleClass(function(index, class, switch), switch) +/// +/// +/// One or more class names (separated by spaces) to be toggled for each element in the matched set. +/// +/// +/// A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed. +/// +/// + + var type = typeof value, + isBool = typeof stateVal === "boolean"; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + state = stateVal, + classNames = value.split( rspace ); + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space seperated list + state = isBool ? state : !self.hasClass( className ); + self[ state ? "addClass" : "removeClass" ]( className ); + } + + } else if ( type === "undefined" || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // toggle whole className + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }; +jQuery.prototype.trigger = function( type, data ) { +/// +/// Execute all handlers and behaviors attached to the matched elements for the given event type. +/// 1 - trigger(eventType, extraParameters) +/// 2 - trigger(event) +/// +/// +/// A string containing a JavaScript event type, such as click or submit. +/// +/// +/// Additional parameters to pass along to the event handler. +/// +/// + + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }; +jQuery.prototype.triggerHandler = function( type, data ) { +/// +/// Execute all handlers attached to an element for an event. +/// +/// +/// A string containing a JavaScript event type, such as click or submit. +/// +/// +/// An array of additional parameters to pass along to the event handler. +/// +/// + + if ( this[0] ) { + return jQuery.event.trigger( type, data, this[0], true ); + } + }; +jQuery.prototype.unbind = function( type, fn ) { +/// +/// Remove a previously-attached event handler from the elements. +/// 1 - unbind(eventType, handler(eventObject)) +/// 2 - unbind(eventType, false) +/// 3 - unbind(event) +/// +/// +/// A string containing a JavaScript event type, such as click or submit. +/// +/// +/// The function that is to be no longer executed. +/// +/// + + // Handle object literals + if ( typeof type === "object" && !type.preventDefault ) { + for ( var key in type ) { + this.unbind(key, type[key]); + } + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.remove( this[i], type, fn ); + } + } + + return this; + }; +jQuery.prototype.undelegate = function( selector, types, fn ) { +/// +/// Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements. +/// 1 - undelegate() +/// 2 - undelegate(selector, eventType) +/// 3 - undelegate(selector, eventType, handler) +/// 4 - undelegate(selector, events) +/// 5 - undelegate(namespace) +/// +/// +/// A selector which will be used to filter the event results. +/// +/// +/// A string containing a JavaScript event type, such as "click" or "keydown" +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + if ( arguments.length === 0 ) { + return this.unbind( "live" ); + + } else { + return this.die( types, null, fn, selector ); + } + }; +jQuery.prototype.unload = function( data, fn ) { +/// +/// Bind an event handler to the "unload" JavaScript event. +/// 1 - unload(handler(eventObject)) +/// 2 - unload(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.unwrap = function() { +/// +/// Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. +/// +/// + + return this.parent().each(function() { + if ( !jQuery.nodeName( this, "body" ) ) { + jQuery( this ).replaceWith( this.childNodes ); + } + }).end(); + }; +jQuery.prototype.val = function( value ) { +/// +/// 1: Get the current value of the first element in the set of matched elements. +/// 1.1 - val() +/// 2: Set the value of each element in the set of matched elements. +/// 2.1 - val(value) +/// 2.2 - val(function(index, value)) +/// +/// +/// A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked. +/// +/// + + var hooks, ret, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return undefined; + } + + var isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var self = jQuery(this), val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, self.val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + }; +jQuery.prototype.width = function( size ) { +/// +/// 1: Get the current computed width for the first element in the set of matched elements. +/// 1.1 - width() +/// 2: Set the CSS width of each element in the set of matched elements. +/// 2.1 - width(value) +/// 2.2 - width(function(index, width)) +/// +/// +/// An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). +/// +/// + + // Get window width or height + var elem = this[0]; + if ( !elem ) { + return size == null ? null : this; + } + + if ( jQuery.isFunction( size ) ) { + return this.each(function( i ) { + var self = jQuery( this ); + self[ type ]( size.call( this, i, self[ type ]() ) ); + }); + } + + if ( jQuery.isWindow( elem ) ) { + // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode + // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat + var docElemProp = elem.document.documentElement[ "client" + name ], + body = elem.document.body; + return elem.document.compatMode === "CSS1Compat" && docElemProp || + body && body[ "client" + name ] || docElemProp; + + // Get document width or height + } else if ( elem.nodeType === 9 ) { + // Either scroll[Width/Height] or offset[Width/Height], whichever is greater + return Math.max( + elem.documentElement["client" + name], + elem.body["scroll" + name], elem.documentElement["scroll" + name], + elem.body["offset" + name], elem.documentElement["offset" + name] + ); + + // Get or set width or height on the element + } else if ( size === undefined ) { + var orig = jQuery.css( elem, type ), + ret = parseFloat( orig ); + + return jQuery.isNaN( ret ) ? orig : ret; + + // Set the width or height on the element (default to pixels if value is unitless) + } else { + return this.css( type, typeof size === "string" ? size : size + "px" ); + } + }; +jQuery.prototype.wrap = function( html ) { +/// +/// Wrap an HTML structure around each element in the set of matched elements. +/// 1 - wrap(wrappingElement) +/// 2 - wrap(function(index)) +/// +/// +/// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements. +/// +/// + + return this.each(function() { + jQuery( this ).wrapAll( html ); + }); + }; +jQuery.prototype.wrapAll = function( html ) { +/// +/// Wrap an HTML structure around all elements in the set of matched elements. +/// +/// +/// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements. +/// +/// + + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapAll( html.call(this, i) ); + }); + } + + if ( this[0] ) { + // The elements to wrap the target around + var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); + + if ( this[0].parentNode ) { + wrap.insertBefore( this[0] ); + } + + wrap.map(function() { + var elem = this; + + while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { + elem = elem.firstChild; + } + + return elem; + }).append( this ); + } + + return this; + }; +jQuery.prototype.wrapInner = function( html ) { +/// +/// Wrap an HTML structure around the content of each element in the set of matched elements. +/// 1 - wrapInner(wrappingElement) +/// 2 - wrapInner(function(index)) +/// +/// +/// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements. +/// +/// + + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapInner( html.call(this, i) ); + }); + } + + return this.each(function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + }); + }; +jQuery.fn = jQuery.prototype; +jQuery.fn.init.prototype = jQuery.fn; +window.jQuery = window.$ = jQuery; +})(window); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/Plugins/jquery-1.6.3.js b/NzbDrone.Web/Scripts/Plugins/jquery-1.6.3.js new file mode 100644 index 000000000..792e62f49 --- /dev/null +++ b/NzbDrone.Web/Scripts/Plugins/jquery-1.6.3.js @@ -0,0 +1,9044 @@ +/*! + * jQuery JavaScript Library v1.6.3 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Aug 31 10:35:15 2011 -0400 + */ +(function( window, undefined ) { + +// Use the correct document accordingly with window argument (sandbox) +var document = window.document, + navigator = window.navigator, + location = window.location; +var jQuery = (function() { + +// Define a local copy of jQuery +var jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }, + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$, + + // A central reference to the root jQuery(document) + rootjQuery, + + // A simple way to check for HTML strings or ID strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, + + // Check if a string has a non-whitespace character in it + rnotwhite = /\S/, + + // Used for trimming whitespace + trimLeft = /^\s+/, + trimRight = /\s+$/, + + // Check for digits + rdigit = /\d/, + + // Match a standalone tag + rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, + + // JSON RegExp + rvalidchars = /^[\],:{}\s]*$/, + rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, + rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, + rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, + + // Useragent RegExp + rwebkit = /(webkit)[ \/]([\w.]+)/, + ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/, + rmsie = /(msie) ([\w.]+)/, + rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/, + + // Matches dashed string for camelizing + rdashAlpha = /-([a-z]|[0-9])/ig, + rmsPrefix = /^-ms-/, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return ( letter + "" ).toUpperCase(); + }, + + // Keep a UserAgent string for use with jQuery.browser + userAgent = navigator.userAgent, + + // For matching the engine and version of the browser + browserMatch, + + // The deferred used on DOM ready + readyList, + + // The ready event handler + DOMContentLoaded, + + // Save a reference to some core methods + toString = Object.prototype.toString, + hasOwn = Object.prototype.hasOwnProperty, + push = Array.prototype.push, + slice = Array.prototype.slice, + trim = String.prototype.trim, + indexOf = Array.prototype.indexOf, + + // [[Class]] -> type pairs + class2type = {}; + +jQuery.fn = jQuery.prototype = { + constructor: jQuery, + init: function( selector, context, rootjQuery ) { + var match, elem, ret, doc; + + // Handle $(""), $(null), or $(undefined) + if ( !selector ) { + return this; + } + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + } + + // The body element only exists once, optimize finding it + if ( selector === "body" && !context && document.body ) { + this.context = document; + this[0] = document.body; + this.selector = selector; + this.length = 1; + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + // Are we dealing with HTML string or an ID? + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = quickExpr.exec( selector ); + } + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + doc = (context ? context.ownerDocument || context : document); + + // If a single string is passed in and it's a single tag + // just do a createElement and skip the rest + ret = rsingleTag.exec( selector ); + + if ( ret ) { + if ( jQuery.isPlainObject( context ) ) { + selector = [ document.createElement( ret[1] ) ]; + jQuery.fn.attr.call( selector, context, true ); + + } else { + selector = [ doc.createElement( ret[1] ) ]; + } + + } else { + ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); + selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes; + } + + return jQuery.merge( this, selector ); + + // HANDLE: $("#id") + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return (context || rootjQuery).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if (selector.selector !== undefined) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }, + + // Start with an empty selector + selector: "", + + // The current version of jQuery being used + jquery: "1.6.3", + + // The default length of a jQuery object is 0 + length: 0, + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + toArray: function() { + return slice.call( this, 0 ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems, name, selector ) { + // Build a new jQuery matched element set + var ret = this.constructor(); + + if ( jQuery.isArray( elems ) ) { + push.apply( ret, elems ); + + } else { + jQuery.merge( ret, elems ); + } + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + ret.context = this.context; + + if ( name === "find" ) { + ret.selector = this.selector + (this.selector ? " " : "") + selector; + } else if ( name ) { + ret.selector = this.selector + "." + name + "(" + selector + ")"; + } + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + ready: function( fn ) { + // Attach the listeners + jQuery.bindReady(); + + // Add the callback + readyList.done( fn ); + + return this; + }, + + eq: function( i ) { + return i === -1 ? + this.slice( i ) : + this.slice( i, +i + 1 ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ), + "slice", slice.call(arguments).join(",") ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: [].sort, + splice: [].splice +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + noConflict: function( deep ) { + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }, + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + // Either a released hold or an DOMready/load event and not yet ready + if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready, 1 ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger( "ready" ).unbind( "ready" ); + } + } + }, + + bindReady: function() { + if ( readyList ) { + return; + } + + readyList = jQuery._Deferred(); + + // Catch cases where $(document).ready() is called after the + // browser event has already occurred. + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 1 ); + } + + // Mozilla, Opera and webkit nightlies currently support this event + if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", jQuery.ready, false ); + + // If IE event model is used + } else if ( document.attachEvent ) { + // ensure firing before onload, + // maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", DOMContentLoaded ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", jQuery.ready ); + + // If IE and not a frame + // continually check to see if the document is ready + var toplevel = false; + + try { + toplevel = window.frameElement == null; + } catch(e) {} + + if ( document.documentElement.doScroll && toplevel ) { + doScrollCheck(); + } + } + }, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type(obj) === "array"; + }, + + // A crude way of determining if an object is a window + isWindow: function( obj ) { + return obj && typeof obj === "object" && "setInterval" in obj; + }, + + isNaN: function( obj ) { + return obj == null || !rdigit.test( obj ) || isNaN( obj ); + }, + + type: function( obj ) { + return obj == null ? + String( obj ) : + class2type[ toString.call(obj) ] || "object"; + }, + + isPlainObject: function( obj ) { + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + + var key; + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }, + + isEmptyObject: function( obj ) { + for ( var name in obj ) { + return false; + } + return true; + }, + + error: function( msg ) { + throw msg; + }, + + parseJSON: function( data ) { + if ( typeof data !== "string" || !data ) { + return null; + } + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return (new Function( "return " + data ))(); + + } + jQuery.error( "Invalid JSON: " + data ); + }, + + // Cross-browser xml parsing + parseXML: function( data ) { + var xml, tmp; + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }, + + noop: function() {}, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && rnotwhite.test( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + }, + + // args is for internal usage only + each: function( object, callback, args ) { + var name, i = 0, + length = object.length, + isObj = length === undefined || jQuery.isFunction( object ); + + if ( args ) { + if ( isObj ) { + for ( name in object ) { + if ( callback.apply( object[ name ], args ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.apply( object[ i++ ], args ) === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isObj ) { + for ( name in object ) { + if ( callback.call( object[ name ], name, object[ name ] ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { + break; + } + } + } + } + + return object; + }, + + // Use native String.trim function wherever possible + trim: trim ? + function( text ) { + return text == null ? + "" : + trim.call( text ); + } : + + // Otherwise use our own trimming functionality + function( text ) { + return text == null ? + "" : + text.toString().replace( trimLeft, "" ).replace( trimRight, "" ); + }, + + // results is for internal usage only + makeArray: function( array, results ) { + var ret = results || []; + + if ( array != null ) { + // The window, strings (and functions) also have 'length' + // The extra typeof function check is to prevent crashes + // in Safari 2 (See: #3039) + // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 + var type = jQuery.type( array ); + + if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) { + push.call( ret, array ); + } else { + jQuery.merge( ret, array ); + } + } + + return ret; + }, + + inArray: function( elem, array ) { + if ( !array ) { + return -1; + } + + if ( indexOf ) { + return indexOf.call( array, elem ); + } + + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[ i ] === elem ) { + return i; + } + } + + return -1; + }, + + merge: function( first, second ) { + var i = first.length, + j = 0; + + if ( typeof second.length === "number" ) { + for ( var l = second.length; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, inv ) { + var ret = [], retVal; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( var i = 0, length = elems.length; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, key, ret = [], + i = 0, + length = elems.length, + // jquery objects are treated as arrays + isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( key in elems ) { + value = callback( elems[ key ], key, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return ret.concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + if ( typeof context === "string" ) { + var tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + var args = slice.call( arguments, 2 ), + proxy = function() { + return fn.apply( context, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + + return proxy; + }, + + // Mutifunctional method to get and set values to a collection + // The value/s can optionally be executed if it's a function + access: function( elems, key, value, exec, fn, pass ) { + var length = elems.length; + + // Setting many attributes + if ( typeof key === "object" ) { + for ( var k in key ) { + jQuery.access( elems, k, key[k], exec, fn, value ); + } + return elems; + } + + // Setting one attribute + if ( value !== undefined ) { + // Optionally, function values get executed if exec is true + exec = !pass && exec && jQuery.isFunction(value); + + for ( var i = 0; i < length; i++ ) { + fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); + } + + return elems; + } + + // Getting an attribute + return length ? fn( elems[0], key ) : undefined; + }, + + now: function() { + return (new Date()).getTime(); + }, + + // Use of jQuery.browser is frowned upon. + // More details: http://docs.jquery.com/Utilities/jQuery.browser + uaMatch: function( ua ) { + ua = ua.toLowerCase(); + + var match = rwebkit.exec( ua ) || + ropera.exec( ua ) || + rmsie.exec( ua ) || + ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || + []; + + return { browser: match[1] || "", version: match[2] || "0" }; + }, + + sub: function() { + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }, + + browser: {} +}); + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +browserMatch = jQuery.uaMatch( userAgent ); +if ( browserMatch.browser ) { + jQuery.browser[ browserMatch.browser ] = true; + jQuery.browser.version = browserMatch.version; +} + +// Deprecated, use jQuery.browser.webkit instead +if ( jQuery.browser.webkit ) { + jQuery.browser.safari = true; +} + +// IE doesn't match non-breaking spaces with \s +if ( rnotwhite.test( "\xA0" ) ) { + trimLeft = /^[\s\xA0]+/; + trimRight = /[\s\xA0]+$/; +} + +// All jQuery objects should point back to these +rootjQuery = jQuery(document); + +// Cleanup functions for the document ready method +if ( document.addEventListener ) { + DOMContentLoaded = function() { + document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + jQuery.ready(); + }; + +} else if ( document.attachEvent ) { + DOMContentLoaded = function() { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( document.readyState === "complete" ) { + document.detachEvent( "onreadystatechange", DOMContentLoaded ); + jQuery.ready(); + } + }; +} + +// The DOM ready check for Internet Explorer +function doScrollCheck() { + if ( jQuery.isReady ) { + return; + } + + try { + // If IE is used, use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + document.documentElement.doScroll("left"); + } catch(e) { + setTimeout( doScrollCheck, 1 ); + return; + } + + // and execute any waiting functions + jQuery.ready(); +} + +return jQuery; + +})(); + + +var // Promise methods + promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ), + // Static reference to slice + sliceDeferred = [].slice; + +jQuery.extend({ + // Create a simple deferred (one callbacks list) + _Deferred: function() { + var // callbacks list + callbacks = [], + // stored [ context , args ] + fired, + // to avoid firing when already doing so + firing, + // flag to know if the deferred has been cancelled + cancelled, + // the deferred itself + deferred = { + + // done( f1, f2, ...) + done: function() { + if ( !cancelled ) { + var args = arguments, + i, + length, + elem, + type, + _fired; + if ( fired ) { + _fired = fired; + fired = 0; + } + for ( i = 0, length = args.length; i < length; i++ ) { + elem = args[ i ]; + type = jQuery.type( elem ); + if ( type === "array" ) { + deferred.done.apply( deferred, elem ); + } else if ( type === "function" ) { + callbacks.push( elem ); + } + } + if ( _fired ) { + deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] ); + } + } + return this; + }, + + // resolve with given context and args + resolveWith: function( context, args ) { + if ( !cancelled && !fired && !firing ) { + // make sure args are available (#8421) + args = args || []; + firing = 1; + try { + while( callbacks[ 0 ] ) { + callbacks.shift().apply( context, args ); + } + } + finally { + fired = [ context, args ]; + firing = 0; + } + } + return this; + }, + + // resolve with this as context and given arguments + resolve: function() { + deferred.resolveWith( this, arguments ); + return this; + }, + + // Has this deferred been resolved? + isResolved: function() { + return !!( firing || fired ); + }, + + // Cancel + cancel: function() { + cancelled = 1; + callbacks = []; + return this; + } + }; + + return deferred; + }, + + // Full fledged deferred (two callbacks list) + Deferred: function( func ) { + var deferred = jQuery._Deferred(), + failDeferred = jQuery._Deferred(), + promise; + // Add errorDeferred methods, then and promise + jQuery.extend( deferred, { + then: function( doneCallbacks, failCallbacks ) { + deferred.done( doneCallbacks ).fail( failCallbacks ); + return this; + }, + always: function() { + return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments ); + }, + fail: failDeferred.done, + rejectWith: failDeferred.resolveWith, + reject: failDeferred.resolve, + isRejected: failDeferred.isResolved, + pipe: function( fnDone, fnFail ) { + return jQuery.Deferred(function( newDefer ) { + jQuery.each( { + done: [ fnDone, "resolve" ], + fail: [ fnFail, "reject" ] + }, function( handler, data ) { + var fn = data[ 0 ], + action = data[ 1 ], + returned; + if ( jQuery.isFunction( fn ) ) { + deferred[ handler ](function() { + returned = fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise().then( newDefer.resolve, newDefer.reject ); + } else { + newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); + } + }); + } else { + deferred[ handler ]( newDefer[ action ] ); + } + }); + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + if ( obj == null ) { + if ( promise ) { + return promise; + } + promise = obj = {}; + } + var i = promiseMethods.length; + while( i-- ) { + obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ]; + } + return obj; + } + }); + // Make sure only one callback list will be used + deferred.done( failDeferred.cancel ).fail( deferred.cancel ); + // Unexpose cancel + delete deferred.cancel; + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + return deferred; + }, + + // Deferred helper + when: function( firstParam ) { + var args = arguments, + i = 0, + length = args.length, + count = length, + deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ? + firstParam : + jQuery.Deferred(); + function resolveFunc( i ) { + return function( value ) { + args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; + if ( !( --count ) ) { + // Strange bug in FF4: + // Values changed onto the arguments object sometimes end up as undefined values + // outside the $.when method. Cloning the object into a fresh array solves the issue + deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) ); + } + }; + } + if ( length > 1 ) { + for( ; i < length; i++ ) { + if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) { + args[ i ].promise().then( resolveFunc(i), deferred.reject ); + } else { + --count; + } + } + if ( !count ) { + deferred.resolveWith( deferred, args ); + } + } else if ( deferred !== firstParam ) { + deferred.resolveWith( deferred, length ? [ firstParam ] : [] ); + } + return deferred.promise(); + } +}); + + + +jQuery.support = (function() { + + var div = document.createElement( "div" ), + documentElement = document.documentElement, + all, + a, + select, + opt, + input, + marginDiv, + support, + fragment, + body, + testElementParent, + testElement, + testElementStyle, + tds, + events, + eventName, + i, + isSupported; + + // Preliminary tests + div.setAttribute("className", "t"); + div.innerHTML = "
    a"; + + + all = div.getElementsByTagName( "*" ); + a = div.getElementsByTagName( "a" )[ 0 ]; + + // Can't get basic test support + if ( !all || !all.length || !a ) { + return {}; + } + + // First batch of supports tests + select = document.createElement( "select" ); + opt = select.appendChild( document.createElement("option") ); + input = div.getElementsByTagName( "input" )[ 0 ]; + + support = { + // IE strips leading whitespace when .innerHTML is used + leadingWhitespace: ( div.firstChild.nodeType === 3 ), + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + tbody: !div.getElementsByTagName( "tbody" ).length, + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + htmlSerialize: !!div.getElementsByTagName( "link" ).length, + + // Get the style information from getAttribute + // (IE uses .cssText instead) + style: /top/.test( a.getAttribute("style") ), + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + hrefNormalized: ( a.getAttribute( "href" ) === "/a" ), + + // Make sure that element opacity exists + // (IE uses filter instead) + // Use a regex to work around a WebKit issue. See #5145 + opacity: /^0.55$/.test( a.style.opacity ), + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + cssFloat: !!a.style.cssFloat, + + // Make sure that if no value is specified for a checkbox + // that it defaults to "on". + // (WebKit defaults to "" instead) + checkOn: ( input.value === "on" ), + + // Make sure that a selected-by-default option has a working selected property. + // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) + optSelected: opt.selected, + + // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) + getSetAttribute: div.className !== "t", + + // Will be defined later + submitBubbles: true, + changeBubbles: true, + focusinBubbles: false, + deleteExpando: true, + noCloneEvent: true, + inlineBlockNeedsLayout: false, + shrinkWrapBlocks: false, + reliableMarginRight: true + }; + + // Make sure checked status is properly cloned + input.checked = true; + support.noCloneChecked = input.cloneNode( true ).checked; + + // Make sure that the options inside disabled selects aren't marked as disabled + // (WebKit marks them as disabled) + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Test to see if it's possible to delete an expando from an element + // Fails in Internet Explorer + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + + if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { + div.attachEvent( "onclick", function() { + // Cloning a node shouldn't copy over any + // bound event handlers (IE does this) + support.noCloneEvent = false; + }); + div.cloneNode( true ).fireEvent( "onclick" ); + } + + // Check if a radio maintains it's value + // after being appended to the DOM + input = document.createElement("input"); + input.value = "t"; + input.setAttribute("type", "radio"); + support.radioValue = input.value === "t"; + + input.setAttribute("checked", "checked"); + div.appendChild( input ); + fragment = document.createDocumentFragment(); + fragment.appendChild( div.firstChild ); + + // WebKit doesn't clone checked state correctly in fragments + support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; + + div.innerHTML = ""; + + // Figure out if the W3C box model works as expected + div.style.width = div.style.paddingLeft = "1px"; + + body = document.getElementsByTagName( "body" )[ 0 ]; + // We use our own, invisible, body unless the body is already present + // in which case we use a div (#9239) + testElement = document.createElement( body ? "div" : "body" ); + testElementStyle = { + visibility: "hidden", + width: 0, + height: 0, + border: 0, + margin: 0, + background: "none" + }; + if ( body ) { + jQuery.extend( testElementStyle, { + position: "absolute", + left: "-1000px", + top: "-1000px" + }); + } + for ( i in testElementStyle ) { + testElement.style[ i ] = testElementStyle[ i ]; + } + testElement.appendChild( div ); + testElementParent = body || documentElement; + testElementParent.insertBefore( testElement, testElementParent.firstChild ); + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + support.appendChecked = input.checked; + + support.boxModel = div.offsetWidth === 2; + + if ( "zoom" in div.style ) { + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + // (IE < 8 does this) + div.style.display = "inline"; + div.style.zoom = 1; + support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 ); + + // Check if elements with layout shrink-wrap their children + // (IE 6 does this) + div.style.display = ""; + div.innerHTML = "
    "; + support.shrinkWrapBlocks = ( div.offsetWidth !== 2 ); + } + + div.innerHTML = "
    t
    "; + tds = div.getElementsByTagName( "td" ); + + // Check if table cells still have offsetWidth/Height when they are set + // to display:none and there are still other visible table cells in a + // table row; if so, offsetWidth/Height are not reliable for use when + // determining if an element has been hidden directly using + // display:none (it is still safe to use offsets if a parent element is + // hidden; don safety goggles and see bug #4512 for more information). + // (only IE 8 fails this test) + isSupported = ( tds[ 0 ].offsetHeight === 0 ); + + tds[ 0 ].style.display = ""; + tds[ 1 ].style.display = "none"; + + // Check if empty table cells still have offsetWidth/Height + // (IE < 8 fail this test) + support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); + div.innerHTML = ""; + + // Check if div with explicit width and no margin-right incorrectly + // gets computed margin-right based on width of container. For more + // info see bug #3333 + // Fails in WebKit before Feb 2011 nightlies + // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right + if ( document.defaultView && document.defaultView.getComputedStyle ) { + marginDiv = document.createElement( "div" ); + marginDiv.style.width = "0"; + marginDiv.style.marginRight = "0"; + div.appendChild( marginDiv ); + support.reliableMarginRight = + ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0; + } + + // Remove the body element we added + testElement.innerHTML = ""; + testElementParent.removeChild( testElement ); + + // Technique from Juriy Zaytsev + // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ + // We only care about the case where non-standard event systems + // are used, namely in IE. Short-circuiting here helps us to + // avoid an eval call (in setAttribute) which can cause CSP + // to go haywire. See: https://developer.mozilla.org/en/Security/CSP + if ( div.attachEvent ) { + for( i in { + submit: 1, + change: 1, + focusin: 1 + } ) { + eventName = "on" + i; + isSupported = ( eventName in div ); + if ( !isSupported ) { + div.setAttribute( eventName, "return;" ); + isSupported = ( typeof div[ eventName ] === "function" ); + } + support[ i + "Bubbles" ] = isSupported; + } + } + + // Null connected elements to avoid leaks in IE + testElement = fragment = select = opt = body = marginDiv = div = input = null; + + return support; +})(); + +// Keep track of boxModel +jQuery.boxModel = jQuery.support.boxModel; + + + + +var rbrace = /^(?:\{.*\}|\[.*\])$/, + rmultiDash = /([a-z])([A-Z])/g; + +jQuery.extend({ + cache: {}, + + // Please use with caution + uuid: 0, + + // Unique for each copy of jQuery on the page + // Non-digits removed to match rinlinejQuery + expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ), + + // The following elements throw uncatchable exceptions if you + // attempt to add expando properties to them. + noData: { + "embed": true, + // Ban all objects except for Flash (which handle expandos) + "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", + "applet": true + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, ret, + internalKey = jQuery.expando, + getByName = typeof name === "string", + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + elem[ jQuery.expando ] = id = ++jQuery.uuid; + } else { + id = jQuery.expando; + } + } + + if ( !cache[ id ] ) { + cache[ id ] = {}; + + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name); + } else { + cache[ id ] = jQuery.extend(cache[ id ], name); + } + } + + thisCache = cache[ id ]; + + // Internal jQuery data is stored in a separate object inside the object's data + // cache in order to avoid key collisions between internal data and user-defined + // data + if ( pvt ) { + if ( !thisCache[ internalKey ] ) { + thisCache[ internalKey ] = {}; + } + + thisCache = thisCache[ internalKey ]; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should + // not attempt to inspect the internal events object using jQuery.data, as this + // internal data object is undocumented and subject to change. + if ( name === "events" && !thisCache[name] ) { + return thisCache[ internalKey ] && thisCache[ internalKey ].events; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( getByName ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; + }, + + removeData: function( elem, name, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, + + // Reference to internal data cache key + internalKey = jQuery.expando, + + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + + // See jQuery.data for more information + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ]; + + if ( thisCache ) { + + // Support interoperable removal of hyphenated or camelcased keys + if ( !thisCache[ name ] ) { + name = jQuery.camelCase( name ); + } + + delete thisCache[ name ]; + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( !isEmptyDataObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( pvt ) { + delete cache[ id ][ internalKey ]; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject(cache[ id ]) ) { + return; + } + } + + var internalCache = cache[ id ][ internalKey ]; + + // Browsers that fail expando deletion also refuse to delete expandos on + // the window, but it will allow it on all other JS objects; other browsers + // don't care + // Ensure that `cache` is not a window object #10080 + if ( jQuery.support.deleteExpando || !cache.setInterval ) { + delete cache[ id ]; + } else { + cache[ id ] = null; + } + + // We destroyed the entire user cache at once because it's faster than + // iterating through each key, but we need to continue to persist internal + // data if it existed + if ( internalCache ) { + cache[ id ] = {}; + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + + cache[ id ][ internalKey ] = internalCache; + + // Otherwise, we need to eliminate the expando on the node to avoid + // false lookups in the cache for entries that no longer exist + } else if ( isNode ) { + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( jQuery.support.deleteExpando ) { + delete elem[ jQuery.expando ]; + } else if ( elem.removeAttribute ) { + elem.removeAttribute( jQuery.expando ); + } else { + elem[ jQuery.expando ] = null; + } + } + }, + + // For internal use only. + _data: function( elem, name, data ) { + return jQuery.data( elem, name, data, true ); + }, + + // A method for determining if a DOM node can handle the data expando + acceptData: function( elem ) { + if ( elem.nodeName ) { + var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; + + if ( match ) { + return !(match === true || elem.getAttribute("classid") !== match); + } + } + + return true; + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var data = null; + + if ( typeof key === "undefined" ) { + if ( this.length ) { + data = jQuery.data( this[0] ); + + if ( this[0].nodeType === 1 ) { + var attr = this[0].attributes, name; + for ( var i = 0, l = attr.length; i < l; i++ ) { + name = attr[i].name; + + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.substring(5) ); + + dataAttr( this[0], name, data[ name ] ); + } + } + } + } + + return data; + + } else if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + // Try to fetch any internally stored data first + if ( data === undefined && this.length ) { + data = jQuery.data( this[0], key ); + data = dataAttr( this[0], key, data ); + } + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + + } else { + return this.each(function() { + var $this = jQuery( this ), + args = [ parts[0], value ]; + + $this.triggerHandler( "setData" + parts[1] + "!", args ); + jQuery.data( this, key, value ); + $this.triggerHandler( "changeData" + parts[1] + "!", args ); + }); + } + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); + +function dataAttr( elem, key, data ) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + var name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + !jQuery.isNaN( data ) ? parseFloat( data ) : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON +// property to be considered empty objects; this property always exists in +// order to make sure JSON.stringify does not expose internal metadata +function isEmptyDataObject( obj ) { + for ( var name in obj ) { + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} + + + + +function handleQueueMarkDefer( elem, type, src ) { + var deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + defer = jQuery.data( elem, deferDataKey, undefined, true ); + if ( defer && + ( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) && + ( src === "mark" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) { + // Give room for hard-coded callbacks to fire first + // and eventually mark/queue something else on the element + setTimeout( function() { + if ( !jQuery.data( elem, queueDataKey, undefined, true ) && + !jQuery.data( elem, markDataKey, undefined, true ) ) { + jQuery.removeData( elem, deferDataKey, true ); + defer.resolve(); + } + }, 0 ); + } +} + +jQuery.extend({ + + _mark: function( elem, type ) { + if ( elem ) { + type = (type || "fx") + "mark"; + jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true ); + } + }, + + _unmark: function( force, elem, type ) { + if ( force !== true ) { + type = elem; + elem = force; + force = false; + } + if ( elem ) { + type = type || "fx"; + var key = type + "mark", + count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 ); + if ( count ) { + jQuery.data( elem, key, count, true ); + } else { + jQuery.removeData( elem, key, true ); + handleQueueMarkDefer( elem, type, "mark" ); + } + } + }, + + queue: function( elem, type, data ) { + if ( elem ) { + type = (type || "fx") + "queue"; + var q = jQuery.data( elem, type, undefined, true ); + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !q || jQuery.isArray(data) ) { + q = jQuery.data( elem, type, jQuery.makeArray(data), true ); + } else { + q.push( data ); + } + } + return q || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + fn = queue.shift(), + defer; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + } + + if ( fn ) { + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift("inprogress"); + } + + fn.call(elem, function() { + jQuery.dequeue(elem, type); + }); + } + + if ( !queue.length ) { + jQuery.removeData( elem, type + "queue", true ); + handleQueueMarkDefer( elem, type, "queue" ); + } + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + } + + if ( data === undefined ) { + return jQuery.queue( this[0], type ); + } + return this.each(function() { + var queue = jQuery.queue( this, type, data ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + // Based off of the plugin by Clint Helfers, with permission. + // http://blindsignals.com/index.php/2009/07/jquery-delay/ + delay: function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; + type = type || "fx"; + + return this.queue( type, function() { + var elem = this; + setTimeout(function() { + jQuery.dequeue( elem, type ); + }, time ); + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, object ) { + if ( typeof type !== "string" ) { + object = type; + type = undefined; + } + type = type || "fx"; + var defer = jQuery.Deferred(), + elements = this, + i = elements.length, + count = 1, + deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + tmp; + function resolve() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + } + while( i-- ) { + if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) || + ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) || + jQuery.data( elements[ i ], markDataKey, undefined, true ) ) && + jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) { + count++; + tmp.done( resolve ); + } + } + resolve(); + return defer.promise(); + } +}); + + + + +var rclass = /[\n\t\r]/g, + rspace = /\s+/, + rreturn = /\r/g, + rtype = /^(?:button|input)$/i, + rfocusable = /^(?:button|input|object|select|textarea)$/i, + rclickable = /^a(?:rea)?$/i, + rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, + nodeHook, boolHook; + +jQuery.fn.extend({ + attr: function( name, value ) { + return jQuery.access( this, name, value, true, jQuery.attr ); + }, + + removeAttr: function( name ) { + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }, + + prop: function( name, value ) { + return jQuery.access( this, name, value, true, jQuery.prop ); + }, + + removeProp: function( name ) { + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }, + + addClass: function( value ) { + var classNames, i, l, elem, + setClass, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call(this, j, this.className) ); + }); + } + + if ( value && typeof value === "string" ) { + classNames = value.split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 ) { + if ( !elem.className && classNames.length === 1 ) { + elem.className = value; + + } else { + setClass = " " + elem.className + " "; + + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) { + setClass += classNames[ c ] + " "; + } + } + elem.className = jQuery.trim( setClass ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classNames, i, l, elem, className, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call(this, j, this.className) ); + }); + } + + if ( (value && typeof value === "string") || value === undefined ) { + classNames = (value || "").split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 && elem.className ) { + if ( value ) { + className = (" " + elem.className + " ").replace( rclass, " " ); + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + className = className.replace(" " + classNames[ c ] + " ", " "); + } + elem.className = jQuery.trim( className ); + + } else { + elem.className = ""; + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isBool = typeof stateVal === "boolean"; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + state = stateVal, + classNames = value.split( rspace ); + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space seperated list + state = isBool ? state : !self.hasClass( className ); + self[ state ? "addClass" : "removeClass" ]( className ); + } + + } else if ( type === "undefined" || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // toggle whole className + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }, + + hasClass: function( selector ) { + var className = " " + selector + " "; + for ( var i = 0, l = this.length; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { + return true; + } + } + + return false; + }, + + val: function( value ) { + var hooks, ret, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return undefined; + } + + var isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var self = jQuery(this), val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, self.val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + } +}); + +jQuery.extend({ + valHooks: { + option: { + get: function( elem ) { + // attributes.value is undefined in Blackberry 4.7 but + // uses .value. See #6932 + var val = elem.attributes.value; + return !val || val.specified ? elem.value : elem.text; + } + }, + select: { + get: function( elem ) { + var value, + index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type === "select-one"; + + // Nothing was selected + if ( index < 0 ) { + return null; + } + + // Loop through all the selected options + for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { + var option = options[ i ]; + + // Don't return options that are disabled or in a disabled optgroup + if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && + (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + // Fixes Bug #2551 -- select.val() broken in IE after form.reset() + if ( one && !values.length && options.length ) { + return jQuery( options[ index ] ).val(); + } + + return values; + }, + + set: function( elem, value ) { + var values = jQuery.makeArray( value ); + + jQuery(elem).find("option").each(function() { + this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; + }); + + if ( !values.length ) { + elem.selectedIndex = -1; + } + return values; + } + } + }, + + attrFn: { + val: true, + css: true, + html: true, + text: true, + data: true, + width: true, + height: true, + offset: true + }, + + attrFix: { + // Always normalize to ensure hook usage + tabindex: "tabIndex" + }, + + attr: function( elem, name, value, pass ) { + var nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + if ( pass && name in jQuery.attrFn ) { + return jQuery( elem )[ name ]( value ); + } + + // Fallback to prop when attributes are not supported + if ( !("getAttribute" in elem) ) { + return jQuery.prop( elem, name, value ); + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + // Normalize the name if needed + if ( notxml ) { + name = jQuery.attrFix[ name ] || name; + + hooks = jQuery.attrHooks[ name ]; + + if ( !hooks ) { + // Use boolHook for boolean attributes + if ( rboolean.test( name ) ) { + hooks = boolHook; + + // Use nodeHook if available( IE6/7 ) + } else if ( nodeHook ) { + hooks = nodeHook; + } + } + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return undefined; + + } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, "" + value ); + return value; + } + + } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + + ret = elem.getAttribute( name ); + + // Non-existent attributes return null, we normalize to undefined + return ret === null ? + undefined : + ret; + } + }, + + removeAttr: function( elem, name ) { + var propName; + if ( elem.nodeType === 1 ) { + name = jQuery.attrFix[ name ] || name; + + jQuery.attr( elem, name, "" ); + elem.removeAttribute( name ); + + // Set corresponding property to false for boolean attributes + if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) { + elem[ propName ] = false; + } + } + }, + + attrHooks: { + type: { + set: function( elem, value ) { + // We can't allow the type property to be changed (since it causes problems in IE) + if ( rtype.test( elem.nodeName ) && elem.parentNode ) { + jQuery.error( "type property can't be changed" ); + } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { + // Setting the type on a radio button after the value resets the value in IE6-9 + // Reset value to it's default in case type is set after value + // This is for element creation + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + }, + // Use the value property for back compat + // Use the nodeHook for button elements in IE6/7 (#1954) + value: { + get: function( elem, name ) { + if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { + return nodeHook.get( elem, name ); + } + return name in elem ? + elem.value : + null; + }, + set: function( elem, value, name ) { + if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { + return nodeHook.set( elem, value, name ); + } + // Does not return so that setAttribute is also used + elem.value = value; + } + } + }, + + propFix: { + tabindex: "tabIndex", + readonly: "readOnly", + "for": "htmlFor", + "class": "className", + maxlength: "maxLength", + cellspacing: "cellSpacing", + cellpadding: "cellPadding", + rowspan: "rowSpan", + colspan: "colSpan", + usemap: "useMap", + frameborder: "frameBorder", + contenteditable: "contentEditable" + }, + + prop: function( elem, name, value ) { + var nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + return (elem[ name ] = value); + } + + } else { + if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + return elem[ name ]; + } + } + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set + // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + var attributeNode = elem.getAttributeNode("tabindex"); + + return attributeNode && attributeNode.specified ? + parseInt( attributeNode.value, 10 ) : + rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? + 0 : + undefined; + } + } + } +}); + +// Add the tabindex propHook to attrHooks for back-compat +jQuery.attrHooks.tabIndex = jQuery.propHooks.tabIndex; + +// Hook for boolean attributes +boolHook = { + get: function( elem, name ) { + // Align boolean attributes with corresponding properties + // Fall back to attribute presence where some booleans are not supported + var attrNode; + return jQuery.prop( elem, name ) === true || ( attrNode = elem.getAttributeNode( name ) ) && attrNode.nodeValue !== false ? + name.toLowerCase() : + undefined; + }, + set: function( elem, value, name ) { + var propName; + if ( value === false ) { + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + // value is true since we know at this point it's type boolean and not false + // Set boolean attributes to the same name and set the DOM property + propName = jQuery.propFix[ name ] || name; + if ( propName in elem ) { + // Only set the IDL specifically if it already exists on the element + elem[ propName ] = true; + } + + elem.setAttribute( name, name.toLowerCase() ); + } + return name; + } +}; + +// IE6/7 do not support getting/setting some attributes with get/setAttribute +if ( !jQuery.support.getSetAttribute ) { + + // Use this for any attribute in IE6/7 + // This fixes almost every IE6/7 issue + nodeHook = jQuery.valHooks.button = { + get: function( elem, name ) { + var ret; + ret = elem.getAttributeNode( name ); + // Return undefined if nodeValue is empty string + return ret && ret.nodeValue !== "" ? + ret.nodeValue : + undefined; + }, + set: function( elem, value, name ) { + // Set the existing or create a new attribute node + var ret = elem.getAttributeNode( name ); + if ( !ret ) { + ret = document.createAttribute( name ); + elem.setAttributeNode( ret ); + } + return (ret.nodeValue = value + ""); + } + }; + + // Set width and height to auto instead of 0 on empty string( Bug #8150 ) + // This is for removals + jQuery.each([ "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { + set: function( elem, value ) { + if ( value === "" ) { + elem.setAttribute( name, "auto" ); + return value; + } + } + }); + }); +} + + +// Some attributes require a special call on IE +if ( !jQuery.support.hrefNormalized ) { + jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { + get: function( elem ) { + var ret = elem.getAttribute( name, 2 ); + return ret === null ? undefined : ret; + } + }); + }); +} + +if ( !jQuery.support.style ) { + jQuery.attrHooks.style = { + get: function( elem ) { + // Return undefined in the case of empty string + // Normalize to lowercase since IE uppercases css property names + return elem.style.cssText.toLowerCase() || undefined; + }, + set: function( elem, value ) { + return (elem.style.cssText = "" + value); + } + }; +} + +// Safari mis-reports the default selected property of an option +// Accessing the parent's selectedIndex property fixes it +if ( !jQuery.support.optSelected ) { + jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { + get: function( elem ) { + var parent = elem.parentNode; + + if ( parent ) { + parent.selectedIndex; + + // Make sure that it also works with optgroups, see #5701 + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + return null; + } + }); +} + +// Radios and checkboxes getter/setter +if ( !jQuery.support.checkOn ) { + jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + get: function( elem ) { + // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified + return elem.getAttribute("value") === null ? "on" : elem.value; + } + }; + }); +} +jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { + set: function( elem, value ) { + if ( jQuery.isArray( value ) ) { + return (elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0); + } + } + }); +}); + + + + +var rnamespaces = /\.(.*)$/, + rformElems = /^(?:textarea|input|select)$/i, + rperiod = /\./g, + rspaces = / /g, + rescape = /[^\w\s.|`]/g, + fcleanup = function( nm ) { + return nm.replace(rescape, "\\$&"); + }; + +/* + * A number of helper functions used for managing events. + * Many of the ideas behind this code originated from + * Dean Edwards' addEvent library. + */ +jQuery.event = { + + // Bind an event to an element + // Original by Dean Edwards + add: function( elem, types, handler, data ) { + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + if ( handler === false ) { + handler = returnFalse; + } else if ( !handler ) { + // Fixes bug #7229. Fix recommended by jdalton + return; + } + + var handleObjIn, handleObj; + + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + } + + // Make sure that the function being executed has a unique ID + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure + var elemData = jQuery._data( elem ); + + // If no elemData is found then we must be trying to bind to one of the + // banned noData elements + if ( !elemData ) { + return; + } + + var events = elemData.events, + eventHandle = elemData.handle; + + if ( !events ) { + elemData.events = events = {}; + } + + if ( !eventHandle ) { + elemData.handle = eventHandle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.handle.apply( eventHandle.elem, arguments ) : + undefined; + }; + } + + // Add elem as a property of the handle function + // This is to prevent a memory leak with non-native events in IE. + eventHandle.elem = elem; + + // Handle multiple events separated by a space + // jQuery(...).bind("mouseover mouseout", fn); + types = types.split(" "); + + var type, i = 0, namespaces; + + while ( (type = types[ i++ ]) ) { + handleObj = handleObjIn ? + jQuery.extend({}, handleObjIn) : + { handler: handler, data: data }; + + // Namespaced event handlers + if ( type.indexOf(".") > -1 ) { + namespaces = type.split("."); + type = namespaces.shift(); + handleObj.namespace = namespaces.slice(0).sort().join("."); + + } else { + namespaces = []; + handleObj.namespace = ""; + } + + handleObj.type = type; + if ( !handleObj.guid ) { + handleObj.guid = handler.guid; + } + + // Get the current list of functions bound to this event + var handlers = events[ type ], + special = jQuery.event.special[ type ] || {}; + + // Init the event handler queue + if ( !handlers ) { + handlers = events[ type ] = []; + + // Check for a special event handler + // Only use addEventListener/attachEvent if the special + // events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add the function to the element's handler list + handlers.push( handleObj ); + + // Keep track of which events have been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + global: {}, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, pos ) { + // don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + if ( handler === false ) { + handler = returnFalse; + } + + var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ), + events = elemData && elemData.events; + + if ( !elemData || !events ) { + return; + } + + // types is actually an event object here + if ( types && types.type ) { + handler = types.handler; + types = types.type; + } + + // Unbind all events for the element + if ( !types || typeof types === "string" && types.charAt(0) === "." ) { + types = types || ""; + + for ( type in events ) { + jQuery.event.remove( elem, type + types ); + } + + return; + } + + // Handle multiple events separated by a space + // jQuery(...).unbind("mouseover mouseout", fn); + types = types.split(" "); + + while ( (type = types[ i++ ]) ) { + origType = type; + handleObj = null; + all = type.indexOf(".") < 0; + namespaces = []; + + if ( !all ) { + // Namespaced event handlers + namespaces = type.split("."); + type = namespaces.shift(); + + namespace = new RegExp("(^|\\.)" + + jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)"); + } + + eventType = events[ type ]; + + if ( !eventType ) { + continue; + } + + if ( !handler ) { + for ( j = 0; j < eventType.length; j++ ) { + handleObj = eventType[ j ]; + + if ( all || namespace.test( handleObj.namespace ) ) { + jQuery.event.remove( elem, origType, handleObj.handler, j ); + eventType.splice( j--, 1 ); + } + } + + continue; + } + + special = jQuery.event.special[ type ] || {}; + + for ( j = pos || 0; j < eventType.length; j++ ) { + handleObj = eventType[ j ]; + + if ( handler.guid === handleObj.guid ) { + // remove the given handler for the given type + if ( all || namespace.test( handleObj.namespace ) ) { + if ( pos == null ) { + eventType.splice( j--, 1 ); + } + + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + + if ( pos != null ) { + break; + } + } + } + + // remove generic event handler if no more handlers exist + if ( eventType.length === 0 || pos != null && eventType.length === 1 ) { + if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + ret = null; + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + var handle = elemData.handle; + if ( handle ) { + handle.elem = null; + } + + delete elemData.events; + delete elemData.handle; + + if ( jQuery.isEmptyObject( elemData ) ) { + jQuery.removeData( elem, undefined, true ); + } + } + }, + + // Events that are safe to short-circuit if no handlers are attached. + // Native DOM events should not be added, they may have inline handlers. + customEvent: { + "getData": true, + "setData": true, + "changeData": true + }, + + trigger: function( event, data, elem, onlyHandlers ) { + // Event object or event type + var type = event.type || event, + namespaces = [], + exclusive; + + if ( type.indexOf("!") >= 0 ) { + // Exclusive events trigger only for the exact event (no namespaces) + type = type.slice(0, -1); + exclusive = true; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + + if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { + // No jQuery handlers for this event type, and it can't have inline handlers + return; + } + + // Caller can pass in an Event, Object, or just an event type string + event = typeof event === "object" ? + // jQuery.Event object + event[ jQuery.expando ] ? event : + // Object literal + new jQuery.Event( type, event ) : + // Just the event type (string) + new jQuery.Event( type ); + + event.type = type; + event.exclusive = exclusive; + event.namespace = namespaces.join("."); + event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)"); + + // triggerHandler() and global events don't bubble or run the default action + if ( onlyHandlers || !elem ) { + event.preventDefault(); + event.stopPropagation(); + } + + // Handle a global trigger + if ( !elem ) { + // TODO: Stop taunting the data cache; remove global events and always attach to document + jQuery.each( jQuery.cache, function() { + // internalKey variable is just used to make it easier to find + // and potentially change this stuff later; currently it just + // points to jQuery.expando + var internalKey = jQuery.expando, + internalCache = this[ internalKey ]; + if ( internalCache && internalCache.events && internalCache.events[ type ] ) { + jQuery.event.trigger( event, data, internalCache.handle.elem ); + } + }); + return; + } + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // Clean up the event in case it is being reused + event.result = undefined; + event.target = elem; + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data != null ? jQuery.makeArray( data ) : []; + data.unshift( event ); + + var cur = elem, + // IE doesn't like method names with a colon (#3533, #8272) + ontype = type.indexOf(":") < 0 ? "on" + type : ""; + + // Fire event on the current element, then bubble up the DOM tree + do { + var handle = jQuery._data( cur, "handle" ); + + event.currentTarget = cur; + if ( handle ) { + handle.apply( cur, data ); + } + + // Trigger an inline bound script + if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) { + event.result = false; + event.preventDefault(); + } + + // Bubble up to document, then to window + cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window; + } while ( cur && !event.isPropagationStopped() ); + + // If nobody prevented the default action, do it now + if ( !event.isDefaultPrevented() ) { + var old, + special = jQuery.event.special[ type ] || {}; + + if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) && + !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction)() check here because IE6/7 fails that test. + // IE<9 dies on focus to hidden element (#1486), may want to revisit a try/catch. + try { + if ( ontype && elem[ type ] ) { + // Don't re-trigger an onFOO event when we call its FOO() method + old = elem[ ontype ]; + + if ( old ) { + elem[ ontype ] = null; + } + + jQuery.event.triggered = type; + elem[ type ](); + } + } catch ( ieError ) {} + + if ( old ) { + elem[ ontype ] = old; + } + + jQuery.event.triggered = undefined; + } + } + + return event.result; + }, + + handle: function( event ) { + event = jQuery.event.fix( event || window.event ); + // Snapshot the handlers list since a called handler may add/remove events. + var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0), + run_all = !event.exclusive && !event.namespace, + args = Array.prototype.slice.call( arguments, 0 ); + + // Use the fix-ed Event rather than the (read-only) native event + args[0] = event; + event.currentTarget = this; + + for ( var j = 0, l = handlers.length; j < l; j++ ) { + var handleObj = handlers[ j ]; + + // Triggered event must 1) be non-exclusive and have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event. + if ( run_all || event.namespace_re.test( handleObj.namespace ) ) { + // Pass in a reference to the handler function itself + // So that we can later remove it + event.handler = handleObj.handler; + event.data = handleObj.data; + event.handleObj = handleObj; + + var ret = handleObj.handler.apply( this, args ); + + if ( ret !== undefined ) { + event.result = ret; + if ( ret === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + + if ( event.isImmediatePropagationStopped() ) { + break; + } + } + } + return event.result; + }, + + props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // store a copy of the original event object + // and "clone" to set read-only properties + var originalEvent = event; + event = jQuery.Event( originalEvent ); + + for ( var i = this.props.length, prop; i; ) { + prop = this.props[ --i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Fix target property, if necessary + if ( !event.target ) { + // Fixes #1925 where srcElement might not be defined either + event.target = event.srcElement || document; + } + + // check if target is a textnode (safari) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && event.fromElement ) { + event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement; + } + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && event.clientX != null ) { + var eventDocument = event.target.ownerDocument || document, + doc = eventDocument.documentElement, + body = eventDocument.body; + + event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0); + event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0); + } + + // Add which for key events + if ( event.which == null && (event.charCode != null || event.keyCode != null) ) { + event.which = event.charCode != null ? event.charCode : event.keyCode; + } + + // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs) + if ( !event.metaKey && event.ctrlKey ) { + event.metaKey = event.ctrlKey; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && event.button !== undefined ) { + event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) )); + } + + return event; + }, + + // Deprecated, use jQuery.guid instead + guid: 1E8, + + // Deprecated, use jQuery.proxy instead + proxy: jQuery.proxy, + + special: { + ready: { + // Make sure the ready event is setup + setup: jQuery.bindReady, + teardown: jQuery.noop + }, + + live: { + add: function( handleObj ) { + jQuery.event.add( this, + liveConvert( handleObj.origType, handleObj.selector ), + jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) ); + }, + + remove: function( handleObj ) { + jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj ); + } + }, + + beforeunload: { + setup: function( data, namespaces, eventHandle ) { + // We only want to do this special case on windows + if ( jQuery.isWindow( this ) ) { + this.onbeforeunload = eventHandle; + } + }, + + teardown: function( namespaces, eventHandle ) { + if ( this.onbeforeunload === eventHandle ) { + this.onbeforeunload = null; + } + } + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + if ( elem.detachEvent ) { + elem.detachEvent( "on" + type, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !this.preventDefault ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // timeStamp is buggy for some events on Firefox(#3843) + // So we won't rely on the native value + this.timeStamp = jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +function returnFalse() { + return false; +} +function returnTrue() { + return true; +} + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + preventDefault: function() { + this.isDefaultPrevented = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + + // if preventDefault exists run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // otherwise set the returnValue property of the original event to false (IE) + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + this.isPropagationStopped = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + // if stopPropagation exists run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + // otherwise set the cancelBubble property of the original event to true (IE) + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + }, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse +}; + +// Checks if an event happened on an element within another element +// Used in jQuery.event.special.mouseenter and mouseleave handlers +var withinElement = function( event ) { + + // Check if mouse(over|out) are still within the same parent element + var related = event.relatedTarget, + inside = false, + eventType = event.type; + + event.type = event.data; + + if ( related !== this ) { + + if ( related ) { + inside = jQuery.contains( this, related ); + } + + if ( !inside ) { + + jQuery.event.handle.apply( this, arguments ); + + event.type = eventType; + } + } +}, + +// In case of event delegation, we only need to rename the event.type, +// liveHandler will take care of the rest. +delegate = function( event ) { + event.type = event.data; + jQuery.event.handle.apply( this, arguments ); +}; + +// Create mouseenter and mouseleave events +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + setup: function( data ) { + jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig ); + }, + teardown: function( data ) { + jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement ); + } + }; +}); + +// submit delegation +if ( !jQuery.support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function( data, namespaces ) { + if ( !jQuery.nodeName( this, "form" ) ) { + jQuery.event.add(this, "click.specialSubmit", function( e ) { + var elem = e.target, + type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) { + trigger( "submit", this, arguments ); + } + }); + + jQuery.event.add(this, "keypress.specialSubmit", function( e ) { + var elem = e.target, + type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) { + trigger( "submit", this, arguments ); + } + }); + + } else { + return false; + } + }, + + teardown: function( namespaces ) { + jQuery.event.remove( this, ".specialSubmit" ); + } + }; + +} + +// change delegation, happens here so we have bind. +if ( !jQuery.support.changeBubbles ) { + + var changeFilters, + + getVal = function( elem ) { + var type = jQuery.nodeName( elem, "input" ) ? elem.type : "", + val = elem.value; + + if ( type === "radio" || type === "checkbox" ) { + val = elem.checked; + + } else if ( type === "select-multiple" ) { + val = elem.selectedIndex > -1 ? + jQuery.map( elem.options, function( elem ) { + return elem.selected; + }).join("-") : + ""; + + } else if ( jQuery.nodeName( elem, "select" ) ) { + val = elem.selectedIndex; + } + + return val; + }, + + testChange = function testChange( e ) { + var elem = e.target, data, val; + + if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) { + return; + } + + data = jQuery._data( elem, "_change_data" ); + val = getVal(elem); + + // the current data will be also retrieved by beforeactivate + if ( e.type !== "focusout" || elem.type !== "radio" ) { + jQuery._data( elem, "_change_data", val ); + } + + if ( data === undefined || val === data ) { + return; + } + + if ( data != null || val ) { + e.type = "change"; + e.liveFired = undefined; + jQuery.event.trigger( e, arguments[1], elem ); + } + }; + + jQuery.event.special.change = { + filters: { + focusout: testChange, + + beforedeactivate: testChange, + + click: function( e ) { + var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( type === "radio" || type === "checkbox" || jQuery.nodeName( elem, "select" ) ) { + testChange.call( this, e ); + } + }, + + // Change has to be called before submit + // Keydown will be called before keypress, which is used in submit-event delegation + keydown: function( e ) { + var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) || + (e.keyCode === 32 && (type === "checkbox" || type === "radio")) || + type === "select-multiple" ) { + testChange.call( this, e ); + } + }, + + // Beforeactivate happens also before the previous element is blurred + // with this event you can't trigger a change event, but you can store + // information + beforeactivate: function( e ) { + var elem = e.target; + jQuery._data( elem, "_change_data", getVal(elem) ); + } + }, + + setup: function( data, namespaces ) { + if ( this.type === "file" ) { + return false; + } + + for ( var type in changeFilters ) { + jQuery.event.add( this, type + ".specialChange", changeFilters[type] ); + } + + return rformElems.test( this.nodeName ); + }, + + teardown: function( namespaces ) { + jQuery.event.remove( this, ".specialChange" ); + + return rformElems.test( this.nodeName ); + } + }; + + changeFilters = jQuery.event.special.change.filters; + + // Handle when the input is .focus()'d + changeFilters.focus = changeFilters.beforeactivate; +} + +function trigger( type, elem, args ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + // Don't pass args or remember liveFired; they apply to the donor event. + var event = jQuery.extend( {}, args[ 0 ] ); + event.type = type; + event.originalEvent = {}; + event.liveFired = undefined; + jQuery.event.handle.call( elem, event ); + if ( event.isDefaultPrevented() ) { + args[ 0 ].preventDefault(); + } +} + +// Create "bubbling" focus and blur events +if ( !jQuery.support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler while someone wants focusin/focusout + var attaches = 0; + + jQuery.event.special[ fix ] = { + setup: function() { + if ( attaches++ === 0 ) { + document.addEventListener( orig, handler, true ); + } + }, + teardown: function() { + if ( --attaches === 0 ) { + document.removeEventListener( orig, handler, true ); + } + } + }; + + function handler( donor ) { + // Donor event is always a native one; fix it and switch its type. + // Let focusin/out handler cancel the donor focus/blur event. + var e = jQuery.event.fix( donor ); + e.type = fix; + e.originalEvent = {}; + jQuery.event.trigger( e, null, e.target ); + if ( e.isDefaultPrevented() ) { + donor.preventDefault(); + } + } + }); +} + +jQuery.each(["bind", "one"], function( i, name ) { + jQuery.fn[ name ] = function( type, data, fn ) { + var handler; + + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( arguments.length === 2 || data === false ) { + fn = data; + data = undefined; + } + + if ( name === "one" ) { + handler = function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }; + handler.guid = fn.guid || jQuery.guid++; + } else { + handler = fn; + } + + if ( type === "unload" && name !== "one" ) { + this.one( type, data, fn ); + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.add( this[i], type, handler, data ); + } + } + + return this; + }; +}); + +jQuery.fn.extend({ + unbind: function( type, fn ) { + // Handle object literals + if ( typeof type === "object" && !type.preventDefault ) { + for ( var key in type ) { + this.unbind(key, type[key]); + } + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.remove( this[i], type, fn ); + } + } + + return this; + }, + + delegate: function( selector, types, data, fn ) { + return this.live( types, data, fn, selector ); + }, + + undelegate: function( selector, types, fn ) { + if ( arguments.length === 0 ) { + return this.unbind( "live" ); + + } else { + return this.die( types, null, fn, selector ); + } + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + + triggerHandler: function( type, data ) { + if ( this[0] ) { + return jQuery.event.trigger( type, data, this[0], true ); + } + }, + + toggle: function( fn ) { + // Save reference to arguments for access in closure + var args = arguments, + guid = fn.guid || jQuery.guid++, + i = 0, + toggler = function( event ) { + // Figure out which function to execute + var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i; + jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 ); + + // Make sure that clicks stop + event.preventDefault(); + + // and execute the function + return args[ lastToggle ].apply( this, arguments ) || false; + }; + + // link all the functions, so any of them can unbind this click handler + toggler.guid = guid; + while ( i < args.length ) { + args[ i++ ].guid = guid; + } + + return this.click( toggler ); + }, + + hover: function( fnOver, fnOut ) { + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + } +}); + +var liveMap = { + focus: "focusin", + blur: "focusout", + mouseenter: "mouseover", + mouseleave: "mouseout" +}; + +jQuery.each(["live", "die"], function( i, name ) { + jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) { + var type, i = 0, match, namespaces, preType, + selector = origSelector || this.selector, + context = origSelector ? this : jQuery( this.context ); + + if ( typeof types === "object" && !types.preventDefault ) { + for ( var key in types ) { + context[ name ]( key, data, types[key], selector ); + } + + return this; + } + + if ( name === "die" && !types && + origSelector && origSelector.charAt(0) === "." ) { + + context.unbind( origSelector ); + + return this; + } + + if ( data === false || jQuery.isFunction( data ) ) { + fn = data || returnFalse; + data = undefined; + } + + types = (types || "").split(" "); + + while ( (type = types[ i++ ]) != null ) { + match = rnamespaces.exec( type ); + namespaces = ""; + + if ( match ) { + namespaces = match[0]; + type = type.replace( rnamespaces, "" ); + } + + if ( type === "hover" ) { + types.push( "mouseenter" + namespaces, "mouseleave" + namespaces ); + continue; + } + + preType = type; + + if ( liveMap[ type ] ) { + types.push( liveMap[ type ] + namespaces ); + type = type + namespaces; + + } else { + type = (liveMap[ type ] || type) + namespaces; + } + + if ( name === "live" ) { + // bind live handler + for ( var j = 0, l = context.length; j < l; j++ ) { + jQuery.event.add( context[j], "live." + liveConvert( type, selector ), + { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } ); + } + + } else { + // unbind live handler + context.unbind( "live." + liveConvert( type, selector ), fn ); + } + } + + return this; + }; +}); + +function liveHandler( event ) { + var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret, + elems = [], + selectors = [], + events = jQuery._data( this, "events" ); + + // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911) + if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) { + return; + } + + if ( event.namespace ) { + namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)"); + } + + event.liveFired = this; + + var live = events.live.slice(0); + + for ( j = 0; j < live.length; j++ ) { + handleObj = live[j]; + + if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) { + selectors.push( handleObj.selector ); + + } else { + live.splice( j--, 1 ); + } + } + + match = jQuery( event.target ).closest( selectors, event.currentTarget ); + + for ( i = 0, l = match.length; i < l; i++ ) { + close = match[i]; + + for ( j = 0; j < live.length; j++ ) { + handleObj = live[j]; + + if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) { + elem = close.elem; + related = null; + + // Those two events require additional checking + if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) { + event.type = handleObj.preType; + related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0]; + + // Make sure not to accidentally match a child element with the same selector + if ( related && jQuery.contains( elem, related ) ) { + related = elem; + } + } + + if ( !related || related !== elem ) { + elems.push({ elem: elem, handleObj: handleObj, level: close.level }); + } + } + } + } + + for ( i = 0, l = elems.length; i < l; i++ ) { + match = elems[i]; + + if ( maxLevel && match.level > maxLevel ) { + break; + } + + event.currentTarget = match.elem; + event.data = match.handleObj.data; + event.handleObj = match.handleObj; + + ret = match.handleObj.origHandler.apply( match.elem, arguments ); + + if ( ret === false || event.isPropagationStopped() ) { + maxLevel = match.level; + + if ( ret === false ) { + stop = false; + } + if ( event.isImmediatePropagationStopped() ) { + break; + } + } + } + + return stop; +} + +function liveConvert( type, selector ) { + return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&"); +} + +jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + + "change select submit keydown keypress keyup error").split(" "), function( i, name ) { + + // Handle event binding + jQuery.fn[ name ] = function( data, fn ) { + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; + + if ( jQuery.attrFn ) { + jQuery.attrFn[ name ] = true; + } +}); + + + +/*! + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){ + +var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, + done = 0, + toString = Object.prototype.toString, + hasDuplicate = false, + baseHasDuplicate = true, + rBackslash = /\\/g, + rNonWord = /\W/; + +// Here we check if the JavaScript engine is using some sort of +// optimization where it does not always call our comparision +// function. If that is the case, discard the hasDuplicate value. +// Thus far that includes Google Chrome. +[0, 0].sort(function() { + baseHasDuplicate = false; + return 0; +}); + +var Sizzle = function( selector, context, results, seed ) { + results = results || []; + context = context || document; + + var origContext = context; + + if ( context.nodeType !== 1 && context.nodeType !== 9 ) { + return []; + } + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + var m, set, checkSet, extra, ret, cur, pop, i, + prune = true, + contextXML = Sizzle.isXML( context ), + parts = [], + soFar = selector; + + // Reset the position of the chunker regexp (start from head) + do { + chunker.exec( "" ); + m = chunker.exec( soFar ); + + if ( m ) { + soFar = m[3]; + + parts.push( m[1] ); + + if ( m[2] ) { + extra = m[3]; + break; + } + } + } while ( m ); + + if ( parts.length > 1 && origPOS.exec( selector ) ) { + + if ( parts.length === 2 && Expr.relative[ parts[0] ] ) { + set = posProcess( parts[0] + parts[1], context ); + + } else { + set = Expr.relative[ parts[0] ] ? + [ context ] : + Sizzle( parts.shift(), context ); + + while ( parts.length ) { + selector = parts.shift(); + + if ( Expr.relative[ selector ] ) { + selector += parts.shift(); + } + + set = posProcess( selector, set ); + } + } + + } else { + // Take a shortcut and set the context if the root selector is an ID + // (but not if it'll be faster if the inner selector is an ID) + if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML && + Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) { + + ret = Sizzle.find( parts.shift(), context, contextXML ); + context = ret.expr ? + Sizzle.filter( ret.expr, ret.set )[0] : + ret.set[0]; + } + + if ( context ) { + ret = seed ? + { expr: parts.pop(), set: makeArray(seed) } : + Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML ); + + set = ret.expr ? + Sizzle.filter( ret.expr, ret.set ) : + ret.set; + + if ( parts.length > 0 ) { + checkSet = makeArray( set ); + + } else { + prune = false; + } + + while ( parts.length ) { + cur = parts.pop(); + pop = cur; + + if ( !Expr.relative[ cur ] ) { + cur = ""; + } else { + pop = parts.pop(); + } + + if ( pop == null ) { + pop = context; + } + + Expr.relative[ cur ]( checkSet, pop, contextXML ); + } + + } else { + checkSet = parts = []; + } + } + + if ( !checkSet ) { + checkSet = set; + } + + if ( !checkSet ) { + Sizzle.error( cur || selector ); + } + + if ( toString.call(checkSet) === "[object Array]" ) { + if ( !prune ) { + results.push.apply( results, checkSet ); + + } else if ( context && context.nodeType === 1 ) { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) { + results.push( set[i] ); + } + } + + } else { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && checkSet[i].nodeType === 1 ) { + results.push( set[i] ); + } + } + } + + } else { + makeArray( checkSet, results ); + } + + if ( extra ) { + Sizzle( extra, origContext, results, seed ); + Sizzle.uniqueSort( results ); + } + + return results; +}; + +Sizzle.uniqueSort = function( results ) { + if ( sortOrder ) { + hasDuplicate = baseHasDuplicate; + results.sort( sortOrder ); + + if ( hasDuplicate ) { + for ( var i = 1; i < results.length; i++ ) { + if ( results[i] === results[ i - 1 ] ) { + results.splice( i--, 1 ); + } + } + } + } + + return results; +}; + +Sizzle.matches = function( expr, set ) { + return Sizzle( expr, null, null, set ); +}; + +Sizzle.matchesSelector = function( node, expr ) { + return Sizzle( expr, null, null, [node] ).length > 0; +}; + +Sizzle.find = function( expr, context, isXML ) { + var set; + + if ( !expr ) { + return []; + } + + for ( var i = 0, l = Expr.order.length; i < l; i++ ) { + var match, + type = Expr.order[i]; + + if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { + var left = match[1]; + match.splice( 1, 1 ); + + if ( left.substr( left.length - 1 ) !== "\\" ) { + match[1] = (match[1] || "").replace( rBackslash, "" ); + set = Expr.find[ type ]( match, context, isXML ); + + if ( set != null ) { + expr = expr.replace( Expr.match[ type ], "" ); + break; + } + } + } + } + + if ( !set ) { + set = typeof context.getElementsByTagName !== "undefined" ? + context.getElementsByTagName( "*" ) : + []; + } + + return { set: set, expr: expr }; +}; + +Sizzle.filter = function( expr, set, inplace, not ) { + var match, anyFound, + old = expr, + result = [], + curLoop = set, + isXMLFilter = set && set[0] && Sizzle.isXML( set[0] ); + + while ( expr && set.length ) { + for ( var type in Expr.filter ) { + if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { + var found, item, + filter = Expr.filter[ type ], + left = match[1]; + + anyFound = false; + + match.splice(1,1); + + if ( left.substr( left.length - 1 ) === "\\" ) { + continue; + } + + if ( curLoop === result ) { + result = []; + } + + if ( Expr.preFilter[ type ] ) { + match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter ); + + if ( !match ) { + anyFound = found = true; + + } else if ( match === true ) { + continue; + } + } + + if ( match ) { + for ( var i = 0; (item = curLoop[i]) != null; i++ ) { + if ( item ) { + found = filter( item, match, i, curLoop ); + var pass = not ^ !!found; + + if ( inplace && found != null ) { + if ( pass ) { + anyFound = true; + + } else { + curLoop[i] = false; + } + + } else if ( pass ) { + result.push( item ); + anyFound = true; + } + } + } + } + + if ( found !== undefined ) { + if ( !inplace ) { + curLoop = result; + } + + expr = expr.replace( Expr.match[ type ], "" ); + + if ( !anyFound ) { + return []; + } + + break; + } + } + } + + // Improper expression + if ( expr === old ) { + if ( anyFound == null ) { + Sizzle.error( expr ); + + } else { + break; + } + } + + old = expr; + } + + return curLoop; +}; + +Sizzle.error = function( msg ) { + throw "Syntax error, unrecognized expression: " + msg; +}; + +var Expr = Sizzle.selectors = { + order: [ "ID", "NAME", "TAG" ], + + match: { + ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/, + ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/, + TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/, + CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/, + POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/, + PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ + }, + + leftMatch: {}, + + attrMap: { + "class": "className", + "for": "htmlFor" + }, + + attrHandle: { + href: function( elem ) { + return elem.getAttribute( "href" ); + }, + type: function( elem ) { + return elem.getAttribute( "type" ); + } + }, + + relative: { + "+": function(checkSet, part){ + var isPartStr = typeof part === "string", + isTag = isPartStr && !rNonWord.test( part ), + isPartStrNotTag = isPartStr && !isTag; + + if ( isTag ) { + part = part.toLowerCase(); + } + + for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) { + if ( (elem = checkSet[i]) ) { + while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {} + + checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ? + elem || false : + elem === part; + } + } + + if ( isPartStrNotTag ) { + Sizzle.filter( part, checkSet, true ); + } + }, + + ">": function( checkSet, part ) { + var elem, + isPartStr = typeof part === "string", + i = 0, + l = checkSet.length; + + if ( isPartStr && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + var parent = elem.parentNode; + checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; + } + } + + } else { + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + checkSet[i] = isPartStr ? + elem.parentNode : + elem.parentNode === part; + } + } + + if ( isPartStr ) { + Sizzle.filter( part, checkSet, true ); + } + } + }, + + "": function(checkSet, part, isXML){ + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML ); + }, + + "~": function( checkSet, part, isXML ) { + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML ); + } + }, + + find: { + ID: function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }, + + NAME: function( match, context ) { + if ( typeof context.getElementsByName !== "undefined" ) { + var ret = [], + results = context.getElementsByName( match[1] ); + + for ( var i = 0, l = results.length; i < l; i++ ) { + if ( results[i].getAttribute("name") === match[1] ) { + ret.push( results[i] ); + } + } + + return ret.length === 0 ? null : ret; + } + }, + + TAG: function( match, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( match[1] ); + } + } + }, + preFilter: { + CLASS: function( match, curLoop, inplace, result, not, isXML ) { + match = " " + match[1].replace( rBackslash, "" ) + " "; + + if ( isXML ) { + return match; + } + + for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) { + if ( elem ) { + if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) { + if ( !inplace ) { + result.push( elem ); + } + + } else if ( inplace ) { + curLoop[i] = false; + } + } + } + + return false; + }, + + ID: function( match ) { + return match[1].replace( rBackslash, "" ); + }, + + TAG: function( match, curLoop ) { + return match[1].replace( rBackslash, "" ).toLowerCase(); + }, + + CHILD: function( match ) { + if ( match[1] === "nth" ) { + if ( !match[2] ) { + Sizzle.error( match[0] ); + } + + match[2] = match[2].replace(/^\+|\s*/g, ''); + + // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6' + var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec( + match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || + !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); + + // calculate the numbers (first)n+(last) including if they are negative + match[2] = (test[1] + (test[2] || 1)) - 0; + match[3] = test[3] - 0; + } + else if ( match[2] ) { + Sizzle.error( match[0] ); + } + + // TODO: Move to normal caching system + match[0] = done++; + + return match; + }, + + ATTR: function( match, curLoop, inplace, result, not, isXML ) { + var name = match[1] = match[1].replace( rBackslash, "" ); + + if ( !isXML && Expr.attrMap[name] ) { + match[1] = Expr.attrMap[name]; + } + + // Handle if an un-quoted value was used + match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" ); + + if ( match[2] === "~=" ) { + match[4] = " " + match[4] + " "; + } + + return match; + }, + + PSEUDO: function( match, curLoop, inplace, result, not ) { + if ( match[1] === "not" ) { + // If we're dealing with a complex expression, or a simple one + if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { + match[3] = Sizzle(match[3], null, null, curLoop); + + } else { + var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); + + if ( !inplace ) { + result.push.apply( result, ret ); + } + + return false; + } + + } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { + return true; + } + + return match; + }, + + POS: function( match ) { + match.unshift( true ); + + return match; + } + }, + + filters: { + enabled: function( elem ) { + return elem.disabled === false && elem.type !== "hidden"; + }, + + disabled: function( elem ) { + return elem.disabled === true; + }, + + checked: function( elem ) { + return elem.checked === true; + }, + + selected: function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + parent: function( elem ) { + return !!elem.firstChild; + }, + + empty: function( elem ) { + return !elem.firstChild; + }, + + has: function( elem, i, match ) { + return !!Sizzle( match[3], elem ).length; + }, + + header: function( elem ) { + return (/h\d/i).test( elem.nodeName ); + }, + + text: function( elem ) { + var attr = elem.getAttribute( "type" ), type = elem.type; + // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) + // use getAttribute instead to test this case + return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null ); + }, + + radio: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type; + }, + + checkbox: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type; + }, + + file: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "file" === elem.type; + }, + + password: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "password" === elem.type; + }, + + submit: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && "submit" === elem.type; + }, + + image: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "image" === elem.type; + }, + + reset: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && "reset" === elem.type; + }, + + button: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && "button" === elem.type || name === "button"; + }, + + input: function( elem ) { + return (/input|select|textarea|button/i).test( elem.nodeName ); + }, + + focus: function( elem ) { + return elem === elem.ownerDocument.activeElement; + } + }, + setFilters: { + first: function( elem, i ) { + return i === 0; + }, + + last: function( elem, i, match, array ) { + return i === array.length - 1; + }, + + even: function( elem, i ) { + return i % 2 === 0; + }, + + odd: function( elem, i ) { + return i % 2 === 1; + }, + + lt: function( elem, i, match ) { + return i < match[3] - 0; + }, + + gt: function( elem, i, match ) { + return i > match[3] - 0; + }, + + nth: function( elem, i, match ) { + return match[3] - 0 === i; + }, + + eq: function( elem, i, match ) { + return match[3] - 0 === i; + } + }, + filter: { + PSEUDO: function( elem, match, i, array ) { + var name = match[1], + filter = Expr.filters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + + } else if ( name === "contains" ) { + return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0; + + } else if ( name === "not" ) { + var not = match[3]; + + for ( var j = 0, l = not.length; j < l; j++ ) { + if ( not[j] === elem ) { + return false; + } + } + + return true; + + } else { + Sizzle.error( name ); + } + }, + + CHILD: function( elem, match ) { + var type = match[1], + node = elem; + + switch ( type ) { + case "only": + case "first": + while ( (node = node.previousSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + if ( type === "first" ) { + return true; + } + + node = elem; + + case "last": + while ( (node = node.nextSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + return true; + + case "nth": + var first = match[2], + last = match[3]; + + if ( first === 1 && last === 0 ) { + return true; + } + + var doneName = match[0], + parent = elem.parentNode; + + if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { + var count = 0; + + for ( node = parent.firstChild; node; node = node.nextSibling ) { + if ( node.nodeType === 1 ) { + node.nodeIndex = ++count; + } + } + + parent.sizcache = doneName; + } + + var diff = elem.nodeIndex - last; + + if ( first === 0 ) { + return diff === 0; + + } else { + return ( diff % first === 0 && diff / first >= 0 ); + } + } + }, + + ID: function( elem, match ) { + return elem.nodeType === 1 && elem.getAttribute("id") === match; + }, + + TAG: function( elem, match ) { + return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match; + }, + + CLASS: function( elem, match ) { + return (" " + (elem.className || elem.getAttribute("class")) + " ") + .indexOf( match ) > -1; + }, + + ATTR: function( elem, match ) { + var name = match[1], + result = Expr.attrHandle[ name ] ? + Expr.attrHandle[ name ]( elem ) : + elem[ name ] != null ? + elem[ name ] : + elem.getAttribute( name ), + value = result + "", + type = match[2], + check = match[4]; + + return result == null ? + type === "!=" : + type === "=" ? + value === check : + type === "*=" ? + value.indexOf(check) >= 0 : + type === "~=" ? + (" " + value + " ").indexOf(check) >= 0 : + !check ? + value && result !== false : + type === "!=" ? + value !== check : + type === "^=" ? + value.indexOf(check) === 0 : + type === "$=" ? + value.substr(value.length - check.length) === check : + type === "|=" ? + value === check || value.substr(0, check.length + 1) === check + "-" : + false; + }, + + POS: function( elem, match, i, array ) { + var name = match[2], + filter = Expr.setFilters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + } + } + } +}; + +var origPOS = Expr.match.POS, + fescape = function(all, num){ + return "\\" + (num - 0 + 1); + }; + +for ( var type in Expr.match ) { + Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) ); + Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) ); +} + +var makeArray = function( array, results ) { + array = Array.prototype.slice.call( array, 0 ); + + if ( results ) { + results.push.apply( results, array ); + return results; + } + + return array; +}; + +// Perform a simple check to determine if the browser is capable of +// converting a NodeList to an array using builtin methods. +// Also verifies that the returned array holds DOM nodes +// (which is not the case in the Blackberry browser) +try { + Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType; + +// Provide a fallback method if it does not work +} catch( e ) { + makeArray = function( array, results ) { + var i = 0, + ret = results || []; + + if ( toString.call(array) === "[object Array]" ) { + Array.prototype.push.apply( ret, array ); + + } else { + if ( typeof array.length === "number" ) { + for ( var l = array.length; i < l; i++ ) { + ret.push( array[i] ); + } + + } else { + for ( ; array[i]; i++ ) { + ret.push( array[i] ); + } + } + } + + return ret; + }; +} + +var sortOrder, siblingCheck; + +if ( document.documentElement.compareDocumentPosition ) { + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { + return a.compareDocumentPosition ? -1 : 1; + } + + return a.compareDocumentPosition(b) & 4 ? -1 : 1; + }; + +} else { + sortOrder = function( a, b ) { + // The nodes are identical, we can exit early + if ( a === b ) { + hasDuplicate = true; + return 0; + + // Fallback to using sourceIndex (in IE) if it's available on both nodes + } else if ( a.sourceIndex && b.sourceIndex ) { + return a.sourceIndex - b.sourceIndex; + } + + var al, bl, + ap = [], + bp = [], + aup = a.parentNode, + bup = b.parentNode, + cur = aup; + + // If the nodes are siblings (or identical) we can do a quick check + if ( aup === bup ) { + return siblingCheck( a, b ); + + // If no parents were found then the nodes are disconnected + } else if ( !aup ) { + return -1; + + } else if ( !bup ) { + return 1; + } + + // Otherwise they're somewhere else in the tree so we need + // to build up a full list of the parentNodes for comparison + while ( cur ) { + ap.unshift( cur ); + cur = cur.parentNode; + } + + cur = bup; + + while ( cur ) { + bp.unshift( cur ); + cur = cur.parentNode; + } + + al = ap.length; + bl = bp.length; + + // Start walking down the tree looking for a discrepancy + for ( var i = 0; i < al && i < bl; i++ ) { + if ( ap[i] !== bp[i] ) { + return siblingCheck( ap[i], bp[i] ); + } + } + + // We ended someplace up the tree so do a sibling check + return i === al ? + siblingCheck( a, bp[i], -1 ) : + siblingCheck( ap[i], b, 1 ); + }; + + siblingCheck = function( a, b, ret ) { + if ( a === b ) { + return ret; + } + + var cur = a.nextSibling; + + while ( cur ) { + if ( cur === b ) { + return -1; + } + + cur = cur.nextSibling; + } + + return 1; + }; +} + +// Utility function for retreiving the text value of an array of DOM nodes +Sizzle.getText = function( elems ) { + var ret = "", elem; + + for ( var i = 0; elems[i]; i++ ) { + elem = elems[i]; + + // Get the text from text nodes and CDATA nodes + if ( elem.nodeType === 3 || elem.nodeType === 4 ) { + ret += elem.nodeValue; + + // Traverse everything else, except comment nodes + } else if ( elem.nodeType !== 8 ) { + ret += Sizzle.getText( elem.childNodes ); + } + } + + return ret; +}; + +// Check to see if the browser returns elements by name when +// querying by getElementById (and provide a workaround) +(function(){ + // We're going to inject a fake input element with a specified name + var form = document.createElement("div"), + id = "script" + (new Date()).getTime(), + root = document.documentElement; + + form.innerHTML = ""; + + // Inject it into the root element, check its status, and remove it quickly + root.insertBefore( form, root.firstChild ); + + // The workaround has to do additional checks after a getElementById + // Which slows things down for other browsers (hence the branching) + if ( document.getElementById( id ) ) { + Expr.find.ID = function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + + return m ? + m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? + [m] : + undefined : + []; + } + }; + + Expr.filter.ID = function( elem, match ) { + var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); + + return elem.nodeType === 1 && node && node.nodeValue === match; + }; + } + + root.removeChild( form ); + + // release memory in IE + root = form = null; +})(); + +(function(){ + // Check to see if the browser returns only elements + // when doing getElementsByTagName("*") + + // Create a fake element + var div = document.createElement("div"); + div.appendChild( document.createComment("") ); + + // Make sure no comments are found + if ( div.getElementsByTagName("*").length > 0 ) { + Expr.find.TAG = function( match, context ) { + var results = context.getElementsByTagName( match[1] ); + + // Filter out possible comments + if ( match[1] === "*" ) { + var tmp = []; + + for ( var i = 0; results[i]; i++ ) { + if ( results[i].nodeType === 1 ) { + tmp.push( results[i] ); + } + } + + results = tmp; + } + + return results; + }; + } + + // Check to see if an attribute returns normalized href attributes + div.innerHTML = ""; + + if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && + div.firstChild.getAttribute("href") !== "#" ) { + + Expr.attrHandle.href = function( elem ) { + return elem.getAttribute( "href", 2 ); + }; + } + + // release memory in IE + div = null; +})(); + +if ( document.querySelectorAll ) { + (function(){ + var oldSizzle = Sizzle, + div = document.createElement("div"), + id = "__sizzle__"; + + div.innerHTML = "

    "; + + // Safari can't handle uppercase or unicode characters when + // in quirks mode. + if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { + return; + } + + Sizzle = function( query, context, extra, seed ) { + context = context || document; + + // Only use querySelectorAll on non-XML documents + // (ID selectors don't work in non-HTML documents) + if ( !seed && !Sizzle.isXML(context) ) { + // See if we find a selector to speed up + var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); + + if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { + // Speed-up: Sizzle("TAG") + if ( match[1] ) { + return makeArray( context.getElementsByTagName( query ), extra ); + + // Speed-up: Sizzle(".CLASS") + } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { + return makeArray( context.getElementsByClassName( match[2] ), extra ); + } + } + + if ( context.nodeType === 9 ) { + // Speed-up: Sizzle("body") + // The body element only exists once, optimize finding it + if ( query === "body" && context.body ) { + return makeArray( [ context.body ], extra ); + + // Speed-up: Sizzle("#ID") + } else if ( match && match[3] ) { + var elem = context.getElementById( match[3] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id === match[3] ) { + return makeArray( [ elem ], extra ); + } + + } else { + return makeArray( [], extra ); + } + } + + try { + return makeArray( context.querySelectorAll(query), extra ); + } catch(qsaError) {} + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + var oldContext = context, + old = context.getAttribute( "id" ), + nid = old || id, + hasParent = context.parentNode, + relativeHierarchySelector = /^\s*[+~]/.test( query ); + + if ( !old ) { + context.setAttribute( "id", nid ); + } else { + nid = nid.replace( /'/g, "\\$&" ); + } + if ( relativeHierarchySelector && hasParent ) { + context = context.parentNode; + } + + try { + if ( !relativeHierarchySelector || hasParent ) { + return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); + } + + } catch(pseudoError) { + } finally { + if ( !old ) { + oldContext.removeAttribute( "id" ); + } + } + } + } + + return oldSizzle(query, context, extra, seed); + }; + + for ( var prop in oldSizzle ) { + Sizzle[ prop ] = oldSizzle[ prop ]; + } + + // release memory in IE + div = null; + })(); +} + +(function(){ + var html = document.documentElement, + matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector; + + if ( matches ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9 fails this) + var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ), + pseudoWorks = false; + + try { + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( document.documentElement, "[test!='']:sizzle" ); + + } catch( pseudoError ) { + pseudoWorks = true; + } + + Sizzle.matchesSelector = function( node, expr ) { + // Make sure that attribute selectors are quoted + expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); + + if ( !Sizzle.isXML( node ) ) { + try { + if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) { + var ret = matches.call( node, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || !disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9, so check for that + node.document && node.document.nodeType !== 11 ) { + return ret; + } + } + } catch(e) {} + } + + return Sizzle(expr, null, null, [node]).length > 0; + }; + } +})(); + +(function(){ + var div = document.createElement("div"); + + div.innerHTML = "
    "; + + // Opera can't find a second classname (in 9.6) + // Also, make sure that getElementsByClassName actually exists + if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { + return; + } + + // Safari caches class attributes, doesn't catch changes (in 3.2) + div.lastChild.className = "e"; + + if ( div.getElementsByClassName("e").length === 1 ) { + return; + } + + Expr.order.splice(1, 0, "CLASS"); + Expr.find.CLASS = function( match, context, isXML ) { + if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { + return context.getElementsByClassName(match[1]); + } + }; + + // release memory in IE + div = null; +})(); + +function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem.sizcache === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 && !isXML ){ + elem.sizcache = doneName; + elem.sizset = i; + } + + if ( elem.nodeName.toLowerCase() === cur ) { + match = elem; + break; + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem.sizcache === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 ) { + if ( !isXML ) { + elem.sizcache = doneName; + elem.sizset = i; + } + + if ( typeof cur !== "string" ) { + if ( elem === cur ) { + match = true; + break; + } + + } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { + match = elem; + break; + } + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +if ( document.documentElement.contains ) { + Sizzle.contains = function( a, b ) { + return a !== b && (a.contains ? a.contains(b) : true); + }; + +} else if ( document.documentElement.compareDocumentPosition ) { + Sizzle.contains = function( a, b ) { + return !!(a.compareDocumentPosition(b) & 16); + }; + +} else { + Sizzle.contains = function() { + return false; + }; +} + +Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; + + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +var posProcess = function( selector, context ) { + var match, + tmpSet = [], + later = "", + root = context.nodeType ? [context] : context; + + // Position selectors must be done after the filter + // And so must :not(positional) so we move all PSEUDOs to the end + while ( (match = Expr.match.PSEUDO.exec( selector )) ) { + later += match[0]; + selector = selector.replace( Expr.match.PSEUDO, "" ); + } + + selector = Expr.relative[selector] ? selector + "*" : selector; + + for ( var i = 0, l = root.length; i < l; i++ ) { + Sizzle( selector, root[i], tmpSet ); + } + + return Sizzle.filter( later, tmpSet ); +}; + +// EXPOSE +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.filters; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + +})(); + + +var runtil = /Until$/, + rparentsprev = /^(?:parents|prevUntil|prevAll)/, + // Note: This RegExp should be improved, or likely pulled from Sizzle + rmultiselector = /,/, + isSimple = /^.[^:#\[\.,]*$/, + slice = Array.prototype.slice, + POS = jQuery.expr.match.POS, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend({ + find: function( selector ) { + var self = this, + i, l; + + if ( typeof selector !== "string" ) { + return jQuery( selector ).filter(function() { + for ( i = 0, l = self.length; i < l; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }); + } + + var ret = this.pushStack( "", "find", selector ), + length, n, r; + + for ( i = 0, l = this.length; i < l; i++ ) { + length = ret.length; + jQuery.find( selector, this[i], ret ); + + if ( i > 0 ) { + // Make sure that the results are unique + for ( n = length; n < ret.length; n++ ) { + for ( r = 0; r < length; r++ ) { + if ( ret[r] === ret[n] ) { + ret.splice(n--, 1); + break; + } + } + } + } + } + + return ret; + }, + + has: function( target ) { + var targets = jQuery( target ); + return this.filter(function() { + for ( var i = 0, l = targets.length; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + not: function( selector ) { + return this.pushStack( winnow(this, selector, false), "not", selector); + }, + + filter: function( selector ) { + return this.pushStack( winnow(this, selector, true), "filter", selector ); + }, + + is: function( selector ) { + return !!selector && ( typeof selector === "string" ? + jQuery.filter( selector, this ).length > 0 : + this.filter( selector ).length > 0 ); + }, + + closest: function( selectors, context ) { + var ret = [], i, l, cur = this[0]; + + // Array + if ( jQuery.isArray( selectors ) ) { + var match, selector, + matches = {}, + level = 1; + + if ( cur && selectors.length ) { + for ( i = 0, l = selectors.length; i < l; i++ ) { + selector = selectors[i]; + + if ( !matches[ selector ] ) { + matches[ selector ] = POS.test( selector ) ? + jQuery( selector, context || this.context ) : + selector; + } + } + + while ( cur && cur.ownerDocument && cur !== context ) { + for ( selector in matches ) { + match = matches[ selector ]; + + if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) { + ret.push({ selector: selector, elem: cur, level: level }); + } + } + + cur = cur.parentNode; + level++; + } + } + + return ret; + } + + // String + var pos = POS.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( i = 0, l = this.length; i < l; i++ ) { + cur = this[i]; + + while ( cur ) { + if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { + ret.push( cur ); + break; + + } else { + cur = cur.parentNode; + if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) { + break; + } + } + } + } + + ret = ret.length > 1 ? jQuery.unique( ret ) : ret; + + return this.pushStack( ret, "closest", selectors ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? + all : + jQuery.unique( all ) ); + }, + + andSelf: function() { + return this.add( this.prevObject ); + } +}); + +// A painfully simple check to see if an element is disconnected +// from a document (should be improved, where feasible). +function isDisconnected( node ) { + return !node || !node.parentNode || node.parentNode.nodeType === 11; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return jQuery.nth( elem, 2, "nextSibling" ); + }, + prev: function( elem ) { + return jQuery.nth( elem, 2, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( elem.parentNode.firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.makeArray( elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +}); + +jQuery.extend({ + filter: function( expr, elems, not ) { + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 ? + jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : + jQuery.find.matches(expr, elems); + }, + + dir: function( elem, dir, until ) { + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + nth: function( cur, result, dir, elem ) { + result = result || 1; + var num = 0; + + for ( ; cur; cur = cur[dir] ) { + if ( cur.nodeType === 1 && ++num === result ) { + break; + } + } + + return cur; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, keep ) { + + // Can't pass null or undefined to indexOf in Firefox 4 + // Set to 0 to skip string check + qualifier = qualifier || 0; + + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep(elements, function( elem, i ) { + var retVal = !!qualifier.call( elem, i, elem ); + return retVal === keep; + }); + + } else if ( qualifier.nodeType ) { + return jQuery.grep(elements, function( elem, i ) { + return (elem === qualifier) === keep; + }); + + } else if ( typeof qualifier === "string" ) { + var filtered = jQuery.grep(elements, function( elem ) { + return elem.nodeType === 1; + }); + + if ( isSimple.test( qualifier ) ) { + return jQuery.filter(qualifier, filtered, !keep); + } else { + qualifier = jQuery.filter( qualifier, filtered ); + } + } + + return jQuery.grep(elements, function( elem, i ) { + return (jQuery.inArray( elem, qualifier ) >= 0) === keep; + }); +} + + + + +var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, + rtagName = /<([\w:]+)/, + rtbody = /", "" ], + legend: [ 1, "
    ", "
    " ], + thead: [ 1, "", "
    " ], + tr: [ 2, "", "
    " ], + td: [ 3, "", "
    " ], + col: [ 2, "", "
    " ], + area: [ 1, "", "" ], + _default: [ 0, "", "" ] + }; + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +// IE can't serialize and - - - - + + + + + diff --git a/NzbDrone.Web/Web.config b/NzbDrone.Web/Web.config index 280436c22..f60a71f3f 100644 --- a/NzbDrone.Web/Web.config +++ b/NzbDrone.Web/Web.config @@ -31,9 +31,13 @@ + + + + @@ -42,8 +46,11 @@ + + + diff --git a/NzbDrone.Web/packages.config b/NzbDrone.Web/packages.config index 2b434ad41..885fb47bf 100644 --- a/NzbDrone.Web/packages.config +++ b/NzbDrone.Web/packages.config @@ -9,4 +9,7 @@ + + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/TelerikMvcExtensions.2011.2.712.nupkg b/packages/TelerikMvcExtensions.2011.2.712/TelerikMvcExtensions.2011.2.712.nupkg new file mode 100644 index 000000000..6eabb144d Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/TelerikMvcExtensions.2011.2.712.nupkg differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.bg-BG.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.bg-BG.resx new file mode 100644 index 000000000..99ad06488 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.bg-BG.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Получер + + + Направи препратка + + + Сигурни ли сте че искате да изтриете "{0}"? + + + Директория с посоченото име не бе открита. + + + Празна папка + + + Шрифт + + + (наследен шрифт) + + + Размер на шрифта + + + (наследен размер) + + + Избери формат + + + Добави отстъп + + + Вмъкни HTML + + + Вмъкни картина + + + Вмъкни номериран списък + + + Вмъкни списък + + + Избраният файл "{0}" не е валиден. Поддържаните файлови формати са {1}. + + + Курсив + + + Центрирай + + + Подравни + + + Подравни отляво + + + Подравни отдясно + + + Подреди по: + + + Име + + + Големина + + + Премахни отстъп + + + Файл с име "{0}" вече съществува в тази папка. Искате ли да го презапишете? + + + Зачертай + + + Стилове + + + Подчертай + + + Премахни препратка + + + Качи файл + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.de-DE.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.de-DE.resx new file mode 100644 index 000000000..b9d1f9882 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.de-DE.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fett + + + Hyperlink einfügen + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Schriftfamilie + + + (Schrift übernehmen) + + + Größe + + + (Größe übernehmen) + + + Absatzstil + + + Einzug vergrößern + + + HTML einfügen + + + Einfügen Bild + + + Numerierte Liste + + + Aufzählliste + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Kursiv + + + Zentriert + + + Ausrichten + + + Linksbündig + + + Rechtsbündig + + + Arrange by: + + + Name + + + Size + + + Einzug verkleinern + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Durchgestrichen + + + Stil + + + Unterstrichen + + + Hyperlink entfernen + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.en-US.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.en-US.resx new file mode 100644 index 000000000..46048b826 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.en-US.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Bold + + + Insert hyperlink + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Select font family + + + (inherited font) + + + Select font size + + + (inherited size) + + + Select block type + + + Indent + + + Insert HTML + + + Insert image + + + Insert ordered list + + + Insert unordered list + + + The selected file \"{0}\" is not valid. Supported file types are {1}. + + + Italic + + + Center text + + + Justify + + + Align text left + + + Align text right + + + Arrange by: + + + Name + + + Size + + + Outdent + + + 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Strikethrough + + + Styles + + + Underline + + + Remove hyperlink + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.fr-FR.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.fr-FR.resx new file mode 100644 index 000000000..43eee6158 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.fr-FR.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Gras + + + Insérer un lien hypertexte + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Famille de polices + + + Dimension + + + Style du paragraphe + + + Augmenter le retrait + + + Insèrer HTML + + + Insèrer Image + + + Liste numérotée + + + Liste à puces + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Italique + + + Centrer + + + Justifier + + + Alignement à gauche + + + Alignement à droite + + + Arrange by: + + + Name + + + Size + + + Réduire le retrait + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Texte barré + + + Style + + + Souligné + + + Supprimer hyperlien + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.nl-NL.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.nl-NL.resx new file mode 100644 index 000000000..98776c805 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.nl-NL.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Vet + + + Hyperlink toevoegen + + + Weet u zeker dat u het bestand \"{0}\" wilt verwijderen? + + + Een map met deze naam is niet gevonden. + + + Lege map + + + Selecteer lettertype + + + (geërfd lettertype) + + + Selecteer lettergrootte + + + (geërfde lettergrootte) + + + Selecteer bloktype + + + Inspringen + + + HTML toevoegen + + + Afbeelding toevoegen + + + Georderde lijst toevoegen + + + Ongeorderde lijst toevoegen + + + Het geseleteceerde bestand \"{0}\" is niet geldig. De volgende bestandstypen worden ondersteund {1}. + + + Cursief + + + Tekst centreren + + + Uitvullen + + + Tekst links uitlijnen + + + Tekst rechts uitlijnen + + + Sorteer op: + + + Naam + + + Grootte + + + Uitsprong + + + Het bestand met naam "{0}" bestaat reeds in deze map. Wilt u het bestand overschrijven? + + + Doorhalen + + + Stijlen + + + Onderstrepen + + + Hyperlink verwijderen + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.pl-PL.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.pl-PL.resx new file mode 100644 index 000000000..984ba72c6 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.pl-PL.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Wytłuszczenie + + + Wstaw link + + + Czy na pewno chcesz usunąć "{0}"? + + + Folder o tej nazwie nie został znaleziony. + + + Opróżnij folder + + + Wybierz czcionkę + + + (czcionka odziedziczona) + + + Wybierz rozmiar czcionki + + + (rozmiar odziedziczony) + + + Wybierz rozmiar bloku + + + Wcięcie + + + Wstaw HTML + + + Wstaw obraz + + + Wstaw listę numerowaną + + + Wstaw listę wypunktowaną + + + Wybrany plik "{0}" nie jest prawidłowy. Obsługiwane typy plików to: {1}. + + + Kursywa + + + Centruj tekst + + + Wyrównaj tekst + + + Wyrównaj tekst do lewej + + + Wyrównaj tekst do prawej + + + Uporządkuj wg: + + + Nazwa + + + Rozmiar + + + Zmniejsz wcięcie + + + Plik o nazwie "{0}" istnieje już w bieżącym folderze. Czy chcesz go zastąpić? + + + Przekreślenie + + + Styl + + + Podkreślenie + + + Usuń link + + + Załaduj + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.pt-BR.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.pt-BR.resx new file mode 100644 index 000000000..1cd97aa06 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.pt-BR.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Negrito + + + Adicionar Link + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Fonte + + + Tamanho + + + Formatar Bloco + + + Aumentar Recuo + + + Inserir HTML + + + Inserir Imagem + + + Inserir Lista Ordenada + + + Inserir Lista Aleatória + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Itálico + + + Alinhar Centro + + + Justificar + + + Alinhar à Esquerda + + + Alinhar à Direita + + + Arrange by: + + + Name + + + Size + + + Diminuir Recuo + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Tachado + + + Estilo + + + Sublinhado + + + Remover Link + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.resx new file mode 100644 index 000000000..46048b826 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.resx @@ -0,0 +1,213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Bold + + + Insert hyperlink + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Select font family + + + (inherited font) + + + Select font size + + + (inherited size) + + + Select block type + + + Indent + + + Insert HTML + + + Insert image + + + Insert ordered list + + + Insert unordered list + + + The selected file \"{0}\" is not valid. Supported file types are {1}. + + + Italic + + + Center text + + + Justify + + + Align text left + + + Align text right + + + Arrange by: + + + Name + + + Size + + + Outdent + + + 'A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Strikethrough + + + Styles + + + Underline + + + Remove hyperlink + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.ru-RU.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.ru-RU.resx new file mode 100644 index 000000000..7ebc8e125 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.ru-RU.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Полужирный + + + Вставить гиперссылку + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Выбрать шрифт + + + Выбрать размер шрифта + + + Форматирование + + + Увеличить отступ + + + Вставить HTML + + + Вставить изображение + + + Вставить нумерованный список + + + Вставить маркированныйсписок + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Курсив + + + Выровнять по центру + + + Выровнять по ширине + + + Выровнять по левому краю + + + Выровнять по правому краю + + + Arrange by: + + + Name + + + Size + + + Уменьшить отступ + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Зачеркнутый + + + Стиль + + + Подчеркнутый + + + Удалить гиперссылку + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.uk-UA.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.uk-UA.resx new file mode 100644 index 000000000..0fcb3fe94 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/EditorLocalization.uk-UA.resx @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Жирний + + + Додати посилання + + + Are you sure you want to delete "{0}"? + + + A directory with this name was not found. + + + Empty Folder + + + Шрифт + + + Розмір шрифта + + + Форматування + + + Збільшити відступ + + + Додати HTML + + + Додати зображення + + + Нумерований список + + + Маркований список + + + The selected file "{0}" is not valid. Supported file types are {1}. + + + Курсив + + + По центру + + + По ширині + + + По лівому краю + + + По правому краю + + + Arrange by: + + + Name + + + Size + + + Зменшити відступ + + + A file with name "{0}" already exists in the current directory. Do you want to overwrite it? + + + Закреслений + + + Стиль + + + Підкреслений + + + Видалити посилання + + + Upload + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.bg-BG.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.bg-BG.resx new file mode 100644 index 000000000..6880e5e4e --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.bg-BG.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Добави нов запис + + + Изтриване + + + Отказ + + + Запази + + + Добави + + + Редактиране + + + Избери + + + Страница + + + Записи {0} - {1} от {2} + + + от {0} + + + Филтрирай + + + и + + + Премахни филтър + + + Е равно на + + + Е след или равно на + + + Е след + + + Е преди или равно на + + + Е преди + + + Не е равно на + + + Е равно на + + + Е по-голяма или равно на + + + Е по-голямо от + + + Е по-малко или равно на + + + Е по-малко от + + + Не е равно на + + + Покажи записи със стойност, която + + + Завършва на + + + Е равно на + + + Не е равно на + + + Започва с + + + Съдържа + + + Дръпни колона и я пусни тук, за да групираш + + + E равно на + + + Не е равно на + + + -Избери стойност- + + + Сигурни ли сте, че искате да изтриете записа? + + + не е вярно + + + е вярно + + + Няма записи за показване! + + + Откажи промените + + + Запази промените + + + Опресни + + + сортиране в нарастващ ред + + + сортиране в намаляващ ред + + + премахни групирането + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.de-DE.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.de-DE.resx new file mode 100644 index 000000000..72fe972f3 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.de-DE.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Neuen Datensatz hinzufügen + + + Löschen + + + Abbrechen + + + Aktualisiere + + + Einfügen + + + Bearbeiten + + + Wähle + + + Seite + + + Anzeigen der Elemente {0} - {1} von {2} + + + von {0} + + + Filter + + + Und + + + Filter löschen + + + Ist gleich + + + Ist nach oder gleich + + + Ist nach + + + Ist vor oder gleich + + + Ist vor + + + Ist nicht gleich + + + Ist gleich + + + Ist größer als oder gleich + + + Ist größer als + + + Ist kleiner als oder gleich + + + Ist kleiner + + + Ist nicht gleich + + + Zeigt Zeilen mit Werten, die + + + Endet mit + + + Ist gleich + + + Ist nicht gleich + + + Beginnt mit + + + Beinhaltet + + + Ziehen Sie eine Spaltenüberschrift hierher, um nach dieser Spalte zu gruppieren + + + Ist gleich + + + Ist nicht gleich + + + -wählen Sie- + + + Sind Sie sicher, dass Sie diesen Datensatz löschen wollen? + + + ist falsch + + + ist richtig + + + keine Daten + + + Änderungen verwerfen + + + Änderungen speichern + + + Aktualisieren + + + aufsteigend sortiert + + + absteigend sortiert + + + Gruppierung aufheben + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.en-US.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.en-US.resx new file mode 100644 index 000000000..99d7e63fb --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.en-US.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Add new record + + + Delete + + + Cancel + + + Update + + + Insert + + + Edit + + + Select + + + Page + + + Displaying items {0} - {1} of {2} + + + of {0} + + + Filter + + + And + + + Clear Filter + + + Is equal to + + + Is after or equal to + + + Is after + + + Is before or equal to + + + Is before + + + Is not equal to + + + Is equal to + + + Is greater than or equal to + + + Is greater than + + + Is less than or equal to + + + Is less than + + + Is not equal to + + + Show rows with value that + + + Ends with + + + Is equal to + + + Is not equal to + + + Starts with + + + Contains + + + Drag a column header and drop it here to group by that column + + + Is equal to + + + Is not equal to + + + Are you sure you want to delete this record? + + + -Select value- + + + is false + + + is true + + + No records to display. + + + Cancel changes + + + Save changes + + + Refresh + + + sorted ascending + + + sorted descending + + + ungroup + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.es-ES.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.es-ES.resx new file mode 100644 index 000000000..d332f18da --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.es-ES.resx @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Añadir nuevo registro + + + Eliminar + + + Cancelar + + + Actualizar + + + Añadir + + + Editar + + + Seleccionar + + + Página + + + Elementos mostrados {0} - {1} de {2} + + + de {0} + + + Filtrar + + + Y + + + Limpiar filtro + + + Es igual a + + + Es posterior o igual a + + + Es posterior + + + Es anterior o igual a + + + Es anterior + + + No es igual a + + + Es igual a + + + Es mayor o igual que + + + Es mayor que + + + Es menor o igual que + + + Es menor que + + + No es igual a + + + Mostrar filas con valor que + + + Termina en + + + Es igual a + + + No es igual a + + + Comienza con + + + Contiene + + + Arrastre un encabezado de columna y póngalo aquí para agrupar por ella + + + Es igual a + + + No es igual a + + + ¿Está seguro de que quiere eliminar este registro? + + + No records to display. + + + No + + + Si + + + Cancel Changes + + + Save Changes + + + Actualizar + + + ordenados ascendente + + + ordenados descendente + + + desagrupar + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.fr-FR.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.fr-FR.resx new file mode 100644 index 000000000..97e9f5172 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.fr-FR.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Ajouter un contenu + + + Effacer + + + Annuler + + + Rafraîchir + + + Insérer + + + Edition + + + Sélectionner + + + Page + + + Afficher les items {0} - {1} of {2} + + + de {0} + + + Filtrer + + + et + + + Annuler Filtrer + + + égal à + + + est postérieur ou égal à + + + est postérieur + + + est antérieur ou égal à + + + est antérieur + + + n’est pas égal à + + + égal à + + + est supérieur ou égal à + + + est supérieur à + + + est moins ou égal à + + + est moins de + + + n’est pas égal à + + + Montrer les lignes avec la valeur de + + + Finit par + + + égal à + + + n’est pas égal à + + + Commence par + + + contient + + + Faites glisser la tête de colonne et posez-la ici pour la grouper avec cette colonne. + + + égal à + + + n’est pas égal à + + + -Sélectionner- + + + Etes-vous surs de vouloir effacer le contenu ? + + + est fausse + + + est vrai + + + No records to display. + + + Cancel Changes + + + Save Changes + + + Actualiser + + + triés croissant + + + triés décroissant + + + supprimer groupement + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pl-PL.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pl-PL.resx new file mode 100644 index 000000000..ed27ea524 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pl-PL.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Dodaj nowy rekord + + + Usuń + + + Anuluj + + + Aktualizuj + + + Wstaw + + + Edycja + + + Zaznacz + + + Strona + + + Wyświetlanie elementów {0} - {1} z {2} + + + z {0} + + + Filtr + + + Oraz + + + Wyczyść filtr + + + jest równe + + + jest późniejsze lub równe + + + jest późniejsze + + + jest wcześniejsze lub równe + + + jest wcześniejsze + + + jest inne niż + + + jest równe + + + jest większe lub równe + + + jest większe + + + jest mniejsze lub równe + + + jest mniejsze niż + + + jest inne niż + + + Pokaż wiersze o wartościach które + + + Kończy się na + + + jest równe + + + jest inne niż + + + Zaczyna się od + + + Zawiera + + + Przeciągnij nagłówek kolumny i upuść go tutaj aby pogrupować według tej kolumny + + + jest równe + + + jest inne niż + + + Czy na pewno chcesz usunąć ten rekord? + + + -Wybierz wartość- + + + fałsz + + + prawda + + + Brak danych + + + Anuluj zmiany + + + Zapisz zmiany + + + Odśwież + + + posortowane rosnąco + + + posortowane malejąco + + + rozgrupować + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pt-BR.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pt-BR.resx new file mode 100644 index 000000000..646b7b7db --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pt-BR.resx @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Adicionar novo registro + + + Excluir + + + Cancelar + + + Atualizar + + + Inserir + + + Editar + + + Selecionar + + + Página + + + Exibindo itens {0} - {1} de {2} + + + de {0} + + + Filtro + + + E + + + Limpar Filtro + + + É igual a + + + É posterior ou igual a + + + É posterior a + + + É anterior ou igual a + + + É anterior a + + + Não é igual a + + + É igual a + + + É maior que ou igual a + + + É maior que + + + É menor que ou igual a + + + É menor que + + + Não é igual a + + + Exibir linhas com valores que + + + Termina com + + + É igual a + + + Não é igual a + + + Começa com + + + Contem + + + Arraste aqui o cabeçalho de uma coluna para agrupar por esta coluna + + + É igual a + + + Não é igual a + + + Você tem certeza que deseja excluir este registro? + + + É falsa + + + É verdade + + + No records to display. + + + Cancel Changes + + + Save Changes + + + Atualizar + + + ordenadas crescente + + + ordenadas descendente + + + desagrupar + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pt-PT.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pt-PT.resx new file mode 100644 index 000000000..c61481321 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.pt-PT.resx @@ -0,0 +1,249 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Novo + + + Cancelar + + + Apagar + + + Pretende remover o registo? + + + Registos {0} - {1} de {2} + + + Editar + + + No records to display. + + + Filtro + + + e + + + Limpar + + + Igual + + + Maior ou igual que + + + Maior que + + + Menor ou igual que + + + Menor que + + + Diferente + + + Igual + + + Diferente + + + Igual + + + Maior ou igual que + + + Maior que + + + Menor ou igual que + + + Menor que + + + Diferente + + + -Seleccione um item- + + + Motrar as linhas com o valor + + + A acabar em + + + Igual + + + Diferente + + + A comecar com + + + Contem + + + Arraste uma coluna para este espaco para agrupar pelo valor da mesma... + + + Inserir + + + Pagina + + + de {0} + + + Seleccionar + + + Actualizar + + + Cancel Changes + + + Save Changes + + + Actualizar + + + ordenadas crescente + + + ordenadas descendente + + + desagrupar + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.resx new file mode 100644 index 000000000..99d7e63fb --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Add new record + + + Delete + + + Cancel + + + Update + + + Insert + + + Edit + + + Select + + + Page + + + Displaying items {0} - {1} of {2} + + + of {0} + + + Filter + + + And + + + Clear Filter + + + Is equal to + + + Is after or equal to + + + Is after + + + Is before or equal to + + + Is before + + + Is not equal to + + + Is equal to + + + Is greater than or equal to + + + Is greater than + + + Is less than or equal to + + + Is less than + + + Is not equal to + + + Show rows with value that + + + Ends with + + + Is equal to + + + Is not equal to + + + Starts with + + + Contains + + + Drag a column header and drop it here to group by that column + + + Is equal to + + + Is not equal to + + + Are you sure you want to delete this record? + + + -Select value- + + + is false + + + is true + + + No records to display. + + + Cancel changes + + + Save changes + + + Refresh + + + sorted ascending + + + sorted descending + + + ungroup + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.ru-RU.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.ru-RU.resx new file mode 100644 index 000000000..1b28fec39 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.ru-RU.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Создать новую запись + + + Удалить + + + Отмена + + + Обновить + + + Добавить + + + Изменить + + + Выбрать + + + Страница + + + Отображены записи {0} - {1} из {2} + + + из {0} + + + фильтровать + + + И + + + очистить фильтр + + + равна + + + после или равна + + + после + + + до или равна + + + до + + + не равна + + + равно + + + больше или равно + + + больше + + + меньше или равно + + + меньше + + + не равно + + + Строки со значениями + + + оканчивающимися на + + + равными + + + не равными + + + начинающимися на + + + содержащими + + + Переместите сюда заголовок колонки, чтобы сгрупировать записи из этой колонки + + + равно + + + не равно + + + Вы уверены, что хотите удалить эту запись? + + + -выберите- + + + ложь + + + истина + + + Нет записей для отображения + + + Отменить изменения + + + Сохранить изменения + + + Обновить + + + отсортировано по возрастанию + + + отсортировано по убыванию + + + разгруппировать + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.uk-UA.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.uk-UA.resx new file mode 100644 index 000000000..59f26f01c --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/GridLocalization.uk-UA.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Створити новий запис + + + Видалити + + + Скасувати + + + Оновити + + + Додати + + + Редагувати + + + Вибрати + + + Сторінка + + + Зображено записи {0} - {1} з {2} + + + з {0} + + + фільтрувати + + + І + + + очистити фільтр + + + рівними + + + після або рівна + + + після + + + до або рівними + + + до + + + не рівна + + + рівне + + + більше або рівними + + + більше + + + менше або рівними + + + менше + + + не рівними + + + Рядки із записами + + + закінчуються на + + + рівні + + + не рівні + + + починаються на + + + містять + + + Перетягніть сюди заголовок стовпця, щоб згрупувати записи з цього стовпця + + + рівними + + + не рівними + + + Ви впевнені, що бажаєте видалити даний запис? + + + -виберіть- + + + хиба + + + істина + + + немає записів + + + Cancel Changes + + + Save Changes + + + Оновити + + + відсортовано за зростанням + + + відсортовано за зменьшенням + + + розгрупувати + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.bg-BG.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.bg-BG.resx new file mode 100644 index 000000000..02a4fd69d --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.bg-BG.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Спри + Cancel button text + + + Опитай отново + Retry button text + + + Избери... + Select button text + + + Премахни + Remove button text + + + Качи файловете + Upload button (visible when AutoUpload is set to false) + + + преместете с мишката файлове тук за да ги качите + Drag & Drop hint text + + + грешка + "failed" status text accessible by screen readers + + + качен + "uploaded" status text accessible by screen readers + + + качва се + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.en-US.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.en-US.resx new file mode 100644 index 000000000..0380e024d --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.en-US.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cancel + Cancel button text + + + Retry + Retry button text + + + Select... + Select button text + + + Remove + Remove button text + + + Upload files + Upload button (visible when AutoUpload is set to false) + + + drop files here to upload + Drag & Drop hint text + + + failed + "failed" status text accessible by screen readers + + + uploaded + "uploaded" status text accessible by screen readers + + + uploading + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.pl-PL.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.pl-PL.resx new file mode 100644 index 000000000..c883bf93d --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.pl-PL.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Anuluj + Cancel button text + + + Ponów + Retry button text + + + Wybierz... + Select button text + + + Usuń + Remove button text + + + Załaduj pliki + Upload button (visible when AutoUpload is set to false) + + + przeciągnij tu pliki aby je załadować + Drag & Drop hint text + + + niepowodzenie + "failed" status text accessible by screen readers + + + załadowane + "uploaded" status text accessible by screen readers + + + trwa ładowanie + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.ru-RU.resx b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.ru-RU.resx new file mode 100644 index 000000000..d837f77ff --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/App_GlobalResources/UploadLocalization.ru-RU.resx @@ -0,0 +1,156 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Отмена + Cancel button text + + + Повторить + Retry button text + + + Выбрать... + Select button text + + + Удалить + Remove button text + + + Загрузить файлы + Upload button (visible when AutoUpload is set to false) + + + перетащите сюда файлы для загрузки + Drag & Drop hint text + + + неудачно + "failed" status text accessible by screen readers + + + загружено + "uploaded" status text accessible by screen readers + + + загружается + "uploading" status text accessible by screen readers + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/editor.png new file mode 100644 index 000000000..456f9c518 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/imagebrowser.png new file mode 100644 index 000000000..4b723a2f4 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/loading.gif new file mode 100644 index 000000000..1079b7a96 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/slider-h.gif new file mode 100644 index 000000000..9af4aea03 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/slider-v.gif new file mode 100644 index 000000000..2ae734232 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/sprite-vertical.png new file mode 100644 index 000000000..6754eee18 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/sprite.png new file mode 100644 index 000000000..5526310c7 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-line.png new file mode 100644 index 000000000..631eb5594 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-nodes-rtl.png new file mode 100644 index 000000000..5f249c633 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Black/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/editor.png new file mode 100644 index 000000000..311414557 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/imagebrowser.png new file mode 100644 index 000000000..11252f2d0 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/loading.gif new file mode 100644 index 000000000..67065a630 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/slider-h.gif new file mode 100644 index 000000000..6149098a1 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/slider-v.gif new file mode 100644 index 000000000..1d7de84d3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/sprite-vertical.png new file mode 100644 index 000000000..122af8061 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/sprite.png new file mode 100644 index 000000000..2da960445 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Default/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/editor.png new file mode 100644 index 000000000..a4bf2d17e Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/imagebrowser.png new file mode 100644 index 000000000..34a8470b5 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/loading.gif new file mode 100644 index 000000000..b8453f0e9 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/slider-h.gif new file mode 100644 index 000000000..281af853f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/slider-v.gif new file mode 100644 index 000000000..e56427228 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/sprite-vertical.png new file mode 100644 index 000000000..5d3ec8033 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/sprite.png new file mode 100644 index 000000000..5a3277917 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Forest/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/editor.png new file mode 100644 index 000000000..0af0168e9 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/imagebrowser.png new file mode 100644 index 000000000..73e5c8c4b Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/loading.gif new file mode 100644 index 000000000..f316fdcda Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/slider-h.gif new file mode 100644 index 000000000..eb41a2d17 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/slider-v.gif new file mode 100644 index 000000000..2064b2b07 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/sprite-vertical.png new file mode 100644 index 000000000..6f83f17fb Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/sprite.png new file mode 100644 index 000000000..d5c4795ec Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Hay/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/editor.png new file mode 100644 index 000000000..3bb258c4f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/imagebrowser.png new file mode 100644 index 000000000..f6dc921b4 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/slider-h.gif new file mode 100644 index 000000000..ed31920b6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/slider-v.gif new file mode 100644 index 000000000..3b7594107 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/sprite-vertical.png new file mode 100644 index 000000000..8387e7720 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/sprite.png new file mode 100644 index 000000000..94c141a37 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2007/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/editor.png new file mode 100644 index 000000000..5b5eff047 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/imagebrowser.png new file mode 100644 index 000000000..21c5123da Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/slider-h.gif new file mode 100644 index 000000000..a53cb70fe Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/slider-v.gif new file mode 100644 index 000000000..cc7a98d63 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/sprite-vertical.png new file mode 100644 index 000000000..f95314d33 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/sprite.png new file mode 100644 index 000000000..9675b848c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Black/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/editor.png new file mode 100644 index 000000000..60167bbcd Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/gradient.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/gradient.png new file mode 100644 index 000000000..7c0307f62 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/gradient.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/slider-h.gif new file mode 100644 index 000000000..ed31920b6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/slider-v.gif new file mode 100644 index 000000000..3b7594107 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/sprite-vertical.png new file mode 100644 index 000000000..f49e8e48f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/sprite.png new file mode 100644 index 000000000..e9326969b Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Blue/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/editor.png new file mode 100644 index 000000000..95db4a4d5 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/gradient.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/gradient.png new file mode 100644 index 000000000..7c0307f62 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/gradient.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/slider-h.gif new file mode 100644 index 000000000..6149098a1 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/slider-v.gif new file mode 100644 index 000000000..1d7de84d3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/sprite-vertical.png new file mode 100644 index 000000000..21b9a9724 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/sprite.png new file mode 100644 index 000000000..3900818d5 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Office2010Silver/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/editor.png new file mode 100644 index 000000000..2f88b4a47 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/imagebrowser.png new file mode 100644 index 000000000..a6ada8c8c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/slider-h.gif new file mode 100644 index 000000000..771def2f5 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/slider-v.gif new file mode 100644 index 000000000..a889f8a8b Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/sprite-vertical.png new file mode 100644 index 000000000..78a4605cc Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/sprite.png new file mode 100644 index 000000000..2bc5203d1 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Outlook/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/editor.png new file mode 100644 index 000000000..bea6d33a0 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/slider-h.gif new file mode 100644 index 000000000..771def2f5 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/slider-v.gif new file mode 100644 index 000000000..a889f8a8b Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/sprite-vertical.png new file mode 100644 index 000000000..8141effe0 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/sprite.png new file mode 100644 index 000000000..d41c7873f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Simple/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/editor.png new file mode 100644 index 000000000..57a0ca917 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/loading.gif new file mode 100644 index 000000000..3c4d61eb1 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/slider-h.gif new file mode 100644 index 000000000..0cee639a1 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/slider-v.gif new file mode 100644 index 000000000..a91e56c85 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/sprite-vertical.png new file mode 100644 index 000000000..2bfcefd4a Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/sprite.png new file mode 100644 index 000000000..fbd6fc0cb Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sitefinity/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/editor.png new file mode 100644 index 000000000..3bdf9d607 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/imagebrowser.png new file mode 100644 index 000000000..73a42339b Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/loading.gif new file mode 100644 index 000000000..f5c95b787 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/slider-h.gif new file mode 100644 index 000000000..c4d97a422 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/slider-v.gif new file mode 100644 index 000000000..1bc20fa95 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/sprite-vertical.png new file mode 100644 index 000000000..21638be5c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/sprite.png new file mode 100644 index 000000000..95ab6317d Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Sunset/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/editor.png new file mode 100644 index 000000000..239e092e6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/imagebrowser.png new file mode 100644 index 000000000..e13cb4621 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/loading.gif new file mode 100644 index 000000000..23580e300 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/slider-h.gif new file mode 100644 index 000000000..218e74ea3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/slider-v.gif new file mode 100644 index 000000000..c34c7355c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/sprite-vertical.png new file mode 100644 index 000000000..c67746b01 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/sprite.png new file mode 100644 index 000000000..7accb77c0 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Telerik/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/active.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/active.png new file mode 100644 index 000000000..9ce830bb4 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/active.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/editor.png new file mode 100644 index 000000000..15074d74c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/gradient.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/gradient.png new file mode 100644 index 000000000..7c0307f62 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/gradient.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/group.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/group.png new file mode 100644 index 000000000..ac2ccdad2 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/group.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/hover.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/hover.png new file mode 100644 index 000000000..8c5746cf4 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/hover.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/imagebrowser.png new file mode 100644 index 000000000..02ba545e6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/loading.gif new file mode 100644 index 000000000..daec89e00 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/selected.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/selected.png new file mode 100644 index 000000000..650ad5f92 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/selected.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/slider-h.gif new file mode 100644 index 000000000..6149098a1 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/slider-v.gif new file mode 100644 index 000000000..1d7de84d3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/sprite-vertical.png new file mode 100644 index 000000000..cf2dbf111 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/sprite.png new file mode 100644 index 000000000..f3600f13f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/toolbar.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/toolbar.png new file mode 100644 index 000000000..b7cff0677 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/toolbar.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/widget.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/widget.png new file mode 100644 index 000000000..790a7b22f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Transparent/widget.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/editor.png new file mode 100644 index 000000000..c66c631ff Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/imagebrowser.png new file mode 100644 index 000000000..700fc0f2f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/loading.gif new file mode 100644 index 000000000..0bf1b7d04 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/slider-h.gif new file mode 100644 index 000000000..218e74ea3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/slider-v.gif new file mode 100644 index 000000000..c34c7355c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/sprite-vertical.png new file mode 100644 index 000000000..cf27f54a6 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/sprite.png new file mode 100644 index 000000000..6f6e673cb Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Vista/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/editor.png new file mode 100644 index 000000000..23d13e030 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/imagebrowser.png new file mode 100644 index 000000000..05056e6ac Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/loading.gif new file mode 100644 index 000000000..070505732 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/slider-h.gif new file mode 100644 index 000000000..a76cecee9 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/slider-v.gif new file mode 100644 index 000000000..bc1b332cb Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/sprite-vertical.png new file mode 100644 index 000000000..f1c9ad0ad Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/sprite.png new file mode 100644 index 000000000..6b25bf456 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-line.png new file mode 100644 index 000000000..0c03dc128 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Web20/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/editor.png new file mode 100644 index 000000000..fdc2239eb Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/imagebrowser.png new file mode 100644 index 000000000..02ab51d9b Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/loading.gif new file mode 100644 index 000000000..9ed7d0c53 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/slider-h.gif new file mode 100644 index 000000000..8ed51ddc2 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/slider-v.gif new file mode 100644 index 000000000..db82fe3f3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/sprite-vertical.png new file mode 100644 index 000000000..ee03f9a2f Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/sprite.png new file mode 100644 index 000000000..daa8432d0 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-line.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-line.png new file mode 100644 index 000000000..631eb5594 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-line.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-nodes-rtl.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-nodes-rtl.png new file mode 100644 index 000000000..594e4a208 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-nodes-rtl.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-nodes.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-nodes.png new file mode 100644 index 000000000..f49805663 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/WebBlue/treeview-nodes.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/editor.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/editor.png new file mode 100644 index 000000000..18f9f0dce Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/editor.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/imagebrowser.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/imagebrowser.png new file mode 100644 index 000000000..ca9a253be Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/imagebrowser.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/loading.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/loading.gif new file mode 100644 index 000000000..c5463250e Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/loading.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/slider-h.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/slider-h.gif new file mode 100644 index 000000000..673f19a5e Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/slider-h.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/slider-v.gif b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/slider-v.gif new file mode 100644 index 000000000..2b9cd7605 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/slider-v.gif differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/sprite-vertical.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/sprite-vertical.png new file mode 100644 index 000000000..696e97d76 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/sprite-vertical.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/sprite.png b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/sprite.png new file mode 100644 index 000000000..0a96b1364 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/Windows7/sprite.png differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.black.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.black.min.css new file mode 100644 index 000000000..a85d33538 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.black.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#080808;background-color:#4f4f4f;}.t-header,.t-grid-header{border-color:#080808;background:#050505 url('Black/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Black/sprite.png');}.t-editor .t-tool-icon{background-image:url('Black/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Black/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup,.t-input{color:#fff;}.t-other-month .t-link{color:#6f6f6f;}.t-group,.t-content,.t-editable-area{border-color:#080808;background-color:#4f4f4f;}.t-colorpicker .t-arrow-down{border-color:#080808;}.t-separator{border-color:#323232;background-color:#080808;}.t-alt{background-color:#494949;}.t-state-default{border-color:#080808;}.t-active-filter{background-color:#363636;}.t-state-hover,.t-state-hover .t-link{color:#9eda29;}.t-state-hover,.t-state-hover:hover{background-color:#2c2c2c;border-color:#080808;}.t-state-active{background-color:#4f4f4f;border-color:#080808;}.t-state-selected{background:#1c1c1c;border-color:#000;}.t-state-focused{background-color:#2c2c2c;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#080808;color:#fff;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#050505 url('Black/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#131313;color:#9eda29;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#787878;}.t-header .t-state-disabled{border-color:#4f4f4f;}.t-popup,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #222;-webkit-box-shadow:2px 2px 2px #222;box-shadow:2px 2px 2px #222;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#080808;background-color:#2c2c2c;}.t-grid td{border-color:#454545;}.t-grouping-row td{background:#4f4f4f url('Black/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#2e2e2e;border-color:#080808 #2e2e2e;}.t-group-footer td{background-color:#2e2e2e;border-color:#080808;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#2e2e2e;border-color:#080808;}.t-grouping-header .t-group-indicator{color:#333;border-color:#666;}.t-grouping-dropclue{background:url('Black/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#4f4f4f;}.t-drag-clue{color:#fff;}.t-treeview .t-drop-clue{background-image:url('Black/sprite.png');background-position:0 -358px;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#000;}.t-calendar th{background-color:#383838;border-color:#202020;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Black/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Black/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Black/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}div.t-window{-moz-box-shadow:0 0 5px 2px #222;-webkit-box-shadow:0 0 5px 2px #222;box-shadow:0 0 5px 2px #222;}.t-editor-button .t-state-hover{border-color:#565656 #111 #111 #565656;background-color:#232323;}.t-editor-button .t-state-active{border-color:#030303 #1f1f1f #1f1f1f #030303;background-color:#050505;}.t-slider .t-draghandle{background-image:url('Black/sprite.png');color:#080808;}.t-slider-track{border-color:#4a4a4a;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Black/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Black/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Black/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Black/slider-v.gif');}.t-state-disabled .t-slider-wrap .t-slider-items{color:#ccc;}.t-tooltip{background:#050505 0 -560px repeat-x url('Black/sprite.png');}.t-callout{background-image:url('Black/sprite.png');}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#262628;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Black/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Black/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#080808;}.t-dropzone-hovered,.t-upload-files{background-color:#2c2c2c;}.t-dropzone em{color:#848484;}.t-progress,.t-progress-status{background-image:url('Black/sprite.png');}.t-progress{background-position:0 -465px;border-color:#4a4a4a #474747;}.t-progress-status{background-position:0 -472px;border-color:#9eda29 transparent #456408;}.t-imagebrowser .t-content{background:#3d3d3d;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label,.t-tiles-arrange{color:#a1a1a1;}.t-toolbar .t-upload .t-button,.t-tiles-arrange a{color:#fff;}.t-tiles{border-color:#222;background:#4f4f4f;}.t-tile{border-color:#4f4f4f;background:0 100px repeat-x url('Black/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#080808;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#080808;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Black/imagebrowser.png');}.t-tile em,.t-tile .t-filesize,.t-tile-empty strong{color:#7d7d7d;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.common.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.common.min.css new file mode 100644 index 000000000..675d751ba --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.common.min.css @@ -0,0 +1 @@ +.t-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none;}.t-floatwrap:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden;}.t-floatwrap{display:inline-block;}.t-floatwrap{display:block;}.t-widget,.t-widget .t-input,.t-widget .text-box,.t-button{font-size:100%;}.t-widget,.t-input{border-width:1px;border-style:solid;}.t-link{cursor:pointer;outline:none;}.t-grid-header span.t-link{cursor:default;}html body .t-button{text-decoration:none;}.t-button{display:inline-block;margin:0;padding:2px 6px;border-width:1px;border-style:solid;font-family:inherit;font-size:100%;line-height:1.435;text-align:center;cursor:pointer;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}*+html .t-button{display:inline;zoom:1;}* html .t-button{display:inline;zoom:1;}*+html .t-button{overflow:visible;margin-right:4px;}* html .t-button{overflow:visible;margin-right:4px;}*+html a.t-button{line-height:1.6;padding-left:7px;padding-right:7px;}* html a.t-button{line-height:1.6;padding-left:7px;padding-right:7px;}.t-button-icontext{line-height:1.453;}button.t-button::-moz-focus-inner,input.t-button::-moz-focus-inner{padding:1px 0;border:0;}.t-button-expand{margin-left:0!important;margin-right:0!important;}a.t-button-expand{display:block;}button.t-button-expand{width:100%;}body .t-button-icon{padding-left:4px;padding-right:4px;}*+html a.t-button-icon{padding-left:5px;padding-right:5px;}* html a.t-button-icon{padding-left:5px;padding-right:5px;}.t-button-icontext{padding-right:8px;overflow:visible;}.t-button-icontext .t-icon{margin:0 3px 0 -3px;vertical-align:top;}*+html .t-button-icontext .t-icon{margin-right:4px;}* html .t-button-icontext .t-icon{margin-right:4px;}html body .t-button-bare{background:none!important;border-width:0;}.t-icon,.t-editor-button .t-tool-icon{background-color:transparent;background-repeat:no-repeat;}.t-header .t-link{text-decoration:none;}.t-state-disabled,.t-state-disabled .t-link{cursor:default;outline:none;}.t-state-error{border-style:ridge;}.t-icon,.t-sprite,.t-editor-button .t-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;font-size:0;line-height:0;text-indent:-3333px;text-align:center;vertical-align:middle;}* html .t-icon,* html .t-sprite,* html .t-editor-button .t-tool-icon{display:inline;zoom:1;}* html .t-icon,.t-sprite{text-indent:0;}*+html .t-icon,.t-sprite{text-indent:0;}.t-image{border:0;}.t-state-empty{font-style:italic;}.t-popup,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #aaa;-webkit-box-shadow:2px 2px 2px #aaa;box-shadow:2px 2px 2px #aaa;}.t-expand{background-position:0 -160px;}.t-collapse{background-position:0 -176px;}.t-rtl .t-expand{background-position:-64px -160px;}.t-plus,.t-plus-disabled{background-position:0 -256px;}.t-minus,.t-minus-disabled{background-position:-16px -256px;}.t-rtl .t-plus,.t-rtl .t-plus-disabled{background-position:0 -272px;}.t-rtl .t-minus,.t-rtl .t-minus-disabled{background-position:-16px -272px;}.t-arrow-up{background-position:-16px -160px;}.t-arrow-down{background-position:-16px -176px;}.t-state-disabled .t-arrow-up{background-position:-32px -160px;}.t-state-disabled .t-arrow-down{background-position:-32px -176px;}.t-state-hover .t-arrow-up{background-position:-48px -160px;}.t-state-hover .t-arrow-down{background-position:-48px -176px;}.t-numerictextbox .t-arrow-up{background-position:-16px -162px;}.t-numerictextbox .t-arrow-down{background-position:-16px -178px;}.t-arrow-up-small{background-position:0 -304px;}.t-arrow-down-small{background-position:-16px -304px;}.t-arrow-first{background-position:0 -192px;}.t-arrow-prev{background-position:-16px -192px;}.t-arrow-next{background-position:-32px -192px;}.t-arrow-last{background-position:-48px -192px;}.t-state-disabled .t-arrow-first{background-position:0 -208px;}.t-state-disabled .t-arrow-prev{background-position:-16px -208px;}.t-state-disabled .t-arrow-next{background-position:-32px -208px;}.t-state-disabled .t-arrow-last{background-position:-48px -208px;}.t-state-hover .t-arrow-first{background-position:0 -224px;}.t-state-hover .t-arrow-prev{background-position:-16px -224px;}.t-state-hover .t-arrow-next{background-position:-32px -224px;}.t-state-hover .t-arrow-last{background-position:-48px -224px;}.t-filter{background-position:0 -240px;}.t-clear-filter{background-position:-16px -240px;}.t-refresh{background-position:-32px -240px;}.t-icon-calendar{background-position:-48px -240px;}.t-icon-clock{background-position:-64px -336px;}.t-edit{background-position:0 -336px;}.t-delete{background-position:-16px -336px;}.t-insert,.t-update{background-position:-32px -336px;}.t-cancel{background-position:-48px -336px;}.t-group-delete{background-position:0 -288px;}.t-maximize{background-position:-16px -288px;}.t-restore{background-position:-32px -288px;}.t-close{background-position:-64px -288px;}.t-insert-top{background-position:0 -320px;}.t-insert-middle{background-position:-16px -320px;}.t-insert-bottom{background-position:-32px -320px;}.t-add{background-position:-48px -320px;}.t-denied{background-position:-64px -320px;}.t-autocomplete,.t-input{padding:2px 1px 3px;}div.t-window{display:inline-block;*display:inline;zoom:1;z-index:10001;position:absolute;border-width:0;border-width:5px\9;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 0 5px 2px #aaa;-webkit-box-shadow:0 0 5px 2px #aaa;box-shadow:0 0 5px 2px #aaa;}:root .t-window{border-width:0;}.t-window-titlebar{padding:.4em 0;font-size:1.2em;line-height:1.2em;white-space:nowrap;border-bottom-width:1px;border-bottom-style:solid;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;}.t-window-title{cursor:default;position:absolute;text-overflow:ellipsis;overflow:hidden;left:.5em;right:.5em;}.t-window-title .t-image{margin:0 5px 0 0;vertical-align:middle;}div.t-window-content{padding:.4em .5em;overflow:auto;position:relative;-moz-border-radius-bottomleft:4px;-moz-border-radius-bottomright:4px;-webkit-border-bottom-left-radius:4px;-webkit-border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;}.t-window-titlebar .t-window-actions{position:absolute;right:.5em;top:0;padding-top:.3em;white-space:nowrap;}.t-window-titlebar .t-link{width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;display:inline-block;*display:inline;zoom:1;opacity:.7;filter:alpha(opacity=70);}.t-window-titlebar .t-state-hover{border-width:1px;border-style:solid;padding:1px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;opacity:1;filter:alpha(opacity=100);}.t-window-actions .t-icon{margin:0;vertical-align:top;}.t-window .t-resize-handle{position:absolute;z-index:1;background-color:#fff;opacity:0;filter:alpha(opacity=0);zoom:1;line-height:6px;font-size:0;}.t-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize;}.t-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize;}.t-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize;}.t-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize;}.t-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize;}.t-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize;}.t-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize;}.t-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize;}.t-overlay{width:100%;height:100%;position:fixed;top:0;left:0;background-color:#000;filter:alpha(opacity=50);opacity:.5;z-index:10001;}.t-window .t-overlay{background-color:#fff;opacity:0;filter:alpha(opacity=0);position:absolute;width:100%;height:100%;}.t-window .t-widget{z-index:10002;}.t-tabstrip{margin:0;padding:0;zoom:1;}.t-tabstrip .t-tabstrip-items{padding:0 .3em;}.t-tabstrip-items .t-item,.t-panelbar .t-tabstrip-items .t-item{list-style-type:none;vertical-align:top;display:inline-block;*display:inline;zoom:1;border-width:1px 1px 0;border-style:solid;margin:.1em .3em 0 0;padding:0;position:relative;-moz-border-radius-topleft:5px;-moz-border-radius-topright:5px;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;border-top-left-radius:5px;border-top-right-radius:5px;}.t-tabstrip-items .t-state-active,.t-panelbar .t-tabstrip-items .t-state-active{padding-bottom:1px;margin-bottom:-1px;}.t-tabstrip-items .t-link,.t-panelbar .t-tabstrip-items .t-link{padding:.3em .9em;display:inline-block;*display:inline;zoom:1;border-bottom-width:0;outline:0;}.t-tabstrip-items .t-icon,.t-panelbar .t-tabstrip-items .t-icon{margin:-1px 4px 0 -3px;vertical-align:top;}.t-tabstrip-items .t-item .t-image,.t-tabstrip-items .t-item .t-sprite,.t-panelbar .t-tabstrip-items .t-item .t-image,.t-panelbar .t-tabstrip-items .t-item .t-sprite{vertical-align:middle;margin:-3px 3px 0 -6px;}* html .t-tabstrip-items .t-item .t-image,* html .t-tabstrip-items .t-item .t-sprite{vertical-align:top;margin-top:-1px;}*+html .t-tabstrip-items .t-item .t-image,*+html .t-tabstrip-items .t-item .t-sprite{vertical-align:top;margin-top:-1px;}.t-tabstrip .t-content,.t-panelbar .t-tabstrip .t-content{border-width:1px;border-style:solid;margin:0 .3em .3em;padding:.3em 1em;display:none;position:static;zoom:1;}.t-panelbar{zoom:1;}.t-panelbar .t-item{list-style-type:none;display:block;zoom:1;margin:0;top:0;border-width:0;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;}.t-panelbar .t-image,.t-panelbar .t-sprite{vertical-align:middle;margin-right:5px;margin-top:4px;float:left;}.t-panelbar .t-group .t-image,.t-panelbar .t-group .t-sprite{margin-top:1px;}.t-panelbar .t-link{line-height:2.05em;padding:0 1em;border-bottom:1px solid;display:block;position:relative;text-decoration:none;zoom:1;}ul.t-panelbar .t-state-hover{background-image:none;}.t-panelbar-expand,.t-panelbar-collapse{position:absolute;top:5px;right:2px;}.t-panelbar .t-group,.t-panelbar .t-content{position:relative;zoom:1;padding:0;margin:0;border-bottom-width:1px;border-bottom-style:solid;}.t-panelbar .t-group .t-link{line-height:1.7em;border-bottom:0;font-size:.95em;}.t-panelbar .t-group .t-arrow-up,.t-panelbar .t-group .t-arrow-down{top:2px;}.t-panelbar .t-group .t-group .t-link{padding-left:2em;}.t-panelbar .t-last .t-link{border-bottom:0;}.t-panelbar .t-group .t-group{border-bottom:0;}.t-tabstrip .t-panelbar .t-content{display:block;}.t-menu{cursor:default;}.t-menu,.t-menu .t-group{list-style:none;padding:0;margin:0;zoom:1;}.t-menu .t-group .t-link{padding-right:2em;}.t-menu .t-item{position:relative;display:inline-block;*display:inline;zoom:1;border-width:0 1px 0 0;border-style:solid;vertical-align:top;}.t-menu-vertical .t-item{display:block;border-width:0;}.t-menu .t-image,.t-menu .t-sprite{margin:0 4px 0 -4px;vertical-align:top;}.t-menu .t-link{text-decoration:none;padding:.25em .97em;display:block;}.t-menu .t-group{display:none;white-space:nowrap;border-style:solid;border-width:1px;overflow:visible;}.t-menu .t-group .t-item{display:block;border-width:0;}.t-menu .t-group .t-link{zoom:1;}.t-menu .t-arrow-down{margin-left:2px;margin-right:-10px;vertical-align:top;}.t-menu .t-arrow-next{position:absolute;right:0;top:3px;}.t-menu .t-animation-container,.t-menu .t-group{left:-1px;position:absolute;}.t-menu .t-animation-container .t-animation-container,.t-menu .t-group .t-group{left:100%;top:-1px;}.t-menu-vertical .t-animation-container,.t-menu-vertical .t-group{left:100%;top:-1px;}.t-menu .t-animation-container .t-group{left:auto;top:auto;}.t-grid{position:relative;zoom:1;}.t-grid table{width:100%;border-collapse:separate;empty-cells:show;border:0;}.t-grid-header .t-header{text-align:left;}.t-grid-header .t-header,.t-grid-header .t-last-header{padding:.3em .6em;border-width:0 1px 1px 0;border-style:solid;font-weight:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.t-grid-header .t-last-header{border-right-width:0;}.t-grid-header .t-header .t-link{line-height:18px;height:18px;display:block;margin:-.3em -.6em;padding:.3em 2.4em .3em .6em;border:0;}.t-grid-header .t-header .t-icon{position:static;}.t-grid .t-state-hover{cursor:pointer;}.t-grid td{padding:.25em .6em;border-style:solid;border-width:0;border-right-width:1px;vertical-align:middle;line-height:1.6em;overflow:hidden;text-overflow:ellipsis;}.t-grid .t-last{border-right-width:0;}.t-grid-header-wrap,.t-grid-footer-wrap{position:relative;overflow:hidden;width:100%;zoom:1;}div.t-grid-header,div.t-grid-footer{padding-right:17px;zoom:1;border-bottom-width:1px;border-bottom-style:solid;}div.t-grid-header .t-header,div.t-grid-header .t-last-header{border-bottom-width:0;}div.t-grid-header .t-last-header{border-right-width:1px;}.t-grid-content{position:relative;overflow:auto;overflow-x:auto;overflow-y:scroll;width:100%;zoom:1;}.t-grid-header table,.t-grid-content table,.t-grid-footer table{table-layout:fixed;}* html .t-grid-content table{width:auto;}*+html .t-grid-content table{width:auto;}.t-grid-toolbar{border-width:1px 0 0;border-style:solid;}.t-grid-pager{padding:.2em .6em;line-height:1.8em;overflow:auto;border-width:1px 0 0;border-style:solid;}.t-grid-pager:first-child,.t-grouping-header+.t-grid-pager,.t-grid-toolbar:first-child,.t-grouping-header+.t-grid-toolbar{border-width:0 0 1px;}* html .t-grid-pager input{vertical-align:middle;}*+html .t-grid-pager input{vertical-align:middle;}.t-grid .t-pager,.t-grid .t-status,.t-grid .t-status-text,.t-pager .t-numeric,.t-pager .t-page-i-of-n,.t-pager .t-link,.t-pager span,.t-pager input,.t-pager .t-page-size,.t-grouping-row p{display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.t-pager .t-page-size{line-height:1.2em;}.t-footer-template td{border-width:1px 1px 0 0;border-style:solid;}.t-group-footer td,.t-group-footer .t-last{border-width:1px 0;border-style:solid;}.t-grid-footer{border-style:solid;border-width:1px 0 0;}.t-grid-footer td{border-top-width:0;}.t-grid .t-status{float:left;margin:-.2em .6em -.2em -.6em;padding:.2em .6em;height:1.85em;border-right-width:1px;border-right-style:solid;}.t-grid .t-pager{float:left;cursor:default;}.t-grid .t-status-text{float:right;margin-right:.2em;}.t-pager .t-link{text-decoration:none;padding:1px;margin-top:.2em;border:0;line-height:16px;}.t-pager .t-state-active,.t-pager .t-state-hover{padding:0;border-width:1px;border-style:solid;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.t-pager span,.t-pager .t-link{vertical-align:top;}.t-pager .t-numeric,.t-pager .t-page-i-of-n{margin:0 7px;vertical-align:top;}.t-numeric .t-link,.t-numeric .t-state-active{margin-top:0;padding:0 5px;line-height:22px;vertical-align:top;}.t-numeric .t-state-active,.t-numeric .t-state-hover{padding:0 4px;line-height:20px;}.t-page-i-of-n input{width:2em;vertical-align:baseline;font-size:1em;}.t-grid-pager .t-status .t-icon{vertical-align:top;margin-top:3px;}.t-grid-filter{float:right;height:18px;padding:.3em .2em;position:relative;display:inline-block;*display:inline;zoom:1;margin:-1.8em -.6em -.3em 3px;}.t-grid-filter .t-icon{vertical-align:top;}.t-grid .t-animation-container{position:absolute;}.t-grid .t-filter-options{position:absolute;border-width:1px;border-style:solid;padding:3px;width:148px;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.t-filter-options .t-filter-help-text,.t-filter-options select,.t-filter-options input,.t-filter-options .t-button,.t-filter-options .t-datepicker{display:block;margin-bottom:4px;}.t-filter-options select{width:148px;}.t-filter-options input{width:142px;}.t-filter-options .t-datepicker{width:100%;}.t-filter-options .t-filter-button{margin-bottom:0;}.t-grouping-row .t-icon{margin:0 4px;}.t-grouping-row p{padding:0 .6em;margin-left:-.6em;}.t-grid td.t-group-cell,.t-grid td.t-hierarchy-cell{border-right:0;}.t-grid .t-group-col,.t-grid .t-hierarchy-col{width:30px;}.t-grouping-header{border-bottom-width:1px;border-bottom-style:solid;}.t-grouping-header,.t-grouping-dropclue{height:24px;line-height:24px;}.t-grouping-dropclue{position:absolute;width:6px;}.t-grouping-header .t-group-indicator{display:inline-block;*display:inline;zoom:1;border-width:1px;border-style:solid;line-height:1.5em;padding:.15em .15em .15em .4em;margin:0 3px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-grouping-header .t-link{text-decoration:none;display:inline-block;*display:inline;zoom:1;line-height:normal;padding:0;border-style:none;}.t-grouping-header .t-button{padding:0;border:0;background:transparent;line-height:1;}.t-grouping-header .t-link .t-icon{margin:0 0 0 -3px;}.t-grouping-header .t-button .t-icon{margin:0 0 0 3px;}.t-grouping-header a,.t-grouping-header .t-button{display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.t-dirty{width:0;height:0;vertical-align:top;position:absolute;padding:0;margin:-0.45em 0 0 -0.6em;overflow:hidden;border-width:3px;border-style:solid;border-color:#f00 transparent transparent #f00;}* html .t-dirty{border-color:#f00 pink pink #f00;filter:chroma(color=pink);}.t-grouping-header,.t-grid-toolbar{cursor:default;margin:0;padding:.25em;}.t-grid .t-edit-container{padding:0;border-right:0;}.t-edit-form{padding:0;margin:0;}.t-edit-form td{border-top:0;border-bottom:0;}.t-grid-edit-row .text-box,.t-grid-edit-row .t-numerictextbox,.t-grid-edit-row .t-datepicker{vertical-align:middle;width:5em;max-width:90%;min-width:90%;margin:-.4em -.3em -.15em;}.t-grid-edit-row .t-dropdown,.t-grid-edit-row .t-combobox{width:5em;max-width:90%;min-width:90%;line-height:normal;margin:-.1em -.3em -.45em;}* html .t-grid .text-box{width:90%;}.t-edit-form-container{position:relative;}.t-grid .field-validation-error{display:block;}.t-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb;}.t-grid-toolbar .t-button{vertical-align:middle;}.t-grid-actions{display:inline-block;}* html .t-grid-actions{display:inline;zoom:1;vertical-align:bottom;}*+html .t-grid-actions{display:inline;zoom:1;vertical-align:bottom;}.t-grid .t-button,.t-edit-form .t-button{margin:0 .2em;}.t-grid tbody .t-button{min-width:64px;}.t-grid tbody button.t-button,#ie8#skips{min-width:78px;}*+html .t-grid tbody a.t-button{min-width:62px;}html body .t-grid tbody .t-button-icon{min-width:0;width:auto;}.t-detail-row{position:relative;}.t-grid .t-detail-cell{overflow:visible;}.t-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa;}.t-grid .t-resize-handle{cursor:col-resize;position:absolute;height:25px;}.t-combobox,.t-dropdown,.t-selectbox{display:inline-block;*display:inline;zoom:1;position:relative;overflow:hidden;white-space:nowrap;width:150px;border-width:0;}*+html .t-combobox{overflow:visible;}* html .t-combobox{overflow:visible;}.t-dropdown-wrap,.t-picker-wrap{position:relative;display:block;cursor:default;}.t-picker-wrap{padding:0 25px 0 0;}.t-dropdown-wrap{padding-right:16px;border-width:1px;border-style:solid;}.t-combobox>.t-dropdown-wrap{padding-right:22px;}* html .t-combobox .t-dropdown-wrap{height:20px;}* html .t-picker-wrap{height:20px;padding-right:20px;}.t-picker-wrap .t-input,.t-combobox .t-input{vertical-align:top;width:100%;}.t-dropdown .t-input,.t-combobox .t-input,.t-selectbox .t-input{outline:0;border-width:0;}.t-dropdown .t-input,.t-selectbox .t-input{background:transparent;}*+html .t-combobox .t-input{margin:-1px 0;}* html .t-combobox .t-input{margin:-1px 0;}* html{position:absolute;top:0;}.t-picker-wrap .t-select,.t-dropdown-wrap .t-select{text-decoration:none;vertical-align:top;display:inline-block;*display:inline;zoom:1;cursor:default;position:absolute;top:0;right:0;}* html .t-picker-wrap .t-select,* html .t-dropdown-wrap .t-select{top:1px;right:1px;}.t-combobox .t-select{border-width:0 0 0 1px;border-style:solid;border-color:inherit;}.t-combobox .t-icon{margin-top:1px;}.t-dropdown .t-select,.t-selectbox .t-select{border:0;text-decoration:none;font:inherit;color:inherit;overflow:hidden;cursor:default;}.t-dropdown .t-input,.t-selectbox .t-input{overflow:hidden;display:block;text-overflow:ellipsis;padding:.2em 0 .2em 3px;}.t-picker-wrap .t-select,.t-dropdown-wrap .t-select{position:absolute;right:0;top:0;}.t-picker-wrap .t-icon{vertical-align:top;margin-top:3px;}.t-dropdown-wrap .t-icon{vertical-align:top;margin-top:2px;}.t-combobox .t-input{height:18px;line-height:18px;padding:1px 3px;border:0;margin:0;}.t-picker-wrap .t-select,.t-dropdown-wrap .t-select{height:20px;line-height:20px;}.t-popup{border-width:1px;border-style:solid;}.t-popup .t-item{padding:1px 5px 1px 3px;cursor:default;}.t-calendar{display:inline-block;*display:inline;zoom:1;width:203px;position:relative;overflow:hidden;}.t-calendar .t-link{text-decoration:none;}.t-calendar .t-action-link{text-decoration:underline;}.t-calendar .t-header{padding:.4em 0;text-align:center;position:relative;zoom:1;}.t-calendar .t-nav-prev,.t-calendar .t-nav-next{position:absolute;top:.3em;}.t-calendar .t-nav-prev{left:1%;}.t-calendar .t-nav-next{right:1%;}.t-calendar .t-content{text-align:right;display:table;width:100%;height:169px;table-layout:fixed;border-style:none;margin:0;padding:0;}*+html .t-calendar .t-content{display:block;}* html .t-calendar .t-content{display:block;}.t-calendar .t-animation-container .t-content{height:100%;}.t-calendar .t-nav-fast{display:inline-block;*display:inline;zoom:1;width:75%;}.t-calendar .t-nav-fast .t-icon{vertical-align:top;}.t-calendar th{border-bottom-style:solid;border-bottom-width:1px;font-weight:normal;cursor:default;}.t-calendar td{cursor:pointer;padding:1px;}.t-calendar .t-state-focus{border-width:1px;border-style:dotted;padding:0;}.t-calendar .t-content .t-link{display:block;overflow:hidden;position:relative;}.t-calendar th,.t-calendar .t-content .t-link{padding:.25em .45em .3em .1em;}.t-calendar .t-meta-view .t-link{padding:.25em 0 .3em;text-align:center;}.t-timepicker,.t-datetimepicker,.t-datepicker{border:0;white-space:nowrap;width:8.5em;}.t-datetimepicker{width:13em;}div.t-timepicker,div.t-datetimepicker,div.t-datepicker{background:none transparent;}.t-datetimepicker .t-picker-wrap{padding-right:44px;}* html .t-datetimepicker .t-picker-wrap{padding-right:40px;}.t-datetimepicker .t-icon-calendar{margin-right:3px;}.t-picker-wrap .t-icon{cursor:pointer;}.t-state-disabled .t-picker-wrap .t-icon{cursor:default;}.t-timepicker,.t-datepicker,.t-datetimepicker{display:inline-block;*display:inline;zoom:1;vertical-align:top;}.t-picker-wrap .t-input{margin:0;}.t-iframe-overlay{position:absolute;width:100%;border:0;top:0;left:0;filter:alpha(opacity=0);}.t-time-popup .t-item{padding:1px 3px;}div.t-treeview{border-width:0;background:none;white-space:nowrap;overflow:auto;}.t-treeview .t-item{padding:0 0 0 16px;margin:0;border-width:0;position:static;top:auto;display:block;}.t-treeview .t-group,.t-treeview .t-content{list-style-type:none;background:none;margin:0;padding:0;}.t-treeview .t-animation-container{height:auto!important;}.t-treeview .t-icon,.t-treeview .t-image,.t-treeview .t-sprite,.t-treeview .t-in{display:inline-block;*display:inline;zoom:1;vertical-align:top;}.t-treeview .t-plus,.t-treeview .t-minus,.t-treeview .t-plus-disabled,.t-treeview .t-minus-disabled{margin-left:-16px;margin-top:2px;float:left;*float:none;cursor:pointer;}.t-treeview .t-plus-disabled,.t-treeview .t-minus-disabled{cursor:default;}.t-treeview .t-sprite,.t-treeview .t-image{margin-right:3px;}.t-treeview .t-in{margin:1px 0;padding:2px 4px 2px 3px;text-decoration:none;line-height:16px;margin-left:2px;}.t-treeview span.t-in{cursor:default;}.t-treeview .t-state-hover,.t-treeview .t-state-selected{padding:1px 3px 1px 2px;border-width:1px;border-style:solid;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-treeview .t-drop-clue{width:80px;visibility:hidden;height:5px;position:absolute;margin-top:-3px;z-index:10000;background-color:transparent;background-repeat:no-repeat;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-repeat:no-repeat;margin-left:-16px;padding-left:16px;}.t-treeview-lines .t-top{background-position:-91px 0;}.t-treeview-lines .t-bot{background-position:-69px -22px;}.t-treeview-lines .t-mid{background-position:-47px -44px;}.t-treeview-lines .t-last .t-top{background-position:-25px -66px;}.t-treeview-lines .t-group .t-last .t-bot{background-position:-69px -22px;}.t-treeview-lines .t-item{background-repeat:no-repeat;}.t-treeview-lines .t-first{background-repeat:no-repeat;background-position:0 16px;}div.t-numerictextbox{display:inline-block;*display:inline;zoom:1;vertical-align:middle;white-space:nowrap;border:0;background:transparent;}.t-numerictextbox .t-input{margin:0;}.t-formatted-value{position:absolute;padding:3px 4px 2px 3px;}.t-numerictextbox .t-icon{margin-left:-16px;}.t-numerictextbox .t-link{border-style:none;display:inline-block;*display:inline;zoom:1;}.t-numerictextbox .t-arrow-up{vertical-align:top;margin-top:1px;height:10px;}.t-numerictextbox .t-arrow-down{vertical-align:bottom;margin-bottom:1px;height:11px;}.t-colorpicker{display:inline-block;*display:inline;zoom:1;vertical-align:middle;}.t-colorpicker .t-tool-icon{display:inline-block;*display:inline;zoom:1;vertical-align:top;padding:2px 3px;font-size:0;line-height:0;}.t-colorpicker .t-selected-color{display:block;height:16px;width:16px;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}.t-colorpicker .t-icon{vertical-align:middle;margin-top:2px;}.t-colorpicker-popup{line-height:0;width:136px;}.t-colorpicker-popup .t-reset{padding:.25em;margin:0;display:inline-block;*display:inline;zoom:1;}.t-colorpicker-popup .t-item{float:left;display:block;overflow:hidden;width:12px;height:12px;font-size:0;padding:0;margin:0 1px 1px 0;}.t-editor{border-width:1px;border-style:solid;border-collapse:separate;height:250px;font-size:100%;table-layout:fixed;vertical-align:top;width:100%;}.t-editor .t-editor-toolbar-wrap{border:0;padding:0;}.t-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;cursor:default;line-height:1.3em;}.t-editor-toolbar li{display:inline;vertical-align:middle;}.t-editor-toolbar .t-editor-dropdown,.t-editor-toolbar .t-editor-combobox,.t-editor-toolbar .t-editor-selectbox,.t-editor-toolbar .t-editor-colorpicker{margin-right:2px;}.t-editor-toolbar .t-separator{border-width:0 1px 0 0;border-style:solid;padding:0 0 0 1px;font-size:1.3em;margin:0 .15em;position:relative;top:1px;}.t-editor-toolbar .t-break{display:block;height:1px;line-height:0;font-size:0;}.t-editor-toolbar .t-dropdown,.t-editor-toolbar .t-combobox,.t-editor-toolbar .t-selectbox,.t-editor-toolbar .t-colorpicker{vertical-align:middle;}.t-editor-button .t-tool-icon{vertical-align:middle;width:22px;height:22px;margin:1px;}.t-editor-colorpicker .t-tool-icon{padding:17px 3px 2px;}.t-editor-colorpicker .t-icon{border-style:solid;border-color:#ccc;border-width:0 0 0 1px;}.t-editor-colorpicker .t-selected-color{height:3px;}.t-editor-combobox .t-input{height:20px;line-height:20px;}.t-editor-combobox .t-select{height:22px;line-height:22px;}.t-bold{background-position:-22px 0;}.t-italic{background-position:-44px 0;}.t-underline{background-position:-66px 0;}.t-strikethrough{background-position:-88px 0;}.t-justifyLeft{background-position:-110px 0;}.t-justifyCenter{background-position:-132px 0;}.t-justifyRight{background-position:-154px 0;}.t-justifyFull{background-position:-176px 0;}.t-insertOrderedList{background-position:-198px 0;}.t-insertUnorderedList{background-position:-220px 0;}.t-createLink{background-position:-242px 0;}.t-unlink{background-position:-264px 0;}.t-insertImage{background-position:-286px 0;}.t-foreColor .t-tool-icon{background-position:-308px -2px;}.t-backColor .t-tool-icon{background-position:-330px -2px;}.t-indent{background-position:-352px 0;}.t-outdent{background-position:-374px 0;}.t-fontName{width:110px;}.t-fontSize{width:124px;}.t-formatBlock{width:147px;}.t-editor-button .t-state-hover,.t-editor-button .t-state-active{vertical-align:middle;border-width:1px;border-style:solid;margin:0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.t-editor-button .t-state-disabled{opacity:.3;filter:alpha(opacity=30);}.t-editor .t-editable-area{outline:none;height:100%;width:100%;border-width:1px;border-style:solid;}.t-editor .t-content{height:100%;width:100%;display:block;padding:0;margin:0;border:0;}.t-editor iframe.t-content{display:inline;vertical-align:top;}.t-editor .t-raw-content{border:0;margin:0;padding:0;font-size:inherit;font-family:Consolas,"Courier New",monospace;}.t-editor-dialog{padding:1em;}.t-editor-dialog ol{margin:0;padding:0;list-style:none;}.t-form-text-row,.t-form-checkbox-row{padding-bottom:1em;}.t-form-text-row label{display:inline-block;*display:inline;zoom:1;width:7em;text-align:right;padding-right:.5em;}.t-form-checkbox-row input{margin-left:7em;font-size:inherit;padding:0;}.t-form-checkbox-row label{padding-left:.3em;}.t-form-checkbox-row input,.t-form-checkbox-row label,.t-form-text-row label .t-form-text-row input,.t-form-text-row select{vertical-align:middle;}.t-form-text-row input,.t-form-text-row select{width:20em;}.t-editor-dialog .t-button-wrapper{padding-top:.5em;text-align:right;}.t-editor-dialog .t-button{display:inline-block;*display:inline;zoom:1;}.t-drag-clue{border-width:1px;border-style:solid;font-size:.9em;padding:.05em .15em;position:absolute;z-index:10003;white-space:nowrap;cursor:default;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-drag-status{margin-right:4px;vertical-align:top;margin-top:-1px;}.t-reorder-cue{position:absolute;width:1px;overflow:visible;}.t-reorder-cue .t-icon{width:8px;height:4px;position:absolute;left:-4px;}.t-reorder-cue .t-arrow-down{top:-4px;background-position:-20px -182px;}.t-reorder-cue .t-arrow-up{bottom:-4px;background-position:-20px -166px;}div.t-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}.t-slider-vertical{width:22px;height:200px;}.t-slider-horizontal{display:inline-block;height:22px;width:200px;}*+html .t-slider-horizontal{display:inline;zoom:1;}* html .t-slider-horizontal{display:inline;zoom:1;}.t-slider-wrap{width:100%;height:100%;}.t-slider .t-button,.t-grid .t-slider .t-button{position:absolute;top:0;min-width:0;width:20px;height:20px;margin:0;padding:0;outline:none;}.t-slider .t-button .t-icon{vertical-align:top;margin-top:2px;}.t-state-disabled .t-slider-wrap{opacity:.6;filter:alpha(opacity=60);}.t-state-disabled .t-slider-wrap .t-slider-items{color:#333;}.t-slider .t-button-decrease{left:0;}.t-slider-vertical .t-button-decrease,.t-grid .t-slider-vertical .t-button-decrease{top:auto;bottom:0;}.t-slider .t-button-increase{right:0;}.t-slider .t-icon{cursor:pointer;}.t-state-disabled .t-button,.t-state-disabled .t-draghandle,.t-state-disabled .t-slider-wrap .t-icon,.t-state-disabled .t-slider .t-icon{cursor:default;}*+html .t-slider .t-icon{margin-top:2px;}* html .t-slider .t-icon{margin-top:2px;}.t-slider-track,.t-slider-selection{position:absolute;margin:0;padding:0;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{height:6px;top:50%;left:0;margin-top:-3px;background-repeat:repeat-x;}.t-slider-horizontal .t-slider-track{border-width:0 1px;border-style:solid;background-position:0 -464px;}.t-slider-horizontal .t-slider-selection{background-position:0 -470px;}.t-slider-horizontal .t-slider-buttons .t-slider-track{left:27px;}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{width:6px;left:50%;bottom:0;margin-left:-3px;background-repeat:repeat-y;}.t-slider-vertical .t-slider-track{border-width:1px 0;border-style:solid;background-position:0 0;}.t-slider-vertical .t-slider-selection{background-position:-6px 0;}.t-slider-vertical .t-slider-buttons .t-slider-track{bottom:27px;}.t-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;text-decoration:none;text-align:center;overflow:hidden;cursor:pointer;}.t-slider-horizontal .t-draghandle{top:-7px;width:11px;height:20px;}.t-slider-vertical .t-draghandle{left:-7px;width:20px;height:11px;}.t-slider-horizontal .t-draghandle,.t-state-disabled.t-slider-horizontal a.t-draghandle,.t-state-disabled .t-slider-horizontal a.t-draghandle{background-position:0 -368px;}.t-slider-horizontal .t-draghandle:hover,.t-slider-horizontal .t-draghandle:focus{background-position:0 -400px;}.t-slider-horizontal a.t-draghandle.t-state-active{background-position:0 -432px;}.t-slider-vertical .t-draghandle,.t-state-disabled.t-slider-vertical a.t-draghandle,.t-state-disabled .t-slider-vertical a.t-draghandle{background-position:-32px -368px;}.t-slider-vertical .t-draghandle:hover,.t-slider-vertical .t-draghandle:focus{background-position:-32px -400px;}.t-slider-vertical a.t-draghandle.t-state-active{background-position:-32px -432px;}.t-slider-items{display:inline-block;}.t-slider-items{display:block;}.t-slider-items:after{content:"";display:block;clear:both;height:0;visibility:hidden;}.t-slider-buttons .t-slider-items{margin-left:27px;}.t-slider-horizontal .t-slider-items{height:100%;}.t-slider-vertical .t-slider-items{padding-top:1px;}.t-slider-vertical .t-slider-buttons .t-slider-items{padding-top:0;}.t-slider-vertical .t-slider-buttons .t-slider-items{margin:0;padding-top:28px;}.t-slider .t-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center;cursor:default;}.t-slider-horizontal .t-tick{float:left;text-align:center;height:100%;}*+html .t-slider-vertical .t-tick{float:left;clear:left;width:100%;}* html .t-slider-vertical .t-tick{float:left;clear:left;width:100%;}.t-slider-horizontal .t-tick{background-position:center -94px;}.t-slider-horizontal .t-slider-topleft .t-tick{background-position:center -124px;}.t-slider-horizontal .t-slider-bottomright .t-tick{background-position:center -154px;}.t-slider-horizontal .t-tick-large{background-position:center -4px;}.t-slider-horizontal .t-slider-topleft .t-tick-large{background-position:center -34px;}.t-slider-horizontal .t-slider-bottomright .t-tick-large{background-position:center -64px;}.t-slider-vertical .t-tick{background-position:-94px center;}.t-slider-vertical .t-slider-topleft .t-tick{background-position:-124px center;}.t-slider-vertical .t-slider-bottomright .t-tick{background-position:-154px center;}.t-slider-vertical .t-tick-large{background-position:-4px center;}.t-slider-vertical .t-slider-topleft .t-tick-large{background-position:center -34px;}.t-slider-vertical .t-slider-bottomright .t-tick-large{background-position:-64px center;}.t-slider-horizontal .t-first{background-position:0 -4px;}.t-slider-horizontal .t-last{background-position:100% -4px;}.t-slider-vertical .t-first{background-position:-4px 100%;}.t-slider-vertical .t-last{background-position:-4px 0;}.t-slider-vertical .t-tick{text-align:right;}.t-slider-vertical .t-slider-topleft .t-tick{text-align:left;}.t-slider .t-label{position:absolute;white-space:nowrap;}.t-slider-horizontal .t-label{left:0;width:100%;}.t-slider-horizontal .t-first .t-label{left:-50%;}.t-slider-horizontal .t-last .t-label{left:auto;right:-50%;}.t-slider-horizontal .t-label{bottom:-1.2em;}.t-slider-horizontal .t-slider-topleft .t-label{top:-1.2em;}.t-slider-vertical .t-label{left:120%;display:block;text-align:left;}.t-slider-vertical .t-last .t-label{top:-0.5em;}.t-slider-vertical .t-first .t-label{bottom:-0.5em;}.t-slider-vertical .t-slider-topleft .t-label{left:auto;right:120%;}.t-tooltip{position:absolute;border-width:1px;border-style:solid;padding:4px 5px;background-repeat:repeat-x;z-index:10002;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;min-width:10px;text-align:center;}.t-callout{position:absolute;}.t-callout-n,.t-callout-s{width:9px;height:6px;}.t-callout-w,.t-callout-e{width:6px;height:9px;}.t-callout-n{top:-6px;left:50%;margin-left:-4px;background-position:-64px -368px;}.t-callout-w{left:-6px;top:50%;margin-top:-4px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-4px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-4px;background-position:-64px -416px;}.t-splitter{position:relative;height:300px;}.t-splitter .t-pane{overflow:hidden;}.t-splitter .t-scrollable{overflow:auto;}.t-splitter .t-pane-loading{position:absolute;left:50%;top:50%;margin:-8px 0 0 -8px;}.t-ghost-splitbar,.t-splitbar{position:absolute;border-style:solid;font-size:0;}.t-splitter .t-ghost-splitbar-horizontal,.t-splitter .t-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y;}.t-ghost-splitbar-vertical,.t-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x;}.t-splitbar-draggable-horizontal{cursor:w-resize;}.t-splitbar-draggable-vertical{cursor:n-resize;}.t-splitbar .t-resize-handle{display:none;}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-splitbar-horizontal .t-icon{width:5px;height:21px;position:absolute;top:50%;margin-top:-10px;}.t-collapse-prev,.t-collapse-next,.t-expand-prev,.t-expand-next{cursor:pointer;}.t-splitbar-horizontal .t-collapse-prev{margin-top:-31px;}.t-splitbar-horizontal .t-collapse-next{margin-top:11px;}.t-splitbar-vertical .t-icon{height:5px;width:21px;position:absolute;left:50%;margin-left:-10px;}.t-splitbar-vertical .t-collapse-prev{margin-left:-31px;}.t-splitbar-vertical .t-collapse-next{margin-left:11px;}.t-splitbar-draggable-vertical .t-resize-handle,.t-splitbar-draggable-horizontal .t-resize-handle{display:inline-block;*display:inline;zoom:1;}.t-splitbar-horizontal{background-position:5px 0;}.t-splitbar-horizontal-hover{background-position:-12px 0;}.t-splitbar-horizontal-active,.t-ghost-splitbar-horizontal{background-position:-17px 0;}.t-restricted-size-horizontal{background-position:-22px 0;}.t-splitbar-horizontal .t-resize-handle{background-position:-10px -496px;}.t-splitbar-horizontal-hover .t-resize-handle{background-position:-10px -517px;}.t-splitbar-horizontal .t-collapse-prev,.t-splitbar-horizontal .t-expand-next{background-position:0 -496px;}.t-splitbar-horizontal-hover .t-collapse-prev,.t-splitbar-horizontal-hover .t-expand-next{background-position:0 -517px;}.t-splitbar-horizontal .t-collapse-next,.t-splitbar-horizontal .t-expand-prev{background-position:-5px -496px;}.t-splitbar-horizontal-hover .t-collapse-next,.t-splitbar-horizontal-hover .t-expand-prev{background-position:-5px -517px;}.t-splitbar-vertical{background-position:0 5px;}.t-splitbar-vertical-hover{background-position:0 -476px;}.t-splitbar-vertical-active,.t-ghost-splitbar-vertical{background-position:0 -481px;}.t-restricted-size-vertical{background-position:0 -486px;}.t-splitbar-vertical .t-resize-handle{background-position:-16px -496px;}.t-splitbar-vertical-hover .t-resize-handle{background-position:-16px -501px;}.t-splitbar-vertical .t-collapse-prev,.t-splitbar-vertical .t-expand-next{background-position:-16px -506px;}.t-splitbar-vertical-hover .t-collapse-prev,.t-splitbar-vertical-hover .t-expand-next{background-position:-16px -517px;}.t-splitbar-vertical .t-collapse-next,.t-splitbar-vertical .t-expand-prev{background-position:-16px -511px;}.t-splitbar-vertical-hover .t-collapse-next,.t-splitbar-vertical-hover .t-expand-prev{background-position:-16px -522px;}html .t-upload{position:relative;border-width:0;background:none;}.t-dropzone,.t-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}.t-dropzone em,.t-upload-button{vertical-align:middle;}*+html .t-dropzone em,*+html .t-upload-button{vertical-align:baseline;}* html .t-dropzone em,* html .t-upload-button{vertical-align:baseline;}.t-dropzone{border-style:solid;border-width:0;padding:4px;background-color:transparent;}.t-dropzone em{margin-left:.6em;visibility:hidden;}.t-dropzone-active{border-width:1px;padding:3px;}.t-dropzone-active em{visibility:visible;}.t-upload-button{width:86px;position:relative;direction:ltr;overflow:hidden!important;}.t-upload-button input{font:200px monospace!important;opacity:0;filter:alpha(opacity=0);position:absolute;padding:0;margin:0;cursor:pointer;right:0;top:0;z-index:1;}.t-state-disabled .t-upload-button input{cursor:default;}.t-upload-files{border-style:solid;border-width:1px;margin:.2em 0 0;padding:.3em .7em .5em;line-height:1.9em;}.t-upload-files .t-button{position:relative;top:1px;margin-left:8px;padding-top:0;padding-bottom:0;font-size:84%;}*+html .t-upload-files .t-button{line-height:1;}* html .t-upload-files .t-button{line-height:1;}.t-upload .t-delete,.t-upload .t-cancel,.t-upload .t-retry{height:8px;vertical-align:baseline;}.t-upload .t-delete,.t-upload .t-cancel{width:7px;background-position:-5px -292px;}.t-retry{background-position:-66px -228px;width:11px;}.t-success{background-position:-64px -240px;}.t-fail{background-position:-64px -256px;}.t-filename{position:relative;display:inline-block;min-width:120px;vertical-align:middle;}.t-progress,.t-progress-status{position:absolute;bottom:-2px;left:0;width:118px;height:2px;border-style:solid;border-width:1px;background-repeat:repeat-x;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;}.t-progress-status{left:-1px;bottom:-1px;width:50%;}.t-upload-selected{min-width:86px;box-sizing:content-box;-moz-box-sizing:content-box;-ms-box-sizing:content-box;margin:3px 0 0;}*+html .t-upload-selected{min-width:100px;}.t-toolbar-wrap .t-dropzone em,.t-toolbar-wrap .t-upload-files{display:none;}.t-toolbar-wrap .t-dropzone{border:0;padding:0;background-color:transparent;}.t-search-wrap{float:right;width:auto;position:relative;padding:0;}.t-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic;}.t-search-wrap input.t-input{width:158px;padding-left:0;padding-right:0;}.t-search{background-position:-64px -176px;}.t-search-wrap .t-search{position:absolute;top:1px;right:2px;}.t-breadcrumbs{float:left;position:relative;width:560px;}.t-breadcrumbs-wrap{position:absolute;z-index:1;top:0;left:0;padding-left:5px;line-height:18px;}html input.t-breadcrumbs-input{width:100%;padding-left:2px;font-family:inherit;}.t-breadcrumbs .t-link,.t-breadcrumbs-wrap .t-icon{text-decoration:none;vertical-align:middle;margin-top:0;}.t-breadcrumbs .t-link:hover{text-decoration:underline;}.t-imagebrowser .t-breadcrumbs .t-first{text-decoration:none;cursor:default;}.t-imagebrowser .t-toolbar{clear:both;border-style:solid;border-width:1px;margin:8px 0 0;padding:2px 0 3px;background-repeat:repeat-x;line-height:23px;white-space:nowrap;}.t-imagebrowser .t-upload{float:left;}.t-imagebrowser .t-upload-button{width:auto;vertical-align:top;}.t-imagebrowser .t-upload .t-icon{vertical-align:bottom;}*+html .t-imagebrowser .t-upload-button,*+html .t-imagebrowser .t-upload .t-icon{vertical-align:baseline;position:relative;top:1px;}* html .t-imagebrowser .t-upload-button,* html .t-imagebrowser .t-upload .t-icon{vertical-align:baseline;position:relative;top:1px;}*+html .t-imagebrowser .t-upload .t-icon{top:2px;}* html .t-imagebrowser .t-upload .t-icon{top:2px;}*+html .t-imagebrowser .t-toolbar .t-button-icon{vertical-align:middle;}* html .t-imagebrowser .t-toolbar .t-button-icon{vertical-align:middle;}.t-addfolder{background-position:-64px -192px;}.t-goup{background-position:-64px -208px;}.t-toolbar .t-state-disabled{opacity:.5;filter:alpha(opacity=50);}.t-toolbar-wrap{float:left;}.t-tiles-arrange{float:right;}* html .t-tiles-arrange{margin:3px 0 0;}.t-tiles-arrange .t-arrow-down{margin:0 2px 0 3px;}.t-tiles-arrange a{text-decoration:none;}.t-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2;}.t-tile{width:223px;height:88px;overflow:hidden;float:left;border-width:1px;border-style:solid;margin:1px;padding:0 0 4px;cursor:pointer;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}.t-imagebrowser .t-thumb{float:left;display:inline;width:86px;height:86px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;}.t-imagebrowser .t-image{margin:2px 0 0 2px;-moz-box-shadow:1px 1px 3px #aaa;-webkit-box-shadow:1px 1px 3px #aaa;box-shadow:1px 1px 3px #aaa;}.t-imagebrowser .t-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat;}.t-goback{background-position:-64px -224px;}.t-imagebrowser .t-loading{margin:35px 0 0 33px;}.t-tile strong,.t-tile input{margin:10px 0 4px;font-weight:normal;}.t-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis;}.t-tile input{width:100px;}.t-tile em,.t-tile .t-filesize{clear:left;font-weight:normal;font-style:normal;}.t-tile strong,.t-tile input,.t-tile em,.t-tile .t-filesize{display:block;}.t-imagebrowser .t-form-text-row input{width:628px;}.t-tile-empty{margin:160px 0 0;}.t-tile-empty .t-dialog-upload{font-weight:bold;font-size:120%;}.t-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal;}.t-tile-empty,.t-tile-empty .t-button-wrapper{text-align:center;}.t-touch-scrollbar{position:absolute;display:none;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;}@media only screen and(-webkit-min-device-pixel-ratio:2){.t-touch-scrollbar{height:12px;width:12px;-webkit-border-radius:7px;}}div.t-chart{border:none;background-color:transparent;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.default.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.default.min.css new file mode 100644 index 000000000..e41b47c25 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.default.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#989898;background-color:#fff;}.t-header,.t-grid-header{border-color:#989898;background:#adadad url('Default/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Default/sprite.png');}.t-editor .t-tool-icon{background-image:url('Default/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Default/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#989898;}.t-separator{border-color:#d8d8d8;background-color:#999;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#828282;}.t-active-filter{background-color:#cdcdcd;}.t-state-hover,.t-state-hover:hover{background-color:#e9e9e9;border-color:#828282;}.t-header .t-state-hover{background-color:#dcdada;}.t-state-active,.t-header .t-state-active{background-color:#fff;border-color:#828282;}.t-state-selected{background-color:#ddd;}.t-state-focused{background-color:#c2c2c2;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#828282;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#adadad url('Default/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#c9c9c9;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#888;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aaa;background-color:#eee;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Default/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#eee;border-color:#828282 #eee #fff;}.t-group-footer td{background-color:#eee;border-color:#828282;}.t-grid-footer{background-color:#eee;border-color:#080808;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Default/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Default/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#838383;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#c5c5c5;}.t-other-month .t-link{color:#898989;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Default/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Default/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Default/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#e2e2e2 #878787 #878787 #e2e2e2;background-color:#c6c6c6;}.t-editor-button .t-state-active{border-color:#767676 #d0d0d0 #d0d0d0 #767676;background-color:#9e9e9e;}.t-slider .t-draghandle{background-image:url('Default/sprite.png');color:#333;}.t-slider-track{border-color:#a5a5a5;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Default/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Default/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Default/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Default/slider-v.gif');}.t-tooltip{background:#adadad 0 -624px repeat-x url('Default/sprite.png');}.t-callout{background-image:url('Default/sprite.png');}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Default/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Default/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#828282;}.t-dropzone-hovered,.t-upload-files{background-color:#e2e2e2;}.t-dropzone em{color:#828282;}.t-progress,.t-progress-status{background-image:url('Default/sprite.png');}.t-progress{background-position:0 -465px;border-color:#a1a1a1 #b3b3b3 #c8c8c8;}.t-progress-status{background-position:0 -472px;border-color:#989898 transparent #6b6b6b;}.t-imagebrowser .t-content{background:#f1f1f1;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#9f9f9f;}.t-tiles{border-color:#e2e3ea;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Default/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#989898;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#989898;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Default/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#666;}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.forest.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.forest.min.css new file mode 100644 index 000000000..a2443ee7d --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.forest.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#486b23;background-color:#d1deb6;}.t-header,.t-grid-header{border-color:#486b23;color:#fff;background:#4c7822 url('Forest/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Forest/sprite.png');}.t-editor .t-tool-icon{background-image:url('Forest/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Forest/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#2b2c20;}.t-header,.t-header .t-link{color:#fff;}.t-content,.t-content .t-link,.t-group .t-link{color:#2b2c20;}.t-group,.t-content,.t-editable-area{border-color:#486b23;background-color:#d1deb6;}.t-colorpicker .t-arrow-down{border-color:#486b23;}.t-separator{border-color:#719652;background-color:#4c6d3b;}.t-alt{background-color:#c7d6a7;}.t-state-default{border-color:#486b23;}.t-active-filter{background-color:#60963e;}.t-state-hover,.t-state-hover .t-link,.t-state-selected,.t-state-selected .t-link{color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#6c9f4f;border-color:#486b23;}.t-state-selected,.t-state-selected .t-state-hover{background-color:#3a5621;border-color:#486b23;}.t-state-focused{background-color:#a7bc75;}.t-state-active{background-color:#d1deb6;border-color:#486b23;}.t-tabstrip .t-state-active .t-link{color:#2b2c20;}.t-group .t-state-hover,.t-group .t-state-selected{color:#fff;background-image:none;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#486b23;color:#fff;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#486c24 url('Forest/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#4d7924;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#2a4b17;border-color:#486b23;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#486b23;background-color:#a7bc75;}.t-editor-button .t-state-active{background-color:#527c30;}.t-grid td{border-color:#bdcb9e;}.t-grouping-row td{background:#d1deb6 url('Forest/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#b1c67f;border-color:#3c6716 #b1c67f #b1c67f;}.t-group-footer td{background-color:#b1c67f;border-color:#3c6716;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#b1c67f;border-color:#3c6716;}.t-grouping-header .t-group-indicator{color:#333;border-color:#486B23;}.t-grouping-dropclue{background:url('Forest/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#d1deb6;}.t-treeview .t-drop-clue{background-image:url('Forest/sprite.png');background-position:0 -358px;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#486b23;}.t-calendar th{background-color:#a6bb74;border-color:#9cb16a;}.t-other-month .t-link{color:#88914b;}.t-state-hover .t-link{color:#fff;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Forest/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Forest/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Forest/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-window{-moz-box-shadow:0 0 5px 2px #6f855a;-webkit-box-shadow:0 0 5px 2px #6f855a;box-shadow:0 0 5px 2px #6f855a;}.t-editor-button .t-state-hover{border-color:#88ab72 #416926 #416926 #88ab72;background-color:#548231;}.t-editor-button .t-state-active{border-color:#2a4b17 #7f9c6d #7f9c6d #2a4b17;background-color:#446e29;}.t-slider .t-draghandle{background-image:url('Forest/sprite.png');color:#486b23;}.t-slider-track{border-color:#658843;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Forest/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Forest/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Forest/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Forest/slider-v.gif');}.t-tooltip{background:#486c24 0 -625px repeat-x url('Forest/sprite.png');color:#fff;}.t-callout{background-image:url('Forest/sprite.png');}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#527f2c;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Forest/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Forest/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#8aaf64;}.t-dropzone-hovered,.t-upload-files{background-color:#d1deb6;}.t-dropzone em{color:#6b715f;}.t-progress,.t-progress-status{background-image:url('Forest/sprite.png');}.t-progress{background-position:0 -466px;border-color:#52752e #6c8c49 #83a564;}.t-progress-status{background-position:0 -472px;border-color:#4f722b transparent #193809;}.t-imagebrowser .t-content{background:#d3e0c2;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#6b715f;}.t-toolbar .t-upload .t-button{color:#2b2c20;}.t-tiles-arrange{color:#6b715f;}.t-tiles{border-color:#8aaf64;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Forest/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#76ad3b;background-position:0 0;color:#2b2c20;}.t-tiles li.t-state-selected{border-color:#8aaf64;background-position:0 -100px;color:#2b2c20;}.t-tile .t-folder{background-image:url('Forest/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#6b715f;}.t-tile-empty strong{color:#8d947f;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.hay.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.hay.min.css new file mode 100644 index 000000000..84eb49c70 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.hay.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#7d7c6f;background-color:#ececd8;}.t-header,.t-grid-header{border-color:#378909;background:#4eb106 url('Hay/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Hay/sprite.png');}.t-editor .t-tool-icon{background-image:url('Hay/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Hay/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link{color:#fff;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#bbb99d;background-color:#ececd8;}.t-colorpicker .t-arrow-down{border-color:#378909;}.t-separator{border-color:#73c335;background-color:#378909;}.t-alt{background-color:#fff;}.t-state-default{border-color:#378909;}.t-active-filter{background-color:#51b200;}.t-state-hover,.t-state-hover .t-link,.t-group .t-state-hover{color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#6cc41a;border-color:#378909;}.t-state-active{background-color:#ececd8;border-color:#378909;}.t-state-active,.t-state-active .t-link{color:#333;}.t-state-active .t-header,.t-state-active .t-state-hover{color:#fff;}.t-state-selected{background:#4e8e13;}.t-state-focused{background-color:#d2d0b6;}.t-state-selected,.t-state-selected .t-header,.t-state-selected .t-state-hover,.t-state-selected .t-link{color:#fff;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#898772;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#e0e2cb url('Hay/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#bbbe94;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{color:#d2d2d2;border-color:#5ca136;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#bbb99d;background-color:#dee0c8;}.t-panelbar .t-link{border-color:#333;}.t-grid td{border-color:#ddd;}.t-grid tr.t-state-hover td{border-color:#6CC41A;}.t-grid tr.t-state-selected td{border-color:#378909;}.t-grouping-row td{background:#fff url('Hay/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#dee0c8;border-color:#bbb99d #dee0c8 #fff;}.t-group-footer td{background-color:#dee0c8;border-color:#bbb99d;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#dee0c8;border-color:#bbb99d;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('Hay/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Hay/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#2C8406;}.t-calendar th{border-color:#cac8ab;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Hay/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Hay/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Hay/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#73cd26 #38910a #38910a #73cd26;background-color:#63c215;}.t-editor-button .t-state-active{border-color:#257802 #60ba1d #60ba1d #257802;background-color:#47a605;}.t-slider .t-draghandle{background-image:url('Hay/sprite.png');color:#7d7c6f;}.t-slider-track{border-color:#b6b499;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Hay/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Hay/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Hay/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Hay/slider-v.gif');}.t-tooltip{border-color:#cccab0;background:#e0e2cb 0 -560px repeat-x url('Hay/sprite.png');}.t-callout{background-image:url('Hay/sprite.png');}.t-splitter{border-color:#cac8ab;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#ececd8;border-color:#cac8ab;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Hay/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Hay/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#bbb99d;}.t-dropzone-hovered,.t-upload-files{background-color:#f5f5e6;}.t-dropzone em{color:#787878;}.t-progress,.t-progress-status{background-image:url('Hay/sprite.png');}.t-progress{background-position:0 -467px;border-color:#9a9881 #b6b49b #cdccb7;}.t-progress-status{background-position:0 -472px;border-color:#74cd23 transparent #3a8e09;}.t-imagebrowser .t-content{background:#f5f5e6;}.t-search-wrap label,.t-tiles-arrange{color:#787878;}.t-breadcrumbs .t-link{color:#333;}.t-tiles{border-color:#bbb99d;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Hay/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#46a700;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#bbb99d;background-position:0 -100px;color:#000;}.t-tile .t-folder{background-image:url('Hay/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#525252;}.t-tile-empty strong{color:#bbb99d;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2007.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2007.min.css new file mode 100644 index 000000000..82d7b2db2 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2007.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#688caf;background-color:#fff;}.t-header,.t-grid-header{border-color:#688caf;background:#c3d8f1 url('Office2007/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Office2007/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2007/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Office2007/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#688caf;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#688caf;}.t-separator{border-color:#ebf1f9;background-color:#a0b2c7;}.t-alt{background-color:#fff;}.t-state-default{border-color:#688caf;}.t-active-filter{background-color:#c0d9ef;}.t-state-hover,.t-state-hover:hover{background-color:#d6e5f3;border-color:#688caf;}.t-state-active{background-color:#fff;border-color:#688caf;}.t-state-selected{background-color:#ffd176;}.t-state-focused{background-color:#d6e5f3;color:#092061;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{border-color:#688caf;background:#e5effb url('Office2007/sprite.png') repeat-x 0 -560px;}.t-button:hover{border-color:#d8ca95 #b9a073 #c6b99c;background-position:0 -624px;background-color:#ffdf84;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#82a6d7;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#5d8cc9;background-color:#d6e5f3;}.t-grid td{border-color:#d6e5f3;}.t-grouping-row td{background:#fff url('Office2007/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#d6e5f3;border-color:#567db0 #d6e5f3 #fff;}.t-group-footer td{background-color:#d6e5f3;border-color:#567db0;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#d6e5f3;border-color:#567db0;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('Office2007/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Office2007/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#a79d87;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#5d8cc9;}.t-calendar th{border-color:#9ebfdb;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Office2007/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Office2007/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Office2007/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#e8f0fa #98b2d0 #98b2d0 #e8f0fa;background-color:#d4e3f5;}.t-editor-button .t-state-active{border-color:#88a4c5 #d0dcea #d0dcea #88a4c5;background-color:#9fbad9;}.t-slider .t-draghandle{background-image:url('Office2007/sprite.png');color:#688caf;}.t-slider-track{border-color:#6b89b2;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2007/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2007/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2007/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2007/slider-v.gif');}.t-tooltip{border-color:#767676;background:#cad9ef 0 -96px repeat-x url('Office2007/sprite.png');color:#333;}.t-callout{background-image:url('Office2007/sprite.png');}.t-splitter{border-color:#9eb6ce;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#d7e6f7;border-color:#9eb6ce;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2007/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2007/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#688caf;}.t-dropzone-hovered,.t-upload-files{background-color:#d6e5f3;}.t-dropzone em{color:#3e7ecf;}.t-progress,.t-progress-status{background-image:url('Office2007/sprite.png');}.t-progress{background-position:0 -465px;border-color:#82a6d7 #8aacda #82a6d7;}.t-progress-status{background-position:0 -472px;border-color:#6b89b2 transparent;}.t-imagebrowser .t-content{background:#dde8f5;}.t-breadcrumbs .t-link{color:#3e7ecf;}.t-breadcrumbs .t-link:hover{color:#00156e;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#8bb2e2;}.t-tiles-arrange{color:#3e7ecf;}.t-toolbar .t-upload .t-button,.t-tiles-arrange .t-link{color:#00156e;}.t-tiles{border-color:#8bb2e2;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Office2007/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#c5af7f;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#c0a776;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Office2007/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#636363;}.t-tile-empty strong{color:#8bb2e2;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010black.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010black.min.css new file mode 100644 index 000000000..f65bc3f38 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010black.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#2c2c2c;background-color:#6f6f6f;}.t-header,.t-grid-header{border-color:#444;background:#6b6b6b url('Office2010Black/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Office2010Black/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2010Black/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Office2010Black/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup,.t-group,.t-grid .t-header{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#f6f6f6;}.t-colorpicker .t-arrow-down{border-color:#606060;}.t-separator{border-color:#606060;background-color:#adadad;}.t-alt{background-color:#646464;}.t-state-default{border-color:#848484;}.t-active-filter{background-color:#f9d04c;}.t-state-hover,.t-state-hover:hover{background-color:#ffe175;border-color:#f7c840;}.t-header .t-state-hover{background-color:#ffe175;}.t-state-active,.t-header .t-state-active{background-color:#e6e6e6;border-color:#444;}.t-state-selected{background-color:#ffcb36;}.t-state-focused{background-color:#a9a9a9;}.t-state-hover,.t-state-selected{color:#000;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#262626;color:#000;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#6f6f6f url('Office2010Black/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#fff3c9;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#5e5e5e;}.t-popup,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #444;-webkit-box-shadow:2px 2px 2px #444;box-shadow:2px 2px 2px #444;}.t-autocomplete,.t-input{background-color:#fff;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#444;background-color:#777;}.t-grid{color:#fff;}.t-grid-pager .t-link{color:#fff;}.t-grid-pager .t-state-hover,.t-grid-pager .t-state-active{color:#000;}.t-grid td{border-color:#454545;}.t-grouping-row td{background:url('Office2010Black/sprite.png') repeat-x 0 -48px;}.t-grouping-header .t-group-indicator{border-color:#444;background:#6f6f6f url('Office2010Black/sprite.png') repeat-x 0 -560px;}.t-grouping-dropclue{background:url('Office2010Black/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#6f6f6f;}.t-treeview .t-drop-clue{background-image:url('Office2010Black/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#4f4f4f;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#4f4f4f;}.t-filter-options,.t-menu .t-group{-moz-box-shadow:2px 2px 2px #4f4f4f;-webkit-box-shadow:2px 2px 2px #4f4f4f;box-shadow:2px 2px 2px #4f4f4f;}.t-calendar th{border-color:#c5c5c5;}.t-other-month .t-link{color:#898989;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Office2010Black/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Office2010Black/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Office2010Black/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}div.t-window{-moz-box-shadow:0 0 5px 2px #444;-webkit-box-shadow:0 0 5px 2px #444;box-shadow:0 0 5px 2px #444;}.t-slider .t-draghandle{background-image:url('Office2010Black/sprite.png');color:#666;}.t-slider-track{border-color:#2c2c2c;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2010Black/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2010Black/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2010Black/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2010Black/slider-v.gif');}.t-tooltip{border-color:#767676;background:#e9e9f2 0 -96px repeat-x url('Office2010Black/sprite.png');}.t-callout{background-image:url('Office2010Black/sprite.png');}.t-splitbar{border-color:#2c2c2c;background-color:#4b4b4b;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2010Black/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2010Black/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#2c2c2c;}.t-dropzone-active{background-color:#6f6f6f;}.t-dropzone-hovered,.t-upload-files{background-color:#4b4b4b;}.t-dropzone em{color:#e2e2e2;}.t-progress,.t-progress-status{background-image:url('Office2010Black/sprite.png');}.t-progress{background-position:0 -464px;border-color:#2c2c2c;}.t-progress-status{background-position:0 -472px;border-color:#ffe37c transparent #f9cd4c;}.t-imagebrowser .t-content{background:#9e9e9e;}.t-tiles{border-color:#848484;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Office2010Black/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#ffd14b;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#c28a30 #c29b43 #c2a44d;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Office2010Black/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#464646;}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010blue.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010blue.min.css new file mode 100644 index 000000000..0ee0eedd1 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010blue.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#8ba0bc;background-color:#fff;}.t-header,.t-grid-header,.t-toolbar,.t-grouping-header,.t-tooltip,.t-grid-pager{border-color:#8ba0bc;background:#bccadd url('Office2010Blue/gradient.png') repeat-x 0 center;}.t-menu-vertical,.t-editor,.t-tooltip,.t-tabstrip{background-position:0 -48px;}.t-icon{background-image:url('Office2010Blue/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2010Blue/editor.png');}.t-picker-wrap{padding-right:23px;}.t-loading,.t-widget .t-loading{background:transparent url('Office2010Blue/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup,.t-grid .t-header{color:#384e73;}.t-group{background-color:#dce3ed;border-color:#8ba0bc;}.t-content,.t-editable-area{border-color:#8ba0bc;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#8ba0bc;}.t-separator{border-color:#8ba0bc;background-color:#f1f4f8;}.t-alt{background-color:#eff2f6;}.t-state-default{border-color:#8ba0bc;}.t-active-filter{background-color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#fae185;border-color:#f3d64a;color:#1e395b;}.t-state-active,.t-header .t-state-active{background-color:#fafbfd;border-color:#8ba0bc;}.t-state-selected{background-color:#ffcd42;}.t-state-focused{background-color:#bfcde0;}.t-state-hover,.t-state-selected{color:#1e395b;}.t-state-error{border-color:#ff7c7c;background-color:#ffe4e4;color:#f20000;}.t-button{border-color:#8ba0bc;color:#384e73;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#bccadd url('Office2010Blue/gradient.png') repeat-x 0 center;}.t-button:hover{border-color:#f3d64a;background-color:#fae185;color:#1e395b;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#8ba0bc;}.t-autocomplete{background-color:#fff;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#8ba0bc;background-color:#dce3ed;}.t-widget .t-status{background-color:transparent;}.t-grid td{border-color:#bfcde0;}.t-grouping-row td{background:url('Office2010Blue/sprite.png') repeat-x 0 -48px;}.t-grouping-header .t-group-indicator{border-color:#8ba0bc;}.t-grouping-dropclue{background:url('Office2010Blue/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Office2010Blue/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#e3bb4a;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#8ba0bc;}.t-calendar th{border-color:#dadcdd;background-color:#dbe3ee;}.t-other-month .t-link{color:#8ba0bc;}.t-slider .t-draghandle{background-image:url('Office2010Blue/sprite.png');color:#666;}.t-slider-track{border-color:#8ba0bc;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2010Blue/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2010Blue/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2010Blue/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2010Blue/slider-v.gif');}.t-tooltip{border-width:2px;border-color:#beccde;}.t-callout{background-image:url('Office2010Blue/sprite.png');}.t-callout-n,.t-callout-s{width:10px;height:5px;}.t-callout-w,.t-callout-e{width:5px;height:10px;}.t-callout-n{top:-7px;left:50%;margin-left:-5px;background-position:-64px -368px;}.t-callout-w{left:-7px;top:50%;margin-top:-5px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-5px;margin-top:2px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-5px;margin-left:2px;background-position:-64px -416px;}.t-splitbar{border-color:#8ba0bc;background-color:#dce3ed;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2010Blue/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2010Blue/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#8ba0bc;}.t-dropzone-hovered,.t-upload-files{background-color:#dce3ed;}.t-dropzone em{color:#8ba0bc;}.t-progress,.t-progress-status{background-image:url('Office2010Blue/sprite.png');}.t-progress{background-position:0 -464px;border-color:#8ba0bc;}.t-progress-status{background-position:0 -472px;border-color:#f3d64a transparent;}.t-tiles{border-color:#8ba0bc;background:#fff;}.t-tile{border-color:#fff;background-image:url('Office2010Blue/gradient.png');background-position:0 100px;background-repeat:repeat-x;}.t-tiles li.t-state-hover{border-color:#f3d64a;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#e3bb4a;background-position:0 0;}.t-tile .t-folder{background-image:url('Office2010Blue/imagebrowser.png');}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010silver.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010silver.min.css new file mode 100644 index 000000000..15a9ae2a6 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.office2010silver.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#a4abb2;background-color:#fff;}.t-header,.t-grid-header,.t-toolbar,.t-grouping-header,.t-tooltip,.t-grid-pager{border-color:#a4abb2;background:#d2d5d9 url('Office2010Silver/gradient.png') repeat-x 0 center;}.t-menu-vertical,.t-editor,.t-tooltip,.t-tabstrip{background-position:0 -48px;}.t-icon{background-image:url('Office2010Silver/sprite.png');}.t-editor .t-tool-icon{background-image:url('Office2010Silver/editor.png');}.t-picker-wrap{padding-right:23px;}.t-loading,.t-widget .t-loading{background:transparent url('Office2010Silver/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup,.t-grid .t-header{color:#3b3b3b;}.t-group{background-color:#f1f2f3;border-color:#a4abb2;}.t-content,.t-editable-area{border-color:#a4abb2;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#a4abb2;}.t-separator{border-color:#a4abb2;background-color:#fff;}.t-alt{background-color:#f1f2f3;}.t-state-default{border-color:#a4abb2;}.t-active-filter{background-color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#fae185;border-color:#f3d64a;color:#000;}.t-state-active,.t-header .t-state-active{background-color:#fff;border-color:#a4abb2;}.t-state-selected{background-color:#f4b914;}.t-state-focused{background-color:#d3d6da;}.t-state-hover,.t-state-selected{color:#000;}.t-state-error{border-color:#ff7c7c;background-color:#ffe4e4;color:#f20000;}.t-button{border-color:#a4abb2;color:#3b3b3b;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d2d5d9 url('Office2010Silver/gradient.png') repeat-x 0 center;}.t-button:hover{border-color:#f3d64a;background-color:#fae185;color:#000;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#a4abb2;}.t-autocomplete{background-color:#fff;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#a4abb2;background-color:#f1f2f3;}.t-widget .t-status{background-color:transparent;}.t-grid td{border-color:#d3d6da;}.t-grouping-row td{background:url('Office2010Silver/sprite.png') repeat-x 0 -48px;}.t-grouping-header .t-group-indicator{border-color:#a4abb2;}.t-grouping-dropclue{background:url('Office2010Silver/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Office2010Silver/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#f4b914;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#a4abb2;}.t-calendar th{border-color:#d3d6da;background-color:#f1f2f3;}.t-other-month .t-link{color:#a4abb2;}.t-slider .t-draghandle{background-image:url('Office2010Silver/sprite.png');color:#666;}.t-slider-track{border-color:#a4abb2;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Office2010Silver/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Office2010Silver/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Office2010Silver/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Office2010Silver/slider-v.gif');}.t-tooltip{border-width:2px;border-color:#dfe1e4;}.t-callout{background-image:url('Office2010Silver/sprite.png');}.t-callout-n,.t-callout-s{width:10px;height:5px;}.t-callout-w,.t-callout-e{width:5px;height:10px;}.t-callout-n{top:-7px;left:50%;margin-left:-5px;background-position:-64px -368px;}.t-callout-w{left:-7px;top:50%;margin-top:-5px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-5px;margin-top:2px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-5px;margin-left:2px;background-position:-64px -416px;}.t-splitbar{border-color:#a4abb2;background-color:#f1f2f3;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Office2010Silver/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Office2010Silver/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#a4abb2;}.t-dropzone-hovered,.t-upload-files{background-color:#f1f2f3;}.t-dropzone em{color:#a4abb2;}.t-progress,.t-progress-status{background-image:url('Office2010Silver/sprite.png');}.t-progress{background-position:0 -464px;border-color:#a4abb2;}.t-progress-status{background-position:0 -472px;border-color:#f3d64a transparent;}.t-tiles{border-color:#a4abb2;background:#fff;}.t-tile{border-color:#fff;background-image:url('Office2010Silver/gradient.png');background-position:0 100px;background-repeat:repeat-x;}.t-tiles li.t-state-hover{border-color:#f3d64a;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#f4b914;background-position:0 0;}.t-tile .t-folder{background-image:url('Office2010Silver/imagebrowser.png');}.t-tile-empty strong{color:#aaa;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.outlook.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.outlook.min.css new file mode 100644 index 000000000..1b341c235 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.outlook.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#5d8cc9;background-color:#fff;}.t-header,.t-grid-header{border-color:#5d8cc9;background:#7da5e0 url('Outlook/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Outlook/sprite.png');}.t-editor .t-tool-icon{background-image:url('Outlook/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Outlook/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#5d8cc9;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#5d8cc9;}.t-separator{border-color:#cfdef4;background-color:#7e98bc;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#5d8cc9;}.t-active-filter{background-color:#b6cef2;}.t-state-hover,.t-state-hover:hover{background-color:#d6e5f3;border-color:#5d8cc9;}.t-state-active{background-color:#fff;border-color:#5d8cc9;}.t-state-selected{background-color:#bcd3f3;}.t-state-focused{background-color:#a3c0ea;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#5d8cc9;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#ebe8e2 url('Outlook/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#f2f2f2;color:#000;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{color:#577aac;border-color:#7da5e0;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#5d8cc9;background-color:#d6e5f3;}.t-grid td{border-color:#ddd;}.t-grid tr.t-state-hover td{border-color:#d6e5f3;}.t-grid tr.t-state-selected td{border-color:#bcd3f3;}.t-grouping-row td{background:#fff url('Outlook/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#d6e5f3;border-color:#567db0 #d6e5f3 #fff;}.t-group-footer td{background-color:#d6e5f3;border-color:#567db0;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#d6e5f3;border-color:#567db0;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('Outlook/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Outlook/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#002d96;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#5d8cc9;}.t-calendar th{border-color:#89aee5;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Outlook/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Outlook/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Outlook/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#dae8fa #668dcf #668dcf #dae8fa;background-color:#93b5e7;}.t-editor-button .t-state-active{border-color:#5781c9 #a3c1ea #a3c1ea #5781c9;background-color:#7da5e0;}.t-slider .t-draghandle{background-image:url('Outlook/sprite.png');color:#5d8cc9;}.t-slider-track{border-color:#7b9ecc;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Outlook/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Outlook/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Outlook/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Outlook/slider-v.gif');}.t-tooltip{border-color:#000;background:#ffffe1;}.t-callout{background-image:url('Outlook/sprite.png');}.t-splitter{border-color:#89aee5;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#bcd3f3;border-color:#89aee5;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Outlook/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Outlook/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#7f9eba;}.t-dropzone-hovered,.t-upload-files{background-color:#d6e5f3;}.t-dropzone em{color:#6c7a8c;}.t-progress,.t-progress-status{background-image:url('Outlook/sprite.png');}.t-progress{background-position:0 -466px;border-color:#7699c5 #83a4ce #81a5d6;}.t-progress-status{background-position:0 -472px;border-color:#99bbea transparent #40689e;}.t-imagebrowser .t-content{background:#c3dafa;}.t-breadcrumbs .t-link:hover{color:#003db2;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#6c7a8c;}.t-tiles{border-color:#7f9eba;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Outlook/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#e0b224;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#df8b13;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Outlook/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#6c7a8c;}.t-tile-empty strong{color:#8bb2e2;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.rtl.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.rtl.min.css new file mode 100644 index 000000000..7a4008e26 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.rtl.min.css @@ -0,0 +1 @@ +.t-rtl{direction:rtl;zoom:1;}.t-rtl .t-button-icontext .t-icon{margin:0 -3px 0 3px;}.t-rtl .t-window-actions{right:auto;left:.5em;}.t-rtl .t-window-title .t-image{margin:0 0 0 5px;}.t-rtl .t-tabstrip-items .t-item,.t-rtl .t-panelbar .t-tabstrip-items .t-item{margin:.1em 0 0 .3em;}.t-rtl .t-tabstrip-items .t-item .t-icon,.t-rtl .t-panelbar .t-tabstrip-items .t-item .t-icon{margin:-1px -3px 0 4px;}.t-rtl .t-tabstrip-items .t-item .t-image,.t-rtl .t-tabstrip-items .t-item .t-sprite,.t-rtl .t-panelbar .t-tabstrip-items .t-item .t-image,.t-rtl .t-panelbar .t-tabstrip-items .t-item .t-sprite{margin:-4px -3px 0 3px;}.t-rtl .t-tabstrip-items .t-state-active,.t-rtl .t-panelbar .t-tabstrip-items .t-state-active{padding-bottom:1px;margin-bottom:-1px;}.t-rtl .t-panelbar .t-item{zoom:normal;}.t-rtl .t-panelbar .t-image,.t-rtl .t-panelbar .t-sprite{margin-right:0;margin-left:5px;float:right;}.t-rtl .t-panelbar .t-arrow-up,.t-rtl .t-panelbar .t-arrow-down{right:auto;left:2px;}.t-rtl .t-panelbar .t-group .t-group .t-link{padding-left:0;padding-right:2em;}.t-rtl .t-menu .t-group .t-link{padding-left:2em;padding-right:.97em;}.t-rtl .t-menu .t-item{border-width:0 0 0 1px;}.t-rtl .t-menu .t-image,.t-rtl .t-menu .t-sprite{margin:0 -4px 0 4px;}.t-rtl .t-menu .t-arrow-down{margin-left:-10px;margin-right:2px;}.t-rtl .t-menu .t-arrow-next{right:auto;left:0;}.t-rtl .t-menu .t-animation-container,.t-rtl .t-menu .t-group{left:auto;right:-1px;}.t-rtl .t-menu .t-animation-container .t-animation-container,.t-rtl .t-menu .t-group .t-group{right:100%;left:auto;}.t-rtl .t-menu-vertical .t-animation-container,.t-rtl .t-menu-vertical .t-group{right:100%;left:auto;}.t-rtl .t-menu .t-animation-container .t-group{right:auto;}.t-rtl .t-grid div.t-grid-header,.t-rtl .t-grid .t-grid-content,.t-rtl .t-grid .t-grid-footer,.t-rtl .t-grid .t-grouping-header,.t-rtl .t-grid .t-grid-toolbar,.t-rtl .t-grid .t-filter-options,.t-rtl .t-grid tbody{zoom:1;direction:rtl;}.t-rtl .t-grid table{border-collapse:separate;}.t-rtl .t-grid div.t-grid-header{padding-right:0;padding-left:17px;text-align:right;}.t-rtl .t-grid .t-header,.t-rtl .t-grid td{text-align:right;border-width:0 0 0 1px;}.t-rtl .t-grid .t-header .t-link{padding:.3em .6em .3em 2.4em;}.t-rtl .t-grid .t-grid-filter{float:left;margin-right:3px;margin-left:-.6em;}.t-rtl .t-grid .t-pager{direction:ltr;float:right;}.t-rtl .t-grid .t-status{float:right;border-right-width:0;border-left-style:solid;border-left-width:1px;margin:-.2em -.6em -.2em .6em;}.t-rtl .t-grid .t-status-text{float:left;}.t-rtl .t-grid .t-grouping-row p{margin-right:-0.6em;margin-left:0;padding-right:.6em;padding-left:0;}.t-rtl .t-grid .t-button .t-icon{margin-left:3px;margin-right:-3px;}.t-rtl .t-grid .t-last{border-left-width:0;}.t-rtl .t-grouping-header .t-button .t-icon{margin:0 3px 0 0;}.t-rtl .t-autocomplete{background-position:0 50%!important;}.t-rtl .t-dropdown-wrap{padding-right:0;padding-left:16px;zoom:1;}* html .t-rtl .t-combobox .t-dropdown-wrap{padding-right:0;padding-left:16px;}* html .t-rtl .t-picker-wrap{padding-right:0;padding-left:25px;}.t-rtl .t-picker-wrap .t-select,.t-rtl .t-dropdown-wrap .t-select{right:auto;left:0;zoom:1;}* html .t-rtl .t-picker-wrap .t-select,* html .t-rtl .t-dropdown-wrap .t-select{right:auto;left:1px;}.t-rtl .t-combobox .t-select{border-width:0 1px 0 0;}.t-rtl .t-dropdown .t-input,.t-rtl .t-selectbox .t-input{padding:.2em 3px .2em 0;}.t-rtl .t-picker-wrap .t-icon-calendar,.t-rtl .t-picker-wrap .t-icon-clock{margin:3px 3px 0 0;}.t-rtl .t-picker-wrap{padding:0 0 0 25px;}.t-rtl .t-datetimepicker .t-picker-wrap{padding:0 0 0 44px;}.t-rtl .t-treeview .t-item{padding:0 16px 0 0;}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{margin-left:0;margin-right:-16px;padding-left:0;padding-right:20px;}.t-rtl .t-treeview .t-plus,.t-rtl .t-treeview .t-minus,.t-rtl .t-treeview .t-plus-disabled,.t-rtl .t-treeview .t-minus-disabled{margin-left:0;margin-right:-20px;float:right;*float:none;}.t-rtl .t-treeview .t-image{margin-right:0;margin-left:3px;}.t-rtl .t-treeview-lines .t-top{background-position:100% 0;}.t-rtl .t-treeview-lines .t-bot{background-position:100% -22px;}.t-rtl .t-treeview-lines .t-mid{background-position:100% -44px;}.t-rtl .t-treeview-lines .t-last .t-top{background-position:100% -66px;}.t-rtl .t-treeview-lines .t-group .t-last .t-bot{background-position:100% -22px;}.t-rtl .t-treeview-lines .t-item{background-position:100% 0;}.t-rtl .t-treeview-lines .t-first{background-position:100% 16px;}.t-rtl .t-numerictextbox .t-icon{margin-left:0;margin-right:-16px;}.t-rtl .t-editor-colorpicker .t-icon{border-width:0 1px 0 0;}.t-rtl .t-header .t-tabstrip-items .t-link{padding:.3em .9em;}.t-rtl .t-breadcrumbs{float:right;margin:0 -1px 0 0;}.t-rtl .t-breadcrumbs-wrap{left:auto;right:0;padding-left:0;padding-right:5px;}.t-rtl .t-breadcrumbs-input{padding-left:0;padding-right:2px;}.t-rtl .t-search-wrap{float:left;}.t-rtl .t-search-wrap label{left:auto;right:7px;}.t-rtl .t-search-wrap .t-search{right:auto;left:2px;}.t-rtl .t-tile{float:right;}.t-rtl .t-imagebrowser .t-thumb{float:right;margin:4px 4px 0 10px;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.simple.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.simple.min.css new file mode 100644 index 000000000..6e9b31f70 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.simple.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#828282;background-color:#fff;}.t-header,.t-grid-header{border-color:#828282;background:#e6e6e6;}.t-icon{background-image:url('Simple/sprite.png');}.t-editor .t-tool-icon{background-image:url('Simple/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Simple/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#828282;}.t-separator{border-color:#fff;background-color:#999;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#828282;}.t-active-filter{background-color:#d8d8d8;}.t-state-hover,.t-state-hover:hover{background-color:#ffe79c;border-color:#c98400;}.t-state-active{background-color:#fff;border-color:#828282;}.t-state-selected{background-color:#ffa517;}.t-state-focused{background-color:#fff3cd;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{border-color:#828282;background:#e8e8e8;}.t-button:hover{background:#ffe79c;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aaa;background-color:#eee;}.t-grid td{border-color:#ddd;}.t-grid tr.t-state-selected td{border-color:#ffa517;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Simple/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row td,.t-grouping-row p{background:#fff;}.t-footer-template td{background-color:#e4e4e4;border-color:#999 #e4e4e4 #fff;}.t-group-footer td{background-color:#e4e4e4;border-color:#999;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e4e4e4;border-color:#999;}.t-treeview .t-drop-clue{background-image:url('Simple/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#ffa517;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#999;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Simple/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Simple/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Simple/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#f1f1f1 #8a8a8a #8a8a8a #f1f1f1;background-color:#e6e6e6;}.t-editor-button .t-state-active{border-color:#a4a4a4 #e0e0e0 #e0e0e0 #a4a4a4;background-color:#c8c8c8;}.t-slider .t-draghandle{border-width:1px;border-style:solid;color:#606060;}.t-slider-horizontal .t-draghandle{width:7px;height:18px;top:-8px;}.t-slider-vertical .t-draghandle{width:18px;height:7px;left:-8px;}.t-slider .t-draghandle,.t-state-disabled.t-slider a.t-draghandle,.t-state-disabled .t-slider a.t-draghandle{border-color:#828282;background-color:#e8e8e8;}.t-slider .t-draghandle:hover,.t-slider .t-draghandle:focus{border-color:#c98400;background-color:#ffe79c;}.t-slider .t-draghandle:active{border-color:#c98400;background-color:#ffa517;}.t-slider .t-slider-track{background:#e1e1e1 none;border:1px solid #acacac;}.t-slider .t-slider-selection{background:#ffa517 none;border:1px solid #ca4b0c;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{height:4px;}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{width:4px;}.t-slider-horizontal .t-tick{background-image:url('Simple/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Simple/slider-v.gif');}.t-tooltip{border-color:#ffa517;background:#ffe79c;}.t-callout{background-image:url('Simple/sprite.png');}.t-splitter{border-color:#828282;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#e6e6e6;border-color:#828282;}.t-splitbar-vertical-hover,.t-splitbar-horizontal-hover{background-color:#ffe79c;}.t-splitbar-horizontal-active,.t-splitbar-vertical-active,.t-ghost-splitbar-horizontal,.t-ghost-splitbar-vertical{background-color:#ffa517;}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active,.t-upload-files{border-color:#9b9b9b;}.t-dropzone-hovered,.t-upload-files{background-color:#e8e8e8;}.t-dropzone em{color:#9b9b9b;}.t-progress{background-color:#e1e1e1;border-color:#b4b4b4 #adadad #9e9e9e;}.t-progress-status{background-color:#ffa517;border-color:#ca4b0c;}.t-imagebrowser .t-content{background:#e8e8e8;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#9b9b9b;}.t-tiles{border-color:#9b9b9b;background:#fff;}.t-tile{border-color:#fff;}.t-tiles li.t-state-hover{border-color:#c98400;background-color:#ffe79c;}.t-tiles li.t-state-selected{border-color:#c98400;background-color:#ffa517;}.t-tile .t-folder{background-image:url('Simple/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#6e6659;}.t-tile-empty strong{color:#9e9e9e;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.sitefinity.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.sitefinity.min.css new file mode 100644 index 000000000..96567b193 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.sitefinity.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-width:0;border-color:#ccc;background:none;}.t-autocomplete{border-width:1px;border-style:solid;}.t-header,.t-grid-header{border-color:#ccc;background:#fff;}.t-icon{background-image:url('Sitefinity/sprite.png');}.t-editor .t-tool-icon{background-image:url('Sitefinity/editor.png');}.t-plus,.t-plus-disabled{background-position:-16px -272px;}.t-minus,.t-minus-disabled{background-position:0 -272px;}.t-rtl .t-plus,.t-rtl .t-plus-disabled{background-position:-32px -272px;}.t-rtl .t-minus,.t-rtl .t-minus-disabled{background-position:-1px -272px;}.t-grid .t-header .t-link .t-arrow-down{background-position:0 -256px;}.t-grid .t-header .t-link .t-arrow-up{background-position:-16px -256px;}.t-loading,.t-widget .t-loading{background:transparent url('Sitefinity/loading.gif') no-repeat 0 0;}.t-widget{color:#000;}.t-link,.t-popup{color:#105cd6;}.t-group,.t-content,.t-editable-area{border-color:#ccc #666 #666 #ccc;background-color:#fff;border-width:1px 2px 2px 1px;}.t-colorpicker .t-arrow-down{border-color:#ccc;}.t-separator{border-color:#fff;background-color:#999;}.t-alt{background:none;}.t-state-default{border-color:#eee;}.t-active-filter{background-color:#e5e5e5;}.t-state-hover{border-color:#dee2e7;}.t-state-active{background-color:#fff;border-color:#ccc;}.t-state-selected{background-color:#ffffe1;}.t-state-focused{background-color:#fffacd;}.t-state-error{border-color:#e50000;}.t-button{border-width:1px 2px 2px 1px;border-color:#ccc #666 #666 #ccc;color:#333;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#f1f1f1;}.t-button:hover{background:#fff;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#afaeae;border-color:#ccc;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#ccc;background-color:transparent;}.t-widget .t-status{border:0;}.t-autocomplete{border-width:1px;border-style:solid;}.t-combobox .t-state-default,.t-dropdown .t-state-default{border-color:#ccc;}.t-grid .t-header,.t-grid .t-header .t-link{letter-spacing:1px;text-transform:uppercase;font-size:.866em;line-height:2.6em;color:#666;background:none;}.t-grid .t-header,.t-grid td{border-bottom-width:1px;border-color:#eee;}.t-grid .t-grid-filter{border-left:0;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Sitefinity/sprite.png') no-repeat -48px -288px;}.t-treeview .t-drop-clue{background-image:url('Sitefinity/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#999;}.t-group-footer td,.t-footer-template td,.t-grid-footer{border-color:#eee #fff;}.t-grid-pager .t-state-hover{border-color:#ccc;color:#002bb8;background:#f0f0f0;}.t-menu .t-state-hover,.t-panelbar .t-state-hover,.t-tabstrip .t-state-hover{color:#002bb8;}.t-tabstrip{border:1px solid #ccc;}.t-tabstrip .t-state-default,.t-tabstrip .t-state-disabled{border-bottom-color:#ccc;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#ddd;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Sitefinity/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Sitefinity/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Sitefinity/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-window,.t-drag-clue{background-color:#fff;}.t-slider .t-draghandle{background-image:url('Sitefinity/sprite.png');color:#000;}.t-slider-track{border-color:#e8e9ea;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Sitefinity/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Sitefinity/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Sitefinity/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Sitefinity/slider-v.gif');}.t-tooltip{border-width:1px;background:#f1f1f1;color:#333;}.t-callout{background-image:url('Sitefinity/sprite.png');}div.t-splitter{border:1px solid #ccc;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#f1f1f1;border-color:#ccc;}.t-splitbar-vertical-hover,.t-splitbar-horizontal-hover{background-color:#ddd;}.t-splitbar-horizontal-active,.t-splitbar-vertical-active,.t-ghost-splitbar-horizontal,.t-ghost-splitbar-vertical{background-color:#ccc;}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active{border-color:#aaa;}.t-dropzone-hovered{background-color:#efefef;}.t-dropzone em{color:#999;}.t-upload-files{border-width:0;}.t-progress,.t-progress-status{background-image:url('Sitefinity/sprite.png');}.t-progress{background-position:0 -465px;border-color:#f8f8f8 transparent #cacaca;}.t-progress-status{background-position:0 -471px;border-color:#62962a transparent #4e8315;}.t-imagebrowser .t-content{background:#efefef;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#999;}.t-tiles-arrange a{color:#000;}.t-tiles{border-color:#ccc;background:#fff;}.t-tile{border-color:#fff;}.t-tiles li.t-state-hover{border-color:#abadb3;}.t-tiles li.t-state-selected{border-color:#abadb3;background-color:#999;color:#fff;}.t-tile .t-folder{background-image:url('Telerik/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#999;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#d2d2d2;}.t-tile-empty strong{color:#9b9b9b;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.sunset.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.sunset.min.css new file mode 100644 index 000000000..78c3cbb03 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.sunset.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#714734;background-color:#ececd8;}.t-header,.t-grid-header{border-color:#854324;background:#90330a url('Sunset/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Sunset/sprite.png');}.t-editor .t-tool-icon{background-image:url('Sunset/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Sunset/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link,.t-grid-header .t-header .t-link,.t-grid-header .t-header{color:#fbfbc7;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#bbb99d;background-color:#ececd8;}.t-colorpicker .t-arrow-down{border-color:#714734;}.t-separator{border-color:#a85835;background-color:#7c2f0c;}.t-alt{background-color:#fff;}.t-state-default{border-color:#854324;}.t-active-filter{background-color:#d25e21;}.t-state-selected{border-color:#904c23;background-color:#ea9959;}.t-state-hover,.t-state-hover .t-link,.t-group .t-state-hover{color:#fff;}.t-state-hover,.t-state-hover:hover{background-color:#c5551c;border-color:#854324;}.t-state-focused{background-color:#cdccb3;}.t-state-active{background-color:#ececd8;border-color:#854324;}.t-state-active,.t-state-active .t-link{color:#333;}.t-state-active .t-header,.t-state-active .t-state-hover{color:#fff;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#d1711a;color:#2d0e06;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d1711a url('Sunset/sprite.png') repeat-x 0 -560px;}.t-button:hover{border-color:#e7941e;background-position:0 -624px;background-color:#e8961e;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{border-color:#666;color:#bf9e8f;}a.t-button.t-state-disabled,button.t-button.t-state-disabled,.t-state-disabled .t-button{color:#b83b01;border-color:#d1711a;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{border-color:#a04a23;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#bbb99d;background-color:#dee0c8;}.t-panelbar .t-link{border-color:#714734;}.t-editor-button .t-state-active{background-color:#d3751a;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Sunset/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#dee0c8;border-color:#cabaab #dee0c8 #f1e9dc;}.t-group-footer td{background-color:#dee0c8;border-color:#cabaab;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#dee0c8;border-color:#cabaab;}.t-grouping-header .t-group-indicator{color:#333;border-color:#999;}.t-grouping-dropclue{background:url('Sunset/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Sunset/sprite.png');background-position:0 -358px;}.t-calendar th{border-color:#d2c7b4;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Sunset/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Sunset/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Sunset/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#ca734b #722205 #722205 #ca734b;background-color:#a13606;}.t-editor-button .t-state-active{border-color:#a24b0f #e09d5c #e09d5c #a24b0f;background-color:#d3751a;}.t-slider .t-draghandle{background-image:url('Sunset/sprite.png');color:#714734;}.t-slider-track{border-color:#c6c0a8;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Sunset/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Sunset/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Sunset/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Sunset/slider-v.gif');}.t-tooltip{border-color:#c0bca2;background:#d6ceba 0 -96px repeat-x url('Sunset/sprite.png');color:#2d0e06;}.t-callout{background-image:url('Sunset/sprite.png');}.t-splitter{border-color:#cac8ab;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#ececd8;border-color:#cac8ab;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Sunset/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Sunset/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#bbb99d;}.t-dropzone-hovered,.t-upload-files{background-color:#f5f5e6;}.t-dropzone em{color:#714734;}.t-progress,.t-progress-status{background-image:url('Sunset/sprite.png');}.t-progress{background-position:0 -465px;border-color:#cfc5b1 #cbc6af #c2bda4;}.t-progress-status{background-position:0 -472px;border-color:#2b140d transparent #593324;}.t-imagebrowser .t-content{background:#dee0c8;}.t-breadcrumbs .t-link{color:#2d0e06;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#714734;}.t-tiles-arrange{color:#714734;}.t-tiles-arrange a{color:#2d0e06;}.t-tiles{border-color:#bbb99d;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Sunset/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#e7941e;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#854324;background-position:0 -100px;color:#fff;}.t-tile .t-folder{background-image:url('Sunset/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#986011;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#dbaa93;}.t-tile-empty strong{color:#ae9b87;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.telerik.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.telerik.min.css new file mode 100644 index 000000000..c69ddea25 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.telerik.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#828282;background-color:#fff;}.t-header,.t-grid-header{border-color:#828282;background:#f6f6f6 url('Telerik/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Telerik/sprite.png');}.t-editor .t-tool-icon{background-image:url('Telerik/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Telerik/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#828282;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#828282;}.t-separator{border-color:#f3f3f3;background-color:#bdbdbd;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#828282;}.t-active-filter{background-color:#dfdfdf;}.t-state-hover,.t-state-hover:hover{background-color:#b6f0a3;border-color:#28a900;}.t-state-active{background-color:#fff;border-color:#28a900;}.t-state-selected{background-color:#8cc569;}.t-state-focused{background-color:#d4ffc5;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#828282;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#f6f6f6 url('Telerik/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#a2ea8b;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aaa;background-color:#eee;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Telerik/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#eee;border-color:#828282 #eee #fff;}.t-group-footer td{background-color:#eee;border-color:#828282;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#eee;border-color:#828282;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Telerik/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Telerik/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#1c7600;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#c5c5c5;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Telerik/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Telerik/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Telerik/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#d6f1cd #809a77 #809a77 #d6f1cd;background-color:#c0e9b3;}.t-editor-button .t-state-active{border-color:#8c8c8c #d8d8d8 #d8d8d8 #8c8c8c;background-color:#c4c4c4;}.t-slider .t-draghandle{background-image:url('Telerik/sprite.png');color:#828282;}.t-slider-track{border-color:#a5a5a5;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Telerik/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Telerik/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Telerik/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Telerik/slider-v.gif');}.t-tooltip{border-color:#cccab0;background:#f6f6f6 0 -557px repeat-x url('Telerik/sprite.png');}.t-callout{background-image:url('Telerik/sprite.png');}.t-splitter{border-color:#aaa;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#eee;border-color:#aaa;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Telerik/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Telerik/sprite-vertical.png');}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active,.t-upload-files{border-color:#abadb3;}.t-dropzone-hovered,.t-upload-files{background-color:#f1f1f1;}.t-dropzone em{color:#999;}.t-progress,.t-progress-status{background-image:url('Telerik/sprite.png');}.t-progress{background-position:0 -465px;border-color:#b4b4b4 #cbc6af #c2bda4;}.t-progress-status{background-position:0 -472px;border-color:#9bcc76 transparent #63af3a;}.t-imagebrowser .t-content{background:#f1f1f1;}.t-breadcrumbs .t-link{color:#666;}.t-breadcrumbs .t-link:hover{color:#000;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#999;}.t-tiles-arrange{color:#666;}.t-tiles-arrange a{color:#000;}.t-tiles{border-color:#e2e3ea;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Telerik/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#abadb3;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#abadb3;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Telerik/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#666;}.t-tile-empty strong{color:#9e9e9e;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.transparent.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.transparent.min.css new file mode 100644 index 000000000..785d20722 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.transparent.min.css @@ -0,0 +1 @@ +.t-widget,div.t-combobox,.t-input{border-color:#c5c5c5;background:url('Transparent/widget.png');}.t-header,.t-grid-header,.t-grouping-header,.t-tooltip,.t-grid-pager{border-color:#c5c5c5;background:url('Transparent/gradient.png') repeat-x 0 center;}.t-menu-vertical,.t-editor,.t-tooltip,.t-tabstrip{background-position:0 -48px;}.t-icon{background-image:url('Transparent/sprite.png');}.t-editor .t-editor-toolbar .t-tool-icon{background-image:url('Transparent/editor.png');}.t-picker-wrap{padding-right:23px;}.t-loading,.t-widget .t-loading{background:transparent url('Transparent/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-state-hover .t-link:hover,.t-popup,.t-grid .t-header{color:#000;}.t-animation-container .t-group{background:url('Transparent/group.png');border-color:#e0e0e0;}.t-animation-container .t-content,.t-editable-area{border-color:#c5c5c5;background:url('Transparent/group.png');}.t-colorpicker .t-arrow-down{border-color:#c5c5c5;}.t-separator{border-color:#c5c5c5;background-color:#fff;}.t-alt{background:url('Transparent/widget.png');}.t-state-default{border-color:#c5c5c5;}.t-active-filter{background:url('Transparent/active.png');}.t-state-hover,.t-state-hover:hover{background-image:url('Transparent/hover.png');border-color:#999;color:#000;}.t-state-active,.t-header .t-state-active{background-image:url('Transparent/active.png');border-color:#c5c5c5;}.t-panelbar .t-item.t-state-active{background-image:none;}.t-state-selected{background-image:url('Transparent/selected.png');border-color:#aaa;}.t-state-selected,.t-state-selected .t-link,a.t-state-selected.t-link{color:#fff;}.t-state-focused{background:url('Transparent/hover.png');}.t-state-error{color:#f20000;}.t-button{border-color:#c5c5c5;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:url('Transparent/gradient.png') repeat-x 0 center;}.t-button:hover{color:#000;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#c5c5c5;}.t-combobox .t-input{background:transparent;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-group-footer td,.t-grid-footer,.t-footer-template td,.t-widget .t-status{border-color:#c5c5c5;background:url('Transparent/toolbar.png');}.t-imagebrowser .t-toolbar{background-repeat:repeat;}.t-widget .t-status{background:none transparent;}.t-grid td{border-color:#c5c5c5;}.t-grouping-header .t-group-indicator{border-color:#c5c5c5;}.t-grouping-dropclue{background:url('Transparent/sprite.png') no-repeat -48px -288px;}.t-treeview .t-drop-clue{background-image:url('Transparent/sprite.png');background-position:0 -358px;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#c5c5c5;}.t-calendar th{border-color:#d3d6da;background:url('Transparent/toolbar.png');}.t-other-month .t-link{color:#666;}.t-slider{background-image:none;}.t-slider .t-draghandle{background-image:url('Transparent/sprite.png');color:#666;}.t-slider-track{border-color:#c5c5c5;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Transparent/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Transparent/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Transparent/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Transparent/slider-v.gif');}.t-tooltip{border-width:2px;border-color:#c5c5c5;}.t-callout{background-image:url('Transparent/sprite.png');}.t-callout-n,.t-callout-s{width:10px;height:5px;}.t-callout-w,.t-callout-e{width:5px;height:10px;}.t-callout-n{top:-7px;left:50%;margin-left:-5px;background-position:-64px -368px;}.t-callout-w{left:-7px;top:50%;margin-top:-5px;background-position:-64px -384px;}.t-callout-s{top:100%;left:50%;margin-left:-5px;margin-top:2px;background-position:-64px -400px;}.t-callout-e{left:100%;top:50%;margin-top:-5px;margin-left:2px;background-position:-64px -416px;}.t-splitbar{border-color:#c5c5c5;background:url('Transparent/toolbar.png');}.t-splitbar .t-icon{background-image:url('Transparent/sprite.png');}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Transparent/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Transparent/sprite-vertical.png');background-color:transparent;}.t-dropzone-active,.t-upload-files{border-color:#c5c5c5;}.t-dropzone-hovered,.t-upload-files{background:url('Transparent/toolbar.png');}.t-dropzone em{color:#c5c5c5;}.t-progress,.t-progress-status{background-image:url('Transparent/sprite.png');}.t-progress{background-position:0 -464px;border-color:#c5c5c5;}.t-progress-status{background-position:0 -472px;border-color:transparent;}.t-tiles{border-color:#c5c5c5;background:url('Transparent/alt.png');}.t-tile{border-color:#fff;background-image:url('Transparent/gradient.png');background-position:0 100px;background-repeat:repeat-x;}.t-tiles li.t-state-hover{border-color:#999;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#aaa;background-position:0 0;}.t-tile .t-folder{background-image:url('Transparent/imagebrowser.png');}.t-tile-empty strong{color:#aaa;}.t-window-content{background:url('Transparent/group.png');}.t-window-actions{background:none;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.vista.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.vista.min.css new file mode 100644 index 000000000..d9540ab03 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.vista.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#a7bac5;background-color:#fff;}.t-widget,.t-widget button,.t-widget input,.t-widget select,.t-button,.t-formatted-value{font-family:"Segoe UI",Arial,sans-serif;}.t-header,.t-grid-header{border-color:#a7bac5;background:#a6d9f4 url('Vista/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Vista/sprite.png');}.t-editor .t-tool-icon{background-image:url('Vista/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Vista/loading.gif') no-repeat 0 0;}.t-widget,.t-link:link,.t-link:active,.t-link:visited,.t-popup{color:#000;}.t-group,.t-content,.t-editable-area{border-color:#a7bac5;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#a7bac5;}.t-separator{border-color:#eaf6fd;background-color:#a7bac5;}.t-alt{background-color:#f7f7f7;}.t-state-default{border-color:#a7bac5;}.t-active-filter{background-color:#ceeefd;}.t-state-hover,.t-state-hover:hover{background-color:#e3f4fc;border-color:#a7bac5;}.t-state-active{background-color:#fff;border-color:#a7bac5;}.t-state-selected{background-color:#c8e8f8;}.t-state-focused{background-color:#90c5e1;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#a7bac5;color:#333;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d1d1d1 url('Vista/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#a7daf4;}.t-state-disabled,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;border-color:#bbb;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#bbb;background-color:#eff7fc;}.t-grid td{border-color:#ddd;}.t-grouping-row td{background:#fff url('Vista/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#e0e5f5;border-color:#aec5d1 #e0e5f5 #fff;}.t-group-footer td{background-color:#e0e5f5;border-color:#aec5d1;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e0e5f5;border-color:#aec5d1;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Vista/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-grouping-row p{margin-left:-.6em;padding-left:.6em;}.t-treeview .t-drop-clue{background-image:url('Vista/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#99defd;}.t-panelbar .t-link,.t-panelbar .t-group,.t-panelbar .t-content{border-color:#aaa;}.t-calendar th{border-color:#e0e0e0;}.t-other-month .t-link{color:#777;}.t-editor-button .t-state-hover{border-color:#ebf6fd #88a1af #88a1af #ebf6fd;background-color:#c9e8fa;}.t-editor-button .t-state-active{border-color:#809eae #bae1f5 #bae1f5 #809eae;background-color:#95cfec;}.t-slider .t-draghandle{background-image:url('Vista/sprite.png');color:#333;}.t-slider-track{border-color:#d3dce2;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Vista/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Vista/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Vista/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Vista/slider-v.gif');}.t-tooltip{border-color:#767676;background:#e4e5f0 0 -96px repeat-x url('Vista/sprite.png');}.t-callout{background-image:url('Vista/sprite.png');}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Vista/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Vista/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#d2dfe6;}.t-dropzone-hovered,.t-upload-files{background-color:#eff7fc;}.t-dropzone em{color:#a7bac5;}.t-progress,.t-progress-status{background-image:url('Vista/sprite.png');}.t-progress{background-position:0 -467px;border-color:#bfd0da #c4d4dd;}.t-progress-status{background-position:0 -471px;border-color:#1db2ee transparent #0067c2;}.t-imagebrowser .t-content{background:#f1f1f1;}.t-breadcrumbs .t-link{color:#666;}.t-breadcrumbs .t-link:hover{color:#06c;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#777d81;}.t-tiles{border-color:#a7bac5;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Vista/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#99defd;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#9bd3f0;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Vista/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#767d80;}.t-tile-empty strong{color:#a7bac5;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.web20.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.web20.min.css new file mode 100644 index 000000000..b70d8f2ee --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.web20.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#4e75b3;background-color:#fff;}.t-header,.t-grid-header{border-color:#4a70ae;background:#7fa5d7 url('Web20/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('Web20/sprite.png');}.t-editor .t-tool-icon{background-image:url('Web20/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Web20/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link{color:#fff;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#4a70ae;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#4e75b3;}.t-separator{border-color:#93b2dc;background-color:#688bbb;}.t-alt{background-color:#fff;}.t-state-default{border-color:#4a70ae;}.t-active-filter{background-color:#87a6d4;}.t-state-hover,.t-state-hover .t-link,.t-header .t-state-hover,.t-group .t-state-hover{color:#333;}.t-state-hover,.t-state-hover:hover{background-color:#a4c2f1;border-color:#4a70ae;}.t-state-active{background-color:#fff;border-color:#4a70ae;}.t-state-active,.t-state-active .t-link,.t-state-active .t-header .t-state-active,.t-state-active .t-header .t-state-active .t-link{color:#333;}.t-state-active .t-header,.t-state-active .t-header .t-link{color:#fff;}.t-state-active .t-state-hover,.t-state-active .t-header .t-state-hover .t-link{color:#333;}.t-state-selected{background-color:#d4ffbc;}.t-state-focused{background-color:#e3eeff;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#4a70ae;color:#fff;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#607fc5 url('Web20/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#c1d5ef;color:#0f3789;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#abb9de;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#829cbf;background-color:#e3eeff;}.t-panelbar .t-link{border-color:#4a70ae;}.t-grid td{border-bottom-width:1px;border-color:#cfd9e7 #829cbf;}.t-grouping-row td{background:#fff url('Web20/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#e3eeff;border-color:#829cbf #e3eeff #fff;}.t-group-footer td{background-color:#e3eeff;border-color:#829cbf;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e3eeff;border-color:#829cbf;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Web20/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Web20/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#85c843;}.t-editor-button .t-state-active{background-color:#4567ba;}.t-calendar th{background-color:#ecf4ff;border-color:#bcd2f1;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('Web20/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('Web20/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('Web20/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-drag-clue{color:#fff;}.t-editor-button .t-state-hover{border-color:#8ea9d1 #385b9d #385b9d #8ea9d1;background-color:#7fa5d7;}.t-editor-button .t-state-active{border-color:#3a5c9d #89a2cc #89a2cc #3a5c9d;background-color:#567cb8;}.t-slider .t-draghandle{background-image:url('Web20/sprite.png');color:#4e75b3;}.t-slider-track{border-color:#7794c3;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Web20/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Web20/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Web20/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Web20/slider-v.gif');}.t-tooltip{border-color:#b2c5e4;background:#bed4f6 0 -96px repeat-x url('Web20/sprite.png');color:#0f3789;}.t-callout{background-image:url('Web20/sprite.png');}.t-splitter{border-color:#829cbf;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#93add4;border-color:#829cbf;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Web20/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Web20/sprite-vertical.png');}.t-restricted-size-horizontal,.t-restricted-size-vertical{background-color:#f00;}.t-dropzone-active,.t-upload-files{border-color:#829cbf;}.t-dropzone-hovered,.t-upload-files{background-color:#cedcef;}.t-dropzone em{color:#747886;}.t-progress,.t-progress-status{background-image:url('Web20/sprite.png');}.t-progress{background-position:0 -465px;border-color:#7996c6 #819dca #7996c6;}.t-progress-status{background-position:0 -472px;border-color:#e1ff86 transparent #82eb30;}.t-imagebrowser .t-content{background:#c1d5ef;}.t-toolbar .t-upload .t-button,.t-breadcrumbs .t-link,.t-tiles-arrange,.t-tiles-arrange a{color:#102152;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#747886;}.t-tiles{border-color:#829cbf;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Web20/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#4a70ae;background-position:0 0;color:#fff;}.t-tiles li.t-state-selected{border-color:#29448b;background-position:0 -100px;color:#fff;}.t-tile .t-folder{background-image:url('Web20/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#747886;}.t-tiles li.t-state-hover em,.t-tiles li.t-state-hover .t-filesize .t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#b3c4ef;}.t-tile-empty strong{color:#a5bce0;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.webblue.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.webblue.min.css new file mode 100644 index 000000000..963347a39 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.webblue.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#768ca5;background-color:#fff;}.t-header,.t-grid-header{border-color:#426682;background:#718ca1 url('WebBlue/sprite.png') repeat-x 0 -752px;}.t-icon{background-image:url('WebBlue/sprite.png');}.t-editor .t-tool-icon{background-image:url('WebBlue/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('WebBlue/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#333;}.t-header,.t-header .t-link{color:#fff;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#426682;background-color:#fff;}.t-colorpicker .t-arrow-down{border-color:#768ca5;}.t-separator{border-color:#8aa0b1;background-color:#516273;}.t-alt{background-color:#dae2e8;}.t-state-default{border-color:#426682;}.t-active-filter{background-color:#8dc1d7;}.t-state-active{background-color:#fff;border-color:#426682;}.t-state-active,.t-state-active .t-link{color:#333;}.t-state-active .t-header{color:#fff;}.t-state-active .t-state-hover{color:#333;}.t-state-selected{background-color:#3e94b4;}.t-state-focused{background-color:#9bacbe;}.t-state-selected,.t-state-selected .t-link,.t-state-selected.t-link{color:#fff;}.t-state-hover,.t-state-hover .t-link,.t-state-hover.t-link,.t-header .t-state-hover,.t-group .t-state-hover{color:#333;}.t-state-hover,.t-state-hover:hover{background-color:#acd4e3;border-color:#5d9fb7;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{border-color:#426682;color:#0d202b;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{background:#d6e1e7 url('WebBlue/sprite.png') repeat-x 0 -560px;}.t-button:hover{background-position:0 -624px;background-color:#bee3f6;color:#0e3d4f;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link{color:#bbb;}.t-button.t-state-disabled,.t-button.t-state-disabled:hover,.t-state-disabled .t-button{color:#657c8c;}.t-header .t-state-disabled,.t-header .t-state-disabled .t-link{color:#abc0d3;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#a2b3c7;background-color:#dae2e8;}.t-panelbar .t-link{border-color:#333;}.t-grid td{border-color:#dae2e8;}.t-grouping-row td{background:#fff url('WebBlue/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#dae2e8;border-color:#a2b3c7 #dae2e8 #fff;}.t-group-footer td{background-color:#dae2e8;border-color:#a2b3c7;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#dae2e8;border-color:#a2b3c7;}.t-grouping-header .t-group-indicator{color:#333;border-color:#aaa;}.t-grouping-dropclue{background:url('WebBlue/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('WebBlue/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#133C44;}.t-editor-button .t-state-active{background-color:#a2b9c9;}.t-calendar th{background-color:#dfeeff;border-color:#a7c0df;}.t-other-month .t-link{color:#777;}.t-treeview-lines .t-top,.t-treeview-lines .t-mid,.t-treeview-lines .t-bot{background-image:url('WebBlue/treeview-nodes.png');}.t-rtl .t-treeview-lines .t-top,.t-rtl .t-treeview-lines .t-mid,.t-rtl .t-treeview-lines .t-bot{background-image:url('WebBlue/treeview-nodes-rtl.png');}.t-treeview-lines .t-item{background-image:url('WebBlue/treeview-line.png');}.t-treeview-lines .t-last{background-image:none;}.t-editor-button .t-state-hover{border-color:#5f7c95 #3b576f #3b576f #5f7c95;background-color:#5f7c95;}.t-editor-button .t-state-active{border-color:#5b758e #97b5c7 #97b5c7 #5b758e;background-color:#8ca5b8;}.t-slider .t-draghandle{background-image:url('WebBlue/sprite.png');color:#768ca5;}.t-slider-track{border-color:#c1cbd6;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('WebBlue/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('WebBlue/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('WebBlue/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('WebBlue/slider-v.gif');}.t-tooltip{border-color:#a7c0df;background:#c4d4dd 0 -96px repeat-x url('WebBlue/sprite.png');color:#0d202b;}.t-callout{background-image:url('WebBlue/sprite.png');}.t-splitter{border-color:#a2b3c7;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#b4c5d9;border-color:#a2b3c7;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('WebBlue/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('WebBlue/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#a2b3c7;}.t-dropzone-hovered,.t-upload-files{background-color:#dae2e8;}.t-dropzone em{color:#8a98a8;}.t-progress,.t-progress-status{background-image:url('WebBlue/sprite.png');}.t-progress{background-position:0 -465px;border-color:#92a4b8 #adbac9 #a2b3c7;}.t-progress-status{background-position:0 -472px;border-color:#a4ff91 transparent #5aff62;}.t-imagebrowser .t-content{background:#dae2e8;}.t-toolbar .t-upload .t-button,.t-breadcrumbs .t-link,.t-tiles-arrange,.t-tiles-arrange a{color:#0e3d4f;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#8a98a8;}.t-tiles{border-color:#a2b3c7;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('WebBlue/imagebrowser.png');color:#0e3d4f;}.t-tiles li.t-state-hover{border-color:#4a70ae;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#768ca5;background-position:0 -100px;color:#fff;}.t-tile .t-folder{background-image:url('WebBlue/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#8a98a8;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#b2c5d2;}.t-tile-empty strong{color:#b3c6d3;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.windows7.min.css b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.windows7.min.css new file mode 100644 index 000000000..6c80ebda9 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Content/2011.2.712/telerik.windows7.min.css @@ -0,0 +1 @@ +.t-widget,.t-input{border-color:#a5b3c5;background-color:#fcfcfc;}.t-header,.t-grid-header{border-color:#a5b3c5;background:#f1f5fb;}.t-icon{background-image:url('Windows7/sprite.png');}.t-editor .t-tool-icon{background-image:url('Windows7/editor.png');}.t-loading,.t-widget .t-loading{background:transparent url('Windows7/loading.gif') no-repeat 0 0;}.t-widget,.t-link,.t-popup{color:#000;}.t-header,.t-header .t-link{color:#4c607a;}.t-header .t-group,.t-group .t-link{color:#333;}.t-group,.t-content,.t-editable-area{border-color:#a5b3c5;background-color:#fcfcfc;}.t-colorpicker .t-arrow-down{border-color:#a5b3c5;}.t-separator{border-color:#fff;background-color:#c2cedb;}.t-alt{background-color:#ebeff3;}.t-state-default{border-color:#a5b3c5;}.t-active-filter{background-color:#c3dcfa;}.t-state-hover,.t-state-hover .t-link,.t-header .t-state-hover,.t-group .t-state-hover{color:#000;}.t-state-hover,.t-state-hover:hover{background-color:#d1e4fc;border-color:#8daed5;}.t-state-active{background-color:#fff;border-color:#426682;}.t-state-selected{background-color:#deecfe;}.t-state-focused{background-color:#c4d1e0;}.t-state-error{border-color:#f00;background-color:#ffc0cb;}.t-button{color:#0d202b;}.t-button,button.t-button.t-state-disabled:hover,a.t-button.t-state-disabled:hover,.t-state-disabled .t-button:hover{border-color:#c2cedb;background:#e7ecf5 url('Windows7/sprite.png') repeat-x 0 -560px;}.t-button:hover{border-color:#9bc9ff;background-position:0 -624px;background-color:#dde8f6;color:#0e3d4f;}.t-state-disabled,.t-state-disabled:hover,.t-state-disabled .t-link,.t-state-disabled .t-button{color:#999;}.t-toolbar,.t-grouping-header,.t-grid-pager,.t-widget .t-status{border-color:#aec5d1;background-color:#f1f5fb;}.t-panelbar .t-link{border-color:#a5b3c5;}.t-tabstrip .t-item{border-bottom-color:#426682;}.t-grid td{border-color:#dae2e8;}.t-grouping-row td{background:#fff url('Windows7/sprite.png') repeat-x 0 -48px;}.t-footer-template td{background-color:#e2eaf4;border-color:#aec5d1 #e2eaf4;}.t-group-footer td{background-color:#e2eaf4;border-color:#aec5d1;}.t-grid-footer,.t-grid-footer-wrap table{background-color:#e2eaf4;border-color:#aec5d1;}.t-grouping-header .t-group-indicator{color:#333;border-color:#ccc;}.t-grouping-dropclue{background:url('Windows7/sprite.png') no-repeat -48px -288px;}.t-grouping-row .t-group-cell,.t-grouping-row p{background:#fff;}.t-treeview .t-drop-clue{background-image:url('Windows7/sprite.png');background-position:0 -358px;}.t-treeview .t-state-selected{border-color:#8fb0d6;}.t-calendar th{border-color:#d4dbe5;}.t-other-month .t-link{color:#a7a7a7;}.t-editor-button .t-state-hover{border-color:#e5f0fd #8ba6c4 #8ba6c4 #e5f0fd;background-color:#d1e4fc;}.t-editor-button .t-state-active{border-color:#aec1d6 #e3ebf5 #e3ebf5 #aec1d6;background-color:#ccdbed;}.t-slider .t-draghandle{background-image:url('Windows7/sprite.png');color:#4c607a;}.t-slider-track{border-color:#a6abc3;}.t-slider-horizontal .t-slider-track,.t-slider-horizontal .t-slider-selection{background-image:url('Windows7/sprite.png');}.t-slider-vertical .t-slider-track,.t-slider-vertical .t-slider-selection{background-image:url('Windows7/sprite-vertical.png');}.t-slider-horizontal .t-tick{background-image:url('Windows7/slider-h.gif');}.t-slider-vertical .t-tick{background-image:url('Windows7/slider-v.gif');}.t-tooltip{background:#e7ecf5 0 -560px repeat-x url('Windows7/sprite.png');color:#0e3d4f;}.t-callout{background-image:url('Windows7/sprite.png');}.t-splitter{border-color:#dae2e8;}.t-splitbar-vertical,.t-splitbar-horizontal{background-color:#f1f5fb;border-color:#dae2e8;}.t-splitbar-vertical,.t-ghost-splitbar-vertical{background-image:url('Windows7/sprite.png');}.t-splitbar-horizontal,.t-ghost-splitbar-horizontal{background-image:url('Windows7/sprite-vertical.png');}.t-dropzone-active,.t-upload-files{border-color:#c2cedb;}.t-dropzone-hovered,.t-upload-files{background-color:#f1f5fb;}.t-dropzone em{color:#a7a7a7;}.t-progress,.t-progress-status{background-image:url('Windows7/sprite.png');}.t-progress{background-position:0 -465px;border-color:#c2cedb #c2cedb;}.t-progress-status{background-position:0 -472px;border-color:#1db2ee transparent #3186db;}.t-imagebrowser .t-content{background:#f1f5fb;}.t-breadcrumbs .t-link,.t-tiles-arrange,.t-tiles-arrange a{color:#1e395b;}.t-breadcrumbs .t-first,.t-breadcrumbs .t-first:hover,.t-search-wrap label{color:#a7a7a7;}.t-tiles{border-color:#c2cedb;background:#fff;}.t-tile{border-color:#fff;background:0 100px repeat-x url('Windows7/imagebrowser.png');}.t-tiles li.t-state-hover{border-color:#b8d6fb;background-position:0 0;}.t-tiles li.t-state-selected{border-color:#7da2ce;background-position:0 -100px;}.t-tile .t-folder{background-image:url('Windows7/imagebrowser.png');}.t-tile em,.t-tile .t-filesize{color:#a7a7a7;}.t-tiles li.t-state-selected em,.t-tiles li.t-state-selected .t-filesize{color:#7da2ce;}.t-tile-empty strong{color:#c2cedb;} \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery-1.5.1.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery-1.5.1.min.js new file mode 100644 index 000000000..6437874c6 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery-1.5.1.min.js @@ -0,0 +1,16 @@ +/*! + * jQuery JavaScript Library v1.5.1 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Feb 23 13:55:29 2011 -0500 + */ +(function(a,b){function cg(a){return d.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cd(a){if(!bZ[a]){var b=d("<"+a+">").appendTo("body"),c=b.css("display");b.remove();if(c==="none"||c==="")c="block";bZ[a]=c}return bZ[a]}function cc(a,b){var c={};d.each(cb.concat.apply([],cb.slice(0,b)),function(){c[this]=a});return c}function bY(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function bX(){try{return new a.XMLHttpRequest}catch(b){}}function bW(){d(a).unload(function(){for(var a in bU)bU[a](0,1)})}function bQ(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var e=a.dataTypes,f={},g,h,i=e.length,j,k=e[0],l,m,n,o,p;for(g=1;g=0===c})}function N(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function F(a,b){return(a&&a!=="*"?a+".":"")+b.replace(r,"`").replace(s,"&")}function E(a){var b,c,e,f,g,h,i,j,k,l,m,n,o,q=[],r=[],s=d._data(this,"events");if(a.liveFired!==this&&s&&s.live&&!a.target.disabled&&(!a.button||a.type!=="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var t=s.live.slice(0);for(i=0;ic)break;a.currentTarget=f.elem,a.data=f.handleObj.data,a.handleObj=f.handleObj,o=f.handleObj.origHandler.apply(f.elem,arguments);if(o===!1||a.isPropagationStopped()){c=f.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function C(a,c,e){var f=d.extend({},e[0]);f.type=a,f.originalEvent={},f.liveFired=b,d.event.handle.call(c,f),f.isDefaultPrevented()&&e[0].preventDefault()}function w(){return!0}function v(){return!1}function g(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function f(a,c,f){if(f===b&&a.nodeType===1){f=a.getAttribute("data-"+c);if(typeof f==="string"){try{f=f==="true"?!0:f==="false"?!1:f==="null"?null:d.isNaN(f)?e.test(f)?d.parseJSON(f):f:parseFloat(f)}catch(g){}d.data(a,c,f)}else f=b}return f}var c=a.document,d=function(){function I(){if(!d.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(I,1);return}d.ready()}}var d=function(a,b){return new d.fn.init(a,b,g)},e=a.jQuery,f=a.$,g,h=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,i=/\S/,j=/^\s+/,k=/\s+$/,l=/\d/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=navigator.userAgent,w,x=!1,y,z="then done fail isResolved isRejected promise".split(" "),A,B=Object.prototype.toString,C=Object.prototype.hasOwnProperty,D=Array.prototype.push,E=Array.prototype.slice,F=String.prototype.trim,G=Array.prototype.indexOf,H={};d.fn=d.prototype={constructor:d,init:function(a,e,f){var g,i,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!e&&c.body){this.context=c,this[0]=c.body,this.selector="body",this.length=1;return this}if(typeof a==="string"){g=h.exec(a);if(!g||!g[1]&&e)return!e||e.jquery?(e||f).find(a):this.constructor(e).find(a);if(g[1]){e=e instanceof d?e[0]:e,k=e?e.ownerDocument||e:c,j=m.exec(a),j?d.isPlainObject(e)?(a=[c.createElement(j[1])],d.fn.attr.call(a,e,!0)):a=[k.createElement(j[1])]:(j=d.buildFragment([g[1]],[k]),a=(j.cacheable?d.clone(j.fragment):j.fragment).childNodes);return d.merge(this,a)}i=c.getElementById(g[2]);if(i&&i.parentNode){if(i.id!==g[2])return f.find(a);this.length=1,this[0]=i}this.context=c,this.selector=a;return this}if(d.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return d.makeArray(a,this)},selector:"",jquery:"1.5.1",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();d.isArray(a)?D.apply(e,a):d.merge(e,a),e.prevObject=this,e.context=this.context,b==="find"?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return d.each(this,a,b)},ready:function(a){d.bindReady(),y.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:D,sort:[].sort,splice:[].splice},d.fn.init.prototype=d.fn,d.extend=d.fn.extend=function(){var a,c,e,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i==="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!=="object"&&!d.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;y.resolveWith(c,[d]),d.fn.trigger&&d(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!x){x=!0;if(c.readyState==="complete")return setTimeout(d.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",A,!1),a.addEventListener("load",d.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",A),a.attachEvent("onload",d.ready);var b=!1;try{b=a.frameElement==null}catch(e){}c.documentElement.doScroll&&b&&I()}}},isFunction:function(a){return d.type(a)==="function"},isArray:Array.isArray||function(a){return d.type(a)==="array"},isWindow:function(a){return a&&typeof a==="object"&&"setInterval"in a},isNaN:function(a){return a==null||!l.test(a)||isNaN(a)},type:function(a){return a==null?String(a):H[B.call(a)]||"object"},isPlainObject:function(a){if(!a||d.type(a)!=="object"||a.nodeType||d.isWindow(a))return!1;if(a.constructor&&!C.call(a,"constructor")&&!C.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a){}return c===b||C.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return a.JSON&&a.JSON.parse?a.JSON.parse(b):(new Function("return "+b))();d.error("Invalid JSON: "+b)},parseXML:function(b,c,e){a.DOMParser?(e=new DOMParser,c=e.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),e=c.documentElement,(!e||!e.nodeName||e.nodeName==="parsererror")&&d.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(a){if(a&&i.test(a)){var b=c.head||c.getElementsByTagName("head")[0]||c.documentElement,e=c.createElement("script");d.support.scriptEval()?e.appendChild(c.createTextNode(a)):e.text=a,b.insertBefore(e,b.firstChild),b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,e){var f,g=0,h=a.length,i=h===b||d.isFunction(a);if(e){if(i){for(f in a)if(c.apply(a[f],e)===!1)break}else for(;g1){var f=E.call(arguments,0),g=b,h=function(a){return function(b){f[a]=arguments.length>1?E.call(arguments,0):b,--g||c.resolveWith(e,f)}};while(b--)a=f[b],a&&d.isFunction(a.promise)?a.promise().then(h(b),c.reject):--g;g||c.resolveWith(e,f)}else c!==a&&c.resolve(a);return e},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}d.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.subclass=this.subclass,a.fn.init=function b(b,c){c&&c instanceof d&&!(c instanceof a)&&(c=a(c));return d.fn.init.call(this,b,c,e)},a.fn.init.prototype=a.fn;var e=a(c);return a},browser:{}}),y=d._Deferred(),d.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){H["[object "+b+"]"]=b.toLowerCase()}),w=d.uaMatch(v),w.browser&&(d.browser[w.browser]=!0,d.browser.version=w.version),d.browser.webkit&&(d.browser.safari=!0),G&&(d.inArray=function(a,b){return G.call(b,a)}),i.test(" ")&&(j=/^[\s\xA0]+/,k=/[\s\xA0]+$/),g=d(c),c.addEventListener?A=function(){c.removeEventListener("DOMContentLoaded",A,!1),d.ready()}:c.attachEvent&&(A=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",A),d.ready())});return d}();(function(){d.support={};var b=c.createElement("div");b.style.display="none",b.innerHTML="
    a";var e=b.getElementsByTagName("*"),f=b.getElementsByTagName("a")[0],g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=b.getElementsByTagName("input")[0];if(e&&e.length&&f){d.support={leadingWhitespace:b.firstChild.nodeType===3,tbody:!b.getElementsByTagName("tbody").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(f.getAttribute("style")),hrefNormalized:f.getAttribute("href")==="/a",opacity:/^0.55$/.test(f.style.opacity),cssFloat:!!f.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,noCloneEvent:!0,noCloneChecked:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},i.checked=!0,d.support.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,d.support.optDisabled=!h.disabled;var j=null;d.support.scriptEval=function(){if(j===null){var b=c.documentElement,e=c.createElement("script"),f="script"+d.now();try{e.appendChild(c.createTextNode("window."+f+"=1;"))}catch(g){}b.insertBefore(e,b.firstChild),a[f]?(j=!0,delete a[f]):j=!1,b.removeChild(e),b=e=f=null}return j};try{delete b.test}catch(k){d.support.deleteExpando=!1}!b.addEventListener&&b.attachEvent&&b.fireEvent&&(b.attachEvent("onclick",function l(){d.support.noCloneEvent=!1,b.detachEvent("onclick",l)}),b.cloneNode(!0).fireEvent("onclick")),b=c.createElement("div"),b.innerHTML="";var m=c.createDocumentFragment();m.appendChild(b.firstChild),d.support.checkClone=m.cloneNode(!0).cloneNode(!0).lastChild.checked,d(function(){var a=c.createElement("div"),b=c.getElementsByTagName("body")[0];if(b){a.style.width=a.style.paddingLeft="1px",b.appendChild(a),d.boxModel=d.support.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,d.support.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
    ",d.support.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
    t
    ";var e=a.getElementsByTagName("td");d.support.reliableHiddenOffsets=e[0].offsetHeight===0,e[0].style.display="",e[1].style.display="none",d.support.reliableHiddenOffsets=d.support.reliableHiddenOffsets&&e[0].offsetHeight===0,a.innerHTML="",b.removeChild(a).style.display="none",a=e=null}});var n=function(a){var b=c.createElement("div");a="on"+a;if(!b.attachEvent)return!0;var d=a in b;d||(b.setAttribute(a,"return;"),d=typeof b[a]==="function"),b=null;return d};d.support.submitBubbles=n("submit"),d.support.changeBubbles=n("change"),b=e=f=null}})();var e=/^(?:\{.*\}|\[.*\])$/;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!g(a)},data:function(a,c,e,f){if(d.acceptData(a)){var g=d.expando,h=typeof c==="string",i,j=a.nodeType,k=j?d.cache:a,l=j?a[d.expando]:a[d.expando]&&d.expando;if((!l||f&&l&&!k[l][g])&&h&&e===b)return;l||(j?a[d.expando]=l=++d.uuid:l=d.expando),k[l]||(k[l]={},j||(k[l].toJSON=d.noop));if(typeof c==="object"||typeof c==="function")f?k[l][g]=d.extend(k[l][g],c):k[l]=d.extend(k[l],c);i=k[l],f&&(i[g]||(i[g]={}),i=i[g]),e!==b&&(i[c]=e);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[c]:i}},removeData:function(b,c,e){if(d.acceptData(b)){var f=d.expando,h=b.nodeType,i=h?d.cache:b,j=h?b[d.expando]:d.expando;if(!i[j])return;if(c){var k=e?i[j][f]:i[j];if(k){delete k[c];if(!g(k))return}}if(e){delete i[j][f];if(!g(i[j]))return}var l=i[j][f];d.support.deleteExpando||i!=a?delete i[j]:i[j]=null,l?(i[j]={},h||(i[j].toJSON=d.noop),i[j][f]=l):h&&(d.support.deleteExpando?delete b[d.expando]:b.removeAttribute?b.removeAttribute(d.expando):b[d.expando]=null)}},_data:function(a,b,c){return d.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=d.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),d.fn.extend({data:function(a,c){var e=null;if(typeof a==="undefined"){if(this.length){e=d.data(this[0]);if(this[0].nodeType===1){var g=this[0].attributes,h;for(var i=0,j=g.length;i-1)return!0;return!1},val:function(a){if(!arguments.length){var c=this[0];if(c){if(d.nodeName(c,"option")){var e=c.attributes.value;return!e||e.specified?c.value:c.text}if(d.nodeName(c,"select")){var f=c.selectedIndex,g=[],h=c.options,i=c.type==="select-one";if(f<0)return null;for(var k=i?f:0,l=i?f+1:h.length;k=0;else if(d.nodeName(this,"select")){var f=d.makeArray(e);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),f)>=0}),f.length||(this.selectedIndex=-1)}else this.value=e}})}}),d.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,e,f){if(!a||a.nodeType===3||a.nodeType===8||a.nodeType===2)return b;if(f&&c in d.attrFn)return d(a)[c](e);var g=a.nodeType!==1||!d.isXMLDoc(a),h=e!==b;c=g&&d.props[c]||c;if(a.nodeType===1){var i=k.test(c);if(c==="selected"&&!d.support.optSelected){var j=a.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((c in a||a[c]!==b)&&g&&!i){h&&(c==="type"&&l.test(a.nodeName)&&a.parentNode&&d.error("type property can't be changed"),e===null?a.nodeType===1&&a.removeAttribute(c):a[c]=e);if(d.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c==="tabIndex"){var o=a.getAttributeNode("tabIndex");return o&&o.specified?o.value:m.test(a.nodeName)||n.test(a.nodeName)&&a.href?0:b}return a[c]}if(!d.support.style&&g&&c==="style"){h&&(a.style.cssText=""+e);return a.style.cssText}h&&a.setAttribute(c,""+e);if(!a.attributes[c]&&(a.hasAttribute&&!a.hasAttribute(c)))return b;var p=!d.support.hrefNormalized&&g&&i?a.getAttribute(c,2):a.getAttribute(c);return p===null?b:p}h&&(a[c]=e);return a[c]}});var p=/\.(.*)$/,q=/^(?:textarea|input|select)$/i,r=/\./g,s=/ /g,t=/[^\w\s.|`]/g,u=function(a){return a.replace(t,"\\$&")};d.event={add:function(c,e,f,g){if(c.nodeType!==3&&c.nodeType!==8){try{d.isWindow(c)&&(c!==a&&!c.frameElement)&&(c=a)}catch(h){}if(f===!1)f=v;else if(!f)return;var i,j;f.handler&&(i=f,f=i.handler),f.guid||(f.guid=d.guid++);var k=d._data(c);if(!k)return;var l=k.events,m=k.handle;l||(k.events=l={}),m||(k.handle=m=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(m.elem,arguments):b}),m.elem=c,e=e.split(" ");var n,o=0,p;while(n=e[o++]){j=i?d.extend({},i):{handler:f,data:g},n.indexOf(".")>-1?(p=n.split("."),n=p.shift(),j.namespace=p.slice(0).sort().join(".")):(p=[],j.namespace=""),j.type=n,j.guid||(j.guid=f.guid);var q=l[n],r=d.event.special[n]||{};if(!q){q=l[n]=[];if(!r.setup||r.setup.call(c,g,p,m)===!1)c.addEventListener?c.addEventListener(n,m,!1):c.attachEvent&&c.attachEvent("on"+n,m)}r.add&&(r.add.call(c,j),j.handler.guid||(j.handler.guid=f.guid)),q.push(j),d.event.global[n]=!0}c=null}},global:{},remove:function(a,c,e,f){if(a.nodeType!==3&&a.nodeType!==8){e===!1&&(e=v);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=d.hasData(a)&&d._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(e=c.handler,c=c.type);if(!c||typeof c==="string"&&c.charAt(0)==="."){c=c||"";for(h in t)d.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+d.map(m.slice(0).sort(),u).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!e){for(j=0;j=0&&(a.type=f=f.slice(0,-1),a.exclusive=!0),e||(a.stopPropagation(),d.event.global[f]&&d.each(d.cache,function(){var b=d.expando,e=this[b];e&&e.events&&e.events[f]&&d.event.trigger(a,c,e.handle.elem)}));if(!e||e.nodeType===3||e.nodeType===8)return b;a.result=b,a.target=e,c=d.makeArray(c),c.unshift(a)}a.currentTarget=e;var h=d._data(e,"handle");h&&h.apply(e,c);var i=e.parentNode||e.ownerDocument;try{e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]||e["on"+f]&&e["on"+f].apply(e,c)===!1&&(a.result=!1,a.preventDefault())}catch(j){}if(!a.isPropagationStopped()&&i)d.event.trigger(a,c,i,!0);else if(!a.isDefaultPrevented()){var k,l=a.target,m=f.replace(p,""),n=d.nodeName(l,"a")&&m==="click",o=d.event.special[m]||{};if((!o._default||o._default.call(e,a)===!1)&&!n&&!(l&&l.nodeName&&d.noData[l.nodeName.toLowerCase()])){try{l[m]&&(k=l["on"+m],k&&(l["on"+m]=null),d.event.triggered=!0,l[m]())}catch(q){}k&&(l["on"+m]=k),d.event.triggered=!1}}},handle:function(c){var e,f,g,h,i,j=[],k=d.makeArray(arguments);c=k[0]=d.event.fix(c||a.event),c.currentTarget=this,e=c.type.indexOf(".")<0&&!c.exclusive,e||(g=c.type.split("."),c.type=g.shift(),j=g.slice(0).sort(),h=new RegExp("(^|\\.)"+j.join("\\.(?:.*\\.)?")+"(\\.|$)")),c.namespace=c.namespace||j.join("."),i=d._data(this,"events"),f=(i||{})[c.type];if(i&&f){f=f.slice(0);for(var l=0,m=f.length;l-1?d.map(a.options,function(a){return a.selected}).join("-"):"":a.nodeName.toLowerCase()==="select"&&(c=a.selectedIndex);return c},B=function B(a){var c=a.target,e,f;if(q.test(c.nodeName)&&!c.readOnly){e=d._data(c,"_change_data"),f=A(c),(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",f);if(e===b||f===e)return;if(e!=null||f)a.type="change",a.liveFired=b,d.event.trigger(a,arguments[1],c)}};d.event.special.change={filters:{focusout:B,beforedeactivate:B,click:function(a){var b=a.target,c=b.type;(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")&&B.call(this,a)},keydown:function(a){var b=a.target,c=b.type;(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&B.call(this,a)},beforeactivate:function(a){var b=a.target;d._data(b,"_change_data",A(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in z)d.event.add(this,c+".specialChange",z[c]);return q.test(this.nodeName)},teardown:function(a){d.event.remove(this,".specialChange");return q.test(this.nodeName)}},z=d.event.special.change.filters,z.focus=z.beforeactivate}c.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(a,b){function c(a){a=d.event.fix(a),a.type=b;return d.event.handle.call(this,a)}d.event.special[b]={setup:function(){this.addEventListener(a,c,!0)},teardown:function(){this.removeEventListener(a,c,!0)}}}),d.each(["bind","one"],function(a,c){d.fn[c]=function(a,e,f){if(typeof a==="object"){for(var g in a)this[c](g,e,a[g],f);return this}if(d.isFunction(e)||e===!1)f=e,e=b;var h=c==="one"?d.proxy(f,function(a){d(this).unbind(a,h);return f.apply(this,arguments)}):f;if(a==="unload"&&c!=="one")this.one(a,e,f);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},d.attrFn&&(d.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,f=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,e,g){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return e;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(f.call(n)==="[object Array]")if(u)if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&e.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&e.push(j[t]);else e.push.apply(e,n);else p(n,e);o&&(k(o,h,e,g),k.uniqueSort(e));return e};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(f.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!=="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!=="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector,d=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(e){d=!0}b&&(k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(d||!l.match.PSEUDO.test(c)&&!/!=/.test(c))return b.call(a,c)}catch(e){}return k(c,null,null,[a]).length>0})}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(var g=c;g0},closest:function(a,b){var c=[],e,f,g=this[0];if(d.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(e=0,f=a.length;e-1:d(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=L.test(a)?d(a,b||this.context):null;for(e=0,f=this.length;e-1:d.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b)break}}c=c.length>1?d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a),e=d.merge(this.get(),c);return this.pushStack(N(c[0])||N(e[0])?e:d.unique(e))},andSelf:function(){return this.add(this.prevObject)}}),d.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling",c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,e){var f=d.map(this,b,c),g=K.call(arguments);G.test(a)||(e=c),e&&typeof e==="string"&&(f=d.filter(e,f)),f=this.length>1&&!M[a]?d.unique(f):f,(this.length>1||I.test(e))&&H.test(a)&&(f=f.reverse());return this.pushStack(f,a,g.join(","))}}),d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,c,e){var f=[],g=a[c];while(g&&g.nodeType!==9&&(e===b||g.nodeType!==1||!d(g).is(e)))g.nodeType===1&&f.push(g),g=g[c];return f},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var P=/ jQuery\d+="(?:\d+|null)"/g,Q=/^\s+/,R=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,S=/<([\w:]+)/,T=/",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};X.optgroup=X.option,X.tbody=X.tfoot=X.colgroup=X.caption=X.thead,X.th=X.td,d.support.htmlSerialize||(X._default=[1,"div
    ","
    "]),d.fn.extend({text:function(a){if(d.isFunction(a))return this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))});if(typeof a!=="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapInner(a.call(this,b))});return this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,e;(e=this[c])!=null;c++)if(!a||d.filter(a,[e]).length)!b&&e.nodeType===1&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(P,""):null;if(typeof a!=="string"||V.test(a)||!d.support.leadingWhitespace&&Q.test(a)||X[(S.exec(a)||["",""])[1].toLowerCase()])d.isFunction(a)?this.each(function(b){var c=d(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);else{a=a.replace(R,"<$1>");try{for(var c=0,e=this.length;c1&&l0?this.clone(!0):this).get();d(f[h])[b](j),e=e.concat(j)}return this.pushStack(e,a,f.selector)}}),d.extend({clone:function(a,b,c){var e=a.cloneNode(!0),f,g,h;if((!d.support.noCloneEvent||!d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){$(a,e),f=_(a),g=_(e);for(h=0;f[h];++h)$(f[h],g[h])}if(b){Z(a,e);if(c){f=_(a),g=_(e);for(h=0;f[h];++h)Z(f[h],g[h])}}return e},clean:function(a,b,e,f){b=b||c,typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var g=[];for(var h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i+="");if(!i)continue;if(typeof i!=="string"||U.test(i)){if(typeof i==="string"){i=i.replace(R,"<$1>");var j=(S.exec(i)||["",""])[1].toLowerCase(),k=X[j]||X._default,l=k[0],m=b.createElement("div");m.innerHTML=k[1]+i+k[2];while(l--)m=m.lastChild;if(!d.support.tbody){var n=T.test(i),o=j==="table"&&!n?m.firstChild&&m.firstChild.childNodes:k[1]===""&&!n?m.childNodes:[];for(var p=o.length-1;p>=0;--p)d.nodeName(o[p],"tbody")&&!o[p].childNodes.length&&o[p].parentNode.removeChild(o[p])}!d.support.leadingWhitespace&&Q.test(i)&&m.insertBefore(b.createTextNode(Q.exec(i)[0]),m.firstChild),i=m.childNodes}}else i=b.createTextNode(i);i.nodeType?g.push(i):g=d.merge(g,i)}if(e)for(h=0;g[h];h++)!f||!d.nodeName(g[h],"script")||g[h].type&&g[h].type.toLowerCase()!=="text/javascript"?(g[h].nodeType===1&&g.splice.apply(g,[h+1,0].concat(d.makeArray(g[h].getElementsByTagName("script")))),e.appendChild(g[h])):f.push(g[h].parentNode?g[h].parentNode.removeChild(g[h]):g[h]);return g},cleanData:function(a){var b,c,e=d.cache,f=d.expando,g=d.event.special,h=d.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&d.noData[j.nodeName.toLowerCase()])continue;c=j[d.expando];if(c){b=e[c]&&e[c][f];if(b&&b.events){for(var k in b.events)g[k]?d.event.remove(j,k):d.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[d.expando]:j.removeAttribute&&j.removeAttribute(d.expando),delete e[c]}}}});var bb=/alpha\([^)]*\)/i,bc=/opacity=([^)]*)/,bd=/-([a-z])/ig,be=/([A-Z])/g,bf=/^-?\d+(?:px)?$/i,bg=/^-?\d/,bh={position:"absolute",visibility:"hidden",display:"block"},bi=["Left","Right"],bj=["Top","Bottom"],bk,bl,bm,bn=function(a,b){return b.toUpperCase()};d.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return d.access(this,a,c,!0,function(a,c,e){return e!==b?d.style(a,c,e):d.css(a,c)})},d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bk(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":d.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,e,f){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var g,h=d.camelCase(c),i=a.style,j=d.cssHooks[h];c=d.cssProps[h]||h;if(e===b){if(j&&"get"in j&&(g=j.get(a,!1,f))!==b)return g;return i[c]}if(typeof e==="number"&&isNaN(e)||e==null)return;typeof e==="number"&&!d.cssNumber[h]&&(e+="px");if(!j||!("set"in j)||(e=j.set(a,e))!==b)try{i[c]=e}catch(k){}}},css:function(a,c,e){var f,g=d.camelCase(c),h=d.cssHooks[g];c=d.cssProps[g]||g;if(h&&"get"in h&&(f=h.get(a,!0,e))!==b)return f;if(bk)return bk(a,c,g)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]},camelCase:function(a){return a.replace(bd,bn)}}),d.curCSS=d.css,d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,c,e){var f;if(c){a.offsetWidth!==0?f=bo(a,b,e):d.swap(a,bh,function(){f=bo(a,b,e)});if(f<=0){f=bk(a,b,b),f==="0px"&&bm&&(f=bm(a,b,b));if(f!=null)return f===""||f==="auto"?"0px":f}if(f<0||f==null){f=a.style[b];return f===""||f==="auto"?"0px":f}return typeof f==="string"?f:f+"px"}},set:function(a,b){if(!bf.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return bc.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style;c.zoom=1;var e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=c.filter||"";c.filter=bb.test(f)?f.replace(bb,e):c.filter+" "+e}}),c.defaultView&&c.defaultView.getComputedStyle&&(bl=function(a,c,e){var f,g,h;e=e.replace(be,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return b;if(h=g.getComputedStyle(a,null))f=h.getPropertyValue(e),f===""&&!d.contains(a.ownerDocument.documentElement,a)&&(f=d.style(a,e));return f}),c.documentElement.currentStyle&&(bm=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bf.test(d)&&bg.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bk=bl||bm,d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)});var bp=/%20/g,bq=/\[\]$/,br=/\r?\n/g,bs=/#.*$/,bt=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bu=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bv=/(?:^file|^widget|\-extension):$/,bw=/^(?:GET|HEAD)$/,bx=/^\/\//,by=/\?/,bz=/)<[^<]*)*<\/script>/gi,bA=/^(?:select|textarea)/i,bB=/\s+/,bC=/([?&])_=[^&]*/,bD=/(^|\-)([a-z])/g,bE=function(a,b,c){return b+c.toUpperCase()},bF=/^([\w\+\.\-]+:)\/\/([^\/?#:]*)(?::(\d+))?/,bG=d.fn.load,bH={},bI={},bJ,bK;try{bJ=c.location.href}catch(bL){bJ=c.createElement("a"),bJ.href="",bJ=bJ.href}bK=bF.exec(bJ.toLowerCase()),d.fn.extend({load:function(a,c,e){if(typeof a!=="string"&&bG)return bG.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var g=a.slice(f,a.length);a=a.slice(0,f)}var h="GET";c&&(d.isFunction(c)?(e=c,c=b):typeof c==="object"&&(c=d.param(c,d.ajaxSettings.traditional),h="POST"));var i=this;d.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?d("
    ").append(c.replace(bz,"")).find(g):c)),e&&i.each(e,[c,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bA.test(this.nodeName)||bu.test(this.type))}).map(function(a,b){var c=d(this).val();return c==null?null:d.isArray(c)?d.map(c,function(a,c){return{name:b.name,value:a.replace(br,"\r\n")}}):{name:b.name,value:c.replace(br,"\r\n")}}).get()}}),d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.bind(b,a)}}),d.each(["get","post"],function(a,c){d[c]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=b);return d.ajax({type:c,url:a,data:e,success:f,dataType:g})}}),d.extend({getScript:function(a,c){return d.get(a,b,c,"script")},getJSON:function(a,b,c){return d.get(a,b,c,"json")},ajaxSetup:function(a,b){b?d.extend(!0,a,d.ajaxSettings,b):(b=a,a=d.extend(!0,d.ajaxSettings,b));for(var c in {context:1,url:1})c in b?a[c]=b[c]:c in d.ajaxSettings&&(a[c]=d.ajaxSettings[c]);return a},ajaxSettings:{url:bJ,isLocal:bv.test(bK[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML}},ajaxPrefilter:bM(bH),ajaxTransport:bM(bI),ajax:function(a,c){function v(a,c,l,n){if(r!==2){r=2,p&&clearTimeout(p),o=b,m=n||"",u.readyState=a?4:0;var q,t,v,w=l?bP(e,u,l):b,x,y;if(a>=200&&a<300||a===304){if(e.ifModified){if(x=u.getResponseHeader("Last-Modified"))d.lastModified[k]=x;if(y=u.getResponseHeader("Etag"))d.etag[k]=y}if(a===304)c="notmodified",q=!0;else try{t=bQ(e,w),c="success",q=!0}catch(z){c="parsererror",v=z}}else{v=c;if(!c||a)c="error",a<0&&(a=0)}u.status=a,u.statusText=c,q?h.resolveWith(f,[t,c,u]):h.rejectWith(f,[u,c,v]),u.statusCode(j),j=b,s&&g.trigger("ajax"+(q?"Success":"Error"),[u,e,q?t:v]),i.resolveWith(f,[u,c]),s&&(g.trigger("ajaxComplete",[u,e]),--d.active||d.event.trigger("ajaxStop"))}}typeof a==="object"&&(c=a,a=b),c=c||{};var e=d.ajaxSetup({},c),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d._Deferred(),j=e.statusCode||{},k,l={},m,n,o,p,q,r=0,s,t,u={readyState:0,setRequestHeader:function(a,b){r||(l[a.toLowerCase().replace(bD,bE)]=b);return this},getAllResponseHeaders:function(){return r===2?m:null},getResponseHeader:function(a){var c;if(r===2){if(!n){n={};while(c=bt.exec(m))n[c[1].toLowerCase()]=c[2]}c=n[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){r||(e.mimeType=a);return this},abort:function(a){a=a||"abort",o&&o.abort(a),v(0,a);return this}};h.promise(u),u.success=u.done,u.error=u.fail,u.complete=i.done,u.statusCode=function(a){if(a){var b;if(r<2)for(b in a)j[b]=[j[b],a[b]];else b=a[u.status],u.then(b,b)}return this},e.url=((a||e.url)+"").replace(bs,"").replace(bx,bK[1]+"//"),e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bB),e.crossDomain||(q=bF.exec(e.url.toLowerCase()),e.crossDomain=q&&(q[1]!=bK[1]||q[2]!=bK[2]||(q[3]||(q[1]==="http:"?80:443))!=(bK[3]||(bK[1]==="http:"?80:443)))),e.data&&e.processData&&typeof e.data!=="string"&&(e.data=d.param(e.data,e.traditional)),bN(bH,e,c,u);if(r===2)return!1;s=e.global,e.type=e.type.toUpperCase(),e.hasContent=!bw.test(e.type),s&&d.active++===0&&d.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(by.test(e.url)?"&":"?")+e.data),k=e.url;if(e.cache===!1){var w=d.now(),x=e.url.replace(bC,"$1_="+w);e.url=x+(x===e.url?(by.test(e.url)?"&":"?")+"_="+w:"")}}if(e.data&&e.hasContent&&e.contentType!==!1||c.contentType)l["Content-Type"]=e.contentType;e.ifModified&&(k=k||e.url,d.lastModified[k]&&(l["If-Modified-Since"]=d.lastModified[k]),d.etag[k]&&(l["If-None-Match"]=d.etag[k])),l.Accept=e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", */*; q=0.01":""):e.accepts["*"];for(t in e.headers)u.setRequestHeader(t,e.headers[t]);if(e.beforeSend&&(e.beforeSend.call(f,u,e)===!1||r===2)){u.abort();return!1}for(t in {success:1,error:1,complete:1})u[t](e[t]);o=bN(bI,e,c,u);if(o){u.readyState=1,s&&g.trigger("ajaxSend",[u,e]),e.async&&e.timeout>0&&(p=setTimeout(function(){u.abort("timeout")},e.timeout));try{r=1,o.send(l,v)}catch(y){status<2?v(-1,y):d.error(y)}}else v(-1,"No Transport");return u},param:function(a,c){var e=[],f=function(a,b){b=d.isFunction(b)?b():b,e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){f(this.name,this.value)});else for(var g in a)bO(g,a[g],c,f);return e.join("&").replace(bp,"+")}}),d.extend({active:0,lastModified:{},etag:{}});var bR=d.now(),bS=/(\=)\?(&|$)|()\?\?()/i;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+bR++}}),d.ajaxPrefilter("json jsonp",function(b,c,e){var f=typeof b.data==="string";if(b.dataTypes[0]==="jsonp"||c.jsonpCallback||c.jsonp!=null||b.jsonp!==!1&&(bS.test(b.url)||f&&bS.test(b.data))){var g,h=b.jsonpCallback=d.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2",m=function(){a[h]=i,g&&d.isFunction(i)&&a[h](g[0])};b.jsonp!==!1&&(j=j.replace(bS,l),b.url===j&&(f&&(k=k.replace(bS,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},e.then(m,m),b.converters["script json"]=function(){g||d.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}}),d.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),d.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var bT=d.now(),bU,bV;d.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&bX()||bY()}:bX,bV=d.ajaxSettings.xhr(),d.support.ajax=!!bV,d.support.cors=bV&&"withCredentials"in bV,bV=b,d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var c;return{send:function(e,f){var g=a.xhr(),h,i;a.username?g.open(a.type,a.url,a.async,a.username,a.password):g.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)g[i]=a.xhrFields[i];a.mimeType&&g.overrideMimeType&&g.overrideMimeType(a.mimeType),(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(i in e)g.setRequestHeader(i,e[i])}catch(j){}g.send(a.hasContent&&a.data||null),c=function(e,i){var j,k,l,m,n;try{if(c&&(i||g.readyState===4)){c=b,h&&(g.onreadystatechange=d.noop,delete bU[h]);if(i)g.readyState!==4&&g.abort();else{j=g.status,l=g.getAllResponseHeaders(),m={},n=g.responseXML,n&&n.documentElement&&(m.xml=n),m.text=g.responseText;try{k=g.statusText}catch(o){k=""}j||!a.isLocal||a.crossDomain?j===1223&&(j=204):j=m.text?200:404}}}catch(p){i||f(-1,p)}m&&f(j,k,m,l)},a.async&&g.readyState!==4?(bU||(bU={},bW()),h=bT++,g.onreadystatechange=bU[h]=c):c()},abort:function(){c&&c(0,1)}}}});var bZ={},b$=/^(?:toggle|show|hide)$/,b_=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ca,cb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];d.fn.extend({show:function(a,b,c){var e,f;if(a||a===0)return this.animate(cc("show",3),a,b,c);for(var g=0,h=this.length;g=0;a--)c[a].elem===this&&(b&&c[a](!0),c.splice(a,1))}),b||this.dequeue();return this}}),d.each({slideDown:cc("show",1),slideUp:cc("hide",1),slideToggle:cc("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){d.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),d.extend({speed:function(a,b,c){var e=a&&typeof a==="object"?d.extend({},a):{complete:c||!c&&b||d.isFunction(a)&&a,duration:a,easing:c&&b||b&&!d.isFunction(b)&&b};e.duration=d.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in d.fx.speeds?d.fx.speeds[e.duration]:d.fx.speeds._default,e.old=e.complete,e.complete=function(){e.queue!==!1&&d(this).dequeue(),d.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig||(b.orig={})}}),d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(d.fx.step[this.prop]||d.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=d.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return e.step(a)}var e=this,f=d.fx;this.startTime=d.now(),this.start=a,this.end=b,this.unit=c||this.unit||(d.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&d.timers.push(g)&&!ca&&(ca=setInterval(f.tick,f.interval))},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),d(this.elem).show()},hide:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=d.now(),c=!0;if(a||b>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(c=!1);if(c){if(this.options.overflow!=null&&!d.support.shrinkWrapBlocks){var f=this.elem,g=this.options;d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]})}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var h in this.options.curAnim)d.style(this.elem,h,this.options.orig[h]);this.options.complete.call(this.elem)}return!1}var i=b-this.startTime;this.state=i/this.options.duration;var j=this.options.specialEasing&&this.options.specialEasing[this.prop],k=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[j||k](this.state,i,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return!0}},d.extend(d.fx,{tick:function(){var a=d.timers;for(var b=0;b
    ";d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),e=b.firstChild,f=e.firstChild,h=e.nextSibling.firstChild.firstChild,this.doesNotAddBorder=f.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,f.style.position="fixed",f.style.top="20px",this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15,f.style.position=f.style.top="",e.style.overflow="hidden",e.style.position="relative",this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),a=b=e=f=g=h=null,d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;d.offset.initialize(),d.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(d.css(a,"marginTop"))||0,c+=parseFloat(d.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var e=d.css(a,"position");e==="static"&&(a.style.position="relative");var f=d(a),g=f.offset(),h=d.css(a,"top"),i=d.css(a,"left"),j=e==="absolute"&&d.inArray("auto",[h,i])>-1,k={},l={},m,n;j&&(l=f.position()),m=j?l.top:parseInt(h,10)||0,n=j?l.left:parseInt(i,10)||0,d.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):f.css(k)}},d.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),e=cf.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(d.css(a,"marginTop"))||0,c.left-=parseFloat(d.css(a,"marginLeft"))||0,e.top+=parseFloat(d.css(b[0],"borderTopWidth"))||0,e.left+=parseFloat(d.css(b[0],"borderLeftWidth"))||0;return{top:c.top-e.top,left:c.left-e.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&(!cf.test(a.nodeName)&&d.css(a,"position")==="static"))a=a.offsetParent;return a})}}),d.each(["Left","Top"],function(a,c){var e="scroll"+c;d.fn[e]=function(c){var f=this[0],g;if(!f)return null;if(c!==b)return this.each(function(){g=cg(this),g?g.scrollTo(a?d(g).scrollLeft():c,a?c:d(g).scrollTop()):this[e]=c});g=cg(f);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:d.support.boxModel&&g.document.documentElement[e]||g.document.body[e]:f[e]}}),d.each(["Height","Width"],function(a,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?parseFloat(d.css(this[0],e,"padding")):null},d.fn["outer"+c]=function(a){return this[0]?parseFloat(d.css(this[0],e,a?"margin":"border")):null},d.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(d.isFunction(a))return this.each(function(b){var c=d(this);c[e](a.call(this,b,c[e]()))});if(d.isWindow(f)){var g=f.document.documentElement["client"+c];return f.document.compatMode==="CSS1Compat"&&g||f.document.body["client"+c]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+c],f.body["scroll"+c],f.documentElement["scroll"+c],f.body["offset"+c],f.documentElement["offset"+c]);if(a===b){var h=d.css(f,e),i=parseFloat(h);return d.isNaN(i)?h:i}return this.css(e,typeof a==="string"?a:a+"px")}}),a.jQuery=a.$=d})(window); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery.validate.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery.validate.min.js new file mode 100644 index 000000000..7ab1d85b2 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/jquery.validate.min.js @@ -0,0 +1,50 @@ +/** + * jQuery Validation Plugin 1.8.0 + * + * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ + * http://docs.jquery.com/Plugins/Validation + * + * Copyright (c) 2006 - 2011 Jörn Zaefferer + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +(function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){b.cancelSubmit=true});b.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function e(){if(b.settings.submitHandler){if(b.submitButton)var f=c("").attr("name", +b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&f.remove();return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return e()}else{b.focusInvalid();return false}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form(); +else{var a=true,b=c(this[0].form).validate();this.each(function(){a&=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name]; +return g}var h={};c.each(b.split(/\s/),function(j,i){h[i]=g[i];delete g[i]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(""+a.value)},filled:function(a){return!!c.trim(""+a.value)},unchecked:function(a){return!a.checked}});c.validator=function(a, +b){this.settings=c.extend(true,{},c.validator.defaults,a);this.currentForm=b;this.init()};c.validator.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.validator.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error", +validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)}, +onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,b,d){c(a).addClass(b).removeClass(d)},unhighlight:function(a,b,d){c(a).removeClass(b).addClass(d)}},setDefaults:function(a){c.extend(c.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.", +url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:c.validator.format("Please enter no more than {0} characters."),minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."), +range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator");e="on"+e.type.replace(/^validate/,"");f.settings[e]&&f.settings[e].call(f,this[0])}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&& +this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=e})});var d=this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).validateDelegate(":text, :password, :file, select, textarea", +"focusin focusout keyup",a).validateDelegate(":radio, :checkbox, select, option","click",a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]); +return this.valid()},element:function(a){this.lastElement=a=this.clean(a);this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList, +function(d){return!(d.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,d;for(d in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()}, +valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var a=this,b={};return c([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&& +a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return false;return b[this.name]=true})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)}, +prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.clean(a);if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];var b=c(a).rules(),d=false,e;for(e in b){var f={method:e,parameters:b[e]};try{var g=c.validator.methods[e].call(this,a.value.replace(/\r/g,""),a,f.parameters);if(g=="dependency-mismatch")d=true;else{d=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!g){this.formatAndAdd(a,f);return false}}}catch(h){this.settings.debug&& +window.console&&console.log("exception occured when checking element "+a.id+", check the '"+f.method+"' method",h);throw h;}}if(!d){this.objectLength(b)&&this.successList.push(a);return true}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+a.name+"")},formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,b.parameters,a);else if(e.test(d))d=jQuery.format(d.replace(e,"{$1}"),b.parameters);this.errorList.push({message:d, +element:a});this.errorMap[a.name]=d;this.submitted[a.name]=d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a= +0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(a, +b){var d=this.errorsFor(a);if(d.length){d.removeClass().addClass(this.settings.errorClass);d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&this.settings.success){d.text(""); +typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow=this.toShow.add(d)},errorsFor:function(a){var b=this.idOrName(a);return this.errors().filter(function(){return c(this).attr("for")==b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d,e){return e.form== +b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this, +c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){c(this.currentForm).submit();this.formSubmitted=false}else if(!b&&this.pendingRequest==0&&this.formSubmitted){c(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted= +false}},previousValue:function(a){return c.data(a,"previousValue")||c.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings, +a)},classRules:function(a){var b={};(a=c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(var d in c.validator.methods){var e=a.attr(d);if(e)b[d]=e}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{};var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]: +c(a).metadata()},staticRules:function(a){var b={},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var f=true;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined?e.param:true;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)? +e(b):e});c.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages;return a},normalizeRule:function(a){if(typeof a=="string"){var b= +{};c.each(a.split(/\s/),function(){b[this]=true});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d!=undefined?d:c.validator.messages[a];b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(a=c(b).val())&&a.length>0;case "input":if(this.checkable(b))return this.getLength(a,b)>0;default:return c.trim(a).length> +0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});e.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(this.pending[b.name])return"pending";if(e.old===a)return e.valid;e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(true,{url:d,mode:"abort",port:"validate"+b.name, +dataType:"json",data:g,success:function(h){f.settings.messages[b.name].remote=e.originalMessage;var j=h===true;if(j){var i=f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};h=h||f.defaultMessage(b,"remote");i[b.name]=e.message=c.isFunction(h)?h(a):h;f.showErrors(i)}e.valid=j;f.stopRequest(b,j)}},d));return"pending"},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a,b,d){return this.optional(b)|| +this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)}, +url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)}, +date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return false;var d=0,e=0,f=false;a=a.replace(/\D/g,"");for(var g=a.length-1;g>= +0;g--){e=a.charAt(g);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){d=c(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(b).valid()});return a==d.val()}}});c.format=c.validator.format})(jQuery); +(function(c){var a={};if(c.ajaxPrefilter)c.ajaxPrefilter(function(d,e,f){e=d.port;if(d.mode=="abort"){a[e]&&a[e].abort();a[e]=f}});else{var b=c.ajax;c.ajax=function(d){var e=("port"in d?d:c.ajaxSettings).port;if(("mode"in d?d:c.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=b.apply(this,arguments)}return b.apply(this,arguments)}}})(jQuery); +(function(c){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)},handler:function(e){arguments[0]=c.event.fix(e);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{validateDelegate:function(a, +b,d){return this.bind(b,function(e){var f=c(e.target);if(f.is(a))return d.apply(f,arguments)})}})})(jQuery); diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.autocomplete.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.autocomplete.min.js new file mode 100644 index 000000000..3aad1350a --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.autocomplete.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.autocomplete.js");b.autocomplete=function(c,d){a.extend(this,d);var e=this.$element=a(c).addClass("t-widget t-autocomplete t-input").attr("autocomplete","off").bind("paste",a.proxy(function(i){g(this)},this));this.$text=e;this.element=c;this.trigger=new b.list.trigger(this);this.trigger.change=function(){var j=this.component.text();var i=this.component.previousValue;if(i==undefined||j!=i){b.trigger(this.component.element,"valueChange",{value:j})}this.component.previousValue=j};this.loader=new b.list.loader(this);this.loader.showBusy=function(){this.busyTimeout=setTimeout(a.proxy(function(){this.component.$element.addClass("t-loading")},this),100)};this.loader.hideBusy=function(){clearTimeout(this.busyTimeout);this.component.$element.removeClass("t-loading")};this.filtering=new b.list.filtering(this);this.filtering.autoFill=function(r,n){if(r.autoFill&&(r.lastKeyCode!=8&&r.lastKeyCode!=46)){var u=r.$text[0],i=u.value,s=r.separator,o=b.caretPos(u),v=r.multiple;var k=v&&s?b.lastIndexOf(i.substring(0,o),s):-1;var p=k!=-1?k+s.length:0;var l=i.substring(p,o);var t=n.toLowerCase().indexOf(l.toLowerCase());if(t!=-1){var q=n.substring(t+l.length);if(v){var m=i.split(s),j=f(u,s);m[j]=l+q;u.value=m.join(s)+(r.multiple&&j!=0&&j==m.length-1?s:"")}else{u.value=l+q}b.list.selection(u,o,o+q.length)}}};this.enable=function(){e.removeClass("t-state-disabled").removeAttr("disabled")};this.disable=function(){e.addClass("t-state-disabled").attr("disabled","disabled")};this.filtering.multiple=a.proxy(function(i){if(this.multiple){i=i.split(this.separator);i=i[f(this.$text[0],this.separator)]}return i},this);this.dropDown=new b.dropDown({attr:this.dropDownAttr,effects:this.effects,onClick:a.proxy(function(i){this.select(i.item);this.trigger.change();this.trigger.close()},this)});this.dropDown.$element.css("direction",e.closest(".t-rtl").length?"rtl":"");this.fill=function(j){function i(r){var q=r.highlightFirst?n.$items.first():null;if(q){q.addClass("t-state-selected")}}var o=this.loader;var n=this.dropDown;var k=this.minChars;var m=this.text();var p=m.length;if(!n.$items&&!o.ajaxError){if((o.isAjax()||this.onDataBinding)&&p>=k){var l={};l[this.queryString.text]=m;o.ajaxRequest(function(q){this.dataBind(q,true);i(this);b.trigger(this.element,"dataBound");this.trigger.change();if(j){j()}},{data:l})}else{this.dataBind(this.data,true);i(this);if(j){j()}}}};this.text=function(){if(arguments.length>0){this.previousValue=arguments[0]}return this.$text.val.apply(this.$text,arguments)};this.value=function(){return this.text.apply(this,arguments)};this.select=function(q){var p=this.highlight(q);if(p==-1){return p}var j=this.filteredDataIndexes;var l=(j&&j.length)>0?j[p]:p;var q=this.data[l];var n=q.Text?q.Text:q;var i=n;if(this.multiple){var k=this.$element;var o=this.separator;var m=f(k[0],o);i=k.val().split(o);i[m]=n;i=i.join(o)+(m==i.length-1?o:"")}this.$text.val(i)};b.list.common.call(this);b.list.filters.call(this);b.list.initialize.call(this);this.dataBind=function(i,j){this.data=i=(i||[]);this.dropDown.dataBind(i,this.encoded);if(!j){this.$text.val("")}};e.bind({focus:a.proxy(function(i){i.stopPropagation()},this),keydown:a.proxy(h,this),keypress:a.proxy(function(j){var i=j.keyCode||j.charCode;if(i==0||a.inArray(i,b.list.keycodes)!=-1||j.ctrlKey){return true}g(this)},this)});a(document.documentElement).bind("mousedown",a.proxy(function(k){var j=this.dropDown.$element.parent();var i=j.length;if((!i&&c!==k.target)||(i&&!a.contains(c,k.target)&&!a.contains(j[0],k.target))){this.trigger.change();this.trigger.close()}},this));function f(i,j){return i.value.substring(0,b.caretPos(i)).split(j).length-1}function g(i){clearTimeout(i.timeout);i.timeout=setTimeout(function(){i.filtering.filter(i)},i.delay)}function h(r){var m=this.trigger;var j=this.dropDown;var n=r.keyCode||r.which;this.lastKeyCode=n;if(!r.shiftKey&&n>36&&n<41&&n!=37&&n!=39){r.preventDefault();if(j.isOpened()){if(!j.$items){this.fill()}var k=j.$items;var o=k.filter(".t-state-selected:first");var i=[];if(n==38){var s=o.prev();i=s.length?s:k.last()}else{if(n==40){var p=o.next();i=p.length?p:k.first()}}if(i.length){var t=i[0];this.highlight(t);j.scrollTo(t);this.filtering.autoFill(this,i.text())}}}if(n==8||n==46){var l=this.$element;if(l.val()!=""){g(this)}setTimeout(a.proxy(function(){if(l.val()==""){m.close()}},this),0)}if(n==13){if(j.isOpened()){r.preventDefault()}if(j.$items){var q=j.$items.filter(".t-state-selected:first");if(q.length>0){this.select(q[0])}}m.change();m.close();b.list.moveToEnd(this.element)}if(n==27||n==9){clearTimeout(this.timeout);m.change();m.close()}}};a.fn.tAutoComplete=function(c){return b.create(this,{name:"tAutoComplete",init:function(d,e){return new b.autocomplete(d,e)},options:c})};a.fn.tAutoComplete.defaults={encoded:true,effects:b.fx.slide.defaults(),filter:1,delay:200,minChars:1,cache:true,autoFill:false,highlightFirst:false,queryString:{text:"text"},multiple:false,separator:", "}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.calendar.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.calendar.min.js new file mode 100644 index 000000000..e15cd859e --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.calendar.min.js @@ -0,0 +1 @@ +(function(e){var b=e.telerik,c=/{0:?/,d=/{0:?(\S|\s)*}/;b.scripts.push("telerik.calendar.js");function a(i,h,f){var g=new b.datetime();if(i){g=new b.datetime(i)}if(h>g.value){g=new b.datetime(h)}else{if(f').cat('').cat(this.currentView.title(this.viewedMonth)).cat("").cat('=0).cat('">');e(".t-header",this.element).html(j.string());e(".t-nav-next:not(.t-state-disabled)",h).live("click",e.proxy(this.navigateToFuture,this));e(".t-nav-prev:not(.t-state-disabled)",h).live("click",e.proxy(this.navigateToPast,this));e(".t-nav-fast:not(.t-state-disabled)",h).live("click",e.proxy(this.navigateUp,this));e(".t-link.t-state-disabled",h).live("click",b.preventDefault);e("td:not(.t-state-disabled):has(.t-link)",h).live("mouseenter",b.hover).live("mouseleave",b.leave).live("click",e.proxy(this.navigateDown,this));b.bind(this,{change:this.onChange,load:this.onLoad})}});b.calendar.prototype={stopAnimation:false,updateSelection:function(){var i=b.datetime.firstDayOfMonth(this.viewedMonth).toDate();var h=new b.datetime(i).date(32).date(0).toDate();if(this.selectedDate===null||!b.calendar.isInRange(this.selectedDate,i,h)){var g=a(this.selectedDate,this.minDate,this.maxDate);this.goToView(0,g)}var f=this;var j=e(".t-content td:not(.t-other-month)",this.element).removeClass("t-state-selected");if(this.selectedDate!==null){j.filter(function(){return(parseInt(e(this).text(),10)==f.selectedDate.getDate())}).addClass("t-state-selected")}},value:function(){if(arguments.length==0){return this.selectedDate}if(arguments.length==1){this.selectedDate=arguments[0]===null?null:new Date(arguments[0].value?arguments[0].value:arguments[0])}else{if(arguments.length>1){this.selectedDate=new Date(arguments[0],arguments[1],arguments[2])}}this.updateSelection();return this},overlay:function(f){if(!f){return e(".t-overlay",this.element).remove()}e("
    ").addClass("t-overlay").css({opacity:0,width:this.element.offsetWidth,height:this.element.offsetHeight,position:"absolute",top:0,left:0,zIndex:3,backgroundColor:"#fff"}).appendTo(this.element)},goToView:function(h,g){if(h<0||b.calendar.views.length<=h){return}var f=new b.datetime(this.minDate);var i=new b.datetime(this.maxDate);if(typeof g!="undefined"){g=g.value?g:new b.datetime(g);this.viewedMonth=b.datetime.firstDayOfMonth(g)}this.currentView=b.calendar.views[h];e(".t-nav-prev",this.element).toggleClass("t-state-disabled",this.currentView.compare(g,f,false)<=0);e(".t-nav-next",this.element).toggleClass("t-state-disabled",this.currentView.compare(g,i,true)>=0);e(".t-nav-fast",this.element).html(this.currentView.title(g)).toggleClass("t-state-disabled",h==b.calendar.views.length-1);e(".t-content",this.element).html(this.currentView.body(g,f,i,this.selectedDate?new b.datetime(this.selectedDate):null,this.urlFormat,this.dates)).toggleClass("t-meta-view",h==1||h==2);return this},navigateVertically:function(g,i,k,t){i=new b.datetime(i);this.viewedMonth=b.datetime.firstDayOfMonth(i);this.currentView=b.calendar.views[g];this.overlay(true);var r=new b.datetime(this.minDate);var q=new b.datetime(this.maxDate);var s=e(".t-content",this.element);var h=s.outerWidth();var v=s.outerHeight();var l=s.css("font-size");var u=s.css("line-height");if(u==="normal"){u=parseInt(l)*1.5}s.find("td").removeClass("t-state-hover");e(".t-nav-fast",this.element).html(this.currentView.title(i)).toggleClass("t-state-disabled",g==b.calendar.views.length-1);e(".t-nav-prev",this.element).toggleClass("t-state-disabled",this.currentView.compare(this.viewedMonth,r,false)<=0);e(".t-nav-next",this.element).toggleClass("t-state-disabled",this.currentView.compare(this.viewedMonth,q,true)>=0);var j=e('
    ').html(this.currentView.body(i,r,q,this.selectedDate?new b.datetime(this.selectedDate):null,this.urlFormat,this.dates)).toggleClass("t-meta-view",g==1||g==2);var f=this;var p={fontSize:l,lineHeight:u,top:0,left:0,width:h,height:v,opacity:1};var o;if(k){o=b.fx._wrap(s).css({overflow:"hidden",position:"relative"});j.wrap(e("
    ").addClass("t-animation-container").css(e.extend({position:"absolute",zIndex:1,fontSize:1,lineHeight:1,width:t.outerWidth(),height:t.outerHeight(),opacity:0},t.position()))).parent().insertAfter(s);if(!this.stopAnimation){j.parent().animate({fontSize:l,lineHeight:u,top:0,left:0,width:h,height:v,opacity:1},"normal",function(){j.appendTo(f.element);o.remove();f.overlay(false)})}else{s.remove();j.appendTo(f.element);o.remove();f.overlay(false)}}else{j.insertBefore(s);o=b.fx._wrap(j).css({overflow:"hidden",position:"relative"});var n;if(g!=0){n=b.calendar.views[g].verticalDate(this.viewedMonth)}var m={top:(Math.floor(n/4)*v)/3,left:((n%4)*h)/4};s.wrap(e("
    ").addClass("t-animation-container").css(e.extend({position:"absolute"},p))).parent().insertAfter(j);if(!this.stopAnimation){s.parent().animate(e.extend({fontSize:1,lineHeight:1,width:48,height:54,opacity:0},m),"normal",function(){j.appendTo(f.element);o.remove();f.overlay(false)})}else{s.remove();j.appendTo(f.element);o.remove();f.overlay(false)}}b.trigger(this.element,"navigate",{direction:k})},navigateHorizontally:function(f,j,l){j=new b.datetime(j);var g=new b.datetime(this.minDate);var k=new b.datetime(this.maxDate);this.viewedMonth=b.datetime.firstDayOfMonth(b.calendar.fitDateToRange(j,g,k));this.currentView=b.calendar.views[f];e(".t-nav-fast",this.element).html(this.currentView.title(j)).toggleClass("t-state-disabled",f==b.calendar.views.length-1);e(".t-nav-prev",this.element).toggleClass("t-state-disabled",this.currentView.compare(this.viewedMonth,g,false)<=0);e(".t-nav-next",this.element).toggleClass("t-state-disabled",this.currentView.compare(this.viewedMonth,k,true)>=0);this.overlay(true);var i=e('
    ').html(this.currentView.body(j,g,k,this.selectedDate?new b.datetime(this.selectedDate):null,this.urlFormat,this.dates)).toggleClass("t-meta-view",f==1||f==2);var h=e(".t-content",this.element);var o=h.outerWidth();h.add(i).css({width:o,"float":"left"});var n=b.fx._wrap(h).css({position:"relative",width:o*2,"float":"left",left:(l?0:-200)});i[l?"insertAfter":"insertBefore"](h);var m=this;if(!this.stopAnimation){n.animate({left:(l?-200:0)},"normal",function(){i.appendTo(m.element);n.remove();m.overlay(false)})}else{h.remove();i.appendTo(m.element);n.remove();m.overlay(false)}b.trigger(this.element,"navigate",{direction:l})},navigateUp:function(g){if(g){g.preventDefault()}var f=this.currentView.index;this.navigateVertically(f+1,this.viewedMonth.toDate(),false)},navigateDown:function(n,l,f){var h=e(e(n.target).hasClass("t-input")?l:n.target);var o=h.text();var m=f||this.currentView.index;var g=h.attr("href");if(g&&(g.charAt(g.length-1)=="#")){n.preventDefault()}if(m==0){var k=parseInt(o,10);var j=this.viewedMonth.month();if(h.parent().hasClass("t-other-month")){j+=(k<15?1:-1)}var i=new Date(this.viewedMonth.year(),j,k);if(!this.selectedDate||(this.selectedDate>i||i>this.selectedDate)){if(b.trigger(this.element,"change",{previousDate:this.selectedDate,date:i})){return this}this.selectedDate=i}this.updateSelection()}else{if(m!=0){b.calendar.views[m].verticalDate(this.viewedMonth,o)}this.viewedMonth=b.calendar.fitDateToRange(this.viewedMonth,new b.datetime(this.minDate),new b.datetime(this.maxDate));this.navigateVertically(m-1,this.viewedMonth.toDate(),true,h.add(h.parent()).filter("td"))}},navigateToPast:function(g){if(g){g.preventDefault()}var f=this.currentView.index;if(f==0){this.viewedMonth.date(1).date(-1)}else{this.viewedMonth.addYear(-Math.pow(10,f-1))}this.navigateHorizontally(f,this.viewedMonth.toDate(),false)},navigateToFuture:function(g){if(g){g.preventDefault()}var f=this.currentView.index;if(f==0){this.viewedMonth.date(32).date(1)}else{this.viewedMonth.addYear(Math.pow(10,f-1))}this.navigateHorizontally(f,this.viewedMonth.toDate(),true)}};e.fn.tCalendar=function(f){return b.create(this,{name:"tCalendar",init:function(g,h){return new b.calendar(g,h)},options:f})};e.fn.tCalendar.defaults={selectedDate:null,minDate:new Date(1899,11,31),maxDate:new Date(2100,0,1)};e.extend(b.calendar,{views:[{index:0,title:function(f){return new b.stringBuilder().cat(b.cultureInfo.months[f.month()]).cat(" ").cat(f.year()).string()},body:function(j,m,p,o,n,r){var y=(new b.stringBuilder()).cat("");var l=b.cultureInfo.firstDayOfWeek,h=b.cultureInfo.days,x=b.cultureInfo.abbrDays,s=b.cultureInfo.shortestDays;h=h.slice(l).concat(h.slice(0,l));x=x.slice(l).concat(x.slice(0,l));s=s.slice(l).concat(s.slice(0,l));for(var k=0;k<7;k++){y.cat('').cat(s[k]).cat("")}y.cat("");var t=b.datetime.firstVisibleDay(j);var f=j.month();var v=o===null?false:j.year()==o.year();var w;for(var u=0;u<6;u++){y.cat("");for(var g=0;g<7;g++){w=t.month()!=f?"t-other-month":(v&&t.month()==o.month()&&t.date()==o.date())?" t-state-selected":"";y.cat("");if(b.calendar.isInRange(t.toDate(),m.toDate(),p.toDate())){y.cat('').cat(t.date()).cat("")}else{y.cat(" ")}y.cat("");b.datetime.modify(t,b.datetime.msPerDay)}y.cat("")}y.cat("");return y.string()},compare:function(g,f){var i;var l=g.month();var h=g.year();var k=f.month();var j=f.year();if(h>j){i=1}else{if(hk?1:-1}}return i},firstLastDay:function(h,f,g){return f?b.datetime.firstDayOfMonth(h):new b.datetime(h.year(),h.month()+1,0)},navCheck:function(g,f,h){if(h){return new b.datetime(f.year(),f.month()+1,f.date()).value-g.value<=0}else{return this.compare(g,f)===-1}}},{index:1,title:function(f){return f.year()},body:function(g,f,h){return b.calendar.metaView(true,g,function(){var j=[];var m=0;var l=11;if(f.year()==h.year()){m=f.month();l=h.month()}else{if(g.year()==f.year()){m=f.month()}else{if(g.year()==h.year()){l=h.month()}}}for(var k=0;k<12;k++){if(k>=m&&k<=l){j.push(b.cultureInfo.abbrMonths[k])}else{j.push(" ")}}return j})},compare:function(f,g){return f.year()>g.year()?1:f.year()=j&&l+n<=m?l+n:" ")}return k})},compare:function(g,f,i){var j=g.year();var h=(j-j%10);var k=(j-j%10+9);return b.calendar.check(h,k,f,i)},verticalDate:function(f,g){if(!g){return f.year()%10+1}f.year(g)},firstLastDay:function(f,g){return new b.datetime(f.year()-f.year()%10+(g?0:9),0,1)},navCheck:function(h,f,i){var g=this.compare(f,h,i);return i?g==-1:g==1}},{index:3,title:function(g){var f=g.year()-g.year()%100;return f+"-"+(f+99)},body:function(g,f,h){return b.calendar.metaView(false,g,function(){var l=g.year()-g.year()%100;var j=[];for(var m=-1;m<11;m++){var k=l+m*10;if((k+10)>=f.year()&&k<=h.year()){j.push(k+"-
    "+(k+9)+" ")}else{j.push(" 
     ")}}return j})},compare:function(g,f,h){var i=g.year();var k=(i-i%100);var j=(i-i%100+99);return b.calendar.check(k,j,f,h)},verticalDate:function(f,g){if(!g){return Math.ceil(f.year()/10)%10+1}f.year(g.substring(0,g.indexOf("-")))},firstLastDay:function(f,g){return g?new b.datetime(f.year()-(f.year()%100),0,1):new b.datetime(f.year()-(f.year()%100)+99,0,1)},navCheck:function(h,f,i){var g=this.compare(f,h,i);return i?g==-1:g==1}}],check:function(i,j,f,g){var h=function(k){return kf.year()?1:0};return g?h(j):h(i)},html:function(i,g,f,j,k,h){i=i||new b.datetime();f=f||new b.datetime(e.fn.tCalendar.defaults.minDate);j=j||new b.datetime(e.fn.tCalendar.defaults.maxDate);return new b.stringBuilder().cat('
    ').cat('").cat('').cat(b.calendar.views[0].body(i,f,j,g,k,h)).cat("
    ").string()},metaView:function(k,m,g){var h=new b.stringBuilder();var l=g();h.cat("");for(var f=0,j=l.length;f",f>0&&f%4==0).cat("");if(l[f]!==" "&&l[f]!==" 
     "){h.cat('').cat(l[f]).cat("")}else{h.cat(l[f])}h.cat("")}h.cat("");return h.string()},isInRange:function(g,f,h){if(!g){return false}var i=new Date(g.getFullYear(),g.getMonth(),g.getDate());var j=new Date(f.getFullYear(),f.getMonth(),f.getDate());var k=new Date(h.getFullYear(),h.getMonth(),h.getDate());return j-i<=0&&k-i>=0},fitDateToRange:function(h,f,g){if(h.valueg.value){h=new b.datetime(g.value)}return h},isInCollection:function(i,f){var g=f[i.year()];if(g){var h=g[i.month()];if(h&&e.inArray(i.date(),h)!=-1){return true}}return false},findTarget:function(k,n,m,i){k=k.value?k:new b.datetime(k);var f=function(o,p){return e.grep(o,function(q){return e(q).children().eq(0).text().indexOf(p)>-1})[0]};var g=i?"last":"first";var l=e(".t-content:"+g+" td:has(> .t-link)",m).removeClass("t-state-focus");var h;if(n==0){h=e(f(l.filter(":not(.t-other-month)"),k.date()))}else{if(n==1){h=e(f(l,b.cultureInfo.abbrMonths[k.month()]))}else{if(n==2||n==3){var j=k.year();h=e(f(l,n==2?j:j-(j%10)));if(h.length==0&&n==3){h=e(f(l,j-(j%10)+99))}}}}return h},focusDate:function(i,f,h,g){b.calendar.findTarget(i,f,h,g).addClass("t-state-focus")},formatUrl:function(f,i){var h=f.match(d);if(h){h=h[0];var g=h==="{0}"?b.cultureInfo.generalDateTime:h.replace(c,"").replace("}","");return f.replace(h,b.datetime.format(i.toDate(),g))}return f}})})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.chart.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.chart.min.js new file mode 100644 index 000000000..1b552a7cb --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.chart.min.js @@ -0,0 +1 @@ +(function(){var aE=jQuery,U=document,v=aE.telerik,a7=v.Class,I=v.Component,aF=v.DataSource,ae=v.template,O=function(){return v.formatString.apply(v,arguments)},aJ=aE.proxy;var at="above",S=1,a4="bar",ag=0.7,ax=1.5,h=0.4,a0="below",aN="#000",a="bottom",aZ="center",aj="change",aV="circle",R="column",a1=3,aa="dataBound",K=400,aP=6,ac=600,s="glass",a9="height",r="horizontal",aq="left",u="line",aL=6,d="square",x="none",ao="object",au="outside",l="right",ar="12px Verdana, sans-serif",bc="16px Verdana, sans-serif",aC="square",ad="http://www.w3.org/2000/svg",ap="top",F="triangle",V="undefined",aB="vertical",q="width",Z="#fff",ah="x",ai="y",aH=0.2;var a6=I.extend({init:function(be,bf){var Y=this,X=bf?bf.theme:"";I.fn.init.call(Y,be);Y.options=a2(Y.options,X?a6.Themes[X]||a6.Themes[X.toLowerCase()]:{},bf);Y.bind([aa],Y.options);if(Y.options.dataSource){Y._initDataSource()}Y.refresh()},options:{chartArea:{},title:{visible:true},legend:{visible:true},valueAxis:{type:"Numeric"},categoryAxis:{categories:[]},seriesColors:["#d7df23","#adc32b","#799b28","#4c7520"],seriesDefaults:{type:R,data:[],bar:{gap:ax,spacing:h},column:{gap:ax,spacing:h}},series:[]},types:{},refresh:function(){var X=this;X._applyDefaults();if(X.options.dataSource){X.dataSource.read()}else{X._redraw()}},_redraw:function(){var Y=this,be=Y.options,bf=new a8(be.chartArea);if(be.title&&be.title.visible&&be.title.text){bf.children.push(new an(be.title))}if(be.legend.visible){var X=a2({},be.legend,{series:be.series});bf.children.push(new c(X))}bf.children.push(new m(Y.options));Y._model=bf;bf.reflow();bf.getView().renderTo(Y.element[0])},_applyDefaults:function(){var bi=this,Y=bi.element,be=bi.options,bg=be.series,bj,bm=be.seriesColors,bf=be.chartArea,X=be.seriesDefaults,bk=a2({},be.seriesDefaults);delete bk.bar;delete bk.column;delete bk.line;for(var bh=0,bl=bg.length;bh0){var bn=z(bi.padding);bn.left+=bk*2;be.pad(bn);bo.children.unshift(bg.createRect(be,{stroke:Y.width?Y.color:"",strokeWidth:Y.width,fill:bi.background}))}return[bo]},verticalLayout:function(bn){var bo=this,bk=bo.options,bl=bo.children,bh=bl.length,Y=bl[0].box.clone(),bf,bm,bi=z(bk.margin),be=bo.markerSize()*2;for(var bg=1;bg0){return X[0].box.height()/2}else{return 0}}});var aA=J.extend({init:function(X){var Y=this;J.fn.init.call(Y,X)},options:{labels:{},line:{width:1,color:aN},majorTickType:au,majorTickSize:4,minorTickType:x,minorTickSize:3,axisCrossingValue:0,minorGridLines:{visible:false,width:1,color:aN},margin:5},renderTicks:function(bf){var bi=this,Y=bi.options,bh=Y.orientation===aB,X=bi.box,be=bi.getMajorTickPositions(),bg=[];if(Y.majorTickType.toLowerCase()===au){bg=bg.concat(aE.map(be,function(bj){return{pos:bj,size:Y.majorTickSize,width:Y.line.width,color:Y.line.color}}))}if(Y.minorTickType.toLowerCase()===au){bg=bg.concat(aE.map(bi.getMinorTickPositions(),function(bj){if(Y.majorTickType!==x){if(!p(bj,be)){return{pos:bj,size:Y.minorTickSize,width:Y.line.width,color:Y.line.color}}}else{return{pos:bj,size:Y.minorTickSize,width:Y.line.width,color:Y.line.color}}}))}return aE.map(bg,function(bj){if(bh){return bf.createLine(X.x2-bj.size,bj.pos,X.x2,bj.pos,{strokeWidth:bj.width,stroke:bj.color})}else{return bf.createLine(bj.pos,X.y1,bj.pos,X.y1+bj.size,{strokeWidth:bj.width,stroke:bj.color})}})},getActualTickSize:function(){var Y=this,be=Y.options,X=0;if(be.majorTickType!=x&&be.minorTickType!=x){X=Math.max(be.majorTickSize,be.minorTickSize)}else{if(be.majorTickType!=x){X=be.majorTickSize}else{if(be.minorTickType!=x){X=be.minorTickSize}}}return X},arrangeLabels:function(bo,bn,be){var bs=this,bq=bs.options,bt=bs.options.orientation===aB,bp=bs.children,Y=bs.getMajorTickPositions(),br=bs.getActualTickSize();for(var bl=0;bl0){if(bf){bg.push(X.createLine(bh.box.x2,be[0],bh.box.x2,be[be.length-1],{strokeWidth:Y.line.width,stroke:Y.line.color,zIndex:Y.zIndex}))}else{bg.push(X.createLine(be[0],bh.box.y1,be[be.length-1],bh.box.y1,{strokeWidth:Y.line.width,stroke:Y.line.color,zIndex:Y.zIndex}))}[].push.apply(bg,bh.renderTicks(X))}return bg},autoMajorUnit:function(bg,bh){var Y=bh-bg;if(Y==0){if(bh==0){return 0.1}Y=Math.abs(bh)}var be=Math.pow(10,Math.floor(Math.log(Y)/Math.log(10))),X=M((Y/be),aP),bf=1;if(X<1.904762){bf=0.2}else{if(X<4.761904){bf=0.5}else{if(X<9.523809){bf=1}else{bf=2}}}return M(be*bf,aP)},autoAxisMax:function(X,bf){if(X==0&&bf==0){return 1}var Y;if(X<=0&&bf<=0){bf=X==bf?0:bf;var be=Math.abs((bf-X)/bf);if(be>aH){return 0}Y=bf-((X-bf)/2)}else{X=X==bf?0:X;Y=bf+0.05*(bf-X)}var bg=this.autoMajorUnit(X,bf);return am(Y,bg)},autoAxisMin:function(Y,bf){if(Y==0&&bf==0){return 0}var be;if(Y>=0&&bf>=0){Y=Y==bf?0:Y;var X=(bf-Y)/bf;if(X>aH){return 0}be=Y-((bf-Y)/2)}else{bf=Y==bf?0:bf;be=Y+0.05*(Y-bf)}var bg=this.autoMajorUnit(Y,bf);return a5(be,bg)},getMajorDivisions:function(){var X=this.options;return Math.round((X.max-X.min)/X.majorUnit)+1},getMinorDevisions:function(){var X=this.options;return((Math.round(X.max-X.min)/X.majorUnit)*5)+1},getTickPositions:function(bg){var bm=this,be=bm.options,bk=be.orientation===aB,bj=bm.getAxisLineBox(),bl=bg,bi=bk?bj.height():bj.width(),X=bi/(bl-1),bf=bj[(bk?ai:ah)+1],Y=[];for(var bh=0;bh1){bf=X[0].box[bh]()/2;bg=X[X.length-1].box[bh]()/2}if(bi){return new aW(be.x2,be.y1+bf,be.x2,be.y2-bg)}else{return new aW(be.x1+bf,be.y1,be.x2-bg,be.y1)}},getSlot:function(bk,bl){var bm=this,bi=bm.options,bn=bi.orientation===aB,Y=bn?ai:ah,X=bm.getAxisLineBox(),bh=X[Y+1],bf=bn?X.height():X.width(),be=bf/(bi.max-bi.min),bk=typeof bk===V?bi.axisCrossingValue:bk,bl=typeof bl===V?bi.axisCrossingValue:bl,bk=Math.max(Math.min(bk,bi.max),bi.min),bl=Math.max(Math.min(bl,bi.max),bi.min),bg,bj,bo=new aW(X.x1,X.y1,X.x1,X.y1);if(bn){bg=bh+be*(bi.max-Math.max(bk,bl));bj=bh+be*(bi.max-Math.min(bk,bl))}else{bg=bh+be*(Math.min(bk,bl)-bi.min);bj=bh+be*(Math.max(bk,bl)-bi.min)}bo[Y+1]=bg;bo[Y+2]=bj;return bo}});var e=aA.extend({init:function(Y){var bh=this;aA.fn.init.call(bh,Y);var Y=bh.options,bf=Y.orientation===aB?l:aZ,bg=a2({},Y.labels,{align:bf});for(var X=0;X0){if(be){bg.push(X.createLine(Y.box.x2,Y.box.y1,Y.box.x2,Y.box.y2,{strokeWidth:bf.line.width,stroke:bf.line.color,zIndex:bf.zIndex}))}else{bg.push(X.createLine(Y.box.x1,Y.box.y1,Y.box.x2,Y.box.y1,{strokeWidth:bf.line.width,stroke:bf.line.color,zIndex:bf.zIndex}))}[].push.apply(bg,Y.renderTicks(X))}return bg},getTickPositions:function(Y){var bk=this,be=bk.options,bj=be.orientation===aB,X=bj?bk.box.height():bk.box.width(),bh=X/Y,bf=bj?bk.box.y1:bk.box.x1,bi=[];for(var bg=0;bg0){bk.alignTo(X[bg-1].box,bi)}else{bf=bm.box=bk.clone()}bh.reflow(bk);bf.wrap(bk)}}});var aR=J.extend({init:function(X){var Y=this;J.fn.init.call(Y,X)},options:{color:Z,border:{width:1},isVertical:true,overlay:s},reflow:function(X){var be=this,bg=be.children;be.box=X;for(var Y=0,bf=bg.length;Y0?{stroke:be.getBorderColor(),strokeWidth:Y.border.width}:{},bf=be.box,bh=a2({fill:Y.color,overlay:Y.overlay,normalAngle:bi?0:90,fillOpacity:Y.opacity,strokeOpacity:Y.opacity},bg),bj=[];bj.push(X.createRect(bf,bh));[].push.apply(bj,J.fn.getViewElements.call(be,X));return bj},getBorderColor:function(){var Y=this,bf=Y.options,X=bf.color,be=bf.border.color;if(typeof be===V){be=new aQ(X).brightness(ag).toHex()}return be}});var aM=J.extend({init:function(X,be){var Y=this;J.fn.init.call(Y,be);Y.plotArea=X;Y._seriesMin=Number.MAX_VALUE;Y._seriesMax=-Number.MAX_VALUE;Y._bars=[];Y.render()},options:{series:[],isVertical:true,isStacked:false},render:function(){var X=this,bg=X.options,Y=bg.isStacked,be=[],bf=[];X.traverseDataPoints(function(bh,bi,bk,bl){if(typeof bh!==V){if(Y){var bj=bh>0?be:bf;bj[bi]=bj[bi]?bj[bi]+bh:bh}else{X._seriesMin=Math.min(X._seriesMin,bh);X._seriesMax=Math.max(X._seriesMax,bh)}}X.addValue(bh,bi,bk,bl)});if(Y){X._seriesMin=bb(bf.length?bf:be);X._seriesMax=aU(be.length?be:bf)}},addValue:function(bh,bj,bq,bf){var be=this,bl=be.options,bn=be.children,bp=be.options.isStacked,bk=a2({isVertical:bl.isVertical},bq.labels);if(bp){if(bk.position=="outsideEnd"){bk.position="insideEnd"}}var bo=new aR({color:bq.color,opacity:bq.opacity,border:bq.border,isVertical:bl.isVertical,overlay:bq.overlay});if(bk.visible&&bh){var X=new E(bh,bk);bo.children.push(X)}be._bars.push(bo);var bg=bn[bj];if(!bg){bg=bn[bj]=new aD({isVertical:!bl.isVertical,gap:bl.gap,spacing:bl.spacing})}if(bp){var Y=bg.children[0],bm,bi;if(!Y){Y=new J();bg.children.push(Y);bm=new B({isVertical:bl.isVertical});bi=new B({isVertical:bl.isVertical,isReversed:true});Y.children.push(bm,bi)}else{bm=Y.children[0];bi=Y.children[1]}if(bh>0){bm.children.push(bo)}else{bi.children.push(bo)}}else{bg.children.push(bo)}},valueRange:function(){var X=this;if(X._bars.length){return{min:X._seriesMin,max:X._seriesMax}}return null},categoriesCount:function(){var X=this,bg=X.options.series,bf=0;for(var Y=0,be=bg.length;Y=bl;var bn=bm.children[0];if(bn){bn.options.aboveAxis=bq;bn.content=bn.content||bl}bm.box=bt;bm.options.aboveAxis=bq;if(!Y[br]){Y[br]=bi?bp:bo}});X.reflowCategories(Y);X.box=bg},reflowCategories:function(X){var Y=this,bf=Y.children,bg=bf.length,be;for(be=0;be0){bl.children.push(be)}else{bh.children.push(be)}}else{bm.push(be)}},getViewElements:function(bi){var bh=this,bk=bh.options,bm=aM.fn.getViewElements.call(bh,bi),bl=bk.series,bp,be,X=bh.seriesPoints,bo=X.length,bg,bj,bf,Y,bn,bq=[];for(be=0;be0){be=bi[0];Y=be.type===a4;bf=new aM(this,{series:bi,isVertical:!Y,isStacked:be.stack,gap:be.gap,spacing:be.spacing});bl=Math.max(0,bf.categoriesCount()-X.length);[].push.apply(bo.categoryAxis.categories,new Array(bl));bn=bf.valueRange()||bn;bg.push(bf)}if(bp.length>0){be=bp[0];bq=new bd(this,{isVertical:!Y,isStacked:be.stack,series:bp});bl=Math.max(0,bq.categoriesCount()-X.length);[].push.apply(bo.categoryAxis.categories,new Array(bl));var bj=bq.valueRange()||bn;bn.min=Math.min(bn.min,bj.min);bn.max=Math.max(bn.max,bj.max);bg.push(bq)}[].push.apply(bs.children,bg);bs.createAxes(bn.min,bn.max,Y)},createAxes:function(bg,be,X){var bi=this,Y=bi.options,bh=Y.categoryAxis.categories.length,bf=new e(a2({orientation:X?aB:r,axisCrossingValue:X?bh:0},Y.axesDefaults,Y.categoryAxis)),bj=new aX(bg,be,a2({orientation:X?r:aB},Y.axesDefaults,Y.valueAxis));bi.axisX=X?bj:bf;bi.axisY=X?bf:bj;bi.children.push(bi.axisY);bi.children.push(bi.axisX)},reflow:function(bn){var bo=this,be=bo.charts,bp=bo.axisY,bq=bo.axisX,bi=bo.options.plotArea,bh=z(bi.margin);bo.box=bn.clone();bo.box.unpad(bh);bp.reflow(bo.box);bq.reflow(bo.box);bo.alignAxes();var X=bp.box.clone().wrap(bq.box);var bk=X.height()-bo.box.height();var bl=X.width()-bo.box.width();var bf=bo.box.x1-X.x1;var bm=bo.box.y1-X.y1;bp.reflow(bp.box.translate(bf,bm).shrink(0,bk));bq.reflow(bq.box.translate(bf,bm).shrink(bl,0));bo.alignAxes();for(var bg=0;bg<#= d.renderDefinitions() #><#= d.renderContent() #>")}},options:{width:ac,height:K,idPrefix:""},renderTo:function(be){var X=this,Y=X.render();a3(be,Y);X.alignToScreen(be.firstChild)},renderDefinitions:function(){var Y=this,X=G.fn.renderDefinitions.call(Y);return X.length>0?""+X+"":""},createGroup:function(X){return new f(X)},createText:function(X,Y){return new av(X,Y)},createRect:function(X,Y){return this.decorate(new aT([[X.x1,X.y1],[X.x2,X.y1],[X.x2,X.y2],[X.x1,X.y2],[X.x1,X.y1]],Y))},createLine:function(be,bf,bg,X,Y){return new aT([[be,bf],[bg,X]],Y)},createPath:function(Y,X){return new aT(Y,X)},createCircle:function(Y,be,X){return new ay(Y,be,X)},createGradient:function(X){return new P(X)},alignToScreen:function(X){if(X.getScreenCTM){var bf=X.getScreenCTM(),Y=-bf.e%1,bg=-bf.f%1,be=X.style;if(Y!==0||bg!==0){be.left=Y+"px";be.top=bg+"px"}}}});var f=y.extend({init:function(Y){var X=this;y.fn.init.call(X,Y);X.template=f.template;if(!X.template){X.template=f.template=ba("<#= d.renderContent() #>")}}});var av=y.extend({init:function(X,Y){var be=this;y.fn.init.call(be,Y);be.content=X;be.template=av.template;if(!be.template){be.template=av.template=ba("<#= d.content #>")}},options:{x:0,y:0,baseline:0,font:bc}});var aT=y.extend({init:function(Y,be){var X=this;y.fn.init.call(X,be);X.template=aT.template;if(!X.template){X.template=aT.template=ba("<#= d.renderStrokeWidth() #>stroke-linecap='square' fill-opacity='<#= d.options.fillOpacity #>' stroke-opacity='<#= d.options.strokeOpacity #>' fill='<#= d.options.fill || \"none\" #>'>")}X.points=Y||[]},options:{fill:"",fillOpacity:1,strokeOpacity:1},clone:function(){var X=this;return new aT(X.points,a2({},X.options))},renderPoints:function(){var be=this,X=this.points,bh=X.length,bj=be.options.strokeWidth,bf=bj&&bj%2!==0,bl=bf?j:Math.round,Y=X[0],bk="M"+bl(Y[0])+" "+bl(Y[1]);for(var bg=1;bg0?"stroke-width='"+Y.strokeWidth+"' ":""},renderStroke:function(){var X=this,Y=X.options;return Y.stroke?"stroke='"+Y.stroke+"' ":""}});var ay=y.extend({init:function(be,bf,X){var Y=this;y.fn.init.call(Y,X);Y.center=be;Y.radius=bf;Y.template=ay.template;if(!Y.template){Y.template=ay.template=ba(" <#= d.renderAttr(\"stroke-width\", d.options.strokeWidth) #>fill='<#= d.options.fill || \"none\" #>'>")}},options:{fill:""}});var P=y.extend({init:function(Y){var X=this;y.fn.init.call(X,Y);X.template=P.template;X.stopTemplate=P.stopTemplate;if(!X.template){X.template=P.template=ba(" <#= d.renderStops() #>");X.stopTemplate=P.stopTemplate=ba("")}},options:{id:"",rotation:0},renderStops:function(){var bf=this,Y=bf.options.stops,bi=bf.stopTemplate,X,be=Y.length,bh,bg="";for(X=0;X<#= d.renderContent() #>
    ")}},options:{width:ac,height:K},renderTo:function(X){if(U.namespaces){U.namespaces.add("kvml","urn:schemas-microsoft-com:vml","#default#VML")}X.innerHTML=this.render()},createText:function(X,Y){return new aK(X,Y)},createRect:function(X,Y){return this.decorate(new n([[X.x1,X.y1],[X.x2,X.y1],[X.x2,X.y2],[X.x1,X.y2],[X.x1,X.y1]],Y))},createLine:function(be,bf,bg,X,Y){return new n([[be,bf],[bg,X]],Y)},createPath:function(Y,X){return new n(Y,X)},createCircle:function(Y,be,X){return new w(Y,be,X)},createGroup:function(X){return new L(X)},createGradient:function(X){return new D(X)}});var aK=y.extend({init:function(X,Y){var be=this;y.fn.init.call(be,Y);be.content=X||"";be.template=aK.template;if(!be.template){be.template=aK.template=ba("<#= d.content #>")}},options:{x:0,y:0,font:bc,color:aN}});var n=y.extend({init:function(Y,be){var X=this;y.fn.init.call(X,be);X.template=n.template;if(!X.template){X.template=n.template=ba("<#= d.fill.render() + d.stroke.render() #>")}X.points=Y||[];X.stroke=new ak(X.options);X.fill=new aS(X.options)},options:{fill:""},renderPoints:function(){var X=this.points,bf=X.length,be=X[0],bh="m "+M(be[0])+","+M(be[1]);if(bf>1){bh+=" l";for(var Y=1;Y\' <#= d.renderAttr("color", d.options.stroke) #><#= d.renderAttr("weight", d.options.strokeWidth) #><#= d.renderAttr("opacity", d.options.strokeOpacity) #> />')}}});var aS=y.extend({init:function(Y){var X=this;y.fn.init.call(X,Y);X.template=aS.template;if(!X.template){X.template=aS.template=ba('\' <#= d.renderAttr("color", d.options.fill) #><#= d.renderAttr("weight", d.options.fillWidth) #><#= d.renderAttr("opacity", d.options.fillOpacity) #> />')}}});var w=y.extend({init:function(be,bf,X){var Y=this;y.fn.init.call(Y,X);Y.center=be;Y.radius=bf;Y.template=w.template;if(!Y.template){Y.template=w.template=ba("' stroked='<#= !!d.options.stroke #>' strokeweight='<#= d.options.strokeWidth || '' #>' fillcolor='<#= d.options.fill #>' filled='<#= !!d.options.fill || d.children.length > 0 #>'>")}},options:{fill:""}});var L=y.extend({init:function(Y){var X=this;y.fn.init.call(X,Y);X.template=L.template;if(!X.template){X.template=L.template=ba("
    <#= d.renderContent() #>
    ")}}});var D=y.extend({init:function(Y){var X=this;y.fn.init.call(X,Y);X.template=D.template;if(!X.template){X.template=D.template=ba("")}},options:{rotation:0,opacity:1},renderColors:function(){var bf=this,Y=bf.options,be=Y.stops,bh,X,bi=be.length,bg=[],bj=Math.round;for(X=0;X").appendTo(U.body)[0]}for(var bk in Y){bg.style[bk]=Y[bk]}bg.innerHTML=bj;bg.appendChild(bh);var X={width:bg.offsetWidth-S,height:bg.offsetHeight,baseline:bh.offsetTop+S};Q.cache[bf]=X;return X}Q.cache=[];Q.baselineMarker=aE("
    ")[0];function k(Y){var be=[];for(var X in Y){be.push(X+Y[X])}return be.sort().join(" ")}function T(bj,bi){if(bj.x1==bi.x1&&bj.y1==bi.y1&&bj.x2==bi.x2&&bj.y2==bi.y2){return bi}var bf=Math.min(bj.x1,bi.x1);var bg=Math.max(bj.x1,bi.x1);var bh=Math.min(bj.x2,bi.x2);var bk=Math.max(bj.x2,bi.x2);var bl=Math.min(bj.y1,bi.y1);var bm=Math.max(bj.y1,bi.y1);var X=Math.min(bj.y2,bi.y2);var Y=Math.max(bj.y2,bi.y2);var be=[];be[0]=new aW(bg,bl,bh,bm);be[1]=new aW(bf,bm,bg,X);be[2]=new aW(bh,bm,bk,X);be[3]=new aW(bg,X,bh,Y);if(bj.x1==bf&&bj.y1==bl||bi.x1==bf&&bi.y1==bl){be[4]=new aW(bf,bl,bg,bm);be[5]=new aW(bh,X,bk,Y)}else{be[4]=new aW(bh,bl,bk,bm);be[5]=new aW(bf,X,bg,Y)}return aE.grep(be,function(bn){return bn.height()>0&&bn.width()>0})[0]}function j(X){return Math.round(X)+0.5}function bb(X){return aO(X).min}function aU(X){return aO(X).max}function aO(Y){var bf=Number.MAX_VALUE,bh=-Number.MAX_VALUE;for(var X=0,bg=Y.length;X",be=U.createElement("div"),Y=typeof DOMParser!=V;be.innerHTML=X;if(Y&&be.firstChild.namespaceURI!=ad){a3=function(bi,bj){var bg=new DOMParser(),bf=bg.parseFromString(bj,"text/xml"),bh=U.adoptNode(bf.documentElement);bi.innerHTML="";bi.appendChild(bh)}}})();var aQ=function(X){var bh=this,bg=aQ.formats,Y,bi,bf,be;if(arguments.length===1){X=bh.resolveColor(X);for(i=0;i255)?255:X)},padDigit:function(X){return(X.length===1)?"0"+X:X},brightness:function(X){var Y=this,be=Math.round;Y.r=be(Y.normalizeByte(Y.r*X));Y.g=be(Y.normalizeByte(Y.g*X));Y.b=be(Y.normalizeByte(Y.b*X));return Y}};aQ.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(X){return[parseInt(X[1],10),parseInt(X[2],10),parseInt(X[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(X){return[parseInt(X[1],16),parseInt(X[2],16),parseInt(X[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(X){return[parseInt(X[1]+X[1],16),parseInt(X[2]+X[2],16),parseInt(X[3]+X[3],16)]}}];aQ.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};function C(X,bf,bh){var Y=new aQ(X),be=new aQ(bf),bi=al(Y.r,be.r,bh),bj=al(Y.g,be.g,bh),bg=al(Y.b,be.b,bh);return new aQ(bi,bj,bg).toHex()}function al(X,Y,be){return Math.round(be*Y+(1-be)*X)}function aI(bg,Y){var bj=Y.stops,bf=bj.length,bh=a2({},Y),X,be,bi;bh.stops=[];for(X=0;X").string())};j.render();if(p){f=f.previousSibling}}this.element=f;var n=this.$element=c(f);this.loader=new a.list.loader(this);this.trigger=new a.list.trigger(this);var g=this.$wrapper=n.closest(".t-combobox");var e=this.$wrapper.find(".t-select");var i=this.$text=this.$wrapper.find("> .t-dropdown-wrap > .t-input").attr("autocomplete","off").bind("paste",c.proxy(function(r){setTimeout(c.proxy(function(){this.$element.val(r.target.value);m(this)},this),0)},this));var l=function(t){var r="class",s=n.attr(r);if((t.attrName&&t.attrName=="class")||(t.propertyName&&t.propertyName=="className")){if(s!=i.attr(r)){i.attr(r,s).addClass("t-input")}}};if(c.browser.msie){f.attachEvent("onpropertychange",l)}else{n.bind("DOMAttrModified",l)}n.closest("form").bind("reset",c.proxy(function(s){var r=this;window.setTimeout(function(){if(n.val()!=""){r.value(n.val())}else{r.highlight(0);r.selectedIndex=0}},1)},this));this.filtering=new a.list.filtering(this);this.filtering.autoFill=function(r,s){if(r.autoFill&&(r.lastKeyCode!=8&&r.lastKeyCode!=46)){var t=r.$text[0];var x=a.caretPos(t);var w=t.value.substring(0,x);var v=s.toLowerCase().indexOf(w.toLowerCase());if(v!=-1){var u=s.substring(v+w.length);t.value=w+u;a.list.selection(t,x,x+u.length)}}};this.dropDown=new a.dropDown({attr:this.dropDownAttr,effects:this.effects,onOpen:c.proxy(function(){var s=this.data;var r=this.dropDown;if(s.length==0){return}var u=this.$text.val();var t=this.selectedIndex;if(t!=-1&&this.isFiltered){if(u==s[t].Text){this.filteredDataIndexes=[];r.onItemCreate=null;if(this.filter){r.dataBind(this.data,this.encoded)}this.select(r.$items[t])}else{this.filters[this.filter](this,this.data,u)}this.isFiltered=false}},this),onClick:c.proxy(function(r){this.select(r.item);this.trigger.change();this.trigger.close();i.focus()},this)});this.dropDown.$element.css("direction",g.closest(".t-rtl").length?"rtl":"");this.enable=function(){g.removeClass("t-state-disabled");i.removeAttr("disabled");n.removeAttr("disabled");if(!e.data("events")){e.bind("click",c.proxy(h,this))}};this.disable=function(){g.addClass("t-state-disabled");i.attr("disabled","disabled");n.attr("disabled","disabled");e.unbind("click")};this[this.enabled?"enable":"disable"]();this.fill=function(s){function u(A){var z=A.selectedValue||A.value();if(z){A.value(z);return}var B=r.$items;var D=A.index;var C=B.filter(".t-state-selected");var E=C.length;var F=D!=-1&&D0?C[E-1]:null;if(F){A.select(F)}else{A.selectedIndex=-1;if(A.highlightFirst){A.highlight(B[0])}}}var v=this.loader;var r=this.dropDown;var x=this.minChars;var w=this.text();var t=w.length;if(!r.$items&&!v.ajaxError){if((v.isAjax()||this.onDataBinding)&&t>=x){var y={};y[this.queryString.text]=w;v.ajaxRequest(function(z){this.dataBind(z,true);u(this);a.trigger(this.element,"dataBound");this.trigger.change();if(s){s()}},{data:y})}else{this.dataBind(this.data,true);u(this);if(s){s()}}}};this.reload=function(){this.dropDown.$items=null;this.fill()};this.select=function(t){var s=this.highlight(t);if(s!=-1){var u=this.filteredDataIndexes;this.selectedIndex=(u&&u.length)>0?u[s]:s;var r=this.data[this.selectedIndex];a.list.updateTextAndValue(this,r.Text,r.Value)}return s};this.text=function(){return this.$text.val.apply(this.$text,arguments)};this.value=function(){if(arguments.length){var s=arguments[0];var r=this.select(function(t){return s==(t.Value||t.Text)});if(r==-1){this.selectedIndex=r;this.$element.val(s);this.text(s)}this.previousValue=this.$element.val()}else{return this.$element.val()}};a.list.common.call(this);a.list.filters.call(this);a.list.initialize.call(this);c(document.documentElement).bind("mousedown",c.proxy(function(u){var r=this.dropDown.$element;var s=r&&r.parent().length>0;if(c.contains(this.$wrapper[0],u.target)||(s&&c.contains(r.parent()[0],u.target))){return}if(this._textChanged){this._textChanged=false;var t=b(this.data,this.$text.val());if(t){this.text(t.Text);this.$element.val(t.Value||t.Text)}}this.trigger.change();this.trigger.close()},this));this.$text.bind({change:c.proxy(function(r){r.stopPropagation()},this),keydown:c.proxy(k,this),keypress:c.proxy(q,this),focus:c.proxy(function(u){if(this.openOnFocus){var s=this.trigger;var r=this.dropDown;if(!r.$items){this.fill(s.open)}else{s.open()}}var t=this.$text;a.list.selection(t[0],0,t.val().length)},this)});function h(t){var r=this.dropDown,s=this.trigger;this.loader.ajaxError=false;if(!r.isOpened()){if(!r.$items){this.fill(s.open)}else{s.open()}i[0].focus()}else{s.close()}}function m(r){clearTimeout(r.timeout);r.timeout=setTimeout(function(){r.filtering.filter(r)},r.delay)}function k(z){var u=this.trigger;var r=this.dropDown;var w=z.keyCode||z.which;this.lastKeyCode=w;if(z.altKey&&(w==38||w==40)){var s=w==38?u.close:u.open;if(!r.$items){this.fill(s)}else{s()}return}if(!z.shiftKey&&(w==38||w==40)){z.preventDefault();var y=c.proxy(function(){var B=r.$items,A=B.filter(".t-state-selected:first");var C=A.length==0||B.length==1||this.selectedIndex==-1?B.first():(w==38)?A.prev():(w==40)?A.next():[];if(C.length){var D=C[0];this.select(D);r.scrollTo(D);if(!r.isOpened()){u.change()}}},this);if(!r.$items){if(this.index!=-1||this.value()||this.selectedValue){y=null}this.fill(y);return}y()}if(w==8||w==46){var v=this.$text;if(v.val()!=""){m(this)}setTimeout(c.proxy(function(){if(v.val()==""){this.selectedIndex=-1;this.$element.val("")}else{this.$element.val(this.$text.val())}},this),0)}if(w==13){if(r.isOpened()){z.preventDefault();var x=r.$items.filter(".t-state-selected:first");if(x.length>0){this.select(x[0])}else{this.$element.val(this.$text.val())}u.change();u.close();a.list.moveToEnd(this.$text[0])}}if(w==27||w==9){clearTimeout(this.timeout);var t=b(this.data,this.$text.val());if(t){this.text(t.Text);this.$element.val(t.Value||t.Text)}u.change();u.close();if(w==27){this.$text.blur()}}}function q(s){this._textChanged=true;var r=s.keyCode||s.charCode;if(!s.shiftKey&&(r==0||c.inArray(r,a.list.keycodes)!=-1||s.ctrlKey)){return true}setTimeout(c.proxy(function(){this.$element.val(this.$text.val())},this),0);m(this)}};function b(f,h){if(!h){return}h=h.toLowerCase();if(f){for(var d=0,g=f.length;d=180&&ad<=191;var y=/d{1,4}|M{1,4}|yy(?:yy)?|([Hhmstf])\1*|"[^"]*"|'[^']*'/g;var f=(navigator.userAgent.search(/like\sMac\sOS\sX;.*Mobile\/\S+/)!=-1);var u=(navigator.userAgent.search(/4_1\slike\sMac\sOS\sX;.*Mobile\/\S+/)!=-1);var aa=m.telerik={create:function(e,av){var ax=av.name;var aw=m.extend({},m.fn[ax].defaults,av.options);return e.each(function(){var ay=m(this);aw=m.meta?m.extend({},aw,ay.data()):aw;if(!ay.data(ax)){var az=av.init(this,aw);ay.data(ax,az);aa.trigger(this,"load");if(av.success){av.success(az)}}})},toJson:function(e){function av(ax){return"["+m.map(ax,aw).join(",")+"]"}function aw(az){var ay=[];for(var aA in az){var ax=az[aA];if(m.isArray(ax)){ay.push('"'+aA+'":'+av(ax))}else{if(typeof ax!="object"){ay.push('"'+aA+'":"'+(ax==null?"":ax)+'"')}else{ay.push('"'+aA+'":'+aw(ax))}}}return"{"+ay.join(",")+"}"}if(m.isArray(e)){return av(e)}else{return aw(e)}},delegate:function(av,e){return function(aw){e.apply(av,[aw,this])}},stop:function(e,av){return function(aw){aw.stopPropagation();e.apply(av||this,arguments)}},stopAll:function(e,av){return function(aw){aw.preventDefault();aw.stopPropagation();e.apply(av||this,arguments)}},bind:function(e,av){var aw=m(e.element?e.element:e);m.each(av,function(ax){if(m.isFunction(this)){aw.bind(ax,this)}})},preventDefault:function(av){av.preventDefault()},hover:function(){m(this).addClass("t-state-hover")},leave:function(){m(this).removeClass("t-state-hover")},buttonHover:function(){m(this).addClass("t-button-hover")},buttonLeave:function(){m(this).removeClass("t-button-hover")},stringBuilder:function(){this.buffer=[]},ajaxError:function(ax,aw,e,ay){var av=this.trigger(ax,aw,{XMLHttpRequest:e,textStatus:ay});if(!av){if(ay=="error"&&e.status!="0"){alert("Error! The requested URL returned "+e.status+" - "+e.statusText)}if(ay=="timeout"){alert("Error! Server timeout.")}}return av},trigger:function(aw,av,ax){ax=m.extend(ax||{},new m.Event(av));ax.stopPropagation();m(aw).trigger(ax);return ax.isDefaultPrevented()},getType:function(e){if(e instanceof Date){return"date"}if(typeof e==="number"){return"number"}return"object"},formatString:function(){var ay=arguments[0];for(var e=0,av=arguments.length-1;e-1;ax--){if(e.substr(ax,aw)==av){return ax}}return -1},caretPos:function(e){var av=-1;if(document.selection){av=Math.abs(e.document.selection.createRange().moveStart("character",-e.value.length))}else{if(e.selectionStart!==undefined){av=e.selectionStart}}return av},encode:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/\u00a0/g," ").replace(/'/g,"'")},formatters:{},fx:{},cultureInfo:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbrDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shortestDays:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],abbrMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longTime:"h:mm:ss tt",longDate:"dddd, MMMM dd, yyyy",shortDate:"M/d/yyyy",shortTime:"h:mm tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",generalDateShortTime:"M/d/yyyy h:mm tt",generalDateTime:"M/d/yyyy h:mm:ss tt",sortableDateTime:"yyyy'-'MM'-'ddTHH':'mm':'ss",universalSortableDateTime:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",monthYear:"MMMM, yyyy",monthDay:"MMMM dd",today:"today",tomorrow:"tomorrow",yesterday:"yesterday",next:"next",last:"last",year:"year",month:"month",week:"week",day:"day",am:"AM",pm:"PM",dateSeparator:"/",timeSeparator:":",firstDayOfWeek:0,currencydecimaldigits:2,currencydecimalseparator:".",currencygroupseparator:",",currencygroupsize:3,currencynegative:0,currencypositive:0,currencysymbol:"$",numericdecimaldigits:2,numericdecimalseparator:".",numericgroupseparator:",",numericgroupsize:3,numericnegative:1,percentdecimaldigits:2,percentdecimalseparator:".",percentgroupseparator:",",percentgroupsize:3,percentnegative:0,percentpositive:0,percentsymbol:"%"},patterns:{numeric:{negative:["(n)","-n","- n","n-","n -"]},currency:{positive:["*n","n*","* n","n *"],negative:["(*n)","-*n","*-n","*n-","(n*)","-n*","n-*","n*-","-n *","-* n","n *-","* n-","* -n","n- *","(* n)","(n *)"]},percent:{positive:["n *","n*","*n"],negative:["-n *","-n*","-*n"]}}};var ag,at;if(Array.prototype.filter!==undefined){ag=function(e,av){return e.filter(av)}}else{ag=function(az,aw){var ay=[],ax=az.length;for(var av=0;av
      ').string()).addClass("t-popup t-group").hide();this.$element.tScrollable()};aa.dropDown.prototype={_html:function(ay,az){var aw=new aa.stringBuilder();if(ay){for(var av=0,aA=ay.length;av').cat(aC.html).cat("")}}return aw.string()},open:function(e){if(this.onOpen){this.onOpen()}if(this.isOpened()||!this.$items){return}var ay=this.$element,aw=".t-reset > .t-item",av;ay.hide().appendTo(document.body);if(ay[0].style.width==""){av=e.outerWidth?e.outerWidth-2:0}else{av=parseInt(this.attr?m("
      ")[0].style.width:ay[0].style.width)}ay.css("overflowY","auto").css("width",av);ay.delegate(aw,"mouseenter",aa.hover).delegate(aw,"mouseleave",aa.leave).delegate(aw,"click",m.proxy(function(az){if(this.onClick){this.onClick(m.extend(az,{item:m(az.target).closest(".t-item")[0]}))}},this));var ax=e.offset;ax.top+=e.outerHeight;if(f){if(!document.body.scrollLeft&&!u){ax.left-=window.pageXOffset}if(!document.body.scrollTop&&!u){ax.top-=window.pageYOffset}}aa.fx._wrap(ay).css(m.extend({position:"absolute",zIndex:e.zIndex},ax));if(ap){ay.css("overflow","hidden")}aa.fx.play(this.effects,ay,{direction:"bottom"},m.proxy(function(){if(ap){ay.css("overflow","auto")}var az=this.$items.filter(".t-state-selected");if(az.length){this.scrollTo(az[0])}},this))},close:function(ax){if(!this.isOpened()){return}var aw=this.$element;var av=this.$items;if(ap){aw.css("overflow","hidden")}aa.fx.rewind(this.effects,aw,{direction:"bottom"},function(){if(ap){aw.css("overflow","auto")}if(av){av.removeClass("t-state-hover")}aw.parent().remove()})},dataBind:function(e,ay){e=e||[];var aA=this.$element,av=aA[0].style.height,aw=av&&av!="auto"?av:"200px",ax=aA.find("> ul");ax[0].innerHTML=this._html(e,ay);var az=this.$items=ax.children();aA.css("height",az.length>10?aw:"auto")},highlight:function(e){return m(e).addClass("t-state-selected").siblings().removeClass("t-state-selected").end().index()},isOpened:function(){return this.$element.is(":visible")},scrollTo:function(aA){if(!aA){return}var e=aA.offsetTop;var ay=aA.offsetHeight;var av=this.$element[0];var aw=av.scrollTop;var az=av.clientHeight;var ax=e+ay;av.scrollTop=aw>e?e:ax>(aw+az)?ax-az:aw}};aa.datetime=function(){if(arguments.length==0){this.value=new Date()}else{if(arguments.length==1){this.value=new Date(arguments[0])}else{if(arguments.length==3){this.value=new Date(arguments[0],arguments[1],arguments[2])}else{if(arguments.length==6){this.value=new Date(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])}else{this.value=new Date(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6])}}}}return this};m.extend(aa.datetime,{msPerMinute:60000,msPerDay:86400000,add:function(ay,av){var aw=ay.timeOffset();var ax=new aa.datetime(ay.time()+av);var e=ax.timeOffset()-aw;return new aa.datetime(ax.time()+e*aa.datetime.msPerMinute)},subtract:function(ax,aw){aw=new aa.datetime(aw).toDate();var e=ax.time()-aw;var av=ax.timeOffset()-aw.timeOffset();return e-(av*aa.datetime.msPerMinute)},firstDayOfMonth:function(e){return new aa.datetime(0).hours(e.hours()).minutes(e.minutes()).seconds(e.seconds()).milliseconds(e.milliseconds()).year(e.year(),e.month(),1)},firstVisibleDay:function(aw){var e=aa.cultureInfo.firstDayOfWeek;var av=new aa.datetime(aw.year(),aw.month(),0,aw.hours(),aw.minutes(),aw.seconds(),aw.milliseconds());while(av.day()!=e){aa.datetime.modify(av,-1*aa.datetime.msPerDay)}return av},modify:function(ay,e){var aw=ay.timeOffset();var av=new aa.datetime(ay.time()+e);var ax=av.timeOffset()-aw;ay.time(av.time()+ax*aa.datetime.msPerMinute)},pad:function(e){if(e<10){return"0"+e}return e},standardFormat:function(e){var av=aa.cultureInfo;var aw={d:av.shortDate,D:av.longDate,F:av.fullDateTime,g:av.generalDateShortTime,G:av.generalDateTime,m:av.monthDay,M:av.monthDay,s:av.sortableDateTime,t:av.shortTime,T:av.longTime,u:av.universalSortableDateTime,y:av.monthYear,Y:av.monthYear};return aw[e]},format:function(aF,e){var aA=aa.cultureInfo;var aD=aF.getDate();var av=aF.getDay();var aC=aF.getMonth();var aw=aF.getFullYear();var az=aF.getHours();var ay=aF.getMinutes();var ax=aF.getSeconds();var aE=aF.getMilliseconds();var aB=aa.datetime.pad;var aG={d:aD,dd:aB(aD),ddd:aA.abbrDays[av],dddd:aA.days[av],M:aC+1,MM:aB(aC+1),MMM:aA.abbrMonths[aC],MMMM:aA.months[aC],yy:aB(aw%100),yyyy:aw,h:az%12||12,hh:aB(az%12||12),H:az,HH:aB(az),m:ay,mm:aB(ay),s:ax,ss:aB(ax),f:Math.floor(aE/100),ff:Math.floor(aE/10),fff:aE,tt:az<12?aA.am:aA.pm};e=e||"G";e=aa.datetime.standardFormat(e)?aa.datetime.standardFormat(e):e;return e.replace(y,function(aH){return aH in aG?aG[aH]:aH.slice(1,aH.length-1)})},parse:function(aw){var e=aw.value;var av=aw.format;if(e&&e.value){return e}av=aa.datetime.standardFormat(av)?aa.datetime.standardFormat(av):av;if(w.test(e)){return aa.datetime.parseMachineDate({value:e,format:av,shortYearCutOff:aw.shortYearCutOff,baseDate:aw.baseDate,AM:aa.cultureInfo.am,PM:aa.cultureInfo.pm})}return aa.datetime.parseByToken?aa.datetime.parseByToken(e,aw.today):null},parseMachineDate:function(aJ){var aX=aJ.AM,aQ=aJ.PM,ax=aJ.value,aA=aJ.format,e=aJ.baseDate,aT=aJ.shortYearCutOff||30,aE=-1,aN=-1,aF=-1,aw=0,aD=0,aH=0,aG=0,aV,aR,aB=false,aK=function(aY){return(aI+10?aX:"a";aQ=aP>0?aQ:"p";var az=ax.substr(aO).toLowerCase();aV=az.indexOf(aX.toLowerCase())!=-1;aR=az.indexOf(aQ.toLowerCase())!=-1;aO+=aR?aQ.length:aV?aX.length:0;break;case"'":aS();aB=true;break;default:aS()}}}var aM=new aa.datetime();if(aE!=-1&&aE<100){aE+=aM.year()-aM.year()%100+(aE<=aT?0:-100)}aw=(aR&&aw<12)?aw+12:aw==12&&aV?0:aw;if(e==undefined){if(aE==-1){aE=aM.year()}aM=new aa.datetime(aE,aN-1,aF,aw,aD,aH,aG);if(aM.year()!=aE||aM.month()!=(aN-1)||aM.date()!=aF){return null}}else{aM=e.year(aE!=-1?aE:e.year()).month(aN!=-1?aN-1:e.month()).date(aF!=-1?aF:e.date()).hours(aw).minutes(aD).seconds(aH).milliseconds(aG);if((aE!=-1&&aM.year()!=aE)||(aN!=-1&&aM.month()!=(aN-1))||(aF!=-1&&aM.date()!=aF)||(aw!=-1&&aM.hours()!=aw)||(aD!=-1&&aM.minutes()!=aD)||(aH!=-1&&aM.seconds()!=aH)||(aG!=-1&&aM.milliseconds()!=aG)){return null}}return aM}});aa.datetime.prototype={year:function(){if(arguments.length==0){return this.value.getFullYear()}else{if(arguments.length==1){this.value.setFullYear(arguments[0])}else{this.value.setFullYear(arguments[0],arguments[1],arguments[2])}}return this},timeOffset:function(){return this.value.getTimezoneOffset()},day:function(){return this.value.getDay()},toDate:function(){return this.value},addMonth:function(e){this.month(this.month()+e)},addYear:function(e){this.year(this.year()+e)}};m.each(["Month","Date","Hours","Minutes","Seconds","Milliseconds","Time"],function(e,av){aa.datetime.prototype[av.toLowerCase()]=function(){if(arguments.length==1){this.value["set"+av](arguments[0])}else{return this.value["get"+av]()}return this}});var o=/[0#?]/;function D(e,aw){var av=Math.pow(10,aw||0);return Math.round(e*av)/av}function d(e){return e.split("").reverse().join("")}function S(ay,e,aB){var av=0,aw=0,aA=e.length,aC=ay.length,aF=new aa.stringBuilder();while(av=0){if(e.charAt(av).match(o)){aF.cat(ay.charAt(aw++))}else{aF.cat(e.charAt(av))}av++}aF.catIf(ay.substring(aw),aw-1){aD=aE.indexOf("0")}if(aD>-1){var ax=aE.slice(0,aD),az=aE.slice(aD,aE.length);aE=ax.replace(/#/g,"")+az.replace(/#/g,"0")}else{aE=aE.replace(/#/g,"")}if(aE.indexOf(",")==0){aE=aE.replace(/,/g,"")}return aB?aE:d(aE)}aa.formatNumber=function(aW,aA,aF,aH,av,a2,aB,aD,aY,aR){if(!aA){return aW}var a1,aS,aX,az,aV=aW<0;aA=aA.split(":");aA=aA.length>1?aA[1].replace("}",""):aA[0];var ay=o.test(aA);if(ay){aA=aA.split(";");aS=aA[0];aX=aA[1];az=aA[2];aA=(aV&&aX?aX:aS).indexOf("%")!=-1?"p":"n"}switch(aA.toLowerCase()){case"d":return Math.round(aW).toString();case"c":a1="currency";break;case"n":a1="numeric";break;case"p":a1="percent";if(!aR){aW=Math.abs(aW)*100}break;default:return aW.toString()}var aM=function(a5,a3,a4){for(var a6=a5.length;a61?aO[1]:"",e=aa.lastIndexOf(aN,"0"),aK=aa.lastIndexOf(aN,"#");aF=(aK>e?aK:e)+1}var aZ=D(aW,aF);aW=isFinite(aZ)?aZ:aW;var aI=aW.toString().split(/e/i);aL=aI.length>1?parseInt(aI[1]):0;aI=aI[0].split(".");aw=aI[0];aw=aV?aw.replace("-",""):aw;aE=aI.length>1?aI[1]:"";if(aL){if(!aV){aE=aM(aE,aL,false);aw+=aE.slice(0,aL);aE=aE.substr(aL)}else{aw=aM(aw,aL+1,true);aE=aw.slice(aL,aw.length)+aE;aw=aw.slice(0,aL)}}var a0=aE.length;if(aF<1||(ay&&e==-1&&a0===0)){aE=""}else{aE=a0>aF?aE.slice(0,aF):aM(aE,aF,false)}var ax;if(ay){if(aw==0){aw=""}aw=S(d(aw),d(aJ),true);aw=aJ.indexOf(",")!=-1?aU(aw,av,a2):aw;aE=aE&&aN?S(aE,aN):"";ax=aW===0&&az?az:(aV&&!aX?"-":"")+aw+(aE.length>0?aH+aE:"")}else{aw=aU(aw,av,a2);aT=aT[a1];var aG=aV?aT.negative[aD]:aY?aT.positive[aB]:null;var aC=aw+(aE.length>0?aH+aE:"");ax=aG?aG.replace("n",aC).replace("*",aY):aC}return ax};m.extend(aa.formatters,{date:aa.datetime.format,number:aa.formatNumber});aa.scripts=[];var E=[];function T(av,aw){var ax=aa.scripts;av=m.grep(av,function(az){az=az.toLowerCase().replace(".min","");if(az.indexOf("jquery-")>-1||(az.indexOf("jquery.validate")>-1&&m.fn.validate)||az.indexOf("telerik.common")>-1){return false}var aA=false;for(var aB=0;aB-1){aA=true;break}}return !aA});var e=function(ay){if(ay){m.ajax({url:ay,dataType:"script",cache:!m.browser.msie,success:function(){e(av.shift())}})}else{aw();E.shift();if(E.length){E[0]()}}};e(av.shift())}aa.load=function(e,av){E.push(function(){T(e,av)});if(E.length==1){T(e,av)}};aa.stringBuilder.prototype={cat:function(e){this.buffer.push(e);return this},rep:function(av,e){for(var aw=0;aw');this._verticalScrollbar=this._horizontalScrollbar.clone();this._scrollbars=this._horizontalScrollbar.add(this._verticalScrollbar);this._startProxy=m.proxy(this._start,this);this._stopProxy=m.proxy(this._stop,this);this._dragProxy=m.proxy(this._drag,this);this._create()}function s(aw){var av=aw.originalEvent.changedTouches;if(av&&av.length<2){return{x:av[0].pageX,y:av[0].pageY}}return{x:aw.pageX,y:aw.pageY}}X.prototype={_create:function(){this.wrapper.css("overflow","hidden").bind(I,m.proxy(this._wait,this))},_wait:function(aw){var av=s(aw);this.start={x:av.x+this.wrapper.scrollLeft(),y:av.y+this.wrapper.scrollTop()};m(document).bind(h,this._startProxy).bind(B,this._stopProxy)},_start:function(ay){ay.preventDefault();var av=s(ay);if(this.start.x-av.x>10||this.start.y-av.y>10){m(document).unbind(h,this._startProxy).bind(h,this._dragProxy);var aw=this.wrapper.innerWidth(),ax=this.wrapper.innerHeight();offset=this.wrapper.offset(),scrollWidth=this.wrapper.attr("scrollWidth"),scrollHeight=this.wrapper.attr("scrollHeight");if(scrollWidth>aw){this._horizontalScrollbar.appendTo(document.body).css({width:Math.floor((aw/scrollWidth)*aw),left:this.wrapper.scrollLeft()+offset.left+parseInt(this.wrapper.css("borderLeftWidth")),top:offset.top+this.wrapper.innerHeight()+parseInt(this.wrapper.css("borderTopWidth"))-this._horizontalScrollbar.outerHeight()})}if(scrollHeight>ax){this._verticalScrollbar.appendTo(document.body).css({height:Math.floor((ax/scrollHeight)*ax),top:this.wrapper.scrollTop()+offset.top+parseInt(this.wrapper.css("borderTopWidth")),left:offset.left+this.wrapper.innerWidth()+parseInt(this.wrapper.css("borderLeftWidth"))-this._verticalScrollbar.outerWidth()})}this._scrollbars.stop().fadeTo(200,0.5)}},_drag:function(aC){aC.preventDefault();var aD=s(aC),aA=this.wrapper.offset(),ax=aA.left+parseInt(this.wrapper.css("borderLeftWidth")),ay=aA.top+parseInt(this.wrapper.css("borderTopWidth")),aw=this.start.x-aD.x,av=this.start.y-aD.y,az=Math.max(ax,ax+aw),aB=Math.max(ay,ay+av);az=Math.min(ax+this.wrapper.innerWidth()-this._horizontalScrollbar.outerWidth()-this._horizontalScrollbar.outerHeight(),az);aB=Math.min(ay+this.wrapper.innerHeight()-this._verticalScrollbar.outerHeight()-this._verticalScrollbar.outerWidth(),aB);this._horizontalScrollbar.css("left",az);this._verticalScrollbar.css("top",aB);this.wrapper.scrollLeft(aw).scrollTop(av)},_stop:function(av){m(document).unbind(h,this._startProxy).unbind(h,this._dragProxy).unbind(B,this._stopProxy);this._scrollbars.stop().fadeTo(400,0)}};var aj=function(aw,e,av){if(e.length==0&&av){av();return null}var ax=aw.list.length;return function(){if(--ax==0&&av){av()}}};m.extend(aa.fx,{_wrap:function(e){if(!e.parent().hasClass("t-animation-container")){e.wrap(m("
      ").addClass("t-animation-container").css({width:e.outerWidth(),height:e.outerHeight()}))}return e.parent()},play:function(ay,az,aw,e){var aB=aj(ay,az,e);if(aB===null){return}az.stop(false,true);for(var av=0,aA=ay.list.length;av=0;av--){var ax=az.data("effect-"+av)||new aa.fx[ay.list[av].name](az);ax.rewind(m.extend(ay.list[av],{openDuration:ay.openDuration,closeDuration:ay.closeDuration},aw),aA);az.data("effect-"+av,null)}}});aa.fx.toggle=function(e){this.element=e.stop(false,true)};aa.fx.toggle.prototype={play:function(e,av){this.element.show();if(av){av()}},rewind:function(e,av){this.element.hide();if(av){av()}}};aa.fx.toggle.defaults=function(){return{list:[{name:"toggle"}]}};aa.fx.slide=function(e){this.element=e;this.animationContainer=aa.fx._wrap(e)};aa.fx.slide.prototype={play:function(av,az){var e=this.animationContainer;this.element.css("display","block").stop();e.css({display:"block",overflow:"hidden"});var aw=this.element.outerWidth();var aB=this.element.outerHeight();var aA=av.direction=="bottom"?"marginTop":"marginLeft";var ax=av.direction=="bottom"?-aB:-aw;e.css({width:aw,height:aB});var ay={};ay[aA]=0;this.element.css("width",this.element.width()).each(function(){this.style.cssText=this.style.cssText}).css(aA,ax).animate(ay,{queue:false,duration:av.openDuration,easing:"linear",complete:function(){e.css("overflow","");if(az){az()}}})},rewind:function(aw,av){var ax=this.animationContainer;this.element.stop();ax.css({overflow:"hidden"});var e;switch(aw.direction){case"bottom":e={marginTop:-this.element.outerHeight()};break;case"right":e={marginLeft:-this.element.outerWidth()};break}this.element.animate(e,{queue:false,duration:aw.closeDuration,easing:"linear",complete:function(){ax.css({display:"none",overflow:""});if(av){av()}}})}};aa.fx.slide.defaults=function(){return{list:[{name:"slide"}],openDuration:"fast",closeDuration:"fast"}};aa.fx.property=function(e){this.element=e};aa.fx.property.prototype={_animate:function(ay,ax,av,e){var az={overflow:"hidden"},aA={},aw=this.element;m.each(ay,function(aC,aD){var aB;switch(aD){case"height":case"width":aB=aw[aD]();break;case"opacity":aB=1;break;default:aB=aw.css(aD);break}az[aD]=av?aB:0;aA[aD]=av?0:aB});aw.css(az).show().animate(aA,{queue:false,duration:ax,easing:"linear",complete:function(){if(av){aw.hide()}m.each(aA,function(aB){aA[aB]=""});aw.css(m.extend({overflow:""},aA));if(e){e()}}})},play:function(av,e){this._animate(av.properties,av.openDuration,false,e)},rewind:function(av,e){this._animate(av.properties,av.closeDuration,true,e)}};aa.fx.property.defaults=function(){return{list:[{name:"property",properties:arguments}],openDuration:"fast",closeDuration:"fast"}};m(document).ready(function(){if(m.browser.msie&&typeof(Sys)!="undefined"&&typeof(Sys.Mvc)!="undefined"&&typeof(Sys.Mvc.FormContext)!="undefined"){var e=function(aw,av){return m.grep(aw.getElementsByTagName("*"),function(ax){return ax.name==av})};if(Sys.Mvc.FormContext){Sys.Mvc.FormContext.$F=Sys.Mvc.FormContext._getFormElementsWithName=e}}});var L=m.extend,af=m.proxy,k=m.type,x=m.isFunction,O=m.isPlainObject,l=m.isEmptyObject,ae=m.each,J=m.noop;function Y(){this._isPrevented=false}Y.prototype={preventDefault:function(){this._isPrevented=true},isDefaultPrevented:function(){return this._isPrevented}};function aq(){}aq.extend=function(ay){var av=function(){},ax=this,e=ay&&ay.init?ay.init:function(){ax.apply(this,arguments)},aw;av.prototype=ax.prototype;aw=e.fn=e.prototype=L(new av,ay);for(var az in aw){if(typeof aw[az]==="object"){aw[az]=L(true,{},av.prototype[az],ay[az])}}aw.constructor=e;e.extend=ax.extend;return e};m.telerik.Class=aq;var j=aq.extend({init:function(){this._events={}},bind:function(av,e){var aw=this,az,ax=m.isArray(av)?av:[av],ay,aA;for(az=0,ay=ax.length;azax?1:(awax?-1:0)}},create:function(e){return M[e.dir.toLowerCase()](e.field)},combine:function(e){return function(ax,ay){var aw=e[0](ax,ay),av,az;for(av=1,az=e.length;av-1){e=av;break}}return ac[e]},operatorStrings:{eq:["eq","==","isequalto","equals","equalto","equal"],neq:["neq","!=","isnotequalto","notequals","notequalto","notequal","not"],lt:["lt","<","islessthan","lessthan","less"],lte:["lte","<=","islessthanorequalto","lessthanequal"],gt:["gt",">","isgreaterthan","greaterthan","greater"],gte:["gte",">=","isgreaterthanorequalto","greaterthanequal"],startswith:["startswith"],endswith:["endswith"],contains:["contains","substringof"]},eq:function(e,av){return function(ax){var aw=e(ax);return aw>av?false:(av>aw?false:true)}},neq:function(e,av){return function(aw){return e(aw)!=av}},lt:function(e,av){return function(aw){return e(aw)av}},gte:function(e,av){return function(aw){return e(aw)>=av}},startswith:function(e,av){return function(aw){return e(aw).indexOf(av)==0}},endswith:function(e,av){return function(ax){var aw=e(ax);return aw.lastIndexOf(av)==aw.length-1}},contains:function(e,av){return function(aw){return e(aw).indexOf(av)>-1}}};var p=function(e){return new p.fn.init(e)};aa.query=p;p.expandSort=function(av,ax){var aw=typeof av==="string"?{field:av,dir:ax}:av,e=m.isArray(aw)?aw:(aw!==undefined?[aw]:[]);return m.grep(e,function(ay){return !!ay.dir})};p.expandFilter=function(e){return e=m.isArray(e)?e:[e]};p.expandAggregates=function(e){return e=m.isArray(e)?e:[e]};p.expandGroup=function(av,ax){var aw=typeof av==="string"?{field:av,dir:ax}:av,e=m.isArray(aw)?aw:(aw!==undefined?[aw]:[]);return m.map(e,function(ay){return{field:ay.field,dir:ay.dir||"asc",aggregates:ay.aggregates}})};p.fn=p.prototype={init:function(e){this.data=e||[];return this},toArray:function(){return this.data},skip:function(e){return new p(this.data.slice(e))},take:function(e){return new p(this.data.slice(0,e))},orderBy:function(av){var e=this.data.slice(0),aw=m.isFunction(av)||!av?M.asc(av):av.compare;return new p(e.sort(aw))},orderByDescending:function(e){return new p(this.data.slice(0).sort(M.desc(e)))},sort:function(e,ax){var az,aw,ay=p.expandSort(e,ax),av=[];if(ay.length){for(az=0,aw=ay.length;az0){ay=aw[0];ax=ax.groupBy(ay).select(function(aA){var az=new p(av).filter([{field:aA.field,operator:"eq",value:aA.value}]);return{field:aA.field,value:aA.value,items:aw.length>1?new p(aA.items).group(aw.slice(1),az.toArray()).toArray():aA.items,hasSubgroups:aw.length>1,aggregates:az.aggregate(ay.aggregates)}})}return ax},groupBy:function(aC){if(m.isEmptyObject(aC)){return new p(aA)}var e=aC.field,av=this.sort(e,aC.dir||"asc").toArray(),aE=Z(e),aF,aB=aE.get(av[0],e),aD={},ax={field:e,value:aB,items:[]},ay,aw,az,aA=[ax];for(aw=0,az=av.length;awe){ax=e}return ax}};p.fn.init.prototype=p.fn;var k=m.type,b="UPDATED",a="PRISTINE",V="CREATED",an="DESTROYED";function am(ax,ay){if(ax===ay){return true}var aw=k(ax),av=k(ay),e;if(aw!==av){return false}if(aw==="date"){return ax.getTime()===ay.getTime()}if(aw!=="object"&&aw!=="array"){return false}for(e in ax){if(!am(ax[e],ay[e])){return false}}return true}var F=function(e){return new Function("d","return d"+(e?"."+e:""))},A=function(e){return new Function("d,value","d."+e+"=value")},Z=function(e){return{get:F(e),set:A(e)}};var N=j.extend({init:function(e){var av=this;j.fn.init.call(av);av.state=a;av._accessors={};av._modified=false;av.data=L(true,{},e);av.pristine=L(true,{},e);if(av.id()===undefined){av.state=V;av.data.__id=av.guid()}},guid:function(){var av="",e,aw;for(e=0;e<32;e++){aw=Math.random()*16|0;if(e==8||e==12||e==16||e==20){av+="-"}av+=(e==12?4:(e==16?(aw&3|8):aw)).toString(16)}return av},accessor:function(av){var e=this._accessors;return e[av]=e[av]||Z(av)},get:function(av){var e=this,aw=e.accessor(av);return aw.get(e.data)},set:function(av,aw){var az=this,e,ax={},ay;if(typeof av==="string"){ax[av]=aw}else{ax=av}az._modified=false;for(e in ax){ay=az.accessor(e);aw=ax[e];if(!am(aw,ay.get(az.data))){ay.set(az.data,aw);az._modified=true}}if(az._modified){az.state=az.isNew()?V:b;az.trigger("change")}},isNew:function(){return this.state===V},destroy:function(){this.state=an},changes:function(){var e=null,av,ax=this,ay=ax.data,aw=ax.pristine;for(av in ay){if(av!=="__id"&&!am(aw[av],ay[av])){e=e||{};e[av]=ay[av]}}return e}});N.define=function(e){var av,az=e||{},aw=az.id||"id",ax,ay;if(m.isFunction(aw)){ay=aw;ax=aw}else{ay=F(aw);ax=A(aw)}aw=function(aA,aB){if(aB===undefined){return aA.__id||ay(aA)}else{ax(aA,aB)}};az.id=function(aA){return aw(this.data,aA)};av=N.extend(az);av.id=aw;return av};N.UPDATED=b;N.PRISTINE=a;N.CREATED=V;N.DESTROYED=an;var ar="create",t="read",Q="update",ah="destroy",R="change",U="error",G=[ar,t,Q,ah],C=function(e){return e};function ai(e,av){var aC=new p(e),av=av||{},ay=av.page,aA=av.pageSize,aw=av.group,az=p.expandSort(av.sort).concat(p.expandGroup(aw||[])),aB,ax=av.filter;if(ax){aC=aC.filter(ax);aB=aC.toArray().length}if(az){aC=aC.sort(az)}if(ay!==undefined&&aA!==undefined){aC=aC.skip((ay-1)*aA).take(aA)}if(aw){aC=aC.group(aw,e)}return{total:aB,data:aC.toArray()}}function g(e,ay){var aw=new p(e),ay=ay||{},av=ay.aggregates,ax=ay.filter;if(ax){aw=aw.filter(ax)}return aw.aggregate(av)}var i=aq.extend({init:function(e){this.data=e.data},read:function(e){e.success(this.data)},update:J});var c=aq.extend({init:function(av){var e=this;av=e.options=L({},e.options,av);ae(G,function(aw,ax){if(typeof av[ax]==="string"){av[ax]={url:av[ax]}}});e.cache=av.cache?au.create(av.cache):{find:J,add:J};e.dialect=av.dialect},options:{dialect:{read:C,update:C,destroy:C,create:C}},create:function(e){m.ajax(this.setup(e,ar))},read:function(e){var ay=this,ax,aw,az,av=ay.cache;e=ay.setup(e,t);ax=e.success||J;aw=e.error||J;az=av.find(e.data);if(az!==undefined){ax(az)}else{e.success=function(aA){av.add(e.data,aA);ax(aA)};m.ajax(e)}},update:function(e){m.ajax(this.setup(e,Q))},destroy:function(e){m.ajax(this.setup(e,ah))},setup:function(ax,av){ax=ax||{};var e=this,ay=e.options[av],aw=x(ay.data)?ay.data():ay.data;ax=L(true,{},ay,ax);ax.data=e.dialect[av](L(aw,ax.data));return ax}});au.create=function(e){var av={inmemory:function(){return new au()},localstorage:function(){return new ak()}};if(O(e)&&x(e.find)){return e}if(e===true){return new au()}return av[e]()};function au(){this._store={}}au.prototype={add:function(e,av){if(e!==undefined){this._store[stringify(e)]=av}},find:function(e){return this._store[stringify(e)]},clear:function(){this._store={}},remove:function(e){delete this._store[stringify(e)]}};function ak(){this._store=window.localStorage}ak.prototype={add:function(e,av){if(e!=undefined){this._store.setItem(stringify(e),stringify(av))}},find:function(e){return m.parseJSON(this._store.getItem(stringify(e)))},clear:function(){this._store.clear()},remove:function(e){this._store.removeItem(stringify(e))}};var ab=j.extend({init:function(ay){var av=this,ax,aw,e;ay=av.options=L({},av.options,ay);L(av,{_map:{},_models:{},_data:[],_view:[],_pageSize:ay.pageSize,_page:ay.page||(ay.pageSize?1:undefined),_sort:ay.sort,_filter:ay.filter,_group:ay.group,_aggregates:ay.aggregates});j.fn.init.call(av);aw=ay.model;e=ay.transport;if(aw===undefined){aw={}}else{if(O(aw)){ay.model=aw=N.define(aw)}}ax=aw.id;av._deserializer=L({data:C,total:function(az){return az.length},status:function(az){return az.status},groups:function(az){return az},aggregates:function(az){return{}}},ay.deserializer);if(e){av.transport=x(e.read)?e:new c(e)}else{av.transport=new i({data:ay.data})}if(ax){av.find=function(az){return av._data[av._map[az]]};av.id=function(az){return ax(az)}}else{av.find=av.at}av.bind([U,R,ar,ah,Q],ay)},options:{data:[],serverSorting:false,serverPaging:false,serverFiltering:false,serverGrouping:false,serverAggregates:false,autoSync:false,sendAllFields:true,batch:{mode:"multiple"}},model:function(aw){var e=this,av=aw&&e._models[aw];if(!av){av=new e.options.model(e.find(aw));e._models[av.id()]=av;av.bind(R,function(){e.trigger(Q,{model:av})})}return av},_idMap:function(e){var ax=this,aw=ax.id,az,ay,av={};if(aw){for(az=0,ay=e.length;az=0){ay._data[aA]=aB}}});ay._idMap(ay._data)},_syncError:function(e,av){this.error({data:e})},_send:function(e,az,ay){var ax=this,aA,aB=ax._promises,aw=af(ax._syncSuccess,ax,e),av=af(ax._syncError,ax,e);if(e.length==0){return}if(ay==="multiple"){for(aA=0,length=e.length;aA0,aw=ay._models;ay._total=ay._deserializer.total(e);if(ay._aggregates&&ay.options.serverAggregates){ay._aggregateResult=ay._deserializer.aggregates(e)}if(aA){e=ay._deserializer.groups(e)}else{e=ay._deserializer.data(e)}ay._data=e;m.each(ax,function(){var aB=ay.id(this);m.each(e,function(){if(aB===ay.id(this)){delete aw[aB]}})});if(ay.options.serverPaging!==true){av.page=ay._page;av.pageSize=ay._pageSize}if(ay.options.serverSorting!==true){av.sort=ay._sort}if(ay.options.serverFiltering!==true){av.filter=ay._filter}if(ay.options.serverGrouping!==true){av.group=ay._group}if(ay.options.serverAggregates!==true){av.aggregates=ay._aggregates;ay._aggregateResult=g(e,av)}az=ai(e,av);ay._view=az.data;if(az.total!==undefined&&!ay.options.serverFiltering){ay._total=az.total}ay._idMap(e);ay.trigger(R)},changes:function(aw){var e=this,av=e._models[aw];if(av&&av.state===N.UPDATED){return av.changes()}},hasChanges:function(ax){var av=this,ay,aw,e=av._models,ax;if(ax===undefined){for(ax in e){if(e[ax].state!==N.PRISTINE){return true}}return false}aw=e[ax];return !!aw&&aw.state===N.UPDATED},at:function(e){return this._data[e]},data:function(e){if(e!==undefined){this._data=e}else{return this._data}},view:function(){return this._view},query:function(ax){var e=this,ax=ax,aw,av=e.options.serverSorting||e.options.serverPaging||e.options.serverFiltering||e.options.serverGrouping||e.options.serverAggregates;if(ax!==undefined){e._pageSize=ax.pageSize;e._page=ax.page;e._sort=ax.sort;e._filter=ax.filter;e._group=ax.group;e._aggregates=ax.aggregates;if(ax.sort){e._sort=ax.sort=p.expandSort(ax.sort)}if(ax.filter){e._filter=ax.filter=p.expandFilter(ax.filter)}if(ax.group){e._group=ax.group=p.expandGroup(ax.group)}if(ax.aggregates){e._aggregates=ax.aggregates=p.expandAggregates(ax.aggregates)}}if(av||(e._data===undefined||e._data.length==0)){e.read(ax)}else{aw=ai(e._data,ax);if(aw.total!==undefined&&!e.options.serverFiltering){e._total=aw.total}e._view=aw.data;e._aggregateResult=g(e._data,ax);e.trigger(R)}},page:function(e){var av=this;if(e!==undefined){e=Math.max(Math.min(Math.max(e,1),av._totalPages()),1);av.query({page:e,pageSize:av.pageSize(),sort:av.sort(),filter:av.filter(),group:av.group(),aggregates:av.aggregate()});return}return av._page},pageSize:function(e){var av=this;if(e!==undefined){av.query({page:av.page(),pageSize:e,sort:av.sort(),filter:av.filter(),group:av.group(),aggregates:av.aggregate()});return}return av._pageSize},sort:function(e){var av=this;if(e!==undefined){av.query({page:av.page(),pageSize:av.pageSize(),sort:e,filter:av.filter(),group:av.group(),aggregates:av.aggregate()});return}return this._sort},filter:function(e){var av=this;if(e!==undefined){av.query({page:av.page(),pageSize:av.pageSize(),sort:av.sort(),filter:e,group:av.group(),aggregates:av.aggregate()});return}return av._filter},group:function(e){var av=this;if(e!==undefined){av.query({page:av.page(),pageSize:av.pageSize(),sort:av.sort(),filter:av.filter(),group:e,aggregates:av.aggregate()});return}return av._group},total:function(){return this._total},aggregate:function(e){var av=this;if(e!==undefined){av.query({page:av.page(),pageSize:av.pageSize(),sort:av.sort(),filter:e,group:av.group(),aggregates:e});return}return av._aggregates},aggregates:function(){return this._aggregateResult},_totalPages:function(){var av=this,e=av.pageSize()||av.total();return Math.ceil((av.total()||0)/e)}});ab.create=function(av){av=m.isArray(av)?{data:av}:av;var az=av||{},e=az.data,ax=az.fields,aw=az.table,ay=az.select;if(ax){if(!e){if(aw){e=H(aw,ax)}else{if(ay){e=n(ay,ax)}}}else{if(ay){r(e,ay,ax)}}}az.data=e;return az instanceof ab?az:new ab(az)};function n(aA,aw){var av=m(aA)[0].children,ay,aB,e=[],az,ax;for(ay=0,aB=av.length;ay";if(aD||aD===0){aA+=aD}aA+="";aB.push(aA)}aE.html(aB.join(""))}function H(aE,aB){var aC=m(aE)[0].tBodies[0],ax=aC?aC.rows:[],aw,aF,aA,az=aB.length,aD=[],ay,e,aG,av;for(aw=0,aF=ax.length;aw",render:function(aw,av){var e,ax,ay="";for(e=0,ax=av.length;e/g,">")}m.telerik.template=m.proxy(P.compile,P);m.telerik.htmlEncode=v;var z=j.extend({init:function(av,aw){var e=this;j.fn.init.call(e);e.element=m(av);e.options=L(true,{},e.options,aw)}});m.telerik.Component=z})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.datepicker.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.datepicker.min.js new file mode 100644 index 000000000..02d8db894 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.datepicker.min.js @@ -0,0 +1 @@ +(function(d){var b=d.telerik;b.scripts.push("telerik.datepicker.js");var a=null;b.datetime.parseByToken=function(g,i){if(g===null||g===""){return null}i=i||new b.datetime();var e=null;var m=null;var k=null;var n=0;var f=function(o){var p=null;if(o&&g.substring(n,n+o.length).toLowerCase()==o.toLowerCase()){p=o}return p};var j=function(){var o=null;d.each(["days","abbrDays","months","abbrMonths"],function(q,p){if(o!==null){return}d.each(b.cultureInfo[p],function(s,r){if(o!==null){return}o=f(r)});k=p});return o};var h=function(){var o;var p=function(r,s){i[s?"date":"month"](i[s?"date":"month"]()+(o!=0?((o+((o>0?1:-1)*r))%r):0)+(m?(e==b.cultureInfo.next?1:-1)*r:0))};var q=d.inArray(m||e,b.cultureInfo[k]);if(k.toLowerCase().indexOf("day")>-1){o=(q==0?7:q)-i.day();p(7,true)}else{o=q-i.month();p(12,false)}};var l=function(){var p=function(q){var r;switch(m){case"year":r=q==1?1:0;break;case"month":r=q==2?1:0;break;case"week":r=q==3?7:0;break;case"day":r=q==3?1:0;break}return r};var o=(e==b.cultureInfo.next?1:-1);i.year(i.year()+p(1)*o,i.month()+p(2)*o,i.date()+p(3)*o)};d.each(["today","tomorrow","yesterday","next","last"],function(p,o){if(e!==null){return}e=f(b.cultureInfo[o])});if(e!==null){n+=e.length;if(/[^\s\d]\s+[^\s\d]/i.test(g)){n++;d.each(["year","month","week","day"],function(p,o){if(m!==null){return}m=f(b.cultureInfo[o])});k=null;if(m===null){m=j()}if(m===null){return null}}else{switch(e){case b.cultureInfo.today:break;case b.cultureInfo.tomorrow:i.date(i.date()+1);break;case b.cultureInfo.yesterday:i.date(i.date()-1);break;default:i=null;break}return i}}else{e=j();if(e!=null){h();return i}else{return null}}if(k!==null){h()}else{l()}return i};function c(h,g,f,e){if(g){h=new Date(g)}if(f>h){h=new Date(f)}else{if(e').prependTo(a).height(a.height())}}return a},_getCalendar:function(){return a.data("tCalendar")},_reassignSharedCalendar:function(){var e=this._getCalendar();if(a.data("associatedDateView")!=this){a.stop(true,true);this.focusedValue=c(this.focusedValue,this.selectedValue,this.minValue,this.maxValue);e.minDate=this.minValue;e.maxDate=this.maxValue;e.selectedValue=this.selectedValue;e.goToView(0,this.focusedValue);a.unbind("change").bind("change",d.proxy(function(h){var g=this.selectedValue;var f=new b.datetime(h.date);if(g!==null){f.hours(g.getHours()).minutes(g.getMinutes()).seconds(g.getSeconds()).milliseconds(g.getMilliseconds())}this.onChange(f.toDate())},this)).unbind("navigate").bind("navigate",d.proxy(function(i){var h=this.focusedValue;var f=e.viewedMonth;var g=e.currentView.index;h.setFullYear(f.year(),f.month(),h.getDate());b.calendar.focusDate(h,g,a,i.direction)},this)).data("associatedDateView",this);if(this.selectedValue){e.value(this.selectedValue)}b.calendar.focusDate(this.focusedValue,e.currentView.index,a)}},open:function(e){if(this.isOpened()){return}this._reassignSharedCalendar();var i=this.isRtl;var h=this.$calendar;elementPosition=e.offset;elementPosition.top+=e.outerHeight;if(i){elementPosition.left-=(a.outerWidth()||a.parent().outerWidth())-e.outerWidth}b.fx._wrap(a).css(d.extend({position:"absolute",direction:i?"rtl":"",display:a.is(":visible")?"":"none"},elementPosition));var f=this._getCalendar();var g=f.currentView.index;if(!a.is(":visible")&&f.viewedMonth.value-this.focusedValue!=0){f.goToView(g,this.focusedValue).value(this.selectedValue)}b.calendar.focusDate(this.focusedValue,f.currentView.index,a);b.fx._wrap(h).css("zIndex",e.zIndex).show();b.fx.play(this.effects,h,{direction:"bottom"})},close:function(){if(this.isOpened()){b.fx.rewind(this.effects,this.$calendar,{direction:"bottom"},function(){if(a){b.fx._wrap(a).hide()}})}},isOpened:function(){return a&&a.data("associatedDateView")==this&&a.is(":visible")},value:function(e){if(e===undefined){return this.selectedValue}var g=e===null;var f=this._getCalendar();if(!g){e=e.value?new Date(e.value):e}f.value(e);this.selectedValue=e;if(g){e=new Date()}this.focusedValue=new Date(e);b.calendar.focusDate(e,f.currentView.index,a)},navigate:function(p){if(this.isOpened()&&d(".t-overlay",a).length>0){return}var m;var k=false;var o=this.$calendar;var l=this._getCalendar();var n=l.viewedMonth;var h=l.currentView;var f=h.index;var q=new b.datetime(this.focusedValue);var r=function(e,t,s){if(!d(e,o).hasClass("t-state-disabled")){if("navigateUp"==t){f+=1}m=s||false;l[t]();return true}else{return false}};var g=function(){var e=b.calendar.findTarget(q,f,o,false)[0];l.navigateDown(p,e,f);f=f==0?0:f-1;m=true};var i=function(e,u,s){var t=!s?-1:1;if(!r(e,u,s)){return false}if(f==0){q.addMonth(t)}else{q.addYear(t*(f==1?1:f==2?10:100))}return true};var j=b.datepicker.adjustDate;if(o.is(":visible")&&!p.shiftKey){k=true;switch(p.keyCode){case 37:if(p.ctrlKey){if(!i(".t-nav-prev","navigateToPast")){return}}else{j(f,q,-1,-1);if(h.navCheck(q,n,false)){if(!r(".t-nav-prev","navigateToPast")){return}}}break;case 38:if(p.ctrlKey){r(".t-nav-fast","navigateUp")}else{j(f,q,-7,-4);if(h.navCheck(q,n,false)){if(!r(".t-nav-prev","navigateToPast")){return}}}break;case 39:if(p.ctrlKey){if(!i(".t-nav-next","navigateToFuture",true)){return}}else{j(f,q,1,1);if(h.navCheck(q,n,true)){if(!r(".t-nav-next","navigateToFuture",true)){return}}}break;case 40:if(p.ctrlKey){g()}else{j(f,q,7,4);if(h.navCheck(q,n,true)){if(!r(".t-nav-next","navigateToFuture",true)){return}}}break;case 33:if(!i(".t-nav-prev","navigateToPast")){return}break;case 34:if(!i(".t-nav-next","navigateToFuture",true)){return}break;case 35:q=b.calendar.views[f].firstLastDay(q,false,l);break;case 36:q=b.calendar.views[f].firstLastDay(q,true,l);break;case 13:p.stopPropagation();if(f==0){this.onChange(this.focusedValue)}else{g()}break;default:k=false;break}}if(k){p.preventDefault();q=b.calendar.fitDateToRange(q,new b.datetime(this.minValue),new b.datetime(this.maxValue));b.calendar.focusDate(q.toDate(),f,o,m);this.focusedValue=q.toDate()}}};d.each(["min","max"],d.proxy(function(f,e){b.dateView.prototype[e]=function(h){var g=e+"Value";if(h===undefined){return this[g]}this[g]=new Date(h.value?h.value:h);a.data("associatedDateView",null);this._reassignSharedCalendar()}},this));b.datepicker=function(f,g){d.extend(this,g);if(f.nodeName.toLowerCase()!=="input"&&f.type.toLowerCase()!=="text"){throw"Target element is not a INPUT"}this.element=f;var h=this.$element=d(f).addClass("t-input").attr("autocomplete","off").bind({keydown:d.proxy(this._keydown,this),focus:d.proxy(function(l){if(this.openOnFocus){this._open()}this.$element.removeClass("t-state-error")},this)});if(!h.parent().hasClass("t-picker-wrap")){h.wrap('
      ');if(g.showButton){var k=new b.stringBuilder(),i=g.buttonTitle;d(k.cat('').cat('').string()).insertAfter(h)}}this.dateView=new b.dateView({selectedValue:this.selectedValue,minValue:this.minValue,maxValue:this.maxValue,effects:this.effects,isRtl:h.closest(".t-rtl").length,onChange:d.proxy(function(l){this._update(l);this._close()},this)});this.dateView.$calendar.bind("click",d.proxy(function(l){l.stopPropagation();if(l.target.parentNode.className.indexOf("t-state-selected")!=-1){this._close()}},this));this.inputValue=h.val();var e=this.selectedValue||this.inputValue;if(e){this._value(this.parse(e))}var j=this.enabled?d.proxy(this._togglePopup,this):b.preventDefault;this.$wrapper=h.closest(".t-datepicker").find(".t-icon").bind("click",j).end();d(document.documentElement).bind("mousedown",d.proxy(function(n){var l=this.$element.val();if(l!=this.inputValue){this._update(l)}if(!a){return}var m=a.data("associatedDateView");if(!m||m!=this.dateView){return}if(!d.contains(this.$wrapper[0],n.target)&&!d.contains(a[0],n.target)){this._close()}},this));b.bind(this,{open:this.onOpen,close:this.onClose,valueChange:this.onChange,load:this.onLoad})};b.datepicker.prototype={_togglePopup:function(){if(this.dateView.isOpened()){this._close()}else{this.element.focus();this._open()}},_close:function(){if(!a.is(":animated")&&this.dateView.isOpened()){this._trigger("close")}},_open:function(){if(!this.dateView.isOpened()){this._trigger("open")}},_trigger:function(e){if(!b.trigger(this.element,e)){this[e]()}},_update:function(f){f=this.parse(f);if(f!=null){if(f-this.minValue<=0){f=this.minValue}else{if(f-this.maxValue>=0){f=this.maxValue}}}var e=this.selectedValue,i=e?b.datetime.format(e,this.format):"",h=f?b.datetime.format(f,this.format):"";this._value(f);if(h!=i){var g={previousValue:e,value:f,previousDate:e,date:f};if(b.trigger(this.element,"valueChange",g)){this._value(e)}}},_keydown:function(g){var f=g.keyCode;if(f==9||(f==13&&this.inputValue!=this.$element.val())){this._update(this.$element.val());this._close()}else{if(f==27){this._close()}else{if(g.altKey){if(f==40){this._open()}else{if(f==38){this._close()}}}else{this.dateView.navigate(g)}}}},enable:function(){this.$element.attr("disabled",false);this.$wrapper.removeClass("t-state-disabled").find(".t-icon").unbind("click").bind("click",d.proxy(this._togglePopup,this))},disable:function(f){this.$element.attr("disabled",true);this.$wrapper.addClass("t-state-disabled").find(".t-icon").unbind("click").bind("click",b.preventDefault)},_value:function(e){var g=this.$element.val();var f=e===null;this.selectedValue=e;this.dateView.value(e);if(!f){g=b.datetime.format(e,this.format)}this.inputValue=g;this.$element.toggleClass("t-state-error",f&&g!="").val(g)},value:function(e){if(e===undefined){return this.selectedValue}var f=this.parse(e);f=b.datepicker.isInRange(f,this.minValue,this.maxValue)?f:null;if(f===null){this.$element.removeClass("t-state-error").val("")}this._value(f);return this},showPopup:function(){this.open()},hidePopup:function(){this.close()},open:function(){var e=this.$element;this.dateView.open({offset:e.offset(),outerHeight:e.outerHeight(),outerWidth:e.outerWidth(),zIndex:b.getElementZIndex(e[0])})},close:function(){this.dateView.close()},parse:function(e,g){if(e===null||e.getDate){return e}var f=b.datetime.parse({value:e,format:g||this.format,shortYearCutOff:this.shortYearCutOff});return f!=null?f.toDate():null}};d.each(["min","max"],d.proxy(function(f,e){b.datepicker.prototype[e]=function(g){var i=e+"Value";if(g===undefined){return this[i]}var j=this.parse(g);if(j!==null){var h=this[i];this[i]=j;if(this.minValue>this.maxValue){this[i]=h;return}this.dateView[e](j);if(!b.datepicker.isInRange(this.selectedValue,this.minValue,this.maxValue)){this.value(j)}}}},this));d.extend(b.datepicker,{adjustDate:function(e,h,g,f){if(e==0){b.datetime.modify(h,b.datetime.msPerDay*g)}else{if(e==1){h.addMonth(f)}else{h.addYear((e==2?f:10*f))}}},isInRange:function(g,e,f){if(!g){return false}return e-g<=0&&f-g>=0}});d.fn.tDatePicker=function(e){return b.create(this,{name:"tDatePicker",init:function(f,g){return new b.datepicker(f,g)},options:e})};d.fn.tDatePicker.defaults={effects:b.fx.slide.defaults(),selectedValue:null,format:b.cultureInfo.shortDate,minValue:new Date(1899,11,31),maxValue:new Date(2100,0,1),shortYearCutOff:30,showButton:true,buttonTitle:"Open the calendar",enabled:true,openOnFocus:false}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.datetimepicker.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.datetimepicker.min.js new file mode 100644 index 000000000..5feb6a64f --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.datetimepicker.min.js @@ -0,0 +1 @@ +(function(c){var b=c.telerik;b.scripts.push("telerik.datetimepicker.js");function a(e,f){var d=new b.stringBuilder();return d.cat('').string()}b.datetimepicker=function(f,g){c.extend(this,g);if(f.nodeName.toLowerCase()!=="input"&&f.type.toLowerCase()!=="text"){throw"Target element is not a INPUT"}this.element=f;var h=this.$element=c(f).addClass("t-input").attr("autocomplete","off").bind({keydown:c.proxy(this._keydown,this),focus:c.proxy(function(i){this.$element.removeClass("t-state-error")},this)});if(!h.parent().hasClass("t-picker-wrap")){h.wrap('
      ');if(g.showCalendarButton||g.showTimeButton){c(new b.stringBuilder().cat('').catIf(a("calendar",g.calendarButtonTitle),g.showCalendarButton).cat(a("clock",g.timeButtonTitle),g.showTimeButton).cat("").string()).insertAfter(h)}}this.$wrapper=h.closest(".t-datetimepicker").find(".t-icon-clock").bind("click",this.enabled?c.proxy(this._toggleTimeView,this):b.preventDefault).end().find(".t-icon-calendar").bind("click",this.enabled?c.proxy(this._toggleDateView,this):b.preventDefault).end();this.timeView=new b.timeView({effects:this.effects,dropDownAttr:this.dropDownAttr,format:this.timeFormat,interval:this.interval,isRtl:h.closest(".t-rtl").length,minValue:this.startTimeValue,maxValue:this.endTimeValue,onNavigateWithOpenPopup:c.proxy(function(j){var i=this.parse(j,this.timeFormat);this.$element.val(b.datetime.format(i,this.format))},this),onChange:c.proxy(function(i){this._update(this.parse(i,this.timeFormat));this._close("time")},this)});this.dateView=new b.dateView({selectedValue:this.selectedValue,minValue:this.minValue,maxValue:this.maxValue,effects:this.effects,isRtl:h.closest(".t-rtl").length,onChange:c.proxy(function(i){this._update(i);this._close("date")},this)});this.dateView.$calendar.bind("click",c.proxy(function(i){i.stopPropagation();if(i.target.parentNode.className.indexOf("t-state-selected")!=-1){this._close("date")}},this));this.inputValue=h.val();var d=this.selectedValue||this.inputValue;if(d){var e=this.parse(d);this.dateView.selectedValue=e;this._value(this.parse(d))}c(document.documentElement).bind("mousedown",c.proxy(function(n){var l=this.$element.val();if(l!=this.inputValue){this._update(l)}var i=this.dateView.$calendar;if(!i){return}var m=this.timeView.dropDown.$element;var j=m&&m.parent().length>0;var o=i.data("associatedDateView");var k=n.target;if(c.contains(this.$wrapper[0],k)||(o&&o==this.dateView&&c.contains(i[0],k))||(j&&c.contains(m.parent()[0],k))){return}this._close("date");this._close("time")},this));b.bind(this,{open:this.onOpen,close:this.onClose,valueChange:this.onChange,load:this.onLoad})};b.datetimepicker.prototype={_update:function(e){e=this.parse(e);if(e!=null){if(e-this.minValue<=0){e=this.minValue}else{if(e-this.maxValue>=0){e=this.maxValue}}}var d=this.selectedValue,h=d?b.datetime.format(d,this.format):"",g=e?b.datetime.format(e,this.format):"";this._value(e);if(g!=h){var f={previousValue:d,value:e};if(b.trigger(this.element,"valueChange",f)){this._value(d)}}},_value:function(d){var h=this.$element.val();var g=d===null;var e=this.dateView;var f=e.$calendar.data("associatedDateView");this.selectedValue=d;this.timeView.value(g?null:b.datetime.format(d,this.timeFormat));if(f){e.value(d)}if(!g){h=b.datetime.format(d,this.format)}this.inputValue=h;this.$element.toggleClass("t-state-error",g&&h!="").val(h)},_open:function(d){if(!this[d=="time"?"timeView":"dateView"].isOpened()){this._trigger(d,"open")}},_close:function(f){var d=this.dateView;var e=this.timeView.dropDown;if((f=="time"&&!e.$element.is(":animated")&&e.isOpened())||(!d.$calendar.is(":animated")&&d.isOpened())){this._trigger(f,"close")}},_trigger:function(d,e){if(!b.trigger(this.element,e,{popup:d})){this[e](d)}},_keydown:function(g){var f=g.keyCode,d=this.dateView.isOpened();if(f==9||f==27||(f==13&&this.inputValue!=this.$element.val())){this._update(this.$element.val());this._close("date");this._close("time");return}if(g.altKey){if(f==40){this._close(d?"date":"time");this._open(d?"time":"date")}else{if(f==38){this._close(d?"date":"time")}}return}if(d){this.dateView.navigate(g);return}if(this.timeView.isOpened()&&(f===38||f===40)){this.timeView.navigate(g);return}},_toggleDateView:function(){if(this.dateView.isOpened()){this._close("date")}else{this.element.focus();this._open("date");this._close("time")}},_toggleTimeView:function(){if(this.timeView.isOpened()){this._close("time")}else{this.element.focus();this._open("time");this._close("date")}},enable:function(){this.$element.attr("disabled",false);this.$wrapper.removeClass("t-state-disabled").find(".t-icon-clock").unbind("click").bind("click",c.proxy(this._toggleTimeView,this)).end().find(".t-icon-calendar").unbind("click").bind("click",c.proxy(this._toggleDateView,this))},disable:function(d){this.$element.attr("disabled",true);this.$wrapper.addClass("t-state-disabled").find(".t-icon").unbind("click").bind("click",b.preventDefault)},open:function(e){var f=this.$element;var d={offset:f.offset(),outerHeight:f.outerHeight(),outerWidth:f.outerWidth(),zIndex:b.getElementZIndex(f[0])};this[e=="time"?"timeView":"dateView"].open(d)},close:function(d){this[d=="time"?"timeView":"dateView"].close()},value:function(d){if(d===undefined){return this.selectedValue}var e=this.parse(d);e=b.datepicker.isInRange(e,this.minValue,this.maxValue)?e:null;if(e===null){this.$element.removeClass("t-state-error").val("")}this._value(e);return this},parse:function(d,f){if(d===null||d.getDate){return d}f=f||this.format;var e=b.datetime.parse({AM:b.cultureInfo.am,PM:b.cultureInfo.pm,value:d,format:f,baseDate:this.selectedValue?new b.datetime(this.selectedValue):new b.datetime()});return e!=null?e.toDate():null}};c.each(["min","max"],c.proxy(function(e,d){b.datetimepicker.prototype[d]=function(f){var h=d+"Value";if(f===undefined){return this[h]}var i=this.parse(f);if(i!==null){var g=this[h];this[h]=i;if(this.minValue>this.maxValue){this[h]=g;return}this.dateView[d](i);if(!b.datepicker.isInRange(this.selectedValue,this.minValue,this.maxValue)){this.value(i)}}}},this));c.each(["startTime","endTime"],c.proxy(function(e,d){b.datetimepicker.prototype[d]=function(f){var g=d+"Value";if(f===undefined){return this[g]}var h=this.parse(f,b.cultureInfo.shortTime);if(h!==null){this[g]=h;d=="startTime"?this.timeView.min(h):this.timeView.max(h);if(!b.timeView.isInRange(this.selectedValue,this.minValue,this.maxValue)){this.value(h)}}}},this));c.fn.tDateTimePicker=function(d){c.fn.tDateTimePicker.defaults.timeFormat=b.cultureInfo.shortTime;return b.create(this,{name:"tDateTimePicker",init:function(e,f){return new b.datetimepicker(e,f)},options:d})};c.fn.tDateTimePicker.defaults={effects:b.fx.slide.defaults(),selectedValue:null,format:b.cultureInfo.generalDateShortTime,focusedDate:new b.datetime(),minValue:new Date(1899,11,31),maxValue:new Date(2100,0,1),startTimeValue:new b.datetime().hours(0).minutes(0).seconds(0).toDate(),endTimeValue:new b.datetime().hours(0).minutes(0).seconds(0).toDate(),calendarButtonTitle:"Open the calendar",timeButtonTitle:"Open the time view",showCalendarButton:true,showTimeButton:true,shortYearCutOff:30,enabled:true,interval:30}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.draganddrop.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.draganddrop.min.js new file mode 100644 index 000000000..9d4a5f266 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.draganddrop.min.js @@ -0,0 +1 @@ +(function(d){var g=d.telerik,b=function(){},c={},a={},f={scope:"default",drop:b,over:b,out:b,owner:document.body},e={distance:5,cursorAt:{left:10,top:10},scope:"default",start:b,drag:b,stop:b,destroy:b,owner:document.body,cue:function(){return d("")}};g.scripts.push("telerik.draganddrop.js");g.droppable=function(h){d.extend(this,f,h);d(this.owner).delegate(this.selector,"mouseenter",d.proxy(this._over,this)).delegate(this.selector,"mouseup",d.proxy(this._drop,this)).delegate(this.selector,"mouseleave",d.proxy(this._out,this))};g.droppable.prototype={_over:function(h){this._raise(h,this.over)},_out:function(h){this._raise(h,this.out)},_drop:function(h){this._raise(h,d.proxy(function(i){this.drop(i);i.destroy(i)},this))},_raise:function(j,i){var h=c[this.scope];if(h){i(d.extend(j,h,{$droppable:d(j.currentTarget)}))}}};g.dragCue=function(h){return d('
      ').html(h).prepend('').appendTo(document.body)};g.dragCueStatus=function(h,i){h.find(".t-drag-status").attr("className","t-icon t-drag-status").addClass(i)};g.draggable=function(h){d.extend(this,e,h);d(this.owner).delegate(this.selector,"mousedown",d.proxy(this._wait,this)).delegate(this.selector,"dragstart",g.preventDefault);this._startProxy=d.proxy(this._start,this);this._destroyProxy=d.proxy(this._destroy,this);this._stopProxy=d.proxy(this._stop,this);this._dragProxy=d.proxy(this._drag,this)};g.draggable.get=function(h){return c[h]};g.draggable.prototype={_raise:function(j,i){var h=c[this.scope];if(h){return i(d.extend(j,h))}},_startDrag:function(h,j){h=d(h);this.$target=h;if(j){this._startPosition=j}else{var i=h.offset();this._startPosition={x:i.left,y:i.top}}d(document).bind({mousemove:this._startProxy,mouseup:this._destroyProxy})},_wait:function(h){this._startDrag(h.currentTarget,{x:h.pageX,y:h.pageY});d(document.documentElement).trigger("mousedown",h);return false},_start:function(l){var k=this._startPosition.x-l.pageX,j=this._startPosition.y-l.pageY;var i=Math.sqrt((k*k)+(j*j));if(i>=this.distance){var h=a[this.selector];if(!h){h=a[this.selector]=this.cue({$draggable:this.$target});d(document).unbind("mousemove",this._startProxy).unbind("mouseup",this._destroyProxy).bind({"mouseup keydown":this._stopProxy,mousemove:this._dragProxy,selectstart:false})}c[this.scope]={$cue:h.css({position:"absolute",left:l.pageX+this.cursorAt.left,top:l.pageY+this.cursorAt.top}),$draggable:this.$target,destroy:this._destroyProxy};if(this._raise(l,this.start)===false){this._destroy(l)}}},_drag:function(h){this._raise(h,this.drag);c[this.scope].$cue.css({left:h.pageX+this.cursorAt.left,top:h.pageY+this.cursorAt.top})},_stop:function(h){if(h.type=="mouseup"||h.keyCode==27){if(this._raise(h,this.stop)===false){this._destroy(h)}else{var i=c[this.scope];i.$cue.animate(i.$draggable.offset(),"fast",this._destroyProxy)}}},_destroy:function(h){d(document).unbind("mouseup keydown",this._stopProxy).unbind("mousemove",this._dragProxy).unbind("mousemove",this._startProxy).unbind("selectstart",false);this._raise(h,this.destroy);c[this.scope]=null;a[this.selector]=null}}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.editor.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.editor.min.js new file mode 100644 index 000000000..e1dc90070 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.editor.min.js @@ -0,0 +1 @@ +(function(s){var at=s.telerik;at.scripts.push("telerik.editor.js");function G(a5){var a4={};for(var a3=0;a38){g=function(a4){if(a4.nodeType==1&&a4.firstChild){var a3=a4.firstChild,a5=a3;while(a5=a5.nextSibling){if(a5.nodeType==3&&a3.nodeType==3){a5.nodeValue=a3.nodeValue+a5.nodeValue;D.remove(a3)}a3=a5}}}}function p(a3){var a4=0;while(a3=a3.previousSibling){a4++}return a4}function af(a3){return a3&&a3.nodeValue!==null&&a3.data!==null}function k(a3,a4){try{return !af(a3)&&(s.contains(a3,af(a4)?a4.parentNode:a4)||a4.parentNode==a3)}catch(a5){return false}}function z(a4,a3){return k(a4,a3)||a4==a3}function aC(a4,a3){if(k(a4,a3)){while(a3&&a3.parentNode!=a4){a3=a3.parentNode}}return a3}function aH(a3){return af(a3)?a3.length:a3.childNodes.length}function aw(a3,a5){var a4=a3.cloneNode(false);a3.deleteData(a5,a3.length);a4.deleteData(0,a5);D.insertAfter(a4,a3)}function B(a4,a5){for(var a6 in a5){var a3=a4[a6];if(a6=="float"){a3=a4[s.support.cssFloat?"cssFloat":"styleFloat"]}if(typeof a3=="object"){if(!B(a3,a5[a6])){return false}}else{if(a3!=a5[a6]){return false}}}return true}var aE=/^\s+$/;var e=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i;var ah=("color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height").split(",");var D={blockParentOrBody:function(a3){return D.parentOfType(a3,H)||a3.ownerDocument.body},normalize:g,toHex:function(a3){var a4=e.exec(a3);if(!a4){return a3}return"#"+s.map(a4.slice(1),function(a5){return a5=parseInt(a5).toString(16),a5.length>1?a5:"0"+a5}).join("")},encode:function(a3){return a3.replace(/&/g,"&").replace(//g,">").replace(/\u00a0/g," ")},name:function(a3){return a3.nodeName.toLowerCase()},significantChildNodes:function(a3){return s.grep(a3.childNodes,function(a4){return a4.nodeType!=3||!D.isWhitespace(a4)})},lastTextNode:function(a4){if(a4.nodeType==3){return a4}var a3=null;for(var a5=a4.lastChild;a5;a5=a5.previousSibling){if(a3=D.lastTextNode(a5)){return a3}}return a3},is:function(a3,a4){return D.name(a3)==a4},isMarker:function(a3){return a3.className=="t-marker"},isWhitespace:function(a3){return aE.test(a3.nodeValue)},isBlock:function(a3){return N[D.name(a3)]},isEmpty:function(a3){return aN[D.name(a3)]},isInline:function(a3){return aW[D.name(a3)]},scrollTo:function(a3){a3.ownerDocument.body.scrollTop=s(af(a3)?a3.parentNode:a3).offset().top},insertAt:function(a4,a3,a5){a4.insertBefore(a3,a4.childNodes[a5]||null)},insertBefore:function(a3,a4){if(a4.parentNode){return a4.parentNode.insertBefore(a3,a4)}else{return a4}},insertAfter:function(a3,a4){return a4.parentNode.insertBefore(a3,a4.nextSibling)},remove:function(a3){a3.parentNode.removeChild(a3)},trim:function(a4){for(var a3=a4.childNodes.length-1;a3>=0;a3--){var a5=a4.childNodes[a3];if(af(a5)){if(a5.nodeValue.replace(/\ufeff/g,"").length==0){D.remove(a5)}if(D.isWhitespace(a5)){D.insertBefore(a5,a4)}}else{if(a5.className!="t-marker"){D.trim(a5);if(a5.childNodes.length==0&&!D.isEmpty(a5)){D.remove(a5)}}}}return a4},parentOfType:function(a3,a4){do{a3=a3.parentNode}while(a3&&!(D.ofType(a3,a4)));return a3},ofType:function(a3,a4){return s.inArray(D.name(a3),a4)>=0},changeTag:function(a7,a4){var a6=D.create(a7.ownerDocument,a4);var ba=a7.attributes;for(var a5=0;a5]*>/i,x=/

      <\/p>/i;function C(a5){var a8=[];var a7={"telerik:script":{start:function(a9){a8.push("")},end:function(){a8.push("")}},b:{start:function(){a8.push("")},end:function(){a8.push("")}},i:{start:function(){a8.push("")},end:function(){a8.push("")}},u:{start:function(){a8.push('')},end:function(){a8.push("")}},font:{start:function(bb){a8.push('')},end:function(a9){a8.push("")}}};function a4(ba){var bh=[],bp=ba.attributes,bm=s.trim;if(D.is(ba,"img")){var bs=ba.style.width,bi=ba.style.height,bg=s(ba);if(bs){bg.attr("width",parseInt(bs));D.unstyle(ba,{width:undefined})}if(bi){bg.attr("height",parseInt(bi));D.unstyle(ba,{height:undefined})}}for(var bf=0,bk=bp.length;bfbu.nodeName?1:bt.nodeName=0){a9=D.toHex(a9)}if(bb.indexOf("font-family")>=0){a9=a9.replace(K,"'")}a8.push(bb);a8.push(":");a8.push(a9);a8.push(";")}}}else{if(br=="src"||br=="href"){a8.push(ba.getAttribute(br,2))}else{a8.push(M[br]?br:bl)}}a8.push('"')}}function a3(a9,ba){for(var bb=a9.firstChild;bb;bb=bb.nextSibling){a6(bb,ba)}}function a6(bc,bd){var bg=bc.nodeType;if(bg==1){if(bc.attributes._moz_dirty&&D.is(bc,"br")){return}var ba=D.name(bc);var be=a7[ba];if(be){be.start(bc);a3(bc);be.end(bc);return}a8.push("<");a8.push(ba);a4(bc);if(aN[ba]){a8.push(" />")}else{a8.push(">");a3(bc,bd||D.is(bc,"pre"));a8.push("")}}else{if(bg==3){var a9=bc.nodeValue;if(!bd&&s.support.leadingWhitespace){var bf=bc.parentNode;var bb=(D.isInline(bf)?bf:bc).previousSibling;if(!bb||bb.innerHTML==""||D.isBlock(bb)){a9=a9.replace(/^[\r\n\v\f\t ]+/,"")}a9=a9.replace(/ +/," ")}a8.push(D.encode(a9))}else{if(bg==4){a8.push("")}else{if(bg==8){if(bc.data.indexOf("[CDATA[")<0){a8.push("")}else{a8.push("")}}}}}}a3(a5);a8=a8.join("");if(a8.replace(am,"").replace(x,"")==""){return""}return a8}var v=0,ar=1,a=2,T=3;function q(a4){var a3=a4.startContainer;return a3.nodeType==9?a3:a3.ownerDocument}function E(a3){if(s.browser.msie){return new ax(a3.document)}return a3.getSelection()}function al(a4){var a3=q(a4);return a1(a3)}function a1(a3){return E(aA(a3))}function aA(a3){return a3.defaultView||a3.parentWindow}function an(a3,a4,a6){function a5(a9){var a7=a3.cloneRange();a7.collapse(a9);a7[a9?"setStartBefore":"setEndAfter"](a4);var a8=a7.extractContents();if(a6){a8=D.trim(a8)}D[a9?"insertBefore":"insertAfter"](a8,a4)}a5(true);a5(false)}function O(a4){var a5=U.image(a4);if(a5){a4.setStartAfter(a5);a4.setEndAfter(a5)}var a3=al(a4);a3.removeAllRanges();a3.addRange(a4)}function L(a3){s.extend(this,{ownerDocument:a3,startContainer:a3,endContainer:a3,commonAncestorContainer:a3,startOffset:0,endOffset:0,collapsed:true})}L.prototype={setStart:function(a3,a4){this.startContainer=a3;this.startOffset=a4;w(this);u(this,true)},setEnd:function(a3,a4){this.endContainer=a3;this.endOffset=a4;w(this);u(this,false)},setStartBefore:function(a3){this.setStart(a3.parentNode,p(a3))},setStartAfter:function(a3){this.setStart(a3.parentNode,p(a3)+1)},setEndBefore:function(a3){this.setEnd(a3.parentNode,p(a3))},setEndAfter:function(a3){this.setEnd(a3.parentNode,p(a3)+1)},selectNode:function(a3){this.setStartBefore(a3);this.setEndAfter(a3)},selectNodeContents:function(a3){this.setStart(a3,0);this.setEnd(a3,a3[a3.nodeType===1?"childNodes":"nodeValue"].length)},collapse:function(a3){if(a3){this.setEnd(this.startContainer,this.startOffset)}else{this.setStart(this.endContainer,this.endOffset)}},deleteContents:function(){var a4=this.cloneRange();if(this.startContainer!=this.commonAncestorContainer){this.setStartAfter(aC(this.commonAncestorContainer,this.startContainer))}this.collapse(true);(function a3(a5){while(a5.next()){a5.hasPartialSubtree()?a3(a5.getSubtreeIterator()):a5.remove()}})(new l(a4))},cloneContents:function(){var a3=q(this);return(function a4(a7){for(var a6,a5=a3.createDocumentFragment();a6=a7.next();){a6=a6.cloneNode(!a7.hasPartialSubtree());if(a7.hasPartialSubtree()){a6.appendChild(a4(a7.getSubtreeIterator()))}a5.appendChild(a6)}return a5})(new l(this))},extractContents:function(){var a4=this.cloneRange();if(this.startContainer!=this.commonAncestorContainer){this.setStartAfter(aC(this.commonAncestorContainer,this.startContainer))}this.collapse(true);var a5=this;var a3=q(this);return(function a6(a9){for(var a8,a7=a3.createDocumentFragment();a8=a9.next();){a9.hasPartialSubtree()?a8=a8.cloneNode(false):a9.remove(a5.originalRange);if(a9.hasPartialSubtree()){a8.appendChild(a6(a9.getSubtreeIterator()))}a7.appendChild(a8)}return a7})(new l(a4))},insertNode:function(a3){if(af(this.startContainer)){if(this.startOffset!=this.startContainer.nodeValue.length){aw(this.startContainer,this.startOffset)}D.insertAfter(a3,this.startContainer)}else{D.insertAt(this.startContainer,a3,this.startOffset)}this.setStart(this.startContainer,this.startOffset)},cloneRange:function(){return s.extend(new L(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var a4=this.startContainer.nodeName,a3=this.endContainer.nodeName;return[a4=="#text"?this.startContainer.nodeValue:a4,"(",this.startOffset,") : ",a3=="#text"?this.endContainer.nodeValue:a3,"(",this.endOffset,")"].join("")}};function m(a5,a3,ba,a7){if(a5==a3){return a7-ba}var a9=a3;while(a9&&a9.parentNode!=a5){a9=a9.parentNode}if(a9){return p(a9)-ba}a9=a5;while(a9&&a9.parentNode!=a3){a9=a9.parentNode}if(a9){return a7-p(a9)-1}var a8=D.commonAncestor(a5,a3);var a6=a5;while(a6&&a6.parentNode!=a8){a6=a6.parentNode}if(!a6){a6=a8}var a4=a3;while(a4&&a4.parentNode!=a8){a4=a4.parentNode}if(!a4){a4=a8}if(a6==a4){return 0}return p(a4)-p(a6)}function u(a4,a5){function a3(a7){try{return m(a7.startContainer,a7.endContainer,a7.startOffset,a7.endOffset)<0}catch(a6){return true}}if(a3(a4)){if(a5){a4.commonAncestorContainer=a4.endContainer=a4.startContainer;a4.endOffset=a4.startOffset}else{a4.commonAncestorContainer=a4.startContainer=a4.endContainer;a4.startOffset=a4.endOffset}a4.collapsed=true}}function w(a4){a4.collapsed=a4.startContainer==a4.endContainer&&a4.startOffset==a4.endOffset;var a3=a4.startContainer;while(a3&&a3!=a4.endContainer&&!k(a3,a4.endContainer)){a3=a3.parentNode}a4.commonAncestorContainer=a3}function aR(a3){if(s.browser.msie){return new L(a3)}return a3.createRange()}function l(a4){s.extend(this,{range:a4,_current:null,_next:null,_end:null});if(a4.collapsed){return}var a3=a4.commonAncestorContainer;this._next=a4.startContainer==a3&&!af(a4.startContainer)?a4.startContainer.childNodes[a4.startOffset]:aC(a3,a4.startContainer);this._end=a4.endContainer==a3&&!af(a4.endContainer)?a4.endContainer.childNodes[a4.endOffset]:aC(a3,a4.endContainer).nextSibling}l.prototype={hasNext:function(){return !!this._next},next:function(){var a3=this._current=this._next;this._next=this._current&&this._current.nextSibling!=this._end?this._current.nextSibling:null;if(af(this._current)){if(this.range.endContainer==this._current){(a3=a3.cloneNode(true)).deleteData(this.range.endOffset,a3.length-this.range.endOffset)}if(this.range.startContainer==this._current){(a3=a3.cloneNode(true)).deleteData(0,this.range.startOffset)}}return a3},traverse:function(a4){function a3(){this._current=this._next;this._next=this._current&&this._current.nextSibling!=this._end?this._current.nextSibling:null;return this._current}var a5;while(a5=a3.call(this)){if(this.hasPartialSubtree()){this.getSubtreeIterator().traverse(a4)}else{a4(a5)}}return a5},remove:function(a8){var a7=this.range.startContainer==this._current;var a5=this.range.endContainer==this._current;if(af(this._current)&&(a7||a5)){var a4=a7?this.range.startOffset:0;var a3=a5?this.range.endOffset:this._current.length;var ba=a3-a4;if(a8&&(a7||a5)){if(this._current==a8.startContainer&&a4<=a8.startOffset){a8.startOffset-=ba}if(this._current==a8.endContainer&&a3<=a8.endOffset){a8.endOffset-=ba}}this._current.deleteData(a4,ba)}else{var a9=this._current.parentNode;if(a8&&(this.range.startContainer==a9||this.range.endContainer==a9)){var a6=p(this._current);if(a9==a8.startContainer&&a6<=a8.startOffset){a8.startOffset-=1}if(a9==a8.endContainer&&a60&&a6.previousSibling);a9.setEndPoint(a3?"EndToStart":"EndToEnd",a8);var a7=a6.nextSibling;if(!a7){a7=a6.previousSibling;if(a7&&af(a7)){a4.setEnd(a7,a7.nodeValue.length);D.remove(a6)}else{a4.selectNodeContents(a5);D.remove(a6);a4.endOffset-=1}return}D.remove(a6);if(af(a7)){a4[a3?"setStart":"setEnd"](a7,a9.text.length)}else{a4[a3?"setStartBefore":"setEndBefore"](a7)}}function aj(a3){this.enumerate=function(){var a5=[];function a4(a6){if(D.is(a6,"img")||(a6.nodeType==3&&!D.isWhitespace(a6))){a5.push(a6)}else{a6=a6.firstChild;while(a6){a4(a6);a6=a6.nextSibling}}}new l(a3).traverse(a4);return a5}}function j(a3){return new aj(a3).enumerate()}function Z(a7){var a3=[];for(var a4=0,a6=a7.length;a4'}a5.selectNodeContents(a9)}}a5.collapse(true)};this.add=function(a4,a6){if(a6&&a4.collapsed){this.addCaret(a4);a4=U.expand(a4)}var a5=a4.cloneRange();a5.collapse(false);this.end=D.create(q(a4),"span",{className:"t-marker"});a5.insertNode(this.end);a5=a4.cloneRange();a5.collapse(true);this.start=this.end.cloneNode(true);a5.insertNode(this.start);a4.setStartBefore(this.start);a4.setEndAfter(this.end);g(a4.commonAncestorContainer);return a4};this.remove=function(bb){var a4=this.start,bg=this.end;g(bb.commonAncestorContainer);while(!a4.nextSibling&&a4.parentNode){a4=a4.parentNode}while(!bg.previousSibling&&bg.parentNode){bg=bg.parentNode}var a6=(a4.previousSibling&&a4.previousSibling.nodeType==3)&&(a4.nextSibling&&a4.nextSibling.nodeType==3);var bc=(bg.previousSibling&&bg.previousSibling.nodeType==3)&&(bg.nextSibling&&bg.nextSibling.nodeType==3);a4=a4.nextSibling;bg=bg.previousSibling;var bf=false;var a9=false;if(a4==this.end){a9=!!this.start.previousSibling;a4=bg=this.start.previousSibling||this.end.nextSibling;bf=true}D.remove(this.start);D.remove(this.end);if(a4==null||bg==null){bb.selectNodeContents(bb.commonAncestorContainer);bb.collapse(true);return}var be=bf?af(a4)?a4.nodeValue.length:a4.childNodes.length:0;var a7=af(bg)?bg.nodeValue.length:bg.childNodes.length;if(a4.nodeType==3){while(a4.previousSibling&&a4.previousSibling.nodeType==3){a4=a4.previousSibling;be+=a4.nodeValue.length}}if(bg.nodeType==3){while(bg.previousSibling&&bg.previousSibling.nodeType==3){bg=bg.previousSibling;a7+=bg.nodeValue.length}}var ba=p(a4),bd=a4.parentNode;var a8=p(bg),a5=bg.parentNode;for(var bi=a4;bi.previousSibling;bi=bi.previousSibling){if(bi.nodeType==3&&bi.previousSibling.nodeType==3){ba--}}for(var bh=bg;bh.previousSibling;bh=bh.previousSibling){if(bh.nodeType==3&&bh.previousSibling.nodeType==3){a8--}}g(bd);if(a4.nodeType==3){a4=bd.childNodes[ba]}g(a5);if(bg.nodeType==3){bg=a5.childNodes[a8]}if(bf){if(a4.nodeType==3){bb.setStart(a4,be)}else{bb[a9?"setStartAfter":"setStartBefore"](a4)}bb.collapse(true)}else{if(a4.nodeType==3){bb.setStart(a4,be)}else{bb.setStartBefore(a4)}if(bg.nodeType==3){bb.setEnd(bg,a7)}else{bb.setEndAfter(bg)}}if(a3){this.removeCaret(bb)}}}var au=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/;var U={nodes:function(a4){var a3=j(a4);if(!a3.length){a4.selectNodeContents(a4.commonAncestorContainer);a3=j(a4);if(!a3.length){a3=D.significantChildNodes(a4.commonAncestorContainer)}}return a3},image:function(a4){var a3=[];new l(a4).traverse(function(a5){if(D.is(a5,"img")){a3.push(a5)}});if(a3.length==1){return a3[0]}},expand:function(a4){var a5=a4.cloneRange();var a8=a5.startContainer.childNodes[a5.startOffset==0?0:a5.startOffset-1];var a9=a5.endContainer.childNodes[a5.endOffset];if(!af(a8)||!af(a9)){return a5}var a6=a8.nodeValue;var a7=a9.nodeValue;if(a6==""||a7==""){return a5}var a3=a6.split("").reverse().join("").search(au);var ba=a7.search(au);if(a3==0||ba==0){return a5}ba=ba==-1?a7.length:ba;a3=a3==-1?0:a6.length-a3;a5.setStart(a8,a3);a5.setEnd(a9,ba);return a5},isExpandable:function(a4){var a9=a4.startContainer;var a8=q(a4);if(a9==a8||a9==a8.body){return false}var a5=a4.cloneRange();var a3=a9.nodeValue;if(!a3){return false}var a6=a3.substring(0,a5.startOffset);var a7=a3.substring(a5.startOffset);var ba=0,bb=0;if(a6!=""){ba=a6.split("").reverse().join("").search(au)}if(a7!=""){bb=a7.search(au)}return ba!=0&&bb!=0}};function c(a4){var a5=new ao(a4.range);var a3=new ac();this.formatter=a4.formatter;this.getRange=function(){return a5.toRange()};this.lockRange=function(a6){return a3.add(this.getRange(),a6)};this.releaseRange=function(a6){a3.remove(a6);O(a6)};this.undo=function(){a5.body.innerHTML=a5.html;O(a5.toRange())};this.redo=function(){this.exec()};this.exec=function(){var a6=this.lockRange(true);this.formatter.editor=this.editor;this.formatter.toggle(a6);this.releaseRange(a6)}}function aY(a5,a4){var a3=a5.body;this.redo=function(){a3.innerHTML=a4.html;O(a4.toRange())};this.undo=function(){a3.innerHTML=a5.html;O(a5.toRange())}}function t(a3){c.call(this,a3);this.managesUndoRedo=true;this.exec=function(){var a5=this.editor;var a4=a5.getRange();var a6=new ao(a4);a5.clipboard.paste(a3.value||"");a5.undoRedoStack.push(new aY(a6,new ao(a5.getRange())));a5.focus()}}function aT(){X.call(this);this.command=function(a3){return new t(a3)};this.update=function(a3,a4){a3.data("tSelectBox").close()};this.init=function(a5,a3){var a4=a3.editor;a5.tSelectBox({data:a4.insertHtml,onItemCreate:function(a6){a6.html=''+a6.dataItem.Text+""},onChange:function(a6){X.exec(a4,"insertHtml",a6.value)},highlightFirst:false}).find(".t-input").html(a4.localization.insertHtml)}}function R(){var a4=[],a3=-1;this.push=function(a5){a4=a4.slice(0,a3+1);a3=a4.push(a5)-1};this.undo=function(){if(this.canUndo()){a4[a3--].undo()}};this.redo=function(){if(this.canRedo()){a4[++a3].redo()}};this.canUndo=function(){return a3>=0};this.canRedo=function(){return a3!=a4.length-1}}function aS(a3){this.keydown=function(a7){var a6=a3.keyboard;var a4=a6.isTypingKey(a7);if(a4&&!a6.typingInProgress()){var a5=a3.getRange();this.startRestorePoint=new ao(a5);a6.startTyping(s.proxy(function(){a3.selectionRestorePoint=this.endRestorePoint=new ao(a3.getRange());a3.undoRedoStack.push(new aY(this.startRestorePoint,this.endRestorePoint))},this));return true}return false};this.keyup=function(a4){var a5=a3.keyboard;if(a5.typingInProgress()){a5.endTyping();return true}return false}}function A(a4){var a3=false;this.createUndoCommand=function(){this.endRestorePoint=new ao(a4.getRange());a4.undoRedoStack.push(new aY(this.startRestorePoint,this.endRestorePoint));this.startRestorePoint=this.endRestorePoint};this.changed=function(){if(this.startRestorePoint){return this.startRestorePoint.html!=a4.body.innerHTML}return false};this.keydown=function(a5){var a6=a4.keyboard;if(a6.isModifierKey(a5)){if(a6.typingInProgress()){a6.endTyping(true)}this.startRestorePoint=new ao(a4.getRange());return true}if(a6.isSystem(a5)){a3=true;if(this.changed()){a3=false;this.createUndoCommand()}return true}return false};this.keyup=function(a5){if(a3&&this.changed()){a3=false;this.createUndoCommand(a5);return true}return false}}function aI(a4){var a6=false;var a9;var a5;function a3(ba){return(ba>=48&&ba<=90)||(ba>=96&&ba<=111)||(ba>=186&&ba<=192)||(ba>=219&&ba<=222)}this.toolFromShortcut=function(bc,be){var bb=String.fromCharCode(be.keyCode);for(var bd in bc){var ba=bc[bd];if((ba.key==bb||ba.key==be.keyCode)&&!!ba.ctrl==be.ctrlKey&&!!ba.alt==be.altKey&&!!ba.shift==be.shiftKey){return bd}}};this.isTypingKey=function(bb){var ba=bb.keyCode;return(a3(ba)&&!bb.ctrlKey&&!bb.altKey)||ba==32||ba==13||ba==8||(ba==46&&!bb.shiftKey&&!bb.ctrlKey&&!bb.altKey)};this.isModifierKey=function(bb){var ba=bb.keyCode;return(ba==17&&!bb.shiftKey&&!bb.altKey)||(ba==16&&!bb.ctrlKey&&!bb.altKey)||(ba==18&&!bb.ctrlKey&&!bb.shiftKey)};this.isSystem=function(ba){return ba.keyCode==46&&ba.ctrlKey&&!ba.altKey&&!ba.shiftKey};this.startTyping=function(ba){a5=ba;a6=true};function a7(){a6=false;a5()}this.endTyping=function(ba){this.clearTimeout();if(ba){a7()}else{a9=window.setTimeout(a7,1000)}};this.typingInProgress=function(){return a6};this.clearTimeout=function(){window.clearTimeout(a9)};function a8(bc,bb){for(var ba=0;ba$/g,"li>");bc=bc.replace(/"))}bb.insertNode(bi);bg=a5(a9,bh);if(bf){while(bh.parentNode!=bg){D.unwrap(bh.parentNode)}D.unwrap(bh.parentNode)}g(bb.commonAncestorContainer);bh.style.display="inline";D.scrollTo(bh);be.removeCaret(bb);O(bb)}}function f(){var a3=[//g,"",/mso-[^;"]*;?/ig,"",/<\/?(meta|link|style|o:|v:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:)[^>]*>)?/ig,""];this.applicable=function(a6){return/class="?Mso|style="[^"]*mso-/i.test(a6)};function a4(a6){if(/^[\u2022\u00b7\u00a7\u00d8o\-]\u00a0+/.test(a6)){return"ul"}if(/^\s*\w+[\.\)]\u00a0{2,}/.test(a6)){return"ol"}}function a5(bj){var bb=D.create(document,"div",{innerHTML:bj});var bi=s(H.join(","),bb);var bd=-1,a8,bh={ul:{},ol:{}},a6=bb;for(var be=0;be]*>/g,"").replace(/ /g,"\u00a0");var bc=a4(bj);if(!bc||D.name(a9)!="p"){if(a9.innerHTML==""){D.remove(a9)}else{bh={ul:{},ol:{}};a6=bb;bd=-1}continue}var bf=parseFloat(a9.style.marginLeft||0);var bg=bh[bc][bf];if(bf>bd||!bg){bg=D.create(document,bc);if(a6==bb){D.insertBefore(bg,a9)}else{a6.appendChild(bg)}bh[bc][bf]=bg}if(a8!=bc){for(var ba in bh){for(var a7 in bh[ba]){if(s.contains(bg,bh[ba][a7])){delete bh[ba][a7]}}}}D.remove(a9.firstChild);a6=D.create(document,"li",{innerHTML:a9.innerHTML});bg.appendChild(a6);D.remove(a9);bd=bf;a8=bc}return bb.innerHTML}this.clean=function(a7){for(var a6=0,a8=a3.length;a6]*"?/ig,"");return a7}}function i(a3){function a4(a7){var a5=0;for(var a6=a7.parentNode.firstChild;a6;a6=a6.nextSibling){if(a6!=a7&&a6.className!="t-marker"&&a6.nodeType==1){a5++}}return a5}this.findSuitable=function(a6,a5){if(!a5&&a4(a6)>0){return null}return D.parentOfType(a6,a3[0].tags)};this.findFormat=function(a9){for(var a5=0;a50){this.activate(a9,a8)}};this.apply=function(bb){var ba=[];for(var a8=0,a9=bb.length;a80){for(var a8=0,bb=bc.length;a81){var a8=ba.pop();var a9=ba[ba.length-1];if(a8.previousSibling&&a8.previousSibling.className=="t-marker"){a9.appendChild(a8.previousSibling)}if(a8.previousSibling==a9&&a8.style.cssText==a9.style.cssText){while(a8.firstChild){a9.appendChild(a8.firstChild)}D.remove(a8)}}}}function a2(a4,a3){i.call(this,a4);function a5(a9){var bk=a9.attributes,bh=s.trim;if(!bk){return}for(var a8=0,bf=bk.length;a8=0?D.toHex(a7):a7}}}}return}function a6(bb){var bc=s(af(bb)?bb.parentNode:bb);var ba=bc.parents().andSelf();for(var a8=0,a9=ba.length;a8'+bb.dataItem.Text+""}}}function a0(a5){X.call(this,a5);var a4=[{tags:["span"]}],a3=new a2(a4,a5.cssAttr);this.update=function(a6){a6.data("tColorPicker").close()};this.command=function(a6){return new aK(s.extend(a6,{formatter:function(){var a7={};a7[a5.domAttr]=a6.value;return new F(a4,{style:a7},a5.cssAttr)}}))};this.willDelayExecution=ad;this.init=function(a8,a6){var a7=a6.editor;a8.tColorPicker({selectedColor:"#000000",onChange:function(a9){X.exec(a7,a5.name,a9.value)}})}}function ab(){X.call(this);var a4=[{tags:["span"]}],a3=new a2(a4,"className");this.command=function(a5){return new aK(s.extend(a5,{formatter:function(){return new F(a4,{className:a5.value})}}))};this.update=function(a5,a7){var a6=a5.data("tSelectBox");a6.close();a6.value(a3.getFormat(a7))};this.init=function(a7,a5){var a6=a5.editor;a7.tSelectBox({data:a6.style,title:a6.localization.style,onItemCreate:function(a8){var a9=D.inlineStyle(a6.document,"span",{className:a8.dataItem.Value});a8.html=''+a8.html+""},onChange:function(a8){X.exec(a6,"style",a8.value)}})}}function y(a4){function a3(a7,a8){for(var a5=0;a5'+a8.dataItem.Text+""},onChange:function(a7){X.exec(a5,"formatBlock",a7.value)},highlightFirst:false})}}function aU(a3){c.call(this,a3);this.exec=function(){var a6=this.getRange(),bg=q(a6),a9,be=s.browser.msie?"":'
      ';var a8="p,h1,h2,h3,h4,h5,h6".split(","),bh=D.parentOfType(a6.startContainer,a8),a4=D.parentOfType(a6.endContainer,a8),a5=(bh&&!a4)||(!bh&&a4);a6.deleteContents();var bf=D.create(bg,"a");a6.insertNode(bf);g(bf.parentNode);var a7=D.parentOfType(bf,["li"]),bi=D.parentOfType(bf,"h1,h2,h3,h4,h5,h6".split(","));if(a7){var bb=a6.cloneRange();bb.selectNode(a7);if(j(bb).length==0){var bj=D.create(bg,"p");if(a7.nextSibling){an(bb,a7.parentNode)}D.insertAfter(bj,a7.parentNode);D.remove(a7.parentNode.childNodes.length==1?a7.parentNode:a7);bj.innerHTML=be;a9=bj}}else{if(bi&&!bf.nextSibling){var bj=D.create(bg,"p");D.insertAfter(bj,bi);bj.innerHTML=be;D.remove(bf);a9=bj}}if(!a9){if(!(a7||bi)){new W([{tags:["p"]}]).apply([bf])}a6.selectNode(bf);var ba=D.parentOfType(bf,[a7?"li":bi?D.name(bi):"p"]);an(a6,ba,a5);var bc=ba.previousSibling;if(D.is(bc,"li")&&bc.firstChild&&!D.is(bc.firstChild,"br")){bc=bc.firstChild}a9=ba.nextSibling;if(D.is(a9,"li")&&a9.firstChild&&!D.is(a9.firstChild,"br")){a9=a9.firstChild}D.remove(ba);function bd(bk){if(bk.firstChild&&D.is(bk.firstChild,"br")){D.remove(bk.firstChild)}if(af(bk)&&bk.nodeValue==""){bk=bk.parentNode}if(bk&&!D.is(bk,"img")&&bk.innerHTML==""){bk.innerHTML=be}}bd(bc);bd(a9);g(bc)}g(a9);if(!D.is(a9,"img")){a6.selectNodeContents(a9)}else{a6.setStartBefore(a9)}a6.collapse(true);D.scrollTo(a9);O(a6)}}function d(a3){c.call(this,a3);this.exec=function(){var a5=this.getRange();a5.deleteContents();var a4=D.create(q(a5),"br");a5.insertNode(a4);g(a4.parentNode);if(!s.browser.msie&&(!a4.nextSibling||D.isWhitespace(a4.nextSibling))){var a6=a4.cloneNode(true);a6.setAttribute("_moz_dirty","");D.insertAfter(a6,a4)}a5.setStartAfter(a4);a5.collapse(true);O(a5)}}function aq(a4){var a3=[a4=="ul"?"ol":"ul",a4];y.call(this,[{tags:a3}]);this.isFormatted=function(a8){var a5=[],a6;for(var a7=0;a71){D.insertAfter(a6[a6.length-1],a7);D.insertAfter(a6[1],a7);D[a5.length>0?"insertBefore":"insertAfter"](a6[0],a7)}}else{var a8=new b([{tags:["a"]}],a9);a8.finder=this.finder;a8.apply(a5)}}}function ap(a3){a3.formatter={toggle:function(a4){new b([{tags:["a"]}]).remove(j(a4))}};c.call(this,a3)}function aa(a4){c.call(this,a4);var a3;this.async=true;var a5=new aZ();this.exec=function(){var ba=this.getRange();var a8=ba.collapsed;ba=this.lockRange(true);var bd=j(ba);var bc=null;var a7=this;function be(bk){var bj=s("#t-editor-link-url",bb.element).val();if(bj&&bj!="http://"){a3={href:bj};var bg=s("#t-editor-link-title",bb.element).val();if(bg){a3.title=bg}var bh=s("#t-editor-link-text",bb.element).val();if(bh!==bc){a3.innerHTML=bh}var bi=s("#t-editor-link-target",bb.element).is(":checked");if(bi){a3.target="_blank"}a5.apply(ba,a3)}a9(bk);if(a7.change){a7.change()}}function a9(bg){bg.preventDefault();bb.destroy();aA(q(ba)).focus();a7.releaseRange(ba)}var bf=bd.length?a5.finder.findSuitable(bd[0]):null;var a6=bd.length<=1||(bd.length==2&&a8);var bb=at.window.create(s.extend({},this.editor.dialogOptions,{title:"Insert link",html:new s.telerik.stringBuilder().cat('

      ').cat("
        ").cat('
      1. ').catIf('
      2. ',a6).cat('
      3. ').cat('
      4. ').cat("
      ").cat('
      ').cat('').cat(" or ").cat('Close').cat("
      ").cat("
      ").string(),onClose:a9})).hide().find(".t-dialog-insert").click(be).end().find(".t-dialog-close").click(a9).end().find(".t-form-text-row input").keydown(function(bg){if(bg.keyCode==13){be(bg)}else{if(bg.keyCode==27){a9(bg)}}}).end().find("#t-editor-link-url").val(bf?bf.getAttribute("href",2):"http://").end().find("#t-editor-link-text").val(bd.length>0?(bd.length==1?bd[0].nodeValue:bd[0].nodeValue+bd[1].nodeValue):"").end().find("#t-editor-link-title").val(bf?bf.title:"").end().find("#t-editor-link-target").attr("checked",bf?bf.target=="_blank":false).end().show().data("tWindow").center();if(a6&&bd.length>0){bc=s("#t-editor-link-text",bb.element).val()}s("#t-editor-link-url",bb.element).focus().select()},this.redo=function(){var a6=this.lockRange(true);a5.apply(a6,a3);this.releaseRange(a6)}}function aV(a4){X.call(this,s.extend(a4,{command:ap}));var a3=new i([{tags:["a"]}]);this.init=function(a5){a5.attr("unselectable","on").addClass("t-state-disabled")};this.update=function(a5,a6){a5.toggleClass("t-state-disabled",!a3.isFormatted(a6)).removeClass("t-state-hover")}}function aP(a4){c.call(this,a4);this.async=true;var a3;function a5(a6,a7){if(a3.src&&a3.src!="http://"){if(!a6){a6=D.create(q(a7),"img",a3);a6.onload=a6.onerror=function(){a6.removeAttribute("complete");a6.removeAttribute("width");a6.removeAttribute("height")};a7.deleteContents();a7.insertNode(a6);a7.setStartAfter(a6);a7.setEndAfter(a6);O(a7);return true}else{D.attr(a6,a3)}}return false}this.redo=function(){var a6=this.lockRange();if(!a5(U.image(a6),a6)){this.releaseRange(a6)}};this.exec=function(){var a9=this.lockRange();var a6=false;var bc=U.image(a9);var a7=this;function bd(bg){a3={src:s("#t-editor-image-url",ba.element).val(),alt:s("#t-editor-image-title",ba.element).val()};a6=a5(bc,a9);a8(bg);if(a7.change){a7.change()}}function a8(bg){bg.preventDefault();ba.destroy();aA(q(a9)).focus();if(!a6){a7.releaseRange(a9)}}var bb=this.editor.fileBrowser;var be=bb&&bb.selectUrl!==undefined;function bf(){if(be){new at.imageBrowser(s(this).find(".t-image-browser"),s.extend(bb,{apply:bd,element:a7.editor.element,localization:a7.editor.localization}))}}var ba=at.window.create(s.extend({width:750},this.editor.dialogOptions,{title:"Insert image",html:new s.telerik.stringBuilder().cat('
      ').catIf('
      ',be).cat("
        ").cat('
      1. ').cat('
      2. ').cat("
      ").cat('
      ').cat('').cat(" or ").cat('Close').cat("
      ").cat("
      ").string(),onClose:a8,onActivate:bf})).hide().find(".t-dialog-insert").click(bd).end().find(".t-dialog-close").click(a8).end().find(".t-form-text-row input").keydown(function(bg){if(bg.keyCode==13){bd(bg)}else{if(bg.keyCode==27){a8(bg)}}}).end().toggleClass("t-imagebrowser",be).find("#t-editor-image-url").val(bc?bc.getAttribute("src",2):"http://").end().find("#t-editor-image-title").val(bc?bc.alt:"").end().show().data("tWindow").center();s("#t-editor-image-url",ba.element).focus().select()}}at.selectbox=function(a3,a4){var bb;var a5=s(a3);var a7=a5.find(".t-input");var a8=this.dropDown=new at.dropDown({effects:at.fx.slide.defaults(),onItemCreate:a4.onItemCreate,onClick:function(bc){ba(a4.data[s(bc.item).index()].Value);a4.onChange({value:bb})}});function a6(){if(!a8.$items){a8.dataBind(a4.data)}}function a9(bc){a7.html(bc?bc:" ")}function ba(be){a6();var bd=-1;for(var bc=0,bf=a4.data.length;bc0?"rtl":"");s(document.documentElement).bind("mousedown",s.proxy(function(be){var bc=a8.$element;var bd=bc&&bc.parent().length>0;if(bd&&!s.contains(a3,be.target)&&!s.contains(bc.parent()[0],be.target)){a8.close()}},this))};s.fn.tSelectBox=function(a3){return at.create(this,{name:"tSelectBox",init:function(a4,a5){return new at.selectbox(a4,a5)},options:a3})};s.fn.tSelectBox.defaults={effects:at.fx.slide.defaults()};at.colorpicker=function(a3,a4){this.element=a3;var a5=s(a3);s.extend(this,a4);a5.bind("click",s.proxy(this.click,this)).find("*").attr("unselectable","on");if(this.selectedColor){a5.find(".t-selected-color").css("background-color",this.selectedColor)}s(a3.ownerDocument.documentElement).bind("mousedown",s.proxy(function(a6){if(!s(a6.target).closest(".t-colorpicker-popup").length){this.close()}},this));at.bind(this,{change:this.onChange,load:this.onLoad})};at.colorpicker.prototype={select:function(a3){if(a3){a3=D.toHex(a3);if(!at.trigger(this.element,"change",{value:a3})){this.value(a3);this.close()}}else{at.trigger(this.element,"change",{value:this.selectedColor})}},open:function(){var a3=this.popup();var a6=s(this.element);var a5=a6.offset();a5.top+=a6.outerHeight();if(a6.closest(".t-rtl").length){a5.left-=a3.outerWidth()-a6.outerWidth()}var a4="auto";a6.parents().andSelf().each(function(){a4=s(this).css("zIndex");if(Number(a4)){a4=Number(a4)+1;return false}});at.fx._wrap(a3).css(s.extend({position:"absolute",zIndex:a4},a5));a3.find(".t-item").bind("click",s.proxy(function(a8){var a7=s(a8.target,a8.target.ownerDocument).css("background-color");this.select(a7)},this));at.fx.play(this.effects,a3,{direction:"bottom"})},close:function(){if(!this.$popup){return}at.fx.rewind(this.effects,this.$popup,{direction:"bottom"},s.proxy(function(){D.remove(this.$popup[0].parentNode);this.$popup=null},this))},toggle:function(){if(!this.$popup||!this.$popup.is(":visible")){this.open()}else{this.close()}},click:function(a3){if(s(a3.target).closest(".t-tool-icon").length>0){this.select()}else{this.toggle()}},value:function(a3){if(!a3){return this.selectedColor}a3=D.toHex(a3);this.selectedColor=a3;s(".t-selected-color",this.element).css("background-color",a3)},popup:function(){if(!this.$popup){this.$popup=s(at.colorpicker.buildPopup(this)).hide().appendTo(document.body).find("*").attr("unselectable","on").end()}return this.$popup}};s.extend(at.colorpicker,{buildPopup:function(a3){var a6=new at.stringBuilder();a6.cat('
      ').cat('
        ');var a8=a3.data;var a5=(a3.value()||"").substring(1);for(var a4=0,a7=a8.length;a4')}a6.cat("
      ");return a6.string()}});s.fn.tColorPicker=function(a3){return at.create(this,{name:"tColorPicker",init:function(a4,a5){return new at.colorpicker(a4,a5)},options:a3})};s.fn.tColorPicker.defaults={data:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),selectedColor:null,effects:at.fx.slide.defaults()};function aX(){var a4=new y([{tags:H}]);function a3(a5){return a5.style.marginLeft||0}this.apply=function(ba){var a8=a4.findSuitable(ba);if(a8.length){var a7=[];for(var a6=0;a6ul")[0];if(!bd){bd=D.create(bb.ownerDocument,D.name(be));a9.append(bd)}while(bb&&bb.parentNode==be){bd.appendChild(bb);bb=a7.shift()}}else{var a5=parseInt(a3(bb))+30;D.style(bb,{marginLeft:a5})}}}else{var bc=new W([{tags:H}],{style:{marginLeft:30}});bc.apply(ba)}};this.remove=function(a7){var a9=a4.findSuitable(a7);for(var a5=0;a51)||(D.ofType(a6[a5],["ul","ol"])&&a9>0)}if(a7){a4.removeClass("t-state-disabled");return}}a4.addClass("t-state-disabled").removeClass("t-state-hover")}}function aF(a3){this.editor=a3;this.formats=[]}aF.prototype={apply:function(a7){if(!this.hasPending()){return}var a6=new ac();a6.addCaret(a7);var a3=a7.startContainer.childNodes[a7.startOffset];var a9=a3.previousSibling;if(!a9.nodeValue){a9=a9.previousSibling}a7.setStart(a9,a9.nodeValue.length-1);a6.add(a7);if(j(a7).length==0){a6.remove(a7);a7.collapse(true);this.editor.selectRange(a7);return}var a5=a6.end.previousSibling.previousSibling;var bb,a8=this.formats;for(var a4=0;a40},isPending:function(a3){return !!this.getPending(a3)},getPending:function(a4){var a5=this.formats;for(var a3=0;a3",{src:'javascript:""',frameBorder:"0"}).css("display","").addClass("t-content").insertBefore(a3)[0];var a4=a7.contentWindow||a7;var a6=a4.document||a7.contentDocument;var a5=a3.val().replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/ig,"$1").replace(/[\r\n\v\f\t ]+/ig," ");if(!a5.length&&s.browser.mozilla){a5='
      '}a6.designMode="On";a6.open();a6.write(new at.stringBuilder().cat("").cat('').cat('").cat(s.map(a8,function(a9){return[''].join("")}).join("")).cat('').cat(a5).cat("").string());a6.close();return a4}function V(a3){at.trigger(a3.element,"selectionChange")}function aJ(a4){var a3=true;a4.window=ay(s(a4.textarea),a4.stylesheets);a4.document=a4.window.contentDocument||a4.window.document;a4.body=a4.document.body;s(a4.document).bind({keydown:function(a7){var a5=a4.keyboard.toolFromShortcut(a4.tools,a7);if(a5){a7.preventDefault();a4.exec(a5);return false}if(a4.keyboard.isTypingKey(a7)&&a4.pendingFormats.hasPending()){if(a3){a3=false}else{var a6=a4.getRange();a4.pendingFormats.apply(a6);a4.selectRange(a6)}}a4.keyboard.clearTimeout();a4.keyboard.keydown(a7)},keyup:function(a7){var a6=[8,9,33,34,35,36,37,38,39,40,40,45,46];if(s.browser.mozilla&&a7.keyCode==8){aL(a4,a7)}if(s.inArray(a7.keyCode,a6)>-1||(a7.keyCode==65&&a7.ctrlKey&&!a7.altKey&&!a7.shiftKey)){a4.pendingFormats.clear();V(a4)}if(a4.keyboard.isTypingKey(a7)){if(a4.pendingFormats.hasPending()){var a5=a4.getRange();a4.pendingFormats.apply(a5);a4.selectRange(a5)}}else{a3=true}a4.keyboard.keyup(a7)},mousedown:function(a5){a4.pendingFormats.clear();var a6=s(a5.target);if(!s.browser.gecko&&a5.which==2&&a6.is("a[href]")){window.open(a6.attr("href"),"_new")}},mouseup:function(){V(a4)}});s(a4.window).bind("blur",function(){var a5=a4.textarea.value,a6=a4.encodedValue();a4.update(a6);if(a6!=a5){at.trigger(a4.element,"change")}});s(a4.body).bind("cut paste",function(a5){a4.clipboard["on"+a5.type](a5)})}at.editor=function(a3,a4){if(/Mobile.*Safari/.test(navigator.userAgent)){return}var a5=this;this.element=a3;var a6=s(a3);a6.closest("form").bind("submit",function(){a5.update()});s.extend(this,a4);at.bind(this,{load:this.onLoad,selectionChange:this.onSelectionChange,change:this.onChange,execute:this.onExecute,error:this.onError,paste:this.onPaste});for(var a9 in this.tools){this.tools[a9].name=a9.toLowerCase()}this.textarea=a6.find("textarea").attr("autocomplete","off")[0];aJ(this);this.keyboard=new aI([new aS(this),new A(this)]);this.clipboard=new aB(this);this.pendingFormats=new aF(this);this.undoRedoStack=new R();function bd(be){var bf=s.grep(be.className.split(" "),function(bg){return !/^t-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(bg)});return bf[0]?bf[0].substring(2):"custom"}function ba(bf,be){if(!be.key){return bf}return new at.stringBuilder().cat(bf).cat(" (").catIf("Ctrl + ",be.ctrl).catIf("Shift + ",be.shift).catIf("Alt + ",be.alt).cat(be.key).cat(")").string()}var a8=".t-editor-toolbar > li > *",a7=".t-editor-button .t-tool-icon",bb=a7+":not(.t-state-disabled)",bc=a7+".t-state-disabled";a6.delegate(bb,"mouseenter",at.hover).delegate(bb,"mouseleave",at.leave).delegate(a7,"mousedown",at.preventDefault).delegate(bb,"click",at.stopAll(function(be){a5.exec(bd(this))})).delegate(bc,"click",function(be){be.preventDefault()}).find(a8).each(function(){var bi=bd(this),bf=a5.tools[bi],bh=a5.localization[bi],bg=s(this);if(!bf){return}if(bi=="fontSize"||bi=="fontName"){var be=a5.localization[bi+"Inherit"]||aQ[bi+"Inherit"];a5[bi][0].Text=be;bg.find("input").val(be).end().find("span.t-input").text(be).end()}bf.init(bg,{title:ba(bh,bf),editor:a5})}).end().bind("selectionChange",function(){var bf=a5.getRange();a5.selectionRestorePoint=new ao(bf);var be=j(bf);if(!be.length){be=[bf.startContainer]}a6.find(a8).each(function(){var bg=a5.tools[bd(this)];if(bg){bg.update(s(this),be,a5.pendingFormats)}})});s(document).bind("DOMNodeInserted",function(be){if(s.contains(be.target,a5.element)||a5.element==be.target){s(a5.element).find("iframe").remove();aJ(a5)}}).bind("mousedown",function(be){try{if(a5.keyboard.typingInProgress()){a5.keyboard.endTyping(true)}if(!a5.selectionRestorePoint){a5.selectionRestorePoint=new ao(a5.getRange())}}catch(be){}})};function aL(a3,a6){var a4=a3.getRange(),a7=a4.startContainer;if(a7==a3.body.firstChild||!D.isBlock(a7)||(a7.childNodes.length>0&&!(a7.childNodes.length==1&&D.is(a7.firstChild,"br")))){return}var a9=a7.previousSibling;while(a9&&!D.isBlock(a9)){a9=a9.previousSibling}if(!a9){return}var a8=a3.document.createTreeWalker(a9,NodeFilter.SHOW_TEXT,null,false);var a5;while(a5=a8.nextNode()){a9=a5}a4.setStart(a9,af(a9)?a9.nodeValue.length:0);a4.collapse(true);O(a4);D.remove(a7);a6.preventDefault()}s.extend(at.editor,{BlockFormatFinder:y,BlockFormatter:W,Dom:D,FormatCommand:aK,GenericCommand:aY,GreedyBlockFormatter:av,GreedyInlineFormatFinder:a2,GreedyInlineFormatter:F,ImageCommand:aP,IndentCommand:o,IndentFormatter:aX,InlineFormatFinder:i,InlineFormatter:b,InsertHtmlCommand:t,Keyboard:aI,LinkCommand:aa,LinkFormatFinder:I,LinkFormatter:aZ,ListCommand:az,ListFormatFinder:aq,ListFormatter:J,MSWordFormatCleaner:f,Marker:ac,NewLineCommand:d,OutdentCommand:S,ParagraphCommand:aU,PendingFormats:aF,RangeEnumerator:aj,RangeUtils:U,RestorePoint:ao,SystemHandler:A,TypingHandler:aS,UndoRedoStack:R,UnlinkCommand:ap});at.editor.prototype={value:function(a5){var a3=this.body;if(a5===undefined){return C(a3)}this.pendingFormats.clear();a5=a5.replace(//g,"");a5=a5.replace(/]*)>(.*)?<\/script>/ig,"$2");if(s.browser.mozilla){a5=a5.replace(/]*)>(\s*)?<\/p>/ig,'


      ')}if(s.browser.msie&&parseInt(s.browser.version)<9){a5="
      "+a5;var a6="originalsrc",a4="originalhref";a5=a5.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,a4+'="$1"');a5=a5.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,a6+'="$1"');a3.innerHTML=a5;D.remove(a3.firstChild);s(a3).find("telerik\\:script,script,link,img,a").each(function(){var a7=this;if(a7[a4]){a7.setAttribute("href",a7[a4]);a7.removeAttribute(a4)}if(a7[a6]){a7.setAttribute("src",a7[a6]);a7.removeAttribute(a6)}})}else{a3.innerHTML=a5;if(s.browser.msie){g(a3)}}this.selectionRestorePoint=null;this.update()},focus:function(){this.window.focus()},update:function(a3){this.textarea.value=a3||this.encoded?this.encodedValue():this.value()},encodedValue:function(){return D.encode(this.value())},createRange:function(a3){return aR(a3||this.document)},getSelection:function(){return a1(this.document)},selectRange:function(a4){this.focus();var a3=this.getSelection();a3.removeAllRanges();a3.addRange(a4)},getRange:function(){var a4=this.getSelection();var a3=a4.rangeCount>0?a4.getRangeAt(0):this.createRange();if(a3.startContainer==this.document&&a3.endContainer==this.document&&a3.startOffset==0&&a3.endOffset==0){a3.setStart(this.body,0);a3.collapse(true)}return a3},selectedHtml:function(){return C(this.getRange().cloneContents())},paste:function(a3){this.clipboard.paste(a3)},exec:function(a6,a3){if(!this.keyboard.typingInProgress()){this.focus();if(this.selectionRestorePoint){this.selectRange(this.selectionRestorePoint.toRange());this.selectionRestorePoint=null}}a6=a6.toLowerCase();var a8="";for(var a5 in this.tools){if(a5.toLowerCase()==a6){a8=this.tools[a5];break}}if(a8){var a4=this.getRange();if(!/undo|redo/i.test(a6)&&a8.willDelayExecution(a4)){this.pendingFormats.toggle({name:a6,params:a3,command:a8.command});V(this);return}var a7=a8.command?a8.command(s.extend({range:a4},a3)):null;at.trigger(this.element,"execute",{name:a6,command:a7});if(/undo|redo/i.test(a6)){this.undoRedoStack[a6]()}else{if(a7){if(!a7.managesUndoRedo){this.undoRedoStack.push(a7)}a7.editor=this;a7.exec();if(a7.async){a7.change=s.proxy(function(){V(this)},this);return}}}V(this)}}};s.fn.tEditor=function(a3){return at.create(this,{name:"tEditor",init:function(a4,a5){return new at.editor(a4,a5)},options:a3})};var ak={bold:[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}],italic:[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}],underline:[{tags:["span"],attr:{style:{textDecoration:"underline"}}}],strikethrough:[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}],justifyLeft:[{tags:H,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}],justifyCenter:[{tags:H,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}],justifyRight:[{tags:H,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}],justifyFull:[{tags:H,attr:{style:{textAlign:"justify"}}}]};function ae(a5,a4){for(var a3=0;a3=0){return a4[a3]}}}function X(a3){s.extend(this,a3);this.init=function(a4,a5){a4.attr({unselectable:"on",title:a5.title})};this.command=function(a4){return new a3.command(a4)};this.update=function(){};this.willDelayExecution=function(){return false}}X.exec=function(a4,a5,a3){a4.exec(a5,{value:a3})};function ai(a3){X.call(this,a3);this.command=function(a4){return new aK(s.extend(a4,{formatter:a3.formatter}))};this.update=function(a4,a8,a6){var a5=a6.isPending(this.name),a7=a3.finder.isFormatted(a8),a9=a5?!a7:a7;a4.toggleClass("t-state-active",a9)}}var Q=function(){return{isFormatted:function(){return false}}};var aQ={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found."};s.fn.tEditor.defaults={localization:aQ,formats:ak,encoded:true,stylesheets:[],dialogOptions:{modal:true,resizable:false,draggable:true,effects:{list:[{name:"toggle"}]}},fontName:[{Text:aQ.fontNameInherit,Value:"inherit"},{Text:"Arial",Value:"Arial,Helvetica,sans-serif"},{Text:"Courier New",Value:"'Courier New',Courier,monospace"},{Text:"Georgia",Value:"Georgia,serif"},{Text:"Impact",Value:"Impact,Charcoal,sans-serif"},{Text:"Lucida Console",Value:"'Lucida Console',Monaco,monospace"},{Text:"Tahoma",Value:"Tahoma,Geneva,sans-serif"},{Text:"Times New Roman",Value:"'Times New Roman',Times,serif"},{Text:"Trebuchet MS",Value:"'Trebuchet MS',Helvetica,sans-serif"},{Text:"Verdana",Value:"Verdana,Geneva,sans-serif"}],fontSize:[{Text:aQ.fontSizeInherit,Value:"inherit"},{Text:"1 (8pt)",Value:"xx-small"},{Text:"2 (10pt)",Value:"x-small"},{Text:"3 (12pt)",Value:"small"},{Text:"4 (14pt)",Value:"medium"},{Text:"5 (18pt)",Value:"large"},{Text:"6 (24pt)",Value:"x-large"},{Text:"7 (36pt)",Value:"xx-large"}],formatBlock:[{Text:"Paragraph",Value:"p"},{Text:"Quotation",Value:"blockquote"},{Text:"Heading 1",Value:"h1"},{Text:"Heading 2",Value:"h2"},{Text:"Heading 3",Value:"h3"},{Text:"Heading 4",Value:"h4"},{Text:"Heading 5",Value:"h5"},{Text:"Heading 6",Value:"h6"}],tools:{bold:new Y({key:"B",ctrl:true,format:ak.bold}),italic:new Y({key:"I",ctrl:true,format:ak.italic}),underline:new Y({key:"U",ctrl:true,format:ak.underline}),strikethrough:new Y({format:ak.strikethrough}),undo:{key:"Z",ctrl:true},redo:{key:"Y",ctrl:true},insertLineBreak:new X({key:13,shift:true,command:d}),insertParagraph:new X({key:13,command:aU}),justifyCenter:new P({format:ak.justifyCenter}),justifyLeft:new P({format:ak.justifyLeft}),justifyRight:new P({format:ak.justifyRight}),justifyFull:new P({format:ak.justifyFull}),insertUnorderedList:new aO({tag:"ul"}),insertOrderedList:new aO({tag:"ol"}),createLink:new X({key:"K",ctrl:true,command:aa}),unlink:new aV({key:"K",ctrl:true,shift:true}),insertImage:new X({command:aP}),indent:new X({command:o}),outdent:new ag(),insertHtml:new aT(),style:new ab(),fontName:new aD({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName"}),fontSize:new aD({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize"}),formatBlock:new n(),foreColor:new a0({cssAttr:"color",domAttr:"color",name:"foreColor"}),backColor:new a0({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor"})}}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.editing.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.editing.min.js new file mode 100644 index 000000000..e6cd9f878 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.editing.min.js @@ -0,0 +1 @@ +(function(i){var c=i.telerik,k=/^\/Date\((.*?)\)\/$/,g=/[0#?]/,l=/[npc?]/;c.scripts.push("telerik.grid.editing.js");var h=function(n){this.formId=n;this._isBuild=false;var p="tUnobtrusiveValidation";var o="tUnobtrusiveContainer";var m=this.unobtrusive={adapters:[],parseElement:function(q,t){var r=i(q),s=r.parents("form")[0],v,u,w;if(!s){return}v=m.validationInfo(s);v.options.rules[q.name]=u={};v.options.messages[q.name]=w={};i.each(this.adapters,function(){var x="data-val-"+this.name,y=r.attr(x),z={};if(y!==undefined){x+="-";i.each(this.params,function(){z[this]=r.attr(x+this)});this.adapt({element:q,form:s,message:y,params:z,rules:u,messages:w})}});if(!t){v.attachValidation()}},parse:function(q){i(q).find(":input[data-val=true]").each(function(){m.parseElement(this,true)});i(q).each(function(){var r=m.validationInfo(this);if(r){r.attachValidation()}})},onError:function(q,t){var s=i(this).find("[data-valmsg-for='"+t[0].name+"']"),r=i.parseJSON(s.attr("data-valmsg-replace"))!==false;s.removeClass("field-validation-valid").addClass("field-validation-error");q.data(o,s);if(r){s.empty();q.removeClass("input-validation-error").appendTo(s)}else{q.hide()}},onErrors:function(q,t){var s=i(this).find("[data-valmsg-summary=true]"),r=s.find("ul");if(r&&r.length&&t.errorList.length){r.empty();s.addClass("validation-summary-errors").removeClass("validation-summary-valid");i.each(t.errorList,function(){i("
    • ").html(this.message).appendTo(r)})}},onSuccess:function(q){var s=q.data(o),r=i.parseJSON(s.attr("data-valmsg-replace"));if(s){s.addClass("field-valiion-valid").removeClass("field-validation-error");q.removeData(o);if(r){s.empty()}}},validationInfo:function(q){var s=i(q),r=s.data(p);if(!r){r={options:{errorClass:"input-validation-error",errorElement:"span",errorPlacement:i.proxy(m.onError,q),invalidHandler:i.proxy(m.onErrors,q),messages:{},rules:{},success:i.proxy(m.onSuccess,q)},attachValidation:function(){s.validate(this.options)},validate:function(){s.validate();return s.valid()}};s.data(p,r)}return r}}};h.prototype={build:function(){if(this._isBuild){return}this._isBuild=true;var q=[];function o(t,s,r){t.rules[s]=r;if(t.message){t.messages[s]=t.message}}function p(r){return r.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function n(r){return r.substr(0,r.lastIndexOf(".")+1)}function m(s,r){if(s.indexOf("*.")===0){s=s.replace("*.",r)}return s}q=this.unobtrusive.adapters;q.add=function(t,s,r){if(!r){r=s;s=[]}this.push({name:t,params:s,adapt:r});return this};q.addBool=function(s,r){return this.add(s,function(t){o(t,r||s,true)})};q.addMinMax=function(u,s,w,r,t,v){return this.add(u,[t||"min",v||"max"],function(z){var x=z.params.min,y=z.params.max;if(x&&y){o(z,r,[x,y])}else{if(x){o(z,s,x)}else{if(y){o(z,w,y)}}}})};q.addSingleVal=function(s,t,r){return this.add(s,[t||"val"],function(u){o(u,r||s,u.params[t])})};q.addSingleVal("accept","exts").addSingleVal("regex","pattern");q.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");q.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");q.add("equalto",["other"],function(s){var r=i(s.form).find(":input[name="+s.params.other+"]")[0];o(s,"equalTo",r)});q.add("required",function(r){if(r.element.tagName.toUpperCase()!=="INPUT"||r.element.type.toUpperCase()!=="CHECKBOX"){o(r,"required",true)}});q.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},s=n(t.element.name);i.each(p(t.params.additionalfields||t.element.name),function(u,w){var v=m(w,s);r.data[v]=function(){return i(t.form).find(":input[name='"+v+"']").val()}});o(t,"remote",r)});if(i.validator.unobtrusive&&i.validator.unobtrusive.adapters){i.extend(q,i.validator.unobtrusive.adapters)}i.validator.addMethod("regex",function(r,t,s){if(this.optional(t)){return true}var u=new RegExp(s).exec(r);return u&&u.index==0&&u[0].length==r.length});i.validator.addMethod("number",function(r,u){var s=c.cultureInfo.numericgroupsize;if(s){var t=new c.stringBuilder();t.cat("^-?(?:\\d+|\\d{1,").cat(s).cat("}(?:").cat(c.cultureInfo.numericgroupseparator).cat("\\d{").cat(s).cat("})+)(?:\\").cat(c.cultureInfo.numericdecimalseparator).cat("\\d+)?$");return this.optional(u)||(t&&new RegExp(t.string()).test(r))}return this.optional(u)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(r)})},parse:function(){this.build();this.unobtrusive.parse(this.formId)}};var f=function(m){this.validationMetaData=m};f.prototype={build:function(q){i.validator.addMethod("regex",function(C,E,D){if(this.optional(E)){return true}var F=new RegExp(D).exec(C);return F&&F.index==0&&F[0].length==C.length});i.validator.addMethod("number",function(C,F){var D=c.cultureInfo.numericgroupsize;var E=new c.stringBuilder();E.cat("^-?(?:\\d+|\\d{1,").cat(D).cat("}(?:").cat(c.cultureInfo.numericgroupseparator).cat("\\d{").cat(D).cat("})+)(?:\\").cat(c.cultureInfo.numericdecimalseparator).cat("\\d+)?$");return this.optional(F)||new RegExp(E.string()).test(C)});function v(D,C,E){D.range=[C,E]}function r(C,D){C.regex=D}function B(C){C.required=true}function x(C,D){C.maxlength=D}function o(C,D,E){C[D]=E}function z(F){var C={};for(var E=0;E-1){var o=q.substring(0,p);var n=m[o]||{};n[q.substring(p+1)]=m[q];m[o]=j(n);delete m[q]}}return m}function d(n){var o,m,p;for(o in n){m=n[o];if(typeof m==="string"){p=k.exec(m);if(p){n[o]=new Date(parseInt(p[1]))}}else{if(i.isPlainObject(m)){d(m)}}}}c.editing.initialize=function(n){i.extend(n,this.implementation);var m=i(n.element);n.modelBinder=new c.grid.ModelBinder();n.formViewBinder=new c.grid.FormViewBinder({date:function(x,u){var w=n.columnFromMember(x);var v=w?w.format:"";return c.formatString(v||"{0:G}",u)}});if(n.isAjax()){if(n.editing.mode=="InCell"){d(n.editing.defaultDataItem||{});n.changeLog=new c.grid.ChangeLog(n.pageSize||(n.data&&n.data.length)||0);i(n.element).bind("dataBound",function(){n.changeLog.clear();n.valid=true;n.td=null});n.cellEditor=new c.grid.CellEditor({columns:n.columns,cellIndex:function(u){return n.cellIndex(u)},id:n.formId(),bind:i.proxy(n.formViewBinder.bind,n.formViewBinder),validate:i.proxy(n.validation,n)});m.delegate(".t-grid-save-changes:not(.t-state-disabled)","click",c.stopAll(function(u){n.submitChanges()}));m.delegate(".t-grid-cancel-changes","click",c.stopAll(function(u){n.cancelChanges()}));n.hasChanges=function(){return n.changeLog.dirty()};n.submitChanges=function(){if(n.changeLog.dirty()&&n.validate()){var u=n.changeLog.inserted;var x=i.grep(n.changeLog.updated,function(z){return z!=undefined});var w=i.grep(n.changeLog.deleted,function(z){return z!=undefined});var v={};if(c.trigger(n.element,"submitChanges",{inserted:u,updated:x,deleted:w,values:v})){return}var y=n.ws?{inserted:i.map(u,function(z){return n._convert(z)}),updated:i.map(x,function(z){return n._convert(z)}),deleted:i.map(w,function(z){return n._convert(z)})}:n.changeLog.serialize(u,x,w);n.sendValues(i.extend(y,v),"updateUrl")}};n.cancelChanges=function(){n.changeLog.clear();n.valid=true;n.td=null;n.ajaxRequest()};n.cellIndex=function(u){return i(u).parent().find("td:not(.t-group-cell,.t-hierarchy-cell)").index(u)};n.rowIndex=function(u){return i(u).parent().find("tr:not(.t-detail-row,.t-grouping-row)").index(u)};var r;n.valid=true;n.editCell=function(x){var u=n.columns[n.cellIndex(x)];if(n.valid&&(u&&!u.readonly)){n.td=x;if(n.form().length){i.data(n.form()[0],"validator",null)}x=i(x);var w=x.parent();var y=n.rowIndex(w);var v=n.changeLog.get(y)||n.dataItem(w);r=x.find(".t-dirty");n.cellEditor.edit(x,v);c.trigger(n.element,"edit",{mode:w.hasClass("t-grid-new-row")?"insert":"edit",form:n.form()[0],dataItem:v,cell:x[0]})}};n.saveCell=function(x){n.valid=n.validate();if(n.valid){x=i(x);var w=x.parent();var v=n.dataItem(w);var y=j(n.modelBinder.bind(x));var u=false;if(c.trigger(n.element,"save",{mode:w.hasClass("t-grid-new-row")?"insert":"edit",dataItem:v,values:y,form:n.form()[0],cell:x[0]})){return}if(w.hasClass("t-grid-new-row")){n.changeLog.insert(n.rowIndex(w),y)}else{u=n.changeLog.update(n.rowIndex(w),v,y)}n.cellEditor.display(x,i.extend(true,{},v,y));if(u||w.hasClass("t-grid-new-row")){r=i('')}if(r&&r.length){r.prependTo(n.td)}n.td=null}};n.cancelCell=function(x){x=i(x);var w=x.parent(),u=n.rowIndex(w),v=n.changeLog.get(u)||n.dataItem(w);n.valid=true;n.cellEditor.display(x,v);if(r&&r.length){r.prependTo(n.td)}n.td=null};n.td=null;n.$tbody.delegate("tr:not(.t-grouping-row,.t-no-data) > td:not(.t-detail-cell,.t-grid-edit-cell,.t-group-cell,.t-hierarchy-cell)",n.editing.beginEdit||"click",function(u){if(i(this).closest("tbody")[0]==n.$tbody[0]){n.editCell(this)}});i(document).mousedown(function(u){if(n.td&&!i.contains(n.td,u.target)&&n.td!=u.target&&!i(u.target).closest(".t-animation-container").length){n.saveCell(n.td)}})}else{if(n.editing.beginEdit){n.$tbody.delegate("tr:not(.t-detail-row,.t-grouping-row,.t-grid-edit-row,.t-group-footer)",n.editing.beginEdit,function(u){if(!i(u.target).is(":button,a,:input,a>.t-icon")){n.editRow(i(this))}})}}m.delegate(".t-grid-edit","click",c.stopAll(function(u){n.editRow(i(this).closest("tr"))})).delegate(".t-grid-delete","click",c.stopAll(function(u){n.deleteRow(i(this).closest("tr"))})).delegate(".t-grid-add","click",c.stopAll(function(u){n.addRow()}))}else{m.delegate(".t-grid-delete","click",c.stop(function(u){if(n.editing.confirmDelete!==false&&!confirm(n.localization.deleteConfirmation)){u.preventDefault()}}));n.validation()}n.errorView=new c.grid.ErrorView();var t=new c.grid.DataCellBuilder({columns:n.columns,rowTemplate:n.rowTemplate});var o=i.grep(n.columns,function(u){return u.commands&&i.grep(u.commands,function(v){return v.name=="edit"})[0]})[0];if(!o){o={commands:[{name:"edit",buttonType:"Text"}]};o.insert=n.insertFor(o);o.edit=n.editFor(o)}var p=new c.grid.FormContainerBuilder({html:function(){return unescape(n.editing.editor)},insert:function(){return o.insert()},edit:function(){return o.edit()}});var s=n.editing.mode;var q=function(){return(n.groups||[]).length};if(s=="InLine"){n.rowEditor=new c.grid.Editor({id:n.formId(),cancel:t.display,edit:t.edit,insert:t.insert,groups:q,details:n.detail})}else{if(s=="InForm"){n.rowEditor=new c.grid.Editor({id:n.formId(),cancel:t.display,groups:q,details:n.detail,edit:function(){return''+p.edit()+""},insert:function(){return''+p.insert()+""}})}else{if(s=="PopUp"){n.rowEditor=new c.grid.PopUpEditor({id:n.formId(),edit:p.edit,container:n.element,settings:n.editing.popup,insert:p.insert,editTitle:n.localization.edit,insertTitle:n.localization.insert})}else{t=new c.grid.CellBuilder({columns:n.columns});n.rowEditor=new c.grid.Editor({id:n.formId(),cancel:t.display,edit:t.edit,insert:t.insert})}}}if(!n.keyboardNavigation){m.delegate(":input:not(.t-button):not(textarea)","keydown",c.stop(function(v){if(v.keyCode==13||v.keyCode==27){v.preventDefault();var u={13:".t-grid-update, .t-grid-insert",27:".t-grid-cancel"};i(this).closest("tr").find(u[v.keyCode]).click()}}))}};c.editing.implementation={editFor:function(n){var o=this.localization;if(n.commands){var q=i.grep(n.commands,function(s){return s.name=="edit"})[0];if(q){var r=c.grid.ButtonBuilder.create(i.extend({text:o.update},q,{name:"update"}));var p=c.grid.ButtonBuilder.create(i.extend({text:o.cancel},q,{name:"cancel"}));var m=r.build()+p.build();return function(){return m}}else{return function(){return""}}}else{if(!n.readonly&&n.editor){return function(){return unescape(n.editor)}}}return this.displayFor(n)},insertFor:function(n){var o=this.localization;if(n.commands){var q=i.grep(n.commands,function(s){return s.name=="edit"})[0];if(q){var r=c.grid.ButtonBuilder.create(i.extend({text:o.insert},q,{name:"insert"}));var p=c.grid.ButtonBuilder.create(i.extend({text:o.cancel},q,{name:"cancel"}));var m=r.build()+p.build();return function(){return m}}else{return function(){return""}}}else{return this.editFor(n)}},insertRow:function(m){if(this.validate()){var n=this.extractValues(m);if(c.trigger(this.element,"save",{mode:"insert",values:n,form:this.form()[0]})){return}this.sendValues(n,"insertUrl")}},updateRow:function(m){if(this.validate()){var n=this.dataItem(m.data("tr")||m);var o=this.extractValues(m,(this.editing.mode!="InCell"||!this.ws));if(c.trigger(this.element,"save",{mode:"edit",dataItem:n,values:o,form:this.form()[0]})){return}if(this.editing.mode=="InCell"){o=i.extend(n,o)}d(o);this.sendValues(o,"updateUrl")}},deleteRow:function(m){var n=this.dataItem(m);if(this.editing.mode!="InCell"){var o=this.extractValues(m,true);if(c.trigger(this.element,"delete",{dataItem:n,values:o})){return}if(!this._isServerOperation()&&this.dataSource){this.deletedIds.push(this.dataSource.id(n))}if(this.editing.confirmDelete===false||confirm(this.localization.deleteConfirmation)){this.sendValues(o,"deleteUrl")}}else{if(this.editing.confirmDelete===false||confirm(this.localization.deleteConfirmation)){this.changeLog.erase(this.rowIndex(m),n);if(this.td&&i.contains(m[0],this.td)){this.td=null;this.valid=true}if(!this._isServerOperation()&&this.dataSource){this.deletedIds.push(this.dataSource.id(n))}this.cancelRow(m);m.hide()}}},editRow:function(m){var o=this.dataItem(m);if(this.editing.mode!="InCell"){b();var p=this.rowEditor.edit(m,o);var n=this.form();n.undelegate(".t-grid-update").delegate(".t-grid-update","click",c.stopAll(i.proxy(function(){this.updateRow(p)},this))).undelegate(".t-grid-cancel").delegate(".t-grid-cancel","click",c.stopAll(i.proxy(function(){this.cancelRow(m)},this)));this.formViewBinder.bind(p,o);c.trigger(this.element,"edit",{mode:"edit",form:n[0],dataItem:o});this.validation()}else{if(this.valid){this.rowEditor.edit(m,o);this.td=row.find(":input:visible:first").focus().closest("td")[0];this.validation()}}},form:function(){return i("#"+this.formId())},addRow:function(){var p=i.extend(true,{},this.editing.defaultDataItem);if(this.editing.mode!="InCell"){b();var r=this.rowEditor.insert(this.$tbody,p);var n=this.form();n.undelegate(".t-grid-insert").delegate(".t-grid-insert","click",c.stopAll(i.proxy(function(){this.insertRow(r)},this))).undelegate(".t-grid-cancel").delegate(".t-grid-cancel","click",c.stopAll(i.proxy(function(){this.cancelRow(r)},this)));c.trigger(this.element,"edit",{mode:"insert",form:n[0],dataItem:p});this.validation()}else{if(this.valid){var o=this.rowEditor.insert(this.$tbody,p);this.changeLog.insert(p);this.td=o.find(":input:enabled:visible:first").focus().closest("td")[0];for(var m=this.columns.length-1;m>=0;m--){if(!this.columns[m].readonly){var q=o.children().eq(m);if(q[0]!=this.td){q.prepend('')}}}c.trigger(this.element,"edit",{mode:"insert",form:this.form()[0],dataItem:p,cell:this.td});this.validation()}}if(this.editing.mode!="PopUp"){this.$tbody.find(" > tr.t-no-data").hide()}},extractValues:function(r,o){var p=this.modelBinder.bind(r);if(o){var q=this.dataItem(r.data("tr")||r);for(var n in this.dataKeys){var m=this.valueFor({member:n})(q);if(m instanceof Date){m=c.formatString("{0:G}",m)}p[this.ws?n:this.dataKeys[n]]=m}}return p},cancelRow:function(m){if(!m.length){return}var n=this.dataItem(m);this.rowEditor.cancel(m,n);if(m.is(".t-grid-new-row")){this.$tbody.find(" > tr.t-no-data").show();return}c.trigger(this.element,"rowDataBound",{row:m[0],dataItem:n})},validate:function(){var m=this.form();if(m.length){var o=m.validate();var n=o.form();if(o.pendingRequest){o.formSubmitted=true;return false}return n}return true},cancel:function(){this.cancelRow(this.$tbody.find(">.t-grid-edit-row"))},_dataSource:function(){var m=this,p=this._dataSourceOptions(),o=[],n=[];i.each(m.dataKeys,function(r,q){o.push(q);n.push(c.getter(r))});if(m.isAjax()){i.extend(true,p,{model:c.Model.define({id:function(r,q){var s;if(q===undefined){return i.map(n,function(t){return t(r)}).join("-")}else{s=q.split("-");i.each(o,function(u,t){r[t]=s[u]})}}})})}m.dataSource=new c.DataSource(p)},_convert:function(o){for(var s in o){var n=o[s];if(n instanceof Date){var p=this.columnFromMember(s);var m="{0:G}";if(p&&p.format){m=p.format}o[s]=this.ws?"\\/Date("+n.getTime()+")\\/":c.formatString(m,n)}if(typeof n==="number"){var t="numeric",p=this.columnFromMember(s),m=(p&&p.format?p.format:"N").toLowerCase(),r={n:t,p:"percent",c:"currency","#":t,"0":t};n=n.toString();var q=m.match(l)||m.match(g);o[s]=q?n.replace(".",c.cultureInfo[r[q]+"decimalseparator"]):n}if(n==undefined){delete o[s]}if(i.isPlainObject(n)){this._convert(n)}}return o},sendValues:function(p,m){if(this.editing.mode!="InCell"||!this.ws){this._convert(p);for(var n in this.dataKeys){var o=this.valueFor({member:n})(p);if(o!=undefined){p[this.ws?n:this.dataKeys[n]]=o}}}this.showBusy();i.ajax(this.ajaxOptions({data:this.ws?(this.editing.mode=="InCell"?p:{value:p}):p,url:this.url(m),hasErrors:i.proxy(this.hasErrors,this),displayErrors:i.proxy(this.displayErrors,this)}))},displayErrors:function(m){this.errorView.bind(i("#"+this.formId()),m.modelState)},hasErrors:function(m){var n=m.modelState;var o=false;if(n){i.each(n,function(p,q){if("errors" in q){o=true;return false}})}return o},formId:function(){return i(this.element).attr("id")+"form"},validation:function(){this.validator().parse()},validator:function(){if(this.validationMetadata){return new f(this.validationMetadata)}else{return new h("#"+this.formId())}}};c.grid.ModelBinder=function(){this.binders={":input.t-autocomplete":function(){return i(this).val()},".t-numerictextbox :input":function(){return i(this).data("tTextBox").value()},":input:not(.t-input):not(:radio),:radio:checked":function(){return i(this).val()},":checkbox":function(){return i(this).is(":checked")},".t-datepicker :input":function(){return i(this).data("tDatePicker").value()},".t-timepicker :input":function(){return i(this).data("tTimePicker").value()},".t-datetimepicker :input":function(){return i(this).data("tDateTimePicker").value()},".t-editor textarea:hidden":function(){var m=i(this).closest(".t-editor").data("tEditor");if(m.encoded){return m.encodedValue()}return m.value()}};this.bind=function(m){var n={};i.each(this.binders,function(o,p){m.find(o).each(function(){if(!this.disabled){n[this.name]=p.call(this)}})});return n}};c.grid.FormViewBinder=function(o){this.converters=o||{};this.binders={":input:not(:radio)":function(p){if(typeof p=="boolean"){p=p+""}i(this).val(p)},":checkbox":function(p){i(this).attr("checked",p==true)},":radio":function(q){var p=i(this).val();if(typeof q=="boolean"){p=p.toLowerCase()}if(p==q.toString()){i(this).attr("checked",true)}}};function n(p){return function(q){i(this).data(p).value(q)}}function m(){return function(p){i(this).closest(".t-editor").data("tEditor").value(p)}}this.binders[".t-numerictextbox :input"]=n("tTextBox");this.binders[".t-dropdown :input:hidden"]=n("tDropDownList");this.binders[".t-datepicker :input"]=n("tDatePicker");this.binders[".t-datetimepicker :input"]=n("tDateTimePicker");this.binders[".t-timepicker :input"]=n("tTimePicker");this.binders[".t-slider :input"]=n("tSlider");this.binders[".t-combobox :input:hidden"]=n("tComboBox");this.binders[".t-editor textarea:hidden"]=m();this.evaluate=function(q,t){if(t!=null){var p=q,r=false,v=t.split(".");while(v.length){var w=v.shift();if(w.indexOf("[")>-1){p=new Function("d","try { return d."+w+"}catch(e){}")(p);if(p!=null){r=true}}else{if(p!=null&&typeof(p[w])!="undefined"){p=p[w];r=true}else{if(r){r=false;break}}}}if(r&&!i.isPlainObject(p)){var s=k.exec(p);if(s){p=new Date(parseInt(s[1]))}var u=c.getType(p);if(u in this.converters){p=this.converters[u](t,p)}return p}}};this.bind=function(r,q){var p;i.each(this.binders,i.proxy(function(s,t){r.find(s).each(i.proxy(function(v,w){var u=this.evaluate(q,w.name);if(u!=p){t.call(w,u)}},this))},this))}};c.grid.CellBuilder=function(m){function n(p,o){return i.map(m.columns,function(q,r){var s;if(r==0&&o=="insert"){s="t-grid-edit-cell"}else{if(r==m.columns.length-1){s="t-last"}}return""+q[r==0?o:"display"](p)+""}).join("")}this.edit=function(o){return n(o,"edit")};this.insert=function(o){return n(o,"insert")};this.display=function(o){return n(o,"display")}};c.grid.DataCellBuilder=function(m){function n(p,o){return i.map(m.columns,function(r,q){return"':">")+r[o](p)+""}).join("")}this.edit=function(o){return n(o,"edit")};this.insert=function(o){return n(o,"insert")};this.display=function(o){if(m.rowTemplate){return''+m.rowTemplate(o)+""}return n(o,"display")}};c.grid.FormContainerBuilder=function(m){function n(o){return'
      '+m.html()+m[o]()+"
      "}this.edit=function(){return n("edit")};this.insert=function(){return n("insert")}};function e(m){return i("",{className:"t-edit-form",id:m}).submit(c.preventDefault)}c.grid.PopUpEditor=function(o){var n;function m(){var q=n.data("tWindow");q&&q.close();n.remove()}function p(r,q){n=i("
      ",{id:o.container.id+"PopUp"}).appendTo(o.container).css({top:0,left:"50%",marginLeft:-90}).tWindow(o.settings).find(".t-window-content").append(o[q](r)).wrapInner(e(o.id)).end();i(o.container).one("dataBound",m);n.find(".t-close").click(c.stopAll(m)).end().data("tWindow").open().title(o[q+"Title"]);return n}this.edit=function(q,r){q.addClass("t-grid-edit-row");return p(r,"edit").data("tr",q)};this.insert=function(q,r){return p(r,"insert")};this.cancel=function(q){q.removeClass("t-grid-edit-row");m()}};c.grid.Editor=function(o){var n=o.groups||function(){return 0};function m(p,q,r){var s=p.find(".t-group-cell,.t-hierarchy-cell");p.addClass("t-grid-edit-row").empty().append(s).append(o[r](q)).closest("table").wrap(function(){if(!i(this).parent().is("form")){return e(o.id)}})}this.cancel=function(p,q){if(p.is(".t-grid-new-row")){p.remove()}else{m(p,q,"cancel");p.removeClass("t-grid-edit-row")}};this.insert=function(r,q){var s=''+new Array(n()+1).join('')+((o.details)?'':"")+"";var p=i(s);r.prepend(p);m(p,q,"insert");return p};this.edit=function(p,q){m(p,q,"edit");return p}};c.grid.CellEditor=function(m){this.edit=function(p,o){var n=m.columns[m.cellIndex(p)];if(!n.readonly){p.parent().addClass("t-grid-edit-row").end().empty().html(n.edit(o)).closest("table").wrap(function(){if(!i(this).parent().is("form")){return e(m.id)}});m.bind(p,o);m.validate();p.find(":input:visible:first").trigger("focusin").focus();p.addClass("t-grid-edit-cell")}return !n.readonly};this.display=function(p,o){var n=m.columns[m.cellIndex(p)];p.removeClass("t-grid-edit-cell").empty().html(n.display(o)).parent().removeClass("t-grid-edit-row")}};c.grid.ChangeLog=function(n){this.insert=function(o,q){if(q==undefined){q=o;this.inserted.splice(0,0,q)}else{var p=this.inserted[o];if(p===undefined){this.inserted.splice(0,0,q)}else{i.extend(p,q)}}};this.get=function(p){var o=this.inserted[p];if(this.inserted[p]){return o}return this.updated[p-this.inserted.length]};this.update=function(u,r,q){u=u-this.inserted.length;var v=this.updated[u]||r||{};var t=false;for(var o in q){var s=v[o],p=q[o];if(s instanceof Date){if(p instanceof Date&&p.getTime()!==s.getTime()){t=true}}else{if(p!==s){t=true}}}if(t){this.updated[u]=i.extend({},v,q)}return t};this.erase=function(p,r){var o=this.inserted[p];if(o){this.inserted.splice(p,1)}else{p=p-this.inserted.length;var q=this.updated[p];if(q){delete this.updated[p]}this.deleted[p]=r}};this.clear=function(){this.updated=new Array(n);this.deleted=new Array(n);this.inserted=[]};function m(p,t,v){var w={};for(var u=0,q=0;u .t-grid-content",g.element).bind("scroll",function(){g.hideFilter()});c(document).click(function(h){if(h.which!=3){g.hideFilter()}});g.$header.find(".t-grid-filter").click(c.proxy(g.showFilter,g)).hover(function(){c(this).toggleClass("t-state-hover")})};b.filtering.implementation={createFilterCommands:function(h,g){var j={};c.each(this.localization,function(n,k){var l="filter"+g.type;var m=n.indexOf(l);if(m>-1){j[n.substring(m+l.length).toLowerCase()]=k}});if(g.type=="String"){var i=j.endswith;delete j.endswith;j.endswith=i}h.cat('")},createTypeSpecificInput:function(j,g,h,i){if(g.type=="Date"){j.cat('
      ').cat('').cat('
      ')}else{if(g.type=="Boolean"){j.cat('
      ').cat('
      ")}else{if(g.type=="Enum"){j.cat("
      ")}else{if(g.type=="Number"){j.cat('
      ').cat('').cat("
      ")}else{j.cat('')}}}}},createFilterMenu:function(g){var j=new b.stringBuilder();j.cat('
      ");var i=c(j.string());c.each(g.filters||[],function(k){i.find(".t-filter-operator:eq("+k+")").val(this.operator).end().find(":text:eq("+k+"),select:not(.t-filter-operator):eq("+k+")").val(a(g,this.value));if(g.type=="Boolean"){i.find(":radio[id$="+this.value+"]").attr("checked",true)}});return i.appendTo(this.element).find(".t-datepicker .t-input").each(function(){c(this).tDatePicker({format:f(g)})}).end().find(".t-numerictextbox .t-input").each(function(){c(this).tTextBox({type:"numeric",minValue:null,maxValue:null,numFormat:"",groupSeparator:""})}).end()},showFilter:function(m){m.stopPropagation();var g=c(m.target).closest(".t-grid-filter");this.hideFilter(function(){return this.parentNode!=g[0]});var k=g.data("filter");if(!k){var h=this.columns[this.$columns().index(g.parent())];k=this.createFilterMenu(h).data("column",h).click(function(p){p.stopPropagation();if(c(p.target).parents(".t-datepicker").length==0){c(".t-datepicker .t-input",this).each(function(){c(this).data("tDatePicker").hidePopup()})}}).find(".t-filter-button").click(c.proxy(this.filterClick,this)).end().find(".t-clear-button").click(c.proxy(this.clearClick,this)).end().find("input[type=text]").keyup(c.proxy(function(p){if(p.keyCode==13){this.filterClick(p)}},this)).end();g.data("filter",k)}var l=0;c(this.element).find("> .t-grouping-header, > .t-grid-toolbar").add(this.$header).each(function(){l+=this.offsetHeight});var i={top:l};var n=-this.$headerWrap.scrollLeft()-1;g.parent().add(g.parent().prevAll("th")).each(function(){if(c(this).css("display")!="none"){n+=this.offsetWidth}});var j=n-g.outerWidth();var o=k.outerWidth()||k.find(".t-group").outerWidth();if(j+o>this.$header.outerWidth()){j=n-o+1}if(c(this.element).closest(".t-rtl").length){i.right=j+(c.browser.mozilla||c.browser.safari?18:0)}else{i.left=j}k.css(i);b.fx[k.find(".t-filter-options").is(":visible")?"rewind":"play"](d,k.find(".t-filter-options"),{direction:"bottom"})},hideFilter:function(g){g=g||function(){return true};c(".t-grid .t-animation-container").find(".t-datepicker .t-input").each(function(){c(this).data("tDatePicker").hidePopup()}).end().find(".t-filter-options").filter(g).each(function(){b.fx.rewind(d,c(this),{direction:"bottom"})})},clearClick:function(i){i.preventDefault();var h=c(i.target);var g=h.closest(".t-animation-container").data("column");g.filters=null;h.parent().find("input").removeAttr("checked").removeClass("t-state-error").not(":radio").val("").end().end().find("select").removeClass("t-state-error").find("option:first").attr("selected","selected");this.filter(this.filterExpr())},filterClick:function(j){j.preventDefault();var i=c(j.target);var g=i.closest(".t-animation-container").data("column");g.filters=[];var h=false;i.closest(".t-filter-options").find("input[type=text]:visible,select:not(.t-filter-operator)").each(c.proxy(function(p,n){var l=c(n);var k=c.trim(l.val());if(!k){l.removeClass("t-state-error");return true}var m=this.isValidFilterValue(g,k);l.toggleClass("t-state-error",!m);if(!m){h=true;return true}var o=l.prev("select").val()||l.parent().prev("select").val()||l.parent().parent().prev("select").val();if(k!=this.localization.filterSelectValue){g.filters.push({operator:o,value:k})}},this));i.parent().find("input:checked").each(c.proxy(function(m,l){var n=c(l);var k=c(l).attr("value");g.filters.push({operator:"eq",value:k})},this));if(!h){if(g.filters.length>0){this.filter(this.filterExpr())}else{g.filters=null}this.hideFilter()}},isValidFilterValue:function(g,h){if(g.type=="Date"){var i;if(h.indexOf("Date(")>-1){i=new Date(parseInt(h.replace(/^\/Date\((.*?)\)\/$/,"$1")))}else{i=b.datetime.parse({value:h,format:f(g)})}return i!=undefined}return true},encodeFilterValue:function(g,h){switch(g.type){case"String":return"'"+h.replace(e,"''")+"'";case"Date":var i;if(h.indexOf("Date(")>-1){i=new Date(parseInt(h.replace(/^\/Date\((.*?)\)\/$/,"$1")))}else{i=b.datetime.parse({value:h,format:f(g)}).toDate()}return"datetime'"+b.formatString("{0:yyyy-MM-ddTHH-mm-ss}",i)+"'"}return h},filterExpr:function(){var h=[];for(var g=0;g');f.$groupHeader=d("> .t-grouping-header",f.element);function h(){var k=d.map(f.$groupHeader.find(".t-group-indicator"),function(l){var m=d(l);var n=m.offset().left;var o=m.outerWidth();return{left:n,right:n+o,width:o,$group:m}});return{first:k[0],all:k,last:k[k.length-1]}}function g(u){var l=u.$cue.text();if(!d.contains(f.element,u.target)||!d(u.target).closest(".t-grouping-header").length||(f.groupFromTitle(l)&&u.$draggable.closest(".t-header").length)){f.$groupDropCue.remove();return}var w=d(f.element),o=w.find("> .t-grid-toolbar"),m=o.outerHeight()+c,q=h(),p=w.closest(".t-rtl").length;if(!q.all.length){var r=p?o.width()-a:a;f.$groupDropCue.css({top:m,left:r}).appendTo(f.$groupHeader);return}var v=q.first;var t=q.last;var k=parseInt(v.$group.css("marginLeft"));var s=parseInt(v.$group.css("marginRight"));var n=d.grep(q.all,function(x){return u.pageX>=x.left-k-s&&u.pageX<=x.right})[0];if(!n&&v){if(!p&&u.pageX=0){f.groups.splice(d.inArray(m,f.groups),1);f.groups.splice(o,0,m)}f.groupBy=d.map(f.groups,function(q){return q.member+"-"+q.order}).join("~");if(this.isAjax()){var p=this.$groupHeader.find('div:contains("'+l+'")');if(p.length==0){var k=new d.telerik.stringBuilder().cat('").string();p=d(k).appendTo(this.$groupHeader)}if(this.$groupDropCue.is(":visible")){p.insertBefore(this.$groupDropCue)}p.find(".t-link .t-icon").toggleClass("t-arrow-up-small",m.order=="asc").toggleClass("t-arrow-down-small",m.order=="desc").html("("+(m.order=="asc"?f.localization.sortedAsc:f.localization.sortedDesc)+")");this.ajaxRequest()}else{this.serverRequest()}};f.unGroup=function(l){var k=f.groupFromTitle(l);f.groups.splice(d.inArray(k,f.groups),1);if(f.groups.length==0){f.$groupHeader.html(f.localization.groupHint)}f.groupBy=d.map(f.groups,function(m){return m.member+"-"+m.order}).join("~");if(f.isAjax()){f.$groupHeader.find('div:contains("'+k.title+'")').remove();f.ajaxRequest()}else{f.serverRequest()}},f.normalizeColumns=function(n){var o=f.groups.length;var m=n-f.$tbody.parent().find(" > colgroup > col").length;if(m==0){return}var p=f.$tbody.parent().add(f.$headerWrap.find("table")).add(f.$footer.find("table"));if(d.browser.msie){if(m>0){d(new b.stringBuilder().rep('',m).string()).prependTo(p.find("colgroup"));d(new b.stringBuilder().rep(' ',m).string()).insertBefore(p.find("th.t-header:first"));d(new b.stringBuilder().rep(' ',m).string()).insertBefore(p.find("tr.t-footer-template > td:first"))}else{p.find("th:lt("+Math.abs(m)+"), tr.t-footer-template > td:lt("+Math.abs(m)+")").remove().end().find("col:lt("+Math.abs(m)+")").remove()}var k=[];var l=0;d("table, .t-grid-bottom",f.element).each(function(){k.push(this.parentNode)}).appendTo(d("
      ")).each(function(){k[l++].appendChild(this)})}else{p.find("col.t-group-col").remove();d(new b.stringBuilder().rep('',o).string()).prependTo(p.find("colgroup"));p.find("th.t-group-cell").remove();p.find("tr.t-footer-template > td.t-group-cell").remove();d(new b.stringBuilder().rep(' ',o).string()).insertBefore(p.find("th.t-header:first"));d(new b.stringBuilder().rep(' ',o).string()).insertBefore(p.find("tr.t-footer-template > td:first"))}},f.bindGroup=function(n,r,q,p){var o=f.groups[p];var t=n.value;var m=d.grep(f.columns,function(l){return o.member==l.member})[0];if(m&&(m.format||m.type=="Date")){t=b.formatString(m.format||"{0:G}",t)}q.cat('').rep('',p).cat('

      ');if(m){q.cat(m.groupHeader(d.extend({Title:o.title,Key:t},f._mapAggregates(n.aggregates[m.member]))))}else{q.cat(o.title+": "+t)}q.cat("

      ");if(n.hasSubgroups){for(var k=0,s=n.items.length;k').rep('',f.groups.length);d.each(f.columns,function(){q.cat("");if(this.groupFooter){q.cat(this.groupFooter(f._mapAggregates(n.aggregates[this.member])))}q.cat("")});q.cat("")}}}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.min.js new file mode 100644 index 000000000..55d153d1a --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.min.js @@ -0,0 +1 @@ +(function(e){var d={TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F12:123};var k=e.telerik;var c=/"+\\\/Date\((.*?)\)\\\/"+/g;var g="tr:not(.t-grouping-row,.t-group-footer,.t-detail-row,.t-no-data,.t-footer-template):visible",f=">td:not(.t-group-cell,.t-hierarchy-cell)",a=g+f+":first";FOCUSED="t-state-focused";k.scripts.push("telerik.grid.js");function h(l){return new Function("data",("var p=[];with(data){p.push('"+unescape(l).replace(/[\r\t\n]/g," ").replace(/'(?=[^#]*#>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<#=(.+?)#>/g,"',$1,'").split("<#").join("');").split("#>").join("p.push('")+"');}return p.join('');"))}function j(l){return(l!=null?l+"":"").replace(/&/g,"&").replace(//g,">")}k.grid=function(l,m){this.element=l;this.groups=[];this.editing={};this.filterBy="";this.groupBy="";this.orderBy="";e.extend(this,m);this.sorted=e.grep(this.columns,function(t){return t.order});this.$tbody=e("> .t-grid-content > table > tbody",l);this.scrollable=this.$tbody.length>0;if(!this.scrollable){this.$tbody=e("> table > tbody",l);this.$header=e("> table > thead tr",l);this.$footer=e("> table > tfoot",l)}else{e("> .t-grid-content",l).tScrollable();this.$header=e("> .t-grid-header tr",l);this.$footer=e("> .t-grid-footer",l)}this.$headerWrap=e("> .t-grid-header > .t-grid-header-wrap",l);this.$footerWrap=e("> .t-grid-footer > .t-grid-footer-wrap",l);var r=this.$headerWrap.add(this.$footerWrap);var p=this;e("> .t-grid-content",l).bind("scroll",function(){if(p.pageOnScroll){var t=this.scrollTop+this.clientHeight;if(t===this.scrollHeight&&p.currentPage').rep('',t.find(".t-group-cell").length).cat('').cat('').cat(this.displayDetails(this.dataItem(t))).cat("").string()).insertAfter(t)}k.trigger(this.element,u?"detailViewExpand":"detailViewCollapse",{masterRow:t[0],detailRow:t.next(".t-detail-row")[0]});t.next().toggle(u)},this));this.$pager=e("> .t-grid-pager .t-pager",l);var q=new k.dropDown({effects:k.fx.slide.defaults(),onClick:e.proxy(function(t){this.changePageSize(e(t.item).text());q.close()},this)});q.dataBind(m.pageSizesInDropDown||[]);e(document.documentElement).bind("mousedown",function(u){var t=q.$element[0];if(!e.contains(t,u.target)){q.close()}});this.$pager.delegate(".t-state-disabled","click",k.preventDefault).delegate(".t-link:not(.t-state-disabled)","mouseenter",k.hover).delegate(".t-link:not(.t-state-disabled)","mouseleave",k.leave).delegate("input[type=text]","keydown",e.proxy(this.pagerKeyDown,this)).delegate(".t-page-size .t-dropdown-wrap","click",function(){var t=e(this);q.open({offset:t.offset(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth(),zIndex:k.getElementZIndex(this)})});e("> .t-grid-pager",l).delegate(".t-refresh","click",e.proxy(this.refreshClick,this));e(l).delegate(".t-button","hover",k.preventDefault);if(this.sort){this.$header.delegate("a.t-link","hover",function(){e(this).toggleClass("t-state-hover")})}var s="tr:not(.t-grouping-row,.t-detail-row,.t-no-data,:has(>.t-edit-container))";if(this.selectable){var n=this.$tbody[0];this.$tbody.delegate(s,"click",function(t){if(this.parentNode==n){p.rowClick(t)}}).delegate(s,"hover",function(t){if(this.parentNode==n){if(t.type=="mouseenter"){e(this).addClass("t-state-hover")}else{e(this).removeClass("t-state-hover")}}})}if(this.isAjax()||this.operationMode==="client"){this.$pager.delegate(".t-link:not(.t-state-disabled)","click",k.stop(this.pagerClick,this));if(this.sort){this.$header.delegate("a.t-link","click",k.stop(this.headerClick,this))}}for(var o=0;o0,C=q.selectable,r=u.has("tr>td>.t-grid-select").length>0,z=e(y.target),l=!z.is(":button,a,:input,a>.t-icon"),s=q.editRow,t=false,n;if(!B){if(q.editing&&q.editing.mode=="PopUp"){B=q._current=m.find(a)}else{return}}n=B.index();if(!e.browser.msie){l=l&&z[0]===m[0]}if(l){if(A&&d.PAGEUP==x){if(!q.pageOnScroll){m.one(p,function(){v(m.find(a));q._focusGridElement()})}if(q.currentPage.t-icon")){t=q._handleEditing(y)}if(t){y.preventDefault();y.stopPropagation()}},_handleEditing:function(A){var p=this,y=A.keyCode,w=e.proxy(p.current,p),B=e.proxy(p._clearInputSelection,p),v=e.proxy(p._focusGridElement,p),D=w(),n=e(p.element),o=p.$tbody,q=D.parent(),m=q.index(),x,r=false,t="td.t-grid-edit-cell",u=":input:visible:first",l=p.isAjax(),C=q.closest("tr.t-grid-new-row")[0],E=p.editing.mode==="InCell",z=p.editing.mode==="PopUp",s=q.closest("tr.t-grid-edit-row")[0]||(z&&e("#"+p.formId()+":visible").length);if(d.ENTER==y||d.F12==y){r=true;if(s){B(D.find(u)[0]);if(E){x=p.validate();if(!x){D.find(u).focus();return}if(D.is(t)){p.saveCell(D[0])}else{q.find(t).each(function(){p.saveCell(this)});p.editCell(D[0])}if(p.valid){v()}}else{if(l){n.one("dataBound",function(){var F=e(this).data("tGrid");F._current=F.$tbody.children().eq(m).find(f).eq(0);v()});if(z){e(".t-grid-update,.t-grid-insert","#"+p.formId()).click()}else{if(C){p.insertRow(q)}else{p.updateRow(q)}}}else{if(p.validate()){if(z){q=e("#"+p.formId())}q.find(".t-grid-update,.t-grid-insert").click()}}}}else{if(E){o.find(t).each(function(){p.saveCell(this)});p.editCell(D[0])}else{if(l){p.editRow(q);w(q.children().eq(0));if(z){q=e("#"+p.formId())}q.find(u).focus()}else{location.href=q.find(".t-grid-edit:first").attr("href")}}}}else{if(d.ESC==y&&s){r=true;B(D.find(u)[0]);if(E&&D.is(t)){p.cancelCell(D);v()}else{if(l){if(z){e(".t-grid-cancel","#"+this.formId()).click()}else{p.cancelRow(q)}w(q.find(f).eq(0));v()}else{if(z){q=e("#"+p.formId())}location.href=q.find(".t-grid-cancel:first").attr("href")}}}else{if(s&&E&&d.TAB==y){r=true;B(D.find(u)[0]);p.saveCell(D);if(p.valid){v();w(A.shiftKey?D.prev():D.next())}}}}return r},_initNavigationMouseEvents:function(){var r=this,o=r.$tbody,l=g+f,p=e.browser,q="click",u="mousedown",m,t,n,v=".t-grid-edit-row",s=":button,a,:input,a>.t-icon";if(p.msie){o.delegate(l,q,function(w){t=e(w.target),n=e(w.currentTarget),m=r._current;if(n.closest("tbody")[0]!==o[0]){return}if(t.is(s)){if(!(m&&!n.parent().is(v))){if(m){m.removeClass(FOCUSED)}r._current=n}}else{if(m&&m[0]===n[0]){r._current=null}r.current(n);w.preventDefault()}})}else{o.delegate(l,u,function(w){t=e(w.target),n=e(w.currentTarget),m=r._current;if(n.closest("tbody")[0]!==o[0]){return}if(t.is(s)){if(!(m&&!n.parent().is(v))){if(m){m.removeClass(FOCUSED)}r._current=n}}else{r.current(n)}})}},_clearInputSelection:function(m){if(!m){return}var l=e.browser,n;if(l.msie&&parseInt(l.version)==8){n=m.createTextRange();n.moveStart("textedit",1);n.select()}},_focusGridElement:function(){var l=e.browser;if(l.msie&&parseInt(l.version)<9){e("body",document).focus()}this.element.focus()},current:function(m){var l=this,n=l._current;if(m!==undefined&&m.length){if(!n||n[0]!==m[0]){m.addClass(FOCUSED);if(n){n.removeClass(FOCUSED)}l._current=m;l._scrollTo(m.parent()[0])}}else{return l._current}},_scrollTo:function(m){var p=this.$tbody.closest("div.t-grid-content")[0];if(!m||!p){return}var l=m.offsetTop,r=m.offsetHeight,q=p.scrollTop,n=p.clientHeight,o=l+r;p.scrollTop=q>l?l:o>(q+n)?o-n:q},_transformParams:function(n){var m=this,l=m._isServerOperation();params={},filter=e.isFunction(m.filterExpr)?m.filterExpr():"";if(l){if(n.page){params[m.queryString.page]=n.page}if(n.pageSize){params[m.queryString.size]=n.pageSize}if(n.sort&&n.sort.length){params[m.queryString.orderBy]=e.map(n.sort,function(o){return o.field+"-"+o.dir}).join("~")}if(filter!==""){params[m.queryString.filter]=filter}if(m.groupBy){params[m.queryString.groupBy]=m.groupBy}if(n.aggregates&&n.aggregates.length){params.aggregates=e.map(m.columns,function(o){if(o.aggregates){return o.member+"-"+o.aggregates.join("-")}}).join("~")}}delete n.page;delete n.pageSize;delete n.sort;delete n.filter;delete n.group;delete n.aggregates;params=e.extend(params,n);if(m.ws){params=k.toJson({state:params})}return params},_dataSourceOptions:function(){var n=this,l=this.pageSize>0,m,o=n.data||[];remoteOperations=n._isServerOperation(),deserializer={translateGroup:function(p){return{value:p.Key,hasSubgroups:p.HasSubgroups,aggregates:p.Aggregates,items:p.HasSubgroups?e.map(p.Items,e.proxy(this.translateGroup,this)):p.Items}},flatGroups:function(p){if(p.HasSubgroups){return this.flatGroups(p.Items)}return p.Items},convert:function(p){return p.d||p},mergeChanges:function(q,t,p){var s,w,v,r=[],u,x=n.dataSource;e.each(p,function(z,y){for(w=0,v=q.length;w.t-icon")){n.stopPropagation();var l=m.closest("tr").addClass("t-state-selected").siblings().removeClass("t-state-selected").end();k.trigger(this.element,"rowSelect",{row:l[0]})}},$rows:function(){return this.$tbody.find("> tr:not(.t-grouping-row,.t-detail-row)")},expandRow:function(l){e(l).find("> td .t-plus, > td .t-expand").click()},collapseRow:function(l){e(l).find("> td .t-minus, > td .t-collapse").click()},headerClick:function(l){l.preventDefault();this.toggleOrder(this.$columns().index(e(l.target).closest("th")));this.sort(this.sortExpr())},refreshClick:function(m,l){if(e(l).is(".t-loading")){return}if(this.isAjax()){m.preventDefault();if(!this._isServerOperation()){this.dataSource.read()}else{this.ajaxRequest(true)}}},sort:function(l){this.orderBy=l;this.ajaxRequest()},columnFromTitle:function(m){m=e.trim(m);var l=e.grep(this.$columns(),function(n){return e.trim(e(n).text())==m})[0];if(l){return this.columns[this.$columns().index(l)]}return e.grep(this.columns,function(n){return n.title==m})[0]},columnFromMember:function(l){var m=e.grep(this.columns,function(n){return n.member==l})[0];if(!m){m=e.grep(this.columns,function(o){var n="."+o.member;return l.substr(l.length-n.length)==n})[0]}return m},toggleOrder:function(l){l=typeof l=="number"?this.columns[l]:l;var n="asc";if(l.order=="asc"){n="desc"}else{if(l.order=="desc"){n=null}}l.order=n;var m=e.inArray(l,this.sorted);if(this.sortMode=="single"&&m<0){e.each(this.sorted,function(){this.order=null});this.sorted=[]}if(m<0&&n){this.sorted.push(l)}if(!n){this.sorted.splice(m,1)}},sortExpr:function(){return e.map(this.sorted,function(l){return l.member+"-"+l.order}).join("~")},pagerKeyDown:function(l){if(l.keyCode==13){var m=this.sanitizePage(e(l.target).val());if(m!=this.currentPage){this.pageTo(m)}else{e(l.target).val(m)}}},isAjax:function(){return this.ajax||this.ws||this.onDataBinding},url:function(l){return(this.ajax||this.ws)[l]},pagerClick:function(q){q.preventDefault();var m=e(q.target).closest(".t-link");var n=this.currentPage;var o=m.find(".t-icon");if(o.hasClass("t-arrow-next")){n++}else{if(o.hasClass("t-arrow-last")){n=this.totalPages()}else{if(o.hasClass("t-arrow-prev")){n--}else{if(o.hasClass("t-arrow-first")){n=1}else{var l=m.text();if(l=="..."){var p=m.parent().children().index(m);if(p==0){n=parseInt(m.next().text())-1}else{n=parseInt(m.prev().text())+1}}else{n=parseInt(l)}}}}}this.pageTo(isFinite(n)?n:this.currentPage)},changePageSize:function(m){var l=parseInt(m,10);if(isNaN(l)||l<1){return this.pageSize}l=Math.max(l,1);this.currentPage=1;this.pageSize=l;if(this.isAjax()){this.ajaxRequest()}else{this.serverRequest()}},pageTo:function(l){this._pagingInProgress=true;this.currentPage=l;if(this.isAjax()){this.ajaxRequest()}else{this.serverRequest()}},_dataChange:function(){var m=this.dataSource;this.total=m.total();this.aggregates=m.aggregates();var l=m.view();if(this.pageOnScroll&&this._pagingInProgress===true){l=(this.data||[]).concat(l);this._pagingInProgress=false}this._current=null;this._populate(l)},_populate:function(l){this.data=[];this.bindTo(l);this.bindFooter();this.updatePager();this.updateSorting();k.trigger(this.element,"dataBound");k.trigger(this.element,"repaint")},ajaxOptions:function(m){var l={type:"POST",dataType:"text",dataFilter:function(o,p){return o.replace(c,"new Date($1)")},error:e.proxy(function(p,o){if(k.ajaxError(this.element,"error",p,o)){return}},this),complete:e.proxy(this.hideBusy,this),success:e.proxy(function(p,q,o){try{p=eval("("+p+")")}catch(r){if(!k.ajaxError(this.element,"error",o,"parseeror")){alert("Error! The requested URL did not return JSON.")}return}p=p.d||p;if(m.hasErrors&&m.hasErrors(p)){if(!k.trigger(this.element,"error",{XMLHttpRequest:o,textStatus:"modelstateerror",modelState:p.modelState})){m.displayErrors(p)}return}this.dataSource.success(p)},this)};e.extend(l,m);var n=this.ws?l.data.state={}:l.data;n[this.queryString.page]=this.currentPage;n[this.queryString.size]=this.pageSize;n[this.queryString.orderBy]=this.orderBy||"";n[this.queryString.groupBy]=this.groupBy;n[this.queryString.filter]=(this.filterBy||"").replace(/\"/g,'\\"');n[this.queryString.aggregates]=e.map(this.columns,function(o){if(o.aggregates){return o.member+"-"+o.aggregates.join("-")}}).join("~");if(this.ws){l.data=k.toJson(l.data);l.contentType="application/json; charset=utf-8"}return l},showBusy:function(){this.busyTimeout=setTimeout(e.proxy(function(){e("> .t-grid-pager .t-status .t-icon",this.element).addClass("t-loading")},this),100)},hideBusy:function(){clearTimeout(this.busyTimeout);e("> .t-grid-pager .t-status .t-icon",this.element).removeClass("t-loading")},serverRequest:function(){if(this.operationMode==="client"){this.ajaxRequest()}else{location.href=k.formatString(unescape(this.urlFormat),this.currentPage,this.orderBy||"~",this.groupBy||"~",encodeURIComponent(this.filterBy)||"~",this.pageSize||"~")}},_isServerOperation:function(){return this.operationMode!=="client"},ajaxRequest:function(n){var p=this,o=p.pageSize,m=p.currentPage,l=e.map(p.columns,function(r){return e.map(r.aggregates||[],function(s){return{field:r.member,aggregate:s}})});if(m>1&&p.pageOnScroll&&!p._pagingInProgress){o=m*p.pageSize;m=1}var q={page:m,sortedColumns:p.sorted,filteredColumns:e.grep(p.columns,function(r){return r.filters})};if(k.trigger(p.element,"dataBinding",q)){return}if(!p.ajax&&!p.ws&&this.operationMode!=="client"){return}if(p.dataSource.transport.options&&p.dataSource.transport.options.read){p.dataSource.transport.options.read.url=this.url("selectUrl")}if(p._isServerOperation()){p.showBusy()}p.dataSource.query(e.extend({page:m,pageSize:o,sort:e.map(p.sorted,function(r){return{field:r.member,dir:r.order}}),filter:e.map(e.grep(p.columns,function(r){return r.filters}),function(r){return e.map(r.filters,function(t){if(r.type=="Number"){t.value=parseFloat(t.value)}else{if(r.type=="Date"){var s=r.format?/\{0(:([^\}]+))?\}/.exec(r.format)[2]:k.cultureInfo.shortDate;t.value=k.datetime.parse({value:t.value,format:s}).toDate()}}return{field:r.member,operator:t.operator,value:t.value}})}),group:e.map(p.groups,function(r){return{field:r.member,dir:r.order,aggregates:l}}),aggregates:l},e.extend({},q.data,n)))},valueFor:function(l){if(l.type=="Date"){return new Function("data","var value = data."+l.member+'; if (!value) return null; return value instanceof Date? value : new Date(parseInt(value.replace(/\\/Date\\((.*?)\\)\\//, "$1")));')}return new Function("data","return data"+(l.member?"."+l.member:"")+";")},displayFor:function(l){var n=this.localization;if(l.commands){var o=e.map(l.commands,function(p){var q=k.grid.ButtonBuilder.create(e.extend({text:n[p.name]},p));return q.build()}).join("");return function(){return o}}if(!l.template){var m=l.value||function(){return""};if(l.format||l.type=="Date"){m=function(p){var q=l.value(p);return q==null?"":k.formatString(l.format||"{0:G}",q)}}return l.encoded===false?m:function(p){return j(m(p))}}return h(l.template)},insertFor:function(l){return this.displayFor(l)},editFor:function(l){return this.displayFor(l)},initializeColumns:function(){e.each(this.columns,e.proxy(function(n,o){if(o.member!==undefined){o.value=this.valueFor(o)}else{o.readonly=true}o.insert=this.insertFor(o);o.edit=this.editFor(o);o.display=this.displayFor(o);if(o.footerTemplate){o.footer=h(o.footerTemplate)}if(o.groupFooterTemplate){this.showGroupFooter=true;o.groupFooter=h(o.groupFooterTemplate)}o.groupHeader=h("<#= Title #>: <#= Key #>");if(o.groupHeaderTemplate){o.groupHeader=h(o.groupHeaderTemplate)}},this));var m=this.columns.length-1;while(m>=0){var l=this.columns[m];if(l.hidden){m--;continue}if(!l.attr){l.attr=' class="t-last"';break}else{if(l.attr.indexOf("class")==-1){l.attr+=' class="t-last"';break}else{l.attr=l.attr.replace('class="','class="t-last ');break}}m--}if(this.detail){this.displayDetails=h(this.detail.template)}},bindData:function(m,p,r){Array.prototype.push.apply(this.data,m);var t=this.pageOnScroll?m.length:Math.min(this.pageSize,m.length);var q=this.columns.length;t=this.pageSize?t:m.length;if(e.browser.msie){e(this.element).find(".t-grid-content colgroup:first col").css("display","")}for(var u=0;u')}else{p.cat("")}p.rep('',r).catIf('',this.detail);if(this.rowTemplate){p.cat('').cat(this.rowTemplate(m[u])).cat("")}else{for(var n=0,o=this.columns.length;n").cat(s.display(m[u]));p.cat("")}}p.cat("")}},normalizeColumns:function(){},dataItem:function(l){return this.data[this.$tbody.find("> tr:not(.t-grouping-row,.t-detail-row,.t-grid-new-row,.t-group-footer)").index(e(l))]},_colspan:function(){return this.groups.length+this.columns.length+(this.detail?1:0)},bindTo:function(q){var o=new k.stringBuilder();var p=this._colspan();if(q&&q.length){this.normalizeColumns(p);if(typeof q[0].hasSubgroups!="undefined"){for(var m=0,n=q.length;m").cat("").cat(this.noRecordsTemplate?this.noRecordsTemplate:this.localization.noRecords).cat("")}this.$tbody.html(o.string());if(this.onRowDataBound){var r=jQuery.grep(this.$tbody[0].rows,function(l){return !e(l).hasClass("t-grouping-row")});for(var m=0,n=this.data.length;m=l).removeClass("t-state-hover");this.$pager.find(".t-arrow-prev").parent().add(this.$pager.find(".t-arrow-first").parent()).toggleClass("t-state-disabled",n==1).removeClass("t-state-hover");var m=this.localization;this.$pager.find(".t-page-i-of-n").each(function(){this.innerHTML=new k.stringBuilder().cat(m.page).cat(' ').cat(k.formatString(m.pageOf,l)).string()});this.$pager.find(".t-page-size").each(function(){var p='
      '+o+'select
      ';this.innerHTML=p});this.$pager.find(".t-numeric").each(e.proxy(function(q,p){this.numericPager(p,n,l)},this));this.$pager.parent().find(".t-status-text").text(k.formatString(m.displayingItems,this.firstItemInPage(),this.lastItemInPage(),this.total))},numericPager:function(m,s,t){var q=10;var o=1;if(s>q){var l=(s%q);o=(l==0)?(s-q)+1:(s-l)+1}var p=(o+q)-1;p=Math.min(p,t);var n=new k.stringBuilder();if(o>1){n.cat('
      ...')}for(var r=o;r<=p;r++){if(r==s){n.cat('').cat(r).cat("")}else{n.cat('').cat(r).cat("")}}if(p...')}m.innerHTML=n.string()},$columns:function(){return this.$header.find("th:not(.t-hierarchy-cell,.t-group-cell)")},updateSorting:function(){this.sorted=[];e.each(this.orderBy.split("~"),e.proxy(function(m,l){var n=l.split("-");var o=this.columnFromMember(n[0]);if(o){o.order=n[1];this.sorted.push(o)}},this));this.$columns().each(e.proxy(function(m,p){var n=this.columns[m].order;var l=e(p).children("a.t-link");var o=l.children(".t-icon");if(!n){o.hide()}else{if(o.length==0){o=e('').appendTo(l)}o.toggleClass("t-arrow-up",n=="asc").toggleClass("t-arrow-down",n=="desc").html("("+(n=="asc"?this.localization.sortedAsc:this.localization.sortedDesc)+")").show()}},this))},sanitizePage:function(m){var l=parseInt(m,10);if(isNaN(l)||l<1){return this.currentPage}return Math.min(l,this.totalPages())},totalPages:function(){return Math.ceil(this.total/this.pageSize)},firstItemInPage:function(){return this.total>0?(this.currentPage-1)*this.pageSize+1:0},lastItemInPage:function(){return Math.min(this.currentPage*this.pageSize,this.total)},dataBind:function(l){this.dataSource.success(l)},bindFooter:function(){var l=this,n=l.$footer.find("td:not(.t-group-cell,.t-hierarchy-cell)"),m=l.aggregates;e.each(l.columns,function(o){if(this.footer){n.eq(o).html(this.footer(l._mapAggregates(m[this.member]||{})))}})},rebind:function(l){this.sorted=[];this.orderBy="";this.filterBy="";this.currentPage=1;e.each(this.columns,function(){this.order=null;this.filters=null});e(".t-filter-options",this.element).find('input[type="text"], select').val("").removeClass("t-state-error").end().find("div.t-formatted-value").html("");e(".t-grid-filter",this.element).removeClass("t-active-filter");this.ajaxRequest(l)}};k.grid.ButtonBuilder=function(l){this.classNames=["t-button","t-grid-"+l.name];this.content=function(){return l.text};this.build=function(){return'"+this.content()+""}};k.grid.ButtonBuilder.create=function(l){return new (i[l.buttonType])(l)};function b(m,l){return'"}k.grid.ImageButtonBuilder=function(l){k.grid.ButtonBuilder.call(this,l);this.classNames.push("t-button-icon");this.content=function(){return b(l.name,l.imageAttr)}};k.grid.ImageTextButtonBuilder=function(l){k.grid.ButtonBuilder.call(this,l);this.classNames.push("t-button-icontext");this.content=function(){return'"+l.text}};k.grid.BareImageButtonBuilder=function(l,m){k.grid.ImageButtonBuilder.call(this,l,m);this.classNames.push("t-button-icon","t-button-bare")};var i={Text:k.grid.ButtonBuilder,ImageAndText:k.grid.ImageTextButtonBuilder,Image:k.grid.ImageButtonBuilder,BareImage:k.grid.BareImageButtonBuilder};e.fn.tGrid=function(l){return k.create(this,{name:"tGrid",init:function(m,n){return new k.grid(m,n)},options:l,success:function(m){if(m.$tbody.find("tr.t-no-data").length){m.ajaxRequest()}}})};e.fn.tGrid.defaults={columns:[],plugins:[],currentPage:1,pageSize:10,localization:{addNew:"Add new record","delete":"Delete",cancel:"Cancel",insert:"Insert",update:"Update",select:"Select",pageOf:"of {0}",displayingItems:"Displaying items {0} - {1} of {2}",edit:"Edit",noRecords:"No records to display.",page:"Page ",filter:"Filter",filterClear:"Clear Filter",filterShowRows:"Show rows with value that",filterAnd:"And",filterStringEq:"Is equal to",filterStringNe:"Is not equal to",filterStringStartsWith:"Starts with",filterStringSubstringOf:"Contains",filterStringEndsWith:"Ends with",filterNumberEq:"Is equal to",filterNumberNe:"Is not equal to",filterNumberLt:"Is less than",filterNumberLe:"Is less than or equal to",filterNumberGt:"Is greater than",filterNumberGe:"Is greater than or equal to",filterDateEq:"Is equal to",filterDateNe:"Is not equal to",filterDateLt:"Is before",filterDateLe:"Is before or equal to",filterDateGt:"Is after",filterDateGe:"Is after or equal to",filterEnumEq:"Is equal to",filterEnumNe:"Is not equal to",filterBoolIsTrue:"is true",filterBoolIsFalse:"is false",filterSelectValue:"-Select value-",filterOpenPopupHint:"Open the calendar popup",groupHint:"Drag a column header and drop it here to group by that column",deleteConfirmation:"Are you sure you want to delete this record?",sortedAsc:"sorted ascending",sortedDesc:"sorted descending",ungroup:"ungroup"},queryString:{page:"page",size:"size",orderBy:"orderBy",groupBy:"groupBy",filter:"filter",aggregates:"aggregates"}}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.reordering.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.reordering.min.js new file mode 100644 index 000000000..9d206df59 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.reordering.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.grid.reordering.js");b.reordering={};b.reordering.initialize=function(d){d.$reorderDropCue=a('
      ');var c=d.$header.children("th").length-1;var e=function(i,l){var k=a.inArray(l,d.columns);d.columns.splice(k,1);d.columns.splice(i,0,l);h(d.$columns(),k,i);h(d.$tbody.parent().find("> colgroup > col:not(.t-group-col,.t-hierarchy-col)"),k,i);h(d.$headerWrap.find("table").find("> colgroup > col:not(.t-group-col,.t-hierarchy-col)"),k,i);var j=d.$footer.find("table");h(j.find("> colgroup > col:not(.t-group-col,.t-hierarchy-col)"),k,i);h(j.find("> tbody > tr.t-footer-template > td:not(.t-group-cell,.t-hierarchy-cell)").add(d.$footer.find("tr.t-footer-template > td:not(.t-group-cell,.t-hierarchy-cell)")),k,i);a.each(d.$tbody.children(),function(){h(a(this).find(" > td:not(.t-group-cell, .t-hierarchy-cell, .t-detail-cell)"),k,i)})};d.reorderColumn=e;function f(i,k,l,j){g(i,k,l,j,"th","t-last-header");g(i,k,l,j,"td","t-last")}function g(j,l,k,m,i,n){if(k.is(i)&&m==c){j.addClass(n);k.removeClass(n)}if(j.is(i)&&l==c){j.removeClass(n).prev(i).addClass(n)}}function h(j,k,i){var l=j.eq(k);var m=j.eq(i);f(l,k,m,i);l[k>i?"insertBefore":"insertAfter"](m)}new b.draggable({owner:d.$header,selector:".t-header:not(.t-group-cell,.t-hierarchy-cell)",scope:d.element.id+"-reodering",cue:function(i){return b.dragCue(i.$draggable.text())},destroy:function(i){i.$cue.remove()}});new b.droppable({owner:d.$header,scope:d.element.id+"-reodering",selector:".t-header:not(.t-group-cell,.t-hierarchy-cell)",over:function(k){var i=a.trim(k.$draggable.text())==a.trim(k.$droppable.text());b.dragCueStatus(k.$cue,i?"t-denied":"t-add");var j=0;a("> .t-grid-top, > .t-grouping-header",d.element).each(function(){j+=a(this).outerHeight()});if(!i){d.$reorderDropCue.css({height:k.$droppable.outerHeight(),top:j,left:function(){return k.$droppable.position().left+((k.$droppable.index()>k.$draggable.index())?k.$droppable.outerWidth():0)}}).appendTo(d.element)}},out:function(i){d.$reorderDropCue.remove();b.dragCueStatus(i.$cue,"t-denied")},drop:function(k){d.$reorderDropCue.remove();if(k.$cue.find(".t-drag-status").is(".t-add")){var i=d.columnFromTitle(a.trim(k.$draggable.text()));var j=d.$columns().index(k.$droppable);b.trigger(d.element,"columnReorder",{column:i,oldIndex:a.inArray(i,d.columns),newIndex:j});e(j,i);b.trigger(d.element,"repaint")}}})}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.resizing.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.resizing.min.js new file mode 100644 index 000000000..e591f5fe0 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.grid.resizing.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.grid.resizing.js");b.resizing={};b.resizing.initialize=function(p){var c,o=a('
      '),i,d,h,l=3;function m(q,r){a("th, th .t-grid-filter, th .t-link",q).add(document.body).css("cursor",r)}function k(q){var r=0;a("> .t-grouping-header, > .t-grid-top",q).each(function(){r+=this.offsetHeight});return r}function e(t){var r=0;a(".t-resize-handle",p.element).each(function(){r+=a(this).data("th").outerWidth();a(this).css("left",r-l)});r=-p.$tbody.closest(".t-grid-content").scrollLeft();t.prevAll("th").add(t).each(function(){r+=this.offsetWidth});var q=p.scrollable?a(".t-grid-content",p.element):a("tbody",p.element);var s=q.attr(p.scrollable?"clientWidth":"offsetWidth");if(r>=s){o.remove()}else{o.css({left:r,top:k(p.element),height:t.outerHeight()+q.attr(p.scrollable?"clientHeight":"offsetHeight")});if(!o.parent().length){o.appendTo(p.element)}}}function j(r){var q=r.$draggable.data("th");c=a("colgroup",p.element).find("col:eq("+q.index()+")");h=r.pageX;d=q.outerWidth();i=p.$tbody.outerWidth()}function g(q){var r=d+q.pageX-h;if(r>10){c.css("width",r);if(p.scrollable){p.$tbody.parent().add(p.$headerWrap.find("table")).add(p.$footer.find("table")).css("width",i+q.pageX-h)}e(q.$draggable.data("th"))}}function f(s){o.remove();m(p.element,"");var r=s.$draggable.data("th");var q=r.outerWidth();if(p.onColumnResize&&q!=d){b.trigger(p.element,"columnResize",{column:p.columns[p.$columns().index(r)],oldWidth:d,newWidth:q})}return false}function n(){var r=0,q=p.element.id+"-column-resizing";var s=b.draggable.get(q);if(s){s._destroy()}p.$headerWrap.add(p.element).find("> .t-resize-handle").remove();p.$header.find(".t-header:visible").each(function(){r+=this.offsetWidth;var t=a(this);a('
      ').css({left:r-l,top:p.scrollable?0:k(p.element),width:l*2}).appendTo(p.scrollable?p.$headerWrap:p.element).data("th",t).mousedown(function(){e(t);m(p.element,a(this).css("cursor"))}).mouseup(function(){m(p.element,"")})});new b.draggable({owner:p.element,selector:".t-resize-handle",scope:q,distance:0,start:j,drag:g,stop:f})}n();a(p.element).one("mouseenter",n).bind("repaint",n)}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.imagebrowser.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.imagebrowser.min.js new file mode 100644 index 000000000..de97d4dc3 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.imagebrowser.min.js @@ -0,0 +1 @@ +(function(i,o){var n=i.telerik,e=i.telerik.query;n.scripts.push("telerik.imagebrowser.js");n.imageBrowser=function(q,r){this.element=q;this.wrapper=i(q);var t=r.filter||"*.png,*.gif,*.jpg,*.jpeg";var s=r.localization;this.wrapper.append('
      select
      ').append(k(s,r.uploadUrl,r.createDirectoryUrl,r.deleteFileUrl||r.deleteDirectoryUrl)).append('
        ');var u=this.wrapper.find(".t-breadcrumbs");var y=this.wrapper.find(".t-tiles");var v=this.wrapper.find(".t-search-wrap");if(r.uploadUrl){this.wrapper.find(".t-upload input").tUpload({async:{saveUrl:r.uploadUrl,autoUpload:true},multiple:false,onUpload:function(B){var C=new RegExp(("("+t.split(",").join(")|(")+")").replace(/\*\./g,".*."),"i");var A=B.files[0].name;if(C.test(A)){B.data={path:u.val()};y.trigger("t:upload",[{name:A},function(){B.preventDefault()}])}else{B.preventDefault();alert(n.formatString(s.invalidFileType,A,t))}},onError:function(A){A.preventDefault();y.trigger("t:error",[A.files[0]]);var B=A.XMLHttpRequest;if(n.ajaxError(r.element,"error",B,B.statusText)){return}},onSuccess:function(A){y.trigger("t:completeFile",[i.extend(A.response,{path:u.val()})])}})}new n.searchBox(v[0]);new n.fileListView(y[0],{thumbnailUrl:r.thumbUrl,localization:s});var w=new n.dropDown({effects:n.fx.slide.defaults(),onClick:function(A){i(q).find(".t-tiles-arrange a span:first").html(i(A.item).text());w.close();u.trigger("t:change")}});var z=[{Text:s.orderByName,Value:"name"},{Text:s.orderBySize,Value:"size"}];w.dataBind(z);this.wrapper.find(".t-tiles-arrange a").click(function(B){B.preventDefault();var A=i(this);w.open({offset:A.offset(),outerHeight:A.outerHeight(),outerWidth:A.outerWidth(),zIndex:n.getElementZIndex(this)})}).end().delegate(".t-button:not(.t-state-disabled):has(.t-delete)","click",function(){var A=y.find(".t-state-selected");if(A.length&&confirm(n.formatString(s.deleteFile,A.find("strong").text()))){i.ajax({type:"POST",url:A.data("kind")=="f"?r.deleteFileUrl:r.deleteDirectoryUrl,data:{path:A.data("url")},error:function(C,B){if(n.ajaxError(r.element,"error",C,B)){return}},success:function(){y.trigger("t:delete");i(q).find(".t-delete").parent().addClass("t-state-disabled")}})}}).delegate(".t-button:not(.t-state-disabled):has(.t-addfolder)","click",function(){y.trigger("t:createDirectory",[function(A){i.ajax({type:"POST",url:r.createDirectoryUrl,data:{path:u.val(),name:A},error:function(C,B){y.trigger("t:errorDirectory",{name:A});if(n.ajaxError(r.element,"error",C,B)){return}},success:function(){y.trigger("t:completeDirectory",{path:u.val(),name:A})}})}])});i(document.documentElement).bind("mousedown",function(B){var A=w.$element[0];if(!i.contains(A,B.target)){w.close()}});var x=new n.dataSource({error:function(A,C){var B=n.trigger(r.element,"error",{XMLHttpRequest:A,textStatus:C});if(!B){if(C=="error"){if(A.status=="404"){alert(r.localization.directoryNotFound)}else{if(A.status!="0"){alert("Error! The requested URL returned "+A.status+" - "+A.statusText)}}}else{if(C=="timeout"){alert("Error! Server timeout.")}}}},url:r.selectUrl,callback:function(B){i(q).find(".t-delete").parent().addClass("t-state-disabled");if(!u.val()){new n.breadcrumbs(u[0],{path:B.Path,roots:B.ContentPaths})}u.val(B.Path).trigger("t:refresh");var C=i(q).find(".t-tiles-arrange a span:first").text();var A=i.map(z,function(E){if(E.Text==C){return E.Value}})[0];var D=v.val();y.trigger("t:refresh",[B,A,D])}});v.bind("t:change",function(){u.trigger("t:change")});x.get({path:""});y.bind("t:select",function(A){if(A.kind=="d"){x.get({path:A.url})}else{r.apply(A)}}).bind("t:change",function(B){var C=i(q).find(".t-delete").parent().addClass("t-state-disabled");if(B.kind=="f"){var A=B.url;if(r.imageUrl){A=r.imageUrl+"?path="+A}i(q).parent().find("#t-editor-image-url").val(A)}if((B.kind=="f"&&r.deleteFileUrl)||(B.kind=="d"&&r.deleteDirectoryUrl)){C.removeClass("t-state-disabled")}});u.bind("t:change",function(){var A=i(this).val();if(!A.match(/\/$/)){A=A+"/"}x.get({path:A})})};function k(r,s,t,q){var v=!s?"":'
        '+r.uploadFile+'
        ',u=!t?"":'',w=!q?"":' ';return'
        '+v+u+w+'
        '+r.orderBy+' '+r.orderByName+'
        '}n.fileInfoReader=function(q){this._thumbnailUrl=q.thumbnailUrl||""};n.fileInfoReader.prototype={read:function(q,r){return r[q]||r[(q.charAt(0).toUpperCase()+q.substring(1))]},directories:function(q){return this.read("directories",q)},files:function(q){return this.read("files",q)},thumbUrl:function(q,r){return this._thumbnailUrl+"/?path="+q+r},size:function(s){var q=this.read("size",s);if(!q){return""}var r=" bytes";if(q>=1073741824){r=" GB";q/=1073741824}else{if(q>=1048576){r=" MB";q/=1048576}else{if(q>=1024){r=" KB";q/=1024}}}return Math.round(q*100)/100+r},name:function(q){return this.read("name",q)},path:function(q){return this.read("path",q)},concatPaths:function(q,r){if(q===o||!q.match(/\/$/)){q=(q||"")+"/"}return q+r}};n.fileListView=function(q,r){this.element=q;this.wrapper=i(q);this._localization=r.localization;this._reader=r.reader||new n.fileInfoReader({thumbnailUrl:r.thumbnailUrl});this._pageSize=r.pageSize||20;this.wrapper.bind({"t:refresh":i.proxy(this._refresh,this),"t:upload":i.proxy(this._upload,this),"t:completeFile":i.proxy(this._completeFile,this),"t:completeDirectory":i.proxy(this._completeDirectory,this),"t:delete":i.proxy(this._delete,this),"t:errorFile":i.proxy(this._errorFile,this),"t:errorDirectory":i.proxy(this._errorDirectory,this),"t:createDirectory":i.proxy(this._createDirectory,this),scroll:i.proxy(this._scroll,this)}).delegate("li[data-url]:not(.t-tile-empty)","click",i.proxy(this._click,this)).delegate("li[data-url]:not(.t-tile-empty)","dblclick",i.proxy(this._dblclick,this))};function d(q){return'
      • '+q.name+"
      • "}function m(q){return'
      • '+q+"
      • "}function h(q){return'
      • '+q.name+''+q.size+"";"
      • "}function l(q){return'
      • '+q.name+"
      • "}function p(q){return'
      • '}function b(r){var s=i(r);var q=i("",{src:s.data("thumbUrl"),alt:s.data("filename")}).hide().bind("load",function(){i(this).prev().remove().end().addClass("t-image").fadeIn()});s.find(".t-loading").after(q);r.loaded=true}if(i.browser.msie&&parseFloat(i.browser.version)<8){var a=function(q){return q.offsetTop}}else{var a=function(q){return q.offsetTop-i(q).height()}}var f=/(\:|\^|\$|\/|\.|\+|\||\(|\)|\[|\]|\{|\}|\\)/g,j=/\*/g,c=/\?/g;function g(q){return new RegExp(q.replace(f,"\\$1").replace(j,".*").replace(c,".?"),"ig")}n.fileListView.prototype={bindTo:function(r,t,s){this._filter=s;var x=this._reader;this.wrapper.empty();var q=e(this._reader.directories(r)||[]);var v=e(this._reader.files(r)||[]);if(s){var w=function(z){return g(s).test(x.name(z))};q=q.where(w);v=v.where(w)}var y=function(z){return x[t](z)};this._data=this._process(this._reader.path(r),q.orderBy(y),v.orderBy(y));var u=this._data.select(function(z){return z.kind=="f"?h(z):l(z)}).toArray().join("");this.wrapper.append(u);this._tiles=this.wrapper.find("li[data-kind=f]");this._scroll();this._asEmpty()},_asEmpty:function(){if(!this._data.any()&&!this._filter){this.wrapper.append(m(this._localization.emptyFolder))}},_completeFile:function(u,r){var t=this._reader.name(r);var q=this._reader.path(r);var s=i(h({kind:"f",thumbUrl:this._reader.thumbUrl(q,t),url:this._reader.concatPaths(q,t),name:t,size:this._reader.size(r)}));this.wrapper.find("li").eq(this.fileIndex(t)).replaceWith(s);b(s[0]);s.click()},_completeDirectory:function(u,r){var t=this._reader.name(r);var q=this._reader.path(r);var s=i(l({kind:"d",url:this._reader.concatPaths(q,t),name:t}));this.wrapper.find("li").eq(this.directoryIndex(t)).replaceWith(s)},_delete:function(){var q=this.wrapper.find(".t-state-selected");if(q.length){var r=this._data.toArray();r.splice(q.index(),1);this._data=e(r);q.remove();this._scroll();this._asEmpty()}},_scroll:function(q){clearTimeout(this._timeout);this._timeout=setTimeout(i.proxy(function(){var r=this.wrapper.outerHeight();var t=this.wrapper.scrollTop();var s=t+r;this._tiles.each(function(){var v=a(this);var u=v+this.offsetHeight;if((v>=t&&v=t&&us){return false}});this._tiles=this._tiles.filter(function(){return !this.loaded})},this),250)},_upload:function(u,q,v){var s=this.fileIndex(q.name);if(s>-1&&!confirm(n.formatString(this._localization.overwriteFile,q.name))){v()}else{this.wrapper.find(".t-tile-empty").remove();var w=i(d(q));if(s>-1){w.data("existing",true);this.wrapper.find("li").eq(s).replaceWith(w)}else{var t=this.wrapper.find("li[data-kind=f]:first");if(t.length){t.before(w)}else{this.wrapper.append(w)}var r=this._data.toArray();r.splice(w.index(),0,{name:q.name,kind:"f"})}this.wrapper.scrollTop(w.attr("offsetTop")-this.element.offsetHeight)}},_nameDirectory:function(){var t="New folder";var s=this._data.where(function(u){return u.kind=="d"&&u.name.indexOf(t)>-1}).select(function(u){return u.name}).toArray();if(i.inArray(t,s)>-1){var r=2;do{var q=t+" ("+r+")";r++}while(i.inArray(q,s)>-1);t=q}return t},_createDirectory:function(u,r){var t=this._nameDirectory();var w=i(p(t));var v=this.wrapper.find("li[data-kind=f]:first");if(v.length){v.before(w)}else{this.wrapper.append(w)}var q=this._data.toArray();var s=w.addClass("t-state-selected").siblings().removeClass("t-state-selected").end().find("input").keydown(function(x){if(x.keyCode==13){this.blur()}}).blur(i.proxy(function(x){var y=i.trim(x.target.value);if(!y||this._data.any(function(z){return z.kind=="d"&&z.name.toLowerCase()==y.toLowerCase()})){y=this._nameDirectory()}q.splice(w.index(),0,{name:y,kind:"d"});i(x.target).replaceWith(""+y+"");r(y)},this));setTimeout(function(){s.select()});this.wrapper.find(".t-tile-empty").remove();this.wrapper.scrollTop(w.attr("offsetTop")-this.element.offsetHeight)},_errorFile:function(u,s){var q=this.fileIndex(s.name);if(q>-1){var r=this.wrapper.find("li").eq(q);if(r.data("existing")){var t=i(h(this._data.toArray()[q]));r.replaceWith(t);b(t[0])}else{r.remove();this._data.toArray().splice(q,1)}this._asEmpty()}},_errorDirectory:function(s,r){var q=this.directoryIndex(r.name);if(q>-1){this.wrapper.find("li").eq(q).remove();this._data.toArray().splice(q,1);this._asEmpty()}},fileIndex:function(q){return this._index("f",q)},directoryIndex:function(q){return this._index("d",q)},_index:function(s,t){var q=-1,r=this._data?this._data.toArray():[];t=t.toLowerCase();i.each(r,function(u,v){if(v.kind==s&&v.name.toLowerCase()==t){q=u;return false}});return q},_raise:function(s,q){var r=i(s.currentTarget);n.trigger(this.wrapper,q,{kind:r.data("kind"),url:r.data("url")})},_click:function(q){i(q.currentTarget).addClass("t-state-selected").siblings().removeClass("t-state-selected");this._raise(q,"t:change")},_dblclick:function(q){if(document.selection&&document.selection.empty){document.selection.empty()}this._raise(q,"t:select")},_refresh:function(t,q,s,r){this.bindTo(q,s,r)},_process:function(s,q,r){var t=this._reader;var q=q.select(function(u){return{url:t.concatPaths(s,t.name(u)),name:t.name(u),kind:"d"}});var r=r.select(function(u){var v=t.name(u);return{url:t.concatPaths(s,v),name:v,kind:"f",thumbUrl:t.thumbUrl(s,v),size:t.size(u)}});return q.concat(r)}};n.dataSource=function(q){this._url=q.url;this._callback=q.callback;this._error=q.error};n.dataSource.prototype={_complete:function(q){if(this._callback){this._callback(q)}},get:function(q){i.ajax({type:"POST",url:this._url,data:q,success:i.proxy(this._complete,this),error:this._error})}};n.breadcrumbs=function(r,s){this.element=r;this.wrapper=i(r);this._gap=s.gap||50;this._initPaths(s.path);var q=new n.dropDown({effects:n.fx.slide.defaults(),onClick:i.proxy(function(t){var u=i(t.item).text();q.close();this._initPaths(u);i(r).val(u).trigger("t:change")},this)});q.dataBind(s.roots);this.wrapper.delegate("input","focus",i.proxy(this._focus,this)).delegate("input","blur",i.proxy(this._blur,this)).delegate("input","keydown",i.proxy(function(t){if(t.keyCode==13){this._blur()}},this)).delegate("a:not(.t-first)","click",n.stopAll(this._click,this)).delegate(".t-select","click",function(){var t=i(r);q.open({offset:t.offset(),outerHeight:t.outerHeight(),outerWidth:t.outerWidth(),zIndex:n.getElementZIndex(this)})}).bind("t:refresh",i.proxy(this.refresh,this));i(document.documentElement).bind("mousedown",function(u){var t=q.$element[0];if(!i.contains(t,u.target)){q.close()}});this.value(s.path)};n.breadcrumbs.prototype={_initPaths:function(q){this._basePath=(q||"").replace(/\/{2,}/g,"/").replace(/\/$/,"");q=this._basePath.split("/");q.pop();this._root=q.join("/")},_html:function(){var r=this._basePath.split("/").length-1;var q=this.value();if(q===o||!q.match(/^\//)){q="/"+(q||"")}return'
        '+i.map(q.split("/"),function(t,s){if(t&&s>=r){return''+t+""}}).join('>')+'
        select
        '},_path:function(q){return this._root+"/"+i.map(q,function(r){return i(r).text()}).join("/")},_update:function(q){q=q.charAt(0)==="/"?q:"/"+q;var r=this.value()!=q;this.value(q);if(r){this.wrapper.trigger("t:change")}},value:function(q){if(q!==o){this.wrapper.val(q.replace(/\/{2,}/g,"/"));this.refresh()}else{return this.wrapper.val()}},_click:function(q){this._update(this._path(i(q.target).prevAll("a").andSelf()))},refresh:function(){this.wrapper.empty().append(this._html());var r=this.wrapper.width()-this._gap;var q=this.wrapper.find("a");q.each(function(t){var s=i(this);if(s.parent().width()>r){if(t==q.length-1){s.width(r)}else{s.prev().andSelf().hide()}}})},_focus:function(){var q=this.wrapper.find(".t-breadcrumbs-wrap").hide().end().find("input").val(this.value());setTimeout(function(){q.select()})},_blur:function(){var q=this.wrapper.find("input").val().replace(/\/{2,}/g,"/");if(!q||q.toLowerCase().indexOf(this._basePath.toLowerCase())<0){q=this._basePath}this._update(q)}};n.searchBox=function(q){this.element=q;this.wrapper=i(q);this.wrapper.delegate("input","focus",i.proxy(this._focus,this)).delegate("input","blur",i.proxy(this._blur,this)).delegate("input","keydown",i.proxy(function(r){if(r.keyCode==13){this._blur()}},this)).delegate("a","click",n.stopAll(this._click,this));this._render()};n.searchBox.prototype={_render:function(){var q='search';this.wrapper.empty().append(i(q))},_focus:function(){this.wrapper.find("label").hide()},_blur:function(){this._update(this.wrapper.find("input").val());if(this.value()==""){this.wrapper.find("label").show()}},_update:function(q){var r=this.value()!=q;this.value(q);if(r){this.wrapper.trigger("t:change")}},value:function(q){if(q!==o){this.wrapper.val(q)}else{return this.wrapper.val()}},_click:function(){this._blur()}}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.list.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.list.min.js new file mode 100644 index 000000000..11a4970c6 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.list.min.js @@ -0,0 +1 @@ +(function(e){var a=e.telerik;var b=/\s+/;a.scripts.push("telerik.list.js");a.list={htmlBuilder:function(g,f,h){var k,n,l=g.id,m=g.name,o=new a.stringBuilder(),i=e(g);if(h){n=i.find("option:selected").text();k=i.val()}else{n=g.value}function j(){return e(['
        '].join(" "))}this.render=function(){i.wrap(j()).hide();var p=e('
        ').insertBefore(i);this.text({builder:o,text:n,id:l,name:m}).appendTo(p);e('select').appendTo(p);if(h){o.buffer=[];e(o.cat('").string()).insertAfter(p)}};this.text=function(p){return e(['',p.text||" ",""].join(""))}},initialize:function(){this.previousValue=this.value();a.bind(this,{dataBinding:this.onDataBinding,dataBound:this.onDataBound,error:this.onError,open:this.onOpen,close:this.onClose,valueChange:this.onChange,load:this.onLoad})},common:function(){this.open=function(){if(!this.loader.isAjax()&&(!this.data||this.data.length==0)){return}var g=this.$wrapper||this.$element,f=this.dropDown;var h={offset:g.offset(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth(),zIndex:a.getElementZIndex(g[0])};if(f.$items){f.open(h)}else{this.fill(function(){f.open(h)})}};this.close=function(){this.dropDown.close()};this.dataBind=function(k,g){this.data=k=(k||[]);var j=-1;for(var f=0,h=k.length;f-1&&j0){m.filters[k](m,f,j);var g=m.filteredDataIndexes;if((g&&g.length>0)||(k==0&&m.selectedIndex!=-1)){s=false}}if(s){var p={};p[m.queryString.text]=j;m.loader.ajaxRequest(function(u){var v=m.trigger;var t=m.dropDown;if(u&&u.length==0){t.close();t.dataBind();return}m.data=u;a.trigger(m.element,"dataBound");m.filters[k](m,u,j);var w=t.$items;if(w.length>0){if(!t.isOpened()){v.open()}m.filtering.autoFill(m,w.first().text())}else{v.close()}},{data:p})}}else{s=false;m.filters[k](m,m.data,j)}if(!s){var r=l.$items;if(!r){return}var h=r.length,i=m.selectedIndex;var n=k==0?i!=-1?r[i].innerText||r[i].textContent:"":r.length>0?r.first().text():"";this.autoFill(m,n);if(h==0){o.close()}else{if(!l.isOpened()){o.open()}}}};this.multiple=function(f){return f}},filters:function(){this.filters=[function f(g,k,n){if(!k||k.length==0){return}var l=g.dropDown;var j=l.$items;if(!j||j.length==0||g.loader.isAjax()){l.dataBind(k,g.encoded);j=l.$items}for(var h=0,m=k.length;h .t-dropdown-wrap .t-icon").addClass("t-loading")},this),100)},this.hideBusy=function(){clearTimeout(this.busyTimeout);this.component.$wrapper.find("> .t-dropdown-wrap .t-icon").removeClass("t-loading")}},trigger:function(f){this.component=f;this.change=function(){var g=f.previousValue;var h=f.value();if(g==undefined||h!=g){a.trigger(f.element,"valueChange",{value:h})}f.previousValue=h};this.open=function(){var g=f.dropDown;if((g.$items&&g.$items.length>0)&&!g.isOpened()&&!a.trigger(f.element,"open")){f.open()}};this.close=function(){var g=f.dropDown;if((g.$element.is(":animated")||g.isOpened())&&!a.trigger(f.element,"close")){f.close()}}},retrieveData:function(l){var k=[];var h=e(l).find("option");for(var f=0,g=h.length;f]*)("+l.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)",f?"ig":"i");h.filteredDataIndexes=j;h.selectedIndex=-1;h.dropDown.onItemCreate=function(n){if(l){n.html=n.html.replace(m,"$1")}};h.dropDown.dataBind(e.map(j,function(o,n){return k[o]}),h.encoded);var i=h.dropDown.$items;i.removeClass("t-state-selected");a.list.highlightFirstOnFilter(h,i)}}function c(f,h,k){if(!f||!h){return null}var l=k.length;k=k.toLowerCase();for(var g=0,j=f.length;g .t-dropdown-wrap > .t-input");if(!this.$wrapper.attr("tabIndex")){this.$wrapper.attr("tabIndex",0)}this.dropDown=new a.dropDown({attr:this.dropDownAttr,effects:this.effects,onClick:e.proxy(function(p){this.select(p.item);this.trigger.change();this.trigger.close();this.$wrapper.focus()},this)});this.dropDown.$element.css("direction",this.$wrapper.closest(".t-rtl").length?"rtl":"");var o=function(t){var p="class",r=h.attr(p);if((t.attrName&&t.attrName=="class")||(t.propertyName&&t.propertyName=="className")){var s=h.prev(".t-dropdown-wrap");var q=/\b(t-state-[\w]+)\b/.exec(s.attr(p));if(!(q&&q[0])){q=""}else{q=q[0]}if(r!=s.attr(p)){s.attr(p,r).addClass("t-dropdown-wrap "+q)}}};if(e.browser.msie){f.attachEvent("onpropertychange",o)}else{h.bind("DOMAttrModified",o)}h.closest("form").bind("reset",e.proxy(function(q){var p=this;window.setTimeout(function(){if(h.val()!=""){p.value(h.val())}else{p.text("");p.highlight(0);p.selectedIndex=0}},1)},this));this.fill=function(s){function r(u){var t,w=u.selectedValue||u.value();if(w){t=function(z){return w==(z.Value||z.Text)}}else{var v=u.dropDown.$items,x=u.index,y=v.filter(".t-state-selected").length;t=x!=-1&&x0?y-1:0}u.select(t)}var p=this.dropDown,q=this.loader;if(!p.$items&&!q.ajaxError){if(q.isAjax()){q.ajaxRequest(function(t){this.dataBind(t);r(this);a.trigger(this.element,"dataBound");this.trigger.change();if(s){s()}})}else{this.dataBind(this.data);r(this);if(s){s()}}}};this.enable=function(){var p=this.$wrapper.removeClass("t-state-disabled");if(!p.data("events")){this.$wrapper.removeClass("t-state-disabled").bind({keydown:e.proxy(k,this),keypress:e.proxy(l,this),click:e.proxy(function(s){var r=this.trigger;var q=this.dropDown;this.$wrapper.focus();if(q.isOpened()){r.close()}else{if(!q.$items){this.fill(r.open)}else{r.open()}}},this)})}h.removeAttr("disabled")};this.disable=function(){h.attr("disabled","disabled");this.$wrapper.addClass("t-state-disabled").unbind()};this.reload=function(){this.dropDown.$items=null;this.fill()};this.select=function(q){var p=this.highlight(q);if(p!=-1){this.selectedIndex=p;a.list.updateTextAndValue(this,this.data[p].Text,this.data[p].Value)}return p};this.text=function(p){if(p!==undefined){if(this.encoded){p=a.encode(p)}this.$text.html(p&&p.replace(b,"")?p:" ")}else{return this.$text.html()}};this.value=function(q){if(q!==undefined){var p=this.select(function(r){return q==r.Value});if(p==-1){p=this.select(function(r){return q==r.Text})}if(p!=-1){this.previousValue=this.$element.val()}}else{return this.$element.val()}};a.list.common.call(this);a.list.initialize.call(this);e(document.documentElement).bind("mousedown",e.proxy(function(r){var p=this.dropDown.$element;var q=p&&p.parent().length>0;if(e.contains(this.$wrapper[0],r.target)||(q&&e.contains(p.parent()[0],r.target))){return}this.trigger.change();this.trigger.close()},this));this[this.enabled?"enable":"disable"]();function m(){clearTimeout(this.timeout);this.timeout=setTimeout(e.proxy(function(){i=""},this),this.delay)}function k(w){var t=this.trigger;var q=this.dropDown;var u=w.keyCode||w.which;if(w.altKey&&(u==38||u==40)){var r=u==38?t.close:t.open;if(!q.$items){this.fill(r)}else{r()}return}if(u>34&&u<41){w.preventDefault();if(!q.$items){this.fill();return}var s=q.$items,v=e(s[this.selectedIndex]);var p=(u==35)?s.last():(u==36)?s.first():(u==37||u==38)?v.prev():(u==39||u==40)?v.next():[];if(p.length){var x=p[0];this.select(x);q.scrollTo(x);if(!q.isOpened()){t.change()}}}if(u==8){e.proxy(m,this)();w.preventDefault();i=i.slice(0,-1)}if(u==9||u==13||u==27){t.change();t.close()}}function l(t){var p=this.dropDown;var q=t.keyCode||t.charCode;if(q==0||e.inArray(q,a.list.keycodes)!=-1||t.ctrlKey||t.altKey||t.shiftKey){return}if(!p.$items){this.fill();return}var r=i;r+=String.fromCharCode(q);if(r){var s=c(this.data,p.$items,r);if(s){this.select(s);p.scrollTo(s)}i=r}e.proxy(m,this)()}};e.fn.tDropDownList=function(f){return a.create(this,{name:"tDropDownList",init:function(g,h){return new a.dropDownList(g,h)},options:f})};e.fn.tDropDownList.defaults={effects:a.fx.slide.defaults(),accessible:false,index:0,delay:500,enabled:true,encoded:true}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.menu.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.menu.min.js new file mode 100644 index 000000000..279dd455a --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.menu.min.js @@ -0,0 +1 @@ +(function(d){var a=d.telerik;a.scripts.push("telerik.menu.js");a.menu=function(e,f){this.element=e;this.nextItemZIndex=100;d.extend(this,f);d(".t-item:not(.t-state-disabled)",e).live("mouseenter",a.delegate(this,this.mouseenter),true).live("mouseleave",a.delegate(this,this.mouseleave),true).live("click",a.delegate(this,this.click));d(".t-item:not(.t-state-disabled) > .t-link",e).live("mouseenter",a.hover).live("mouseleave",a.leave);d(".t-item.t-state-disabled",e).live("click",function(){return false});d(document).click(a.delegate(this,this.documentClick));a.bind(this,{select:this.onSelect,open:this.onOpen,close:this.onClose,load:this.onLoad})};function b(e){var f=e.parent();return{direction:f.hasClass("t-menu")?f.hasClass("t-menu-vertical")?"right":"bottom":"right"}}function c(f,g){try{return d.contains(f,g)}catch(h){return false}}a.menu.prototype={toggle:function(f,e){d(f).each(function(){d(this).toggleClass("t-state-default",e).toggleClass("t-state-disabled",!e)})},enable:function(e){this.toggle(e,true)},disable:function(e){this.toggle(e,false)},open:function(f){var e=this;d(f).each(function(){var g=d(this);clearTimeout(g.data("timer"));g.data("timer",setTimeout(function(){var h=g.find(".t-group:first");if(h.length){a.fx.play(e.effects,h,b(g));g.css("z-index",e.nextItemZIndex++)}},100))})},close:function(f){var e=this;d(f).each(function(h,i){var g=d(i);clearTimeout(g.data("timer"));g.data("timer",setTimeout(function(){var j=g.find(".t-group:first");if(j.length){a.fx.rewind(e.effects,j,b(g),function(){g.css("zIndex","");if(d(e.element).find(".t-group:visible").length==0){e.nextItemZIndex=100}});j.find(".t-group").stop(false,true)}},100))})},mouseenter:function(i,h){var g=d(h);if(!this.openOnClick||this.clicked){if(!c(h,i.relatedTarget)){this.triggerEvent("open",g);this.open(g);var f=g.parent().closest(".t-item")[0];if(f&&!c(f,i.relatedTarget)){this.mouseenter(i,f)}}}if(this.openOnClick&&this.clicked){this.triggerEvent("close",g);g.siblings().each(d.proxy(function(j,e){this.close(d(e))},this))}},mouseleave:function(i,h){if(!this.openOnClick&&!c(h,i.relatedTarget)){var g=d(h);this.triggerEvent("close",g);this.close(g);var f=g.parent().closest(".t-item")[0];if(f&&!c(f,i.relatedTarget)){this.mouseleave(i,f)}}},click:function(h,g){h.stopPropagation();var f=d(g);if(f.hasClass("t-state-disabled")){h.preventDefault();return}a.trigger(this.element,"select",{item:f[0]});if(!f.parent().hasClass("t-menu")||!this.openOnClick){return}h.preventDefault();this.clicked=true;this.triggerEvent("open",f);this.open(f)},documentClick:function(g,f){if(d.contains(this.element,g.target)){return}if(this.clicked){this.clicked=false;d(this.element).children(".t-item").each(d.proxy(function(e,h){this.close(d(h))},this))}},hasChildren:function(e){return e.find(".t-group:first").length},triggerEvent:function(e,f){if(this.hasChildren(f)){a.trigger(this.element,e,{item:f[0]})}}};d.fn.tMenu=function(e){return a.create(this,{name:"tMenu",init:function(f,g){return new a.menu(f,g)},options:e})};d.fn.tMenu.defaults={orientation:"horizontal",effects:a.fx.slide.defaults(),openOnClick:false}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.panelbar.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.panelbar.min.js new file mode 100644 index 000000000..64f58d521 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.panelbar.min.js @@ -0,0 +1 @@ +(function(c){var a=c.telerik,b={single:0,multi:1};a.scripts.push("telerik.panelbar.js");c.extend(a,{panelbar:function(f,g){this.element=f;c.extend(this,g);var h=c(f),e=h.find("li.t-state-active > .t-content"),d=".t-item:not(.t-state-disabled) > .t-link";h.delegate(d,"click",c.proxy(this._click,this)).delegate(d,"mouseenter",a.hover).delegate(d,"mouseleave",a.leave).delegate(".t-item.t-state-disabled > .t-link","click",a.preventDefault);a.bind(this,{expand:this.onExpand,collapse:this.onCollapse,select:c.proxy(function(i){if(i.target==this.element&&this.onSelect){this.onSelect(i)}},this),error:this.onError,load:this.onLoad});if(this.contentUrls){h.find("> .t-item").each(c.proxy(function(i,j){c(j).find(".t-link").data("ContentUrl",this.contentUrls[i])},this))}if(e.length>0&&e.is(":empty")){this.expand(e.parent())}}});a.panelbar.prototype={expand:function(d){c(d).each(c.proxy(function(f,g){var e=c(g);if(!e.hasClass(".t-state-disabled")&&e.find("> .t-group, > .t-content").length>0){if(this.expandMode==b.single&&this._collapseAllExpanded(e)){return}this._toggleItem(e,false,null)}},this))},collapse:function(d){c(d).each(c.proxy(function(f,g){var e=c(g);if(!e.hasClass(".t-state-disabled")&&e.find("> .t-group, > .t-content").is(":visible")){this._toggleItem(e,true,null)}},this))},toggle:function(e,d){c(e).each(function(){c(this).toggleClass("t-state-default",d).toggleClass("t-state-disabled",!d)})},enable:function(d){this.toggle(d,true)},disable:function(d){this.toggle(d,false)},_click:function(m){var f=c(m.target),g=this.element;if(f.closest(".t-widget")[0]!=g){return}var d=f.closest(".t-link"),j=d.closest(".t-item");c(".t-state-selected",g).removeClass("t-state-selected");d.addClass("t-state-selected");if(a.trigger(g,"select",{item:j[0]})){m.preventDefault()}var l=j.find("> .t-content, > .t-group"),h=d.attr("href"),k=d.data("ContentUrl")||(h&&(h.charAt(h.length-1)=="#"||h.indexOf("#"+g.id+"-")!=-1));if(k||l.length>0){m.preventDefault()}else{return}if(this.expandMode==b.single){if(this._collapseAllExpanded(j)){return}}if(l.length!=0){var i=l.is(":visible");if(!a.trigger(g,!i?"expand":"collapse",{item:j[0]})){this._toggleItem(j,i,m)}}},_toggleItem:function(f,h,i){var j=f.find("> .t-group");if(j.length){this._toggleGroup(j,h);if(i!=null){i.preventDefault()}}else{var g=f.parent().children().index(f),d=f.find("> .t-content");if(d.length){if(i!=null){i.preventDefault()}if(!d.is(":empty")){this._toggleGroup(d,h)}else{this._ajaxRequest(f,d,h)}}}},_toggleGroup:function(d,e){if(d.is(":visible")!=e||d.data("animating")){return}d.data("animating",true).parent().toggleClass("t-state-default",e).toggleClass("t-state-active",!e).find("> .t-link > .t-icon").toggleClass("t-arrow-up",!e).toggleClass("t-panelbar-collapse",!e).toggleClass("t-arrow-down",e).toggleClass("t-panelbar-expand",e);a.fx[!e?"play":"rewind"](this.effects,d,null,function(){d.data("animating",false)})},_collapseAllExpanded:function(d){if(d.find("> .t-link").hasClass("t-header")){if(d.find("> .t-content, > .t-group").is(":visible")||d.find("> .t-content, > .t-group").length==0){return true}else{c(this.element).children().find("> .t-content, > .t-group").filter(function(){return c(this).is(":visible")}).each(c.proxy(function(f,e){this._toggleGroup(c(e),true)},this))}}},_ajaxRequest:function(f,d,h){var i=f.find(".t-panelbar-collapse, .t-panelbar-expand"),e=f.find(".t-link"),g=setTimeout(function(){i.addClass("t-loading")},100),j={};c.ajax({type:"GET",cache:false,url:e.data("ContentUrl")||e.attr("href"),dataType:"html",data:j,error:c.proxy(function(l,k){if(a.ajaxError(this.element,"error",l,k)){return}},this),complete:function(){clearTimeout(g);i.removeClass("t-loading")},success:c.proxy(function(k,l){d.html(k);this._toggleGroup(d,h)},this)})}};c.fn.tPanelBar=function(d){return a.create(this,{name:"tPanelBar",init:function(e,f){return new a.panelbar(e,f)},options:d})};c.fn.tPanelBar.defaults={effects:a.fx.property.defaults("height")}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.slider.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.slider.min.js new file mode 100644 index 000000000..71cffeba0 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.slider.min.js @@ -0,0 +1 @@ +(function(g){var l=g.telerik;l.scripts.push("telerik.slider.js");l.slider=function(n,o){var p=g(n);this.element=n;o.distance=o.maxValue-o.minValue;g.extend(this,o);o.position=this.orientation=="horizontal"?"left":"bottom";o.size=this.orientation=="horizontal"?"width":"height";o.orientation=this.orientation;k(n,o);this.wrapper=p.closest(".t-slider");this.trackDiv=this.wrapper.find(".t-slider-track");l.slider.setTrackDivWidth(this.wrapper,o);this.maxSelection=this.trackDiv[o.size]();var r=this.maxSelection/((this.maxValue-this.minValue)/this.smallStep);var q=l.slider.calculateItemsWidth(this.wrapper,o,Math.floor(this.distance/this.smallStep));if(o.tickPlacement!="none"&&r>=2){this.trackDiv.before(c(o));l.slider.setItemsWidth(this.wrapper,this.trackDiv,q,o);l.slider.setItemsTitle(this.wrapper,o);l.slider.setItemsLargeTick(this.wrapper,o)}l.slider.calculateSteps.call(this,q);var m={element:n,dragHandle:this.wrapper.find(".t-draghandle"),orientation:o.orientation,size:o.size,position:o.position,owner:this};this._setValueInRange(o.val);this[o.enabled?"enable":"disable"]();new l.slider.Selection(m);this._drag=new l.slider.Drag(m);this.keyMap={37:h(o.smallStep),40:h(o.smallStep),39:j(o.smallStep),38:j(o.smallStep),35:e(o.maxValue),36:e(o.minValue),33:j(o.largeStep),34:h(o.largeStep)};l.bind(this,{slide:this.onSlide,change:this.onChange,load:this.onLoad})};g.extend(l.slider,{setTrackDivWidth:function(o,p){var n=o.find(".t-slider-track");var m=parseFloat(n.css(p.position),10)*2;n[p.size]((o[p.size]()-2)-m)},setItemsWidth:function(u,q,p,n){var m=Math.floor(n.distance/n.smallStep),s=u.find(".t-tick"),r=0,t=q[n.size]();arr=g.extend([],p);if(n.orientation=="horizontal"){for(var o=0;o=0;m--){g(q[m]).attr("title",l.formatString(p.tooltip.format||"{0}",parseFloat(n.toFixed(3),10)));n+=p.smallStep}}},setItemsLargeTick:function(r,o){if((1000*o.largeStep)%(1000*o.smallStep)==0){var q=r.find(".t-tick"),p={},m=parseFloat((o.largeStep/o.smallStep).toFixed(3),10);if(o.orientation=="horizontal"){for(var n=0;n").html(p.attr("title")))}}else{for(var n=q.length-1;n>=0;n=parseFloat((n-m).toFixed(3),10)){p=g(q[n]);p.addClass("t-tick-large").html(g("").html(p.attr("title")));if(n!=0&&n!=q.length-1){p.css("line-height",p[o.size]()+"px")}}}}},calculateItemsWidth:function(t,o,n){var s=parseFloat(t.find(".t-slider-track").css(o.size))+1,p=s/o.distance;if((o.distance/o.smallStep)-Math.floor(o.distance/o.smallStep)>0){s-=((o.distance%o.smallStep)*p)}var m=s/n,r=new Array();for(var q=0;q=this._valuesArray.length-1||p<=0){this._setValueInRange(this.val+(r*this.smallStep))}else{this._setValueInRange(this._valuesArray[p+(r*1)])}},this);if(this.showButtons){var n=g.proxy(function(p,q){if(p.which==1){o(p,q);this.timeout=setTimeout(g.proxy(function(){this.timer=setInterval(function(){o(p,q)},60)},this),200)}},this);this.wrapper.find(".t-button").unbind("mousedown").unbind("mouseup").bind("mouseup",g.proxy(function(p){this._clearTimer()},this)).unbind("mouseover").bind("mouseover",function(p){g(p.currentTarget).addClass("t-state-hover")}).unbind("mouseout").bind("mouseout",g.proxy(function(p){g(p.currentTarget).removeClass("t-state-hover");this._clearTimer()},this)).eq(0).bind("mousedown",g.proxy(function(p){n(p,1)},this)).end().eq(1).bind("mousedown",g.proxy(function(p){n(p,-1)},this))}this.wrapper.find(".t-draghandle").bind({keydown:g.proxy(this._keydown,this)});this.enabled=true},disable:function(){this.wrapper.attr("disabled","disabled").removeClass("t-state-default").addClass("t-state-disabled");var m=l.preventDefault;this.wrapper.find(".t-button").unbind("mousedown").bind("mousedown",m).unbind("mouseup").bind("mouseup",m).unbind("mouseleave").bind("mouseleave",m).unbind("mouseover").bind("mouseover",m);this.wrapper.find(".t-tick").unbind("mousedown").end().find(".t-slider-track").unbind("mousedown");this.wrapper.find(".t-draghandle").unbind("keydown").bind("keydown",m);this.enabled=false},_update:function(m){var n=this.value()!=m;this.value(m);if(n){l.trigger(this.element,"change",{value:this.val})}},value:function(m){m=parseFloat(parseFloat(m,10).toFixed(3),10);if(isNaN(m)){return this.val}if(m>=this.minValue&&m<=this.maxValue){if(this.val!=m){g(this.element).attr("value",a(m));this.val=m;this.refresh()}}},refresh:function(){l.trigger(this.element,"t:moveSelection",{value:this.val})},_clearTimer:function(m){clearTimeout(this.timeout);clearInterval(this.timer)},_keydown:function(m){if(m.keyCode in this.keyMap){this._setValueInRange(this.keyMap[m.keyCode](this.val));m.preventDefault()}},_setValueInRange:function(m){m=parseFloat(parseFloat(m,10).toFixed(3),10);if(isNaN(m)){this._update(this.minValue);return}m=Math.max(m,this.minValue);m=Math.min(m,this.maxValue);this._update(m)}};l.slider.Selection=function(o){var p=g(o.element);function n(t){var v=o.owner,s=t-v.minValue,w=Math.ceil(s/v.smallStep),r=v._pixelStepsArray[w],q=v.trackDiv.find(".t-slider-selection"),u=parseInt(o.dragHandle[o.size]()/2,10)+1;q[o.size](r);o.dragHandle.css(o.position,r-u)}n(parseFloat(p.val(),10));var m=function(q){n(parseFloat(q.value,10))};p.bind({change:m,slide:m,"t:moveSelection":m})};l.slider.Drag=function(n){n.dragHandleSize=n.dragHandle[n.size]();g.extend(this,n);var m="";switch(n.type){case"firstHandle":m=".t-draghandle:first";break;case"lastHandle":m=".t-draghandle:last";break;default:m=".t-draghandle";break}this.draggable=new l.draggable({distance:0,owner:n.owner.wrapper[0],selector:m,scope:n.element.id,start:g.proxy(this._start,this),drag:g.proxy(this.drag,this),stop:g.proxy(this.stop,this)})};l.slider.Drag.prototype={start:function(m){this.draggable._startDrag(m.currentTarget,{x:m.pageX,y:m.pageY})},_start:function(p){if(!this.owner.enabled){return false}g(this.element).unbind("mouseover");this.val=parseFloat(g(this.element).val());this.dragableArea=l.slider.getDragableArea(this.owner.trackDiv,this.owner.maxSelection,this.orientation);this.step=Math.max(this.owner.smallStep*(this.owner.maxSelection/this.owner.distance),0);this.selectionStart=this.owner.selectionStart;this.selectionEnd=this.owner.selectionEnd;this.oldVal=this.val;this.format=this.owner.tooltip.format||"{0}";if(this.type){this.owner._setZIndex(this.type)}if(this.owner.tooltip.enabled){this.tooltipDiv=g("
        ").appendTo(document.body);if(this.type){var n=l.formatString(this.format,this.selectionStart),m=l.formatString(this.format,this.selectionEnd);this.tooltipDiv.html(n+" - "+m)}else{var o="t-callout-";if(this.orientation=="horizontal"){if(this.owner.tickPlacement=="topLeft"){o+="n"}else{o+="s"}}else{if(this.owner.tickPlacement=="topLeft"){o+="w"}else{o+="e"}}this.tooltipInnerDiv="
        ";this.tooltipDiv.html(l.formatString(this.owner.tooltip.format||"{0}",this.val)+this.tooltipInnerDiv)}this.moveTooltip(this.tooltipDiv)}},drag:function(o){if(this.orientation=="horizontal"){this.val=this.horizontalDrag(o)}else{this.val=this.verticalDrag(o)}if(this.oldVal!=this.val){this.oldVal=this.val;if(this.type){if(this.type=="firstHandle"){if(this.valthis.selectionStart){this.selectionEnd=this.val}else{this.selectionStart=this.selectionEnd=this.val}}l.trigger(this.element,"slide",{values:[this.selectionStart,this.selectionEnd]});if(this.owner.tooltip.enabled){var n=l.formatString(this.format,this.selectionStart),m=l.formatString(this.format,this.selectionEnd);this.tooltipDiv.html(n+" - "+m)}}else{l.trigger(this.element,"slide",{value:this.val});if(this.owner.tooltip.enabled){this.tooltipDiv.html(l.formatString(this.format,this.val)+this.tooltipInnerDiv)}}if(this.owner.tooltip.enabled){this.moveTooltip(this.tooltipDiv)}}},stop:function(m){if(m.keyCode==27){this.owner.refresh()}else{if(this.type){this.owner._update(this.selectionStart,this.selectionEnd)}else{this.owner._update(this.val)}}if(this.owner.tooltip.enabled){this.tooltipDiv.remove()}g(this.element).bind("mouseover");return false},moveTooltip:function(s){var r=0,p=0;if(this.type){var o=this.owner.wrapper.find(".t-draghandle"),n=o.eq(0).offset(),t=o.eq(1).offset();if(this.orientation=="horizontal"){r=t.top;p=n.left+((t.left-n.left)/2)}else{r=n.top+((t.top-n.top)/2);p=t.left}}else{var q=this.dragHandle.offset();r=q.top;p=q.left}var m=s[this.size]()/2;if(this.orientation=="horizontal"){p-=m;if(this.owner.tickPlacement!="topLeft"){r-=35}else{r+=33}}else{r-=m;if(this.owner.tickPlacement!="topLeft"){p-=s.width()+23}else{p+=31}}s.css({top:r,left:p})},horizontalDrag:function(m){var n=0;if(this.dragableArea.startPoint=this.dragableArea.endPoint){n=this.owner.maxValue}else{n=this.owner.minValue}}return n},verticalDrag:function(m){var n=0;if(this.dragableArea.startPoint>m.pageY&&m.pageY>this.dragableArea.endPoint){n=l.slider.getValueFromPosition(m.pageY,this.dragableArea,this.owner)}else{if(m.pageY<=this.dragableArea.endPoint){n=this.owner.maxValue}else{n=this.owner.minValue}}return n}};function b(n,m){var o=g(m),r=n.orientation=="horizontal"?" t-slider-horizontal":" t-slider-vertical",p;if(n.tickPlacement=="bottomRight"){p=" t-slider-bottomright"}else{if(n.tickPlacement=="topLeft"){p=" t-slider-topleft"}}var q=n.style?n.style:o.attr("style");return new l.stringBuilder().cat("
        ").cat("
        ").string()}function d(p,o){var n,m=p.orientation=="horizontal";if(o=="increase"){n=m?"t-arrow-next":"t-arrow-up"}else{n=m?"t-arrow-prev":"t-arrow-down"}return new l.stringBuilder().cat("").cat(p[o+"ButtonTitle"]).cat("").string()}function c(m){return new l.stringBuilder().cat("
          ").rep("
        •  
        • ",(Math.floor((m.distance/m.smallStep).toFixed(3),10)+1)).cat("
        ").string()}function f(m){var n=m.is("input")?1:2;return new l.stringBuilder().cat("
        ").cat("
        ").cat("Drag").catIf("Drag",n>1).cat("
        ").string()}function k(m,n){var o=g(m);o.val(n.val);o.wrap(b(n,m)).hide();if(n.showButtons){o.before(d(n,"increase")).before(d(n,"decrease"))}o.before(f(o))}g.fn.tSlider=function(m){return l.create(this,{name:"tSlider",init:function(n,o){return new l.slider(n,o)},options:m})};g.fn.tSlider.defaults={enabled:true,minValue:0,maxValue:10,val:0,smallStep:1,largeStep:5,showButtons:true,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:true,format:"{0}"}};l.rangeSlider=function(m,n){var o=g(m);this.element=m;n.distance=n.maxValue-n.minValue;g.extend(this,n);n.position=this.orientation=="horizontal"?"left":"bottom";n.size=this.orientation=="horizontal"?"width":"height";k(m,n);this.wrapper=o.closest(".t-slider");this.trackDiv=this.wrapper.find(".t-slider-track");l.slider.setTrackDivWidth(this.wrapper,n);this.maxSelection=this.trackDiv[n.size]();var q=this.maxSelection/((this.maxValue-this.minValue)/this.smallStep);var p=l.slider.calculateItemsWidth(this.wrapper,n,Math.floor(this.distance/this.smallStep));if(n.tickPlacement!="none"&&q>=2){this.trackDiv.before(c(n));l.slider.setItemsWidth(this.wrapper,this.trackDiv,p,n);l.slider.setItemsTitle(this.wrapper,n);l.slider.setItemsLargeTick(this.wrapper,n)}l.slider.calculateSteps.call(this,p);this._correctValues(this.selectionStart,this.selectionEnd);var s={element:m,type:"firstHandle",dragHandle:this.wrapper.find(".t-draghandle:first"),orientation:n.orientation,size:n.size,position:n.position,owner:this};this._firstHandleDrag=new l.slider.Drag(s);new l.rangeSlider.Selection(s);var r={element:m,type:"lastHandle",dragHandle:this.wrapper.find(".t-draghandle:last"),orientation:n.orientation,size:n.size,position:n.position,owner:this};this._lastHandleDrag=new l.slider.Drag(r);this[n.enabled?"enable":"disable"]();this.keyMap={37:h(n.smallStep),40:h(n.smallStep),39:j(n.smallStep),38:j(n.smallStep),35:e(n.maxValue),36:e(n.minValue),33:j(n.largeStep),34:h(n.largeStep)};l.bind(this,{slide:this.onSlide,change:this.onChange,load:this.onLoad})};l.rangeSlider.prototype={enable:function(){this.wrapper.removeAttr("disabled").removeClass("t-state-disabled").addClass("t-state-default");var m=g.proxy(function(q){if(g(q.target).hasClass("t-draghandle")){return}var o=this.orientation=="horizontal"?q.pageX:q.pageY,n=l.slider.getDragableArea(this.trackDiv,this.maxSelection,this.orientation),p=l.slider.getValueFromPosition(o,n,this);if(pthis.selectionEnd){this._setValueInRange(this.selectionStart,p);this._lastHandleDrag.start(q)}else{if(p-this.selectionStart<=this.selectionEnd-p){this._setValueInRange(p,this.selectionEnd);this._firstHandleDrag.start(q)}else{this._setValueInRange(this.selectionStart,p);this._lastHandleDrag.start(q)}}}},this);this.wrapper.find(".t-tick").bind("mousedown",m).end().find(".t-slider-track").bind("mousedown",m);this.wrapper.find(".t-draghandle").eq(0).bind({keydown:g.proxy(function(n){this._keydown(n,true)},this)}).end().eq(1).bind({keydown:g.proxy(function(n){this._keydown(n,false)},this)});this.enabled=true},disable:function(){this.wrapper.attr("disabled","disabled").removeClass("t-state-default").addClass("t-state-disabled");this.wrapper.find(".t-tick").unbind("mousedown").end().find(".t-slider-track").unbind("mousedown");this.wrapper.find(".t-draghandle").unbind("keydown").bind("keydown",l.preventDefault);this.enabled=false},_keydown:function(p,m){var o=this.selectionStart,n=this.selectionEnd;if(p.keyCode in this.keyMap){if(m){o=this.keyMap[p.keyCode](o);if(o>n){n=o}}else{n=this.keyMap[p.keyCode](n);if(n=this.minValue&&n<=this.maxValue&&m>=this.minValue&&m<=this.maxValue&&n<=m){if(this.selectionStart!=n||this.selectionEnd!=m){g(this.element).find("input").eq(0).attr("value",a(n)).end().eq(1).attr("value",a(m));this.selectionStart=n;this.selectionEnd=m;this.refresh()}}},refresh:function(){l.trigger(this.element,"t:moveSelection",{values:[this.selectionStart,this.selectionEnd]});if(this.selectionStart==this.maxValue&&this.slectionEnd==this.maxValue){this._setZIndex("firstHandle")}},_setValueInRange:function(m,n){m=Math.max(m,this.minValue);m=Math.min(m,this.maxValue);n=Math.max(n,this.minValue);n=Math.min(n,this.maxValue);if(this.selectionStart==this.maxValue&&this.slectionEnd==this.maxValue){this._setZIndex("firstHandle")}this._update(m,n)},_correctValues:function(n,m){if(n>=m){this._setValueInRange(m,n)}else{this._setValueInRange(n,m)}},_setZIndex:function(o){var q=this.wrapper.find(".t-draghandle"),m=q.eq(0),p=q.eq(1),n="z-index";if(o=="firstHandle"){m.css(n,"1");p.css(n,"")}else{m.css(n,"");p.css(n,"1")}}};l.rangeSlider.Selection=function(m){var q=m.owner;function r(t){var z=t[0]-q.minValue,x=t[1]-q.minValue,y=Math.ceil(z/q.smallStep),v=Math.ceil(x/q.smallStep),u=q._pixelStepsArray[y],w=q._pixelStepsArray[v],s=q.wrapper.find(".t-draghandle"),A=parseInt(s.eq(0)[m.size]()/2,10)+1;s.eq(0).css(m.position,u-A).end().eq(1).css(m.position,w-A);o(u,w)}function o(v,t){var u=0,w=0,s=q.trackDiv.find(".t-slider-selection");u=Math.abs(v-t);w=v");f.ajax(this.ajaxOptions(k,{url:j||l.contentUrl}))}},resize:function(){var v=this.$element,C=v.children(":not(.t-splitbar)"),k=this.orientation=="horizontal",q=v.children(".t-splitbar").length,z=k?"width":"height",D=v[z]();if(q===0){q=C.length-1;for(var l=0;l")}return this};t.cat("
        ").catIconIf("t-collapse-prev",n.collapsible&&!n.collapsed).catIconIf("t-expand-prev",n.collapsible&&n.collapsed).catIconIf("t-resize-handle",s).catIconIf("t-collapse-next",o.collapsible&&!o.collapsed).catIconIf("t-expand-next",o.collapsible&&o.collapsed).cat("
        ");j.after(t.string())}}D-=h*q;var y=0,x=0,p=f();C.css({position:"absolute",top:0})[z](function(){var E=f(this).data("pane"),F;if(E.collapsed){F=0}else{if(c(E.size)){p=p.add(this);return}else{F=parseInt(E.size,10);if(b(E.size)){F=Math.floor(F*D/100)}}}x++;y+=F;return F});D-=y;var u=p.length,B=Math.floor(D/u);p.slice(0,u-1).css(z,B).end().eq(u-1).css(z,D-(u-1)*B);var w=0,r=k?"height":"width",m=k?"left":"top",A=k?"offsetWidth":"offsetHeight";v.children().css(r,v[r]()).each(function(E,F){F.style[m]=Math.floor(w)+"px";w+=F[A]})}};i.splitter.PaneResizing=function(j){this.owner=j;new i.draggable({distance:0,owner:j.element,selector:".t-splitbar-draggable-horizontal, .t-splitbar-draggable-vertical",scope:j.element.id,start:f.proxy(this.start,this),drag:f.proxy(this.drag,this),stop:f.proxy(this.stop,this)})};i.splitter.PaneResizing.prototype={start:function(x){var l=x.$draggable,o=l.prev(),p=l.next(),m=o.data("pane"),q=p.data("pane"),u=this.owner.orientation==="horizontal",y=u?"width":"height",z=u?"offsetWidth":"offsetHeight",s=u?"height":"width";this.positioningProperty=u?"left":"top";this.mousePositioningProperty=u?"pageX":"pageY";this.previousPane=o;this.nextPane=p;this.initialSplitBarPosition=parseInt(l[0].style[this.positioningProperty]);this.initialMousePosition=x[this.mousePositioningProperty];this.ghostSplitBar=f("
        ").css(s,x.$draggable[s]()).css(this.positioningProperty,this.initialSplitBarPosition).appendTo(this.owner.element);var A=parseInt(o[0].style[this.positioningProperty]),n=parseInt(p[0].style[this.positioningProperty])+p[0][z]-h,w=this.owner.$element.css(y),t=function(C){var B=parseInt(C,10);return(g(C)?B:(w*B)/100)||0},v=t(m.minSize),k=t(m.maxSize)||n-A,j=t(q.minSize),r=t(q.maxSize)||n-A;this.maxSize=Math.min(n-j,A+k);this.minSize=Math.max(A+v,n-r);f(document.body).css("cursor",l.css("cursor"))},drag:function(k){var j=Math.min(this.maxSize,Math.max(this.minSize,this.initialSplitBarPosition+(k[this.mousePositioningProperty]-this.initialMousePosition)));this.ghostSplitBar.toggleClass("t-restricted-size-"+this.owner.orientation,j==this.maxSize||j==this.minSize)[0].style[this.positioningProperty]=j+"px"},stop:function(r){if(r.keyCode!==27){var n=parseInt(this.ghostSplitBar[0].style[this.positioningProperty]),j=this.owner.orientation==="horizontal",p=j?"width":"height",o=j?"offsetWidth":"offsetHeight",k=this.previousPane.data("pane"),q=this.nextPane.data("pane"),l=n-parseInt(this.previousPane[0].style[this.positioningProperty]),t=parseInt(this.nextPane[0].style[this.positioningProperty])+this.nextPane[0][o]-n-h,m=this.owner.$element[p]();m-=h*this.owner.$element.children(".t-splitbar").length;var s=this.owner.$element.children(".t-pane").filter(function(){return c(f(this).data("pane").size)}).length;if(!c(k.size)||s>1){if(c(k.size)){s--}k.size=l+"px"}if(!c(q.size)||s>1){q.size=t+"px"}}this.ghostSplitBar.remove();if(r.keyCode!==27){this.owner.$element.trigger("resize")}f(document.body).css("cursor","");return false}};f.fn.tSplitter=function(j){return i.create(this,{name:"tSplitter",init:function(k,l){return new i.splitter(k,l)},options:j})};f.fn.tSplitter.defaults={orientation:"horizontal"}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.tabstrip.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.tabstrip.min.js new file mode 100644 index 000000000..31253e38e --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.tabstrip.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.tabstrip.js");b.tabstrip=function(c,d){this.element=c;var f=a(c);this.$contentElements=f.find("> .t-content");a.extend(this,d);if(this.contentUrls){f.find(".t-tabstrip-items > .t-item").each(a.proxy(function(i,j){a(j).find(".t-link").data("ContentUrl",this.contentUrls[i])},this))}var h=".t-tabstrip-items > .t-item:not(.t-state-disabled)";f.delegate(h,"mouseenter",b.hover).delegate(h,"mouseleave",b.leave).delegate(h,d.activateEvent,b.delegate(this,this._click)).delegate(".t-tabstrip-items > .t-state-disabled .t-link","click",b.preventDefault);b.bind(this,{select:a.proxy(function(i){if(i.target==this.element&&this.onSelect){this.onSelect(i)}},this),contentLoad:this.onContentLoad,error:this.onError,load:this.onLoad});var g=f.find("li.t-state-active"),e=a(this.getContentElement(g.parent().children().index(g)));if(e.length>0&&e[0].childNodes.length==0){this.activateTab(g.eq(0))}};a.extend(b.tabstrip.prototype,{select:function(c){a(c).each(a.proxy(function(e,f){var d=a(f);if(d.is(".t-state-disabled,.t-state-active")){return}this.activateTab(d)},this))},enable:function(c){a(c).addClass("t-state-default").removeClass("t-state-disabled")},disable:function(c){a(c).removeClass("t-state-default").removeClass("t-state-active").addClass("t-state-disabled")},reload:function(d){var c=this;a(d).each(function(){var f=a(this),e=f.find(".t-link").data("ContentUrl");if(e){c.ajaxRequest(f,a(c.getContentElement(f.index())),null,e)}})},_click:function(j,f){var h=a(f),c=h.find(".t-link"),d=c.attr("href"),g=a(this.getContentElement(h.index()));if(h.is(".t-state-disabled,.t-state-active")){j.preventDefault();return}if(b.trigger(this.element,"select",{item:h[0],contentElement:g[0]})){j.preventDefault()}else{var i=c.data("ContentUrl")||(d&&(d.charAt(d.length-1)=="#"||d.indexOf("#"+this.element.id+"-")!=-1));if(!d||i||(g.length>0&&g[0].childNodes.length==0)){j.preventDefault()}else{return}if(this.activateTab(h)){j.preventDefault()}}},activateTab:function(d){var f=d.parent().children().removeClass("t-state-active").addClass("t-state-default").index(d);d.removeClass("t-state-default").addClass("t-state-active");var g=this.$contentElements;if(g.length==0){return false}var j=g.filter(".t-state-active");var e=a(this.getContentElement(f));var h=this;if(e.length==0){j.removeClass("t-state-active");b.fx.rewind(h.effects,j,{});return false}var c=e.is(":empty"),i=function(){e.addClass("t-state-active");b.fx.play(h.effects,e,{})};j.removeClass("t-state-active").stop(false,true);b.fx.rewind(h.effects,j,{},function(){if(d.hasClass("t-state-active")){if(!c){i()}else{h.ajaxRequest(d,e,function(){if(d.hasClass("t-state-active")){i()}})}}});return true},getSelectedTabIndex:function(){return a(this.element).find("li.t-state-active").index()},getContentElement:function(g){if(isNaN(g-0)){return}var c=this.$contentElements,e=new RegExp("-"+(g+1)+"$");for(var d=0,f=c.length;d').prependTo(d)},100);a.ajax({type:"GET",cache:false,url:g||d.data("ContentUrl")||d.attr("href"),dataType:"html",data:c,error:a.proxy(function(l,k){if(b.ajaxError(this.element,"error",l,k)){return}},this),complete:function(){clearTimeout(h);if(i!==null){i.remove()}},success:a.proxy(function(k,l){e.html(k);if(j){j.call(this,e)}b.trigger(this.element,"contentLoad",{item:f[0],contentElement:e[0]})},this)})}});a.fn.tTabStrip=function(c){return b.create(this,{name:"tTabStrip",init:function(d,e){return new b.tabstrip(d,e)},options:c})};a.fn.tTabStrip.defaults={activateEvent:"click",effects:b.fx.toggle.defaults()}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.textbox.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.textbox.min.js new file mode 100644 index 000000000..ead65903f --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.textbox.min.js @@ -0,0 +1 @@ +(function(d){var f=d.telerik,a=[8,9,37,38,39,40,46,35,36,44],b=["font-family","font-size","font-stretch","font-style","font-weight","line-height","color","text-align","text-decoration","text-transform"];f.scripts.push("telerik.textbox.js");function e(k){var n={};for(var j=0,m=b.length;j
        '));if(this.showIncreaseButton){m.cat('Increment')}if(this.showDecreaseButton){m.cat('Decrement')}if(m.buffer.length>0){d(m.string()).insertAfter(j)}}this.$wrapper=j.closest(".t-numerictextbox").find(".t-arrow-up, .t-arrow-down").bind({click:f.preventDefault,dragstart:f.preventDefault}).end().bind({focusin:d.proxy(this._focus,this),focusout:d.proxy(this._blur,this)});this.enabled=!j.is("[disabled]");m.buffer=[];m.cat("[ |").cat(this.groupSeparator).catIf("|"+this.symbol,this.symbol).cat("]");this.replaceRegExp=new RegExp(m.string(),"g");var k=j.attr("value"),l=j.attr("class").replace("t-input","");m.buffer=[];m.cat('
        ').cat(k||(this.enabled?this.text:"")).cat("
        ");this.$text=d(m.string()).insertBefore(j).css(e(j)).click(function(n){h.focus()});this._blur();this[this.enabled?"enable":"disable"]();this.numFormat=this.numFormat===undefined?this.type.charAt(0):this.numFormat;this.step=this.parse(this.step);this.val=this.parse(this.val);this.minValue=this.parse(this.minValue);this.maxValue=this.parse(this.maxValue);this.decimals={"190":".","188":","};this.specialDecimals={"110":this.separator};this.value(k||this.val);f.bind(this,{load:this.onLoad,valueChange:this.onChange})};f.textbox.prototype={_paste:function(h){setTimeout(d.proxy(function(){var i=h.target.value;if(i=="-"){return true}var j=this.parse(i);if(j||j==0){this._update(j)}},this))},_keydown:function(w){setTimeout(d.proxy(function(){u.toggleClass("t-state-error",!this.inRange(this.parse(u.val()),this.minValue,this.maxValue))},this));var n=w.keyCode,u=this.$element,k=u[0],r=u.val(),t=this.separator,o=g(k),s=o.start,q=o.end,v=r?r.indexOf(t):-1,x=v===-1;if(!x&&s!==-1){if(v>=s&&v0&&x){return true}else{w.preventDefault()}}if(n==8||n==46||n==13){setTimeout(d.proxy(function(){this._update(this.parse(u.val()))},this));return true}if(n==38||n==40){var p=n==38?1:-1;this._modify(p*this.step);return true}if(n==222){w.preventDefault()}},_keypress:function(k){var j=k.target,h=k.keyCode||k.which;if(h==0||d.inArray(h,a)!=-1||k.ctrlKey||(k.shiftKey&&h==45)){return true}var i;if(this.minValue!==null&&this.minValue<0){if(g(j).start===0||(f.caretPos(j)===0&&j.value.indexOf("-")===-1)){i=true}}if((i&&String.fromCharCode(h)=="-")||this.inRange(h,48,57)){return true}k.preventDefault()},_focus:function(){if(this.enabled){this._showTextBoxValue();this.$text.hide();var h=this.$element[0];setTimeout(function(){h.focus();if(d.browser.msie){h.select()}else{h.selectionStart=0;h.selectionEnd=h.value.length}},0)}},_blur:function(){this.$element.removeClass("t-state-error");if(this.enabled){this.$text.show();this._hideTextBoxValue()}var h=this.minValue,j=this.maxValue,i=this.parse(this.$element.val());if(i!=null){if(h!=null&&ij){i=j}}i=parseFloat(i.toFixed(this.digits))}this._update(i)},_clearTimer:function(h){clearTimeout(this.timeout);clearInterval(this.timer);clearInterval(this.acceleration)},_stepper:function(j,h){if(j.which==1){var i=this.step;this._modify(h*i);this.timeout=setTimeout(d.proxy(function(){this.timer=setInterval(d.proxy(function(){this._modify(h*i)},this),80);this.acceleration=setInterval(function(){i+=1},1000)},this),200)}},_modify:function(k){var h=this.parse(this.element.value),i=this.minValue,j=this.maxValue;h=h?h+k:k;if(i!==null&&hj){h=j}}this._update(parseFloat(h.toFixed(this.digits)))},_update:function(h){var i=this.val;this._value(h);if(i!=h){if(f.trigger(this.element,"valueChange",{oldValue:i,newValue:h})){this._value(i)}}},_value:function(h){var j=(typeof h==="number")?h:this.parse(h),k=this.enabled?this.text:"",i=j===null;if(j!=null){j=parseFloat(j.toFixed(this.digits))}this.val=j;this.$element.val(i?"":this.formatEdit(j));this.$text.html(i?k:this.format(j));this.$text.toggleClass("t-state-empty",i)},_hideTextBoxValue:function(){var h=this.$element;if(this.enabled){setTimeout(function(){h.css("color",h.css("background-color"))});if(d.browser.opera){h.css({color:h.css("background-color"),"text-indent":"-4444px"})}}else{if(!d.browser.msie){h.css({color:h.css("background-color"),"text-indent":"-4444px"})}else{h.css({color:h.css("background-color"),"letter-spacing":"1000px"})}}},_showTextBoxValue:function(){var h=this.$element,i=this.$text;if(this.enabled){setTimeout(function(){h.css({color:i.css("color"),"text-indent":"","letter-spacing":""})})}else{if(!d.browser.msie){h.css({color:i.css("background-color"),"text-indent":"0px"})}else{h.css({color:i.css("background-color"),"letter-spacing":"0px"})}}},_onParentFormReset:function(){var h=this;window.setTimeout(function(){h._value(h.$element.val())},1)},enable:function(){var h=this.$wrapper.find(".t-arrow-up, .t-arrow-down"),i=d.proxy(this._clearTimer,this);this.enabled=true;this.$element.removeAttr("disabled");if(!this.val&&this.val!=0){this.$text.addClass("t-state-empty").html(this.text)}else{this._hideTextBoxValue()}this.$wrapper.removeClass("t-state-disabled");h.unbind("mouseup").unbind("mouseout").unbind("dblclick").bind({mouseup:i,mouseout:i,dblclick:i});var j="mousedown";h.eq(0).unbind(j).bind(j,d.proxy(function(k){this._stepper(k,1)},this));h.eq(1).unbind(j).bind(j,d.proxy(function(k){this._stepper(k,-1)},this))},disable:function(){this.enabled=false;this.$wrapper.addClass("t-state-disabled").find(".t-icon").unbind("mousedown").bind("mousedown",f.preventDefault);this.$element.attr("disabled","disabled");if(!this.val&&this.val!=0){this.$text.html("")}else{this._hideTextBoxValue()}},value:function(i){if(i===undefined){return this.parse(this.element.value)}var h=(typeof i==="number")?i:this.parse(i);if(!this.inRange(h,this.minValue,this.maxValue)){h=null}this._value(h)},formatEdit:function(i){var h=this.separator;if(i&&h!="."){i=i.toString().replace(".",h)}return i},format:function(h){return f.formatNumber(h,this.numFormat,this.digits,this.separator,this.groupSeparator,this.groupSize,this.positive,this.negative,this.symbol,true)},inRange:function(j,h,i){return j===null||((h!==null?j>=h:true)&&(i!==null?j<=i:true))},parse:function(h){var i=null,j=this.separator;if(h||h=="0"){if(typeof h==typeof 1){return h}h=h.replace(this.replaceRegExp,"");if(j&&j!="."){h=h.replace(j,".")}var l=f.patterns[this.type].negative[this.negative].replace(/(\(|\))/g,"\\$1").replace("*","").replace("n","([\\d|\\.]*)"),k=new RegExp(l);if(k.test(h)){i=-parseFloat(k.exec(h)[1])}else{i=parseFloat(h)}}return isNaN(i)?null:i}};d.fn.tTextBox=function(j){var i="numeric";if(j&&j.type){i=j.type}var h=d.fn.tTextBox.defaults[i];h.digits=f.cultureInfo[i+"decimaldigits"];h.separator=f.cultureInfo[i+"decimalseparator"];h.groupSeparator=f.cultureInfo[i+"groupseparator"];h.groupSize=f.cultureInfo[i+"groupsize"];h.positive=f.cultureInfo[i+"positive"];h.negative=f.cultureInfo[i+"negative"];h.symbol=f.cultureInfo[i+"symbol"];j=d.extend({},h,j);j.type=i;return this.each(function(){var k=d(this);j=d.meta?d.extend({},j,k.data()):j;if(!k.data("tTextBox")){k.data("tTextBox",new f.textbox(this,j));f.trigger(this,"load")}})};var c={val:null,text:"",step:1,inputAttributes:"",increaseButtonTitle:"Increase value",decreaseButtonTitle:"Decrease value",showIncreaseButton:true,showDecreaseButton:true};d.fn.tTextBox.defaults={numeric:d.extend(c,{minValue:-100,maxValue:100}),currency:d.extend(c,{minValue:0,maxValue:1000}),percent:d.extend(c,{minValue:0,maxValue:100})};function g(i){var k=-1,h=-1;if(document.selection){var l=i.document.selection.createRange().text,m=l.length;if(m>0){k=i.value.indexOf(l);h=m}}else{if(i.selectionStart!==undefined){var j=i.selectionStart,n=i.selectionEnd;if(j!=n){k=j;h=n}}}return{start:k,end:h}}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.timepicker.min.js b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.timepicker.min.js new file mode 100644 index 000000000..041512c06 --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/Scripts/2011.2.712/telerik.timepicker.min.js @@ -0,0 +1 @@ +(function(a){var b=a.telerik;b.scripts.push("telerik.timepicker.js");b.timeView=function(c){a.extend(this,c);var d=this.dropDown=new b.dropDown({attr:this.dropDownAttr,effects:this.effects,onClick:function(f){var g=f.item;c.onChange(g.innerText||g.textContent)}});d.$element.addClass("t-time-popup").css("direction",this.isRtl?"rtl":"")};b.timeView.prototype={_ensureItems:function(){if(!this.dropDown.$items){this.bind()}},open:function(c){this._ensureItems();this.dropDown.open(c)},close:function(){this.dropDown.close()},bind:function(){var j=b.timeView.getTimeMilliseconds;var g=[];var c=this.format;var n=this.interval;var p=new b.datetime(this.minValue);var d=j(p);var f=j(this.maxValue);var l=n*b.datetime.msPerMinute;var k=parseInt(b.datetime.msPerDay/(n*b.datetime.msPerMinute));if(d!=f){var o=di?i+d:i;h=e>h?h+d:h;return e-h==0||i>=e&&i<=h},getTimeMilliseconds:function(c){c=c.value?c:new b.datetime(c);return((c.hours()*60)+c.minutes())*b.datetime.msPerMinute+c.seconds()*1000+c.milliseconds()}});b.timepicker=function(d,e){a.extend(this,e);if(d.nodeName.toLowerCase()!=="input"&&d.type.toLowerCase()!=="text"){throw"Target element is not a INPUT"}this.element=d;var f=this.$element=a(d).addClass("t-input").attr("autocomplete","off").bind({keydown:a.proxy(this._keydown,this),focus:a.proxy(function(j){if(this.openOnFocus){this._open()}this.$element.removeClass("t-state-error")},this)});if(!f.parent().hasClass("t-picker-wrap")){f.wrap('
        ');if(e.showButton){var i=new b.stringBuilder(),g=e.buttonTitle;a(i.cat('').cat('').string()).insertAfter(f)}}this.timeView=new b.timeView({effects:this.effects,dropDownAttr:this.dropDownAttr,format:this.format,interval:this.interval,isRtl:f.closest(".t-rtl").length,minValue:this.minValue,maxValue:this.maxValue,onNavigateWithOpenPopup:a.proxy(function(j){this.$element.val(j)},this),onChange:a.proxy(function(j){if(j!=this.inputValue){this._update(j)}this._close()},this)});this.inputValue=f.val();var c=this.selectedValue||this.inputValue;if(c){this._value(this.parse(c))}var h=this.enabled?a.proxy(this._togglePopup,this):b.preventDefault;this.$wrapper=f.closest(".t-timepicker").find(".t-icon").bind("click",h).end();a(document.documentElement).bind("mousedown",a.proxy(function(m){var l=this.$element.val();if(l!=this.inputValue){this._update(l)}var j=this.timeView.dropDown.$element;var k=j&&j.parent().length>0;if(!k||a.contains(this.$wrapper[0],m.target)||a.contains(j.parent()[0],m.target)){return}this._close()},this));b.bind(this,{open:this.onOpen,close:this.onClose,valueChange:this.onChange,load:this.onLoad})};b.timepicker.prototype={_close:function(){var c=this.timeView.dropDown;if(!c.$element.is(":animated")&&c.isOpened()){this._trigger("close")}},_open:function(){if(!this.timeView.isOpened()){this._trigger("open")}},_trigger:function(c){if(!b.trigger(this.element,c)){this[c]()}},_togglePopup:function(){if(this.timeView.isOpened()){this._close()}else{this.element.focus();this._open()}},_update:function(f){var k=this.minValue,c=this.maxValue,f=this.parse(f),d=this.selectedValue;if(f!=null&&!b.timeView.isInRange(f,k,c)){var e=b.timeView.getTimeMilliseconds,i=e(f),j=Math.abs(e(k)-i),l=Math.abs(e(c)-i);f=new Date(j0)})}b.treeview=function(e,f){this.element=e;var g=c(e);c.extend(this,f);var d=".t-in:not(.t-state-selected,.t-state-disabled)";c(".t-in.t-state-selected",e).live("mouseenter",b.preventDefault);g.delegate(d,"mouseenter",b.hover).delegate(d,"mouseleave",b.leave).delegate(d,"click",b.delegate(this,this.nodeSelect)).delegate("div:not(.t-state-disabled) .t-in","dblclick",b.delegate(this,this.nodeClick)).delegate(":checkbox","click",b.delegate(this,this.checkboxClick)).delegate(".t-plus, .t-minus","click",b.delegate(this,this.nodeClick));if(this.isAjax()){a(g)}if(this.dragAndDrop){b.bind(this,{nodeDragStart:this.onNodeDragStart,nodeDragging:this.onNodeDragging,nodeDragCancelled:this.onNodeDragCancelled,nodeDrop:this.onNodeDrop,nodeDropped:this.onNodeDropped});(function(j){var h=c("
        ");var m;function i(n){if(b.trigger(j.element,"nodeDragStart",{item:n.$draggable.closest(".t-item")[0]})){return false}h.appendTo(j.element)}function k(v){var q;m=c(v.target);if(j.dragAndDrop.dropTargets&&c(v.target).closest(j.dragAndDrop.dropTargets).length>0){q="t-add"}else{if(!c.contains(j.element,v.target)){q="t-denied"}else{if(c.contains(v.$draggable.closest(".t-item")[0],v.target)){q="t-denied"}else{q="t-insert-middle";h.css("visibility","visible");var p=m.closest(".t-top,.t-mid,.t-bot");if(p.length>0){var u=p.outerHeight();var s=p.offset().top;var x=m.closest(".t-in");var w=u/(x.length>0?4:2);var t=v.pageY<(s+w);var n=(s+u-w)0&&!t&&!n;x.toggleClass("t-state-hover",o);h.css("visibility",o?"hidden":"visible");if(o){q="t-add"}else{var r=p.position();r.top+=t?0:u;h.css(r)[t?"prependTo":"appendTo"](m.closest(".t-item").find("> div:first"));if(t&&p.hasClass("t-top")){q="t-insert-top"}if(n&&p.hasClass("t-bot")){q="t-insert-bottom"}}}}}}b.trigger(j.element,"nodeDragging",{pageY:v.pageY,pageX:v.pageX,dropTarget:v.target,status:q.substring(2),setStatusClass:function(y){q=y},item:v.$draggable.closest(".t-item")[0]});if(q.indexOf("t-insert")!=0){h.css("visibility","hidden")}b.dragCueStatus(v.$cue,q)}function l(u){if(u.keyCode==27){b.trigger(j.element,"nodeDragCancelled",{item:u.$draggable.closest(".t-item")[0]})}else{var q="over",o;if(h.css("visibility")=="visible"){q=h.prevAll(".t-in").length>0?"after":"before";o=h.closest(".t-item").find("> div")}else{if(m){o=m.closest(".t-top,.t-mid,.t-bot")}}var v=!u.$cue.find(".t-drag-status").hasClass("t-denied"),p=b.trigger(j.element,"nodeDrop",{isValid:v,dropTarget:u.target,destinationItem:o.parent()[0],dropPosition:q,item:u.$draggable.closest(".t-item")[0]});if(!v){return false}if(p||!c.contains(j.element,u.target)){return !p}var s=u.$draggable.closest(".t-top,.t-mid,.t-bot");var t=s.parent();var x=s.closest(".t-group");if(c.contains(t[0],u.target)){return false}if(t.hasClass("t-last")){t.removeClass("t-last").prev().addClass("t-last").find("> div").removeClass("t-top t-mid").addClass("t-bot")}if(h.css("visibility")=="visible"){o.parent()[q](t)}else{var n=o.next(".t-group");if(n.length===0){n=c('
          ').appendTo(o.parent());if(!j.isAjax()){o.prepend('')}else{n.hide();j.nodeToggle(null,o.parent(),true);n.show()}}n.append(t);if(o.find("> .t-icon").hasClass("t-plus")){j.nodeToggle(null,o.parent(),true)}}var r=t.parents(".t-group").length;function w(z){var A=z.prev().length===0;var y=z.next().length===0;z.toggleClass("t-first",A&&r===1).toggleClass("t-last",y).find("> div").toggleClass("t-top",A&&!y).toggleClass("t-mid",!A&&!y).toggleClass("t-bot",y)}w(t);w(t.prev());w(t.next());if(x.children().length===0){x.prev("div").find(".t-plus,.t-minus").remove();x.remove()}b.trigger(j.element,"nodeDropped",{destinationItem:o.closest(".t-item")[0],dropPosition:q,item:s.parent(".t-item")[0]});return false}}new b.draggable({owner:j.element,selector:"div:not(.t-state-disabled) .t-in",scope:j.element.id,cue:function(n){return b.dragCue(n.$draggable.text())},start:i,drag:k,stop:l,destroy:function(n){h.remove();n.$cue.remove()}})})(this)}b.bind(this,{expand:this.onExpand,collapse:this.onCollapse,select:c.proxy(function(h){if(h.target==this.element&&this.onSelect){this.onSelect(h)}},this),checked:this.onChecked,error:this.onError,load:this.onLoad,dataBinding:this.onDataBinding,dataBound:this.onDataBound})};b.treeview.prototype={expand:function(d){c(d,this.element).each(c.proxy(function(g,h){var f=c(h);var e=f.find("> .t-group, > .t-content");if((e.length>0&&!e.is(":visible"))||this.isAjax()){this.nodeToggle(null,f)}},this))},collapse:function(d){c(d,this.element).each(c.proxy(function(g,h){var f=c(h),e=f.find("> .t-group, > .t-content");if(e.length>0&&e.is(":visible")){this.nodeToggle(null,f)}},this))},enable:function(d){this.toggle(d,true)},disable:function(d){this.toggle(d,false)},toggle:function(e,d){c(e,this.element).each(c.proxy(function(g,h){var f=c(h),i=!f.find("> .t-group, > .t-content").is(":visible");if(!d){this.collapse(f);i=true}f.find("> div > .t-in").toggleClass("t-state-default",d).toggleClass("t-state-disabled",!d).end().find("> div > .t-checkbox > :checkbox").attr("disabled",d?"":"disabled").end().find("> div > .t-icon").toggleClass("t-plus",i&&d).toggleClass("t-plus-disabled",i&&!d).toggleClass("t-minus",!i&&d).toggleClass("t-minus-disabled",!i&&!d)},this))},reload:function(e){var d=this;c(e).each(function(){var f=c(this);f.find(".t-group").remove();d.ajaxRequest(f)})},shouldNavigate:function(e){var d=c(e).closest(".t-item").find("> .t-content, > .t-group");var f=c(e).attr("href");return !((f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+this.element.id+"-")!=-1))||(d.length>0&&d.children().length==0))},nodeSelect:function(g,f){if(!this.shouldNavigate(f)){g.preventDefault()}var d=c(f);if(!d.hasClass(".t-state-selected")&&!b.trigger(this.element,"select",{item:d.closest(".t-item")[0]})){c(".t-in",this.element).removeClass("t-state-hover t-state-selected");d.addClass("t-state-selected")}},nodeToggle:function(i,f,h){if(f.find(".t-minus").length==0&&f.find(".t-plus").length==0){return}if(i!=null){i.preventDefault()}if(f.data("animating")||f.find("> div > .t-in").hasClass("t-state-disabled")){return}f.data("animating",!h);var d=f.find(">.t-group, >.t-content, >.t-animation-container>.t-group, >.t-animation-container>.t-content"),g=!d.is(":visible");if(d.children().length>0&&f.data("loaded")!==false&&!b.trigger(this.element,g?"expand":"collapse",{item:f[0]})){f.find("> div > .t-icon").toggleClass("t-minus",g).toggleClass("t-plus",!g);if(!h){b.fx[g?"play":"rewind"](this.effects,d,{direction:"bottom"},function(){f.data("animating",false)})}else{d[g?"show":"hide"]()}}else{if(g&&this.isAjax()&&(d.length==0||f.data("loaded")===false)){if(!b.trigger(this.element,g?"expand":"collapse",{item:f[0]})){this.ajaxRequest(f)}}}},nodeClick:function(h,g){var f=c(g),d=f.closest(".t-item");if(f.hasClass("t-plus-disabled")||f.hasClass("t-minus-disabled")){return}this.nodeToggle(h,d)},isAjax:function(){return this.ajax||this.ws||this.onDataBinding},url:function(d){return(this.ajax||this.ws)[d]},ajaxOptions:function(e,h){var f={type:"POST",dataType:"text",error:c.proxy(function(j,i){if(b.ajaxError(this.element,"error",j,i)){return}if(i=="parsererror"){alert("Error! The requested URL did not return JSON.")}},this),success:c.proxy(function(i){i=eval("("+i+")");i=i.d||i;this.dataBind(e,i)},this)};f=c.extend(f,h);var g=this.ws?f.data.node={}:f.data;if(e.hasClass("t-item")){g[this.queryString.value]=this.getItemValue(e);g[this.queryString.text]=this.getItemText(e);var d=e.find(".t-checkbox:first :checkbox");if(d.length){g[this.queryString.checked]=d.is(":checked")}}if(this.ws){f.data=b.toJson(f.data);f.contentType="application/json; charset=utf-8"}return f},ajaxRequest:function(f){f=f||c(this.element);var d={item:f[0]};if(b.trigger(this.element,"dataBinding",d)||(!this.ajax&&!this.ws)){return}f.data("loadingIconTimeout",setTimeout(function(){f.find("> div > .t-icon").addClass("t-loading")},100));c.ajax(this.ajaxOptions(f,{data:c.extend({},d.data),url:this.url("selectUrl")}))},bindTo:function(d){this.dataBind(this.element,d)},dataBind:function(d,h){d=c(d);if(h.length==0){c(".t-icon",d).hide();return}var g=new b.stringBuilder(),e=d.find("> .t-group"),f=e.length==0;b.treeview.getGroupHtml({data:h,html:g,isAjax:this.isAjax(),isFirstLevel:d.hasClass("t-treeview"),showCheckBoxes:this.showCheckBox,groupLevel:d.find('> div > .t-checkbox :input[name="'+this.element.id+'_checkedNodes.Index"]').val(),isExpanded:(f?d.eq(0).is(".t-treeview")?true:h[0].Expanded:false),renderGroup:f,elementId:this.element.id});d.data("animating",true);if(e.length>0&&d.data("loaded")===false){c(g.string()).prependTo(e)}else{if(e.length>0&&d.data("loaded")!==false){e.html(g.string())}else{if(e.length==0){e=c(g.string()).appendTo(d)}}}b.fx.play(this.effects,e,{direction:"bottom"},function(){d.data("animating",false)});clearTimeout(d.data("loadingIconTimeout"));if(d.hasClass("t-item")){d.data("loaded",true).find(".t-icon:first").removeClass("t-loading").removeClass("t-plus").addClass("t-minus")}if(this.isAjax()){a(d)}b.trigger(this.element,"dataBound")},checkboxClick:function(h,f){var d=c(f).is(":checked");var g=b.trigger(this.element,"checked",{item:c(f).closest(".t-item")[0],checked:d});if(!g){this.nodeCheck(f,d)}else{h.preventDefault()}return g},nodeCheck:function(e,d){c(e,this.element).each(c.proxy(function(h,i){var f=c(i).closest(".t-item"),g=c("> div > .t-checkbox",f),j=this.element.id+"_checkedNodes",h=g.find(':input[name="'+j+'.Index"]').val();g.find(':input[name="'+j+"["+h+'].Text"]').remove();g.find(':input[name="'+j+"["+h+'].Value"]').remove();g.find(":checkbox").attr({checked:d?"checked":"",value:d});if(d){c(b.treeview.getNodeInputsHtml(this.getItemValue(f),this.getItemText(f),j,h)).appendTo(g)}},this))},getItemText:function(d){return c(d).find("> div > .t-in").text()},getItemValue:function(d){return c(d).find('>div>:input[name="itemValue"]').val()||this.getItemText(d)}};c.extend(b.treeview,{getNodeInputsHtml:function(g,e,f,d){return new b.stringBuilder().cat('').cat('').string()},getItemHtml:function(e){var m=e.item,h=e.html,i=e.isFirstLevel,f=e.groupLevel,g=e.itemIndex,d=e.itemsCount,l=new b.stringBuilder().cat(f).catIf(":",f).cat(g).string();h.cat('
        • ').cat('
          ');if((e.isAjax&&m.LoadOnDemand)||(m.Items&&m.Items.length>0)){h.cat('')}if(e.showCheckBoxes&&m.Checkable!==false){var j=e.elementId+"_checkedNodes";h.cat('').cat('').cat('");if(m.Checked){h.cat(b.treeview.getNodeInputsHtml(m.Value,m.Text,j,l))}h.cat("")}var k=m.NavigateUrl||m.Url;h.cat(k?'');if(m.ImageUrl!=null){h.cat('')}if(m.SpriteCssClasses!=null){h.cat('')}h.catIf(m.Text,m.Encoded===false).catIf(m.Text.replace(//g,">"),m.Encoded!==false).cat(k?"":"");if(m.Value){h.cat('')}h.cat("
          ");if(m.Items&&m.Items.length>0){b.treeview.getGroupHtml({data:m.Items,html:h,isAjax:e.isAjax,isFirstLevel:false,showCheckBoxes:e.showCheckBoxes,groupLevel:l,isExpanded:m.Expanded,elementId:e.elementId})}h.cat("
        • ")},getGroupHtml:function(e){var d=e.data;var g=e.html;var j=e.isFirstLevel;var k=e.renderGroup;if(k!==false){g.cat('
        ").catIf("
      ",!f);if(f){d(f).html(e.string())}else{delete g.title;return d(e.string()).appendTo(document.body).tWindow(g)}},getResizeHandlesHtml:function(){var e=new a.stringBuilder();d.each("n e s w se sw ne nw".split(" "),function(f,g){e.cat('
      ')});return e.string()}});d.fn.tWindow=function(e){return a.create(this,{name:"tWindow",init:function(f,g){return new a.window(f,g)},success:function(h){var g=h.element,f=d(g);if(f.is(":visible")){a.trigger(g,"open");a.trigger(g,"activated")}},options:e})};d.fn.tWindow.defaults={effects:{list:[{name:"zoom"},{name:"property",properties:["opacity"]}],openDuration:"fast",closeDuration:"fast"},modal:false,resizable:true,draggable:true,minWidth:50,minHeight:50}})(jQuery); \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/content/web.config.transform b/packages/TelerikMvcExtensions.2011.2.712/content/web.config.transform new file mode 100644 index 000000000..ec6a8ca6c --- /dev/null +++ b/packages/TelerikMvcExtensions.2011.2.712/content/web.config.transform @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/TelerikMvcExtensions.2011.2.712/lib/net20/Telerik.Web.Mvc.dll b/packages/TelerikMvcExtensions.2011.2.712/lib/net20/Telerik.Web.Mvc.dll new file mode 100644 index 000000000..1e7a2e6f3 Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/lib/net20/Telerik.Web.Mvc.dll differ diff --git a/packages/TelerikMvcExtensions.2011.2.712/lib/net40/Telerik.Web.Mvc.dll b/packages/TelerikMvcExtensions.2011.2.712/lib/net40/Telerik.Web.Mvc.dll new file mode 100644 index 000000000..819473d0c Binary files /dev/null and b/packages/TelerikMvcExtensions.2011.2.712/lib/net40/Telerik.Web.Mvc.dll differ diff --git a/packages/jQuery.1.6.3/Content/Scripts/jquery-1.6.3-vsdoc.js b/packages/jQuery.1.6.3/Content/Scripts/jquery-1.6.3-vsdoc.js new file mode 100644 index 000000000..5eb6730a1 --- /dev/null +++ b/packages/jQuery.1.6.3/Content/Scripts/jquery-1.6.3-vsdoc.js @@ -0,0 +1,7024 @@ +/* +* This file has been generated to support Visual Studio IntelliSense. +* You should not use this file at runtime inside the browser--it is only +* intended to be used only for design-time IntelliSense. Please use the +* standard jQuery library for all production use. +* +* Comment version: 1.6.3 +*/ + +/*! +* jQuery JavaScript Library v1.6.3 +* http://jquery.com/ +* +* Distributed in whole under the terms of the MIT +* +* Copyright 2010, John Resig +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +* +* Includes Sizzle.js +* http://sizzlejs.com/ +* Copyright 2010, The Dojo Foundation +* Released under the MIT and BSD Licenses. +*/ + +(function ( window, undefined ) { +var jQuery = function( selector, context ) { +/// +/// 1: Accepts a string containing a CSS selector which is then used to match a set of elements. +/// 1.1 - $(selector, context) +/// 1.2 - $(element) +/// 1.3 - $(elementArray) +/// 1.4 - $(jQuery object) +/// 1.5 - $() +/// 2: Creates DOM elements on the fly from the provided string of raw HTML. +/// 2.1 - $(html, ownerDocument) +/// 2.2 - $(html, props) +/// 3: Binds a function to be executed when the DOM has finished loading. +/// 3.1 - $(callback) +/// +/// +/// A string containing a selector expression +/// +/// +/// A DOM Element, Document, or jQuery to use as context +/// +/// + + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }; +jQuery.Deferred = function( func ) { + + var deferred = jQuery._Deferred(), + failDeferred = jQuery._Deferred(), + promise; + // Add errorDeferred methods, then and promise + jQuery.extend( deferred, { + then: function( doneCallbacks, failCallbacks ) { + deferred.done( doneCallbacks ).fail( failCallbacks ); + return this; + }, + always: function() { + return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments ); + }, + fail: failDeferred.done, + rejectWith: failDeferred.resolveWith, + reject: failDeferred.resolve, + isRejected: failDeferred.isResolved, + pipe: function( fnDone, fnFail ) { + return jQuery.Deferred(function( newDefer ) { + jQuery.each( { + done: [ fnDone, "resolve" ], + fail: [ fnFail, "reject" ] + }, function( handler, data ) { + var fn = data[ 0 ], + action = data[ 1 ], + returned; + if ( jQuery.isFunction( fn ) ) { + deferred[ handler ](function() { + returned = fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise().then( newDefer.resolve, newDefer.reject ); + } else { + newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); + } + }); + } else { + deferred[ handler ]( newDefer[ action ] ); + } + }); + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + if ( obj == null ) { + if ( promise ) { + return promise; + } + promise = obj = {}; + } + var i = promiseMethods.length; + while( i-- ) { + obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ]; + } + return obj; + } + }); + // Make sure only one callback list will be used + deferred.done( failDeferred.cancel ).fail( deferred.cancel ); + // Unexpose cancel + delete deferred.cancel; + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + return deferred; + }; +jQuery.Event = function( src, props ) { + + // Allow instantiation without the 'new' keyword + if ( !this.preventDefault ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // timeStamp is buggy for some events on Firefox(#3843) + // So we won't rely on the native value + this.timeStamp = jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; +jQuery._Deferred = function() { + + var // callbacks list + callbacks = [], + // stored [ context , args ] + fired, + // to avoid firing when already doing so + firing, + // flag to know if the deferred has been cancelled + cancelled, + // the deferred itself + deferred = { + + // done( f1, f2, ...) + done: function() { + if ( !cancelled ) { + var args = arguments, + i, + length, + elem, + type, + _fired; + if ( fired ) { + _fired = fired; + fired = 0; + } + for ( i = 0, length = args.length; i < length; i++ ) { + elem = args[ i ]; + type = jQuery.type( elem ); + if ( type === "array" ) { + deferred.done.apply( deferred, elem ); + } else if ( type === "function" ) { + callbacks.push( elem ); + } + } + if ( _fired ) { + deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] ); + } + } + return this; + }, + + // resolve with given context and args + resolveWith: function( context, args ) { + if ( !cancelled && !fired && !firing ) { + // make sure args are available (#8421) + args = args || []; + firing = 1; + try { + while( callbacks[ 0 ] ) { + callbacks.shift().apply( context, args ); + } + } + finally { + fired = [ context, args ]; + firing = 0; + } + } + return this; + }, + + // resolve with this as context and given arguments + resolve: function() { + deferred.resolveWith( this, arguments ); + return this; + }, + + // Has this deferred been resolved? + isResolved: function() { + return !!( firing || fired ); + }, + + // Cancel + cancel: function() { + cancelled = 1; + callbacks = []; + return this; + } + }; + + return deferred; + }; +jQuery._data = function( elem, name, data ) { + + return jQuery.data( elem, name, data, true ); + }; +jQuery._mark = function( elem, type ) { + + if ( elem ) { + type = (type || "fx") + "mark"; + jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true ); + } + }; +jQuery._unmark = function( force, elem, type ) { + + if ( force !== true ) { + type = elem; + elem = force; + force = false; + } + if ( elem ) { + type = type || "fx"; + var key = type + "mark", + count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 ); + if ( count ) { + jQuery.data( elem, key, count, true ); + } else { + jQuery.removeData( elem, key, true ); + handleQueueMarkDefer( elem, type, "mark" ); + } + } + }; +jQuery.acceptData = function( elem ) { + + if ( elem.nodeName ) { + var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; + + if ( match ) { + return !(match === true || elem.getAttribute("classid") !== match); + } + } + + return true; + }; +jQuery.access = function( elems, key, value, exec, fn, pass ) { + + var length = elems.length; + + // Setting many attributes + if ( typeof key === "object" ) { + for ( var k in key ) { + jQuery.access( elems, k, key[k], exec, fn, value ); + } + return elems; + } + + // Setting one attribute + if ( value !== undefined ) { + // Optionally, function values get executed if exec is true + exec = !pass && exec && jQuery.isFunction(value); + + for ( var i = 0; i < length; i++ ) { + fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); + } + + return elems; + } + + // Getting an attribute + return length ? fn( elems[0], key ) : undefined; + }; +jQuery.active = 0; +jQuery.ajax = function( url, options ) { +/// +/// Perform an asynchronous HTTP (Ajax) request. +/// 1 - jQuery.ajax(url, settings) +/// 2 - jQuery.ajax(settings) +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A set of key/value pairs that configure the Ajax request. All settings are optional. A default can be set for any option with $.ajaxSetup(). See jQuery.ajax( settings ) below for a complete list of all settings. +/// + + + // If url is an object, simulate pre-1.5 signature + if ( typeof url === "object" ) { + options = url; + url = undefined; + } + + // Force options to be an object + options = options || {}; + + var // Create the final options object + s = jQuery.ajaxSetup( {}, options ), + // Callbacks context + callbackContext = s.context || s, + // Context for global events + // It's the callbackContext if one was provided in the options + // and if it's a DOM node or a jQuery collection + globalEventContext = callbackContext !== s && + ( callbackContext.nodeType || callbackContext instanceof jQuery ) ? + jQuery( callbackContext ) : jQuery.event, + // Deferreds + deferred = jQuery.Deferred(), + completeDeferred = jQuery._Deferred(), + // Status-dependent callbacks + statusCode = s.statusCode || {}, + // ifModified key + ifModifiedKey, + // Headers (they are sent all at once) + requestHeaders = {}, + requestHeadersNames = {}, + // Response headers + responseHeadersString, + responseHeaders, + // transport + transport, + // timeout handle + timeoutTimer, + // Cross-domain detection vars + parts, + // The jqXHR state + state = 0, + // To know if global events are to be dispatched + fireGlobals, + // Loop variable + i, + // Fake xhr + jqXHR = { + + readyState: 0, + + // Caches the header + setRequestHeader: function( name, value ) { + if ( !state ) { + var lname = name.toLowerCase(); + name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; + requestHeaders[ name ] = value; + } + return this; + }, + + // Raw string + getAllResponseHeaders: function() { + return state === 2 ? responseHeadersString : null; + }, + + // Builds headers hashtable if needed + getResponseHeader: function( key ) { + var match; + if ( state === 2 ) { + if ( !responseHeaders ) { + responseHeaders = {}; + while( ( match = rheaders.exec( responseHeadersString ) ) ) { + responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; + } + } + match = responseHeaders[ key.toLowerCase() ]; + } + return match === undefined ? null : match; + }, + + // Overrides response content-type header + overrideMimeType: function( type ) { + if ( !state ) { + s.mimeType = type; + } + return this; + }, + + // Cancel the request + abort: function( statusText ) { + statusText = statusText || "abort"; + if ( transport ) { + transport.abort( statusText ); + } + done( 0, statusText ); + return this; + } + }; + + // Callback for when everything is done + // It is defined here because jslint complains if it is declared + // at the end of the function (which would be more logical and readable) + function done( status, nativeStatusText, responses, headers ) { + + // Called once + if ( state === 2 ) { + return; + } + + // State is "done" now + state = 2; + + // Clear timeout if it exists + if ( timeoutTimer ) { + clearTimeout( timeoutTimer ); + } + + // Dereference transport for early garbage collection + // (no matter how long the jqXHR object will be used) + transport = undefined; + + // Cache response headers + responseHeadersString = headers || ""; + + // Set readyState + jqXHR.readyState = status > 0 ? 4 : 0; + + var isSuccess, + success, + error, + statusText = nativeStatusText, + response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined, + lastModified, + etag; + + // If successful, handle type chaining + if ( status >= 200 && status < 300 || status === 304 ) { + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + + if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) { + jQuery.lastModified[ ifModifiedKey ] = lastModified; + } + if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) { + jQuery.etag[ ifModifiedKey ] = etag; + } + } + + // If not modified + if ( status === 304 ) { + + statusText = "notmodified"; + isSuccess = true; + + // If we have data + } else { + + try { + success = ajaxConvert( s, response ); + statusText = "success"; + isSuccess = true; + } catch(e) { + // We have a parsererror + statusText = "parsererror"; + error = e; + } + } + } else { + // We extract error from statusText + // then normalize statusText and status for non-aborts + error = statusText; + if( !statusText || status ) { + statusText = "error"; + if ( status < 0 ) { + status = 0; + } + } + } + + // Set data for the fake xhr object + jqXHR.status = status; + jqXHR.statusText = "" + ( nativeStatusText || statusText ); + + // Success/Error + if ( isSuccess ) { + deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); + } else { + deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); + } + + // Status-dependent callbacks + jqXHR.statusCode( statusCode ); + statusCode = undefined; + + if ( fireGlobals ) { + globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ), + [ jqXHR, s, isSuccess ? success : error ] ); + } + + // Complete + completeDeferred.resolveWith( callbackContext, [ jqXHR, statusText ] ); + + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); + // Handle the global AJAX counter + if ( !( --jQuery.active ) ) { + jQuery.event.trigger( "ajaxStop" ); + } + } + } + + // Attach deferreds + deferred.promise( jqXHR ); + jqXHR.success = jqXHR.done; + jqXHR.error = jqXHR.fail; + jqXHR.complete = completeDeferred.done; + + // Status-dependent callbacks + jqXHR.statusCode = function( map ) { + if ( map ) { + var tmp; + if ( state < 2 ) { + for( tmp in map ) { + statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ]; + } + } else { + tmp = map[ jqXHR.status ]; + jqXHR.then( tmp, tmp ); + } + } + return this; + }; + + // Remove hash character (#7531: and string promotion) + // Add protocol if not provided (#5866: IE7 issue with protocol-less urls) + // We also use the url parameter if available + s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); + + // Extract dataTypes list + s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax ); + + // Determine if a cross-domain request is in order + if ( s.crossDomain == null ) { + parts = rurl.exec( s.url.toLowerCase() ); + s.crossDomain = !!( parts && + ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] || + ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) != + ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) ) + ); + } + + // Convert data if not already a string + if ( s.data && s.processData && typeof s.data !== "string" ) { + s.data = jQuery.param( s.data, s.traditional ); + } + + // Apply prefilters + inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); + + // If request was aborted inside a prefiler, stop there + if ( state === 2 ) { + return false; + } + + // We can fire global events as of now if asked to + fireGlobals = s.global; + + // Uppercase the type + s.type = s.type.toUpperCase(); + + // Determine if request has content + s.hasContent = !rnoContent.test( s.type ); + + // Watch for a new set of requests + if ( fireGlobals && jQuery.active++ === 0 ) { + jQuery.event.trigger( "ajaxStart" ); + } + + // More options handling for requests with no content + if ( !s.hasContent ) { + + // If data is available, append data to url + if ( s.data ) { + s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data; + // #9682: remove data so that it's not used in an eventual retry + delete s.data; + } + + // Get ifModifiedKey before adding the anti-cache parameter + ifModifiedKey = s.url; + + // Add anti-cache in url if needed + if ( s.cache === false ) { + + var ts = jQuery.now(), + // try replacing _= if it is there + ret = s.url.replace( rts, "$1_=" + ts ); + + // if nothing was replaced, add timestamp to the end + s.url = ret + ( (ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" ); + } + } + + // Set the correct header, if data is being sent + if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { + jqXHR.setRequestHeader( "Content-Type", s.contentType ); + } + + // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. + if ( s.ifModified ) { + ifModifiedKey = ifModifiedKey || s.url; + if ( jQuery.lastModified[ ifModifiedKey ] ) { + jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] ); + } + if ( jQuery.etag[ ifModifiedKey ] ) { + jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] ); + } + } + + // Set the Accepts header for the server, depending on the dataType + jqXHR.setRequestHeader( + "Accept", + s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? + s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : + s.accepts[ "*" ] + ); + + // Check for headers option + for ( i in s.headers ) { + jqXHR.setRequestHeader( i, s.headers[ i ] ); + } + + // Allow custom headers/mimetypes and early abort + if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { + // Abort if not done already + jqXHR.abort(); + return false; + + } + + // Install callbacks on deferreds + for ( i in { success: 1, error: 1, complete: 1 } ) { + jqXHR[ i ]( s[ i ] ); + } + + // Get transport + transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); + + // If no transport, we auto-abort + if ( !transport ) { + done( -1, "No Transport" ); + } else { + jqXHR.readyState = 1; + // Send global event + if ( fireGlobals ) { + globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); + } + // Timeout + if ( s.async && s.timeout > 0 ) { + timeoutTimer = setTimeout( function(){ + jqXHR.abort( "timeout" ); + }, s.timeout ); + } + + try { + state = 1; + transport.send( requestHeaders, done ); + } catch (e) { + // Propagate exception as error if not done + if ( state < 2 ) { + done( -1, e ); + // Simply rethrow otherwise + } else { + jQuery.error( e ); + } + } + } + + return jqXHR; + }; +jQuery.ajaxPrefilter = function( dataTypeExpression, func ) { +/// +/// Handle custom Ajax options or modify existing options before each request is sent and before they are processed by $.ajax(). +/// +/// +/// An optional string containing one or more space-separated dataTypes +/// +/// +/// A handler to set default values for future Ajax requests. +/// +/// + + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + if ( jQuery.isFunction( func ) ) { + var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ), + i = 0, + length = dataTypes.length, + dataType, + list, + placeBefore; + + // For each dataType in the dataTypeExpression + for(; i < length; i++ ) { + dataType = dataTypes[ i ]; + // We control if we're asked to add before + // any existing element + placeBefore = /^\+/.test( dataType ); + if ( placeBefore ) { + dataType = dataType.substr( 1 ) || "*"; + } + list = structure[ dataType ] = structure[ dataType ] || []; + // then we add to the structure accordingly + list[ placeBefore ? "unshift" : "push" ]( func ); + } + } + }; +jQuery.ajaxSettings = { "url": 'http://localhost:25813/', +"isLocal": false, +"global": true, +"type": 'GET', +"contentType": 'application/x-www-form-urlencoded', +"processData": true, +"async": true, +"accepts": {}, +"contents": {}, +"responseFields": {}, +"converters": {}, +"flatOptions": {}, +"jsonp": 'callback' }; +jQuery.ajaxSetup = function( target, settings ) { +/// +/// Set default values for future Ajax requests. +/// +/// +/// A set of key/value pairs that configure the default Ajax request. All options are optional. +/// + + if ( settings ) { + // Building a settings object + ajaxExtend( target, jQuery.ajaxSettings ); + } else { + // Extending ajaxSettings + settings = target; + target = jQuery.ajaxSettings; + } + ajaxExtend( target, settings ); + return target; + }; +jQuery.ajaxTransport = function( dataTypeExpression, func ) { + + + if ( typeof dataTypeExpression !== "string" ) { + func = dataTypeExpression; + dataTypeExpression = "*"; + } + + if ( jQuery.isFunction( func ) ) { + var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ), + i = 0, + length = dataTypes.length, + dataType, + list, + placeBefore; + + // For each dataType in the dataTypeExpression + for(; i < length; i++ ) { + dataType = dataTypes[ i ]; + // We control if we're asked to add before + // any existing element + placeBefore = /^\+/.test( dataType ); + if ( placeBefore ) { + dataType = dataType.substr( 1 ) || "*"; + } + list = structure[ dataType ] = structure[ dataType ] || []; + // then we add to the structure accordingly + list[ placeBefore ? "unshift" : "push" ]( func ); + } + } + }; +jQuery.attr = function( elem, name, value, pass ) { + + var nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + if ( pass && name in jQuery.attrFn ) { + return jQuery( elem )[ name ]( value ); + } + + // Fallback to prop when attributes are not supported + if ( !("getAttribute" in elem) ) { + return jQuery.prop( elem, name, value ); + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + // Normalize the name if needed + if ( notxml ) { + name = jQuery.attrFix[ name ] || name; + + hooks = jQuery.attrHooks[ name ]; + + if ( !hooks ) { + // Use boolHook for boolean attributes + if ( rboolean.test( name ) ) { + hooks = boolHook; + + // Use nodeHook if available( IE6/7 ) + } else if ( nodeHook ) { + hooks = nodeHook; + } + } + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return undefined; + + } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, "" + value ); + return value; + } + + } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + + ret = elem.getAttribute( name ); + + // Non-existent attributes return null, we normalize to undefined + return ret === null ? + undefined : + ret; + } + }; +jQuery.attrFix = { "tabindex": 'tabIndex' }; +jQuery.attrFn = { "val": true, +"css": true, +"html": true, +"text": true, +"data": true, +"width": true, +"height": true, +"offset": true, +"blur": true, +"focus": true, +"focusin": true, +"focusout": true, +"load": true, +"resize": true, +"scroll": true, +"unload": true, +"click": true, +"dblclick": true, +"mousedown": true, +"mouseup": true, +"mousemove": true, +"mouseover": true, +"mouseout": true, +"mouseenter": true, +"mouseleave": true, +"change": true, +"select": true, +"submit": true, +"keydown": true, +"keypress": true, +"keyup": true, +"error": true }; +jQuery.attrHooks = { "type": {}, +"value": {}, +"tabIndex": {} }; +jQuery.bindReady = function() { + + if ( readyList ) { + return; + } + + readyList = jQuery._Deferred(); + + // Catch cases where $(document).ready() is called after the + // browser event has already occurred. + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 1 ); + } + + // Mozilla, Opera and webkit nightlies currently support this event + if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", jQuery.ready, false ); + + // If IE event model is used + } else if ( document.attachEvent ) { + // ensure firing before onload, + // maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", DOMContentLoaded ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", jQuery.ready ); + + // If IE and not a frame + // continually check to see if the document is ready + var toplevel = false; + + try { + toplevel = window.frameElement == null; + } catch(e) {} + + if ( document.documentElement.doScroll && toplevel ) { + doScrollCheck(); + } + } + }; +jQuery.boxModel = true; +jQuery.browser = { "msie": true, +"version": '9.0' }; +jQuery.buildFragment = function( args, nodes, scripts ) { + + var fragment, cacheable, cacheresults, doc; + + // nodes may contain either an explicit document object, + // a jQuery collection or context object. + // If nodes[0] contains a valid object to assign to doc + if ( nodes && nodes[0] ) { + doc = nodes[0].ownerDocument || nodes[0]; + } + + // Ensure that an attr object doesn't incorrectly stand in as a document object + // Chrome and Firefox seem to allow this to occur and will throw exception + // Fixes #8950 + if ( !doc.createDocumentFragment ) { + doc = document; + } + + // Only cache "small" (1/2 KB) HTML strings that are associated with the main document + // Cloning options loses the selected state, so don't cache them + // IE 6 doesn't like it when you put or elements in a fragment + // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache + if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document && + args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) { + + cacheable = true; + + cacheresults = jQuery.fragments[ args[0] ]; + if ( cacheresults && cacheresults !== 1 ) { + fragment = cacheresults; + } + } + + if ( !fragment ) { + fragment = doc.createDocumentFragment(); + jQuery.clean( args, doc, fragment, scripts ); + } + + if ( cacheable ) { + jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1; + } + + return { fragment: fragment, cacheable: cacheable }; +}; +jQuery.cache = {}; +jQuery.camelCase = function( string ) { + + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }; +jQuery.clean = function( elems, context, fragment, scripts ) { + + var checkScriptType; + + context = context || document; + + // !context.createElement fails in IE with an error but returns typeof 'object' + if ( typeof context.createElement === "undefined" ) { + context = context.ownerDocument || context[0] && context[0].ownerDocument || document; + } + + var ret = [], j; + + for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { + if ( typeof elem === "number" ) { + elem += ""; + } + + if ( !elem ) { + continue; + } + + // Convert html string into DOM nodes + if ( typeof elem === "string" ) { + if ( !rhtml.test( elem ) ) { + elem = context.createTextNode( elem ); + } else { + // Fix "XHTML"-style tags in all browsers + elem = elem.replace(rxhtmlTag, "<$1>"); + + // Trim whitespace, otherwise indexOf won't work as expected + var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(), + wrap = wrapMap[ tag ] || wrapMap._default, + depth = wrap[0], + div = context.createElement("div"); + + // Go to html and back, then peel off extra wrappers + div.innerHTML = wrap[1] + elem + wrap[2]; + + // Move to the right depth + while ( depth-- ) { + div = div.lastChild; + } + + // Remove IE's autoinserted from table fragments + if ( !jQuery.support.tbody ) { + + // String was a , *may* have spurious + var hasBody = rtbody.test(elem), + tbody = tag === "table" && !hasBody ? + div.firstChild && div.firstChild.childNodes : + + // String was a bare or + wrap[1] === "
      " && !hasBody ? + div.childNodes : + []; + + for ( j = tbody.length - 1; j >= 0 ; --j ) { + if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) { + tbody[ j ].parentNode.removeChild( tbody[ j ] ); + } + } + } + + // IE completely kills leading whitespace when innerHTML is used + if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) { + div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild ); + } + + elem = div.childNodes; + } + } + + // Resets defaultChecked for any radios and checkboxes + // about to be appended to the DOM in IE 6/7 (#8060) + var len; + if ( !jQuery.support.appendChecked ) { + if ( elem[0] && typeof (len = elem.length) === "number" ) { + for ( j = 0; j < len; j++ ) { + findInputs( elem[j] ); + } + } else { + findInputs( elem ); + } + } + + if ( elem.nodeType ) { + ret.push( elem ); + } else { + ret = jQuery.merge( ret, elem ); + } + } + + if ( fragment ) { + checkScriptType = function( elem ) { + return !elem.type || rscriptType.test( elem.type ); + }; + for ( i = 0; ret[i]; i++ ) { + if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) { + scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] ); + + } else { + if ( ret[i].nodeType === 1 ) { + var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType ); + + ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) ); + } + fragment.appendChild( ret[i] ); + } + } + } + + return ret; + }; +jQuery.cleanData = function( elems ) { + + var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special, + deleteExpando = jQuery.support.deleteExpando; + + for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) { + if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) { + continue; + } + + id = elem[ jQuery.expando ]; + + if ( id ) { + data = cache[ id ] && cache[ id ][ internalKey ]; + + if ( data && data.events ) { + for ( var type in data.events ) { + if ( special[ type ] ) { + jQuery.event.remove( elem, type ); + + // This is a shortcut to avoid jQuery.event.remove's overhead + } else { + jQuery.removeEvent( elem, type, data.handle ); + } + } + + // Null the DOM reference to avoid IE6/7/8 leak (#7054) + if ( data.handle ) { + data.handle.elem = null; + } + } + + if ( deleteExpando ) { + delete elem[ jQuery.expando ]; + + } else if ( elem.removeAttribute ) { + elem.removeAttribute( jQuery.expando ); + } + + delete cache[ id ]; + } + } + }; +jQuery.clone = function( elem, dataAndEvents, deepDataAndEvents ) { + + var clone = elem.cloneNode(true), + srcElements, + destElements, + i; + + if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) && + (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) { + // IE copies events bound via attachEvent when using cloneNode. + // Calling detachEvent on the clone will also remove the events + // from the original. In order to get around this, we use some + // proprietary methods to clear the events. Thanks to MooTools + // guys for this hotness. + + cloneFixAttributes( elem, clone ); + + // Using Sizzle here is crazy slow, so we use getElementsByTagName + // instead + srcElements = getAll( elem ); + destElements = getAll( clone ); + + // Weird iteration because IE will replace the length property + // with an element if you are cloning the body and one of the + // elements on the page has a name or id of "length" + for ( i = 0; srcElements[i]; ++i ) { + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + cloneFixAttributes( srcElements[i], destElements[i] ); + } + } + } + + // Copy the events from the original to the clone + if ( dataAndEvents ) { + cloneCopyEvent( elem, clone ); + + if ( deepDataAndEvents ) { + srcElements = getAll( elem ); + destElements = getAll( clone ); + + for ( i = 0; srcElements[i]; ++i ) { + cloneCopyEvent( srcElements[i], destElements[i] ); + } + } + } + + srcElements = destElements = null; + + // Return the cloned set + return clone; + }; +jQuery.contains = function( a, b ) { +/// +/// Check to see if a DOM element is within another DOM element. +/// +/// +/// The DOM element that may contain the other element. +/// +/// +/// The DOM element that may be contained by the other element. +/// +/// + + return a !== b && (a.contains ? a.contains(b) : true); + }; +jQuery.css = function( elem, name, extra ) { + + var ret, hooks; + + // Make sure that we're working with the right name + name = jQuery.camelCase( name ); + hooks = jQuery.cssHooks[ name ]; + name = jQuery.cssProps[ name ] || name; + + // cssFloat needs a special treatment + if ( name === "cssFloat" ) { + name = "float"; + } + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) { + return ret; + + // Otherwise, if a way to get the computed value exists, use that + } else if ( curCSS ) { + return curCSS( elem, name ); + } + }; +jQuery.cssHooks = { "opacity": {}, +"height": {}, +"width": {} }; +jQuery.cssNumber = { "fillOpacity": true, +"fontWeight": true, +"lineHeight": true, +"opacity": true, +"orphans": true, +"widows": true, +"zIndex": true, +"zoom": true }; +jQuery.cssProps = { "float": 'cssFloat' }; +jQuery.curCSS = function( elem, name, extra ) { + + var ret, hooks; + + // Make sure that we're working with the right name + name = jQuery.camelCase( name ); + hooks = jQuery.cssHooks[ name ]; + name = jQuery.cssProps[ name ] || name; + + // cssFloat needs a special treatment + if ( name === "cssFloat" ) { + name = "float"; + } + + // If a hook was provided get the computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) { + return ret; + + // Otherwise, if a way to get the computed value exists, use that + } else if ( curCSS ) { + return curCSS( elem, name ); + } + }; +jQuery.data = function( elem, name, data, pvt /* Internal Use Only */ ) { +/// +/// 1: Store arbitrary data associated with the specified element. Returns the value that was set. +/// 1.1 - jQuery.data(element, key, value) +/// 2: Returns value at named data store for the element, as set by jQuery.data(element, name, value), or the full data store for the element. +/// 2.1 - jQuery.data(element, key) +/// 2.2 - jQuery.data(element) +/// +/// +/// The DOM element to associate with the data. +/// +/// +/// A string naming the piece of data to set. +/// +/// +/// The new data value. +/// +/// + + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, ret, + internalKey = jQuery.expando, + getByName = typeof name === "string", + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + elem[ jQuery.expando ] = id = ++jQuery.uuid; + } else { + id = jQuery.expando; + } + } + + if ( !cache[ id ] ) { + cache[ id ] = {}; + + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name); + } else { + cache[ id ] = jQuery.extend(cache[ id ], name); + } + } + + thisCache = cache[ id ]; + + // Internal jQuery data is stored in a separate object inside the object's data + // cache in order to avoid key collisions between internal data and user-defined + // data + if ( pvt ) { + if ( !thisCache[ internalKey ] ) { + thisCache[ internalKey ] = {}; + } + + thisCache = thisCache[ internalKey ]; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should + // not attempt to inspect the internal events object using jQuery.data, as this + // internal data object is undocumented and subject to change. + if ( name === "events" && !thisCache[name] ) { + return thisCache[ internalKey ] && thisCache[ internalKey ].events; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( getByName ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; + }; +jQuery.dequeue = function( elem, type ) { +/// +/// Execute the next function on the queue for the matched element. +/// +/// +/// A DOM element from which to remove and execute a queued function. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + fn = queue.shift(), + defer; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + } + + if ( fn ) { + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift("inprogress"); + } + + fn.call(elem, function() { + jQuery.dequeue(elem, type); + }); + } + + if ( !queue.length ) { + jQuery.removeData( elem, type + "queue", true ); + handleQueueMarkDefer( elem, type, "queue" ); + } + }; +jQuery.dir = function( elem, dir, until ) { + + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }; +jQuery.each = function( object, callback, args ) { +/// +/// A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function's arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties. +/// +/// +/// The object or array to iterate over. +/// +/// +/// The function that will be executed on every object. +/// +/// + + var name, i = 0, + length = object.length, + isObj = length === undefined || jQuery.isFunction( object ); + + if ( args ) { + if ( isObj ) { + for ( name in object ) { + if ( callback.apply( object[ name ], args ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.apply( object[ i++ ], args ) === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isObj ) { + for ( name in object ) { + if ( callback.call( object[ name ], name, object[ name ] ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { + break; + } + } + } + } + + return object; + }; +jQuery.easing = {}; +jQuery.error = function( msg ) { +/// +/// Takes a string and throws an exception containing it. +/// +/// +/// The message to send out. +/// + + throw msg; + }; +jQuery.etag = {}; +jQuery.event = { "global": {}, +"customEvent": {}, +"props": ['altKey','attrChange','attrName','bubbles','button','cancelable','charCode','clientX','clientY','ctrlKey','currentTarget','data','detail','eventPhase','fromElement','handler','keyCode','layerX','layerY','metaKey','newValue','offsetX','offsetY','pageX','pageY','prevValue','relatedNode','relatedTarget','screenX','screenY','shiftKey','srcElement','target','toElement','view','wheelDelta','which'], +"guid": 100000000, +"special": {}, +"triggered": false +}; +jQuery.expr = { "order": ['ID','CLASS','NAME','TAG'], +"match": {}, +"leftMatch": {}, +"attrMap": {}, +"attrHandle": {}, +"relative": {}, +"find": {}, +"preFilter": {}, +"filters": {}, +"setFilters": {}, +"filter": {}, +":": {} }; +jQuery.extend = function() { +/// +/// Merge the contents of two or more objects together into the first object. +/// 1 - jQuery.extend(target, object1, objectN) +/// 2 - jQuery.extend(deep, target, object1, objectN) +/// +/// +/// If true, the merge becomes recursive (aka. deep copy). +/// +/// +/// The object to extend. It will receive the new properties. +/// +/// +/// An object containing additional properties to merge in. +/// +/// +/// Additional objects containing properties to merge in. +/// +/// + + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; +jQuery.filter = function( expr, elems, not ) { + + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 ? + jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : + jQuery.find.matches(expr, elems); + }; +jQuery.find = function( query, context, extra, seed ) { + + context = context || document; + + // Only use querySelectorAll on non-XML documents + // (ID selectors don't work in non-HTML documents) + if ( !seed && !Sizzle.isXML(context) ) { + // See if we find a selector to speed up + var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); + + if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { + // Speed-up: Sizzle("TAG") + if ( match[1] ) { + return makeArray( context.getElementsByTagName( query ), extra ); + + // Speed-up: Sizzle(".CLASS") + } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { + return makeArray( context.getElementsByClassName( match[2] ), extra ); + } + } + + if ( context.nodeType === 9 ) { + // Speed-up: Sizzle("body") + // The body element only exists once, optimize finding it + if ( query === "body" && context.body ) { + return makeArray( [ context.body ], extra ); + + // Speed-up: Sizzle("#ID") + } else if ( match && match[3] ) { + var elem = context.getElementById( match[3] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id === match[3] ) { + return makeArray( [ elem ], extra ); + } + + } else { + return makeArray( [], extra ); + } + } + + try { + return makeArray( context.querySelectorAll(query), extra ); + } catch(qsaError) {} + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + var oldContext = context, + old = context.getAttribute( "id" ), + nid = old || id, + hasParent = context.parentNode, + relativeHierarchySelector = /^\s*[+~]/.test( query ); + + if ( !old ) { + context.setAttribute( "id", nid ); + } else { + nid = nid.replace( /'/g, "\\$&" ); + } + if ( relativeHierarchySelector && hasParent ) { + context = context.parentNode; + } + + try { + if ( !relativeHierarchySelector || hasParent ) { + return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); + } + + } catch(pseudoError) { + } finally { + if ( !old ) { + oldContext.removeAttribute( "id" ); + } + } + } + } + + return oldSizzle(query, context, extra, seed); + }; +jQuery.fn = { "selector": '', +"jquery": '1.6.3', +"length": 0 }; +jQuery.fragments = {}; +jQuery.fx = function( elem, options, prop ) { + + this.options = options; + this.elem = elem; + this.prop = prop; + + options.orig = options.orig || {}; + }; +jQuery.get = function( url, data, callback, type ) { +/// +/// Load data from the server using a HTTP GET request. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed if the request succeeds. +/// +/// +/// The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). +/// + + // shift arguments if data argument was omitted + if ( jQuery.isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + return jQuery.ajax({ + type: method, + url: url, + data: data, + success: callback, + dataType: type + }); + }; +jQuery.getJSON = function( url, data, callback ) { +/// +/// Load JSON-encoded data from the server using a GET HTTP request. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed if the request succeeds. +/// + + return jQuery.get( url, data, callback, "json" ); + }; +jQuery.getScript = function( url, callback ) { +/// +/// Load a JavaScript file from the server using a GET HTTP request, then execute it. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A callback function that is executed if the request succeeds. +/// + + return jQuery.get( url, undefined, callback, "script" ); + }; +jQuery.globalEval = function( data ) { +/// +/// Execute some JavaScript code globally. +/// +/// +/// The JavaScript code to execute. +/// + + if ( data && rnotwhite.test( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }; +jQuery.grep = function( elems, callback, inv ) { +/// +/// Finds the elements of an array which satisfy a filter function. The original array is not affected. +/// +/// +/// The array to search through. +/// +/// +/// The function to process each item against. The first argument to the function is the item, and the second argument is the index. The function should return a Boolean value. this will be the global window object. +/// +/// +/// If "invert" is false, or not provided, then the function returns an array consisting of all elements for which "callback" returns true. If "invert" is true, then the function returns an array consisting of all elements for which "callback" returns false. +/// +/// + + var ret = [], retVal; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( var i = 0, length = elems.length; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }; +jQuery.guid = 1; +jQuery.hasData = function( elem ) { +/// +/// Determine whether an element has any jQuery data associated with it. +/// +/// +/// A DOM element to be checked for data. +/// +/// + + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + + return !!elem && !isEmptyDataObject( elem ); + }; +jQuery.holdReady = function( hold ) { +/// +/// Holds or releases the execution of jQuery's ready event. +/// +/// +/// Indicates whether the ready hold is being requested or released +/// +/// + + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }; +jQuery.inArray = function( elem, array ) { +/// +/// Search for a specified value within an array and return its index (or -1 if not found). +/// +/// +/// The value to search for. +/// +/// +/// An array through which to search. +/// +/// + + if ( !array ) { + return -1; + } + + if ( indexOf ) { + return indexOf.call( array, elem ); + } + + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[ i ] === elem ) { + return i; + } + } + + return -1; + }; +jQuery.isEmptyObject = function( obj ) { +/// +/// Check to see if an object is empty (contains no properties). +/// +/// +/// The object that will be checked to see if it's empty. +/// +/// + + for ( var name in obj ) { + return false; + } + return true; + }; +jQuery.isFunction = function( obj ) { +/// +/// Determine if the argument passed is a Javascript function object. +/// +/// +/// Object to test whether or not it is a function. +/// +/// + + return jQuery.type(obj) === "function"; + }; +jQuery.isNaN = function( obj ) { + + return obj == null || !rdigit.test( obj ) || isNaN( obj ); + }; +jQuery.isPlainObject = function( obj ) { +/// +/// Check to see if an object is a plain object (created using "{}" or "new Object"). +/// +/// +/// The object that will be checked to see if it's a plain object. +/// +/// + + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + + var key; + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }; +jQuery.isReady = true; +jQuery.isWindow = function( obj ) { +/// +/// Determine whether the argument is a window. +/// +/// +/// Object to test whether or not it is a window. +/// +/// + + return obj && typeof obj === "object" && "setInterval" in obj; + }; +jQuery.isXMLDoc = function( elem ) { +/// +/// Check to see if a DOM node is within an XML document (or is an XML document). +/// +/// +/// The DOM node that will be checked to see if it's in an XML document. +/// +/// + + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; + + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; +jQuery.lastModified = {}; +jQuery.makeArray = function( array, results ) { +/// +/// Convert an array-like object into a true JavaScript array. +/// +/// +/// Any object to turn into a native Array. +/// +/// + + var ret = results || []; + + if ( array != null ) { + // The window, strings (and functions) also have 'length' + // The extra typeof function check is to prevent crashes + // in Safari 2 (See: #3039) + // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 + var type = jQuery.type( array ); + + if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) { + push.call( ret, array ); + } else { + jQuery.merge( ret, array ); + } + } + + return ret; + }; +jQuery.map = function( elems, callback, arg ) { +/// +/// Translate all items in an array or object to new array of items. +/// 1 - jQuery.map(array, callback(elementOfArray, indexInArray)) +/// 2 - jQuery.map(arrayOrObject, callback( value, indexOrKey )) +/// +/// +/// The Array to translate. +/// +/// +/// The function to process each item against. The first argument to the function is the array item, the second argument is the index in array The function can return any value. Within the function, this refers to the global (window) object. +/// +/// + + var value, key, ret = [], + i = 0, + length = elems.length, + // jquery objects are treated as arrays + isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( key in elems ) { + value = callback( elems[ key ], key, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return ret.concat.apply( [], ret ); + }; +jQuery.merge = function( first, second ) { +/// +/// Merge the contents of two arrays together into the first array. +/// +/// +/// The first array to merge, the elements of second added. +/// +/// +/// The second array to merge into the first, unaltered. +/// +/// + + var i = first.length, + j = 0; + + if ( typeof second.length === "number" ) { + for ( var l = second.length; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }; +jQuery.noConflict = function( deep ) { +/// +/// Relinquish jQuery's control of the $ variable. +/// +/// +/// A Boolean indicating whether to remove all jQuery variables from the global scope (including jQuery itself). +/// +/// + + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }; +jQuery.noData = { "embed": true, +"object": 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', +"applet": true }; +jQuery.nodeName = function( elem, name ) { + + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + }; +jQuery.noop = function() { +/// +/// An empty function. +/// +/// +}; +jQuery.now = function() { +/// +/// Return a number representing the current time. +/// +/// + + return (new Date()).getTime(); + }; +jQuery.nth = function( cur, result, dir, elem ) { + + result = result || 1; + var num = 0; + + for ( ; cur; cur = cur[dir] ) { + if ( cur.nodeType === 1 && ++num === result ) { + break; + } + } + + return cur; + }; +jQuery.offset = {}; +jQuery.param = function( a, traditional ) { +/// +/// Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request. +/// 1 - jQuery.param(obj) +/// 2 - jQuery.param(obj, traditional) +/// +/// +/// An array or object to serialize. +/// +/// +/// A Boolean indicating whether to perform a traditional "shallow" serialization. +/// +/// + + var s = [], + add = function( key, value ) { + // If value is a function, invoke it and return its value + value = jQuery.isFunction( value ) ? value() : value; + s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); + }; + + // Set traditional to true for jQuery <= 1.3.2 behavior. + if ( traditional === undefined ) { + traditional = jQuery.ajaxSettings.traditional; + } + + // If an array was passed in, assume that it is an array of form elements. + if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { + // Serialize the form elements + jQuery.each( a, function() { + add( this.name, this.value ); + }); + + } else { + // If traditional, encode the "old" way (the way 1.3.2 or older + // did it), otherwise encode params recursively. + for ( var prefix in a ) { + buildParams( prefix, a[ prefix ], traditional, add ); + } + } + + // Return the resulting serialization + return s.join( "&" ).replace( r20, "+" ); + }; +jQuery.parseJSON = function( data ) { +/// +/// Takes a well-formed JSON string and returns the resulting JavaScript object. +/// +/// +/// The JSON string to parse. +/// +/// + + if ( typeof data !== "string" || !data ) { + return null; + } + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return (new Function( "return " + data ))(); + + } + jQuery.error( "Invalid JSON: " + data ); + }; +jQuery.parseXML = function( data ) { +/// +/// Parses a string into an XML document. +/// +/// +/// a well-formed XML string to be parsed +/// +/// + + var xml, tmp; + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }; +jQuery.post = function( url, data, callback, type ) { +/// +/// Load data from the server using a HTTP POST request. +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed if the request succeeds. +/// +/// +/// The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html). +/// + + // shift arguments if data argument was omitted + if ( jQuery.isFunction( data ) ) { + type = type || callback; + callback = data; + data = undefined; + } + + return jQuery.ajax({ + type: method, + url: url, + data: data, + success: callback, + dataType: type + }); + }; +jQuery.prop = function( elem, name, value ) { + + var nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + return (elem[ name ] = value); + } + + } else { + if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + return elem[ name ]; + } + } + }; +jQuery.propFix = { "tabindex": 'tabIndex', +"readonly": 'readOnly', +"for": 'htmlFor', +"class": 'className', +"maxlength": 'maxLength', +"cellspacing": 'cellSpacing', +"cellpadding": 'cellPadding', +"rowspan": 'rowSpan', +"colspan": 'colSpan', +"usemap": 'useMap', +"frameborder": 'frameBorder', +"contenteditable": 'contentEditable' }; +jQuery.propHooks = { "tabIndex": {}, +"selected": {} }; +jQuery.proxy = function( fn, context ) { +/// +/// Takes a function and returns a new one that will always have a particular context. +/// 1 - jQuery.proxy(function, context) +/// 2 - jQuery.proxy(context, name) +/// +/// +/// The function whose context will be changed. +/// +/// +/// The object to which the context (this) of the function should be set. +/// +/// + + if ( typeof context === "string" ) { + var tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + var args = slice.call( arguments, 2 ), + proxy = function() { + return fn.apply( context, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + + return proxy; + }; +jQuery.queue = function( elem, type, data ) { +/// +/// 1: Show the queue of functions to be executed on the matched element. +/// 1.1 - jQuery.queue(element, queueName) +/// 2: Manipulate the queue of functions to be executed on the matched element. +/// 2.1 - jQuery.queue(element, queueName, newQueue) +/// 2.2 - jQuery.queue(element, queueName, callback()) +/// +/// +/// A DOM element where the array of queued functions is attached. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// +/// An array of functions to replace the current queue contents. +/// +/// + + if ( elem ) { + type = (type || "fx") + "queue"; + var q = jQuery.data( elem, type, undefined, true ); + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !q || jQuery.isArray(data) ) { + q = jQuery.data( elem, type, jQuery.makeArray(data), true ); + } else { + q.push( data ); + } + } + return q || []; + } + }; +jQuery.ready = function( wait ) { + + // Either a released hold or an DOMready/load event and not yet ready + if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready, 1 ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger( "ready" ).unbind( "ready" ); + } + } + }; +jQuery.readyWait = 0; +jQuery.removeAttr = function( elem, name ) { + + var propName; + if ( elem.nodeType === 1 ) { + name = jQuery.attrFix[ name ] || name; + + jQuery.attr( elem, name, "" ); + elem.removeAttribute( name ); + + // Set corresponding property to false for boolean attributes + if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) { + elem[ propName ] = false; + } + } + }; +jQuery.removeData = function( elem, name, pvt /* Internal Use Only */ ) { +/// +/// Remove a previously-stored piece of data. +/// +/// +/// A DOM element from which to remove data. +/// +/// +/// A string naming the piece of data to remove. +/// +/// + + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, + + // Reference to internal data cache key + internalKey = jQuery.expando, + + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + + // See jQuery.data for more information + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ]; + + if ( thisCache ) { + + // Support interoperable removal of hyphenated or camelcased keys + if ( !thisCache[ name ] ) { + name = jQuery.camelCase( name ); + } + + delete thisCache[ name ]; + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( !isEmptyDataObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( pvt ) { + delete cache[ id ][ internalKey ]; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject(cache[ id ]) ) { + return; + } + } + + var internalCache = cache[ id ][ internalKey ]; + + // Browsers that fail expando deletion also refuse to delete expandos on + // the window, but it will allow it on all other JS objects; other browsers + // don't care + // Ensure that `cache` is not a window object #10080 + if ( jQuery.support.deleteExpando || !cache.setInterval ) { + delete cache[ id ]; + } else { + cache[ id ] = null; + } + + // We destroyed the entire user cache at once because it's faster than + // iterating through each key, but we need to continue to persist internal + // data if it existed + if ( internalCache ) { + cache[ id ] = {}; + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + + cache[ id ][ internalKey ] = internalCache; + + // Otherwise, we need to eliminate the expando on the node to avoid + // false lookups in the cache for entries that no longer exist + } else if ( isNode ) { + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( jQuery.support.deleteExpando ) { + delete elem[ jQuery.expando ]; + } else if ( elem.removeAttribute ) { + elem.removeAttribute( jQuery.expando ); + } else { + elem[ jQuery.expando ] = null; + } + } + }; +jQuery.removeEvent = function( elem, type, handle ) { + + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + }; +jQuery.sibling = function( n, elem ) { + + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + }; +jQuery.speed = function( speed, easing, fn ) { + + var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : { + complete: fn || !fn && easing || + jQuery.isFunction( speed ) && speed, + duration: speed, + easing: fn && easing || easing && !jQuery.isFunction(easing) && easing + }; + + opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : + opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default; + + // Queueing + opt.old = opt.complete; + opt.complete = function( noUnmark ) { + if ( jQuery.isFunction( opt.old ) ) { + opt.old.call( this ); + } + + if ( opt.queue !== false ) { + jQuery.dequeue( this ); + } else if ( noUnmark !== false ) { + jQuery._unmark( this ); + } + }; + + return opt; + }; +jQuery.style = function( elem, name, value, extra ) { + + // Don't set styles on text and comment nodes + if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { + return; + } + + // Make sure that we're working with the right name + var ret, type, origName = jQuery.camelCase( name ), + style = elem.style, hooks = jQuery.cssHooks[ origName ]; + + name = jQuery.cssProps[ origName ] || origName; + + // Check if we're setting a value + if ( value !== undefined ) { + type = typeof value; + + // convert relative number strings (+= or -=) to relative numbers. #7345 + if ( type === "string" && (ret = rrelNum.exec( value )) ) { + value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) ); + // Fixes bug #9237 + type = "number"; + } + + // Make sure that NaN and null values aren't set. See: #7116 + if ( value == null || type === "number" && isNaN( value ) ) { + return; + } + + // If a number was passed in, add 'px' to the (except for certain CSS properties) + if ( type === "number" && !jQuery.cssNumber[ origName ] ) { + value += "px"; + } + + // If a hook was provided, use that value, otherwise just set the specified value + if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) { + // Wrapped to prevent IE from throwing errors when 'invalid' values are provided + // Fixes bug #5509 + try { + style[ name ] = value; + } catch(e) {} + } + + } else { + // If a hook was provided get the non-computed value from there + if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { + return ret; + } + + // Otherwise just get the value from the style object + return style[ name ]; + } + }; +jQuery.sub = function() { +/// +/// Creates a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object. +/// +/// + + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }; +jQuery.support = { "leadingWhitespace": true, +"tbody": true, +"htmlSerialize": true, +"style": true, +"hrefNormalized": true, +"opacity": true, +"cssFloat": true, +"checkOn": true, +"optSelected": false, +"getSetAttribute": true, +"submitBubbles": true, +"changeBubbles": true, +"focusinBubbles": true, +"deleteExpando": true, +"noCloneEvent": true, +"inlineBlockNeedsLayout": false, +"shrinkWrapBlocks": false, +"reliableMarginRight": true, +"noCloneChecked": false, +"optDisabled": true, +"radioValue": false, +"checkClone": false, +"appendChecked": true, +"boxModel": true, +"reliableHiddenOffsets": true, +"ajax": true, +"cors": false }; +jQuery.swap = function( elem, options, callback ) { + + var old = {}; + + // Remember the old values, and insert the new ones + for ( var name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + callback.call( elem ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + }; +jQuery.text = function( elems ) { + + var ret = "", elem; + + for ( var i = 0; elems[i]; i++ ) { + elem = elems[i]; + + // Get the text from text nodes and CDATA nodes + if ( elem.nodeType === 3 || elem.nodeType === 4 ) { + ret += elem.nodeValue; + + // Traverse everything else, except comment nodes + } else if ( elem.nodeType !== 8 ) { + ret += Sizzle.getText( elem.childNodes ); + } + } + + return ret; +}; +jQuery.trim = function( text ) { +/// +/// Remove the whitespace from the beginning and end of a string. +/// +/// +/// The string to trim. +/// +/// + + return text == null ? + "" : + trim.call( text ); + }; +jQuery.type = function( obj ) { +/// +/// Determine the internal JavaScript [[Class]] of an object. +/// +/// +/// Object to get the internal JavaScript [[Class]] of. +/// +/// + + return obj == null ? + String( obj ) : + class2type[ toString.call(obj) ] || "object"; + }; +jQuery.uaMatch = function( ua ) { + + ua = ua.toLowerCase(); + + var match = rwebkit.exec( ua ) || + ropera.exec( ua ) || + rmsie.exec( ua ) || + ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || + []; + + return { browser: match[1] || "", version: match[2] || "0" }; + }; +jQuery.unique = function( results ) { +/// +/// Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers. +/// +/// +/// The Array of DOM elements. +/// +/// + + if ( sortOrder ) { + hasDuplicate = baseHasDuplicate; + results.sort( sortOrder ); + + if ( hasDuplicate ) { + for ( var i = 1; i < results.length; i++ ) { + if ( results[i] === results[ i - 1 ] ) { + results.splice( i--, 1 ); + } + } + } + } + + return results; +}; +jQuery.uuid = 0; +jQuery.valHooks = { "option": {}, +"select": {}, +"radio": {}, +"checkbox": {} }; +jQuery.when = function( firstParam ) { +/// +/// Provides a way to execute callback functions based on one or more objects, usually Deferred objects that represent asynchronous events. +/// +/// +/// One or more Deferred objects, or plain JavaScript objects. +/// +/// + + var args = arguments, + i = 0, + length = args.length, + count = length, + deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ? + firstParam : + jQuery.Deferred(); + function resolveFunc( i ) { + return function( value ) { + args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; + if ( !( --count ) ) { + // Strange bug in FF4: + // Values changed onto the arguments object sometimes end up as undefined values + // outside the $.when method. Cloning the object into a fresh array solves the issue + deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) ); + } + }; + } + if ( length > 1 ) { + for( ; i < length; i++ ) { + if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) { + args[ i ].promise().then( resolveFunc(i), deferred.reject ); + } else { + --count; + } + } + if ( !count ) { + deferred.resolveWith( deferred, args ); + } + } else if ( deferred !== firstParam ) { + deferred.resolveWith( deferred, length ? [ firstParam ] : [] ); + } + return deferred.promise(); + }; +jQuery.Event.prototype.isDefaultPrevented = function returnFalse() { +/// +/// Returns whether event.preventDefault() was ever called on this event object. +/// +/// + + return false; +}; +jQuery.Event.prototype.isImmediatePropagationStopped = function returnFalse() { +/// +/// Returns whether event.stopImmediatePropagation() was ever called on this event object. +/// +/// + + return false; +}; +jQuery.Event.prototype.isPropagationStopped = function returnFalse() { +/// +/// Returns whether event.stopPropagation() was ever called on this event object. +/// +/// + + return false; +}; +jQuery.Event.prototype.preventDefault = function() { +/// +/// If this method is called, the default action of the event will not be triggered. +/// +/// + + this.isDefaultPrevented = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + + // if preventDefault exists run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // otherwise set the returnValue property of the original event to false (IE) + } else { + e.returnValue = false; + } + }; +jQuery.Event.prototype.stopImmediatePropagation = function() { +/// +/// Keeps the rest of the handlers from being executed and prevents the event from bubbling up the DOM tree. +/// + + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + }; +jQuery.Event.prototype.stopPropagation = function() { +/// +/// Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. +/// + + this.isPropagationStopped = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + // if stopPropagation exists run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + // otherwise set the cancelBubble property of the original event to true (IE) + e.cancelBubble = true; + }; +jQuery.prototype._toggle = function( fn ) { + + // Save reference to arguments for access in closure + var args = arguments, + guid = fn.guid || jQuery.guid++, + i = 0, + toggler = function( event ) { + // Figure out which function to execute + var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i; + jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 ); + + // Make sure that clicks stop + event.preventDefault(); + + // and execute the function + return args[ lastToggle ].apply( this, arguments ) || false; + }; + + // link all the functions, so any of them can unbind this click handler + toggler.guid = guid; + while ( i < args.length ) { + args[ i++ ].guid = guid; + } + + return this.click( toggler ); + }; +jQuery.prototype.add = function( selector, context ) { +/// +/// Add elements to the set of matched elements. +/// 1 - add(selector) +/// 2 - add(elements) +/// 3 - add(html) +/// 4 - add(jQuery object) +/// 5 - add(selector, context) +/// +/// +/// A string representing a selector expression to find additional elements to add to the set of matched elements. +/// +/// +/// The point in the document at which the selector should begin matching; similar to the context argument of the $(selector, context) method. +/// +/// + + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? + all : + jQuery.unique( all ) ); + }; +jQuery.prototype.addClass = function( value ) { +/// +/// Adds the specified class(es) to each of the set of matched elements. +/// 1 - addClass(className) +/// 2 - addClass(function(index, currentClass)) +/// +/// +/// One or more class names to be added to the class attribute of each matched element. +/// +/// + + var classNames, i, l, elem, + setClass, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call(this, j, this.className) ); + }); + } + + if ( value && typeof value === "string" ) { + classNames = value.split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 ) { + if ( !elem.className && classNames.length === 1 ) { + elem.className = value; + + } else { + setClass = " " + elem.className + " "; + + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) { + setClass += classNames[ c ] + " "; + } + } + elem.className = jQuery.trim( setClass ); + } + } + } + } + + return this; + }; +jQuery.prototype.after = function() { +/// +/// Insert content, specified by the parameter, after each element in the set of matched elements. +/// 1 - after(content, content) +/// 2 - after(function(index)) +/// +/// +/// HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements. +/// +/// + + if ( this[0] && this[0].parentNode ) { + return this.domManip(arguments, false, function( elem ) { + this.parentNode.insertBefore( elem, this.nextSibling ); + }); + } else if ( arguments.length ) { + var set = this.pushStack( this, "after", arguments ); + set.push.apply( set, jQuery(arguments[0]).toArray() ); + return set; + } + }; +jQuery.prototype.ajaxComplete = function( f ){ +/// +/// Register a handler to be called when Ajax requests complete. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxError = function( f ){ +/// +/// Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxSend = function( f ){ +/// +/// Attach a function to be executed before an Ajax request is sent. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxStart = function( f ){ +/// +/// Register a handler to be called when the first Ajax request begins. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxStop = function( f ){ +/// +/// Register a handler to be called when all Ajax requests have completed. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.ajaxSuccess = function( f ){ +/// +/// Attach a function to be executed whenever an Ajax request completes successfully. This is an Ajax Event. +/// +/// +/// The function to be invoked. +/// +/// + + return this.bind( o, f ); + }; +jQuery.prototype.andSelf = function() { +/// +/// Add the previous set of elements on the stack to the current set. +/// +/// + + return this.add( this.prevObject ); + }; +jQuery.prototype.animate = function( prop, speed, easing, callback ) { +/// +/// Perform a custom animation of a set of CSS properties. +/// 1 - animate(properties, duration, easing, complete) +/// 2 - animate(properties, options) +/// +/// +/// A map of CSS properties that the animation will move toward. +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + var optall = jQuery.speed(speed, easing, callback); + + if ( jQuery.isEmptyObject( prop ) ) { + return this.each( optall.complete, [ false ] ); + } + + // Do not change referenced properties as per-property easing will be lost + prop = jQuery.extend( {}, prop ); + + return this[ optall.queue === false ? "each" : "queue" ](function() { + // XXX 'this' does not always have a nodeName when running the + // test suite + + if ( optall.queue === false ) { + jQuery._mark( this ); + } + + var opt = jQuery.extend( {}, optall ), + isElement = this.nodeType === 1, + hidden = isElement && jQuery(this).is(":hidden"), + name, val, p, + display, e, + parts, start, end, unit; + + // will store per property easing and be used to determine when an animation is complete + opt.animatedProperties = {}; + + for ( p in prop ) { + + // property name normalization + name = jQuery.camelCase( p ); + if ( p !== name ) { + prop[ name ] = prop[ p ]; + delete prop[ p ]; + } + + val = prop[ name ]; + + // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default) + if ( jQuery.isArray( val ) ) { + opt.animatedProperties[ name ] = val[ 1 ]; + val = prop[ name ] = val[ 0 ]; + } else { + opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing'; + } + + if ( val === "hide" && hidden || val === "show" && !hidden ) { + return opt.complete.call( this ); + } + + if ( isElement && ( name === "height" || name === "width" ) ) { + // Make sure that nothing sneaks out + // Record all 3 overflow attributes because IE does not + // change the overflow attribute when overflowX and + // overflowY are set to the same value + opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ]; + + // Set display property to inline-block for height/width + // animations on inline elements that are having width/height + // animated + if ( jQuery.css( this, "display" ) === "inline" && + jQuery.css( this, "float" ) === "none" ) { + if ( !jQuery.support.inlineBlockNeedsLayout ) { + this.style.display = "inline-block"; + + } else { + display = defaultDisplay( this.nodeName ); + + // inline-level elements accept inline-block; + // block-level elements need to be inline with layout + if ( display === "inline" ) { + this.style.display = "inline-block"; + + } else { + this.style.display = "inline"; + this.style.zoom = 1; + } + } + } + } + } + + if ( opt.overflow != null ) { + this.style.overflow = "hidden"; + } + + for ( p in prop ) { + e = new jQuery.fx( this, opt, p ); + val = prop[ p ]; + + if ( rfxtypes.test(val) ) { + e[ val === "toggle" ? hidden ? "show" : "hide" : val ](); + + } else { + parts = rfxnum.exec( val ); + start = e.cur(); + + if ( parts ) { + end = parseFloat( parts[2] ); + unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" ); + + // We need to compute starting value + if ( unit !== "px" ) { + jQuery.style( this, p, (end || 1) + unit); + start = ((end || 1) / e.cur()) * start; + jQuery.style( this, p, start + unit); + } + + // If a +=/-= token was provided, we're doing a relative animation + if ( parts[1] ) { + end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start; + } + + e.custom( start, end, unit ); + + } else { + e.custom( start, val, "" ); + } + } + } + + // For JS strict compliance + return true; + }); + }; +jQuery.prototype.append = function() { +/// +/// Insert content, specified by the parameter, to the end of each element in the set of matched elements. +/// 1 - append(content, content) +/// 2 - append(function(index, html)) +/// +/// +/// DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements. +/// +/// + + return this.domManip(arguments, true, function( elem ) { + if ( this.nodeType === 1 ) { + this.appendChild( elem ); + } + }); + }; +jQuery.prototype.appendTo = function( selector ) { +/// +/// Insert every element in the set of matched elements to the end of the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.attr = function( name, value ) { +/// +/// 1: Get the value of an attribute for the first element in the set of matched elements. +/// 1.1 - attr(attributeName) +/// 2: Set one or more attributes for the set of matched elements. +/// 2.1 - attr(attributeName, value) +/// 2.2 - attr(map) +/// 2.3 - attr(attributeName, function(index, attr)) +/// +/// +/// The name of the attribute to set. +/// +/// +/// A value to set for the attribute. +/// +/// + + return jQuery.access( this, name, value, true, jQuery.attr ); + }; +jQuery.prototype.before = function() { +/// +/// Insert content, specified by the parameter, before each element in the set of matched elements. +/// 1 - before(content, content) +/// 2 - before(function) +/// +/// +/// HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements. +/// +/// + + if ( this[0] && this[0].parentNode ) { + return this.domManip(arguments, false, function( elem ) { + this.parentNode.insertBefore( elem, this ); + }); + } else if ( arguments.length ) { + var set = jQuery(arguments[0]); + set.push.apply( set, this.toArray() ); + return this.pushStack( set, "before", arguments ); + } + }; +jQuery.prototype.bind = function( type, data, fn ) { +/// +/// Attach a handler to an event for the elements. +/// 1 - bind(eventType, eventData, handler(eventObject)) +/// 2 - bind(eventType, eventData, preventBubble) +/// 3 - bind(events) +/// +/// +/// A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + var handler; + + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( arguments.length === 2 || data === false ) { + fn = data; + data = undefined; + } + + if ( name === "one" ) { + handler = function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }; + handler.guid = fn.guid || jQuery.guid++; + } else { + handler = fn; + } + + if ( type === "unload" && name !== "one" ) { + this.one( type, data, fn ); + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.add( this[i], type, handler, data ); + } + } + + return this; + }; +jQuery.prototype.blur = function( data, fn ) { +/// +/// Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. +/// 1 - blur(handler(eventObject)) +/// 2 - blur(eventData, handler(eventObject)) +/// 3 - blur() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.change = function( data, fn ) { +/// +/// Bind an event handler to the "change" JavaScript event, or trigger that event on an element. +/// 1 - change(handler(eventObject)) +/// 2 - change(eventData, handler(eventObject)) +/// 3 - change() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.children = function( until, selector ) { +/// +/// Get the children of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.clearQueue = function( type ) { +/// +/// Remove from the queue all items that have not yet been run. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + return this.queue( type || "fx", [] ); + }; +jQuery.prototype.click = function( data, fn ) { +/// +/// Bind an event handler to the "click" JavaScript event, or trigger that event on an element. +/// 1 - click(handler(eventObject)) +/// 2 - click(eventData, handler(eventObject)) +/// 3 - click() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.clone = function( dataAndEvents, deepDataAndEvents ) { +/// +/// Create a deep copy of the set of matched elements. +/// 1 - clone(withDataAndEvents) +/// 2 - clone(withDataAndEvents, deepWithDataAndEvents) +/// +/// +/// A Boolean indicating whether event handlers and data should be copied along with the elements. The default value is false. *In jQuery 1.5.0 the default value was incorrectly true; it was changed back to false in 1.5.1 and up. +/// +/// +/// A Boolean indicating whether event handlers and data for all children of the cloned element should be copied. By default its value matches the first argument's value (which defaults to false). +/// +/// + + dataAndEvents = dataAndEvents == null ? false : dataAndEvents; + deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; + + return this.map( function () { + return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); + }); + }; +jQuery.prototype.closest = function( selectors, context ) { +/// +/// 1: Get the first ancestor element that matches the selector, beginning at the current element and progressing up through the DOM tree. +/// 1.1 - closest(selector) +/// 1.2 - closest(selector, context) +/// 1.3 - closest(jQuery object) +/// 1.4 - closest(element) +/// 2: Gets an array of all the elements and selectors matched against the current element up through the DOM tree. +/// 2.1 - closest(selectors, context) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// +/// A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead. +/// +/// + + var ret = [], i, l, cur = this[0]; + + // Array + if ( jQuery.isArray( selectors ) ) { + var match, selector, + matches = {}, + level = 1; + + if ( cur && selectors.length ) { + for ( i = 0, l = selectors.length; i < l; i++ ) { + selector = selectors[i]; + + if ( !matches[ selector ] ) { + matches[ selector ] = POS.test( selector ) ? + jQuery( selector, context || this.context ) : + selector; + } + } + + while ( cur && cur.ownerDocument && cur !== context ) { + for ( selector in matches ) { + match = matches[ selector ]; + + if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) { + ret.push({ selector: selector, elem: cur, level: level }); + } + } + + cur = cur.parentNode; + level++; + } + } + + return ret; + } + + // String + var pos = POS.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( i = 0, l = this.length; i < l; i++ ) { + cur = this[i]; + + while ( cur ) { + if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { + ret.push( cur ); + break; + + } else { + cur = cur.parentNode; + if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) { + break; + } + } + } + } + + ret = ret.length > 1 ? jQuery.unique( ret ) : ret; + + return this.pushStack( ret, "closest", selectors ); + }; +jQuery.prototype.constructor = function( selector, context ) { + + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }; +jQuery.prototype.contents = function( until, selector ) { +/// +/// Get the children of each element in the set of matched elements, including text and comment nodes. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.css = function( name, value ) { +/// +/// 1: Get the value of a style property for the first element in the set of matched elements. +/// 1.1 - css(propertyName) +/// 2: Set one or more CSS properties for the set of matched elements. +/// 2.1 - css(propertyName, value) +/// 2.2 - css(propertyName, function(index, value)) +/// 2.3 - css(map) +/// +/// +/// A CSS property name. +/// +/// +/// A value to set for the property. +/// +/// + + // Setting 'undefined' is a no-op + if ( arguments.length === 2 && value === undefined ) { + return this; + } + + return jQuery.access( this, name, value, true, function( elem, name, value ) { + return value !== undefined ? + jQuery.style( elem, name, value ) : + jQuery.css( elem, name ); + }); +}; +jQuery.prototype.data = function( key, value ) { +/// +/// 1: Store arbitrary data associated with the matched elements. +/// 1.1 - data(key, value) +/// 1.2 - data(obj) +/// 2: Returns value at named data store for the first element in the jQuery collection, as set by data(name, value). +/// 2.1 - data(key) +/// 2.2 - data() +/// +/// +/// A string naming the piece of data to set. +/// +/// +/// The new data value; it can be any Javascript type including Array or Object. +/// +/// + + var data = null; + + if ( typeof key === "undefined" ) { + if ( this.length ) { + data = jQuery.data( this[0] ); + + if ( this[0].nodeType === 1 ) { + var attr = this[0].attributes, name; + for ( var i = 0, l = attr.length; i < l; i++ ) { + name = attr[i].name; + + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.substring(5) ); + + dataAttr( this[0], name, data[ name ] ); + } + } + } + } + + return data; + + } else if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + // Try to fetch any internally stored data first + if ( data === undefined && this.length ) { + data = jQuery.data( this[0], key ); + data = dataAttr( this[0], key, data ); + } + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + + } else { + return this.each(function() { + var $this = jQuery( this ), + args = [ parts[0], value ]; + + $this.triggerHandler( "setData" + parts[1] + "!", args ); + jQuery.data( this, key, value ); + $this.triggerHandler( "changeData" + parts[1] + "!", args ); + }); + } + }; +jQuery.prototype.dblclick = function( data, fn ) { +/// +/// Bind an event handler to the "dblclick" JavaScript event, or trigger that event on an element. +/// 1 - dblclick(handler(eventObject)) +/// 2 - dblclick(eventData, handler(eventObject)) +/// 3 - dblclick() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.delay = function( time, type ) { +/// +/// Set a timer to delay execution of subsequent items in the queue. +/// +/// +/// An integer indicating the number of milliseconds to delay execution of the next item in the queue. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; + type = type || "fx"; + + return this.queue( type, function() { + var elem = this; + setTimeout(function() { + jQuery.dequeue( elem, type ); + }, time ); + }); + }; +jQuery.prototype.delegate = function( selector, types, data, fn ) { +/// +/// Attach a handler to one or more events for all elements that match the selector, now or in the future, based on a specific set of root elements. +/// 1 - delegate(selector, eventType, handler) +/// 2 - delegate(selector, eventType, eventData, handler) +/// 3 - delegate(selector, events) +/// +/// +/// A selector to filter the elements that trigger the event. +/// +/// +/// A string containing one or more space-separated JavaScript event types, such as "click" or "keydown," or custom event names. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + return this.live( types, data, fn, selector ); + }; +jQuery.prototype.dequeue = function( type ) { +/// +/// Execute the next function on the queue for the matched elements. +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// + + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }; +jQuery.prototype.detach = function( selector ) { +/// +/// Remove the set of matched elements from the DOM. +/// +/// +/// A selector expression that filters the set of matched elements to be removed. +/// +/// + + return this.remove( selector, true ); + }; +jQuery.prototype.die = function( types, data, fn, origSelector /* Internal Use Only */ ) { +/// +/// 1: Remove all event handlers previously attached using .live() from the elements. +/// 1.1 - die() +/// 2: Remove an event handler previously attached using .live() from the elements. +/// 2.1 - die(eventType, handler) +/// 2.2 - die(eventTypes) +/// +/// +/// A string containing a JavaScript event type, such as click or keydown. +/// +/// +/// The function that is no longer to be executed. +/// +/// + + var type, i = 0, match, namespaces, preType, + selector = origSelector || this.selector, + context = origSelector ? this : jQuery( this.context ); + + if ( typeof types === "object" && !types.preventDefault ) { + for ( var key in types ) { + context[ name ]( key, data, types[key], selector ); + } + + return this; + } + + if ( name === "die" && !types && + origSelector && origSelector.charAt(0) === "." ) { + + context.unbind( origSelector ); + + return this; + } + + if ( data === false || jQuery.isFunction( data ) ) { + fn = data || returnFalse; + data = undefined; + } + + types = (types || "").split(" "); + + while ( (type = types[ i++ ]) != null ) { + match = rnamespaces.exec( type ); + namespaces = ""; + + if ( match ) { + namespaces = match[0]; + type = type.replace( rnamespaces, "" ); + } + + if ( type === "hover" ) { + types.push( "mouseenter" + namespaces, "mouseleave" + namespaces ); + continue; + } + + preType = type; + + if ( liveMap[ type ] ) { + types.push( liveMap[ type ] + namespaces ); + type = type + namespaces; + + } else { + type = (liveMap[ type ] || type) + namespaces; + } + + if ( name === "live" ) { + // bind live handler + for ( var j = 0, l = context.length; j < l; j++ ) { + jQuery.event.add( context[j], "live." + liveConvert( type, selector ), + { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } ); + } + + } else { + // unbind live handler + context.unbind( "live." + liveConvert( type, selector ), fn ); + } + } + + return this; + }; +jQuery.prototype.domManip = function( args, table, callback ) { + + var results, first, fragment, parent, + value = args[0], + scripts = []; + + // We can't cloneNode fragments that contain checked, in WebKit + if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) { + return this.each(function() { + jQuery(this).domManip( args, table, callback, true ); + }); + } + + if ( jQuery.isFunction(value) ) { + return this.each(function(i) { + var self = jQuery(this); + args[0] = value.call(this, i, table ? self.html() : undefined); + self.domManip( args, table, callback ); + }); + } + + if ( this[0] ) { + parent = value && value.parentNode; + + // If we're in a fragment, just use that instead of building a new one + if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) { + results = { fragment: parent }; + + } else { + results = jQuery.buildFragment( args, this, scripts ); + } + + fragment = results.fragment; + + if ( fragment.childNodes.length === 1 ) { + first = fragment = fragment.firstChild; + } else { + first = fragment.firstChild; + } + + if ( first ) { + table = table && jQuery.nodeName( first, "tr" ); + + for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) { + callback.call( + table ? + root(this[i], first) : + this[i], + // Make sure that we do not leak memory by inadvertently discarding + // the original fragment (which might have attached data) instead of + // using it; in addition, use the original fragment object for the last + // item instead of first because it can end up being emptied incorrectly + // in certain situations (Bug #8070). + // Fragments from the fragment cache must always be cloned and never used + // in place. + results.cacheable || (l > 1 && i < lastIndex) ? + jQuery.clone( fragment, true, true ) : + fragment + ); + } + } + + if ( scripts.length ) { + jQuery.each( scripts, evalScript ); + } + } + + return this; + }; +jQuery.prototype.each = function( callback, args ) { +/// +/// Iterate over a jQuery object, executing a function for each matched element. +/// +/// +/// A function to execute for each matched element. +/// +/// + + return jQuery.each( this, callback, args ); + }; +jQuery.prototype.empty = function() { +/// +/// Remove all child nodes of the set of matched elements from the DOM. +/// +/// + + for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { + // Remove element nodes and prevent memory leaks + if ( elem.nodeType === 1 ) { + jQuery.cleanData( elem.getElementsByTagName("*") ); + } + + // Remove any remaining nodes + while ( elem.firstChild ) { + elem.removeChild( elem.firstChild ); + } + } + + return this; + }; +jQuery.prototype.end = function() { +/// +/// End the most recent filtering operation in the current chain and return the set of matched elements to its previous state. +/// +/// + + return this.prevObject || this.constructor(null); + }; +jQuery.prototype.eq = function( i ) { +/// +/// Reduce the set of matched elements to the one at the specified index. +/// 1 - eq(index) +/// 2 - eq(-index) +/// +/// +/// An integer indicating the 0-based position of the element. +/// +/// + + return i === -1 ? + this.slice( i ) : + this.slice( i, +i + 1 ); + }; +jQuery.prototype.error = function( data, fn ) { +/// +/// Bind an event handler to the "error" JavaScript event. +/// 1 - error(handler(eventObject)) +/// 2 - error(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.extend = function() { + + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; +jQuery.prototype.fadeIn = function( speed, easing, callback ) { +/// +/// Display the matched elements by fading them to opaque. +/// 1 - fadeIn(duration, callback) +/// 2 - fadeIn(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.fadeOut = function( speed, easing, callback ) { +/// +/// Hide the matched elements by fading them to transparent. +/// 1 - fadeOut(duration, callback) +/// 2 - fadeOut(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.fadeTo = function( speed, to, easing, callback ) { +/// +/// Adjust the opacity of the matched elements. +/// 1 - fadeTo(duration, opacity, callback) +/// 2 - fadeTo(duration, opacity, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A number between 0 and 1 denoting the target opacity. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.filter(":hidden").css("opacity", 0).show().end() + .animate({opacity: to}, speed, easing, callback); + }; +jQuery.prototype.fadeToggle = function( speed, easing, callback ) { +/// +/// Display or hide the matched elements by animating their opacity. +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.filter = function( selector ) { +/// +/// Reduce the set of matched elements to those that match the selector or pass the function's test. +/// 1 - filter(selector) +/// 2 - filter(function(index)) +/// 3 - filter(element) +/// 4 - filter(jQuery object) +/// +/// +/// A string containing a selector expression to match the current set of elements against. +/// +/// + + return this.pushStack( winnow(this, selector, true), "filter", selector ); + }; +jQuery.prototype.find = function( selector ) { +/// +/// Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. +/// 1 - find(selector) +/// 2 - find(jQuery object) +/// 3 - find(element) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var self = this, + i, l; + + if ( typeof selector !== "string" ) { + return jQuery( selector ).filter(function() { + for ( i = 0, l = self.length; i < l; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }); + } + + var ret = this.pushStack( "", "find", selector ), + length, n, r; + + for ( i = 0, l = this.length; i < l; i++ ) { + length = ret.length; + jQuery.find( selector, this[i], ret ); + + if ( i > 0 ) { + // Make sure that the results are unique + for ( n = length; n < ret.length; n++ ) { + for ( r = 0; r < length; r++ ) { + if ( ret[r] === ret[n] ) { + ret.splice(n--, 1); + break; + } + } + } + } + } + + return ret; + }; +jQuery.prototype.first = function() { +/// +/// Reduce the set of matched elements to the first in the set. +/// +/// + + return this.eq( 0 ); + }; +jQuery.prototype.focus = function( data, fn ) { +/// +/// Bind an event handler to the "focus" JavaScript event, or trigger that event on an element. +/// 1 - focus(handler(eventObject)) +/// 2 - focus(eventData, handler(eventObject)) +/// 3 - focus() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.focusin = function( data, fn ) { +/// +/// Bind an event handler to the "focusin" JavaScript event. +/// 1 - focusin(handler(eventObject)) +/// 2 - focusin(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.focusout = function( data, fn ) { +/// +/// Bind an event handler to the "focusout" JavaScript event. +/// 1 - focusout(handler(eventObject)) +/// 2 - focusout(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.get = function( num ) { +/// +/// Retrieve the DOM elements matched by the jQuery object. +/// +/// +/// A zero-based integer indicating which element to retrieve. +/// +/// + + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }; +jQuery.prototype.has = function( target ) { +/// +/// Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. +/// 1 - has(selector) +/// 2 - has(contained) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var targets = jQuery( target ); + return this.filter(function() { + for ( var i = 0, l = targets.length; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }; +jQuery.prototype.hasClass = function( selector ) { +/// +/// Determine whether any of the matched elements are assigned the given class. +/// +/// +/// The class name to search for. +/// +/// + + var className = " " + selector + " "; + for ( var i = 0, l = this.length; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { + return true; + } + } + + return false; + }; +jQuery.prototype.height = function( size ) { +/// +/// 1: Get the current computed height for the first element in the set of matched elements. +/// 1.1 - height() +/// 2: Set the CSS height of every matched element. +/// 2.1 - height(value) +/// 2.2 - height(function(index, height)) +/// +/// +/// An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string). +/// +/// + + // Get window width or height + var elem = this[0]; + if ( !elem ) { + return size == null ? null : this; + } + + if ( jQuery.isFunction( size ) ) { + return this.each(function( i ) { + var self = jQuery( this ); + self[ type ]( size.call( this, i, self[ type ]() ) ); + }); + } + + if ( jQuery.isWindow( elem ) ) { + // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode + // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat + var docElemProp = elem.document.documentElement[ "client" + name ], + body = elem.document.body; + return elem.document.compatMode === "CSS1Compat" && docElemProp || + body && body[ "client" + name ] || docElemProp; + + // Get document width or height + } else if ( elem.nodeType === 9 ) { + // Either scroll[Width/Height] or offset[Width/Height], whichever is greater + return Math.max( + elem.documentElement["client" + name], + elem.body["scroll" + name], elem.documentElement["scroll" + name], + elem.body["offset" + name], elem.documentElement["offset" + name] + ); + + // Get or set width or height on the element + } else if ( size === undefined ) { + var orig = jQuery.css( elem, type ), + ret = parseFloat( orig ); + + return jQuery.isNaN( ret ) ? orig : ret; + + // Set the width or height on the element (default to pixels if value is unitless) + } else { + return this.css( type, typeof size === "string" ? size : size + "px" ); + } + }; +jQuery.prototype.hide = function( speed, easing, callback ) { +/// +/// Hide the matched elements. +/// 1 - hide() +/// 2 - hide(duration, callback) +/// 3 - hide(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + if ( speed || speed === 0 ) { + return this.animate( genFx("hide", 3), speed, easing, callback); + + } else { + for ( var i = 0, j = this.length; i < j; i++ ) { + if ( this[i].style ) { + var display = jQuery.css( this[i], "display" ); + + if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) { + jQuery._data( this[i], "olddisplay", display ); + } + } + } + + // Set the display of the elements in a second loop + // to avoid the constant reflow + for ( i = 0; i < j; i++ ) { + if ( this[i].style ) { + this[i].style.display = "none"; + } + } + + return this; + } + }; +jQuery.prototype.hover = function( fnOver, fnOut ) { +/// +/// 1: Bind two handlers to the matched elements, to be executed when the mouse pointer enters and leaves the elements. +/// 1.1 - hover(handlerIn(eventObject), handlerOut(eventObject)) +/// 2: Bind a single handler to the matched elements, to be executed when the mouse pointer enters or leaves the elements. +/// 2.1 - hover(handlerInOut(eventObject)) +/// +/// +/// A function to execute when the mouse pointer enters the element. +/// +/// +/// A function to execute when the mouse pointer leaves the element. +/// +/// + + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + }; +jQuery.prototype.html = function( value ) { +/// +/// 1: Get the HTML contents of the first element in the set of matched elements. +/// 1.1 - html() +/// 2: Set the HTML contents of each element in the set of matched elements. +/// 2.1 - html(htmlString) +/// 2.2 - html(function(index, oldhtml)) +/// +/// +/// A string of HTML to set as the content of each matched element. +/// +/// + + if ( value === undefined ) { + return this[0] && this[0].nodeType === 1 ? + this[0].innerHTML.replace(rinlinejQuery, "") : + null; + + // See if we can take a shortcut and just use innerHTML + } else if ( typeof value === "string" && !rnocache.test( value ) && + (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) && + !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) { + + value = value.replace(rxhtmlTag, "<$1>"); + + try { + for ( var i = 0, l = this.length; i < l; i++ ) { + // Remove element nodes and prevent memory leaks + if ( this[i].nodeType === 1 ) { + jQuery.cleanData( this[i].getElementsByTagName("*") ); + this[i].innerHTML = value; + } + } + + // If using innerHTML throws an exception, use the fallback method + } catch(e) { + this.empty().append( value ); + } + + } else if ( jQuery.isFunction( value ) ) { + this.each(function(i){ + var self = jQuery( this ); + + self.html( value.call(this, i, self.html()) ); + }); + + } else { + this.empty().append( value ); + } + + return this; + }; +jQuery.prototype.index = function( elem ) { +/// +/// Search for a given element from among the matched elements. +/// 1 - index() +/// 2 - index(selector) +/// 3 - index(element) +/// +/// +/// A selector representing a jQuery collection in which to look for an element. +/// +/// + + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }; +jQuery.prototype.init = function( selector, context, rootjQuery ) { + + var match, elem, ret, doc; + + // Handle $(""), $(null), or $(undefined) + if ( !selector ) { + return this; + } + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + } + + // The body element only exists once, optimize finding it + if ( selector === "body" && !context && document.body ) { + this.context = document; + this[0] = document.body; + this.selector = selector; + this.length = 1; + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + // Are we dealing with HTML string or an ID? + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = quickExpr.exec( selector ); + } + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + doc = (context ? context.ownerDocument || context : document); + + // If a single string is passed in and it's a single tag + // just do a createElement and skip the rest + ret = rsingleTag.exec( selector ); + + if ( ret ) { + if ( jQuery.isPlainObject( context ) ) { + selector = [ document.createElement( ret[1] ) ]; + jQuery.fn.attr.call( selector, context, true ); + + } else { + selector = [ doc.createElement( ret[1] ) ]; + } + + } else { + ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); + selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes; + } + + return jQuery.merge( this, selector ); + + // HANDLE: $("#id") + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return (context || rootjQuery).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if (selector.selector !== undefined) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }; +jQuery.prototype.innerHeight = function() { +/// +/// Get the current computed height for the first element in the set of matched elements, including padding but not border. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, "padding" ) ) : + null; + }; +jQuery.prototype.innerWidth = function() { +/// +/// Get the current computed width for the first element in the set of matched elements, including padding but not border. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, "padding" ) ) : + null; + }; +jQuery.prototype.insertAfter = function( selector ) { +/// +/// Insert every element in the set of matched elements after the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.insertBefore = function( selector ) { +/// +/// Insert every element in the set of matched elements before the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.is = function( selector ) { +/// +/// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. +/// 1 - is(selector) +/// 2 - is(function(index)) +/// 3 - is(jQuery object) +/// 4 - is(element) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + return !!selector && ( typeof selector === "string" ? + jQuery.filter( selector, this ).length > 0 : + this.filter( selector ).length > 0 ); + }; +jQuery.prototype.keydown = function( data, fn ) { +/// +/// Bind an event handler to the "keydown" JavaScript event, or trigger that event on an element. +/// 1 - keydown(handler(eventObject)) +/// 2 - keydown(eventData, handler(eventObject)) +/// 3 - keydown() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.keypress = function( data, fn ) { +/// +/// Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element. +/// 1 - keypress(handler(eventObject)) +/// 2 - keypress(eventData, handler(eventObject)) +/// 3 - keypress() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.keyup = function( data, fn ) { +/// +/// Bind an event handler to the "keyup" JavaScript event, or trigger that event on an element. +/// 1 - keyup(handler(eventObject)) +/// 2 - keyup(eventData, handler(eventObject)) +/// 3 - keyup() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.last = function() { +/// +/// Reduce the set of matched elements to the final one in the set. +/// +/// + + return this.eq( -1 ); + }; +jQuery.prototype.length = 0; +jQuery.prototype.live = function( types, data, fn, origSelector /* Internal Use Only */ ) { +/// +/// Attach a handler to the event for all elements which match the current selector, now and in the future. +/// 1 - live(eventType, handler) +/// 2 - live(eventType, eventData, handler) +/// 3 - live(events) +/// +/// +/// A string containing a JavaScript event type, such as "click" or "keydown." As of jQuery 1.4 the string can contain multiple, space-separated event types or custom event names, as well. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + var type, i = 0, match, namespaces, preType, + selector = origSelector || this.selector, + context = origSelector ? this : jQuery( this.context ); + + if ( typeof types === "object" && !types.preventDefault ) { + for ( var key in types ) { + context[ name ]( key, data, types[key], selector ); + } + + return this; + } + + if ( name === "die" && !types && + origSelector && origSelector.charAt(0) === "." ) { + + context.unbind( origSelector ); + + return this; + } + + if ( data === false || jQuery.isFunction( data ) ) { + fn = data || returnFalse; + data = undefined; + } + + types = (types || "").split(" "); + + while ( (type = types[ i++ ]) != null ) { + match = rnamespaces.exec( type ); + namespaces = ""; + + if ( match ) { + namespaces = match[0]; + type = type.replace( rnamespaces, "" ); + } + + if ( type === "hover" ) { + types.push( "mouseenter" + namespaces, "mouseleave" + namespaces ); + continue; + } + + preType = type; + + if ( liveMap[ type ] ) { + types.push( liveMap[ type ] + namespaces ); + type = type + namespaces; + + } else { + type = (liveMap[ type ] || type) + namespaces; + } + + if ( name === "live" ) { + // bind live handler + for ( var j = 0, l = context.length; j < l; j++ ) { + jQuery.event.add( context[j], "live." + liveConvert( type, selector ), + { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } ); + } + + } else { + // unbind live handler + context.unbind( "live." + liveConvert( type, selector ), fn ); + } + } + + return this; + }; +jQuery.prototype.load = function( url, params, callback ) { +/// +/// 1: Bind an event handler to the "load" JavaScript event. +/// 1.1 - load(handler(eventObject)) +/// 1.2 - load(eventData, handler(eventObject)) +/// 2: Load data from the server and place the returned HTML into the matched element. +/// 2.1 - load(url, data, complete(responseText, textStatus, XMLHttpRequest)) +/// +/// +/// A string containing the URL to which the request is sent. +/// +/// +/// A map or string that is sent to the server with the request. +/// +/// +/// A callback function that is executed when the request completes. +/// +/// + + if ( typeof url !== "string" && _load ) { + return _load.apply( this, arguments ); + + // Don't do a request if no elements are being requested + } else if ( !this.length ) { + return this; + } + + var off = url.indexOf( " " ); + if ( off >= 0 ) { + var selector = url.slice( off, url.length ); + url = url.slice( 0, off ); + } + + // Default to a GET request + var type = "GET"; + + // If the second parameter was provided + if ( params ) { + // If it's a function + if ( jQuery.isFunction( params ) ) { + // We assume that it's the callback + callback = params; + params = undefined; + + // Otherwise, build a param string + } else if ( typeof params === "object" ) { + params = jQuery.param( params, jQuery.ajaxSettings.traditional ); + type = "POST"; + } + } + + var self = this; + + // Request the remote document + jQuery.ajax({ + url: url, + type: type, + dataType: "html", + data: params, + // Complete callback (responseText is used internally) + complete: function( jqXHR, status, responseText ) { + // Store the response as specified by the jqXHR object + responseText = jqXHR.responseText; + // If successful, inject the HTML into all the matched elements + if ( jqXHR.isResolved() ) { + // #4825: Get the actual response in case + // a dataFilter is present in ajaxSettings + jqXHR.done(function( r ) { + responseText = r; + }); + // See if a selector was specified + self.html( selector ? + // Create a dummy div to hold the results + jQuery("
      ") + // inject the contents of the document in, removing the scripts + // to avoid any 'Permission Denied' errors in IE + .append(responseText.replace(rscript, "")) + + // Locate the specified elements + .find(selector) : + + // If not, just inject the full result + responseText ); + } + + if ( callback ) { + self.each( callback, [ responseText, status, jqXHR ] ); + } + } + }); + + return this; + }; +jQuery.prototype.map = function( callback ) { +/// +/// Pass each element in the current matched set through a function, producing a new jQuery object containing the return values. +/// +/// +/// A function object that will be invoked for each element in the current set. +/// +/// + + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }; +jQuery.prototype.mousedown = function( data, fn ) { +/// +/// Bind an event handler to the "mousedown" JavaScript event, or trigger that event on an element. +/// 1 - mousedown(handler(eventObject)) +/// 2 - mousedown(eventData, handler(eventObject)) +/// 3 - mousedown() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseenter = function( data, fn ) { +/// +/// Bind an event handler to be fired when the mouse enters an element, or trigger that handler on an element. +/// 1 - mouseenter(handler(eventObject)) +/// 2 - mouseenter(eventData, handler(eventObject)) +/// 3 - mouseenter() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseleave = function( data, fn ) { +/// +/// Bind an event handler to be fired when the mouse leaves an element, or trigger that handler on an element. +/// 1 - mouseleave(handler(eventObject)) +/// 2 - mouseleave(eventData, handler(eventObject)) +/// 3 - mouseleave() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mousemove = function( data, fn ) { +/// +/// Bind an event handler to the "mousemove" JavaScript event, or trigger that event on an element. +/// 1 - mousemove(handler(eventObject)) +/// 2 - mousemove(eventData, handler(eventObject)) +/// 3 - mousemove() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseout = function( data, fn ) { +/// +/// Bind an event handler to the "mouseout" JavaScript event, or trigger that event on an element. +/// 1 - mouseout(handler(eventObject)) +/// 2 - mouseout(eventData, handler(eventObject)) +/// 3 - mouseout() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseover = function( data, fn ) { +/// +/// Bind an event handler to the "mouseover" JavaScript event, or trigger that event on an element. +/// 1 - mouseover(handler(eventObject)) +/// 2 - mouseover(eventData, handler(eventObject)) +/// 3 - mouseover() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.mouseup = function( data, fn ) { +/// +/// Bind an event handler to the "mouseup" JavaScript event, or trigger that event on an element. +/// 1 - mouseup(handler(eventObject)) +/// 2 - mouseup(eventData, handler(eventObject)) +/// 3 - mouseup() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.next = function( until, selector ) { +/// +/// Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.nextAll = function( until, selector ) { +/// +/// Get all following siblings of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.nextUntil = function( until, selector ) { +/// +/// Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. +/// 1 - nextUntil(selector, filter) +/// 2 - nextUntil(element, filter) +/// +/// +/// A string containing a selector expression to indicate where to stop matching following sibling elements. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.not = function( selector ) { +/// +/// Remove elements from the set of matched elements. +/// 1 - not(selector) +/// 2 - not(elements) +/// 3 - not(function(index)) +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + return this.pushStack( winnow(this, selector, false), "not", selector); + }; +jQuery.prototype.offset = function( options ) { +/// +/// 1: Get the current coordinates of the first element in the set of matched elements, relative to the document. +/// 1.1 - offset() +/// 2: Set the current coordinates of every element in the set of matched elements, relative to the document. +/// 2.1 - offset(coordinates) +/// 2.2 - offset(function(index, coords)) +/// +/// +/// An object containing the properties top and left, which are integers indicating the new top and left coordinates for the elements. +/// +/// + + var elem = this[0], box; + + if ( options ) { + return this.each(function( i ) { + jQuery.offset.setOffset( this, options, i ); + }); + } + + if ( !elem || !elem.ownerDocument ) { + return null; + } + + if ( elem === elem.ownerDocument.body ) { + return jQuery.offset.bodyOffset( elem ); + } + + try { + box = elem.getBoundingClientRect(); + } catch(e) {} + + var doc = elem.ownerDocument, + docElem = doc.documentElement; + + // Make sure we're not dealing with a disconnected DOM node + if ( !box || !jQuery.contains( docElem, elem ) ) { + return box ? { top: box.top, left: box.left } : { top: 0, left: 0 }; + } + + var body = doc.body, + win = getWindow(doc), + clientTop = docElem.clientTop || body.clientTop || 0, + clientLeft = docElem.clientLeft || body.clientLeft || 0, + scrollTop = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop, + scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft, + top = box.top + scrollTop - clientTop, + left = box.left + scrollLeft - clientLeft; + + return { top: top, left: left }; + }; +jQuery.prototype.offsetParent = function() { +/// +/// Get the closest ancestor element that is positioned. +/// +/// + + return this.map(function() { + var offsetParent = this.offsetParent || document.body; + while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) { + offsetParent = offsetParent.offsetParent; + } + return offsetParent; + }); + }; +jQuery.prototype.one = function( type, data, fn ) { +/// +/// Attach a handler to an event for the elements. The handler is executed at most once per element. +/// +/// +/// A string containing one or more JavaScript event types, such as "click" or "submit," or custom event names. +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + var handler; + + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( arguments.length === 2 || data === false ) { + fn = data; + data = undefined; + } + + if ( name === "one" ) { + handler = function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }; + handler.guid = fn.guid || jQuery.guid++; + } else { + handler = fn; + } + + if ( type === "unload" && name !== "one" ) { + this.one( type, data, fn ); + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.add( this[i], type, handler, data ); + } + } + + return this; + }; +jQuery.prototype.outerHeight = function( margin ) { +/// +/// Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. +/// +/// +/// A Boolean indicating whether to include the element's margin in the calculation. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) : + null; + }; +jQuery.prototype.outerWidth = function( margin ) { +/// +/// Get the current computed width for the first element in the set of matched elements, including padding and border. +/// +/// +/// A Boolean indicating whether to include the element's margin in the calculation. +/// +/// + + var elem = this[0]; + return elem && elem.style ? + parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) : + null; + }; +jQuery.prototype.parent = function( until, selector ) { +/// +/// Get the parent of each element in the current set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.parents = function( until, selector ) { +/// +/// Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.parentsUntil = function( until, selector ) { +/// +/// Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. +/// 1 - parentsUntil(selector, filter) +/// 2 - parentsUntil(element, filter) +/// +/// +/// A string containing a selector expression to indicate where to stop matching ancestor elements. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.position = function() { +/// +/// Get the current coordinates of the first element in the set of matched elements, relative to the offset parent. +/// +/// + + if ( !this[0] ) { + return null; + } + + var elem = this[0], + + // Get *real* offsetParent + offsetParent = this.offsetParent(), + + // Get correct offsets + offset = this.offset(), + parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset(); + + // Subtract element margins + // note: when an element has margin: auto the offsetLeft and marginLeft + // are the same in Safari causing offset.left to incorrectly be 0 + offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0; + offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0; + + // Add offsetParent borders + parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0; + parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0; + + // Subtract the two offsets + return { + top: offset.top - parentOffset.top, + left: offset.left - parentOffset.left + }; + }; +jQuery.prototype.prepend = function() { +/// +/// Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. +/// 1 - prepend(content, content) +/// 2 - prepend(function(index, html)) +/// +/// +/// DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements. +/// +/// +/// One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements. +/// +/// + + return this.domManip(arguments, true, function( elem ) { + if ( this.nodeType === 1 ) { + this.insertBefore( elem, this.firstChild ); + } + }); + }; +jQuery.prototype.prependTo = function( selector ) { +/// +/// Insert every element in the set of matched elements to the beginning of the target. +/// +/// +/// A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.prev = function( until, selector ) { +/// +/// Get the immediately preceding sibling of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.prevAll = function( until, selector ) { +/// +/// Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.prevUntil = function( until, selector ) { +/// +/// Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. +/// 1 - prevUntil(selector, filter) +/// 2 - prevUntil(element, filter) +/// +/// +/// A string containing a selector expression to indicate where to stop matching preceding sibling elements. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.promise = function( type, object ) { +/// +/// Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished. +/// +/// +/// The type of queue that needs to be observed. +/// +/// +/// Object onto which the promise methods have to be attached +/// +/// + + if ( typeof type !== "string" ) { + object = type; + type = undefined; + } + type = type || "fx"; + var defer = jQuery.Deferred(), + elements = this, + i = elements.length, + count = 1, + deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + tmp; + function resolve() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + } + while( i-- ) { + if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) || + ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) || + jQuery.data( elements[ i ], markDataKey, undefined, true ) ) && + jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) { + count++; + tmp.done( resolve ); + } + } + resolve(); + return defer.promise(); + }; +jQuery.prototype.prop = function( name, value ) { +/// +/// 1: Get the value of a property for the first element in the set of matched elements. +/// 1.1 - prop(propertyName) +/// 2: Set one or more properties for the set of matched elements. +/// 2.1 - prop(propertyName, value) +/// 2.2 - prop(map) +/// 2.3 - prop(propertyName, function(index, oldPropertyValue)) +/// +/// +/// The name of the property to set. +/// +/// +/// A value to set for the property. +/// +/// + + return jQuery.access( this, name, value, true, jQuery.prop ); + }; +jQuery.prototype.pushStack = function( elems, name, selector ) { +/// +/// Add a collection of DOM elements onto the jQuery stack. +/// 1 - pushStack(elements) +/// 2 - pushStack(elements, name, arguments) +/// +/// +/// An array of elements to push onto the stack and make into a new jQuery object. +/// +/// +/// The name of a jQuery method that generated the array of elements. +/// +/// +/// The arguments that were passed in to the jQuery method (for serialization). +/// +/// + + // Build a new jQuery matched element set + var ret = this.constructor(); + + if ( jQuery.isArray( elems ) ) { + push.apply( ret, elems ); + + } else { + jQuery.merge( ret, elems ); + } + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + ret.context = this.context; + + if ( name === "find" ) { + ret.selector = this.selector + (this.selector ? " " : "") + selector; + } else if ( name ) { + ret.selector = this.selector + "." + name + "(" + selector + ")"; + } + + // Return the newly-formed element set + return ret; + }; +jQuery.prototype.queue = function( type, data ) { +/// +/// 1: Show the queue of functions to be executed on the matched elements. +/// 1.1 - queue(queueName) +/// 2: Manipulate the queue of functions to be executed on the matched elements. +/// 2.1 - queue(queueName, newQueue) +/// 2.2 - queue(queueName, callback( next )) +/// +/// +/// A string containing the name of the queue. Defaults to fx, the standard effects queue. +/// +/// +/// An array of functions to replace the current queue contents. +/// +/// + + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + } + + if ( data === undefined ) { + return jQuery.queue( this[0], type ); + } + return this.each(function() { + var queue = jQuery.queue( this, type, data ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }; +jQuery.prototype.ready = function( fn ) { +/// +/// Specify a function to execute when the DOM is fully loaded. +/// +/// +/// A function to execute after the DOM is ready. +/// +/// + + // Attach the listeners + jQuery.bindReady(); + + // Add the callback + readyList.done( fn ); + + return this; + }; +jQuery.prototype.remove = function( selector, keepData ) { +/// +/// Remove the set of matched elements from the DOM. +/// +/// +/// A selector expression that filters the set of matched elements to be removed. +/// +/// + + for ( var i = 0, elem; (elem = this[i]) != null; i++ ) { + if ( !selector || jQuery.filter( selector, [ elem ] ).length ) { + if ( !keepData && elem.nodeType === 1 ) { + jQuery.cleanData( elem.getElementsByTagName("*") ); + jQuery.cleanData( [ elem ] ); + } + + if ( elem.parentNode ) { + elem.parentNode.removeChild( elem ); + } + } + } + + return this; + }; +jQuery.prototype.removeAttr = function( name ) { +/// +/// Remove an attribute from each element in the set of matched elements. +/// +/// +/// An attribute to remove. +/// +/// + + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }; +jQuery.prototype.removeClass = function( value ) { +/// +/// Remove a single class, multiple classes, or all classes from each element in the set of matched elements. +/// 1 - removeClass(className) +/// 2 - removeClass(function(index, class)) +/// +/// +/// One or more space-separated classes to be removed from the class attribute of each matched element. +/// +/// + + var classNames, i, l, elem, className, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call(this, j, this.className) ); + }); + } + + if ( (value && typeof value === "string") || value === undefined ) { + classNames = (value || "").split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 && elem.className ) { + if ( value ) { + className = (" " + elem.className + " ").replace( rclass, " " ); + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + className = className.replace(" " + classNames[ c ] + " ", " "); + } + elem.className = jQuery.trim( className ); + + } else { + elem.className = ""; + } + } + } + } + + return this; + }; +jQuery.prototype.removeData = function( key ) { +/// +/// Remove a previously-stored piece of data. +/// +/// +/// A string naming the piece of data to delete. +/// +/// + + return this.each(function() { + jQuery.removeData( this, key ); + }); + }; +jQuery.prototype.removeProp = function( name ) { +/// +/// Remove a property for the set of matched elements. +/// +/// +/// The name of the property to set. +/// +/// + + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }; +jQuery.prototype.replaceAll = function( selector ) { +/// +/// Replace each target element with the set of matched elements. +/// +/// +/// A selector expression indicating which element(s) to replace. +/// +/// + + var ret = [], + insert = jQuery( selector ), + parent = this.length === 1 && this[0].parentNode; + + if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) { + insert[ original ]( this[0] ); + return this; + + } else { + for ( var i = 0, l = insert.length; i < l; i++ ) { + var elems = (i > 0 ? this.clone(true) : this).get(); + jQuery( insert[i] )[ original ]( elems ); + ret = ret.concat( elems ); + } + + return this.pushStack( ret, name, insert.selector ); + } + }; +jQuery.prototype.replaceWith = function( value ) { +/// +/// Replace each element in the set of matched elements with the provided new content. +/// 1 - replaceWith(newContent) +/// 2 - replaceWith(function) +/// +/// +/// The content to insert. May be an HTML string, DOM element, or jQuery object. +/// +/// + + if ( this[0] && this[0].parentNode ) { + // Make sure that the elements are removed from the DOM before they are inserted + // this can help fix replacing a parent with child elements + if ( jQuery.isFunction( value ) ) { + return this.each(function(i) { + var self = jQuery(this), old = self.html(); + self.replaceWith( value.call( this, i, old ) ); + }); + } + + if ( typeof value !== "string" ) { + value = jQuery( value ).detach(); + } + + return this.each(function() { + var next = this.nextSibling, + parent = this.parentNode; + + jQuery( this ).remove(); + + if ( next ) { + jQuery(next).before( value ); + } else { + jQuery(parent).append( value ); + } + }); + } else { + return this.length ? + this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) : + this; + } + }; +jQuery.prototype.resize = function( data, fn ) { +/// +/// Bind an event handler to the "resize" JavaScript event, or trigger that event on an element. +/// 1 - resize(handler(eventObject)) +/// 2 - resize(eventData, handler(eventObject)) +/// 3 - resize() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.scroll = function( data, fn ) { +/// +/// Bind an event handler to the "scroll" JavaScript event, or trigger that event on an element. +/// 1 - scroll(handler(eventObject)) +/// 2 - scroll(eventData, handler(eventObject)) +/// 3 - scroll() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.scrollLeft = function( val ) { +/// +/// 1: Get the current horizontal position of the scroll bar for the first element in the set of matched elements. +/// 1.1 - scrollLeft() +/// 2: Set the current horizontal position of the scroll bar for each of the set of matched elements. +/// 2.1 - scrollLeft(value) +/// +/// +/// An integer indicating the new position to set the scroll bar to. +/// +/// + + var elem, win; + + if ( val === undefined ) { + elem = this[ 0 ]; + + if ( !elem ) { + return null; + } + + win = getWindow( elem ); + + // Return the scroll offset + return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] : + jQuery.support.boxModel && win.document.documentElement[ method ] || + win.document.body[ method ] : + elem[ method ]; + } + + // Set the scroll offset + return this.each(function() { + win = getWindow( this ); + + if ( win ) { + win.scrollTo( + !i ? val : jQuery( win ).scrollLeft(), + i ? val : jQuery( win ).scrollTop() + ); + + } else { + this[ method ] = val; + } + }); + }; +jQuery.prototype.scrollTop = function( val ) { +/// +/// 1: Get the current vertical position of the scroll bar for the first element in the set of matched elements. +/// 1.1 - scrollTop() +/// 2: Set the current vertical position of the scroll bar for each of the set of matched elements. +/// 2.1 - scrollTop(value) +/// +/// +/// An integer indicating the new position to set the scroll bar to. +/// +/// + + var elem, win; + + if ( val === undefined ) { + elem = this[ 0 ]; + + if ( !elem ) { + return null; + } + + win = getWindow( elem ); + + // Return the scroll offset + return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] : + jQuery.support.boxModel && win.document.documentElement[ method ] || + win.document.body[ method ] : + elem[ method ]; + } + + // Set the scroll offset + return this.each(function() { + win = getWindow( this ); + + if ( win ) { + win.scrollTo( + !i ? val : jQuery( win ).scrollLeft(), + i ? val : jQuery( win ).scrollTop() + ); + + } else { + this[ method ] = val; + } + }); + }; +jQuery.prototype.select = function( data, fn ) { +/// +/// Bind an event handler to the "select" JavaScript event, or trigger that event on an element. +/// 1 - select(handler(eventObject)) +/// 2 - select(eventData, handler(eventObject)) +/// 3 - select() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.serialize = function() { +/// +/// Encode a set of form elements as a string for submission. +/// +/// + + return jQuery.param( this.serializeArray() ); + }; +jQuery.prototype.serializeArray = function() { +/// +/// Encode a set of form elements as an array of names and values. +/// +/// + + return this.map(function(){ + return this.elements ? jQuery.makeArray( this.elements ) : this; + }) + .filter(function(){ + return this.name && !this.disabled && + ( this.checked || rselectTextarea.test( this.nodeName ) || + rinput.test( this.type ) ); + }) + .map(function( i, elem ){ + var val = jQuery( this ).val(); + + return val == null ? + null : + jQuery.isArray( val ) ? + jQuery.map( val, function( val, i ){ + return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + }) : + { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; + }).get(); + }; +jQuery.prototype.show = function( speed, easing, callback ) { +/// +/// Display the matched elements. +/// 1 - show() +/// 2 - show(duration, callback) +/// 3 - show(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + var elem, display; + + if ( speed || speed === 0 ) { + return this.animate( genFx("show", 3), speed, easing, callback); + + } else { + for ( var i = 0, j = this.length; i < j; i++ ) { + elem = this[i]; + + if ( elem.style ) { + display = elem.style.display; + + // Reset the inline display of this element to learn if it is + // being hidden by cascaded rules or not + if ( !jQuery._data(elem, "olddisplay") && display === "none" ) { + display = elem.style.display = ""; + } + + // Set elements which have been overridden with display: none + // in a stylesheet to whatever the default browser style is + // for such an element + if ( display === "" && jQuery.css( elem, "display" ) === "none" ) { + jQuery._data(elem, "olddisplay", defaultDisplay(elem.nodeName)); + } + } + } + + // Set the display of most of the elements in a second loop + // to avoid the constant reflow + for ( i = 0; i < j; i++ ) { + elem = this[i]; + + if ( elem.style ) { + display = elem.style.display; + + if ( display === "" || display === "none" ) { + elem.style.display = jQuery._data(elem, "olddisplay") || ""; + } + } + } + + return this; + } + }; +jQuery.prototype.siblings = function( until, selector ) { +/// +/// Get the siblings of each element in the set of matched elements, optionally filtered by a selector. +/// +/// +/// A string containing a selector expression to match elements against. +/// +/// + + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +jQuery.prototype.size = function() { +/// +/// Return the number of elements in the jQuery object. +/// +/// + + return this.length; + }; +jQuery.prototype.slice = function() { +/// +/// Reduce the set of matched elements to a subset specified by a range of indices. +/// +/// +/// An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an offset from the end of the set. +/// +/// +/// An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an offset from the end of the set. If omitted, the range continues until the end of the set. +/// +/// + + return this.pushStack( slice.apply( this, arguments ), + "slice", slice.call(arguments).join(",") ); + }; +jQuery.prototype.slideDown = function( speed, easing, callback ) { +/// +/// Display the matched elements with a sliding motion. +/// 1 - slideDown(duration, callback) +/// 2 - slideDown(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.slideToggle = function( speed, easing, callback ) { +/// +/// Display or hide the matched elements with a sliding motion. +/// 1 - slideToggle(duration, callback) +/// 2 - slideToggle(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.slideUp = function( speed, easing, callback ) { +/// +/// Hide the matched elements with a sliding motion. +/// 1 - slideUp(duration, callback) +/// 2 - slideUp(duration, easing, callback) +/// +/// +/// A string or number determining how long the animation will run. +/// +/// +/// A string indicating which easing function to use for the transition. +/// +/// +/// A function to call once the animation is complete. +/// +/// + + return this.animate( props, speed, easing, callback ); + }; +jQuery.prototype.stop = function( clearQueue, gotoEnd ) { +/// +/// Stop the currently-running animation on the matched elements. +/// +/// +/// A Boolean indicating whether to remove queued animation as well. Defaults to false. +/// +/// +/// A Boolean indicating whether to complete the current animation immediately. Defaults to false. +/// +/// + + if ( clearQueue ) { + this.queue([]); + } + + this.each(function() { + var timers = jQuery.timers, + i = timers.length; + // clear marker counters if we know they won't be + if ( !gotoEnd ) { + jQuery._unmark( true, this ); + } + while ( i-- ) { + if ( timers[i].elem === this ) { + if (gotoEnd) { + // force the next step to be the last + timers[i](true); + } + + timers.splice(i, 1); + } + } + }); + + // start the next in the queue if the last step wasn't forced + if ( !gotoEnd ) { + this.dequeue(); + } + + return this; + }; +jQuery.prototype.submit = function( data, fn ) { +/// +/// Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. +/// 1 - submit(handler(eventObject)) +/// 2 - submit(eventData, handler(eventObject)) +/// 3 - submit() +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.text = function( text ) { +/// +/// 1: Get the combined text contents of each element in the set of matched elements, including their descendants. +/// 1.1 - text() +/// 2: Set the content of each element in the set of matched elements to the specified text. +/// 2.1 - text(textString) +/// 2.2 - text(function(index, text)) +/// +/// +/// A string of text to set as the content of each matched element. +/// +/// + + if ( jQuery.isFunction(text) ) { + return this.each(function(i) { + var self = jQuery( this ); + + self.text( text.call(this, i, self.text()) ); + }); + } + + if ( typeof text !== "object" && text !== undefined ) { + return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); + } + + return jQuery.text( this ); + }; +jQuery.prototype.toArray = function() { +/// +/// Retrieve all the DOM elements contained in the jQuery set, as an array. +/// +/// + + return slice.call( this, 0 ); + }; +jQuery.prototype.toggle = function( fn, fn2, callback ) { +/// +/// 1: Bind two or more handlers to the matched elements, to be executed on alternate clicks. +/// 1.1 - toggle(handler(eventObject), handler(eventObject), handler(eventObject)) +/// 2: Display or hide the matched elements. +/// 2.1 - toggle(duration, callback) +/// 2.2 - toggle(duration, easing, callback) +/// 2.3 - toggle(showOrHide) +/// +/// +/// A function to execute every even time the element is clicked. +/// +/// +/// A function to execute every odd time the element is clicked. +/// +/// +/// Additional handlers to cycle through after clicks. +/// +/// + + var bool = typeof fn === "boolean"; + + if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) { + this._toggle.apply( this, arguments ); + + } else if ( fn == null || bool ) { + this.each(function() { + var state = bool ? fn : jQuery(this).is(":hidden"); + jQuery(this)[ state ? "show" : "hide" ](); + }); + + } else { + this.animate(genFx("toggle", 3), fn, fn2, callback); + } + + return this; + }; +jQuery.prototype.toggleClass = function( value, stateVal ) { +/// +/// Add or remove one or more classes from each element in the set of matched elements, depending on either the class's presence or the value of the switch argument. +/// 1 - toggleClass(className) +/// 2 - toggleClass(className, switch) +/// 3 - toggleClass(function(index, class, switch), switch) +/// +/// +/// One or more class names (separated by spaces) to be toggled for each element in the matched set. +/// +/// +/// A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed. +/// +/// + + var type = typeof value, + isBool = typeof stateVal === "boolean"; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + state = stateVal, + classNames = value.split( rspace ); + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space seperated list + state = isBool ? state : !self.hasClass( className ); + self[ state ? "addClass" : "removeClass" ]( className ); + } + + } else if ( type === "undefined" || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // toggle whole className + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }; +jQuery.prototype.trigger = function( type, data ) { +/// +/// Execute all handlers and behaviors attached to the matched elements for the given event type. +/// 1 - trigger(eventType, extraParameters) +/// 2 - trigger(event) +/// +/// +/// A string containing a JavaScript event type, such as click or submit. +/// +/// +/// Additional parameters to pass along to the event handler. +/// +/// + + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }; +jQuery.prototype.triggerHandler = function( type, data ) { +/// +/// Execute all handlers attached to an element for an event. +/// +/// +/// A string containing a JavaScript event type, such as click or submit. +/// +/// +/// An array of additional parameters to pass along to the event handler. +/// +/// + + if ( this[0] ) { + return jQuery.event.trigger( type, data, this[0], true ); + } + }; +jQuery.prototype.unbind = function( type, fn ) { +/// +/// Remove a previously-attached event handler from the elements. +/// 1 - unbind(eventType, handler(eventObject)) +/// 2 - unbind(eventType, false) +/// 3 - unbind(event) +/// +/// +/// A string containing a JavaScript event type, such as click or submit. +/// +/// +/// The function that is to be no longer executed. +/// +/// + + // Handle object literals + if ( typeof type === "object" && !type.preventDefault ) { + for ( var key in type ) { + this.unbind(key, type[key]); + } + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.remove( this[i], type, fn ); + } + } + + return this; + }; +jQuery.prototype.undelegate = function( selector, types, fn ) { +/// +/// Remove a handler from the event for all elements which match the current selector, now or in the future, based upon a specific set of root elements. +/// 1 - undelegate() +/// 2 - undelegate(selector, eventType) +/// 3 - undelegate(selector, eventType, handler) +/// 4 - undelegate(selector, events) +/// 5 - undelegate(namespace) +/// +/// +/// A selector which will be used to filter the event results. +/// +/// +/// A string containing a JavaScript event type, such as "click" or "keydown" +/// +/// +/// A function to execute at the time the event is triggered. +/// +/// + + if ( arguments.length === 0 ) { + return this.unbind( "live" ); + + } else { + return this.die( types, null, fn, selector ); + } + }; +jQuery.prototype.unload = function( data, fn ) { +/// +/// Bind an event handler to the "unload" JavaScript event. +/// 1 - unload(handler(eventObject)) +/// 2 - unload(eventData, handler(eventObject)) +/// +/// +/// A map of data that will be passed to the event handler. +/// +/// +/// A function to execute each time the event is triggered. +/// +/// + + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; +jQuery.prototype.unwrap = function() { +/// +/// Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. +/// +/// + + return this.parent().each(function() { + if ( !jQuery.nodeName( this, "body" ) ) { + jQuery( this ).replaceWith( this.childNodes ); + } + }).end(); + }; +jQuery.prototype.val = function( value ) { +/// +/// 1: Get the current value of the first element in the set of matched elements. +/// 1.1 - val() +/// 2: Set the value of each element in the set of matched elements. +/// 2.1 - val(value) +/// 2.2 - val(function(index, value)) +/// +/// +/// A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked. +/// +/// + + var hooks, ret, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return undefined; + } + + var isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var self = jQuery(this), val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, self.val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + }; +jQuery.prototype.width = function( size ) { +/// +/// 1: Get the current computed width for the first element in the set of matched elements. +/// 1.1 - width() +/// 2: Set the CSS width of each element in the set of matched elements. +/// 2.1 - width(value) +/// 2.2 - width(function(index, width)) +/// +/// +/// An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string). +/// +/// + + // Get window width or height + var elem = this[0]; + if ( !elem ) { + return size == null ? null : this; + } + + if ( jQuery.isFunction( size ) ) { + return this.each(function( i ) { + var self = jQuery( this ); + self[ type ]( size.call( this, i, self[ type ]() ) ); + }); + } + + if ( jQuery.isWindow( elem ) ) { + // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode + // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat + var docElemProp = elem.document.documentElement[ "client" + name ], + body = elem.document.body; + return elem.document.compatMode === "CSS1Compat" && docElemProp || + body && body[ "client" + name ] || docElemProp; + + // Get document width or height + } else if ( elem.nodeType === 9 ) { + // Either scroll[Width/Height] or offset[Width/Height], whichever is greater + return Math.max( + elem.documentElement["client" + name], + elem.body["scroll" + name], elem.documentElement["scroll" + name], + elem.body["offset" + name], elem.documentElement["offset" + name] + ); + + // Get or set width or height on the element + } else if ( size === undefined ) { + var orig = jQuery.css( elem, type ), + ret = parseFloat( orig ); + + return jQuery.isNaN( ret ) ? orig : ret; + + // Set the width or height on the element (default to pixels if value is unitless) + } else { + return this.css( type, typeof size === "string" ? size : size + "px" ); + } + }; +jQuery.prototype.wrap = function( html ) { +/// +/// Wrap an HTML structure around each element in the set of matched elements. +/// 1 - wrap(wrappingElement) +/// 2 - wrap(function(index)) +/// +/// +/// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements. +/// +/// + + return this.each(function() { + jQuery( this ).wrapAll( html ); + }); + }; +jQuery.prototype.wrapAll = function( html ) { +/// +/// Wrap an HTML structure around all elements in the set of matched elements. +/// +/// +/// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements. +/// +/// + + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapAll( html.call(this, i) ); + }); + } + + if ( this[0] ) { + // The elements to wrap the target around + var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true); + + if ( this[0].parentNode ) { + wrap.insertBefore( this[0] ); + } + + wrap.map(function() { + var elem = this; + + while ( elem.firstChild && elem.firstChild.nodeType === 1 ) { + elem = elem.firstChild; + } + + return elem; + }).append( this ); + } + + return this; + }; +jQuery.prototype.wrapInner = function( html ) { +/// +/// Wrap an HTML structure around the content of each element in the set of matched elements. +/// 1 - wrapInner(wrappingElement) +/// 2 - wrapInner(function(index)) +/// +/// +/// An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the content of the matched elements. +/// +/// + + if ( jQuery.isFunction( html ) ) { + return this.each(function(i) { + jQuery(this).wrapInner( html.call(this, i) ); + }); + } + + return this.each(function() { + var self = jQuery( this ), + contents = self.contents(); + + if ( contents.length ) { + contents.wrapAll( html ); + + } else { + self.append( html ); + } + }); + }; +jQuery.fn = jQuery.prototype; +jQuery.fn.init.prototype = jQuery.fn; +window.jQuery = window.$ = jQuery; +})(window); \ No newline at end of file diff --git a/packages/jQuery.1.6.3/Content/Scripts/jquery-1.6.3.js b/packages/jQuery.1.6.3/Content/Scripts/jquery-1.6.3.js new file mode 100644 index 000000000..792e62f49 --- /dev/null +++ b/packages/jQuery.1.6.3/Content/Scripts/jquery-1.6.3.js @@ -0,0 +1,9044 @@ +/*! + * jQuery JavaScript Library v1.6.3 + * http://jquery.com/ + * + * Copyright 2011, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Wed Aug 31 10:35:15 2011 -0400 + */ +(function( window, undefined ) { + +// Use the correct document accordingly with window argument (sandbox) +var document = window.document, + navigator = window.navigator, + location = window.location; +var jQuery = (function() { + +// Define a local copy of jQuery +var jQuery = function( selector, context ) { + // The jQuery object is actually just the init constructor 'enhanced' + return new jQuery.fn.init( selector, context, rootjQuery ); + }, + + // Map over jQuery in case of overwrite + _jQuery = window.jQuery, + + // Map over the $ in case of overwrite + _$ = window.$, + + // A central reference to the root jQuery(document) + rootjQuery, + + // A simple way to check for HTML strings or ID strings + // Prioritize #id over to avoid XSS via location.hash (#9521) + quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, + + // Check if a string has a non-whitespace character in it + rnotwhite = /\S/, + + // Used for trimming whitespace + trimLeft = /^\s+/, + trimRight = /\s+$/, + + // Check for digits + rdigit = /\d/, + + // Match a standalone tag + rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, + + // JSON RegExp + rvalidchars = /^[\],:{}\s]*$/, + rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, + rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, + rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, + + // Useragent RegExp + rwebkit = /(webkit)[ \/]([\w.]+)/, + ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/, + rmsie = /(msie) ([\w.]+)/, + rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/, + + // Matches dashed string for camelizing + rdashAlpha = /-([a-z]|[0-9])/ig, + rmsPrefix = /^-ms-/, + + // Used by jQuery.camelCase as callback to replace() + fcamelCase = function( all, letter ) { + return ( letter + "" ).toUpperCase(); + }, + + // Keep a UserAgent string for use with jQuery.browser + userAgent = navigator.userAgent, + + // For matching the engine and version of the browser + browserMatch, + + // The deferred used on DOM ready + readyList, + + // The ready event handler + DOMContentLoaded, + + // Save a reference to some core methods + toString = Object.prototype.toString, + hasOwn = Object.prototype.hasOwnProperty, + push = Array.prototype.push, + slice = Array.prototype.slice, + trim = String.prototype.trim, + indexOf = Array.prototype.indexOf, + + // [[Class]] -> type pairs + class2type = {}; + +jQuery.fn = jQuery.prototype = { + constructor: jQuery, + init: function( selector, context, rootjQuery ) { + var match, elem, ret, doc; + + // Handle $(""), $(null), or $(undefined) + if ( !selector ) { + return this; + } + + // Handle $(DOMElement) + if ( selector.nodeType ) { + this.context = this[0] = selector; + this.length = 1; + return this; + } + + // The body element only exists once, optimize finding it + if ( selector === "body" && !context && document.body ) { + this.context = document; + this[0] = document.body; + this.selector = selector; + this.length = 1; + return this; + } + + // Handle HTML strings + if ( typeof selector === "string" ) { + // Are we dealing with HTML string or an ID? + if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { + // Assume that strings that start and end with <> are HTML and skip the regex check + match = [ null, selector, null ]; + + } else { + match = quickExpr.exec( selector ); + } + + // Verify a match, and that no context was specified for #id + if ( match && (match[1] || !context) ) { + + // HANDLE: $(html) -> $(array) + if ( match[1] ) { + context = context instanceof jQuery ? context[0] : context; + doc = (context ? context.ownerDocument || context : document); + + // If a single string is passed in and it's a single tag + // just do a createElement and skip the rest + ret = rsingleTag.exec( selector ); + + if ( ret ) { + if ( jQuery.isPlainObject( context ) ) { + selector = [ document.createElement( ret[1] ) ]; + jQuery.fn.attr.call( selector, context, true ); + + } else { + selector = [ doc.createElement( ret[1] ) ]; + } + + } else { + ret = jQuery.buildFragment( [ match[1] ], [ doc ] ); + selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes; + } + + return jQuery.merge( this, selector ); + + // HANDLE: $("#id") + } else { + elem = document.getElementById( match[2] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id !== match[2] ) { + return rootjQuery.find( selector ); + } + + // Otherwise, we inject the element directly into the jQuery object + this.length = 1; + this[0] = elem; + } + + this.context = document; + this.selector = selector; + return this; + } + + // HANDLE: $(expr, $(...)) + } else if ( !context || context.jquery ) { + return (context || rootjQuery).find( selector ); + + // HANDLE: $(expr, context) + // (which is just equivalent to: $(context).find(expr) + } else { + return this.constructor( context ).find( selector ); + } + + // HANDLE: $(function) + // Shortcut for document ready + } else if ( jQuery.isFunction( selector ) ) { + return rootjQuery.ready( selector ); + } + + if (selector.selector !== undefined) { + this.selector = selector.selector; + this.context = selector.context; + } + + return jQuery.makeArray( selector, this ); + }, + + // Start with an empty selector + selector: "", + + // The current version of jQuery being used + jquery: "1.6.3", + + // The default length of a jQuery object is 0 + length: 0, + + // The number of elements contained in the matched element set + size: function() { + return this.length; + }, + + toArray: function() { + return slice.call( this, 0 ); + }, + + // Get the Nth element in the matched element set OR + // Get the whole matched element set as a clean array + get: function( num ) { + return num == null ? + + // Return a 'clean' array + this.toArray() : + + // Return just the object + ( num < 0 ? this[ this.length + num ] : this[ num ] ); + }, + + // Take an array of elements and push it onto the stack + // (returning the new matched element set) + pushStack: function( elems, name, selector ) { + // Build a new jQuery matched element set + var ret = this.constructor(); + + if ( jQuery.isArray( elems ) ) { + push.apply( ret, elems ); + + } else { + jQuery.merge( ret, elems ); + } + + // Add the old object onto the stack (as a reference) + ret.prevObject = this; + + ret.context = this.context; + + if ( name === "find" ) { + ret.selector = this.selector + (this.selector ? " " : "") + selector; + } else if ( name ) { + ret.selector = this.selector + "." + name + "(" + selector + ")"; + } + + // Return the newly-formed element set + return ret; + }, + + // Execute a callback for every element in the matched set. + // (You can seed the arguments with an array of args, but this is + // only used internally.) + each: function( callback, args ) { + return jQuery.each( this, callback, args ); + }, + + ready: function( fn ) { + // Attach the listeners + jQuery.bindReady(); + + // Add the callback + readyList.done( fn ); + + return this; + }, + + eq: function( i ) { + return i === -1 ? + this.slice( i ) : + this.slice( i, +i + 1 ); + }, + + first: function() { + return this.eq( 0 ); + }, + + last: function() { + return this.eq( -1 ); + }, + + slice: function() { + return this.pushStack( slice.apply( this, arguments ), + "slice", slice.call(arguments).join(",") ); + }, + + map: function( callback ) { + return this.pushStack( jQuery.map(this, function( elem, i ) { + return callback.call( elem, i, elem ); + })); + }, + + end: function() { + return this.prevObject || this.constructor(null); + }, + + // For internal use only. + // Behaves like an Array's method, not like a jQuery method. + push: push, + sort: [].sort, + splice: [].splice +}; + +// Give the init function the jQuery prototype for later instantiation +jQuery.fn.init.prototype = jQuery.fn; + +jQuery.extend = jQuery.fn.extend = function() { + var options, name, src, copy, copyIsArray, clone, + target = arguments[0] || {}, + i = 1, + length = arguments.length, + deep = false; + + // Handle a deep copy situation + if ( typeof target === "boolean" ) { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + + // Handle case when target is a string or something (possible in deep copy) + if ( typeof target !== "object" && !jQuery.isFunction(target) ) { + target = {}; + } + + // extend jQuery itself if only one argument is passed + if ( length === i ) { + target = this; + --i; + } + + for ( ; i < length; i++ ) { + // Only deal with non-null/undefined values + if ( (options = arguments[ i ]) != null ) { + // Extend the base object + for ( name in options ) { + src = target[ name ]; + copy = options[ name ]; + + // Prevent never-ending loop + if ( target === copy ) { + continue; + } + + // Recurse if we're merging plain objects or arrays + if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { + if ( copyIsArray ) { + copyIsArray = false; + clone = src && jQuery.isArray(src) ? src : []; + + } else { + clone = src && jQuery.isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + target[ name ] = jQuery.extend( deep, clone, copy ); + + // Don't bring in undefined values + } else if ( copy !== undefined ) { + target[ name ] = copy; + } + } + } + } + + // Return the modified object + return target; +}; + +jQuery.extend({ + noConflict: function( deep ) { + if ( window.$ === jQuery ) { + window.$ = _$; + } + + if ( deep && window.jQuery === jQuery ) { + window.jQuery = _jQuery; + } + + return jQuery; + }, + + // Is the DOM ready to be used? Set to true once it occurs. + isReady: false, + + // A counter to track how many items to wait for before + // the ready event fires. See #6781 + readyWait: 1, + + // Hold (or release) the ready event + holdReady: function( hold ) { + if ( hold ) { + jQuery.readyWait++; + } else { + jQuery.ready( true ); + } + }, + + // Handle when the DOM is ready + ready: function( wait ) { + // Either a released hold or an DOMready/load event and not yet ready + if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( !document.body ) { + return setTimeout( jQuery.ready, 1 ); + } + + // Remember that the DOM is ready + jQuery.isReady = true; + + // If a normal DOM Ready event fired, decrement, and wait if need be + if ( wait !== true && --jQuery.readyWait > 0 ) { + return; + } + + // If there are functions bound, to execute + readyList.resolveWith( document, [ jQuery ] ); + + // Trigger any bound ready events + if ( jQuery.fn.trigger ) { + jQuery( document ).trigger( "ready" ).unbind( "ready" ); + } + } + }, + + bindReady: function() { + if ( readyList ) { + return; + } + + readyList = jQuery._Deferred(); + + // Catch cases where $(document).ready() is called after the + // browser event has already occurred. + if ( document.readyState === "complete" ) { + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 1 ); + } + + // Mozilla, Opera and webkit nightlies currently support this event + if ( document.addEventListener ) { + // Use the handy event callback + document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + + // A fallback to window.onload, that will always work + window.addEventListener( "load", jQuery.ready, false ); + + // If IE event model is used + } else if ( document.attachEvent ) { + // ensure firing before onload, + // maybe late but safe also for iframes + document.attachEvent( "onreadystatechange", DOMContentLoaded ); + + // A fallback to window.onload, that will always work + window.attachEvent( "onload", jQuery.ready ); + + // If IE and not a frame + // continually check to see if the document is ready + var toplevel = false; + + try { + toplevel = window.frameElement == null; + } catch(e) {} + + if ( document.documentElement.doScroll && toplevel ) { + doScrollCheck(); + } + } + }, + + // See test/unit/core.js for details concerning isFunction. + // Since version 1.3, DOM methods and functions like alert + // aren't supported. They return false on IE (#2968). + isFunction: function( obj ) { + return jQuery.type(obj) === "function"; + }, + + isArray: Array.isArray || function( obj ) { + return jQuery.type(obj) === "array"; + }, + + // A crude way of determining if an object is a window + isWindow: function( obj ) { + return obj && typeof obj === "object" && "setInterval" in obj; + }, + + isNaN: function( obj ) { + return obj == null || !rdigit.test( obj ) || isNaN( obj ); + }, + + type: function( obj ) { + return obj == null ? + String( obj ) : + class2type[ toString.call(obj) ] || "object"; + }, + + isPlainObject: function( obj ) { + // Must be an Object. + // Because of IE, we also have to check the presence of the constructor property. + // Make sure that DOM nodes and window objects don't pass through, as well + if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { + return false; + } + + try { + // Not own constructor property must be Object + if ( obj.constructor && + !hasOwn.call(obj, "constructor") && + !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) { + return false; + } + } catch ( e ) { + // IE8,9 Will throw exceptions on certain host objects #9897 + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + + var key; + for ( key in obj ) {} + + return key === undefined || hasOwn.call( obj, key ); + }, + + isEmptyObject: function( obj ) { + for ( var name in obj ) { + return false; + } + return true; + }, + + error: function( msg ) { + throw msg; + }, + + parseJSON: function( data ) { + if ( typeof data !== "string" || !data ) { + return null; + } + + // Make sure leading/trailing whitespace is removed (IE can't handle it) + data = jQuery.trim( data ); + + // Attempt to parse using the native JSON parser first + if ( window.JSON && window.JSON.parse ) { + return window.JSON.parse( data ); + } + + // Make sure the incoming data is actual JSON + // Logic borrowed from http://json.org/json2.js + if ( rvalidchars.test( data.replace( rvalidescape, "@" ) + .replace( rvalidtokens, "]" ) + .replace( rvalidbraces, "")) ) { + + return (new Function( "return " + data ))(); + + } + jQuery.error( "Invalid JSON: " + data ); + }, + + // Cross-browser xml parsing + parseXML: function( data ) { + var xml, tmp; + try { + if ( window.DOMParser ) { // Standard + tmp = new DOMParser(); + xml = tmp.parseFromString( data , "text/xml" ); + } else { // IE + xml = new ActiveXObject( "Microsoft.XMLDOM" ); + xml.async = "false"; + xml.loadXML( data ); + } + } catch( e ) { + xml = undefined; + } + if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) { + jQuery.error( "Invalid XML: " + data ); + } + return xml; + }, + + noop: function() {}, + + // Evaluates a script in a global context + // Workarounds based on findings by Jim Driscoll + // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context + globalEval: function( data ) { + if ( data && rnotwhite.test( data ) ) { + // We use execScript on Internet Explorer + // We use an anonymous function so that context is window + // rather than jQuery in Firefox + ( window.execScript || function( data ) { + window[ "eval" ].call( window, data ); + } )( data ); + } + }, + + // Convert dashed to camelCase; used by the css and data modules + // Microsoft forgot to hump their vendor prefix (#9572) + camelCase: function( string ) { + return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); + }, + + nodeName: function( elem, name ) { + return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase(); + }, + + // args is for internal usage only + each: function( object, callback, args ) { + var name, i = 0, + length = object.length, + isObj = length === undefined || jQuery.isFunction( object ); + + if ( args ) { + if ( isObj ) { + for ( name in object ) { + if ( callback.apply( object[ name ], args ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.apply( object[ i++ ], args ) === false ) { + break; + } + } + } + + // A special, fast, case for the most common use of each + } else { + if ( isObj ) { + for ( name in object ) { + if ( callback.call( object[ name ], name, object[ name ] ) === false ) { + break; + } + } + } else { + for ( ; i < length; ) { + if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) { + break; + } + } + } + } + + return object; + }, + + // Use native String.trim function wherever possible + trim: trim ? + function( text ) { + return text == null ? + "" : + trim.call( text ); + } : + + // Otherwise use our own trimming functionality + function( text ) { + return text == null ? + "" : + text.toString().replace( trimLeft, "" ).replace( trimRight, "" ); + }, + + // results is for internal usage only + makeArray: function( array, results ) { + var ret = results || []; + + if ( array != null ) { + // The window, strings (and functions) also have 'length' + // The extra typeof function check is to prevent crashes + // in Safari 2 (See: #3039) + // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930 + var type = jQuery.type( array ); + + if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) { + push.call( ret, array ); + } else { + jQuery.merge( ret, array ); + } + } + + return ret; + }, + + inArray: function( elem, array ) { + if ( !array ) { + return -1; + } + + if ( indexOf ) { + return indexOf.call( array, elem ); + } + + for ( var i = 0, length = array.length; i < length; i++ ) { + if ( array[ i ] === elem ) { + return i; + } + } + + return -1; + }, + + merge: function( first, second ) { + var i = first.length, + j = 0; + + if ( typeof second.length === "number" ) { + for ( var l = second.length; j < l; j++ ) { + first[ i++ ] = second[ j ]; + } + + } else { + while ( second[j] !== undefined ) { + first[ i++ ] = second[ j++ ]; + } + } + + first.length = i; + + return first; + }, + + grep: function( elems, callback, inv ) { + var ret = [], retVal; + inv = !!inv; + + // Go through the array, only saving the items + // that pass the validator function + for ( var i = 0, length = elems.length; i < length; i++ ) { + retVal = !!callback( elems[ i ], i ); + if ( inv !== retVal ) { + ret.push( elems[ i ] ); + } + } + + return ret; + }, + + // arg is for internal usage only + map: function( elems, callback, arg ) { + var value, key, ret = [], + i = 0, + length = elems.length, + // jquery objects are treated as arrays + isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ; + + // Go through the array, translating each of the items to their + if ( isArray ) { + for ( ; i < length; i++ ) { + value = callback( elems[ i ], i, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + + // Go through every key on the object, + } else { + for ( key in elems ) { + value = callback( elems[ key ], key, arg ); + + if ( value != null ) { + ret[ ret.length ] = value; + } + } + } + + // Flatten any nested arrays + return ret.concat.apply( [], ret ); + }, + + // A global GUID counter for objects + guid: 1, + + // Bind a function to a context, optionally partially applying any + // arguments. + proxy: function( fn, context ) { + if ( typeof context === "string" ) { + var tmp = fn[ context ]; + context = fn; + fn = tmp; + } + + // Quick check to determine if target is callable, in the spec + // this throws a TypeError, but we will just return undefined. + if ( !jQuery.isFunction( fn ) ) { + return undefined; + } + + // Simulated bind + var args = slice.call( arguments, 2 ), + proxy = function() { + return fn.apply( context, args.concat( slice.call( arguments ) ) ); + }; + + // Set the guid of unique handler to the same of original handler, so it can be removed + proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++; + + return proxy; + }, + + // Mutifunctional method to get and set values to a collection + // The value/s can optionally be executed if it's a function + access: function( elems, key, value, exec, fn, pass ) { + var length = elems.length; + + // Setting many attributes + if ( typeof key === "object" ) { + for ( var k in key ) { + jQuery.access( elems, k, key[k], exec, fn, value ); + } + return elems; + } + + // Setting one attribute + if ( value !== undefined ) { + // Optionally, function values get executed if exec is true + exec = !pass && exec && jQuery.isFunction(value); + + for ( var i = 0; i < length; i++ ) { + fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass ); + } + + return elems; + } + + // Getting an attribute + return length ? fn( elems[0], key ) : undefined; + }, + + now: function() { + return (new Date()).getTime(); + }, + + // Use of jQuery.browser is frowned upon. + // More details: http://docs.jquery.com/Utilities/jQuery.browser + uaMatch: function( ua ) { + ua = ua.toLowerCase(); + + var match = rwebkit.exec( ua ) || + ropera.exec( ua ) || + rmsie.exec( ua ) || + ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) || + []; + + return { browser: match[1] || "", version: match[2] || "0" }; + }, + + sub: function() { + function jQuerySub( selector, context ) { + return new jQuerySub.fn.init( selector, context ); + } + jQuery.extend( true, jQuerySub, this ); + jQuerySub.superclass = this; + jQuerySub.fn = jQuerySub.prototype = this(); + jQuerySub.fn.constructor = jQuerySub; + jQuerySub.sub = this.sub; + jQuerySub.fn.init = function init( selector, context ) { + if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) { + context = jQuerySub( context ); + } + + return jQuery.fn.init.call( this, selector, context, rootjQuerySub ); + }; + jQuerySub.fn.init.prototype = jQuerySub.fn; + var rootjQuerySub = jQuerySub(document); + return jQuerySub; + }, + + browser: {} +}); + +// Populate the class2type map +jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +}); + +browserMatch = jQuery.uaMatch( userAgent ); +if ( browserMatch.browser ) { + jQuery.browser[ browserMatch.browser ] = true; + jQuery.browser.version = browserMatch.version; +} + +// Deprecated, use jQuery.browser.webkit instead +if ( jQuery.browser.webkit ) { + jQuery.browser.safari = true; +} + +// IE doesn't match non-breaking spaces with \s +if ( rnotwhite.test( "\xA0" ) ) { + trimLeft = /^[\s\xA0]+/; + trimRight = /[\s\xA0]+$/; +} + +// All jQuery objects should point back to these +rootjQuery = jQuery(document); + +// Cleanup functions for the document ready method +if ( document.addEventListener ) { + DOMContentLoaded = function() { + document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false ); + jQuery.ready(); + }; + +} else if ( document.attachEvent ) { + DOMContentLoaded = function() { + // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443). + if ( document.readyState === "complete" ) { + document.detachEvent( "onreadystatechange", DOMContentLoaded ); + jQuery.ready(); + } + }; +} + +// The DOM ready check for Internet Explorer +function doScrollCheck() { + if ( jQuery.isReady ) { + return; + } + + try { + // If IE is used, use the trick by Diego Perini + // http://javascript.nwbox.com/IEContentLoaded/ + document.documentElement.doScroll("left"); + } catch(e) { + setTimeout( doScrollCheck, 1 ); + return; + } + + // and execute any waiting functions + jQuery.ready(); +} + +return jQuery; + +})(); + + +var // Promise methods + promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ), + // Static reference to slice + sliceDeferred = [].slice; + +jQuery.extend({ + // Create a simple deferred (one callbacks list) + _Deferred: function() { + var // callbacks list + callbacks = [], + // stored [ context , args ] + fired, + // to avoid firing when already doing so + firing, + // flag to know if the deferred has been cancelled + cancelled, + // the deferred itself + deferred = { + + // done( f1, f2, ...) + done: function() { + if ( !cancelled ) { + var args = arguments, + i, + length, + elem, + type, + _fired; + if ( fired ) { + _fired = fired; + fired = 0; + } + for ( i = 0, length = args.length; i < length; i++ ) { + elem = args[ i ]; + type = jQuery.type( elem ); + if ( type === "array" ) { + deferred.done.apply( deferred, elem ); + } else if ( type === "function" ) { + callbacks.push( elem ); + } + } + if ( _fired ) { + deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] ); + } + } + return this; + }, + + // resolve with given context and args + resolveWith: function( context, args ) { + if ( !cancelled && !fired && !firing ) { + // make sure args are available (#8421) + args = args || []; + firing = 1; + try { + while( callbacks[ 0 ] ) { + callbacks.shift().apply( context, args ); + } + } + finally { + fired = [ context, args ]; + firing = 0; + } + } + return this; + }, + + // resolve with this as context and given arguments + resolve: function() { + deferred.resolveWith( this, arguments ); + return this; + }, + + // Has this deferred been resolved? + isResolved: function() { + return !!( firing || fired ); + }, + + // Cancel + cancel: function() { + cancelled = 1; + callbacks = []; + return this; + } + }; + + return deferred; + }, + + // Full fledged deferred (two callbacks list) + Deferred: function( func ) { + var deferred = jQuery._Deferred(), + failDeferred = jQuery._Deferred(), + promise; + // Add errorDeferred methods, then and promise + jQuery.extend( deferred, { + then: function( doneCallbacks, failCallbacks ) { + deferred.done( doneCallbacks ).fail( failCallbacks ); + return this; + }, + always: function() { + return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments ); + }, + fail: failDeferred.done, + rejectWith: failDeferred.resolveWith, + reject: failDeferred.resolve, + isRejected: failDeferred.isResolved, + pipe: function( fnDone, fnFail ) { + return jQuery.Deferred(function( newDefer ) { + jQuery.each( { + done: [ fnDone, "resolve" ], + fail: [ fnFail, "reject" ] + }, function( handler, data ) { + var fn = data[ 0 ], + action = data[ 1 ], + returned; + if ( jQuery.isFunction( fn ) ) { + deferred[ handler ](function() { + returned = fn.apply( this, arguments ); + if ( returned && jQuery.isFunction( returned.promise ) ) { + returned.promise().then( newDefer.resolve, newDefer.reject ); + } else { + newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] ); + } + }); + } else { + deferred[ handler ]( newDefer[ action ] ); + } + }); + }).promise(); + }, + // Get a promise for this deferred + // If obj is provided, the promise aspect is added to the object + promise: function( obj ) { + if ( obj == null ) { + if ( promise ) { + return promise; + } + promise = obj = {}; + } + var i = promiseMethods.length; + while( i-- ) { + obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ]; + } + return obj; + } + }); + // Make sure only one callback list will be used + deferred.done( failDeferred.cancel ).fail( deferred.cancel ); + // Unexpose cancel + delete deferred.cancel; + // Call given func if any + if ( func ) { + func.call( deferred, deferred ); + } + return deferred; + }, + + // Deferred helper + when: function( firstParam ) { + var args = arguments, + i = 0, + length = args.length, + count = length, + deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ? + firstParam : + jQuery.Deferred(); + function resolveFunc( i ) { + return function( value ) { + args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value; + if ( !( --count ) ) { + // Strange bug in FF4: + // Values changed onto the arguments object sometimes end up as undefined values + // outside the $.when method. Cloning the object into a fresh array solves the issue + deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) ); + } + }; + } + if ( length > 1 ) { + for( ; i < length; i++ ) { + if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) { + args[ i ].promise().then( resolveFunc(i), deferred.reject ); + } else { + --count; + } + } + if ( !count ) { + deferred.resolveWith( deferred, args ); + } + } else if ( deferred !== firstParam ) { + deferred.resolveWith( deferred, length ? [ firstParam ] : [] ); + } + return deferred.promise(); + } +}); + + + +jQuery.support = (function() { + + var div = document.createElement( "div" ), + documentElement = document.documentElement, + all, + a, + select, + opt, + input, + marginDiv, + support, + fragment, + body, + testElementParent, + testElement, + testElementStyle, + tds, + events, + eventName, + i, + isSupported; + + // Preliminary tests + div.setAttribute("className", "t"); + div.innerHTML = "
      a"; + + + all = div.getElementsByTagName( "*" ); + a = div.getElementsByTagName( "a" )[ 0 ]; + + // Can't get basic test support + if ( !all || !all.length || !a ) { + return {}; + } + + // First batch of supports tests + select = document.createElement( "select" ); + opt = select.appendChild( document.createElement("option") ); + input = div.getElementsByTagName( "input" )[ 0 ]; + + support = { + // IE strips leading whitespace when .innerHTML is used + leadingWhitespace: ( div.firstChild.nodeType === 3 ), + + // Make sure that tbody elements aren't automatically inserted + // IE will insert them into empty tables + tbody: !div.getElementsByTagName( "tbody" ).length, + + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + htmlSerialize: !!div.getElementsByTagName( "link" ).length, + + // Get the style information from getAttribute + // (IE uses .cssText instead) + style: /top/.test( a.getAttribute("style") ), + + // Make sure that URLs aren't manipulated + // (IE normalizes it by default) + hrefNormalized: ( a.getAttribute( "href" ) === "/a" ), + + // Make sure that element opacity exists + // (IE uses filter instead) + // Use a regex to work around a WebKit issue. See #5145 + opacity: /^0.55$/.test( a.style.opacity ), + + // Verify style float existence + // (IE uses styleFloat instead of cssFloat) + cssFloat: !!a.style.cssFloat, + + // Make sure that if no value is specified for a checkbox + // that it defaults to "on". + // (WebKit defaults to "" instead) + checkOn: ( input.value === "on" ), + + // Make sure that a selected-by-default option has a working selected property. + // (WebKit defaults to false instead of true, IE too, if it's in an optgroup) + optSelected: opt.selected, + + // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) + getSetAttribute: div.className !== "t", + + // Will be defined later + submitBubbles: true, + changeBubbles: true, + focusinBubbles: false, + deleteExpando: true, + noCloneEvent: true, + inlineBlockNeedsLayout: false, + shrinkWrapBlocks: false, + reliableMarginRight: true + }; + + // Make sure checked status is properly cloned + input.checked = true; + support.noCloneChecked = input.cloneNode( true ).checked; + + // Make sure that the options inside disabled selects aren't marked as disabled + // (WebKit marks them as disabled) + select.disabled = true; + support.optDisabled = !opt.disabled; + + // Test to see if it's possible to delete an expando from an element + // Fails in Internet Explorer + try { + delete div.test; + } catch( e ) { + support.deleteExpando = false; + } + + if ( !div.addEventListener && div.attachEvent && div.fireEvent ) { + div.attachEvent( "onclick", function() { + // Cloning a node shouldn't copy over any + // bound event handlers (IE does this) + support.noCloneEvent = false; + }); + div.cloneNode( true ).fireEvent( "onclick" ); + } + + // Check if a radio maintains it's value + // after being appended to the DOM + input = document.createElement("input"); + input.value = "t"; + input.setAttribute("type", "radio"); + support.radioValue = input.value === "t"; + + input.setAttribute("checked", "checked"); + div.appendChild( input ); + fragment = document.createDocumentFragment(); + fragment.appendChild( div.firstChild ); + + // WebKit doesn't clone checked state correctly in fragments + support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; + + div.innerHTML = ""; + + // Figure out if the W3C box model works as expected + div.style.width = div.style.paddingLeft = "1px"; + + body = document.getElementsByTagName( "body" )[ 0 ]; + // We use our own, invisible, body unless the body is already present + // in which case we use a div (#9239) + testElement = document.createElement( body ? "div" : "body" ); + testElementStyle = { + visibility: "hidden", + width: 0, + height: 0, + border: 0, + margin: 0, + background: "none" + }; + if ( body ) { + jQuery.extend( testElementStyle, { + position: "absolute", + left: "-1000px", + top: "-1000px" + }); + } + for ( i in testElementStyle ) { + testElement.style[ i ] = testElementStyle[ i ]; + } + testElement.appendChild( div ); + testElementParent = body || documentElement; + testElementParent.insertBefore( testElement, testElementParent.firstChild ); + + // Check if a disconnected checkbox will retain its checked + // value of true after appended to the DOM (IE6/7) + support.appendChecked = input.checked; + + support.boxModel = div.offsetWidth === 2; + + if ( "zoom" in div.style ) { + // Check if natively block-level elements act like inline-block + // elements when setting their display to 'inline' and giving + // them layout + // (IE < 8 does this) + div.style.display = "inline"; + div.style.zoom = 1; + support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 ); + + // Check if elements with layout shrink-wrap their children + // (IE 6 does this) + div.style.display = ""; + div.innerHTML = "
      "; + support.shrinkWrapBlocks = ( div.offsetWidth !== 2 ); + } + + div.innerHTML = "
      t
      "; + tds = div.getElementsByTagName( "td" ); + + // Check if table cells still have offsetWidth/Height when they are set + // to display:none and there are still other visible table cells in a + // table row; if so, offsetWidth/Height are not reliable for use when + // determining if an element has been hidden directly using + // display:none (it is still safe to use offsets if a parent element is + // hidden; don safety goggles and see bug #4512 for more information). + // (only IE 8 fails this test) + isSupported = ( tds[ 0 ].offsetHeight === 0 ); + + tds[ 0 ].style.display = ""; + tds[ 1 ].style.display = "none"; + + // Check if empty table cells still have offsetWidth/Height + // (IE < 8 fail this test) + support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 ); + div.innerHTML = ""; + + // Check if div with explicit width and no margin-right incorrectly + // gets computed margin-right based on width of container. For more + // info see bug #3333 + // Fails in WebKit before Feb 2011 nightlies + // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right + if ( document.defaultView && document.defaultView.getComputedStyle ) { + marginDiv = document.createElement( "div" ); + marginDiv.style.width = "0"; + marginDiv.style.marginRight = "0"; + div.appendChild( marginDiv ); + support.reliableMarginRight = + ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0; + } + + // Remove the body element we added + testElement.innerHTML = ""; + testElementParent.removeChild( testElement ); + + // Technique from Juriy Zaytsev + // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/ + // We only care about the case where non-standard event systems + // are used, namely in IE. Short-circuiting here helps us to + // avoid an eval call (in setAttribute) which can cause CSP + // to go haywire. See: https://developer.mozilla.org/en/Security/CSP + if ( div.attachEvent ) { + for( i in { + submit: 1, + change: 1, + focusin: 1 + } ) { + eventName = "on" + i; + isSupported = ( eventName in div ); + if ( !isSupported ) { + div.setAttribute( eventName, "return;" ); + isSupported = ( typeof div[ eventName ] === "function" ); + } + support[ i + "Bubbles" ] = isSupported; + } + } + + // Null connected elements to avoid leaks in IE + testElement = fragment = select = opt = body = marginDiv = div = input = null; + + return support; +})(); + +// Keep track of boxModel +jQuery.boxModel = jQuery.support.boxModel; + + + + +var rbrace = /^(?:\{.*\}|\[.*\])$/, + rmultiDash = /([a-z])([A-Z])/g; + +jQuery.extend({ + cache: {}, + + // Please use with caution + uuid: 0, + + // Unique for each copy of jQuery on the page + // Non-digits removed to match rinlinejQuery + expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ), + + // The following elements throw uncatchable exceptions if you + // attempt to add expando properties to them. + noData: { + "embed": true, + // Ban all objects except for Flash (which handle expandos) + "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", + "applet": true + }, + + hasData: function( elem ) { + elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ]; + + return !!elem && !isEmptyDataObject( elem ); + }, + + data: function( elem, name, data, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, ret, + internalKey = jQuery.expando, + getByName = typeof name === "string", + + // We have to handle DOM nodes and JS objects differently because IE6-7 + // can't GC object references properly across the DOM-JS boundary + isNode = elem.nodeType, + + // Only DOM nodes need the global jQuery cache; JS object data is + // attached directly to the object so GC can occur automatically + cache = isNode ? jQuery.cache : elem, + + // Only defining an ID for JS objects if its cache already exists allows + // the code to shortcut on the same path as a DOM node with no cache + id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando; + + // Avoid doing any more work than we need to when trying to get data on an + // object that has no data at all + if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) { + return; + } + + if ( !id ) { + // Only DOM nodes need a new unique ID for each element since their data + // ends up in the global cache + if ( isNode ) { + elem[ jQuery.expando ] = id = ++jQuery.uuid; + } else { + id = jQuery.expando; + } + } + + if ( !cache[ id ] ) { + cache[ id ] = {}; + + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + } + + // An object can be passed to jQuery.data instead of a key/value pair; this gets + // shallow copied over onto the existing cache + if ( typeof name === "object" || typeof name === "function" ) { + if ( pvt ) { + cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name); + } else { + cache[ id ] = jQuery.extend(cache[ id ], name); + } + } + + thisCache = cache[ id ]; + + // Internal jQuery data is stored in a separate object inside the object's data + // cache in order to avoid key collisions between internal data and user-defined + // data + if ( pvt ) { + if ( !thisCache[ internalKey ] ) { + thisCache[ internalKey ] = {}; + } + + thisCache = thisCache[ internalKey ]; + } + + if ( data !== undefined ) { + thisCache[ jQuery.camelCase( name ) ] = data; + } + + // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should + // not attempt to inspect the internal events object using jQuery.data, as this + // internal data object is undocumented and subject to change. + if ( name === "events" && !thisCache[name] ) { + return thisCache[ internalKey ] && thisCache[ internalKey ].events; + } + + // Check for both converted-to-camel and non-converted data property names + // If a data property was specified + if ( getByName ) { + + // First Try to find as-is property data + ret = thisCache[ name ]; + + // Test for null|undefined property data + if ( ret == null ) { + + // Try to find the camelCased property + ret = thisCache[ jQuery.camelCase( name ) ]; + } + } else { + ret = thisCache; + } + + return ret; + }, + + removeData: function( elem, name, pvt /* Internal Use Only */ ) { + if ( !jQuery.acceptData( elem ) ) { + return; + } + + var thisCache, + + // Reference to internal data cache key + internalKey = jQuery.expando, + + isNode = elem.nodeType, + + // See jQuery.data for more information + cache = isNode ? jQuery.cache : elem, + + // See jQuery.data for more information + id = isNode ? elem[ jQuery.expando ] : jQuery.expando; + + // If there is already no cache entry for this object, there is no + // purpose in continuing + if ( !cache[ id ] ) { + return; + } + + if ( name ) { + + thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ]; + + if ( thisCache ) { + + // Support interoperable removal of hyphenated or camelcased keys + if ( !thisCache[ name ] ) { + name = jQuery.camelCase( name ); + } + + delete thisCache[ name ]; + + // If there is no data left in the cache, we want to continue + // and let the cache object itself get destroyed + if ( !isEmptyDataObject(thisCache) ) { + return; + } + } + } + + // See jQuery.data for more information + if ( pvt ) { + delete cache[ id ][ internalKey ]; + + // Don't destroy the parent cache unless the internal data object + // had been the only thing left in it + if ( !isEmptyDataObject(cache[ id ]) ) { + return; + } + } + + var internalCache = cache[ id ][ internalKey ]; + + // Browsers that fail expando deletion also refuse to delete expandos on + // the window, but it will allow it on all other JS objects; other browsers + // don't care + // Ensure that `cache` is not a window object #10080 + if ( jQuery.support.deleteExpando || !cache.setInterval ) { + delete cache[ id ]; + } else { + cache[ id ] = null; + } + + // We destroyed the entire user cache at once because it's faster than + // iterating through each key, but we need to continue to persist internal + // data if it existed + if ( internalCache ) { + cache[ id ] = {}; + // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery + // metadata on plain JS objects when the object is serialized using + // JSON.stringify + if ( !isNode ) { + cache[ id ].toJSON = jQuery.noop; + } + + cache[ id ][ internalKey ] = internalCache; + + // Otherwise, we need to eliminate the expando on the node to avoid + // false lookups in the cache for entries that no longer exist + } else if ( isNode ) { + // IE does not allow us to delete expando properties from nodes, + // nor does it have a removeAttribute function on Document nodes; + // we must handle all of these cases + if ( jQuery.support.deleteExpando ) { + delete elem[ jQuery.expando ]; + } else if ( elem.removeAttribute ) { + elem.removeAttribute( jQuery.expando ); + } else { + elem[ jQuery.expando ] = null; + } + } + }, + + // For internal use only. + _data: function( elem, name, data ) { + return jQuery.data( elem, name, data, true ); + }, + + // A method for determining if a DOM node can handle the data expando + acceptData: function( elem ) { + if ( elem.nodeName ) { + var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; + + if ( match ) { + return !(match === true || elem.getAttribute("classid") !== match); + } + } + + return true; + } +}); + +jQuery.fn.extend({ + data: function( key, value ) { + var data = null; + + if ( typeof key === "undefined" ) { + if ( this.length ) { + data = jQuery.data( this[0] ); + + if ( this[0].nodeType === 1 ) { + var attr = this[0].attributes, name; + for ( var i = 0, l = attr.length; i < l; i++ ) { + name = attr[i].name; + + if ( name.indexOf( "data-" ) === 0 ) { + name = jQuery.camelCase( name.substring(5) ); + + dataAttr( this[0], name, data[ name ] ); + } + } + } + } + + return data; + + } else if ( typeof key === "object" ) { + return this.each(function() { + jQuery.data( this, key ); + }); + } + + var parts = key.split("."); + parts[1] = parts[1] ? "." + parts[1] : ""; + + if ( value === undefined ) { + data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); + + // Try to fetch any internally stored data first + if ( data === undefined && this.length ) { + data = jQuery.data( this[0], key ); + data = dataAttr( this[0], key, data ); + } + + return data === undefined && parts[1] ? + this.data( parts[0] ) : + data; + + } else { + return this.each(function() { + var $this = jQuery( this ), + args = [ parts[0], value ]; + + $this.triggerHandler( "setData" + parts[1] + "!", args ); + jQuery.data( this, key, value ); + $this.triggerHandler( "changeData" + parts[1] + "!", args ); + }); + } + }, + + removeData: function( key ) { + return this.each(function() { + jQuery.removeData( this, key ); + }); + } +}); + +function dataAttr( elem, key, data ) { + // If nothing was found internally, try to fetch any + // data from the HTML5 data-* attribute + if ( data === undefined && elem.nodeType === 1 ) { + var name = "data-" + key.replace( rmultiDash, "$1-$2" ).toLowerCase(); + + data = elem.getAttribute( name ); + + if ( typeof data === "string" ) { + try { + data = data === "true" ? true : + data === "false" ? false : + data === "null" ? null : + !jQuery.isNaN( data ) ? parseFloat( data ) : + rbrace.test( data ) ? jQuery.parseJSON( data ) : + data; + } catch( e ) {} + + // Make sure we set the data so it isn't changed later + jQuery.data( elem, key, data ); + + } else { + data = undefined; + } + } + + return data; +} + +// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON +// property to be considered empty objects; this property always exists in +// order to make sure JSON.stringify does not expose internal metadata +function isEmptyDataObject( obj ) { + for ( var name in obj ) { + if ( name !== "toJSON" ) { + return false; + } + } + + return true; +} + + + + +function handleQueueMarkDefer( elem, type, src ) { + var deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + defer = jQuery.data( elem, deferDataKey, undefined, true ); + if ( defer && + ( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) && + ( src === "mark" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) { + // Give room for hard-coded callbacks to fire first + // and eventually mark/queue something else on the element + setTimeout( function() { + if ( !jQuery.data( elem, queueDataKey, undefined, true ) && + !jQuery.data( elem, markDataKey, undefined, true ) ) { + jQuery.removeData( elem, deferDataKey, true ); + defer.resolve(); + } + }, 0 ); + } +} + +jQuery.extend({ + + _mark: function( elem, type ) { + if ( elem ) { + type = (type || "fx") + "mark"; + jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true ); + } + }, + + _unmark: function( force, elem, type ) { + if ( force !== true ) { + type = elem; + elem = force; + force = false; + } + if ( elem ) { + type = type || "fx"; + var key = type + "mark", + count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 ); + if ( count ) { + jQuery.data( elem, key, count, true ); + } else { + jQuery.removeData( elem, key, true ); + handleQueueMarkDefer( elem, type, "mark" ); + } + } + }, + + queue: function( elem, type, data ) { + if ( elem ) { + type = (type || "fx") + "queue"; + var q = jQuery.data( elem, type, undefined, true ); + // Speed up dequeue by getting out quickly if this is just a lookup + if ( data ) { + if ( !q || jQuery.isArray(data) ) { + q = jQuery.data( elem, type, jQuery.makeArray(data), true ); + } else { + q.push( data ); + } + } + return q || []; + } + }, + + dequeue: function( elem, type ) { + type = type || "fx"; + + var queue = jQuery.queue( elem, type ), + fn = queue.shift(), + defer; + + // If the fx queue is dequeued, always remove the progress sentinel + if ( fn === "inprogress" ) { + fn = queue.shift(); + } + + if ( fn ) { + // Add a progress sentinel to prevent the fx queue from being + // automatically dequeued + if ( type === "fx" ) { + queue.unshift("inprogress"); + } + + fn.call(elem, function() { + jQuery.dequeue(elem, type); + }); + } + + if ( !queue.length ) { + jQuery.removeData( elem, type + "queue", true ); + handleQueueMarkDefer( elem, type, "queue" ); + } + } +}); + +jQuery.fn.extend({ + queue: function( type, data ) { + if ( typeof type !== "string" ) { + data = type; + type = "fx"; + } + + if ( data === undefined ) { + return jQuery.queue( this[0], type ); + } + return this.each(function() { + var queue = jQuery.queue( this, type, data ); + + if ( type === "fx" && queue[0] !== "inprogress" ) { + jQuery.dequeue( this, type ); + } + }); + }, + dequeue: function( type ) { + return this.each(function() { + jQuery.dequeue( this, type ); + }); + }, + // Based off of the plugin by Clint Helfers, with permission. + // http://blindsignals.com/index.php/2009/07/jquery-delay/ + delay: function( time, type ) { + time = jQuery.fx ? jQuery.fx.speeds[time] || time : time; + type = type || "fx"; + + return this.queue( type, function() { + var elem = this; + setTimeout(function() { + jQuery.dequeue( elem, type ); + }, time ); + }); + }, + clearQueue: function( type ) { + return this.queue( type || "fx", [] ); + }, + // Get a promise resolved when queues of a certain type + // are emptied (fx is the type by default) + promise: function( type, object ) { + if ( typeof type !== "string" ) { + object = type; + type = undefined; + } + type = type || "fx"; + var defer = jQuery.Deferred(), + elements = this, + i = elements.length, + count = 1, + deferDataKey = type + "defer", + queueDataKey = type + "queue", + markDataKey = type + "mark", + tmp; + function resolve() { + if ( !( --count ) ) { + defer.resolveWith( elements, [ elements ] ); + } + } + while( i-- ) { + if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) || + ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) || + jQuery.data( elements[ i ], markDataKey, undefined, true ) ) && + jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) { + count++; + tmp.done( resolve ); + } + } + resolve(); + return defer.promise(); + } +}); + + + + +var rclass = /[\n\t\r]/g, + rspace = /\s+/, + rreturn = /\r/g, + rtype = /^(?:button|input)$/i, + rfocusable = /^(?:button|input|object|select|textarea)$/i, + rclickable = /^a(?:rea)?$/i, + rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i, + nodeHook, boolHook; + +jQuery.fn.extend({ + attr: function( name, value ) { + return jQuery.access( this, name, value, true, jQuery.attr ); + }, + + removeAttr: function( name ) { + return this.each(function() { + jQuery.removeAttr( this, name ); + }); + }, + + prop: function( name, value ) { + return jQuery.access( this, name, value, true, jQuery.prop ); + }, + + removeProp: function( name ) { + name = jQuery.propFix[ name ] || name; + return this.each(function() { + // try/catch handles cases where IE balks (such as removing a property on window) + try { + this[ name ] = undefined; + delete this[ name ]; + } catch( e ) {} + }); + }, + + addClass: function( value ) { + var classNames, i, l, elem, + setClass, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).addClass( value.call(this, j, this.className) ); + }); + } + + if ( value && typeof value === "string" ) { + classNames = value.split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 ) { + if ( !elem.className && classNames.length === 1 ) { + elem.className = value; + + } else { + setClass = " " + elem.className + " "; + + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) { + setClass += classNames[ c ] + " "; + } + } + elem.className = jQuery.trim( setClass ); + } + } + } + } + + return this; + }, + + removeClass: function( value ) { + var classNames, i, l, elem, className, c, cl; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( j ) { + jQuery( this ).removeClass( value.call(this, j, this.className) ); + }); + } + + if ( (value && typeof value === "string") || value === undefined ) { + classNames = (value || "").split( rspace ); + + for ( i = 0, l = this.length; i < l; i++ ) { + elem = this[ i ]; + + if ( elem.nodeType === 1 && elem.className ) { + if ( value ) { + className = (" " + elem.className + " ").replace( rclass, " " ); + for ( c = 0, cl = classNames.length; c < cl; c++ ) { + className = className.replace(" " + classNames[ c ] + " ", " "); + } + elem.className = jQuery.trim( className ); + + } else { + elem.className = ""; + } + } + } + } + + return this; + }, + + toggleClass: function( value, stateVal ) { + var type = typeof value, + isBool = typeof stateVal === "boolean"; + + if ( jQuery.isFunction( value ) ) { + return this.each(function( i ) { + jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); + }); + } + + return this.each(function() { + if ( type === "string" ) { + // toggle individual class names + var className, + i = 0, + self = jQuery( this ), + state = stateVal, + classNames = value.split( rspace ); + + while ( (className = classNames[ i++ ]) ) { + // check each className given, space seperated list + state = isBool ? state : !self.hasClass( className ); + self[ state ? "addClass" : "removeClass" ]( className ); + } + + } else if ( type === "undefined" || type === "boolean" ) { + if ( this.className ) { + // store className if set + jQuery._data( this, "__className__", this.className ); + } + + // toggle whole className + this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || ""; + } + }); + }, + + hasClass: function( selector ) { + var className = " " + selector + " "; + for ( var i = 0, l = this.length; i < l; i++ ) { + if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) { + return true; + } + } + + return false; + }, + + val: function( value ) { + var hooks, ret, + elem = this[0]; + + if ( !arguments.length ) { + if ( elem ) { + hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ]; + + if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { + return ret; + } + + ret = elem.value; + + return typeof ret === "string" ? + // handle most common string cases + ret.replace(rreturn, "") : + // handle cases where value is null/undef or number + ret == null ? "" : ret; + } + + return undefined; + } + + var isFunction = jQuery.isFunction( value ); + + return this.each(function( i ) { + var self = jQuery(this), val; + + if ( this.nodeType !== 1 ) { + return; + } + + if ( isFunction ) { + val = value.call( this, i, self.val() ); + } else { + val = value; + } + + // Treat null/undefined as ""; convert numbers to string + if ( val == null ) { + val = ""; + } else if ( typeof val === "number" ) { + val += ""; + } else if ( jQuery.isArray( val ) ) { + val = jQuery.map(val, function ( value ) { + return value == null ? "" : value + ""; + }); + } + + hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ]; + + // If set returns undefined, fall back to normal setting + if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { + this.value = val; + } + }); + } +}); + +jQuery.extend({ + valHooks: { + option: { + get: function( elem ) { + // attributes.value is undefined in Blackberry 4.7 but + // uses .value. See #6932 + var val = elem.attributes.value; + return !val || val.specified ? elem.value : elem.text; + } + }, + select: { + get: function( elem ) { + var value, + index = elem.selectedIndex, + values = [], + options = elem.options, + one = elem.type === "select-one"; + + // Nothing was selected + if ( index < 0 ) { + return null; + } + + // Loop through all the selected options + for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { + var option = options[ i ]; + + // Don't return options that are disabled or in a disabled optgroup + if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && + (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { + + // Get the specific value for the option + value = jQuery( option ).val(); + + // We don't need an array for one selects + if ( one ) { + return value; + } + + // Multi-Selects return an array + values.push( value ); + } + } + + // Fixes Bug #2551 -- select.val() broken in IE after form.reset() + if ( one && !values.length && options.length ) { + return jQuery( options[ index ] ).val(); + } + + return values; + }, + + set: function( elem, value ) { + var values = jQuery.makeArray( value ); + + jQuery(elem).find("option").each(function() { + this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0; + }); + + if ( !values.length ) { + elem.selectedIndex = -1; + } + return values; + } + } + }, + + attrFn: { + val: true, + css: true, + html: true, + text: true, + data: true, + width: true, + height: true, + offset: true + }, + + attrFix: { + // Always normalize to ensure hook usage + tabindex: "tabIndex" + }, + + attr: function( elem, name, value, pass ) { + var nType = elem.nodeType; + + // don't get/set attributes on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + if ( pass && name in jQuery.attrFn ) { + return jQuery( elem )[ name ]( value ); + } + + // Fallback to prop when attributes are not supported + if ( !("getAttribute" in elem) ) { + return jQuery.prop( elem, name, value ); + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + // Normalize the name if needed + if ( notxml ) { + name = jQuery.attrFix[ name ] || name; + + hooks = jQuery.attrHooks[ name ]; + + if ( !hooks ) { + // Use boolHook for boolean attributes + if ( rboolean.test( name ) ) { + hooks = boolHook; + + // Use nodeHook if available( IE6/7 ) + } else if ( nodeHook ) { + hooks = nodeHook; + } + } + } + + if ( value !== undefined ) { + + if ( value === null ) { + jQuery.removeAttr( elem, name ); + return undefined; + + } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + elem.setAttribute( name, "" + value ); + return value; + } + + } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + + ret = elem.getAttribute( name ); + + // Non-existent attributes return null, we normalize to undefined + return ret === null ? + undefined : + ret; + } + }, + + removeAttr: function( elem, name ) { + var propName; + if ( elem.nodeType === 1 ) { + name = jQuery.attrFix[ name ] || name; + + jQuery.attr( elem, name, "" ); + elem.removeAttribute( name ); + + // Set corresponding property to false for boolean attributes + if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) { + elem[ propName ] = false; + } + } + }, + + attrHooks: { + type: { + set: function( elem, value ) { + // We can't allow the type property to be changed (since it causes problems in IE) + if ( rtype.test( elem.nodeName ) && elem.parentNode ) { + jQuery.error( "type property can't be changed" ); + } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { + // Setting the type on a radio button after the value resets the value in IE6-9 + // Reset value to it's default in case type is set after value + // This is for element creation + var val = elem.value; + elem.setAttribute( "type", value ); + if ( val ) { + elem.value = val; + } + return value; + } + } + }, + // Use the value property for back compat + // Use the nodeHook for button elements in IE6/7 (#1954) + value: { + get: function( elem, name ) { + if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { + return nodeHook.get( elem, name ); + } + return name in elem ? + elem.value : + null; + }, + set: function( elem, value, name ) { + if ( nodeHook && jQuery.nodeName( elem, "button" ) ) { + return nodeHook.set( elem, value, name ); + } + // Does not return so that setAttribute is also used + elem.value = value; + } + } + }, + + propFix: { + tabindex: "tabIndex", + readonly: "readOnly", + "for": "htmlFor", + "class": "className", + maxlength: "maxLength", + cellspacing: "cellSpacing", + cellpadding: "cellPadding", + rowspan: "rowSpan", + colspan: "colSpan", + usemap: "useMap", + frameborder: "frameBorder", + contenteditable: "contentEditable" + }, + + prop: function( elem, name, value ) { + var nType = elem.nodeType; + + // don't get/set properties on text, comment and attribute nodes + if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + return undefined; + } + + var ret, hooks, + notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); + + if ( notxml ) { + // Fix name and attach hooks + name = jQuery.propFix[ name ] || name; + hooks = jQuery.propHooks[ name ]; + } + + if ( value !== undefined ) { + if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { + return ret; + + } else { + return (elem[ name ] = value); + } + + } else { + if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { + return ret; + + } else { + return elem[ name ]; + } + } + }, + + propHooks: { + tabIndex: { + get: function( elem ) { + // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set + // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ + var attributeNode = elem.getAttributeNode("tabindex"); + + return attributeNode && attributeNode.specified ? + parseInt( attributeNode.value, 10 ) : + rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ? + 0 : + undefined; + } + } + } +}); + +// Add the tabindex propHook to attrHooks for back-compat +jQuery.attrHooks.tabIndex = jQuery.propHooks.tabIndex; + +// Hook for boolean attributes +boolHook = { + get: function( elem, name ) { + // Align boolean attributes with corresponding properties + // Fall back to attribute presence where some booleans are not supported + var attrNode; + return jQuery.prop( elem, name ) === true || ( attrNode = elem.getAttributeNode( name ) ) && attrNode.nodeValue !== false ? + name.toLowerCase() : + undefined; + }, + set: function( elem, value, name ) { + var propName; + if ( value === false ) { + // Remove boolean attributes when set to false + jQuery.removeAttr( elem, name ); + } else { + // value is true since we know at this point it's type boolean and not false + // Set boolean attributes to the same name and set the DOM property + propName = jQuery.propFix[ name ] || name; + if ( propName in elem ) { + // Only set the IDL specifically if it already exists on the element + elem[ propName ] = true; + } + + elem.setAttribute( name, name.toLowerCase() ); + } + return name; + } +}; + +// IE6/7 do not support getting/setting some attributes with get/setAttribute +if ( !jQuery.support.getSetAttribute ) { + + // Use this for any attribute in IE6/7 + // This fixes almost every IE6/7 issue + nodeHook = jQuery.valHooks.button = { + get: function( elem, name ) { + var ret; + ret = elem.getAttributeNode( name ); + // Return undefined if nodeValue is empty string + return ret && ret.nodeValue !== "" ? + ret.nodeValue : + undefined; + }, + set: function( elem, value, name ) { + // Set the existing or create a new attribute node + var ret = elem.getAttributeNode( name ); + if ( !ret ) { + ret = document.createAttribute( name ); + elem.setAttributeNode( ret ); + } + return (ret.nodeValue = value + ""); + } + }; + + // Set width and height to auto instead of 0 on empty string( Bug #8150 ) + // This is for removals + jQuery.each([ "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { + set: function( elem, value ) { + if ( value === "" ) { + elem.setAttribute( name, "auto" ); + return value; + } + } + }); + }); +} + + +// Some attributes require a special call on IE +if ( !jQuery.support.hrefNormalized ) { + jQuery.each([ "href", "src", "width", "height" ], function( i, name ) { + jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { + get: function( elem ) { + var ret = elem.getAttribute( name, 2 ); + return ret === null ? undefined : ret; + } + }); + }); +} + +if ( !jQuery.support.style ) { + jQuery.attrHooks.style = { + get: function( elem ) { + // Return undefined in the case of empty string + // Normalize to lowercase since IE uppercases css property names + return elem.style.cssText.toLowerCase() || undefined; + }, + set: function( elem, value ) { + return (elem.style.cssText = "" + value); + } + }; +} + +// Safari mis-reports the default selected property of an option +// Accessing the parent's selectedIndex property fixes it +if ( !jQuery.support.optSelected ) { + jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, { + get: function( elem ) { + var parent = elem.parentNode; + + if ( parent ) { + parent.selectedIndex; + + // Make sure that it also works with optgroups, see #5701 + if ( parent.parentNode ) { + parent.parentNode.selectedIndex; + } + } + return null; + } + }); +} + +// Radios and checkboxes getter/setter +if ( !jQuery.support.checkOn ) { + jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = { + get: function( elem ) { + // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified + return elem.getAttribute("value") === null ? "on" : elem.value; + } + }; + }); +} +jQuery.each([ "radio", "checkbox" ], function() { + jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], { + set: function( elem, value ) { + if ( jQuery.isArray( value ) ) { + return (elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0); + } + } + }); +}); + + + + +var rnamespaces = /\.(.*)$/, + rformElems = /^(?:textarea|input|select)$/i, + rperiod = /\./g, + rspaces = / /g, + rescape = /[^\w\s.|`]/g, + fcleanup = function( nm ) { + return nm.replace(rescape, "\\$&"); + }; + +/* + * A number of helper functions used for managing events. + * Many of the ideas behind this code originated from + * Dean Edwards' addEvent library. + */ +jQuery.event = { + + // Bind an event to an element + // Original by Dean Edwards + add: function( elem, types, handler, data ) { + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + if ( handler === false ) { + handler = returnFalse; + } else if ( !handler ) { + // Fixes bug #7229. Fix recommended by jdalton + return; + } + + var handleObjIn, handleObj; + + if ( handler.handler ) { + handleObjIn = handler; + handler = handleObjIn.handler; + } + + // Make sure that the function being executed has a unique ID + if ( !handler.guid ) { + handler.guid = jQuery.guid++; + } + + // Init the element's event structure + var elemData = jQuery._data( elem ); + + // If no elemData is found then we must be trying to bind to one of the + // banned noData elements + if ( !elemData ) { + return; + } + + var events = elemData.events, + eventHandle = elemData.handle; + + if ( !events ) { + elemData.events = events = {}; + } + + if ( !eventHandle ) { + elemData.handle = eventHandle = function( e ) { + // Discard the second event of a jQuery.event.trigger() and + // when an event is called after a page has unloaded + return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ? + jQuery.event.handle.apply( eventHandle.elem, arguments ) : + undefined; + }; + } + + // Add elem as a property of the handle function + // This is to prevent a memory leak with non-native events in IE. + eventHandle.elem = elem; + + // Handle multiple events separated by a space + // jQuery(...).bind("mouseover mouseout", fn); + types = types.split(" "); + + var type, i = 0, namespaces; + + while ( (type = types[ i++ ]) ) { + handleObj = handleObjIn ? + jQuery.extend({}, handleObjIn) : + { handler: handler, data: data }; + + // Namespaced event handlers + if ( type.indexOf(".") > -1 ) { + namespaces = type.split("."); + type = namespaces.shift(); + handleObj.namespace = namespaces.slice(0).sort().join("."); + + } else { + namespaces = []; + handleObj.namespace = ""; + } + + handleObj.type = type; + if ( !handleObj.guid ) { + handleObj.guid = handler.guid; + } + + // Get the current list of functions bound to this event + var handlers = events[ type ], + special = jQuery.event.special[ type ] || {}; + + // Init the event handler queue + if ( !handlers ) { + handlers = events[ type ] = []; + + // Check for a special event handler + // Only use addEventListener/attachEvent if the special + // events handler returns false + if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { + // Bind the global event handler to the element + if ( elem.addEventListener ) { + elem.addEventListener( type, eventHandle, false ); + + } else if ( elem.attachEvent ) { + elem.attachEvent( "on" + type, eventHandle ); + } + } + } + + if ( special.add ) { + special.add.call( elem, handleObj ); + + if ( !handleObj.handler.guid ) { + handleObj.handler.guid = handler.guid; + } + } + + // Add the function to the element's handler list + handlers.push( handleObj ); + + // Keep track of which events have been used, for event optimization + jQuery.event.global[ type ] = true; + } + + // Nullify elem to prevent memory leaks in IE + elem = null; + }, + + global: {}, + + // Detach an event or set of events from an element + remove: function( elem, types, handler, pos ) { + // don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + if ( handler === false ) { + handler = returnFalse; + } + + var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType, + elemData = jQuery.hasData( elem ) && jQuery._data( elem ), + events = elemData && elemData.events; + + if ( !elemData || !events ) { + return; + } + + // types is actually an event object here + if ( types && types.type ) { + handler = types.handler; + types = types.type; + } + + // Unbind all events for the element + if ( !types || typeof types === "string" && types.charAt(0) === "." ) { + types = types || ""; + + for ( type in events ) { + jQuery.event.remove( elem, type + types ); + } + + return; + } + + // Handle multiple events separated by a space + // jQuery(...).unbind("mouseover mouseout", fn); + types = types.split(" "); + + while ( (type = types[ i++ ]) ) { + origType = type; + handleObj = null; + all = type.indexOf(".") < 0; + namespaces = []; + + if ( !all ) { + // Namespaced event handlers + namespaces = type.split("."); + type = namespaces.shift(); + + namespace = new RegExp("(^|\\.)" + + jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)"); + } + + eventType = events[ type ]; + + if ( !eventType ) { + continue; + } + + if ( !handler ) { + for ( j = 0; j < eventType.length; j++ ) { + handleObj = eventType[ j ]; + + if ( all || namespace.test( handleObj.namespace ) ) { + jQuery.event.remove( elem, origType, handleObj.handler, j ); + eventType.splice( j--, 1 ); + } + } + + continue; + } + + special = jQuery.event.special[ type ] || {}; + + for ( j = pos || 0; j < eventType.length; j++ ) { + handleObj = eventType[ j ]; + + if ( handler.guid === handleObj.guid ) { + // remove the given handler for the given type + if ( all || namespace.test( handleObj.namespace ) ) { + if ( pos == null ) { + eventType.splice( j--, 1 ); + } + + if ( special.remove ) { + special.remove.call( elem, handleObj ); + } + } + + if ( pos != null ) { + break; + } + } + } + + // remove generic event handler if no more handlers exist + if ( eventType.length === 0 || pos != null && eventType.length === 1 ) { + if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) { + jQuery.removeEvent( elem, type, elemData.handle ); + } + + ret = null; + delete events[ type ]; + } + } + + // Remove the expando if it's no longer used + if ( jQuery.isEmptyObject( events ) ) { + var handle = elemData.handle; + if ( handle ) { + handle.elem = null; + } + + delete elemData.events; + delete elemData.handle; + + if ( jQuery.isEmptyObject( elemData ) ) { + jQuery.removeData( elem, undefined, true ); + } + } + }, + + // Events that are safe to short-circuit if no handlers are attached. + // Native DOM events should not be added, they may have inline handlers. + customEvent: { + "getData": true, + "setData": true, + "changeData": true + }, + + trigger: function( event, data, elem, onlyHandlers ) { + // Event object or event type + var type = event.type || event, + namespaces = [], + exclusive; + + if ( type.indexOf("!") >= 0 ) { + // Exclusive events trigger only for the exact event (no namespaces) + type = type.slice(0, -1); + exclusive = true; + } + + if ( type.indexOf(".") >= 0 ) { + // Namespaced trigger; create a regexp to match event type in handle() + namespaces = type.split("."); + type = namespaces.shift(); + namespaces.sort(); + } + + if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) { + // No jQuery handlers for this event type, and it can't have inline handlers + return; + } + + // Caller can pass in an Event, Object, or just an event type string + event = typeof event === "object" ? + // jQuery.Event object + event[ jQuery.expando ] ? event : + // Object literal + new jQuery.Event( type, event ) : + // Just the event type (string) + new jQuery.Event( type ); + + event.type = type; + event.exclusive = exclusive; + event.namespace = namespaces.join("."); + event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)"); + + // triggerHandler() and global events don't bubble or run the default action + if ( onlyHandlers || !elem ) { + event.preventDefault(); + event.stopPropagation(); + } + + // Handle a global trigger + if ( !elem ) { + // TODO: Stop taunting the data cache; remove global events and always attach to document + jQuery.each( jQuery.cache, function() { + // internalKey variable is just used to make it easier to find + // and potentially change this stuff later; currently it just + // points to jQuery.expando + var internalKey = jQuery.expando, + internalCache = this[ internalKey ]; + if ( internalCache && internalCache.events && internalCache.events[ type ] ) { + jQuery.event.trigger( event, data, internalCache.handle.elem ); + } + }); + return; + } + + // Don't do events on text and comment nodes + if ( elem.nodeType === 3 || elem.nodeType === 8 ) { + return; + } + + // Clean up the event in case it is being reused + event.result = undefined; + event.target = elem; + + // Clone any incoming data and prepend the event, creating the handler arg list + data = data != null ? jQuery.makeArray( data ) : []; + data.unshift( event ); + + var cur = elem, + // IE doesn't like method names with a colon (#3533, #8272) + ontype = type.indexOf(":") < 0 ? "on" + type : ""; + + // Fire event on the current element, then bubble up the DOM tree + do { + var handle = jQuery._data( cur, "handle" ); + + event.currentTarget = cur; + if ( handle ) { + handle.apply( cur, data ); + } + + // Trigger an inline bound script + if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) { + event.result = false; + event.preventDefault(); + } + + // Bubble up to document, then to window + cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window; + } while ( cur && !event.isPropagationStopped() ); + + // If nobody prevented the default action, do it now + if ( !event.isDefaultPrevented() ) { + var old, + special = jQuery.event.special[ type ] || {}; + + if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) && + !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) { + + // Call a native DOM method on the target with the same name name as the event. + // Can't use an .isFunction)() check here because IE6/7 fails that test. + // IE<9 dies on focus to hidden element (#1486), may want to revisit a try/catch. + try { + if ( ontype && elem[ type ] ) { + // Don't re-trigger an onFOO event when we call its FOO() method + old = elem[ ontype ]; + + if ( old ) { + elem[ ontype ] = null; + } + + jQuery.event.triggered = type; + elem[ type ](); + } + } catch ( ieError ) {} + + if ( old ) { + elem[ ontype ] = old; + } + + jQuery.event.triggered = undefined; + } + } + + return event.result; + }, + + handle: function( event ) { + event = jQuery.event.fix( event || window.event ); + // Snapshot the handlers list since a called handler may add/remove events. + var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0), + run_all = !event.exclusive && !event.namespace, + args = Array.prototype.slice.call( arguments, 0 ); + + // Use the fix-ed Event rather than the (read-only) native event + args[0] = event; + event.currentTarget = this; + + for ( var j = 0, l = handlers.length; j < l; j++ ) { + var handleObj = handlers[ j ]; + + // Triggered event must 1) be non-exclusive and have no namespace, or + // 2) have namespace(s) a subset or equal to those in the bound event. + if ( run_all || event.namespace_re.test( handleObj.namespace ) ) { + // Pass in a reference to the handler function itself + // So that we can later remove it + event.handler = handleObj.handler; + event.data = handleObj.data; + event.handleObj = handleObj; + + var ret = handleObj.handler.apply( this, args ); + + if ( ret !== undefined ) { + event.result = ret; + if ( ret === false ) { + event.preventDefault(); + event.stopPropagation(); + } + } + + if ( event.isImmediatePropagationStopped() ) { + break; + } + } + } + return event.result; + }, + + props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), + + fix: function( event ) { + if ( event[ jQuery.expando ] ) { + return event; + } + + // store a copy of the original event object + // and "clone" to set read-only properties + var originalEvent = event; + event = jQuery.Event( originalEvent ); + + for ( var i = this.props.length, prop; i; ) { + prop = this.props[ --i ]; + event[ prop ] = originalEvent[ prop ]; + } + + // Fix target property, if necessary + if ( !event.target ) { + // Fixes #1925 where srcElement might not be defined either + event.target = event.srcElement || document; + } + + // check if target is a textnode (safari) + if ( event.target.nodeType === 3 ) { + event.target = event.target.parentNode; + } + + // Add relatedTarget, if necessary + if ( !event.relatedTarget && event.fromElement ) { + event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement; + } + + // Calculate pageX/Y if missing and clientX/Y available + if ( event.pageX == null && event.clientX != null ) { + var eventDocument = event.target.ownerDocument || document, + doc = eventDocument.documentElement, + body = eventDocument.body; + + event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0); + event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc && doc.clientTop || body && body.clientTop || 0); + } + + // Add which for key events + if ( event.which == null && (event.charCode != null || event.keyCode != null) ) { + event.which = event.charCode != null ? event.charCode : event.keyCode; + } + + // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs) + if ( !event.metaKey && event.ctrlKey ) { + event.metaKey = event.ctrlKey; + } + + // Add which for click: 1 === left; 2 === middle; 3 === right + // Note: button is not normalized, so don't use it + if ( !event.which && event.button !== undefined ) { + event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) )); + } + + return event; + }, + + // Deprecated, use jQuery.guid instead + guid: 1E8, + + // Deprecated, use jQuery.proxy instead + proxy: jQuery.proxy, + + special: { + ready: { + // Make sure the ready event is setup + setup: jQuery.bindReady, + teardown: jQuery.noop + }, + + live: { + add: function( handleObj ) { + jQuery.event.add( this, + liveConvert( handleObj.origType, handleObj.selector ), + jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) ); + }, + + remove: function( handleObj ) { + jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj ); + } + }, + + beforeunload: { + setup: function( data, namespaces, eventHandle ) { + // We only want to do this special case on windows + if ( jQuery.isWindow( this ) ) { + this.onbeforeunload = eventHandle; + } + }, + + teardown: function( namespaces, eventHandle ) { + if ( this.onbeforeunload === eventHandle ) { + this.onbeforeunload = null; + } + } + } + } +}; + +jQuery.removeEvent = document.removeEventListener ? + function( elem, type, handle ) { + if ( elem.removeEventListener ) { + elem.removeEventListener( type, handle, false ); + } + } : + function( elem, type, handle ) { + if ( elem.detachEvent ) { + elem.detachEvent( "on" + type, handle ); + } + }; + +jQuery.Event = function( src, props ) { + // Allow instantiation without the 'new' keyword + if ( !this.preventDefault ) { + return new jQuery.Event( src, props ); + } + + // Event object + if ( src && src.type ) { + this.originalEvent = src; + this.type = src.type; + + // Events bubbling up the document may have been marked as prevented + // by a handler lower down the tree; reflect the correct value. + this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false || + src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse; + + // Event type + } else { + this.type = src; + } + + // Put explicitly provided properties onto the event object + if ( props ) { + jQuery.extend( this, props ); + } + + // timeStamp is buggy for some events on Firefox(#3843) + // So we won't rely on the native value + this.timeStamp = jQuery.now(); + + // Mark it as fixed + this[ jQuery.expando ] = true; +}; + +function returnFalse() { + return false; +} +function returnTrue() { + return true; +} + +// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding +// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html +jQuery.Event.prototype = { + preventDefault: function() { + this.isDefaultPrevented = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + + // if preventDefault exists run it on the original event + if ( e.preventDefault ) { + e.preventDefault(); + + // otherwise set the returnValue property of the original event to false (IE) + } else { + e.returnValue = false; + } + }, + stopPropagation: function() { + this.isPropagationStopped = returnTrue; + + var e = this.originalEvent; + if ( !e ) { + return; + } + // if stopPropagation exists run it on the original event + if ( e.stopPropagation ) { + e.stopPropagation(); + } + // otherwise set the cancelBubble property of the original event to true (IE) + e.cancelBubble = true; + }, + stopImmediatePropagation: function() { + this.isImmediatePropagationStopped = returnTrue; + this.stopPropagation(); + }, + isDefaultPrevented: returnFalse, + isPropagationStopped: returnFalse, + isImmediatePropagationStopped: returnFalse +}; + +// Checks if an event happened on an element within another element +// Used in jQuery.event.special.mouseenter and mouseleave handlers +var withinElement = function( event ) { + + // Check if mouse(over|out) are still within the same parent element + var related = event.relatedTarget, + inside = false, + eventType = event.type; + + event.type = event.data; + + if ( related !== this ) { + + if ( related ) { + inside = jQuery.contains( this, related ); + } + + if ( !inside ) { + + jQuery.event.handle.apply( this, arguments ); + + event.type = eventType; + } + } +}, + +// In case of event delegation, we only need to rename the event.type, +// liveHandler will take care of the rest. +delegate = function( event ) { + event.type = event.data; + jQuery.event.handle.apply( this, arguments ); +}; + +// Create mouseenter and mouseleave events +jQuery.each({ + mouseenter: "mouseover", + mouseleave: "mouseout" +}, function( orig, fix ) { + jQuery.event.special[ orig ] = { + setup: function( data ) { + jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig ); + }, + teardown: function( data ) { + jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement ); + } + }; +}); + +// submit delegation +if ( !jQuery.support.submitBubbles ) { + + jQuery.event.special.submit = { + setup: function( data, namespaces ) { + if ( !jQuery.nodeName( this, "form" ) ) { + jQuery.event.add(this, "click.specialSubmit", function( e ) { + var elem = e.target, + type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) { + trigger( "submit", this, arguments ); + } + }); + + jQuery.event.add(this, "keypress.specialSubmit", function( e ) { + var elem = e.target, + type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) { + trigger( "submit", this, arguments ); + } + }); + + } else { + return false; + } + }, + + teardown: function( namespaces ) { + jQuery.event.remove( this, ".specialSubmit" ); + } + }; + +} + +// change delegation, happens here so we have bind. +if ( !jQuery.support.changeBubbles ) { + + var changeFilters, + + getVal = function( elem ) { + var type = jQuery.nodeName( elem, "input" ) ? elem.type : "", + val = elem.value; + + if ( type === "radio" || type === "checkbox" ) { + val = elem.checked; + + } else if ( type === "select-multiple" ) { + val = elem.selectedIndex > -1 ? + jQuery.map( elem.options, function( elem ) { + return elem.selected; + }).join("-") : + ""; + + } else if ( jQuery.nodeName( elem, "select" ) ) { + val = elem.selectedIndex; + } + + return val; + }, + + testChange = function testChange( e ) { + var elem = e.target, data, val; + + if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) { + return; + } + + data = jQuery._data( elem, "_change_data" ); + val = getVal(elem); + + // the current data will be also retrieved by beforeactivate + if ( e.type !== "focusout" || elem.type !== "radio" ) { + jQuery._data( elem, "_change_data", val ); + } + + if ( data === undefined || val === data ) { + return; + } + + if ( data != null || val ) { + e.type = "change"; + e.liveFired = undefined; + jQuery.event.trigger( e, arguments[1], elem ); + } + }; + + jQuery.event.special.change = { + filters: { + focusout: testChange, + + beforedeactivate: testChange, + + click: function( e ) { + var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( type === "radio" || type === "checkbox" || jQuery.nodeName( elem, "select" ) ) { + testChange.call( this, e ); + } + }, + + // Change has to be called before submit + // Keydown will be called before keypress, which is used in submit-event delegation + keydown: function( e ) { + var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : ""; + + if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) || + (e.keyCode === 32 && (type === "checkbox" || type === "radio")) || + type === "select-multiple" ) { + testChange.call( this, e ); + } + }, + + // Beforeactivate happens also before the previous element is blurred + // with this event you can't trigger a change event, but you can store + // information + beforeactivate: function( e ) { + var elem = e.target; + jQuery._data( elem, "_change_data", getVal(elem) ); + } + }, + + setup: function( data, namespaces ) { + if ( this.type === "file" ) { + return false; + } + + for ( var type in changeFilters ) { + jQuery.event.add( this, type + ".specialChange", changeFilters[type] ); + } + + return rformElems.test( this.nodeName ); + }, + + teardown: function( namespaces ) { + jQuery.event.remove( this, ".specialChange" ); + + return rformElems.test( this.nodeName ); + } + }; + + changeFilters = jQuery.event.special.change.filters; + + // Handle when the input is .focus()'d + changeFilters.focus = changeFilters.beforeactivate; +} + +function trigger( type, elem, args ) { + // Piggyback on a donor event to simulate a different one. + // Fake originalEvent to avoid donor's stopPropagation, but if the + // simulated event prevents default then we do the same on the donor. + // Don't pass args or remember liveFired; they apply to the donor event. + var event = jQuery.extend( {}, args[ 0 ] ); + event.type = type; + event.originalEvent = {}; + event.liveFired = undefined; + jQuery.event.handle.call( elem, event ); + if ( event.isDefaultPrevented() ) { + args[ 0 ].preventDefault(); + } +} + +// Create "bubbling" focus and blur events +if ( !jQuery.support.focusinBubbles ) { + jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { + + // Attach a single capturing handler while someone wants focusin/focusout + var attaches = 0; + + jQuery.event.special[ fix ] = { + setup: function() { + if ( attaches++ === 0 ) { + document.addEventListener( orig, handler, true ); + } + }, + teardown: function() { + if ( --attaches === 0 ) { + document.removeEventListener( orig, handler, true ); + } + } + }; + + function handler( donor ) { + // Donor event is always a native one; fix it and switch its type. + // Let focusin/out handler cancel the donor focus/blur event. + var e = jQuery.event.fix( donor ); + e.type = fix; + e.originalEvent = {}; + jQuery.event.trigger( e, null, e.target ); + if ( e.isDefaultPrevented() ) { + donor.preventDefault(); + } + } + }); +} + +jQuery.each(["bind", "one"], function( i, name ) { + jQuery.fn[ name ] = function( type, data, fn ) { + var handler; + + // Handle object literals + if ( typeof type === "object" ) { + for ( var key in type ) { + this[ name ](key, data, type[key], fn); + } + return this; + } + + if ( arguments.length === 2 || data === false ) { + fn = data; + data = undefined; + } + + if ( name === "one" ) { + handler = function( event ) { + jQuery( this ).unbind( event, handler ); + return fn.apply( this, arguments ); + }; + handler.guid = fn.guid || jQuery.guid++; + } else { + handler = fn; + } + + if ( type === "unload" && name !== "one" ) { + this.one( type, data, fn ); + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.add( this[i], type, handler, data ); + } + } + + return this; + }; +}); + +jQuery.fn.extend({ + unbind: function( type, fn ) { + // Handle object literals + if ( typeof type === "object" && !type.preventDefault ) { + for ( var key in type ) { + this.unbind(key, type[key]); + } + + } else { + for ( var i = 0, l = this.length; i < l; i++ ) { + jQuery.event.remove( this[i], type, fn ); + } + } + + return this; + }, + + delegate: function( selector, types, data, fn ) { + return this.live( types, data, fn, selector ); + }, + + undelegate: function( selector, types, fn ) { + if ( arguments.length === 0 ) { + return this.unbind( "live" ); + + } else { + return this.die( types, null, fn, selector ); + } + }, + + trigger: function( type, data ) { + return this.each(function() { + jQuery.event.trigger( type, data, this ); + }); + }, + + triggerHandler: function( type, data ) { + if ( this[0] ) { + return jQuery.event.trigger( type, data, this[0], true ); + } + }, + + toggle: function( fn ) { + // Save reference to arguments for access in closure + var args = arguments, + guid = fn.guid || jQuery.guid++, + i = 0, + toggler = function( event ) { + // Figure out which function to execute + var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i; + jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 ); + + // Make sure that clicks stop + event.preventDefault(); + + // and execute the function + return args[ lastToggle ].apply( this, arguments ) || false; + }; + + // link all the functions, so any of them can unbind this click handler + toggler.guid = guid; + while ( i < args.length ) { + args[ i++ ].guid = guid; + } + + return this.click( toggler ); + }, + + hover: function( fnOver, fnOut ) { + return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); + } +}); + +var liveMap = { + focus: "focusin", + blur: "focusout", + mouseenter: "mouseover", + mouseleave: "mouseout" +}; + +jQuery.each(["live", "die"], function( i, name ) { + jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) { + var type, i = 0, match, namespaces, preType, + selector = origSelector || this.selector, + context = origSelector ? this : jQuery( this.context ); + + if ( typeof types === "object" && !types.preventDefault ) { + for ( var key in types ) { + context[ name ]( key, data, types[key], selector ); + } + + return this; + } + + if ( name === "die" && !types && + origSelector && origSelector.charAt(0) === "." ) { + + context.unbind( origSelector ); + + return this; + } + + if ( data === false || jQuery.isFunction( data ) ) { + fn = data || returnFalse; + data = undefined; + } + + types = (types || "").split(" "); + + while ( (type = types[ i++ ]) != null ) { + match = rnamespaces.exec( type ); + namespaces = ""; + + if ( match ) { + namespaces = match[0]; + type = type.replace( rnamespaces, "" ); + } + + if ( type === "hover" ) { + types.push( "mouseenter" + namespaces, "mouseleave" + namespaces ); + continue; + } + + preType = type; + + if ( liveMap[ type ] ) { + types.push( liveMap[ type ] + namespaces ); + type = type + namespaces; + + } else { + type = (liveMap[ type ] || type) + namespaces; + } + + if ( name === "live" ) { + // bind live handler + for ( var j = 0, l = context.length; j < l; j++ ) { + jQuery.event.add( context[j], "live." + liveConvert( type, selector ), + { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } ); + } + + } else { + // unbind live handler + context.unbind( "live." + liveConvert( type, selector ), fn ); + } + } + + return this; + }; +}); + +function liveHandler( event ) { + var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret, + elems = [], + selectors = [], + events = jQuery._data( this, "events" ); + + // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911) + if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) { + return; + } + + if ( event.namespace ) { + namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)"); + } + + event.liveFired = this; + + var live = events.live.slice(0); + + for ( j = 0; j < live.length; j++ ) { + handleObj = live[j]; + + if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) { + selectors.push( handleObj.selector ); + + } else { + live.splice( j--, 1 ); + } + } + + match = jQuery( event.target ).closest( selectors, event.currentTarget ); + + for ( i = 0, l = match.length; i < l; i++ ) { + close = match[i]; + + for ( j = 0; j < live.length; j++ ) { + handleObj = live[j]; + + if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) { + elem = close.elem; + related = null; + + // Those two events require additional checking + if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) { + event.type = handleObj.preType; + related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0]; + + // Make sure not to accidentally match a child element with the same selector + if ( related && jQuery.contains( elem, related ) ) { + related = elem; + } + } + + if ( !related || related !== elem ) { + elems.push({ elem: elem, handleObj: handleObj, level: close.level }); + } + } + } + } + + for ( i = 0, l = elems.length; i < l; i++ ) { + match = elems[i]; + + if ( maxLevel && match.level > maxLevel ) { + break; + } + + event.currentTarget = match.elem; + event.data = match.handleObj.data; + event.handleObj = match.handleObj; + + ret = match.handleObj.origHandler.apply( match.elem, arguments ); + + if ( ret === false || event.isPropagationStopped() ) { + maxLevel = match.level; + + if ( ret === false ) { + stop = false; + } + if ( event.isImmediatePropagationStopped() ) { + break; + } + } + } + + return stop; +} + +function liveConvert( type, selector ) { + return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&"); +} + +jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + + "change select submit keydown keypress keyup error").split(" "), function( i, name ) { + + // Handle event binding + jQuery.fn[ name ] = function( data, fn ) { + if ( fn == null ) { + fn = data; + data = null; + } + + return arguments.length > 0 ? + this.bind( name, data, fn ) : + this.trigger( name ); + }; + + if ( jQuery.attrFn ) { + jQuery.attrFn[ name ] = true; + } +}); + + + +/*! + * Sizzle CSS Selector Engine + * Copyright 2011, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * More information: http://sizzlejs.com/ + */ +(function(){ + +var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, + done = 0, + toString = Object.prototype.toString, + hasDuplicate = false, + baseHasDuplicate = true, + rBackslash = /\\/g, + rNonWord = /\W/; + +// Here we check if the JavaScript engine is using some sort of +// optimization where it does not always call our comparision +// function. If that is the case, discard the hasDuplicate value. +// Thus far that includes Google Chrome. +[0, 0].sort(function() { + baseHasDuplicate = false; + return 0; +}); + +var Sizzle = function( selector, context, results, seed ) { + results = results || []; + context = context || document; + + var origContext = context; + + if ( context.nodeType !== 1 && context.nodeType !== 9 ) { + return []; + } + + if ( !selector || typeof selector !== "string" ) { + return results; + } + + var m, set, checkSet, extra, ret, cur, pop, i, + prune = true, + contextXML = Sizzle.isXML( context ), + parts = [], + soFar = selector; + + // Reset the position of the chunker regexp (start from head) + do { + chunker.exec( "" ); + m = chunker.exec( soFar ); + + if ( m ) { + soFar = m[3]; + + parts.push( m[1] ); + + if ( m[2] ) { + extra = m[3]; + break; + } + } + } while ( m ); + + if ( parts.length > 1 && origPOS.exec( selector ) ) { + + if ( parts.length === 2 && Expr.relative[ parts[0] ] ) { + set = posProcess( parts[0] + parts[1], context ); + + } else { + set = Expr.relative[ parts[0] ] ? + [ context ] : + Sizzle( parts.shift(), context ); + + while ( parts.length ) { + selector = parts.shift(); + + if ( Expr.relative[ selector ] ) { + selector += parts.shift(); + } + + set = posProcess( selector, set ); + } + } + + } else { + // Take a shortcut and set the context if the root selector is an ID + // (but not if it'll be faster if the inner selector is an ID) + if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML && + Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) { + + ret = Sizzle.find( parts.shift(), context, contextXML ); + context = ret.expr ? + Sizzle.filter( ret.expr, ret.set )[0] : + ret.set[0]; + } + + if ( context ) { + ret = seed ? + { expr: parts.pop(), set: makeArray(seed) } : + Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML ); + + set = ret.expr ? + Sizzle.filter( ret.expr, ret.set ) : + ret.set; + + if ( parts.length > 0 ) { + checkSet = makeArray( set ); + + } else { + prune = false; + } + + while ( parts.length ) { + cur = parts.pop(); + pop = cur; + + if ( !Expr.relative[ cur ] ) { + cur = ""; + } else { + pop = parts.pop(); + } + + if ( pop == null ) { + pop = context; + } + + Expr.relative[ cur ]( checkSet, pop, contextXML ); + } + + } else { + checkSet = parts = []; + } + } + + if ( !checkSet ) { + checkSet = set; + } + + if ( !checkSet ) { + Sizzle.error( cur || selector ); + } + + if ( toString.call(checkSet) === "[object Array]" ) { + if ( !prune ) { + results.push.apply( results, checkSet ); + + } else if ( context && context.nodeType === 1 ) { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) { + results.push( set[i] ); + } + } + + } else { + for ( i = 0; checkSet[i] != null; i++ ) { + if ( checkSet[i] && checkSet[i].nodeType === 1 ) { + results.push( set[i] ); + } + } + } + + } else { + makeArray( checkSet, results ); + } + + if ( extra ) { + Sizzle( extra, origContext, results, seed ); + Sizzle.uniqueSort( results ); + } + + return results; +}; + +Sizzle.uniqueSort = function( results ) { + if ( sortOrder ) { + hasDuplicate = baseHasDuplicate; + results.sort( sortOrder ); + + if ( hasDuplicate ) { + for ( var i = 1; i < results.length; i++ ) { + if ( results[i] === results[ i - 1 ] ) { + results.splice( i--, 1 ); + } + } + } + } + + return results; +}; + +Sizzle.matches = function( expr, set ) { + return Sizzle( expr, null, null, set ); +}; + +Sizzle.matchesSelector = function( node, expr ) { + return Sizzle( expr, null, null, [node] ).length > 0; +}; + +Sizzle.find = function( expr, context, isXML ) { + var set; + + if ( !expr ) { + return []; + } + + for ( var i = 0, l = Expr.order.length; i < l; i++ ) { + var match, + type = Expr.order[i]; + + if ( (match = Expr.leftMatch[ type ].exec( expr )) ) { + var left = match[1]; + match.splice( 1, 1 ); + + if ( left.substr( left.length - 1 ) !== "\\" ) { + match[1] = (match[1] || "").replace( rBackslash, "" ); + set = Expr.find[ type ]( match, context, isXML ); + + if ( set != null ) { + expr = expr.replace( Expr.match[ type ], "" ); + break; + } + } + } + } + + if ( !set ) { + set = typeof context.getElementsByTagName !== "undefined" ? + context.getElementsByTagName( "*" ) : + []; + } + + return { set: set, expr: expr }; +}; + +Sizzle.filter = function( expr, set, inplace, not ) { + var match, anyFound, + old = expr, + result = [], + curLoop = set, + isXMLFilter = set && set[0] && Sizzle.isXML( set[0] ); + + while ( expr && set.length ) { + for ( var type in Expr.filter ) { + if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) { + var found, item, + filter = Expr.filter[ type ], + left = match[1]; + + anyFound = false; + + match.splice(1,1); + + if ( left.substr( left.length - 1 ) === "\\" ) { + continue; + } + + if ( curLoop === result ) { + result = []; + } + + if ( Expr.preFilter[ type ] ) { + match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter ); + + if ( !match ) { + anyFound = found = true; + + } else if ( match === true ) { + continue; + } + } + + if ( match ) { + for ( var i = 0; (item = curLoop[i]) != null; i++ ) { + if ( item ) { + found = filter( item, match, i, curLoop ); + var pass = not ^ !!found; + + if ( inplace && found != null ) { + if ( pass ) { + anyFound = true; + + } else { + curLoop[i] = false; + } + + } else if ( pass ) { + result.push( item ); + anyFound = true; + } + } + } + } + + if ( found !== undefined ) { + if ( !inplace ) { + curLoop = result; + } + + expr = expr.replace( Expr.match[ type ], "" ); + + if ( !anyFound ) { + return []; + } + + break; + } + } + } + + // Improper expression + if ( expr === old ) { + if ( anyFound == null ) { + Sizzle.error( expr ); + + } else { + break; + } + } + + old = expr; + } + + return curLoop; +}; + +Sizzle.error = function( msg ) { + throw "Syntax error, unrecognized expression: " + msg; +}; + +var Expr = Sizzle.selectors = { + order: [ "ID", "NAME", "TAG" ], + + match: { + ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/, + NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/, + ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/, + TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/, + CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/, + POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/, + PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/ + }, + + leftMatch: {}, + + attrMap: { + "class": "className", + "for": "htmlFor" + }, + + attrHandle: { + href: function( elem ) { + return elem.getAttribute( "href" ); + }, + type: function( elem ) { + return elem.getAttribute( "type" ); + } + }, + + relative: { + "+": function(checkSet, part){ + var isPartStr = typeof part === "string", + isTag = isPartStr && !rNonWord.test( part ), + isPartStrNotTag = isPartStr && !isTag; + + if ( isTag ) { + part = part.toLowerCase(); + } + + for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) { + if ( (elem = checkSet[i]) ) { + while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {} + + checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ? + elem || false : + elem === part; + } + } + + if ( isPartStrNotTag ) { + Sizzle.filter( part, checkSet, true ); + } + }, + + ">": function( checkSet, part ) { + var elem, + isPartStr = typeof part === "string", + i = 0, + l = checkSet.length; + + if ( isPartStr && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + var parent = elem.parentNode; + checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false; + } + } + + } else { + for ( ; i < l; i++ ) { + elem = checkSet[i]; + + if ( elem ) { + checkSet[i] = isPartStr ? + elem.parentNode : + elem.parentNode === part; + } + } + + if ( isPartStr ) { + Sizzle.filter( part, checkSet, true ); + } + } + }, + + "": function(checkSet, part, isXML){ + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML ); + }, + + "~": function( checkSet, part, isXML ) { + var nodeCheck, + doneName = done++, + checkFn = dirCheck; + + if ( typeof part === "string" && !rNonWord.test( part ) ) { + part = part.toLowerCase(); + nodeCheck = part; + checkFn = dirNodeCheck; + } + + checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML ); + } + }, + + find: { + ID: function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + return m && m.parentNode ? [m] : []; + } + }, + + NAME: function( match, context ) { + if ( typeof context.getElementsByName !== "undefined" ) { + var ret = [], + results = context.getElementsByName( match[1] ); + + for ( var i = 0, l = results.length; i < l; i++ ) { + if ( results[i].getAttribute("name") === match[1] ) { + ret.push( results[i] ); + } + } + + return ret.length === 0 ? null : ret; + } + }, + + TAG: function( match, context ) { + if ( typeof context.getElementsByTagName !== "undefined" ) { + return context.getElementsByTagName( match[1] ); + } + } + }, + preFilter: { + CLASS: function( match, curLoop, inplace, result, not, isXML ) { + match = " " + match[1].replace( rBackslash, "" ) + " "; + + if ( isXML ) { + return match; + } + + for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) { + if ( elem ) { + if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) { + if ( !inplace ) { + result.push( elem ); + } + + } else if ( inplace ) { + curLoop[i] = false; + } + } + } + + return false; + }, + + ID: function( match ) { + return match[1].replace( rBackslash, "" ); + }, + + TAG: function( match, curLoop ) { + return match[1].replace( rBackslash, "" ).toLowerCase(); + }, + + CHILD: function( match ) { + if ( match[1] === "nth" ) { + if ( !match[2] ) { + Sizzle.error( match[0] ); + } + + match[2] = match[2].replace(/^\+|\s*/g, ''); + + // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6' + var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec( + match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" || + !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); + + // calculate the numbers (first)n+(last) including if they are negative + match[2] = (test[1] + (test[2] || 1)) - 0; + match[3] = test[3] - 0; + } + else if ( match[2] ) { + Sizzle.error( match[0] ); + } + + // TODO: Move to normal caching system + match[0] = done++; + + return match; + }, + + ATTR: function( match, curLoop, inplace, result, not, isXML ) { + var name = match[1] = match[1].replace( rBackslash, "" ); + + if ( !isXML && Expr.attrMap[name] ) { + match[1] = Expr.attrMap[name]; + } + + // Handle if an un-quoted value was used + match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" ); + + if ( match[2] === "~=" ) { + match[4] = " " + match[4] + " "; + } + + return match; + }, + + PSEUDO: function( match, curLoop, inplace, result, not ) { + if ( match[1] === "not" ) { + // If we're dealing with a complex expression, or a simple one + if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) { + match[3] = Sizzle(match[3], null, null, curLoop); + + } else { + var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not); + + if ( !inplace ) { + result.push.apply( result, ret ); + } + + return false; + } + + } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) { + return true; + } + + return match; + }, + + POS: function( match ) { + match.unshift( true ); + + return match; + } + }, + + filters: { + enabled: function( elem ) { + return elem.disabled === false && elem.type !== "hidden"; + }, + + disabled: function( elem ) { + return elem.disabled === true; + }, + + checked: function( elem ) { + return elem.checked === true; + }, + + selected: function( elem ) { + // Accessing this property makes selected-by-default + // options in Safari work properly + if ( elem.parentNode ) { + elem.parentNode.selectedIndex; + } + + return elem.selected === true; + }, + + parent: function( elem ) { + return !!elem.firstChild; + }, + + empty: function( elem ) { + return !elem.firstChild; + }, + + has: function( elem, i, match ) { + return !!Sizzle( match[3], elem ).length; + }, + + header: function( elem ) { + return (/h\d/i).test( elem.nodeName ); + }, + + text: function( elem ) { + var attr = elem.getAttribute( "type" ), type = elem.type; + // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) + // use getAttribute instead to test this case + return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null ); + }, + + radio: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type; + }, + + checkbox: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type; + }, + + file: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "file" === elem.type; + }, + + password: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "password" === elem.type; + }, + + submit: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && "submit" === elem.type; + }, + + image: function( elem ) { + return elem.nodeName.toLowerCase() === "input" && "image" === elem.type; + }, + + reset: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return (name === "input" || name === "button") && "reset" === elem.type; + }, + + button: function( elem ) { + var name = elem.nodeName.toLowerCase(); + return name === "input" && "button" === elem.type || name === "button"; + }, + + input: function( elem ) { + return (/input|select|textarea|button/i).test( elem.nodeName ); + }, + + focus: function( elem ) { + return elem === elem.ownerDocument.activeElement; + } + }, + setFilters: { + first: function( elem, i ) { + return i === 0; + }, + + last: function( elem, i, match, array ) { + return i === array.length - 1; + }, + + even: function( elem, i ) { + return i % 2 === 0; + }, + + odd: function( elem, i ) { + return i % 2 === 1; + }, + + lt: function( elem, i, match ) { + return i < match[3] - 0; + }, + + gt: function( elem, i, match ) { + return i > match[3] - 0; + }, + + nth: function( elem, i, match ) { + return match[3] - 0 === i; + }, + + eq: function( elem, i, match ) { + return match[3] - 0 === i; + } + }, + filter: { + PSEUDO: function( elem, match, i, array ) { + var name = match[1], + filter = Expr.filters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + + } else if ( name === "contains" ) { + return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0; + + } else if ( name === "not" ) { + var not = match[3]; + + for ( var j = 0, l = not.length; j < l; j++ ) { + if ( not[j] === elem ) { + return false; + } + } + + return true; + + } else { + Sizzle.error( name ); + } + }, + + CHILD: function( elem, match ) { + var type = match[1], + node = elem; + + switch ( type ) { + case "only": + case "first": + while ( (node = node.previousSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + if ( type === "first" ) { + return true; + } + + node = elem; + + case "last": + while ( (node = node.nextSibling) ) { + if ( node.nodeType === 1 ) { + return false; + } + } + + return true; + + case "nth": + var first = match[2], + last = match[3]; + + if ( first === 1 && last === 0 ) { + return true; + } + + var doneName = match[0], + parent = elem.parentNode; + + if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) { + var count = 0; + + for ( node = parent.firstChild; node; node = node.nextSibling ) { + if ( node.nodeType === 1 ) { + node.nodeIndex = ++count; + } + } + + parent.sizcache = doneName; + } + + var diff = elem.nodeIndex - last; + + if ( first === 0 ) { + return diff === 0; + + } else { + return ( diff % first === 0 && diff / first >= 0 ); + } + } + }, + + ID: function( elem, match ) { + return elem.nodeType === 1 && elem.getAttribute("id") === match; + }, + + TAG: function( elem, match ) { + return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match; + }, + + CLASS: function( elem, match ) { + return (" " + (elem.className || elem.getAttribute("class")) + " ") + .indexOf( match ) > -1; + }, + + ATTR: function( elem, match ) { + var name = match[1], + result = Expr.attrHandle[ name ] ? + Expr.attrHandle[ name ]( elem ) : + elem[ name ] != null ? + elem[ name ] : + elem.getAttribute( name ), + value = result + "", + type = match[2], + check = match[4]; + + return result == null ? + type === "!=" : + type === "=" ? + value === check : + type === "*=" ? + value.indexOf(check) >= 0 : + type === "~=" ? + (" " + value + " ").indexOf(check) >= 0 : + !check ? + value && result !== false : + type === "!=" ? + value !== check : + type === "^=" ? + value.indexOf(check) === 0 : + type === "$=" ? + value.substr(value.length - check.length) === check : + type === "|=" ? + value === check || value.substr(0, check.length + 1) === check + "-" : + false; + }, + + POS: function( elem, match, i, array ) { + var name = match[2], + filter = Expr.setFilters[ name ]; + + if ( filter ) { + return filter( elem, i, match, array ); + } + } + } +}; + +var origPOS = Expr.match.POS, + fescape = function(all, num){ + return "\\" + (num - 0 + 1); + }; + +for ( var type in Expr.match ) { + Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) ); + Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) ); +} + +var makeArray = function( array, results ) { + array = Array.prototype.slice.call( array, 0 ); + + if ( results ) { + results.push.apply( results, array ); + return results; + } + + return array; +}; + +// Perform a simple check to determine if the browser is capable of +// converting a NodeList to an array using builtin methods. +// Also verifies that the returned array holds DOM nodes +// (which is not the case in the Blackberry browser) +try { + Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType; + +// Provide a fallback method if it does not work +} catch( e ) { + makeArray = function( array, results ) { + var i = 0, + ret = results || []; + + if ( toString.call(array) === "[object Array]" ) { + Array.prototype.push.apply( ret, array ); + + } else { + if ( typeof array.length === "number" ) { + for ( var l = array.length; i < l; i++ ) { + ret.push( array[i] ); + } + + } else { + for ( ; array[i]; i++ ) { + ret.push( array[i] ); + } + } + } + + return ret; + }; +} + +var sortOrder, siblingCheck; + +if ( document.documentElement.compareDocumentPosition ) { + sortOrder = function( a, b ) { + if ( a === b ) { + hasDuplicate = true; + return 0; + } + + if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { + return a.compareDocumentPosition ? -1 : 1; + } + + return a.compareDocumentPosition(b) & 4 ? -1 : 1; + }; + +} else { + sortOrder = function( a, b ) { + // The nodes are identical, we can exit early + if ( a === b ) { + hasDuplicate = true; + return 0; + + // Fallback to using sourceIndex (in IE) if it's available on both nodes + } else if ( a.sourceIndex && b.sourceIndex ) { + return a.sourceIndex - b.sourceIndex; + } + + var al, bl, + ap = [], + bp = [], + aup = a.parentNode, + bup = b.parentNode, + cur = aup; + + // If the nodes are siblings (or identical) we can do a quick check + if ( aup === bup ) { + return siblingCheck( a, b ); + + // If no parents were found then the nodes are disconnected + } else if ( !aup ) { + return -1; + + } else if ( !bup ) { + return 1; + } + + // Otherwise they're somewhere else in the tree so we need + // to build up a full list of the parentNodes for comparison + while ( cur ) { + ap.unshift( cur ); + cur = cur.parentNode; + } + + cur = bup; + + while ( cur ) { + bp.unshift( cur ); + cur = cur.parentNode; + } + + al = ap.length; + bl = bp.length; + + // Start walking down the tree looking for a discrepancy + for ( var i = 0; i < al && i < bl; i++ ) { + if ( ap[i] !== bp[i] ) { + return siblingCheck( ap[i], bp[i] ); + } + } + + // We ended someplace up the tree so do a sibling check + return i === al ? + siblingCheck( a, bp[i], -1 ) : + siblingCheck( ap[i], b, 1 ); + }; + + siblingCheck = function( a, b, ret ) { + if ( a === b ) { + return ret; + } + + var cur = a.nextSibling; + + while ( cur ) { + if ( cur === b ) { + return -1; + } + + cur = cur.nextSibling; + } + + return 1; + }; +} + +// Utility function for retreiving the text value of an array of DOM nodes +Sizzle.getText = function( elems ) { + var ret = "", elem; + + for ( var i = 0; elems[i]; i++ ) { + elem = elems[i]; + + // Get the text from text nodes and CDATA nodes + if ( elem.nodeType === 3 || elem.nodeType === 4 ) { + ret += elem.nodeValue; + + // Traverse everything else, except comment nodes + } else if ( elem.nodeType !== 8 ) { + ret += Sizzle.getText( elem.childNodes ); + } + } + + return ret; +}; + +// Check to see if the browser returns elements by name when +// querying by getElementById (and provide a workaround) +(function(){ + // We're going to inject a fake input element with a specified name + var form = document.createElement("div"), + id = "script" + (new Date()).getTime(), + root = document.documentElement; + + form.innerHTML = ""; + + // Inject it into the root element, check its status, and remove it quickly + root.insertBefore( form, root.firstChild ); + + // The workaround has to do additional checks after a getElementById + // Which slows things down for other browsers (hence the branching) + if ( document.getElementById( id ) ) { + Expr.find.ID = function( match, context, isXML ) { + if ( typeof context.getElementById !== "undefined" && !isXML ) { + var m = context.getElementById(match[1]); + + return m ? + m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? + [m] : + undefined : + []; + } + }; + + Expr.filter.ID = function( elem, match ) { + var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); + + return elem.nodeType === 1 && node && node.nodeValue === match; + }; + } + + root.removeChild( form ); + + // release memory in IE + root = form = null; +})(); + +(function(){ + // Check to see if the browser returns only elements + // when doing getElementsByTagName("*") + + // Create a fake element + var div = document.createElement("div"); + div.appendChild( document.createComment("") ); + + // Make sure no comments are found + if ( div.getElementsByTagName("*").length > 0 ) { + Expr.find.TAG = function( match, context ) { + var results = context.getElementsByTagName( match[1] ); + + // Filter out possible comments + if ( match[1] === "*" ) { + var tmp = []; + + for ( var i = 0; results[i]; i++ ) { + if ( results[i].nodeType === 1 ) { + tmp.push( results[i] ); + } + } + + results = tmp; + } + + return results; + }; + } + + // Check to see if an attribute returns normalized href attributes + div.innerHTML = ""; + + if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && + div.firstChild.getAttribute("href") !== "#" ) { + + Expr.attrHandle.href = function( elem ) { + return elem.getAttribute( "href", 2 ); + }; + } + + // release memory in IE + div = null; +})(); + +if ( document.querySelectorAll ) { + (function(){ + var oldSizzle = Sizzle, + div = document.createElement("div"), + id = "__sizzle__"; + + div.innerHTML = "

      "; + + // Safari can't handle uppercase or unicode characters when + // in quirks mode. + if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) { + return; + } + + Sizzle = function( query, context, extra, seed ) { + context = context || document; + + // Only use querySelectorAll on non-XML documents + // (ID selectors don't work in non-HTML documents) + if ( !seed && !Sizzle.isXML(context) ) { + // See if we find a selector to speed up + var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query ); + + if ( match && (context.nodeType === 1 || context.nodeType === 9) ) { + // Speed-up: Sizzle("TAG") + if ( match[1] ) { + return makeArray( context.getElementsByTagName( query ), extra ); + + // Speed-up: Sizzle(".CLASS") + } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) { + return makeArray( context.getElementsByClassName( match[2] ), extra ); + } + } + + if ( context.nodeType === 9 ) { + // Speed-up: Sizzle("body") + // The body element only exists once, optimize finding it + if ( query === "body" && context.body ) { + return makeArray( [ context.body ], extra ); + + // Speed-up: Sizzle("#ID") + } else if ( match && match[3] ) { + var elem = context.getElementById( match[3] ); + + // Check parentNode to catch when Blackberry 4.6 returns + // nodes that are no longer in the document #6963 + if ( elem && elem.parentNode ) { + // Handle the case where IE and Opera return items + // by name instead of ID + if ( elem.id === match[3] ) { + return makeArray( [ elem ], extra ); + } + + } else { + return makeArray( [], extra ); + } + } + + try { + return makeArray( context.querySelectorAll(query), extra ); + } catch(qsaError) {} + + // qSA works strangely on Element-rooted queries + // We can work around this by specifying an extra ID on the root + // and working up from there (Thanks to Andrew Dupont for the technique) + // IE 8 doesn't work on object elements + } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { + var oldContext = context, + old = context.getAttribute( "id" ), + nid = old || id, + hasParent = context.parentNode, + relativeHierarchySelector = /^\s*[+~]/.test( query ); + + if ( !old ) { + context.setAttribute( "id", nid ); + } else { + nid = nid.replace( /'/g, "\\$&" ); + } + if ( relativeHierarchySelector && hasParent ) { + context = context.parentNode; + } + + try { + if ( !relativeHierarchySelector || hasParent ) { + return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra ); + } + + } catch(pseudoError) { + } finally { + if ( !old ) { + oldContext.removeAttribute( "id" ); + } + } + } + } + + return oldSizzle(query, context, extra, seed); + }; + + for ( var prop in oldSizzle ) { + Sizzle[ prop ] = oldSizzle[ prop ]; + } + + // release memory in IE + div = null; + })(); +} + +(function(){ + var html = document.documentElement, + matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector; + + if ( matches ) { + // Check to see if it's possible to do matchesSelector + // on a disconnected node (IE 9 fails this) + var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ), + pseudoWorks = false; + + try { + // This should fail with an exception + // Gecko does not error, returns false instead + matches.call( document.documentElement, "[test!='']:sizzle" ); + + } catch( pseudoError ) { + pseudoWorks = true; + } + + Sizzle.matchesSelector = function( node, expr ) { + // Make sure that attribute selectors are quoted + expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']"); + + if ( !Sizzle.isXML( node ) ) { + try { + if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) { + var ret = matches.call( node, expr ); + + // IE 9's matchesSelector returns false on disconnected nodes + if ( ret || !disconnectedMatch || + // As well, disconnected nodes are said to be in a document + // fragment in IE 9, so check for that + node.document && node.document.nodeType !== 11 ) { + return ret; + } + } + } catch(e) {} + } + + return Sizzle(expr, null, null, [node]).length > 0; + }; + } +})(); + +(function(){ + var div = document.createElement("div"); + + div.innerHTML = "
      "; + + // Opera can't find a second classname (in 9.6) + // Also, make sure that getElementsByClassName actually exists + if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) { + return; + } + + // Safari caches class attributes, doesn't catch changes (in 3.2) + div.lastChild.className = "e"; + + if ( div.getElementsByClassName("e").length === 1 ) { + return; + } + + Expr.order.splice(1, 0, "CLASS"); + Expr.find.CLASS = function( match, context, isXML ) { + if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) { + return context.getElementsByClassName(match[1]); + } + }; + + // release memory in IE + div = null; +})(); + +function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem.sizcache === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 && !isXML ){ + elem.sizcache = doneName; + elem.sizset = i; + } + + if ( elem.nodeName.toLowerCase() === cur ) { + match = elem; + break; + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { + for ( var i = 0, l = checkSet.length; i < l; i++ ) { + var elem = checkSet[i]; + + if ( elem ) { + var match = false; + + elem = elem[dir]; + + while ( elem ) { + if ( elem.sizcache === doneName ) { + match = checkSet[elem.sizset]; + break; + } + + if ( elem.nodeType === 1 ) { + if ( !isXML ) { + elem.sizcache = doneName; + elem.sizset = i; + } + + if ( typeof cur !== "string" ) { + if ( elem === cur ) { + match = true; + break; + } + + } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { + match = elem; + break; + } + } + + elem = elem[dir]; + } + + checkSet[i] = match; + } + } +} + +if ( document.documentElement.contains ) { + Sizzle.contains = function( a, b ) { + return a !== b && (a.contains ? a.contains(b) : true); + }; + +} else if ( document.documentElement.compareDocumentPosition ) { + Sizzle.contains = function( a, b ) { + return !!(a.compareDocumentPosition(b) & 16); + }; + +} else { + Sizzle.contains = function() { + return false; + }; +} + +Sizzle.isXML = function( elem ) { + // documentElement is verified for cases where it doesn't yet exist + // (such as loading iframes in IE - #4833) + var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement; + + return documentElement ? documentElement.nodeName !== "HTML" : false; +}; + +var posProcess = function( selector, context ) { + var match, + tmpSet = [], + later = "", + root = context.nodeType ? [context] : context; + + // Position selectors must be done after the filter + // And so must :not(positional) so we move all PSEUDOs to the end + while ( (match = Expr.match.PSEUDO.exec( selector )) ) { + later += match[0]; + selector = selector.replace( Expr.match.PSEUDO, "" ); + } + + selector = Expr.relative[selector] ? selector + "*" : selector; + + for ( var i = 0, l = root.length; i < l; i++ ) { + Sizzle( selector, root[i], tmpSet ); + } + + return Sizzle.filter( later, tmpSet ); +}; + +// EXPOSE +jQuery.find = Sizzle; +jQuery.expr = Sizzle.selectors; +jQuery.expr[":"] = jQuery.expr.filters; +jQuery.unique = Sizzle.uniqueSort; +jQuery.text = Sizzle.getText; +jQuery.isXMLDoc = Sizzle.isXML; +jQuery.contains = Sizzle.contains; + + +})(); + + +var runtil = /Until$/, + rparentsprev = /^(?:parents|prevUntil|prevAll)/, + // Note: This RegExp should be improved, or likely pulled from Sizzle + rmultiselector = /,/, + isSimple = /^.[^:#\[\.,]*$/, + slice = Array.prototype.slice, + POS = jQuery.expr.match.POS, + // methods guaranteed to produce a unique set when starting from a unique set + guaranteedUnique = { + children: true, + contents: true, + next: true, + prev: true + }; + +jQuery.fn.extend({ + find: function( selector ) { + var self = this, + i, l; + + if ( typeof selector !== "string" ) { + return jQuery( selector ).filter(function() { + for ( i = 0, l = self.length; i < l; i++ ) { + if ( jQuery.contains( self[ i ], this ) ) { + return true; + } + } + }); + } + + var ret = this.pushStack( "", "find", selector ), + length, n, r; + + for ( i = 0, l = this.length; i < l; i++ ) { + length = ret.length; + jQuery.find( selector, this[i], ret ); + + if ( i > 0 ) { + // Make sure that the results are unique + for ( n = length; n < ret.length; n++ ) { + for ( r = 0; r < length; r++ ) { + if ( ret[r] === ret[n] ) { + ret.splice(n--, 1); + break; + } + } + } + } + } + + return ret; + }, + + has: function( target ) { + var targets = jQuery( target ); + return this.filter(function() { + for ( var i = 0, l = targets.length; i < l; i++ ) { + if ( jQuery.contains( this, targets[i] ) ) { + return true; + } + } + }); + }, + + not: function( selector ) { + return this.pushStack( winnow(this, selector, false), "not", selector); + }, + + filter: function( selector ) { + return this.pushStack( winnow(this, selector, true), "filter", selector ); + }, + + is: function( selector ) { + return !!selector && ( typeof selector === "string" ? + jQuery.filter( selector, this ).length > 0 : + this.filter( selector ).length > 0 ); + }, + + closest: function( selectors, context ) { + var ret = [], i, l, cur = this[0]; + + // Array + if ( jQuery.isArray( selectors ) ) { + var match, selector, + matches = {}, + level = 1; + + if ( cur && selectors.length ) { + for ( i = 0, l = selectors.length; i < l; i++ ) { + selector = selectors[i]; + + if ( !matches[ selector ] ) { + matches[ selector ] = POS.test( selector ) ? + jQuery( selector, context || this.context ) : + selector; + } + } + + while ( cur && cur.ownerDocument && cur !== context ) { + for ( selector in matches ) { + match = matches[ selector ]; + + if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) { + ret.push({ selector: selector, elem: cur, level: level }); + } + } + + cur = cur.parentNode; + level++; + } + } + + return ret; + } + + // String + var pos = POS.test( selectors ) || typeof selectors !== "string" ? + jQuery( selectors, context || this.context ) : + 0; + + for ( i = 0, l = this.length; i < l; i++ ) { + cur = this[i]; + + while ( cur ) { + if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) { + ret.push( cur ); + break; + + } else { + cur = cur.parentNode; + if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) { + break; + } + } + } + } + + ret = ret.length > 1 ? jQuery.unique( ret ) : ret; + + return this.pushStack( ret, "closest", selectors ); + }, + + // Determine the position of an element within + // the matched set of elements + index: function( elem ) { + + // No argument, return index in parent + if ( !elem ) { + return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1; + } + + // index in selector + if ( typeof elem === "string" ) { + return jQuery.inArray( this[0], jQuery( elem ) ); + } + + // Locate the position of the desired element + return jQuery.inArray( + // If it receives a jQuery object, the first element is used + elem.jquery ? elem[0] : elem, this ); + }, + + add: function( selector, context ) { + var set = typeof selector === "string" ? + jQuery( selector, context ) : + jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), + all = jQuery.merge( this.get(), set ); + + return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ? + all : + jQuery.unique( all ) ); + }, + + andSelf: function() { + return this.add( this.prevObject ); + } +}); + +// A painfully simple check to see if an element is disconnected +// from a document (should be improved, where feasible). +function isDisconnected( node ) { + return !node || !node.parentNode || node.parentNode.nodeType === 11; +} + +jQuery.each({ + parent: function( elem ) { + var parent = elem.parentNode; + return parent && parent.nodeType !== 11 ? parent : null; + }, + parents: function( elem ) { + return jQuery.dir( elem, "parentNode" ); + }, + parentsUntil: function( elem, i, until ) { + return jQuery.dir( elem, "parentNode", until ); + }, + next: function( elem ) { + return jQuery.nth( elem, 2, "nextSibling" ); + }, + prev: function( elem ) { + return jQuery.nth( elem, 2, "previousSibling" ); + }, + nextAll: function( elem ) { + return jQuery.dir( elem, "nextSibling" ); + }, + prevAll: function( elem ) { + return jQuery.dir( elem, "previousSibling" ); + }, + nextUntil: function( elem, i, until ) { + return jQuery.dir( elem, "nextSibling", until ); + }, + prevUntil: function( elem, i, until ) { + return jQuery.dir( elem, "previousSibling", until ); + }, + siblings: function( elem ) { + return jQuery.sibling( elem.parentNode.firstChild, elem ); + }, + children: function( elem ) { + return jQuery.sibling( elem.firstChild ); + }, + contents: function( elem ) { + return jQuery.nodeName( elem, "iframe" ) ? + elem.contentDocument || elem.contentWindow.document : + jQuery.makeArray( elem.childNodes ); + } +}, function( name, fn ) { + jQuery.fn[ name ] = function( until, selector ) { + var ret = jQuery.map( this, fn, until ), + // The variable 'args' was introduced in + // https://github.com/jquery/jquery/commit/52a0238 + // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed. + // http://code.google.com/p/v8/issues/detail?id=1050 + args = slice.call(arguments); + + if ( !runtil.test( name ) ) { + selector = until; + } + + if ( selector && typeof selector === "string" ) { + ret = jQuery.filter( selector, ret ); + } + + ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret; + + if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) { + ret = ret.reverse(); + } + + return this.pushStack( ret, name, args.join(",") ); + }; +}); + +jQuery.extend({ + filter: function( expr, elems, not ) { + if ( not ) { + expr = ":not(" + expr + ")"; + } + + return elems.length === 1 ? + jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] : + jQuery.find.matches(expr, elems); + }, + + dir: function( elem, dir, until ) { + var matched = [], + cur = elem[ dir ]; + + while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) { + if ( cur.nodeType === 1 ) { + matched.push( cur ); + } + cur = cur[dir]; + } + return matched; + }, + + nth: function( cur, result, dir, elem ) { + result = result || 1; + var num = 0; + + for ( ; cur; cur = cur[dir] ) { + if ( cur.nodeType === 1 && ++num === result ) { + break; + } + } + + return cur; + }, + + sibling: function( n, elem ) { + var r = []; + + for ( ; n; n = n.nextSibling ) { + if ( n.nodeType === 1 && n !== elem ) { + r.push( n ); + } + } + + return r; + } +}); + +// Implement the identical functionality for filter and not +function winnow( elements, qualifier, keep ) { + + // Can't pass null or undefined to indexOf in Firefox 4 + // Set to 0 to skip string check + qualifier = qualifier || 0; + + if ( jQuery.isFunction( qualifier ) ) { + return jQuery.grep(elements, function( elem, i ) { + var retVal = !!qualifier.call( elem, i, elem ); + return retVal === keep; + }); + + } else if ( qualifier.nodeType ) { + return jQuery.grep(elements, function( elem, i ) { + return (elem === qualifier) === keep; + }); + + } else if ( typeof qualifier === "string" ) { + var filtered = jQuery.grep(elements, function( elem ) { + return elem.nodeType === 1; + }); + + if ( isSimple.test( qualifier ) ) { + return jQuery.filter(qualifier, filtered, !keep); + } else { + qualifier = jQuery.filter( qualifier, filtered ); + } + } + + return jQuery.grep(elements, function( elem, i ) { + return (jQuery.inArray( elem, qualifier ) >= 0) === keep; + }); +} + + + + +var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g, + rleadingWhitespace = /^\s+/, + rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig, + rtagName = /<([\w:]+)/, + rtbody = /", "" ], + legend: [ 1, "
      ", "
      " ], + thead: [ 1, "", "
      " ], + tr: [ 2, "", "
      " ], + td: [ 3, "", "
      " ], + col: [ 2, "", "
      " ], + area: [ 1, "", "" ], + _default: [ 0, "", "" ] + }; + +wrapMap.optgroup = wrapMap.option; +wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; +wrapMap.th = wrapMap.td; + +// IE can't serialize and