//****************************************************************************
// Copyright (c) 2005, Coveo Solutions Inc.
//****************************************************************************

//****************************************************************************
// Shortcut for document.getElementById(...).
//****************************************************************************
function G(p_Id)
{
    return document.getElementById(p_Id);
}

//****************************************************************************
// Returns whether the current browser is Internet Explorer.
//****************************************************************************
function CNL_IsIE()
{
    return navigator.userAgent.indexOf('MSIE') != -1;
}

//****************************************************************************
// Returns whether the current browser is Internet Explorer 6.
//****************************************************************************
function CNL_IsIE6() {
    return navigator.userAgent.indexOf('MSIE 6.0') != -1;
}

//****************************************************************************
// Returns whether the current browser is Internet Explorer 11 (or higher) running in standard mode.
//****************************************************************************
function CNL_IsIE11PlusStandardMode()
{
    return !CNL_IsIE() && (navigator.userAgent.indexOf('Trident/') != -1);
}

//****************************************************************************
// Returns whether the browser is in standard mode.
//****************************************************************************
function CNL_IsStandard()
{
    // I tested those with IE, FireFox and Opera.
    return document.compatMode != 'BackCompat' && document.compatMode != 'QuirksMode';
}

//****************************************************************************
// Adds an event handler to an object.
// p_Target  - The object tag fires the event.
// p_Event   - The name of the event.
// p_Handler - The event handler to register.
//****************************************************************************
function CNL_WireEvent(p_Target, p_Event, p_Handler)
{
    if (CNL_IsIE()) {
        p_Target.attachEvent(p_Event, p_Handler);
    } else {
        // addEventLister takes an event type that is usually the name of the
        // event with the 'on' at the start removed.
        if (p_Event.substring(0, 2) != 'on') {
            throw "Unknown event type: " + p_Event;
        }
        var name = p_Event.substring(2, p_Event.length);
        p_Target.addEventListener(name, p_Handler, false);
    }
}

//****************************************************************************
// Stops the propagation of an event.
// p_Event - The event whose propagation to stop.
//****************************************************************************
function CNL_StopPropagation(p_Event)
{
    if (CNL_IsIE()) {
        p_Event.cancelBubble = true;
    } else {
        p_Event.stopPropagation();
    }
}

//****************************************************************************
// Cancels an event (prevents it from bubbling up, and disable the default action).
// p_Event - The event to cancel.
//****************************************************************************
function CNL_CancelEvent(p_Event)
{
    if (CNL_IsIE()) {
        p_Event.cancelBubble = true;
        p_Event.returnValue = false;
    } else {
        p_Event.stopPropagation();
        p_Event.preventDefault();
    }
}

//****************************************************************************
// Returns a new  XMLHttpRequest object.
//****************************************************************************
function CNL_CreateXmlHttpRequest()
{
    var req;
    if (CNL_IsIE()) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
    } else {
        req = new XMLHttpRequest();
    }

    return req;
}

//****************************************************************************
// Parses a string as xml and returns the xml dom object.
// p_Xml - The xml to parse.
// Returns the DOM object.
//****************************************************************************
function CNL_ParseStringAsXml(p_Xml)
{
    var dom;
    if (CNL_IsIE()) {
        dom = new ActiveXObject("Microsoft.XMLDOM");
        dom.loadXML(p_Xml);
    } else {
        var parser = new DOMParser();
        dom = parser.parseFromString(p_Xml, 'text/xml');
    }

    return dom;
}

//****************************************************************************
// Performs a SelectNodes in a cross-browser compatible way.
// p_Node  - The node on which to perform the operation.
// p_XPath - The xpath expression to use.
// Returns the matching nodes.
//****************************************************************************
function CNL_SelectNodes(p_Node, p_XPath)
{
    var nodes;
    if (CNL_IsIE()) {
        nodes = p_Node.selectNodes(p_XPath);
    } else {
        var doc = p_Node.ownerDocument ? p_Node.ownerDocument : p_Node;
        var resolver = doc.createNSResolver(doc);
        var results = doc.evaluate(p_XPath, p_Node, resolver, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);

        nodes = new Array();
        for (var i = 0; i < results.snapshotLength; ++i) {
            nodes.push(results.snapshotItem(i));
        }
    }

    return nodes;
}

//****************************************************************************
// Performs a SelectSingleNode in a cross-browser compatible way.
// p_Node  - The node on which to perform the operation.
// p_XPath - The xpath expression to use.
// Returns the first matching node, if any, and null otherwise.
//****************************************************************************
function CNL_SelectSingleNode(p_Node, p_XPath)
{
    var node;
    if (CNL_IsIE()) {
        node = p_Node.selectSingleNode(p_XPath);
    } else {
        var nodes = CNL_SelectNodes(p_Node, p_XPath);
        node = nodes.length != 0 ? nodes[0] : null;
    }

    return node;
}

//****************************************************************************
// Returns the text content of an xml node.
//****************************************************************************
function CNL_GetTextContent(p_Node)
{
    return CNL_IsIE() ? p_Node.text : p_Node.textContent;
}

//****************************************************************************
// Converts an RGB value to a color string.
// p_Red   - The Red component.
// p_Green - The Green component.
// p_Blue  - The Blue component.
// Returns The color as a string (in the #xxxxxx format).
//****************************************************************************
function CNL_RGBToString(p_Red, p_Green, p_Blue)
{
    var r = p_Red.toString(16);
    if (r.length == 1) {
        r = '0' + r;
    }
    var g = p_Green.toString(16);
    if (g.length == 1) {
        g = '0' + g;
    }
    var b = p_Blue.toString(16);
    if (b.length == 1) {
        b = '0' + b;
    }

    return ('#' + r + g + b).toUpperCase();
}

//****************************************************************************
// Sets the absolute position of an object, relative to the document.
// p_Object - The object whose position should be set.
// p_X      - The X offset from the left of the document.
// p_Y      - The Y offset from the top of the document.
//****************************************************************************
function CNL_SetPosition(p_Object, p_X, p_Y)
{
    p_Object.style.left = p_X + 'px';
    p_Object.style.top = p_Y + 'px';
}

//****************************************************************************
// Retrieves the absolute position of an HTML object (in pixels) from the top of the document.
// p_Object - The object whose position to retrieve.
// Returns an object that contains the information.
//****************************************************************************
function CNL_GetPosition(p_Object)
{
    var elemPos = Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(p_Object);
    var retPos = new Object();
    retPos.m_Left = elemPos.left;
    retPos.m_Top = elemPos.top;
    return retPos;
}

//****************************************************************************
// Retrieves the size of an HTML object (in pixels).
// p_Object - The object whose size to retrieve.
// Returns An object that contains the information.
//****************************************************************************
function CNL_GetSize(p_Object)
{
    var size = new Object();
    size.m_Width = p_Object.offsetWidth;
    size.m_Height = p_Object.offsetHeight;

    return size;
}

//****************************************************************************
// Sets the size of an object.
// p_Object - The object whose size should be set.
// p_Width  - The width to set.
// p_Height - The height to set.
//****************************************************************************
function CNL_SetSize(p_Object, p_Width, p_Height)
{
    p_Object.style.width = p_Width + 'px';
    p_Object.style.height = p_Height + 'px';
}

//****************************************************************************
// Retrieves the bounding rectangle of an HTML object (in pixels).
// p_Object - The object whose bounding rectangle to retrieve.
// Returns An object that contains the information.
//****************************************************************************
function CNL_GetBoundingRectangle(p_Object)
{
    var pos = CNL_GetPosition(p_Object);
    var size = CNL_GetSize(p_Object);
    var rect = new Object();
    rect.m_Left = pos.m_Left;
    rect.m_Top = pos.m_Top;
    rect.m_Right = pos.m_Left + size.m_Width;
    rect.m_Bottom = pos.m_Top + size.m_Height;

    return rect;
}

//****************************************************************************
// Retrieves the bounding of the region that is visible in the window (in pixels).
// Returns An object that contains the information.
//****************************************************************************
function CNL_GetVisibleRectangle()
{
    var bounds = Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle();
    var retRect = new Object();
    retRect.m_Left = bounds.left;
    retRect.m_Top = bounds.top;
    retRect.m_Right = bounds.right;
    retRect.m_Bottom = bounds.bottom;
    retRect.m_Width = retRect.m_Right - retRect.m_Left;
    retRect.m_Height = retRect.m_Bottom - retRect.m_Top;
    return retRect;
}

//****************************************************************************
// Checks if a point is within a rectangle.
// p_X - The X coordinate.
// p_Y - The Y coordinate.
// p_Rect - The rectangle.
// Returns Whether the point is within the rectangle.
//****************************************************************************
function CNL_IsWithin(p_X, p_Y, p_Rect)
{
    return p_X >= p_Rect.m_Left && p_X < p_Rect.m_Right &&
           p_Y >= p_Rect.m_Top && p_Y < p_Rect.m_Bottom;
}

//****************************************************************************
// Checks if a rectangle is within another rectangle.
// p_Inside  - The rectangle that should be inside.
// p_Outside - The rectangle that should contain p_Inside.
// Returns Whether the first rectangle is within the second one.
//****************************************************************************
function CNL_IsRectangleWithin(p_Inside, p_Outside)
{
    return CNL_IsWithin(p_Inside.m_Left, p_Inside.m_Top, p_Outside) &&
           CNL_IsWithin(p_Inside.m_Right, p_Inside.m_Top, p_Outside) &&
           CNL_IsWithin(p_Inside.m_Left, p_Inside.m_Bottom, p_Outside) &&
           CNL_IsWithin(p_Inside.m_Right, p_Inside.m_Bottom, p_Outside);
}

//****************************************************************************
// Checks if two rectangles overlap.
// p_Rect1 - The first rectangle.
// p_Rect2 - The second rectangle.
// Returns Whether the two rectangles overlap.
//****************************************************************************
function CNL_IsOverlap(p_Rect1, p_Rect2)
{
    // Look for an horizontal overlap
    var horiz = (p_Rect1.m_Left >= p_Rect2.m_Left &&
                 p_Rect1.m_Left < p_Rect2.m_Right) ||
                (p_Rect1.m_Right > p_Rect2.m_Left &&
                 p_Rect1.m_Right < p_Rect2.m_Right) ||
                (p_Rect2.m_Left >= p_Rect1.m_Left &&
                 p_Rect2.m_Left < p_Rect1.m_Right) ||
                (p_Rect2.m_Right > p_Rect1.m_Left &&
                 p_Rect2.m_Right < p_Rect1.m_Right);

    // Look for a vertical overlap
    var vert = (p_Rect1.m_Top >= p_Rect2.m_Top &&
                p_Rect1.m_Top < p_Rect2.m_Bottom) ||
               (p_Rect1.m_Bottom > p_Rect2.m_Top &&
                p_Rect1.m_Bottom < p_Rect2.m_Bottom) ||
               (p_Rect2.m_Top >= p_Rect1.m_Top &&
                p_Rect2.m_Top < p_Rect1.m_Bottom) ||
               (p_Rect2.m_Bottom > p_Rect1.m_Top &&
                p_Rect2.m_Bottom < p_Rect1.m_Bottom);

    return horiz && vert;
}

//****************************************************************************
// Positions an object relative to another.
// p_Object - The object to position.
// p_Reference - The object to position relatively to.
// p_Position - Where to place the object from the other.
//****************************************************************************
function CNL_PositionObject(p_Object, p_Reference, p_Position)
{
    // Determine the default major and minor positions
    var position1;
    var position2;
    if (p_Position == 'LeftBelow') {
        position1 = 'Left';
        position2 = 'Below';
    } else if (p_Position == 'LeftAbove') {
        position1 = 'Left';
        position2 = 'Above';
    } else if (p_Position == 'AboveLeft') {
        position1 = 'Above';
        position2 = 'Left';
    } else if (p_Position == 'AboveRight') {
        position1 = 'Above';
        position2 = 'Right';
    } else if (p_Position == 'RightBelow') {
        position1 = 'Right';
        position2 = 'Below';
    } else if (p_Position == 'RightAbove') {
        position1 = 'Right';
        position2 = 'Above';
    } else if (p_Position == 'BelowLeft') {
        position1 = 'Below';
        position2 = 'Left';
    } else if (p_Position == 'BelowRight') {
        position1 = 'Below';
        position2 = 'Right';
    } else {
        throw 'Invalid value for p_Position';
    }

    var left;
    var top;
    var done = false;
    var attempts = 0;
    var osize = CNL_GetSize(p_Object);
    var rrect = CNL_GetBoundingRectangle(p_Reference);
    var vrect = CNL_GetVisibleRectangle();

    // Try 3 times to position the object. Globally speaking, when first iteration
    // fails, the invert position on all bad levels will be tried. If this position
    // is bad too, we want to allow another iteration to revert positions to the
    // initial ones (which are better when everything is bad).
    while (!done && attempts < 3) {
        // Position the object using the two indicators
        if (position1 == 'Left') {
            left = rrect.m_Left - osize.m_Width;
        } else if (position1 == 'Right') {
            left = rrect.m_Right - 1;
        } else if (position1 == 'Above') {
            top = rrect.m_Top - osize.m_Height;
        } else if (position1 == 'Below') {
            top = rrect.m_Bottom - 1;
        }
        if (position2 == 'Left') {
            left = rrect.m_Left;
        } else if (position2 == 'Right') {
            left = rrect.m_Right - osize.m_Width;
        } else if (position2 == 'Above') {
            top = rrect.m_Bottom - osize.m_Height;
        } else if (position2 == 'Below') {
            top = rrect.m_Top;
        }

        // Invert major and/or minor positions when needed
        done = true;
        var right = left + osize.m_Width;
        var bottom = top + osize.m_Height;
        if (left < vrect.m_Left || right >= vrect.m_Right) {
            if (position1 == 'Left') {
                position1 = 'Right';
            } else if (position1 == 'Right') {
                position1 = 'Left'
            } else if (position2 == 'Left') {
                position2 = 'Right'
            } else if (position2 == 'Right') {
                position2 = 'Left'
            }
            done = false;
        }
        if (top < vrect.m_Top || bottom >= vrect.m_Bottom) {
            if (position1 == 'Above') {
                position1 = 'Below';
            } else if (position1 == 'Below') {
                position1 = 'Above'
            } else if (position2 == 'Above') {
                position2 = 'Below'
            } else if (position2 == 'Below') {
                position2 = 'Above'
            }
            done = false;
        }

        ++attempts;
    }

    CNL_SetPosition(p_Object, left, top);
}

//****************************************************************************
// Fits the width of an element to the client width of it's parent.
// p_Element - The element whose width to set.
// Works only under IE!
//****************************************************************************
function CNL_FitToParentWidth(p_Element)
{
    var borderWidth = parseInt(p_Element.currentStyle.borderLeftWidth) + parseInt(p_Element.currentStyle.borderRightWidth);
    var paddingWidth = parseInt(p_Element.currentStyle.paddingLeft) + parseInt(p_Element.currentStyle.paddingRight);
    var available = p_Element.parentElement.scrollWidth - parseInt(p_Element.parentElement.currentStyle.paddingLeft) - parseInt(p_Element.parentElement.currentStyle.paddingRight);
    p_Element.style.pixelWidth = available - borderWidth - paddingWidth;
}

//****************************************************************************
// Resizes an iframe to it's content.
// p_IFrame - The iframe to resize.
//****************************************************************************
function CNL_ResizeIFrame(p_IFrame)
{
    var width = p_IFrame.contentWindow.document.documentElement.scrollWidth;
    var height = p_IFrame.contentWindow.document.documentElement.scrollHeight;
    CNL_SetSize(p_IFrame, width, height);
}

//****************************************************************************
// Sets the opacity of an object.
// p_Object  - The object whose opacity should be set.
// p_Opacity - The opacity to set (from 0 to 1).
//****************************************************************************
function CNL_SetOpacity(p_Object, p_Opacity)
{
    if (p_Opacity != 1) {
        if (CNL_IsIE()) {
            p_Object.style.filter = 'alpha(opacity=' + p_Opacity * 100 + ')';
        } else {
            p_Object.style.opacity = p_Opacity;
        }
    } else {
        if (CNL_IsIE()) {
            p_Object.style.filter = '';
        } else {
            p_Object.style.opacity = '';
        }
    }
}

//****************************************************************************
// Retrieves the position of a mouse click relative to an object.
// p_Event     - The event object.
// p_Reference - The reference element to use to size the iframe.
//****************************************************************************
function CNL_GetMouseClickPosition(p_Event, p_Reference)
{
    var rpos = CNL_GetPosition(p_Reference);

    // First compute the click offset from the page
    var px, py;
    if (CNL_IsIE()) {
        // IE provides the offset from the clicked object.
        var tpos = CNL_GetPosition(p_Event.srcElement);
        px = tpos.m_Left + p_Event.offsetX;
        py = tpos.m_Top + p_Event.offsetY;
    } else {
        // FireFox provides the offset from the page
        px = p_Event.pageX;
        py = p_Event.pageY;
    }

    // Then compute the offset from the reference
    var rpos = CNL_GetPosition(p_Reference);
    var pos = new Object();
    pos.m_Left = px - rpos.m_Left;
    pos.m_Top = py - rpos.m_Top;

    return pos;
}

//****************************************************************************
// Sets the selected range of characters in a textbox.
// p_TextBox - The textbox.
// p_First   - Index of the first character.
// p_Last    - Index of the character after the last one.
//****************************************************************************
function CNL_SetSelectedRange(p_TextBox, p_First, p_Last)
{
    if (CNL_IsIE()) {
        var range = p_TextBox.createTextRange();
        range.moveStart('character', p_First);
        range.moveEnd('character', p_Last - p_TextBox.value.length);
        range.select();
    } else {
        p_TextBox.setSelectionRange(p_First, p_Last);
    }
}

//****************************************************************************
// Copyright (c) 2006, Coveo Solutions Inc.
//****************************************************************************

// This file defines augments the prototypes of various objects with useful
// functions and also tries to make browsers a little more homogenous.

//****************************************************************************
// Trims the content of a string.
// Returns the trimmed string.
//****************************************************************************
String.prototype.trim = function()
{
    return this.replace(/^[\s\xA0]+/, "").replace(/[\s\xA0]+$/, "");
}

if (!CNL_IsIE()) {
    //************************************************************************
    // Gets/sets the text inside a tag.
    //************************************************************************
    HTMLElement.prototype.__defineGetter__("innerText", function()
    {
        return this.textContent;
    });
    HTMLElement.prototype.__defineSetter__("innerText", function(p_Text) 
    {
        this.textContent = p_Text;
    });
}

//****************************************************************************
// Copyright (c) 2005, Coveo Solutions Inc.
//****************************************************************************

function CNL_BaseDropDown() {

//****************************************************************************
// Hints the control that the dropdown may soon be shown, and that any preparation
// code that must be executed prior to it may begin to execute.
//****************************************************************************
this.HintDropDownPrepare = function()
{
    if (this.m_PrepareCode != '' && !this.m_Ready && !this.m_Preparing) {
        this.m_Preparing = true;
        eval(this.m_PrepareCode);
    }
}

//****************************************************************************
// Indicates that the dropdown is ready to be shown.
//****************************************************************************
this.DropDownIsReady = function()
{
    this.m_Preparing = false;
    this.m_Ready = true;

    // If we're supposed to be visible but that we aren't, show the dropdown now.
    if (this.m_Show && !this.IsDropDownVisible()) {
        this._DisplayDropDown();
    }
}

//****************************************************************************
// Shows the dropdown box. 
//****************************************************************************
this.ShowDropDown = function()
{
    this.m_Show = true;

    // If the dropdown is async and that it isn't ready, the DropIsReady method
    // will automatically show it when it is called. Otherwise, show it now.
    if (this.m_PrepareCode != '') {
        if (this.m_Ready) {
            this._DisplayDropDown();
        } else if (!this.m_Preparing) {
            this.HintDropDownPrepare();
        }
    } else {
        this._DisplayDropDown();
    }
}

//****************************************************************************
// Hides the dropdown box.
//****************************************************************************
this.HideDropDown = function()
{
    document.getElementById(this.m_DropDownId).style.display = 'none';
    this.m_Show = false;
}

//****************************************************************************
// Returns whether the dropdown should be visible or not.
//****************************************************************************
this.IsDropDownVisible = function()
{
    return this.m_Show;
}

//****************************************************************************
// Really shows the dropdown, when it is ready.
//****************************************************************************
this._DisplayDropDown = function()
{
    var dropDown = document.getElementById(this.m_DropDownId);
    dropDown.style.display = '';
    var size = CNL_GetSize(dropDown);
    if (size.m_Width > 5 && size.m_Height > 5) {
        CNL_PositionObject(dropDown, this, this.m_Position);
    } else {
        dropDown.style.display = 'none';
    }
}

} // Constructor

//****************************************************************************
// Copyright (c) 2005, Coveo Solutions Inc.
//****************************************************************************

function CNL_CustomDropDown() {

var m_IsMouseOver = false;

//****************************************************************************
// Event handler for the onmouseover event of the dropdown.
//****************************************************************************
this.OnMouseOver = function()
{
    if (!this.m_IsMouseOver) {
        if (!this.IsDropDownVisible()) {
            if (Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current() != null) {
                Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().blockTimer();
            }
        }

        if (this.m_BorderOnHover) {
            this.style.borderColor = this.m_BorderColor;
        }
        if (this.m_ArrowOnHover) {
            document.getElementById(this.m_ArrowId).style.visibility = 'visible';
        }
    }
    
    this.m_IsMouseOver = true;
}

//****************************************************************************
// Event handler for the onmouseoout event of the dropdown.
//****************************************************************************
this.OnMouseOut = function()
{
    if (this.m_IsMouseOver) {
        this.m_IsMouseOver = false;
        this.OnMouseOutBehaviour();
    }
}

//****************************************************************************
// Behaviour of the OnMouseOut event of the dropdown.
// It is extracted from the event handler because the method
// HideAndRestoreHandler use it.
//****************************************************************************
this.OnMouseOutBehaviour = function()
{
    if ((!this.m_IsMouseOver) && (!this.IsDropDownVisible())) {
        if (document.getElementById(this.m_DropDownId).style.visibility != 'visible') {
            if (this.m_BorderOnHover) {
                this.style.borderColor = this.m_BackColor;
            }
            if (this.m_ArrowOnHover) {
                document.getElementById(this.m_ArrowId).style.visibility = 'hidden';
            }
        }

        if (Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current() != null) {
            Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().unblockTimer();
        }
    }
}

//****************************************************************************
// Event handler for the onclick event of the dropdown button.
//****************************************************************************
this.Arrow_OnClick = function(p_Event)
{
    if (!this.IsDropDownVisible()) {
        var size = CNL_GetSize(this);
        CNL_SetSize(document.getElementById(this.m_DropDownId), size.m_Width, size.m_Height);
        this.ShowDropDown();

        // Fire any old handler, so that any other dropdown on the page may
        // properly close itself before this one opens.
        if (document.onclick) {
            document.onclick(p_Event);
        }

        this.m_OldClickHandler = document.onclick;
        this.m_OldKeyPressHandler = document.onkeypress;
        var myself = this;
        if (CNL_IsIE()) {
            document.onclick = function() { myself.Document_OnClick(event); };
            document.onkeypress = function() { myself.Document_OnKeyPress(event); };
        } else {
            document.onclick = function(event) { myself.Document_OnClick(event); };
            document.onkeydown = function(event) { myself.Document_OnKeyPress(event); };
        }

    } else {
        this.HideAndRestoreHandler();
    }

    CNL_StopPropagation(p_Event);
}

//****************************************************************************
// Event handler for the onclick event of the document.
//****************************************************************************
this.Document_OnClick = function(p_Event)
{
    if (this.m_HideOnClick || !CNL_IsWithin(p_Event.clientX, p_Event.clientY, CNL_GetBoundingRectangle(document.getElementById(this.m_DropDownId)))) {
        this.HideAndRestoreHandler();
    }
}

//****************************************************************************
// Event handler for the onkeypress event.
//****************************************************************************
this.Document_OnKeyPress = function(p_Event)
{
    if (CNL_IsIE()) {
        if (p_Event.keyCode == 27) {
          this.HideAndRestoreHandler();
        }
    } else {
        if (p_Event.which == 27) {
          this.HideAndRestoreHandler();
        }
    }
}

//****************************************************************************
// Hides the dropdown and restore the old event handler.
//****************************************************************************
this.HideAndRestoreHandler = function()
{
    if (this.IsDropDownVisible()) {
        this.HideDropDown();
        document.onclick = this.m_OldClickHandler;
        if (CNL_IsIE()) {
            document.onkeypress = this.m_OldKeyPressHandler;
        } else {
            document.onkeydown = this.m_OldKeyPressHandler;
        }
        this.OnMouseOutBehaviour();
    }
}

} // Constructor

/*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,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=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.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 d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+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(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,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"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},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)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.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?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},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(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(
a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.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 contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){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,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.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(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.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]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),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]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.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!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},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 b<c[3]-0},gt:function(a,b,c){return b>c[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=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&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=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null: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=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=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(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.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:[]}},o.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&&(o.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 href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},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 V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(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(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(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=f
.clean(arguments);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,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.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 f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.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?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.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(c||!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 ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.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=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.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):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);;
/*
 * jQuery resize event - v1.1 - 3/14/2010
 * http://benalman.com/projects/jquery-resize-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this);;
/*
 * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
 * http://benalman.com/projects/jquery-bbq-plugin/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,p){var i,m=Array.prototype.slice,r=decodeURIComponent,a=$.param,c,l,v,b=$.bbq=$.bbq||{},q,u,j,e=$.event.special,d="hashchange",A="querystring",D="fragment",y="elemUrlAttr",g="location",k="href",t="src",x=/^.*\?|#.*$/g,w=/^.*\#/,h,C={};function E(F){return typeof F==="string"}function B(G){var F=m.call(arguments,1);return function(){return G.apply(this,F.concat(m.call(arguments)))}}function n(F){return F.replace(/^[^#]*#?(.*)$/,"$1")}function o(F){return F.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(H,M,F,I,G){var O,L,K,N,J;if(I!==i){K=F.match(H?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/);J=K[3]||"";if(G===2&&E(I)){L=I.replace(H?w:x,"")}else{N=l(K[2]);I=E(I)?l[H?D:A](I):I;L=G===2?I:G===1?$.extend({},I,N):$.extend({},N,I);L=a(L);if(H){L=L.replace(h,r)}}O=K[1]+(H?"#":L||!K[1]?"?":"")+L+J}else{O=M(F!==i?F:p[g][k])}return O}a[A]=B(f,0,o);a[D]=c=B(f,1,n);c.noEscape=function(G){G=G||"";var F=$.map(G.split(""),encodeURIComponent);h=new RegExp(F.join("|"),"g")};c.noEscape(",/");$.deparam=l=function(I,F){var H={},G={"true":!0,"false":!1,"null":null};$.each(I.replace(/\+/g," ").split("&"),function(L,Q){var K=Q.split("="),P=r(K[0]),J,O=H,M=0,R=P.split("]["),N=R.length-1;if(/\[/.test(R[0])&&/\]$/.test(R[N])){R[N]=R[N].replace(/\]$/,"");R=R.shift().split("[").concat(R);N=R.length-1}else{N=0}if(K.length===2){J=r(K[1]);if(F){J=J&&!isNaN(J)?+J:J==="undefined"?i:G[J]!==i?G[J]:J}if(N){for(;M<=N;M++){P=R[M]===""?O.length:R[M];O=O[P]=M<N?O[P]||(R[M+1]&&isNaN(R[M+1])?{}:[]):J}}else{if($.isArray(H[P])){H[P].push(J)}else{if(H[P]!==i){H[P]=[H[P],J]}else{H[P]=J}}}}else{if(P){H[P]=F?i:""}}});return H};function z(H,F,G){if(F===i||typeof F==="boolean"){G=F;F=a[H?D:A]()}else{F=E(F)?F.replace(H?w:x,""):F}return l(F,G)}l[A]=B(z,0);l[D]=v=B(z,1);$[y]||($[y]=function(F){return $.extend(C,F)})({a:k,base:k,iframe:t,img:t,input:t,form:"action",link:k,script:t});j=$[y];function s(I,G,H,F){if(!E(H)&&typeof H!=="object"){F=H;H=G;G=i}return this.each(function(){var L=$(this),J=G||j()[(this.nodeName||"").toLowerCase()]||"",K=J&&L.attr(J)||"";L.attr(J,a[I](K,H,F))})}$.fn[A]=B(s,A);$.fn[D]=B(s,D);b.pushState=q=function(I,F){if(E(I)&&/^#/.test(I)&&F===i){F=2}var H=I!==i,G=c(p[g][k],H?I:{},H?F:2);p[g][k]=G+(/#/.test(G)?"":"#")};b.getState=u=function(F,G){return F===i||typeof F==="boolean"?v(F):v(G)[F]};b.removeState=function(F){var G={};if(F!==i){G=u();$.each($.isArray(F)?F:arguments,function(I,H){delete G[H]})}q(G,2)};e[d]=$.extend(e[d],{add:function(F){var H;function G(J){var I=J[D]=c();J.getState=function(K,L){return K===i||typeof K==="boolean"?l(I,K):l(I,L)[K]};H.apply(this,arguments)}if($.isFunction(F)){H=F;return G}else{H=F.handler;F.handler=G}}})})(jQuery,this);
/*
 * jQuery hashchange event - v1.2 - 2/11/2010
 * http://benalman.com/projects/jquery-hashchange-plugin/
 *
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,i,b){var j,k=$.event.special,c="location",d="hashchange",l="href",f=$.browser,g=document.documentMode,h=f.msie&&(g===b||g<8),e="on"+d in i&&!h;function a(m){m=m||i[c][l];return m.replace(/^[^#]*#?(.*)$/,"$1")}$[d+"Delay"]=100;k[d]=$.extend(k[d],{setup:function(){if(e){return false}$(j.start)},teardown:function(){if(e){return false}$(j.stop)}});j=(function(){var m={},r,n,o,q;function p(){o=q=function(s){return s};if(h){n=document.getElementById("__historyFrame").contentWindow;q=function(){return a(n.document[c][l])};o=function(u,s){if(u!==s){var t=n.document;t.open().close();t[c].hash="#"+u}}}}m.start=function(){if(r){return}var t=a();o||p();(function s(){var v=a(),u=q(t);if(v!==t){o(t=v,u);$(i).trigger(d)}else{if(u!==t){i[c][l]=i[c][l].replace(/#.*/,"")+"#"+u}}r=setTimeout(s,$[d+"Delay"])})()};m.stop=function(){if(!n){r&&clearTimeout(r);r=0}};return m})()})(jQuery,this);
;
/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.core.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||!g||f.nodeName.toLowerCase()!=="map"?!1:(h=a("img[usemap=#"+g+"]")[0],!!h&&d(h))}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};if(a.ui.version)return;a.extend(a.ui,{version:"1.8.23",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function h(b,c,d,f){return a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?g["inner"+d].call(this):this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?g["outer"+d].call(this,b):this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.curCSS||(a.curCSS=a.css),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!d||!a.element[0].parentNode)return;for(var e=0;e<d.length;e++)a.options[d[e][0]]&&d[e][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;var d=c&&c==="left"?"scrollLeft":"scrollTop",e=!1;return b[d]>0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.widget.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)try{a(e).triggerHandler("remove")}catch(f){}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};var g=new c;g.options=a.extend(!0,{},g.options),a[e][b].prototype=a.extend(!0,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;return e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e,f&&e.charAt(0)==="_"?h:(f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b)return h=f,!1}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))}),h)}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e,f,g=this.options[b];d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent;if(f)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.mouse.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){var c=!1;a(document).mouseup(function(a){c=!1}),a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(c)return;this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=b.which==1,f=typeof this.options.cancel=="string"&&b.target.nodeName?a(b.target).closest(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(b))return!0;this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==!1;if(!this._mouseStarted)return b.preventDefault(),!0}return!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0},_mouseMove:function(b){return!a.browser.msie||document.documentMode>=9||!!b.button?this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted):this._mouseUp(b)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.position.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e="center",f={},g=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return g.apply(this,arguments);b=a.extend({},b);var h=a(b.of),i=h[0],j=(b.collision||"flip").split(" "),k=b.offset?b.offset.split(" "):[0,0],l,m,n;return i.nodeType===9?(l=h.width(),m=h.height(),n={top:0,left:0}):i.setTimeout?(l=h.width(),m=h.height(),n={top:h.scrollTop(),left:h.scrollLeft()}):i.preventDefault?(b.at="left top",l=m=0,n={top:b.of.pageY,left:b.of.pageX}):(l=h.outerWidth(),m=h.outerHeight(),n=h.offset()),a.each(["my","at"],function(){var a=(b[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat([e]):d.test(a[0])?[e].concat(a):[e,e]),a[0]=c.test(a[0])?a[0]:e,a[1]=d.test(a[1])?a[1]:e,b[this]=a}),j.length===1&&(j[1]=j[0]),k[0]=parseInt(k[0],10)||0,k.length===1&&(k[1]=k[0]),k[1]=parseInt(k[1],10)||0,b.at[0]==="right"?n.left+=l:b.at[0]===e&&(n.left+=l/2),b.at[1]==="bottom"?n.top+=m:b.at[1]===e&&(n.top+=m/2),n.left+=k[0],n.top+=k[1],this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,o=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),q=a.extend({},n),r;b.my[0]==="right"?q.left-=d:b.my[0]===e&&(q.left-=d/2),b.my[1]==="bottom"?q.top-=g:b.my[1]===e&&(q.top-=g/2),f.fractions||(q.left=Math.round(q.left),q.top=Math.round(q.top)),r={left:q.left-h,top:q.top-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.position[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window),e=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=e>0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]===e)return;var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0},top:function(b,c){if(c.at[1]===e)return;var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?a.isFunction(b)?this.each(function(c){a(this).offset(b.call(this,c,a(this).offset()))}):this.each(function(){a.offset.setOffset(this,b)}):h.call(this)}),a.curCSS||(a.curCSS=a.css),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.draggable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(!this.element.data("draggable"))return;return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var c=this.options;return this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(b),this.handle?(c.iframeFix&&a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),c.containment&&this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute");if(!c){var d=this._uiHash();if(this._trigger("drag",b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);var d=this.element[0],e=!1;while(d&&(d=d.parentNode))d==document&&(e=!0);if(!e&&this.options.helper==="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",b)!==!1&&f._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){return this.options.iframeFix===!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;return a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)}),c},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;return d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo),d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[b.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,b.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){var c=a(b.containment),d=c[0];if(!d)return;var e=c.offset(),f=a(d).css("overflow")!="hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c}else b.containment.constructor==Array&&(this.containment=b.containment)},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName),f=b.pageX,g=b.pageY;if(this.originalPosition){var h;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();h=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else h=this.containment;b.pageX-this.offset.click.left<h[0]&&(f=h[0]+this.offset.click.left),b.pageY-this.offset.click.top<h[1]&&(g=h[1]+this.offset.click.top),b.pageX-this.offset.click.left>h[2]&&(f=h[2]+this.offset.click.left),b.pageY-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}if(c.grid){var j=c.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY;g=h?j-this.offset.click.top<h[1]||j-this.offset.click.top>h[3]?j-this.offset.click.top<h[1]?j+c.grid[1]:j-c.grid[1]:j:j;var k=c.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX;f=h?k-this.offset.click.left<h[0]||k-this.offset.click.left>h[2]?k-this.offset.click.left<h[0]?k+c.grid[0]:k-c.grid[0]:k:k}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),b=="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.extend(a.ui.draggable,{version:"1.8.23"}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,"sortable");c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,d.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("draggable"),e=this,f=function(b){var c=this.offset.click.top,d=this.offset.click.left,e=this.positionAbs.top,f=this.positionAbs.left,g=b.height,h=b.width,i=b.top,j=b.left;return a.ui.isOver(e+c,f+d,i,j,g,h)};a.each(d.sortables,function(f){this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(b,c){var d=a("body"),e=a(this).data("draggable").options;d.css("cursor")&&(e._cursor=d.css("cursor")),d.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data("draggable").options;d._cursor&&a("body").css("cursor",d._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data("draggable").options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(b,c){var d=a(this).data("draggable");d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"&&(d.overflowOffset=d.scrollParent.offset())},drag:function(b,c){var d=a(this).data("draggable"),e=d.options,f=!1;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")d.overflowOffset.top+d.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity?d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop+e.scrollSpeed:b.pageY-d.overflowOffset.top<e.scrollSensitivity&&(d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop-e.scrollSpeed);if(!e.axis||e.axis!="y")d.overflowOffset.left+d.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity?d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft+e.scrollSpeed:b.pageX-d.overflowOffset.left<e.scrollSensitivity&&(d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft-e.scrollSpeed)}else{if(!e.axis||e.axis!="x")b.pageY-a(document).scrollTop()<e.scrollSensitivity?f=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity&&(f=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed));if(!e.axis||e.axis!="y")b.pageX-a(document).scrollLeft()<e.scrollSensitivity?f=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity&&(f=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed))}f!==!1&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,b)}}),a.ui.plugin.add("draggable","snap",{start:function(b,c){var d=a(this).data("draggable"),e=d.options;d.snapElements=[],a(e.snap.constructor!=String?e.snap.items||":data(draggable)":e.snap).each(function(){var b=a(this),c=b.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})})},drag:function(b,c){var d=a(this).data("draggable"),e=d.options,f=e.snapTolerance,g=c.offset.left,h=g+d.helperProportions.width,i=c.offset.top,j=i+d.helperProportions.height;for(var k=d.snapElements.length-1;k>=0;k--){var l=d.snapElements[k].left,m=l+d.snapElements[k].width,n=d.snapElements[k].top,o=n+d.snapElements[k].height;if(!(l-f<g&&g<m+f&&n-f<i&&i<o+f||l-f<g&&g<m+f&&n-f<j&&j<o+f||l-f<h&&h<m+f&&n-f<i&&i<o+f||l-f<h&&h<m+f&&n-f<j&&j<o+f)){d.snapElements[k].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[k].item})),d.snapElements[k].snapping=!1;continue}if(e.snapMode!="inner"){var p=Math.abs(n-j)<=f,q=Math.abs(o-i)<=f,r=Math.abs(l-h)<=f,s=Math.abs(m-g)<=f;p&&(c.position.top=d._convertPositionTo("relative",{top:n-d.helperProportions.height,left:0}).top-d.margins.top),q&&(c.position.top=d._convertPositionTo("relative",{top:o,left:0}).top-d.margins.top),r&&(c.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left-d.margins.left),s&&(c.position.left=d._convertPositionTo("relative",{top:0,left:m}).left-d.margins.left)}var t=p||q||r||s;if(e.snapMode!="outer"){var p=Math.abs(n-i)<=f,q=Math.abs(o-j)<=f,r=Math.abs(l-g)<=f,s=Math.abs(m-h)<=f;p&&(c.position.top=d._convertPositionTo("relative",{top:n,left:0}).top-d.margins.top),q&&(c.position.top=d._convertPositionTo("relative",{top:o-d.helperProportions.height,left:0}).top-d.margins.top),r&&(c.position.left=d._convertPositionTo("relative",{top:0,left:l}).left-d.margins.left),s&&(c.position.left=d._convertPositionTo("relative",{top:0,left:m-d.helperProportions.width}).left-d.margins.left)}!d.snapElements[k].snapping&&(p||q||r||s||t)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[k].item})),d.snapElements[k].snapping=p||q||r||s||t}}}),a.ui.plugin.add("draggable","stack",{start:function(b,c){var d=a(this).data("draggable").options,e=a.makeArray(a(d.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(!e.length)return;var f=parseInt(e[0].style.zIndex)||0;a(e).each(function(a){this.style.zIndex=f+a}),this[0].style.zIndex=f+e.length}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css("zIndex",e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._zIndex)}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.droppable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var b=this.options,c=b.accept;this.isover=0,this.isout=1,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c<b.length;c++)b[c]==this&&b.splice(c,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(b,c){b=="accept"&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return;this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0])return;this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current;if(!d||(d.currentItem||d.element)[0]==this.element[0])return!1;var e=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return e=!0,!1}),e?!1:this.accept.call(this.element[0],d.currentItem||d.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(d)),this.element):!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}}),a.extend(a.ui.droppable,{version:"1.8.23"}),a.ui.intersect=function(b,c,d){if(!c.offset)return!1;var e=(b.positionAbs||b.position.absolute).left,f=e+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,h=g+b.helperProportions.height,i=c.offset.left,j=i+c.proportions.width,k=c.offset.top,l=k+c.proportions.height;switch(d){case"fit":return i<=e&&f<=j&&k<=g&&h<=l;case"intersect":return i<e+b.helperProportions.width/2&&f-b.helperProportions.width/2<j&&k<g+b.helperProportions.height/2&&h-b.helperProportions.height/2<l;case"pointer":var m=(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,n=(b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,o=a.ui.isOver(n,m,k,i,c.proportions.height,c.proportions.width);return o;case"touch":return(g>=k&&g<=l||h>=k&&h<=l||g<k&&h>l)&&(e>=i&&e<=j||f>=i&&f<=j||e<i&&f>j);default:return!1}},a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,c){var d=a.ui.ddmanager.droppables[b.options.scope]||[],e=c?c.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf();g:for(var h=0;h<d.length;h++){if(d[h].options.disabled||b&&!d[h].accept.call(d[h].element[0],b.currentItem||b.element))continue;for(var i=0;i<f.length;i++)if(f[i]==d[h].element[0]){d[h].proportions.height=0;continue g}d[h].visible=d[h].element.css("display")!="none";if(!d[h].visible)continue;e=="mousedown"&&d[h]._activate.call(d[h],c),d[h].offset=d[h].element.offset(),d[h].proportions={width:d[h].element[0].offsetWidth,height:d[h].element[0].offsetHeight}}},drop:function(b,c){var d=!1;return a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options)return;!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,c))}),d},dragStart:function(b,c){b.element.parents(":not(body,html)").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible)return;var d=a.ui.intersect(b,this,this.options.tolerance),e=!d&&this.isover==1?"isout":d&&this.isover==0?"isover":null;if(!e)return;var f;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");g.length&&(f=a.data(g[0],"droppable"),f.greedyChild=e=="isover"?1:0)}f&&e=="isover"&&(f.isover=0,f.isout=1,f._out.call(f,c)),this[e]=1,this[e=="isout"?"isover":"isout"]=0,this[e=="isover"?"_over":"_out"].call(this,c),f&&e=="isout"&&(f.isout=0,f.isover=1,f._over.call(f,c))})},dragStop:function(b,c){b.element.parents(":not(body,html)").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.resizable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var b=this,c=this.options;this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=c.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var d=this.handles.split(",");this.handles={};for(var e=0;e<d.length;e++){var f=a.trim(d[e]),g="ui-resizable-"+f,h=a('<div class="ui-resizable-handle '+g+'"></div>');h.css({zIndex:c.zIndex}),"se"==f&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[f]=".ui-resizable-"+f,this.element.append(h)}}this._renderAxis=function(b){b=b||this.element;for(var c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=a(this.handles[c],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=a(this.handles[c],this.element),e=0;e=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth();var f=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join("");b.css(f,e),this._proportionallyResize()}if(!a(this.handles[c]).length)continue}},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}}),c.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){if(c.disabled)return;a(this).removeClass("ui-resizable-autohide"),b._handles.show()},function(){if(c.disabled)return;b.resizing||(a(this).addClass("ui-resizable-autohide"),b._handles.hide())})),this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),b(this.originalElement),this},_mouseCapture:function(b){var c=!1;for(var d in this.handles)a(this.handles[d])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(b){var d=this.options,e=this.element.position(),f=this.element;this.resizing=!0,this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()},(f.is(".ui-draggable")||/absolute/.test(f.css("position")))&&f.css({position:"absolute",top:e.top,left:e.left}),this._renderProxy();var g=c(this.helper.css("left")),h=c(this.helper.css("top"));d.containment&&(g+=a(d.containment).scrollLeft()||0,h+=a(d.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:g,top:h},this.size=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()},this.originalSize=this._helper?{width:f.outerWidth(),height:f.outerHeight()}:{width:f.width(),height:f.height()},this.originalPosition={left:g,top:h},this.sizeDiff={width:f.outerWidth()-f.width(),height:f.outerHeight()-f.height()},this.originalMousePosition={left:b.pageX,top:b.pageY},this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1;var i=a(".ui-resizable-"+this.axis).css("cursor");return a("body").css("cursor",i=="auto"?this.axis+"-resize":i),f.addClass("ui-resizable-resizing"),this._propagate("start",b),!0},_mouseDrag:function(b){var c=this.helper,d=this.options,e={},f=this,g=this.originalMousePosition,h=this.axis,i=b.pageX-g.left||0,j=b.pageY-g.top||0,k=this._change[h];if(!k)return!1;var l=k.apply(this,[b,i,j]),m=a.browser.msie&&a.browser.version<7,n=this.sizeDiff;this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)l=this._updateRatio(l,b);return l=this._respectSize(l,b),this._propagate("resize",b),c.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(l),this._trigger("resize",b,this.ui()),!1},_mouseStop:function(b){this.resizing=!1;var c=this.options,d=this;if(this._helper){var e=this._proportionallyResizeElements,f=e.length&&/textarea/i.test(e[0].nodeName),g=f&&a.ui.hasScroll(e[0],"left")?0:d.sizeDiff.height,h=f?0:d.sizeDiff.width,i={width:d.helper.width()-h,height:d.helper.height()-g},j=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,k=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;c.animate||this.element.css(a.extend(i,{top:k,left:j})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyResize()}return a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(a){var b=this.options,c,e,f,g,h;h={minWidth:d(b.minWidth)?b.minWidth:0,maxWidth:d(b.maxWidth)?b.maxWidth:Infinity,minHeight:d(b.minHeight)?b.minHeight:0,maxHeight:d(b.maxHeight)?b.maxHeight:Infinity};if(this._aspectRatio||a)c=h.minHeight*this.aspectRatio,f=h.minWidth/this.aspectRatio,e=h.maxHeight*this.aspectRatio,g=h.maxWidth/this.aspectRatio,c>h.minWidth&&(h.minWidth=c),f>h.minHeight&&(h.minHeight=f),e<h.maxWidth&&(h.maxWidth=e),g<h.maxHeight&&(h.maxHeight=g);this._vBoundaries=h},_updateCache:function(a){var b=this.options;this.offset=this.helper.offset(),d(a.left)&&(this.position.left=a.left),d(a.top)&&(this.position.top=a.top),d(a.height)&&(this.size.height=a.height),d(a.width)&&(this.size.width=a.width)},_updateRatio:function(a,b){var c=this.options,e=this.position,f=this.size,g=this.axis;return d(a.height)?a.width=a.height*this.aspectRatio:d(a.width)&&(a.height=a.width/this.aspectRatio),g=="sw"&&(a.left=e.left+(f.width-a.width),a.top=null),g=="nw"&&(a.top=e.top+(f.height-a.height),a.left=e.left+(f.width-a.width)),a},_respectSize:function(a,b){var c=this.helper,e=this._vBoundaries,f=this._aspectRatio||b.shiftKey,g=this.axis,h=d(a.width)&&e.maxWidth&&e.maxWidth<a.width,i=d(a.height)&&e.maxHeight&&e.maxHeight<a.height,j=d(a.width)&&e.minWidth&&e.minWidth>a.width,k=d(a.height)&&e.minHeight&&e.minHeight>a.height;j&&(a.width=e.minWidth),k&&(a.height=e.minHeight),h&&(a.width=e.maxWidth),i&&(a.height=e.maxHeight);var l=this.originalPosition.left+this.originalSize.width,m=this.position.top+this.size.height,n=/sw|nw|w/.test(g),o=/nw|ne|n/.test(g);j&&n&&(a.left=l-e.minWidth),h&&n&&(a.left=l-e.maxWidth),k&&o&&(a.top=m-e.minHeight),i&&o&&(a.top=m-e.maxHeight);var p=!a.width&&!a.height;return p&&!a.left&&a.top?a.top=null:p&&!a.top&&a.left&&(a.left=null),a},_proportionallyResize:function(){var b=this.options;if(!this._proportionallyResizeElements.length)return;var c=this.helper||this.element;for(var d=0;d<this._proportionallyResizeElements.length;d++){var e=this._proportionallyResizeElements[d];if(!this.borderDif){var f=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],g=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];this.borderDif=a.map(f,function(a,b){var c=parseInt(a,10)||0,d=parseInt(g[b],10)||0;return c+d})}if(!a.browser.msie||!a(c).is(":hidden")&&!a(c).parents(":hidden").length)e.css({height:c.height()-this.borderDif[0]-this.borderDif[2]||0,width:c.width()-this.borderDif[1]-this.borderDif[3]||0});else continue}},_renderProxy:function(){var b=this.element,c=this.options;this.elementOffset=b.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var d=a.browser.msie&&a.browser.version<7,e=d?1:0,f=d?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-e+"px",top:this.elementOffset.top-e+"px",zIndex:++c.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b,c){return{width:this.originalSize.width+b}},w:function(a,b,c){var d=this.options,e=this.originalSize,f=this.originalPosition;return{left:f.left+b,width:e.width-b}},n:function(a,b,c){var d=this.options,e=this.originalSize,f=this.originalPosition;return{top:f.top+c,height:e.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.extend(a.ui.resizable,{version:"1.8.23"}),a.ui.plugin.add("resizable","alsoResize",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10)})})};typeof e.alsoResize=="object"&&!e.alsoResize.parentNode?e.alsoResize.length?(e.alsoResize=e.alsoResize[0],f(e.alsoResize)):a.each(e.alsoResize,function(a){f(a)}):f(e.alsoResize)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,d){a(b).each(function(){var b=a(this),e=a(this).data("resizable-alsoresize"),f={},g=d&&d.length?d:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(g,function(a,b){var c=(e[b]||0)+(h[b]||0);c&&c>=0&&(f[b]=c||null)}),b.css(f)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?a.each(e.alsoResize,function(a,b){i(a,b)}):i(e.alsoResize)},stop:function(b,c){a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","animate",{stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName),h=g&&a.ui.hasScroll(f[0],"left")?0:d.sizeDiff.height,i=g?0:d.sizeDiff.width,j={width:d.size.width-i,height:d.size.height-h},k=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null,l=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;d.element.animate(a.extend(j,l&&k?{top:l,left:k}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var c={width:parseInt(d.element.css("width"),10),height:parseInt(d.element.css("height"),10),top:parseInt(d.element.css("top"),10),left:parseInt(d.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:c.width,height:c.height}),d._updateCache(c),d._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(b,d){var e=a(this).data("resizable"),f=e.options,g=e.element,h=f.containment,i=h instanceof a?h.get(0):/parent/.test(h)?g.parent().get(0):h;if(!i)return;e.containerElement=a(i);if(/document/.test(h)||h==document)e.containerOffset={left:0,top:0},e.containerPosition={left:0,top:0},e.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};else{var j=a(i),k=[];a(["Top","Right","Left","Bottom"]).each(function(a,b){k[a]=c(j.css("padding"+b))}),e.containerOffset=j.offset(),e.containerPosition=j.position(),e.containerSize={height:j.innerHeight()-k[3],width:j.innerWidth()-k[1]};var l=e.containerOffset,m=e.containerSize.height,n=e.containerSize.width,o=a.ui.hasScroll(i,"left")?i.scrollWidth:n,p=a.ui.hasScroll(i)?i.scrollHeight:m;e.parentData={element:i,left:l.left,top:l.top,width:o,height:p}}},resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.containerSize,g=d.containerOffset,h=d.size,i=d.position,j=d._aspectRatio||b.shiftKey,k={top:0,left:0},l=d.containerElement;l[0]!=document&&/static/.test(l.css("position"))&&(k=g),i.left<(d._helper?g.left:0)&&(d.size.width=d.size.width+(d._helper?d.position.left-g.left:d.position.left-k.left),j&&(d.size.height=d.size.width/d.aspectRatio),d.position.left=e.helper?g.left:0),i.top<(d._helper?g.top:0)&&(d.size.height=d.size.height+(d._helper?d.position.top-g.top:d.position.top),j&&(d.size.width=d.size.height*d.aspectRatio),d.position.top=d._helper?g.top:0),d.offset.left=d.parentData.left+d.position.left,d.offset.top=d.parentData.top+d.position.top;var m=Math.abs((d._helper?d.offset.left-k.left:d.offset.left-k.left)+d.sizeDiff.width),n=Math.abs((d._helper?d.offset.top-k.top:d.offset.top-g.top)+d.sizeDiff.height),o=d.containerElement.get(0)==d.element.parent().get(0),p=/relative|absolute/.test(d.containerElement.css("position"));o&&p&&(m-=d.parentData.left),m+d.size.width>=d.parentData.width&&(d.size.width=d.parentData.width-m,j&&(d.size.height=d.size.width/d.aspectRatio)),n+d.size.height>=d.parentData.height&&(d.size.height=d.parentData.height-n,j&&(d.size.width=d.size.height*d.aspectRatio))},stop:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.position,g=d.containerOffset,h=d.containerPosition,i=d.containerElement,j=a(d.helper),k=j.offset(),l=j.outerWidth()-d.sizeDiff.width,m=j.outerHeight()-d.sizeDiff.height;d._helper&&!e.animate&&/relative/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m}),d._helper&&!e.animate&&/static/.test(i.css("position"))&&a(this).css({left:k.left-h.left-g.left,width:l,height:m})}}),a.ui.plugin.add("resizable","ghost",{start:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size;d.ghost=d.originalElement.clone(),d.ghost.css({opacity:.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof e.ghost=="string"?e.ghost:""),d.ghost.appendTo(d.helper)},resize:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(b,c){var d=a(this).data("resizable"),e=d.options;d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(b,c){var d=a(this).data("resizable"),e=d.options,f=d.size,g=d.originalSize,h=d.originalPosition,i=d.axis,j=e._aspectRatio||b.shiftKey;e.grid=typeof e.grid=="number"?[e.grid,e.grid]:e.grid;var k=Math.round((f.width-g.width)/(e.grid[0]||1))*(e.grid[0]||1),l=Math.round((f.height-g.height)/(e.grid[1]||1))*(e.grid[1]||1);/^(se|s|e)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l):/^(ne)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l):/^(sw)$/.test(i)?(d.size.width=g.width+k,d.size.height=g.height+l,d.position.left=h.left-k):(d.size.width=g.width+k,d.size.height=g.height+l,d.position.top=h.top-l,d.position.left=h.left-k)}});var c=function(a){return parseInt(a,10)||0},d=function(a){return!isNaN(parseInt(a,10))}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.selectable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(b){var c=this;this.opos=[b.pageX,b.pageY];if(this.options.disabled)return;var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,!b.metaKey&&!b.ctrlKey&&(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metaKey&&!b.ctrlKey||!d.$element.hasClass("ui-selected");return d.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element}),!1}})},_mouseDrag:function(b){var c=this;this.dragged=!0;if(this.options.disabled)return;var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pageX,h=b.pageY;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}return this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(!i||i.element==c.element[0])return;var j=!1;d.tolerance=="touch"?j=!(i.left>g||i.right<e||i.top>h||i.bottom<f):d.tolerance=="fit"&&(j=i.left>e&&i.right<g&&i.top>f&&i.bottom<h),j?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,c._trigger("selecting",b,{selecting:i.element}))):(i.selecting&&((b.metaKey||b.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),c._trigger("unselecting",b,{unselecting:i.element}))),i.selected&&!b.metaKey&&!b.ctrlKey&&!i.startselected&&(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,c._trigger("unselecting",b,{unselecting:i.element})))}),!1},_mouseStop:function(b){var c=this;this.dragged=!1;var d=this.options;return a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}}),a.extend(a.ui.selectable,{version:"1.8.23"})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.sortable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},destroy:function(){a.Widget.prototype.destroy.call(this),this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--)this.items[b].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){b==="disabled"?(this.options[b]=c,this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(b);var e=null,f=this,g=a(b.target).parents().each(function(){if(a.data(this,d.widgetName+"-item")==f)return e=a(this),!1});a.data(b.target,d.widgetName+"-item")==f&&(e=a(b.target));if(!e)return!1;if(this.options.handle&&!c){var h=!1;a(this.options.handle,e).find("*").andSelf().each(function(){this==b.target&&(h=!0)});if(!h)return!1}return this.currentItem=e,this._removeCurrentsFromItems(),!0},_mouseStart:function(b,c,d){var e=this.options,f=this;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),e.containment&&this._setContainment(),e.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",e.cursor)),e.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity)),e.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",e.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!d)for(var g=this.containers.length-1;g>=0;g--)this.containers[g]._trigger("activate",b,f._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var c=this.options,d=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+c.scrollSpeed:b.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+c.scrollSpeed:b.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(b.pageY-a(document).scrollTop()<c.scrollSensitivity?d=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<c.scrollSensitivity&&(d=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed)),b.pageX-a(document).scrollLeft()<c.scrollSensitivity?d=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<c.scrollSensitivity&&(d=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed))),d!==!1&&a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(var e=this.items.length-1;e>=0;e--){var f=this.items[e],g=f.item[0],h=this._intersectsWithPointer(f);if(!h)continue;if(g!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=g&&!a.ui.contains(this.placeholder[0],g)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],g):!0)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f))this._rearrange(b,f);else break;this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(!b)return;a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var d=this,e=d.placeholder.offset();d.reverting=!0,a(this.helper).animate({left:e.left-this.offset.parent.left-d.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-d.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1},cancel:function(){var b=this;if(this.dragging){this._mouseUp({target:null}),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,b._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,b._uiHash(this)),this.containers[c].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);c&&d.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+"="),d.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||"id")||"")}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l=d+j>h&&d+j<i&&b+k>f&&b+k<g;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?l:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(b){var c=this.options.axis==="x"||a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height),d=this.options.axis==="y"||a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),e=c&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return e?this.floating?g&&g=="right"||f=="down"?2:1:f&&(f=="down"?2:1):!1},_intersectsWithSides:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?f=="right"&&d||f=="left"&&!d:e&&(e=="down"&&c||e=="up"&&!c)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c=this,d=[],e=[],f=this._connectWith();if(f&&b)for(var g=f.length-1;g>=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetName);j&&j!=this&&!j.options.disabled&&e.push([a.isFunction(j.options.items)?j.options.items.call(j.element):a(j.options.items,j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),j])}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var g=e.length-1;g>=0;g--)e[g][0].each(function(){d.push(this)});return a(d)},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data("+this.widgetName+"-item)");for(var b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(b){this.items=[],this.containers=[this];var c=this.items,d=this,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(var g=f.length-1;g>=0;g--){var h=a(f[g]);for(var i=h.length-1;i>=0;i--){var j=a.data(h[i],this.widgetName);j&&j!=this&&!j.options.disabled&&(e.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):a(j.options.items,j.element),j]),this.containers.push(j))}}for(var g=e.length-1;g>=0;g--){var k=e[g][1],l=e[g][0];for(var i=0,m=l.length;i<m;i++){var n=a(l[i]);n.data(this.widgetName+"-item",k),c.push({item:n,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var c=this.items.length-1;c>=0;c--){var d=this.items[c];if(d.instance!=this.currentContainer&&this.currentContainer&&d.item[0]!=this.currentItem[0])continue;var e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;b||(d.width=e.outerWidth(),d.height=e.outerHeight());var f=e.offset();d.left=f.left,d.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var c=this.containers.length-1;c>=0;c--){var f=this.containers[c].element.offset();this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}return this},_createPlaceholder:function(b){var c=b||this,d=c.options;if(!d.placeholder||d.placeholder.constructor==String){var e=d.placeholder;d.placeholder={element:function(){var b=a(document.createElement(c.currentItem[0].nodeName)).addClass(e||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return e||(b.style.visibility="hidden"),b},update:function(a,b){if(e&&!d.forcePlaceholderSize)return;b.height()||b.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10)),b.width()||b.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}c.placeholder=a(d.placeholder.element.call(c.element,c.currentItem)),c.currentItem.after(c.placeholder),d.placeholder.update(c,c.placeholder)},_contactContainers:function(b){var c=null,d=null;for(var e=this.containers.length-1;e>=0;e--){if(a.ui.contains(this.currentItem[0],this.containers[e].element[0]))continue;if(this._intersectsWith(this.containers[e].containerCache)){if(c&&a.ui.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],d=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0)}if(!c)return;if(this.containers.length===1)this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1;else if(this.currentContainer!=this.containers[d]){var f=1e4,g=null,h=this.positionAbs[this.containers[d].floating?"left":"top"];for(var i=this.items.length-1;i>=0;i--){if(!a.ui.contains(this.containers[d].element[0],this.items[i].item[0]))continue;var j=this.containers[d].floating?this.items[i].item.offset().left:this.items[i].item.offset().top;Math.abs(j-h)<f&&(f=Math.abs(j-h),g=this.items[i],this.direction=j-h>0?"down":"up")}if(!g&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[d],g?this._rearrange(b,g,null,!0):this._rearrange(b,null,this.containers[d].element,!0),this._trigger("change",b,this._uiHash()),this.containers[d]._trigger("change",b,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;return d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(d[0].style.width==""||c.forceHelperSize)&&d.width(this.currentItem.width()),(d[0].style.height==""||c.forceHelperSize)&&d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0],d=a(b.containment).offset(),e=a(c).css("overflow")!="hidden";this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){c||(c=this.position);var d=b=="absolute"?1:-1,e=this.options,f=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d),left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d)}},_generatePosition:function(b){var c=this.options,d=this.cssPosition=="absolute"&&(this.scrollParent[0]==document||!a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=/(html|body)/i.test(d[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var f=b.pageX,g=b.pageY;if(this.originalPosition){this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top));if(c.grid){var h=this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1];g=this.containment?h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3]?h-this.offset.click.top<this.containment[1]?h+c.grid[1]:h-c.grid[1]:h:h;var i=this.originalPageX+Math.round((f-this.originalPageX)/c.grid[0])*c.grid[0];f=this.containment?i-this.offset.click.left<this.containment[0]||i-this.offset.click.left>this.containment[2]?i-this.offset.click.left<this.containment[0]?i+c.grid[0]:i-c.grid[0]:i:i}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():e?0:d.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this,f=this.counter;window.setTimeout(function(){f==e.counter&&e.refreshPositions(!d)},0)},_clear:function(b,c){this.reverting=!1;var d=[],e=this;!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var f in this._storedCSS)if(this._storedCSS[f]=="auto"||this._storedCSS[f]=="static")this._storedCSS[f]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!c&&d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!c&&d.push(function(a){this._trigger("update",a,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){c||d.push(function(a){this._trigger("remove",a,this._uiHash())});for(var f=this.containers.length-1;f>=0;f--)a.ui.contains(this.containers[f].element[0],this.currentItem[0])&&!c&&(d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[f])),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[f])))}for(var f=this.containers.length-1;f>=0;f--)c||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over=0);this._storedCursor&&a("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",b,this._uiHash());for(var f=0;f<d.length;f++)d[f].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=!1,!1}c||this._trigger("beforeStop",b,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null;if(!c){for(var f=0;f<d.length;f++)d[f].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}}),a.extend(a.ui.sortable,{version:"1.8.23"})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.accordion.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var b=this,c=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){if(c.disabled)return;a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){if(c.disabled)return;a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var d=b.element.find("a").filter(c.navigationFilter).eq(0);if(d.length){var e=d.closest(".ui-accordion-header");e.length?b.active=e:b.active=d.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),c.event&&b.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoHeight||b.fillHeight)&&c.css("height",""),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(c),b=="icons"&&(this._destroyIcons(),c&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(this.options.disabled||b.altKey||b.ctrlKey)return;var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}return f?(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),!1):!0},resize:function(){var b=this.options,c;if(b.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",d),this.headers.each(function(){c-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(c=0,this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())}).height(c));return this},activate:function(a){this.options.active=a;var b=this._findActive(a)[0];return this._clickHandler({target:b},b),this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,c){var d=this.options;if(d.disabled)return;if(!b.target){if(!d.collapsible)return;this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),this.active.next().addClass("ui-accordion-content-active");var e=this.active.next(),f={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:e},g=this.active=a([]);this._toggle(g,e,f);return}var h=a(b.currentTarget||c),i=h[0]===this.active[0];d.active=d.collapsible&&i?!1:this.headers.index(h);if(this.running||!d.collapsible&&i)return;var j=this.active,g=h.next(),e=this.active.next(),f={options:d,newHeader:i&&d.collapsible?a([]):h,oldHeader:this.active,newContent:i&&d.collapsible?a([]):g,oldContent:e},k=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=i?a([]):h,this._toggle(g,e,f,i,k),j.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header),i||(h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected),h.next().addClass("ui-accordion-content-active"));return},_toggle:function(b,c,d,e,f){var g=this,h=g.options;g.toShow=b,g.toHide=c,g.data=d;var i=function(){if(!g)return;return g._completed.apply(g,arguments)};g._trigger("changestart",null,g.data),g.running=c.size()===0?b.size():c.size();if(h.animated){var j={};h.collapsible&&e?j={toShow:a([]),toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace}:j={toShow:b,toHide:c,complete:i,down:f,autoHeight:h.autoHeight||h.fillSpace},h.proxied||(h.proxied=h.animated),h.proxiedDuration||(h.proxiedDuration=h.duration),h.animated=a.isFunction(h.proxied)?h.proxied(j):h.proxied,h.duration=a.isFunction(h.proxiedDuration)?h.proxiedDuration(j):h.proxiedDuration;var k=a.ui.accordion.animations,l=h.duration,m=h.animated;m&&!k[m]&&!a.easing[m]&&(m="slide"),k[m]||(k[m]=function(a){this.slide(a,{easing:m,duration:l||700})}),k[m](j)}else h.collapsible&&e?b.toggle():(c.hide(),b.show()),i(!0);c.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running;if(this.running)return;this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data)}}),a.extend(a.ui.accordion,{version:"1.8.23",animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size()){b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b);return}if(!b.toShow.size()){b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);return}var d=b.toShow.css("overflow"),e=0,f={},g={},h=["height","paddingTop","paddingBottom"],i,j=b.toShow;i=j[0].style.width,j.width(j.parent().width()-parseFloat(j.css("paddingLeft"))-parseFloat(j.css("paddingRight"))-(parseFloat(j.css("borderLeftWidth"))||0)-(parseFloat(j.css("borderRightWidth"))||0)),a.each(h,function(c,d){g[d]="hide";var e=(""+a.css(b.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);f[d]={value:e[1],unit:e[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(g,{step:function(a,c){c.prop=="height"&&(e=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=e*f[c.prop].value+f[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:d}),b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.autocomplete.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){var c=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerDocument,d;this.isMultiLine=this.element.is("textarea"),this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(b.options.disabled||b.element.propAttr("readOnly"))return;d=!1;var e=a.ui.keyCode;switch(c.keyCode){case e.PAGE_UP:b._move("previousPage",c);break;case e.PAGE_DOWN:b._move("nextPage",c);break;case e.UP:b._keyEvent("previous",c);break;case e.DOWN:b._keyEvent("next",c);break;case e.ENTER:case e.NUMPAD_ENTER:b.menu.active&&(d=!0,c.preventDefault());case e.TAB:if(!b.menu.active)return;b.menu.select(c);break;case e.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!=b.element.val()&&(b.selectedItem=null,b.search(null,c))},b.options.delay)}}).bind("keypress.autocomplete",function(a){d&&(d=!1,a.preventDefault())}).bind("focus.autocomplete",function(){if(b.options.disabled)return;b.selectedItem=null,b.previous=b.element.val()}).bind("blur.autocomplete",function(a){if(b.options.disabled)return;clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a),b._change(a)},150)}),this._initSource(),this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(c){var d=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1),setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,c){var d=c.item.data("item.autocomplete");!1!==b._trigger("focus",a,{item:d})&&/^key/.test(a.originalEvent.type)&&b.element.val(d.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeElement&&(b.element.focus(),b.previous=f,setTimeout(function(){b.previous=f,b.selectedItem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selectedItem=e},blur:function(a,c){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe(),b.beforeunloadHandler=function(){b.element.removeAttr("autocomplete")},a(window).bind("beforeunload",b.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),a(window).unbind("beforeunload",this.beforeunloadHandler),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b==="source"&&this._initSource(),b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var b=this,c,d;a.isArray(this.options.source)?(c=this.options.source,this.source=function(b,d){d(a.ui.autocomplete.filter(c,b.term))}):typeof this.options.source=="string"?(d=this.options.source,this.source=function(c,e){b.xhr&&b.xhr.abort(),b.xhr=a.ajax({url:d,data:c,dataType:"json",success:function(a,b){e(a)},error:function(){e([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val(),this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)===!1)return;return this._search(a)},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:a},this._response())},_response:function(){var a=this,b=++c;return function(d){b===c&&a.__response(d),a.pending--,a.pending||a.element.removeClass("ui-autocomplete-loading")}},__response:function(a){!this.options.disabled&&a&&a.length?(a=this._normalize(a),this._suggest(a),this._trigger("open")):this.close()},close:function(a){clearTimeout(this.closing),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",a))},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){return b.length&&b[0].label&&b[0].value?b:a.map(b,function(b){return typeof b=="string"?{label:b,value:b}:a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,b),this.menu.deactivate(),this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItem(b,c)})},_renderItem:function(b,c){return a("<li></li>").data("item.autocomplete",c).append(a("<a></a>").text(c.label)).appendTo(b)},_move:function(a,b){if(!this.menu.element.is(":visible")){this.search(null,b);return}if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term),this.menu.deactivate();return}this.menu[a](b)},widget:function(){return this.menu.element},_keyEvent:function(a,b){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(a,b),b.preventDefault()}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})})(jQuery),function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length)return;c.preventDefault(),b.select(c)}),this.refresh()},refresh:function(){var b=this,c=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.scrollTop(),e=this.element.height();c<0?this.element.scrollTop(d+c):c>=e&&this.element.scrollTop(d+c-e+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",a,{item:b})},deactivate:function(){if(!this.active)return;this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(!this.active){this.activate(c,this.element.children(b));return}var d=this.active[a+"All"](".ui-menu-item").eq(0);d.length?this.activate(c,d):this.activate(c,this.element.children(b))},nextPage:function(b){if(this.hasScroll()){if(!this.active||this.last()){this.activate(b,this.element.children(".ui-menu-item:first"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c-d+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll()){if(!this.active||this.first()){this.activate(b,this.element.children(".ui-menu-item:last"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:first")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})}(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.button.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){var c,d,e,f,g="ui-button ui-widget ui-state-default ui-corner-all",h="ui-state-hover ui-state-active ",i="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",j=function(){var b=a(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},k=function(b){var c=b.name,d=b.form,e=a([]);return c&&(d?e=a(d).find("[name='"+c+"']"):e=a("[name='"+c+"']",b.ownerDocument).filter(function(){return!this.form})),e};a.widget("ui.button",{options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",j),typeof this.options.disabled!="boolean"?this.options.disabled=!!this.element.propAttr("disabled"):this.element.propAttr("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var b=this,h=this.options,i=this.type==="checkbox"||this.type==="radio",l="ui-state-hover"+(i?"":" ui-state-active"),m="ui-state-focus";h.label===null&&(h.label=this.buttonElement.html()),this.buttonElement.addClass(g).attr("role","button").bind("mouseenter.button",function(){if(h.disabled)return;a(this).addClass("ui-state-hover"),this===c&&a(this).addClass("ui-state-active")}).bind("mouseleave.button",function(){if(h.disabled)return;a(this).removeClass(l)}).bind("click.button",function(a){h.disabled&&(a.preventDefault(),a.stopImmediatePropagation())}),this.element.bind("focus.button",function(){b.buttonElement.addClass(m)}).bind("blur.button",function(){b.buttonElement.removeClass(m)}),i&&(this.element.bind("change.button",function(){if(f)return;b.refresh()}),this.buttonElement.bind("mousedown.button",function(a){if(h.disabled)return;f=!1,d=a.pageX,e=a.pageY}).bind("mouseup.button",function(a){if(h.disabled)return;if(d!==a.pageX||e!==a.pageY)f=!0})),this.type==="checkbox"?this.buttonElement.bind("click.button",function(){if(h.disabled||f)return!1;a(this).toggleClass("ui-state-active"),b.buttonElement.attr("aria-pressed",b.element[0].checked)}):this.type==="radio"?this.buttonElement.bind("click.button",function(){if(h.disabled||f)return!1;a(this).addClass("ui-state-active"),b.buttonElement.attr("aria-pressed","true");var c=b.element[0];k(c).not(c).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown.button",function(){if(h.disabled)return!1;a(this).addClass("ui-state-active"),c=this,a(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(h.disabled)return!1;a(this).removeClass("ui-state-active")}).bind("keydown.button",function(b){if(h.disabled)return!1;(b.keyCode==a.ui.keyCode.SPACE||b.keyCode==a.ui.keyCode.ENTER)&&a(this).addClass("ui-state-active")}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(b){b.keyCode===a.ui.keyCode.SPACE&&a(this).click()})),this._setOption("disabled",h.disabled),this._resetButton()},_determineButtonType:function(){this.element.is(":checkbox")?this.type="checkbox":this.element.is(":radio")?this.type="radio":this.element.is("input")?this.type="input":this.type="button";if(this.type==="checkbox"||this.type==="radio"){var a=this.element.parents().filter(":last"),b="label[for='"+this.element.attr("id")+"']";this.buttonElement=a.find(b),this.buttonElement.length||(a=a.length?a.siblings():this.element.siblings(),this.buttonElement=a.filter(b),this.buttonElement.length||(this.buttonElement=a.find(b))),this.element.addClass("ui-helper-hidden-accessible");var c=this.element.is(":checked");c&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.attr("aria-pressed",c)}else this.buttonElement=this.element},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(g+" "+h+" "+i).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title"),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled"){c?this.element.propAttr("disabled",!0):this.element.propAttr("disabled",!1);return}this._resetButton()},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b),this.type==="radio"?k(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):a(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):this.type==="checkbox"&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label);return}var b=this.buttonElement.removeClass(i),c=a("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,e=d.primary&&d.secondary,f=[];d.primary||d.secondary?(this.options.text&&f.push("ui-button-text-icon"+(e?"s":d.primary?"-primary":"-secondary")),d.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+d.primary+"'></span>"),d.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+d.secondary+"'></span>"),this.options.text||(f.push(e?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||b.attr("title",c))):f.push("ui-button-text-only"),b.addClass(f.join(" "))}}),a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c),a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(b?"ui-corner-left":"ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy"),a.Widget.prototype.destroy.call(this)}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.dialog.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",d={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},e={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};a.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",collision:"fit",using:function(b){var c=a(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizable:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(){this.originalTitle=this.element.attr("title"),typeof this.originalTitle!="string"&&(this.originalTitle=""),this.options.title=this.options.title||this.originalTitle;var b=this,d=b.options,e=d.title||"&#160;",f=a.ui.dialog.getTitleId(b.element),g=(b.uiDialog=a("<div></div>")).appendTo(document.body).hide().addClass(c+d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(c){d.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(a){b.moveToTop(!1,a)}),h=b.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g),i=(b.uiDialogTitlebar=a("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),j=a('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).click(function(a){return b.close(a),!1}).appendTo(i),k=(b.uiDialogTitlebarCloseText=a("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(j),l=a("<span></span>").addClass("ui-dialog-title").attr("id",f).html(e).prependTo(i);a.isFunction(d.beforeclose)&&!a.isFunction(d.beforeClose)&&(d.beforeClose=d.beforeclose),i.find("*").add(i).disableSelection(),d.draggable&&a.fn.draggable&&b._makeDraggable(),d.resizable&&a.fn.resizable&&b._makeResizable(),b._createButtons(d.buttons),b._isOpen=!1,a.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;return a.overlay&&a.overlay.destroy(),a.uiDialog.hide(),a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),a.uiDialog.remove(),a.originalTitle&&a.element.attr("title",a.originalTitle),a},widget:function(){return this.uiDialog},close:function(b){var c=this,d,e;if(!1===c._trigger("beforeClose",b))return;return c.overlay&&c.overlay.destroy(),c.uiDialog.unbind("keypress.ui-dialog"),c._isOpen=!1,c.options.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",b)}):(c.uiDialog.hide(),c._trigger("close",b)),a.ui.dialog.overlay.resize(),c.options.modal&&(d=0,a(".ui-dialog").each(function(){this!==c.uiDialog[0]&&(e=a(this).css("z-index"),isNaN(e)||(d=Math.max(d,e)))}),a.ui.dialog.maxZ=d),c},isOpen:function(){return this._isOpen},moveToTop:function(b,c){var d=this,e=d.options,f;return e.modal&&!b||!e.stack&&!e.modal?d._trigger("focus",c):(e.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=e.zIndex),d.overlay&&(a.ui.dialog.maxZ+=1,d.overlay.$el.css("z-index",a.ui.dialog.overlay.maxZ=a.ui.dialog.maxZ)),f={scrollTop:d.element.scrollTop(),scrollLeft:d.element.scrollLeft()},a.ui.dialog.maxZ+=1,d.uiDialog.css("z-index",a.ui.dialog.maxZ),d.element.attr(f),d._trigger("focus",c),d)},open:function(){if(this._isOpen)return;var b=this,c=b.options,d=b.uiDialog;return b.overlay=c.modal?new a.ui.dialog.overlay(b):null,b._size(),b._position(c.position),d.show(c.show),b.moveToTop(!0),c.modal&&d.bind("keydown.ui-dialog",function(b){if(b.keyCode!==a.ui.keyCode.TAB)return;var c=a(":tabbable",this),d=c.filter(":first"),e=c.filter(":last");if(b.target===e[0]&&!b.shiftKey)return d.focus(1),!1;if(b.target===d[0]&&b.shiftKey)return e.focus(1),!1}),a(b.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus(),b._isOpen=!0,b._trigger("open"),b},_createButtons:function(b){var c=this,d=!1,e=a("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),f=a("<div></div>").addClass("ui-dialog-buttonset").appendTo(e);c.uiDialog.find(".ui-dialog-buttonpane").remove(),typeof b=="object"&&b!==null&&a.each(b,function(){return!(d=!0)}),d&&(a.each(b,function(b,d){d=a.isFunction(d)?{click:d,text:b}:d;var e=a('<button type="button"></button>').click(function(){d.click.apply(c.element[0],arguments)}).appendTo(f);a.each(d,function(a,b){if(a==="click")return;a in e?e[a](b):e.attr(a,b)}),a.fn.button&&e.button()}),e.appendTo(c.uiDialog))},_makeDraggable:function(){function f(a){return{position:a.position,offset:a.offset}}var b=this,c=b.options,d=a(document),e;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(d,g){e=c.height==="auto"?"auto":a(this).height(),a(this).height(a(this).height()).addClass("ui-dialog-dragging"),b._trigger("dragStart",d,f(g))},drag:function(a,c){b._trigger("drag",a,f(c))},stop:function(g,h){c.position=[h.position.left-d.scrollLeft(),h.position.top-d.scrollTop()],a(this).removeClass("ui-dialog-dragging").height(e),b._trigger("dragStop",g,f(h)),a.ui.dialog.overlay.resize()}})},_makeResizable:function(c){function h(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}c=c===b?this.options.resizable:c;var d=this,e=d.options,f=d.uiDialog.css("position"),g=typeof c=="string"?c:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:g,start:function(b,c){a(this).addClass("ui-dialog-resizing"),d._trigger("resizeStart",b,h(c))},resize:function(a,b){d._trigger("resize",a,h(b))},stop:function(b,c){a(this).removeClass("ui-dialog-resizing"),e.height=a(this).height(),e.width=a(this).width(),d._trigger("resizeStop",b,h(c)),a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(b){var c=[],d=[0,0],e;if(b){if(typeof b=="string"||typeof b=="object"&&"0"in b)c=b.split?b.split(" "):[b[0],b[1]],c.length===1&&(c[1]=c[0]),a.each(["left","top"],function(a,b){+c[a]===c[a]&&(d[a]=c[a],c[a]=b)}),b={my:c.join(" "),at:c.join(" "),offset:d.join(" ")};b=a.extend({},a.ui.dialog.prototype.options.position,b)}else b=a.ui.dialog.prototype.options.position;e=this.uiDialog.is(":visible"),e||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(a.extend({of:window},b)),e||this.uiDialog.hide()},_setOptions:function(b){var c=this,f={},g=!1;a.each(b,function(a,b){c._setOption(a,b),a in d&&(g=!0),a in e&&(f[a]=b)}),g&&this._size(),this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(b,d){var e=this,f=e.uiDialog;switch(b){case"beforeclose":b="beforeClose";break;case"buttons":e._createButtons(d);break;case"closeText":e.uiDialogTitlebarCloseText.text(""+d);break;case"dialogClass":f.removeClass(e.options.dialogClass).addClass(c+d);break;case"disabled":d?f.addClass("ui-dialog-disabled"):f.removeClass("ui-dialog-disabled");break;case"draggable":var g=f.is(":data(draggable)");g&&!d&&f.draggable("destroy"),!g&&d&&e._makeDraggable();break;case"position":e._position(d);break;case"resizable":var h=f.is(":data(resizable)");h&&!d&&f.resizable("destroy"),h&&typeof d=="string"&&f.resizable("option","handles",d),!h&&d!==!1&&e._makeResizable(d);break;case"title":a(".ui-dialog-title",e.uiDialogTitlebar).html(""+(d||"&#160;"))}a.Widget.prototype._setOption.apply(e,arguments)},_size:function(){var b=this.options,c,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0}),b.minWidth>b.width&&(b.width=b.minWidth),c=this.uiDialog.css({height:"auto",width:b.width}).height(),d=Math.max(0,b.minHeight-c);if(b.height==="auto")if(a.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();var f=this.element.css("height","auto").height();e||this.uiDialog.hide(),this.element.height(Math.max(f,d))}else this.element.height(Math.max(b.height-c,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}}),a.extend(a.ui.dialog,{version:"1.8.23",uuid:0,maxZ:0,getTitleId:function(a){var b=a.attr("id");return b||(this.uuid+=1,b=this.uuid),"ui-dialog-title-"+b},overlay:function(b){this.$el=a.ui.dialog.overlay.create(b)}}),a.extend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "),create:function(b){this.instances.length===0&&(setTimeout(function(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.overlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.maxZ)return!1})},1),a(document).bind("keydown.dialog-overlay",function(c){b.options.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode===a.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}),a(window).bind("resize.dialog-overlay",a.ui.dialog.overlay.resize));var c=(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});return a.fn.bgiframe&&c.bgiframe(),this.instances.push(c),c},destroy:function(b){var c=a.inArray(b,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]),this.instances.length===0&&a([document,window]).unbind(".dialog-overlay"),b.remove();var d=0;a.each(this.instances,function(){d=Math.max(d,this.css("z-index"))}),this.maxZ=d},height:function(){var b,c;return a.browser.msie&&a.browser.version<7?(b=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight),b<c?a(window).height()+"px":b+"px"):a(document).height()+"px"},width:function(){var b,c;return a.browser.msie?(b=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth),b<c?a(window).width()+"px":b+"px"):a(document).width()+"px"},resize:function(){var b=a([]);a.each(a.ui.dialog.overlay.instances,function(){b=b.add(this)}),b.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),height:a.ui.dialog.overlay.height()})}}),a.extend(a.ui.dialog.overlay.prototype,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.slider.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var b=this,d=this.options,e=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",g=d.values&&d.values.length||1,h=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"+(d.disabled?" ui-slider-disabled ui-disabled":"")),this.range=a([]),d.range&&(d.range===!0&&(d.values||(d.values=[this._valueMin(),this._valueMin()]),d.values.length&&d.values.length!==2&&(d.values=[d.values[0],d.values[0]])),this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(d.range==="min"||d.range==="max"?" ui-slider-range-"+d.range:"")));for(var i=e.length;i<g;i+=1)h.push(f);this.handles=e.add(a(h.join("")).appendTo(b.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){d.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){d.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")}),this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)}),this.handles.keydown(function(d){var e=a(this).data("index.ui-slider-handle"),f,g,h,i;if(b.options.disabled)return;switch(d.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:d.preventDefault();if(!b._keySliding){b._keySliding=!0,a(this).addClass("ui-state-active"),f=b._start(d,e);if(f===!1)return}}i=b.options.step,b.options.values&&b.options.values.length?g=h=b.values(e):g=h=b.value();switch(d.keyCode){case a.ui.keyCode.HOME:h=b._valueMin();break;case a.ui.keyCode.END:h=b._valueMax();break;case a.ui.keyCode.PAGE_UP:h=b._trimAlignValue(g+(b._valueMax()-b._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:h=b._trimAlignValue(g-(b._valueMax()-b._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g===b._valueMax())return;h=b._trimAlignValue(g+i);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g===b._valueMin())return;h=b._trimAlignValue(g-i)}b._slide(d,e,h)}).keyup(function(c){var d=a(this).data("index.ui-slider-handle");b._keySliding&&(b._keySliding=!1,b._stop(c,d),b._change(c,d),a(this).removeClass("ui-state-active"))}),this._refreshValue(),this._animateOff=!1},destroy:function(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function(b){var c=this.options,d,e,f,g,h,i,j,k,l;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),d={x:b.pageX,y:b.pageY},e=this._normValueFromMouse(d),f=this._valueMax()-this._valueMin()+1,h=this,this.handles.each(function(b){var c=Math.abs(e-h.values(b));f>c&&(f=c,g=a(this),i=b)}),c.range===!0&&this.values(1)===c.min&&(i+=1,g=a(this.handles[i])),j=this._start(b,i),j===!1?!1:(this._mouseSliding=!0,h._handleIndex=i,g.addClass("ui-state-active").focus(),k=g.offset(),l=!a(b.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:b.pageX-k.left-g.width()/2,top:b.pageY-k.top-g.height()/2-(parseInt(g.css("borderTopWidth"),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,i,e),this._animateOff=!0,!0))},_mouseStart:function(a){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return this.orientation==="horizontal"?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),d<0&&(d=0),this.orientation==="vertical"&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),this.options.values.length===2&&this.options.range===!0&&(b===0&&c>d||b===1&&c<d)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),f!==!1&&this.values(b,c,!0))):c!==this.value()&&(f=this._trigger("slide",a,{handle:this.handles[b],value:c}),f!==!1&&this.value(c))},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("change",a,c)}},value:function(a){if(arguments.length){this.options.value=this._trimAlignValue(a),this._refreshValue(),this._change(null,0);return}return this._value()},values:function(b,c){var d,e,f;if(arguments.length>1){this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),this._change(null,b);return}if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();d=this.options.values,e=arguments[0];for(f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments);switch(b){case"disabled":c?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":this._animateOff=!0,this._refreshValue();for(d=0;d<e;d+=1)this._change(null,d);this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a),a},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b),b;c=this.options.values.slice();for(d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return Math.abs(c)*2>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b=this.options.range,c=this.options,d=this,e=this._animateOff?!1:c.animate,f,g={},h,i,j,k;this.options.values&&this.options.values.length?this.handles.each(function(b,i){f=(d.values(b)-d._valueMin())/(d._valueMax()-d._valueMin())*100,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",a(this).stop(1,1)[e?"animate":"css"](g,c.animate),d.options.range===!0&&(d.orientation==="horizontal"?(b===0&&d.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({width:f-h+"%"},{queue:!1,duration:c.animate})):(b===0&&d.range.stop(1,1)[e?"animate":"css"]({bottom:f+"%"},c.animate),b===1&&d.range[e?"animate":"css"]({height:f-h+"%"},{queue:!1,duration:c.animate}))),h=f}):(i=this.value(),j=this._valueMin(),k=this._valueMax(),f=k!==j?(i-j)/(k-j)*100:0,g[d.orientation==="horizontal"?"left":"bottom"]=f+"%",this.handle.stop(1,1)[e?"animate":"css"](g,c.animate),b==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[e?"animate":"css"]({width:f+"%"},c.animate),b==="max"&&this.orientation==="horizontal"&&this.range[e?"animate":"css"]({width:100-f+"%"},{queue:!1,duration:c.animate}),b==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[e?"animate":"css"]({height:f+"%"},c.animate),b==="max"&&this.orientation==="vertical"&&this.range[e?"animate":"css"]({height:100-f+"%"},{queue:!1,duration:c.animate}))}}),a.extend(a.ui.slider,{version:"1.8.23"})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.tabs.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){function e(){return++c}function f(){return++d}var c=0,d=0;a.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:!1,cookie:null,collapsible:!1,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(!0)},_setOption:function(a,b){if(a=="selected"){if(this.options.collapsible&&b==this.options.selected)return;this.select(b)}else this.options[a]=b,this._tabify()},_tabId:function(a){return a.title&&a.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(a){return a.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+f());return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(a,b){return{tab:a,panel:b,index:this.anchors.index(a)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(c){function m(b,c){b.css("display",""),!a.support.opacity&&c.opacity&&b[0].style.removeAttribute("filter")}var d=this,e=this.options,f=/^#.+/;this.list=this.element.find("ol,ul").eq(0),this.lis=a(" > li:has(a[href])",this.list),this.anchors=this.lis.map(function(){return a("a",this)[0]}),this.panels=a([]),this.anchors.each(function(b,c){var g=a(c).attr("href"),h=g.split("#")[0],i;h&&(h===location.toString().split("#")[0]||(i=a("base")[0])&&h===i.href)&&(g=c.hash,c.href=g);if(f.test(g))d.panels=d.panels.add(d.element.find(d._sanitizeSelector(g)));else if(g&&g!=="#"){a.data(c,"href.tabs",g),a.data(c,"load.tabs",g.replace(/#.*$/,""));var j=d._tabId(c);c.href="#"+j;var k=d.element.find("#"+j);k.length||(k=a(e.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(d.panels[b-1]||d.list),k.data("destroy.tabs",!0)),d.panels=d.panels.add(k)}else e.disabled.push(b)}),c?(this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"),this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.lis.addClass("ui-state-default ui-corner-top"),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"),e.selected===b?(location.hash&&this.anchors.each(function(a,b){if(b.hash==location.hash)return e.selected=a,!1}),typeof e.selected!="number"&&e.cookie&&(e.selected=parseInt(d._cookie(),10)),typeof e.selected!="number"&&this.lis.filter(".ui-tabs-selected").length&&(e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))),e.selected=e.selected||(this.lis.length?0:-1)):e.selected===null&&(e.selected=-1),e.selected=e.selected>=0&&this.anchors[e.selected]||e.selected<0?e.selected:0,e.disabled=a.unique(e.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(a,b){return d.lis.index(a)}))).sort(),a.inArray(e.selected,e.disabled)!=-1&&e.disabled.splice(a.inArray(e.selected,e.disabled),1),this.panels.addClass("ui-tabs-hide"),this.lis.removeClass("ui-tabs-selected ui-state-active"),e.selected>=0&&this.anchors.length&&(d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash)).removeClass("ui-tabs-hide"),this.lis.eq(e.selected).addClass("ui-tabs-selected ui-state-active"),d.element.queue("tabs",function(){d._trigger("show",null,d._ui(d.anchors[e.selected],d.element.find(d._sanitizeSelector(d.anchors[e.selected].hash))[0]))}),this.load(e.selected)),a(window).bind("unload",function(){d.lis.add(d.anchors).unbind(".tabs"),d.lis=d.anchors=d.panels=null})):e.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")),this.element[e.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible"),e.cookie&&this._cookie(e.selected,e.cookie);for(var g=0,h;h=this.lis[g];g++)a(h)[a.inArray(g,e.disabled)!=-1&&!a(h).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");e.cache===!1&&this.anchors.removeData("cache.tabs"),this.lis.add(this.anchors).unbind(".tabs");if(e.event!=="mouseover"){var i=function(a,b){b.is(":not(.ui-state-disabled)")&&b.addClass("ui-state-"+a)},j=function(a,b){b.removeClass("ui-state-"+a)};this.lis.bind("mouseover.tabs",function(){i("hover",a(this))}),this.lis.bind("mouseout.tabs",function(){j("hover",a(this))}),this.anchors.bind("focus.tabs",function(){i("focus",a(this).closest("li"))}),this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var k,l;e.fx&&(a.isArray(e.fx)?(k=e.fx[0],l=e.fx[1]):k=l=e.fx);var n=l?function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){m(c,l),d._trigger("show",null,d._ui(b,c[0]))})}:function(b,c){a(b).closest("li").addClass("ui-tabs-selected ui-state-active"),c.removeClass("ui-tabs-hide"),d._trigger("show",null,d._ui(b,c[0]))},o=k?function(a,b){b.animate(k,k.duration||"normal",function(){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),m(b,k),d.element.dequeue("tabs")})}:function(a,b,c){d.lis.removeClass("ui-tabs-selected ui-state-active"),b.addClass("ui-tabs-hide"),d.element.dequeue("tabs")};this.anchors.bind(e.event+".tabs",function(){var b=this,c=a(b).closest("li"),f=d.panels.filter(":not(.ui-tabs-hide)"),g=d.element.find(d._sanitizeSelector(b.hash));if(c.hasClass("ui-tabs-selected")&&!e.collapsible||c.hasClass("ui-state-disabled")||c.hasClass("ui-state-processing")||d.panels.filter(":animated").length||d._trigger("select",null,d._ui(this,g[0]))===!1)return this.blur(),!1;e.selected=d.anchors.index(this),d.abort();if(e.collapsible){if(c.hasClass("ui-tabs-selected"))return e.selected=-1,e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){o(b,f)}).dequeue("tabs"),this.blur(),!1;if(!f.length)return e.cookie&&d._cookie(e.selected,e.cookie),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this)),this.blur(),!1}e.cookie&&d._cookie(e.selected,e.cookie);if(g.length)f.length&&d.element.queue("tabs",function(){o(b,f)}),d.element.queue("tabs",function(){n(b,g)}),d.load(d.anchors.index(this));else throw"jQuery UI Tabs: Mismatching fragment identifier.";a.browser.msie&&this.blur()}),this.anchors.bind("click.tabs",function(){return!1})},_getIndex:function(a){return typeof a=="string"&&(a=this.anchors.index(this.anchors.filter("[href$='"+a+"']"))),a},destroy:function(){var b=this.options;return this.abort(),this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"),this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"),this.anchors.each(function(){var b=a.data(this,"href.tabs");b&&(this.href=b);var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})}),this.lis.unbind(".tabs").add(this.panels).each(function(){a.data(this,"destroy.tabs")?a(this).remove():a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}),b.cookie&&this._cookie(null,b.cookie),this},add:function(c,d,e){e===b&&(e=this.anchors.length);var f=this,g=this.options,h=a(g.tabTemplate.replace(/#\{href\}/g,c).replace(/#\{label\}/g,d)),i=c.indexOf("#")?this._tabId(a("a",h)[0]):c.replace("#","");h.addClass("ui-state-default ui-corner-top").data("destroy.tabs",!0);var j=f.element.find("#"+i);return j.length||(j=a(g.panelTemplate).attr("id",i).data("destroy.tabs",!0)),j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"),e>=this.lis.length?(h.appendTo(this.list),j.appendTo(this.list[0].parentNode)):(h.insertBefore(this.lis[e]),j.insertBefore(this.panels[e])),g.disabled=a.map(g.disabled,function(a,b){return a>=e?++a:a}),this._tabify(),this.anchors.length==1&&(g.selected=0,h.addClass("ui-tabs-selected ui-state-active"),j.removeClass("ui-tabs-hide"),this.element.queue("tabs",function(){f._trigger("show",null,f._ui(f.anchors[0],f.panels[0]))}),this.load(0)),this._trigger("add",null,this._ui(this.anchors[e],this.panels[e])),this},remove:function(b){b=this._getIndex(b);var c=this.options,d=this.lis.eq(b).remove(),e=this.panels.eq(b).remove();return d.hasClass("ui-tabs-selected")&&this.anchors.length>1&&this.select(b+(b+1<this.anchors.length?1:-1)),c.disabled=a.map(a.grep(c.disabled,function(a,c){return a!=b}),function(a,c){return a>=b?--a:a}),this._tabify(),this._trigger("remove",null,this._ui(d.find("a")[0],e[0])),this},enable:function(b){b=this._getIndex(b);var c=this.options;if(a.inArray(b,c.disabled)==-1)return;return this.lis.eq(b).removeClass("ui-state-disabled"),c.disabled=a.grep(c.disabled,function(a,c){return a!=b}),this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b])),this},disable:function(a){a=this._getIndex(a);var b=this,c=this.options;return a!=c.selected&&(this.lis.eq(a).addClass("ui-state-disabled"),c.disabled.push(a),c.disabled.sort(),this._trigger("disable",null,this._ui(this.anchors[a],this.panels[a]))),this},select:function(a){a=this._getIndex(a);if(a==-1)if(this.options.collapsible&&this.options.selected!=-1)a=this.options.selected;else return this;return this.anchors.eq(a).trigger(this.options.event+".tabs"),this},load:function(b){b=this._getIndex(b);var c=this,d=this.options,e=this.anchors.eq(b)[0],f=a.data(e,"load.tabs");this.abort();if(!f||this.element.queue("tabs").length!==0&&a.data(e,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(b).addClass("ui-state-processing");if(d.spinner){var g=a("span",e);g.data("label.tabs",g.html()).html(d.spinner)}return this.xhr=a.ajax(a.extend({},d.ajaxOptions,{url:f,success:function(f,g){c.element.find(c._sanitizeSelector(e.hash)).html(f),c._cleanup(),d.cache&&a.data(e,"cache.tabs",!0),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.success(f,g)}catch(h){}},error:function(a,f,g){c._cleanup(),c._trigger("load",null,c._ui(c.anchors[b],c.panels[b]));try{d.ajaxOptions.error(a,f,b,e)}catch(g){}}})),c.element.dequeue("tabs"),this},abort:function(){return this.element.queue([]),this.panels.stop(!1,!0),this.element.queue("tabs",this.element.queue("tabs").splice(-2,2)),this.xhr&&(this.xhr.abort(),delete this.xhr),this._cleanup(),this},url:function(a,b){return this.anchors.eq(a).removeData("cache.tabs").data("load.tabs",b),this},length:function(){return this.anchors.length}}),a.extend(a.ui.tabs,{version:"1.8.23"}),a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){var c=this,d=this.options,e=c._rotate||(c._rotate=function(b){clearTimeout(c.rotation),c.rotation=setTimeout(function(){var a=d.selected;c.select(++a<c.anchors.length?a:0)},a),b&&b.stopPropagation()}),f=c._unrotate||(c._unrotate=b?function(a){e()}:function(a){a.clientX&&c.rotate(null)});return a?(this.element.bind("tabsshow",e),this.anchors.bind(d.event+".tabs",f),e()):(clearTimeout(c.rotation),this.element.unbind("tabsshow",e),this.anchors.unbind(d.event+".tabs",f),delete this._rotate,delete this._unrotate),this}})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.datepicker.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(a){var b="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return a.bind("mouseout",function(a){var c=$(a.target).closest(b);if(!c.length)return;c.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(c){var d=$(c.target).closest(b);if($.datepicker._isDisabledDatepicker(instActive.inline?a.parent()[0]:instActive.input[0])||!d.length)return;d.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),d.addClass("ui-state-hover"),d.hasClass("ui-datepicker-prev")&&d.addClass("ui-datepicker-prev-hover"),d.hasClass("ui-datepicker-next")&&d.addClass("ui-datepicker-next-hover")})}function extendRemove(a,b){$.extend(a,b);for(var c in b)if(b[c]==null||b[c]==undefined)a[c]=b[c];return a}function isArray(a){return a&&($.browser.safari&&typeof a=="object"&&a.length||a.constructor&&a.constructor.toString().match(/\Array\(\)/))}$.extend($.ui,{datepicker:{version:"1.8.23"}});var PROP_NAME="datepicker",dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline=nodeName=="div"||nodeName=="span";target.id||(this.uuid+=1,target.id="dp"+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),nodeName=="input"?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:c,input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:b?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]);if(c.hasClass(this.markerClassName))return;this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),this._autoSize(b),$.data(a,PROP_NAME,b),b.settings.disabled&&this._disableDatepicker(a)},_attachments:function(a,b){var c=this._get(b,"appendText"),d=this._get(b,"isRTL");b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+"</span>"),a[d?"before":"after"](b.append)),a.unbind("focus",this._showDatepicker),b.trigger&&b.trigger.remove();var e=this._get(b,"showOn");(e=="focus"||e=="both")&&a.focus(this._showDatepicker);if(e=="button"||e=="both"){var f=this._get(b,"buttonText"),g=this._get(b,"buttonImage");b.trigger=$(this._get(b,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:g,alt:f,title:f}):$('<button type="button"></button>').addClass(this._triggerClass).html(g==""?f:$("<img/>").attr({src:g,alt:f,title:f}))),a[d?"before":"after"](b.trigger),b.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==a[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=a[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(a[0])):$.datepicker._showDatepicker(a[0]),!1})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var d=function(a){var b=0,c=0;for(var d=0;d<a.length;d++)a[d].length>b&&(b=a[d].length,c=d);return c};b.setMonth(d(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort"))),b.setDate(d(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=$(a);if(c.hasClass(this.markerClassName))return;c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(a),b.dpDiv.css("display","block")},_dialogDatepicker:function(a,b,c,d,e){var f=this._dialogInst;if(!f){this.uuid+=1;var g="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+g+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$("body").append(this._dialogInput),f=this._dialogInst=this._newInst(this._dialogInput,!1),f.settings={},$.data(this._dialogInput[0],PROP_NAME,f)}extendRemove(f.settings,d||{}),b=b&&b.constructor==Date?this._formatDate(f,b):b,this._dialogInput.val(b),this._pos=e?e.length?e:[e.pageX,e.pageY]:null;if(!this._pos){var h=document.documentElement.clientWidth,i=document.documentElement.clientHeight,j=document.documentElement.scrollLeft||document.body.scrollLeft,k=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[h/2-100+j,i/2-150+k]}return this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),f.settings.onSelect=c,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,f),this},_destroyDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),d=="input"?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(d=="div"||d=="span")&&b.removeClass(this.markerClassName).empty()},_enableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();if(d=="input")a.disabled=!1,c.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineClass);e.children().removeClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b})},_disableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(!b.hasClass(this.markerClassName))return;var d=a.nodeName.toLowerCase();if(d=="input")a.disabled=!0,c.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(d=="div"||d=="span"){var e=b.children("."+this._inlineClass);e.children().addClass("ui-state-disabled"),e.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=a},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(a,b,c){var d=this._getInst(a);if(arguments.length==2&&typeof b=="string")return b=="defaults"?$.extend({},$.datepicker._defaults):d?b=="all"?$.extend({},d.settings):this._get(d,b):null;var e=b||{};typeof b=="string"&&(e={},e[b]=c);if(d){this._curInst==d&&this._hideDatepicker();var f=this._getDateDatepicker(a,!0),g=this._getMinMaxDate(d,"min"),h=this._getMinMaxDate(d,"max");extendRemove(d.settings,e),g!==null&&e.dateFormat!==undefined&&e.minDate===undefined&&(d.settings.minDate=this._formatDate(d,g)),h!==null&&e.dateFormat!==undefined&&e.maxDate===undefined&&(d.settings.maxDate=this._formatDate(d,h)),this._attachments($(a),d),this._autoSize(d),this._setDate(d,f),this._updateAlternate(d),this._updateDatepicker(d)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(a){var b=$.datepicker._getInst(a.target),c=!0,d=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=!0;if($.datepicker._datepickerShowing)switch(a.keyCode){case 9:$.datepicker._hideDatepicker(),c=!1;break;case 13:var e=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",b.dpDiv);e[0]&&$.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,e[0]);var f=$.datepicker._get(b,"onSelect");if(f){var g=$.datepicker._formatDate(b);f.apply(b.input?b.input[0]:null,[g,b])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(a.target,a.ctrlKey?-$.datepicker._get(b,"stepBigMonths"):-$.datepicker._get(b,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(a.target,a.ctrlKey?+$.datepicker._get(b,"stepBigMonths"):+$.datepicker._get(b,"stepMonths"),"M");break;case 35:(a.ctrlKey||a.metaKey)&&$.datepicker._clearDate(a.target),c=a.ctrlKey||a.metaKey;break;case 36:(a.ctrlKey||a.metaKey)&&$.datepicker._gotoToday(a.target),c=a.ctrlKey||a.metaKey;break;case 37:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,d?1:-1,"D"),c=a.ctrlKey||a.metaKey,a.originalEvent.altKey&&$.datepicker._adjustDate(a.target,a.ctrlKey?-$.datepicker._get(b,"stepBigMonths"):-$.datepicker._get(b,"stepMonths"),"M");break;case 38:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,-7,"D"),c=a.ctrlKey||a.metaKey;break;case 39:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,d?-1:1,"D"),c=a.ctrlKey||a.metaKey,a.originalEvent.altKey&&$.datepicker._adjustDate(a.target,a.ctrlKey?+$.datepicker._get(b,"stepBigMonths"):+$.datepicker._get(b,"stepMonths"),"M");break;case 40:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,7,"D"),c=a.ctrlKey||a.metaKey;break;default:c=!1}else a.keyCode==36&&a.ctrlKey?$.datepicker._showDatepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_doKeyPress:function(a){var b=$.datepicker._getInst(a.target);if($.datepicker._get(b,"constrainInput")){var c=$.datepicker._possibleChars($.datepicker._get(b,"dateFormat")),d=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||d<" "||!c||c.indexOf(d)>-1}},_doKeyUp:function(a){var b=$.datepicker._getInst(a.target);if(b.input.val()!=b.lastVal)try{var c=$.datepicker.parseDate($.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,$.datepicker._getFormatConfig(b));c&&($.datepicker._setDateFromField(b),$.datepicker._updateAlternate(b),$.datepicker._updateDatepicker(b))}catch(d){$.datepicker.log(d)}return!0},_showDatepicker:function(a){a=a.target||a,a.nodeName.toLowerCase()!="input"&&(a=$("input",a.parentNode)[0]);if($.datepicker._isDisabledDatepicker(a)||$.datepicker._lastInput==a)return;var b=$.datepicker._getInst(a);$.datepicker._curInst&&$.datepicker._curInst!=b&&($.datepicker._curInst.dpDiv.stop(!0,!0),b&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var c=$.datepicker._get(b,"beforeShow"),d=c?c.apply(a,[a,b]):{};if(d===!1)return;extendRemove(b.settings,d),b.lastVal=null,$.datepicker._lastInput=a,$.datepicker._setDateFromField(b),$.datepicker._inDialog&&(a.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(a),$.datepicker._pos[1]+=a.offsetHeight);var e=!1;$(a).parents().each(function(){return e|=$(this).css("position")=="fixed",!e}),e&&$.browser.opera&&($.datepicker._pos[0]-=document.documentElement.scrollLeft,$.datepicker._pos[1]-=document.documentElement.scrollTop);var f={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null,b.dpDiv.empty(),b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(b),f=$.datepicker._checkOffset(b,f,e),b.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":e?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"});if(!b.inline){var g=$.datepicker._get(b,"showAnim"),h=$.datepicker._get(b,"duration"),i=function(){var a=b.dpDiv.find("iframe.ui-datepicker-cover");if(!!a.length){var c=$.datepicker._getBorders(b.dpDiv);a.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex($(a).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects[g]?b.dpDiv.show(g,$.datepicker._get(b,"showOptions"),h,i):b.dpDiv[g||"show"](g?h:null,i),(!g||!h)&&i(),b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus(),$.datepicker._curInst=b}},_updateDatepicker:function(a){var b=this;b.maxRows=4;var c=$.datepicker._getBorders(a.dpDiv);instActive=a,a.dpDiv.empty().append(this._generateHTML(a)),this._attachHandlers(a);var d=a.dpDiv.find("iframe.ui-datepicker-cover");!d.length||d.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}),a.dpDiv.find("."+this._dayOverClass+" a").mouseover();var e=this._getNumberOfMonths(a),f=e[1],g=17;a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),f>1&&a.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",g*f+"em"),a.dpDiv[(e[0]!=1||e[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi"),a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),a==$.datepicker._curInst&&$.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var h=a.yearshtml;setTimeout(function(){h===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml),h=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var d=a.dpDiv.outerWidth(),e=a.dpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+(c?0:$(document).scrollLeft()),i=document.documentElement.clientHeight+(c?0:$(document).scrollTop());return b.left-=this._get(a,"isRTL")?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){var b=this._getInst(a),c=this._get(b,"isRTL");while(a&&(a.type=="hidden"||a.nodeType!=1||$.expr.filters.hidden(a)))a=a[c?"previousSibling":"nextSibling"];var d=$(a).offset();return[d.left,d.top]},_hideDatepicker:function(a){var b=this._curInst;if(!b||a&&b!=$.data(a,PROP_NAME))return;if(this._datepickerShowing){var c=this._get(b,"showAnim"),d=this._get(b,"duration"),e=function(){$.datepicker._tidyDialog(b)};$.effects&&$.effects[c]?b.dpDiv.hide(c,$.datepicker._get(b,"showOptions"),d,e):b.dpDiv[c=="slideDown"?"slideUp":c=="fadeIn"?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1;var f=this._get(b,"onClose");f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI&&($.unblockUI(),$("body").append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(!$.datepicker._curInst)return;var b=$(a.target),c=$.datepicker._getInst(b[0]);(b[0].id!=$.datepicker._mainDivId&&b.parents("#"+$.datepicker._mainDivId).length==0&&!b.hasClass($.datepicker.markerClassName)&&!b.closest("."+$.datepicker._triggerClass).length&&$.datepicker._datepickerShowing&&(!$.datepicker._inDialog||!$.blockUI)||b.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=c)&&$.datepicker._hideDatepicker()},_adjustDate:function(a,b,c){var d=$(a),e=this._getInst(d[0]);if(this._isDisabledDatepicker(d[0]))return;this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c),this._updateDatepicker(e)},_gotoToday:function(a){var b=$(a),c=this._getInst(b[0]);if(this._get(c,"gotoCurrent")&&c.currentDay)c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear;else{var d=new Date;c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth(),c.drawYear=c.selectedYear=d.getFullYear()}this._notifyChange(c),this._adjustDate(b)},_selectMonthYear:function(a,b,c){var d=$(a),e=this._getInst(d[0]);e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10),this._notifyChange(e),this._adjustDate(d)},_selectDay:function(a,b,c,d){var e=$(a);if($(d).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0]))return;var f=this._getInst(e[0]);f.selectedDay=f.currentDay=$("a",d).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=c,this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))},_clearDate:function(a){var b=$(a),c=this._getInst(b[0]);this._selectDate(b,"")},_selectDate:function(a,b){var c=$(a),d=this._getInst(c[0]);b=b!=null?b:this._formatDate(d),d.input&&d.input.val(b),this._updateAlternate(d);var e=this._get(d,"onSelect");e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger("change"),d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],typeof d.input[0]!="object"&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),d=this._getDate(a),e=this.formatDate(c,d,this._getFormatConfig(a));$(b).each(function(){$(this).val(e)})}},noWeekends:function(a){var b=a.getDay();return[b>0&&b<6,""]},iso8601Week:function(a){var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var d=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;d=typeof d!="string"?d:(new Date).getFullYear()%100+parseInt(d,10);var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=-1,j=-1,k=-1,l=-1,m=!1,n=function(b){var c=s+1<a.length&&a.charAt(s+1)==b;return c&&s++,c},o=function(a){var c=n(a),d=a=="@"?14:a=="!"?20:a=="y"&&c?4:a=="o"?3:2,e=new RegExp("^\\d{1,"+d+"}"),f=b.substring(r).match(e);if(!f)throw"Missing number at position "+r;return r+=f[0].length,parseInt(f[0],10)},p=function(a,c,d){var e=$.map(n(a)?d:c,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)}),f=-1;$.each(e,function(a,c){var d=c[1];if(b.substr(r,d.length).toLowerCase()==d.toLowerCase())return f=c[0],r+=d.length,!1});if(f!=-1)return f+1;throw"Unknown name at position "+r},q=function(){if(b.charAt(r)!=a.charAt(s))throw"Unexpected literal at position "+r;r++},r=0;for(var s=0;s<a.length;s++)if(m)a.charAt(s)=="'"&&!n("'")?m=!1:q();else switch(a.charAt(s)){case"d":k=o("d");break;case"D":p("D",e,f);break;case"o":l=o("o");break;case"m":j=o("m");break;case"M":j=p("M",g,h);break;case"y":i=o("y");break;case"@":var t=new Date(o("@"));i=t.getFullYear(),j=t.getMonth()+1,k=t.getDate();break;case"!":var t=new Date((o("!")-this._ticksTo1970)/1e4);i=t.getFullYear(),j=t.getMonth()+1,k=t.getDate();break;case"'":n("'")?q():m=!0;break;default:q()}if(r<b.length)throw"Extra/unparsed characters found in date: "+b.substring(r);i==-1?i=(new Date).getFullYear():i<100&&(i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(i<=d?0:-100));if(l>-1){j=1,k=l;do{var u=this._getDaysInMonth(i,j-1);if(k<=u)break;j++,k-=u}while(!0)}var t=this._daylightSavingAdjust(new Date(i,j-1,k));if(t.getFullYear()!=i||t.getMonth()+1!=j||t.getDate()!=k)throw"Invalid date";return t},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,e=(c?c.dayNames:null)||this._defaults.dayNames,f=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,h=function(b){var c=m+1<a.length&&a.charAt(m+1)==b;return c&&m++,c},i=function(a,b,c){var d=""+b;if(h(a))while(d.length<c)d="0"+d;return d},j=function(a,b,c,d){return h(a)?d[b]:c[b]},k="",l=!1;if(b)for(var m=0;m<a.length;m++)if(l)a.charAt(m)=="'"&&!h("'")?l=!1:k+=a.charAt(m);else switch(a.charAt(m)){case"d":k+=i("d",b.getDate(),2);break;case"D":k+=j("D",b.getDay(),d,e);break;case"o":k+=i("o",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).getTime()-(new Date(b.getFullYear(),0,0)).getTime())/864e5),3);break;case"m":k+=i("m",b.getMonth()+1,2);break;case"M":k+=j("M",b.getMonth(),f,g);break;case"y":k+=h("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":k+=b.getTime();break;case"!":k+=b.getTime()*1e4+this._ticksTo1970;break;case"'":h("'")?k+="'":l=!0;break;default:k+=a.charAt(m)}return k},_possibleChars:function(a){var b="",c=!1,d=function(b){var c=e+1<a.length&&a.charAt(e+1)==b;return c&&e++,c};for(var e=0;e<a.length;e++)if(c)a.charAt(e)=="'"&&!d("'")?c=!1:b+=a.charAt(e);else switch(a.charAt(e)){case"d":case"m":case"y":case"@":b+="0123456789";break;case"D":case"M":return null;case"'":d("'")?b+="'":c=!0;break;default:b+=a.charAt(e)}return b},_get:function(a,b){return a.settings[b]!==undefined?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()==a.lastVal)return;var c=this._get(a,"dateFormat"),d=a.lastVal=a.input?a.input.val():null,e,f;e=f=this._getDefaultDate(a);var g=this._getFormatConfig(a);try{e=this.parseDate(c,d,g)||f}catch(h){this.log(h),d=b?"":d}a.selectedDay=e.getDate(),a.drawMonth=a.selectedMonth=e.getMonth(),a.drawYear=a.selectedYear=e.getFullYear(),a.currentDay=d?e.getDate():0,a.currentMonth=d?e.getMonth():0,a.currentYear=d?e.getFullYear():0,this._adjustInstDate(a)},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var d=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},e=function(b){try{return $.datepicker.parseDate($.datepicker._get(a,"dateFormat"),b,$.datepicker._getFormatConfig(a))}catch(c){}var d=(b.toLowerCase().match(/^c/)?$.datepicker._getDate(a):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(b);while(i){switch(i[2]||"d"){case"d":case"D":g+=parseInt(i[1],10);break;case"w":case"W":g+=parseInt(i[1],10)*7;break;case"m":case"M":f+=parseInt(i[1],10),g=Math.min(g,$.datepicker._getDaysInMonth(e,f));break;case"y":case"Y":e+=parseInt(i[1],10),g=Math.min(g,$.datepicker._getDaysInMonth(e,f))}i=h.exec(b)}return new Date(e,f,g)},f=b==null||b===""?c:typeof b=="string"?e(b):typeof b=="number"?isNaN(b)?c:d(b):new Date(b.getTime());return f=f&&f.toString()=="Invalid Date"?c:f,f&&(f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0)),this._daylightSavingAdjust(f)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),(e!=a.selectedMonth||f!=a.selectedYear)&&!c&&this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(a){var b=this._get(a,"stepMonths"),c="#"+a.id.replace(/\\\\/g,"\\");a.dpDiv.find("[data-handler]").map(function(){var a={prev:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(c,-b,"M")},next:function(){window["DP_jQuery_"+dpuuid].datepicker._adjustDate(c,+b,"M")},hide:function(){window["DP_jQuery_"+dpuuid].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+dpuuid].datepicker._gotoToday(c)},selectDay:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectDay(c,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(c,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+dpuuid].datepicker._selectMonthYear(c,this,"Y"),!1}};$(this).bind(this.getAttribute("data-event"),a[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),d=this._get(a,"showButtonPanel"),e=this._get(a,"hideIfNoPrevNext"),f=this._get(a,"navigationAsDateFormat"),g=this._getNumberOfMonths(a),h=this._get(a,"showCurrentAtPos"),i=this._get(a,"stepMonths"),j=g[0]!=1||g[1]!=1,k=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),l=this._getMinMaxDate(a,"min"),m=this._getMinMaxDate(a,"max"),n=a.drawMonth-h,o=a.drawYear;n<0&&(n+=12,o--);if(m){var p=this._daylightSavingAdjust(new Date(m.getFullYear(),m.getMonth()-g[0]*g[1]+1,m.getDate()));p=l&&p<l?l:p;while(this._daylightSavingAdjust(new Date(o,n,1))>p)n--,n<0&&(n=11,o--)}a.drawMonth=n,a.drawYear=o;var q=this._get(a,"prevText");q=f?this.formatDate(q,this._daylightSavingAdjust(new Date(o,n-i,1)),this._getFormatConfig(a)):q;var r=this._canAdjustMonth(a,-1,o,n)?'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click" title="'+q+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+q+"</span></a>":e?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+q+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+q+"</span></a>",s=this._get(a,"nextText");s=f?this.formatDate(s,this._daylightSavingAdjust(new Date(o,n+i,1)),this._getFormatConfig(a)):s;var t=this._canAdjustMonth(a,1,o,n)?'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":e?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>",u=this._get(a,"currentText"),v=this._get(a,"gotoCurrent")&&a.currentDay?k:b;u=f?this.formatDate(u,v,this._getFormatConfig(a)):u;var w=a.inline?"":'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(a,"closeText")+"</button>",x=d?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?w:"")+(this._isInRange(a,v)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click">'+u+"</button>":"")+(c?"":w)+"</div>":"",y=parseInt(this._get(a,"firstDay"),10);y=isNaN(y)?0:y;var z=this._get(a,"showWeek"),A=this._get(a,"dayNames"),B=this._get(a,"dayNamesShort"),C=this._get(a,"dayNamesMin"),D=this._get(a,"monthNames"),E=this._get(a,"monthNamesShort"),F=this._get(a,"beforeShowDay"),G=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths"),I=this._get(a,"calculateWeek")||this.iso8601Week,J=this._getDefaultDate(a),K="";for(var L=0;L<g[0];L++){var M="";this.maxRows=4;for(var N=0;N<g[1];N++){var O=this._daylightSavingAdjust(new Date(o,n,a.selectedDay)),P=" ui-corner-all",Q="";if(j){Q+='<div class="ui-datepicker-group';if(g[1]>1)switch(N){case 0:Q+=" ui-datepicker-group-first",P=" ui-corner-"+(c?"right":"left");break;case g[1]-1:Q+=" ui-datepicker-group-last",P=" ui-corner-"+(c?"left":"right");break;default:Q+=" ui-datepicker-group-middle",P=""}Q+='">'}Q+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+P+'">'+(/all|left/.test(P)&&L==0?c?t:r:"")+(/all|right/.test(P)&&L==0?c?r:t:"")+this._generateMonthYearHeader(a,n,o,l,m,L>0||N>0,D,E)+'</div><table class="ui-datepicker-calendar"><thead>'+"<tr>";var R=z?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(var S=0;S<7;S++){var T=(S+y)%7;R+="<th"+((S+y+6)%7>=5?' class="ui-datepicker-week-end"':"")+">"+'<span title="'+A[T]+'">'+C[T]+"</span></th>"}Q+=R+"</tr></thead><tbody>";var U=this._getDaysInMonth(o,n);o==a.selectedYear&&n==a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,U));var V=(this._getFirstDayOfMonth(o,n)-y+7)%7,W=Math.ceil((V+U)/7),X=j?this.maxRows>W?this.maxRows:W:W;this.maxRows=X;var Y=this._daylightSavingAdjust(new Date(o,n,1-V));for(var Z=0;Z<X;Z++){Q+="<tr>";var _=z?'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(Y)+"</td>":"";for(var S=0;S<7;S++){var ba=F?F.apply(a.input?a.input[0]:null,[Y]):[!0,""],bb=Y.getMonth()!=n,bc=bb&&!H||!ba[0]||l&&Y<l||m&&Y>m;_+='<td class="'+((S+y+6)%7>=5?" ui-datepicker-week-end":"")+(bb?" ui-datepicker-other-month":"")+(Y.getTime()==O.getTime()&&n==a.selectedMonth&&a._keyEvent||J.getTime()==Y.getTime()&&J.getTime()==O.getTime()?" "+this._dayOverClass:"")+(bc?" "+this._unselectableClass+" ui-state-disabled":"")+(bb&&!G?"":" "+ba[1]+(Y.getTime()==k.getTime()?" "+this._currentClass:"")+(Y.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!bb||G)&&ba[2]?' title="'+ba[2]+'"':"")+(bc?"":' data-handler="selectDay" data-event="click" data-month="'+Y.getMonth()+'" data-year="'+Y.getFullYear()+'"')+">"+(bb&&!G?"&#xa0;":bc?'<span class="ui-state-default">'+Y.getDate()+"</span>":'<a class="ui-state-default'+(Y.getTime()==b.getTime()?" ui-state-highlight":"")+(Y.getTime()==k.getTime()?" ui-state-active":"")+(bb?" ui-priority-secondary":"")+'" href="#">'+Y.getDate()+"</a>")+"</td>",Y.setDate(Y.getDate()+1),Y=this._daylightSavingAdjust(Y)}Q+=_+"</tr>"}n++,n>11&&(n=0,o++),Q+="</tbody></table>"+(j?"</div>"+(g[0]>0&&N==g[1]-1?'<div class="ui-datepicker-row-break"></div>':""):""),M+=Q}K+=M}return K+=x+($.browser.msie&&parseInt($.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':""),a._keyEvent=!1,K},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i=this._get(a,"changeMonth"),j=this._get(a,"changeYear"),k=this._get(a,"showMonthAfterYear"),l='<div class="ui-datepicker-title">',m="";if(f||!i)m+='<span class="ui-datepicker-month">'+g[b]+"</span>";else{var n=d&&d.getFullYear()==c,o=e&&e.getFullYear()==c;m+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var p=0;p<12;p++)(!n||p>=d.getMonth())&&(!o||p<=e.getMonth())&&(m+='<option value="'+p+'"'+(p==b?' selected="selected"':"")+">"+h[p]+"</option>");m+="</select>"}k||(l+=m+(f||!i||!j?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(f||!j)l+='<span class="ui-datepicker-year">'+c+"</span>";else{var q=this._get(a,"yearRange").split(":"),r=(new Date).getFullYear(),s=function(a){var b=a.match(/c[+-].*/)?c+parseInt(a.substring(1),10):a.match(/[+-].*/)?r+parseInt(a,10):parseInt(a,10);return isNaN(b)?r:b},t=s(q[0]),u=Math.max(t,s(q[1]||""));t=d?Math.max(t,d.getFullYear()):t,u=e?Math.min(u,e.getFullYear()):u,a.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';for(;t<=u;t++)a.yearshtml+='<option value="'+t+'"'+(t==c?' selected="selected"':"")+">"+t+"</option>";a.yearshtml+="</select>",l+=a.yearshtml,a.yearshtml=null}}return l+=this._get(a,"yearSuffix"),k&&(l+=(f||!i||!j?"&#xa0;":"")+m),l+="</div>",l},_adjustInstDate:function(a,b,c){var d=a.drawYear+(c=="Y"?b:0),e=a.drawMonth+(c=="M"?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+(c=="D"?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),(c=="M"||c=="Y")&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&b<c?c:b;return e=d&&e>d?d:e,e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(b<0?b:e[0]*e[1]),1));return b<0&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!d||b.getTime()<=d.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),$.fn.datepicker=function(a){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv),$.datepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return typeof a!="string"||a!="isDisabled"&&a!="getDate"&&a!="widget"?a=="option"&&arguments.length==2&&typeof arguments[1]=="string"?$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this[0]].concat(b)):this.each(function(){typeof a=="string"?$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this].concat(b)):$.datepicker._attachDatepicker(this,a)}):$.datepicker["_"+a+"Datepicker"].apply($.datepicker,[this[0]].concat(b))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.8.23",window["DP_jQuery_"+dpuuid]=$})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.progressbar.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()}),this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this.oldValue=this._value(),this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove(),a.Widget.prototype.destroy.apply(this,arguments)},value:function(a){return a===b?this._value():(this._setOption("value",a),this)},_setOption:function(b,c){b==="value"&&(this.options.value=c,this._refreshValue(),this._value()===this.options.max&&this._trigger("complete")),a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var a=this.options.value;return typeof a!="number"&&(a=0),Math.min(this.options.max,Math.max(this.min,a))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var a=this.value(),b=this._percentage();this.oldValue!==a&&(this.oldValue=a,this._trigger("change")),this.valueDiv.toggle(a>this.min).toggleClass("ui-corner-right",a===this.options.max).width(b.toFixed(0)+"%"),this.element.attr("aria-valuenow",a)}}),a.extend(a.ui.progressbar,{version:"1.8.23"})})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.core.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array&&b.length==3?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:(c=/rgba\(0, 0, 0, 0\)/.exec(b))?e.transparent:e[a.trim(b).toLowerCase()]}function d(b,d){var e;do{e=(a.curCSS||a.css)(b,d);if(e!=""&&e!="transparent"||a.nodeName(b,"body"))break;d="backgroundColor"}while(b=b.parentNode);return c(e)}function h(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]]){var e=a.length;while(e--)c=a[e],typeof a[c]=="string"&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c])}else for(c in a)typeof a[c]=="string"&&(b[c]=a[c]);return b}function i(b){var c,d;for(c in b)d=b[c],(d==null||a.isFunction(d)||c in g||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function j(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function k(b,c,d,e){typeof b=="object"&&(e=c,d=null,c=b,b=c.effect),a.isFunction(c)&&(e=c,d=null,c={});if(typeof c=="number"||a.fx.speeds[c])e=d,d=c,c={};return a.isFunction(d)&&(e=d,d=null),c=c||{},d=d||c.duration,d=a.fx.off?0:typeof d=="number"?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,e=e||c.complete,[b,c,d,e]}function l(b){return!b||typeof b=="number"||a.fx.speeds[b]?!0:typeof b=="string"&&!a.effects[b]?!0:!1}a.effects={},a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(b,e){a.fx.step[e]=function(a){a.colorInit||(a.start=d(a.elem,e),a.end=c(a.end),a.colorInit=!0),a.elem.style[e]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},f=["add","remove","toggle"],g={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,d,e){return a.isFunction(d)&&(e=d,d=null),this.queue(function(){var g=a(this),k=g.attr("style")||" ",l=i(h.call(this)),m,n=g.attr("class")||"";a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),m=i(h.call(this)),g.attr("class",n),g.animate(j(l,m),{queue:!1,duration:c,easing:d,complete:function(){a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),typeof g.attr("style")=="object"?(g.attr("style").cssText="",g.attr("style").cssText=k):g.attr("style",k),e&&e.apply(this,arguments),a.dequeue(this)}})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return typeof d=="boolean"||d===b?e?a.effects.animateClass.apply(this,[d?{add:c}:{remove:c},e,f,g]):this._toggleClass(c,d):a.effects.animateClass.apply(this,[{toggle:c},d,e,f])},switchClass:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])}}),a.extend(a.effects,{version:"1.8.23",save:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.data("ec.storage."+b[c],a[0].style[b[c]])},restore:function(a,b){for(var c=0;c<b.length;c++)b[c]!==null&&a.css(b[c],a.data("ec.storage."+b[c]))},setMode:function(a,b){return b=="toggle"&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;try{e.id}catch(f){e=document.body}return b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;return b.parent().is(".ui-effects-wrapper")?(c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus(),c):b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];return a.fx.off||!i?h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)}):i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="show",this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="hide",this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}});var m={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,b){m[b]=function(b){return Math.pow(b,a+2)}}),a.extend(m,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return a===0||a===1?a:-Math.pow(2,8*(a-1))*Math.sin(((a-1)*80-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){var b,c=4;while(a<((b=Math.pow(2,--c))-1)/11);return 1/Math.pow(4,3-c)-7.5625*Math.pow((b*3-2)/22-a,2)}}),a.each(m,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(a*2)/2:c(a*-2+2)/-2+1}})}(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.blind.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.blind=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.direction||"vertical";a.effects.save(c,d),c.show();var g=a.effects.createWrapper(c).css({overflow:"hidden"}),h=f=="vertical"?"height":"width",i=f=="vertical"?g.height():g.width();e=="show"&&g.css(h,0);var j={};j[h]=e=="show"?i:0,g.animate(j,b.duration,b.options.easing,function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.bounce.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.bounce=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"effect"),f=b.options.direction||"up",g=b.options.distance||20,h=b.options.times||5,i=b.duration||250;/show|hide/.test(e)&&d.push("opacity"),a.effects.save(c,d),c.show(),a.effects.createWrapper(c);var j=f=="up"||f=="down"?"top":"left",k=f=="up"||f=="left"?"pos":"neg",g=b.options.distance||(j=="top"?c.outerHeight(!0)/3:c.outerWidth(!0)/3);e=="show"&&c.css("opacity",0).css(j,k=="pos"?-g:g),e=="hide"&&(g=g/(h*2)),e!="hide"&&h--;if(e=="show"){var l={opacity:1};l[j]=(k=="pos"?"+=":"-=")+g,c.animate(l,i/2,b.options.easing),g=g/2,h--}for(var m=0;m<h;m++){var n={},p={};n[j]=(k=="pos"?"-=":"+=")+g,p[j]=(k=="pos"?"+=":"-=")+g,c.animate(n,i/2,b.options.easing).animate(p,i/2,b.options.easing),g=e=="hide"?g*2:g/2}if(e=="hide"){var l={opacity:0};l[j]=(k=="pos"?"-=":"+=")+g,c.animate(l,i/2,b.options.easing,function(){c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments)})}else{var n={},p={};n[j]=(k=="pos"?"-=":"+=")+g,p[j]=(k=="pos"?"+=":"-=")+g,c.animate(n,i/2,b.options.easing).animate(p,i/2,b.options.easing,function(){a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments)})}c.queue("fx",function(){c.dequeue()}),c.dequeue()})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.clip.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.clip=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right","height","width"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.direction||"vertical";a.effects.save(c,d),c.show();var g=a.effects.createWrapper(c).css({overflow:"hidden"}),h=c[0].tagName=="IMG"?g:c,i={size:f=="vertical"?"height":"width",position:f=="vertical"?"top":"left"},j=f=="vertical"?h.height():h.width();e=="show"&&(h.css(i.size,0),h.css(i.position,j/2));var k={};k[i.size]=e=="show"?j:0,k[i.position]=e=="show"?0:j/2,h.animate(k,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.drop.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.drop=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right","opacity"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.direction||"left";a.effects.save(c,d),c.show(),a.effects.createWrapper(c);var g=f=="up"||f=="down"?"top":"left",h=f=="up"||f=="left"?"pos":"neg",i=b.options.distance||(g=="top"?c.outerHeight(!0)/2:c.outerWidth(!0)/2);e=="show"&&c.css("opacity",0).css(g,h=="pos"?-i:i);var j={opacity:e=="show"?1:0};j[g]=(e=="show"?h=="pos"?"+=":"-=":h=="pos"?"-=":"+=")+i,c.animate(j,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.explode.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.explode=function(b){return this.queue(function(){var c=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,d=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var e=a(this).show().css("visibility","hidden"),f=e.offset();f.top-=parseInt(e.css("marginTop"),10)||0,f.left-=parseInt(e.css("marginLeft"),10)||0;var g=e.outerWidth(!0),h=e.outerHeight(!0);for(var i=0;i<c;i++)for(var j=0;j<d;j++)e.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(g/d),top:-i*(h/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/d,height:h/c,left:f.left+j*(g/d)+(b.options.mode=="show"?(j-Math.floor(d/2))*(g/d):0),top:f.top+i*(h/c)+(b.options.mode=="show"?(i-Math.floor(c/2))*(h/c):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+j*(g/d)+(b.options.mode=="show"?0:(j-Math.floor(d/2))*(g/d)),top:f.top+i*(h/c)+(b.options.mode=="show"?0:(i-Math.floor(c/2))*(h/c)),opacity:b.options.mode=="show"?1:0},b.duration||500);setTimeout(function(){b.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide(),b.callback&&b.callback.apply(e[0]),e.dequeue(),a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.fade.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.fade=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide");c.animate({opacity:d},{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.fold.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.fold=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"hide"),f=b.options.size||15,g=!!b.options.horizFirst,h=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(c,d),c.show();var i=a.effects.createWrapper(c).css({overflow:"hidden"}),j=e=="show"!=g,k=j?["width","height"]:["height","width"],l=j?[i.width(),i.height()]:[i.height(),i.width()],m=/([0-9]+)%/.exec(f);m&&(f=parseInt(m[1],10)/100*l[e=="hide"?0:1]),e=="show"&&i.css(g?{height:0,width:f}:{height:f,width:0});var n={},p={};n[k[0]]=e=="show"?l[0]:f,p[k[1]]=e=="show"?l[1]:0,i.animate(n,h,b.options.easing).animate(p,h,b.options.easing,function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.highlight.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),d=["backgroundImage","backgroundColor","opacity"],e=a.effects.setMode(c,b.options.mode||"show"),f={backgroundColor:c.css("backgroundColor")};e=="hide"&&(f.opacity=0),a.effects.save(c,d),c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(f,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),e=="show"&&!a.support.opacity&&this.style.removeAttribute("filter"),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.pulsate.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"show"),e=(b.options.times||5)*2-1,f=b.duration?b.duration/2:a.fx.speeds._default/2,g=c.is(":visible"),h=0;g||(c.css("opacity",0).show(),h=1),(d=="hide"&&g||d=="show"&&!g)&&e--;for(var i=0;i<e;i++)c.animate({opacity:h},f,b.options.easing),h=(h+1)%2;c.animate({opacity:h},f,b.options.easing,function(){h==0&&c.hide(),b.callback&&b.callback.apply(this,arguments)}),c.queue("fx",function(){c.dequeue()}).dequeue()})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.scale.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.puff=function(b){return this.queue(function(){var c=a(this),d=a.effects.setMode(c,b.options.mode||"hide"),e=parseInt(b.options.percent,10)||150,f=e/100,g={height:c.height(),width:c.width()};a.extend(b.options,{fade:!0,mode:d,percent:d=="hide"?e:100,from:d=="hide"?g:{height:g.height*f,width:g.width*f}}),c.effect("scale",b.options,b.duration,b.callback),c.dequeue()})},a.effects.scale=function(b){return this.queue(function(){var c=a(this),d=a.extend(!0,{},b.options),e=a.effects.setMode(c,b.options.mode||"effect"),f=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:e=="hide"?0:100),g=b.options.direction||"both",h=b.options.origin;e!="effect"&&(d.origin=h||["middle","center"],d.restore=!0);var i={height:c.height(),width:c.width()};c.from=b.options.from||(e=="show"?{height:0,width:0}:i);var j={y:g!="horizontal"?f/100:1,x:g!="vertical"?f/100:1};c.to={height:i.height*j.y,width:i.width*j.x},b.options.fade&&(e=="show"&&(c.from.opacity=0,c.to.opacity=1),e=="hide"&&(c.from.opacity=1,c.to.opacity=0)),d.from=c.from,d.to=c.to,d.mode=e,c.effect("size",d,b.duration,b.callback),c.dequeue()})},a.effects.size=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right","width","height","overflow","opacity"],e=["position","top","bottom","left","right","overflow","opacity"],f=["width","height","overflow"],g=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],j=a.effects.setMode(c,b.options.mode||"effect"),k=b.options.restore||!1,l=b.options.scale||"both",m=b.options.origin,n={height:c.height(),width:c.width()};c.from=b.options.from||n,c.to=b.options.to||n;if(m){var p=a.effects.getBaseline(m,n);c.from.top=(n.height-c.from.height)*p.y,c.from.left=(n.width-c.from.width)*p.x,c.to.top=(n.height-c.to.height)*p.y,c.to.left=(n.width-c.to.width)*p.x}var q={from:{y:c.from.height/n.height,x:c.from.width/n.width},to:{y:c.to.height/n.height,x:c.to.width/n.width}};if(l=="box"||l=="both")q.from.y!=q.to.y&&(d=d.concat(h),c.from=a.effects.setTransition(c,h,q.from.y,c.from),c.to=a.effects.setTransition(c,h,q.to.y,c.to)),q.from.x!=q.to.x&&(d=d.concat(i),c.from=a.effects.setTransition(c,i,q.from.x,c.from),c.to=a.effects.setTransition(c,i,q.to.x,c.to));(l=="content"||l=="both")&&q.from.y!=q.to.y&&(d=d.concat(g),c.from=a.effects.setTransition(c,g,q.from.y,c.from),c.to=a.effects.setTransition(c,g,q.to.y,c.to)),a.effects.save(c,k?d:e),c.show(),a.effects.createWrapper(c),c.css("overflow","hidden").css(c.from);if(l=="content"||l=="both")h=h.concat(["marginTop","marginBottom"]).concat(g),i=i.concat(["marginLeft","marginRight"]),f=d.concat(h).concat(i),c.find("*[width]").each(function(){var c=a(this);k&&a.effects.save(c,f);var d={height:c.height(),width:c.width()};c.from={height:d.height*q.from.y,width:d.width*q.from.x},c.to={height:d.height*q.to.y,width:d.width*q.to.x},q.from.y!=q.to.y&&(c.from=a.effects.setTransition(c,h,q.from.y,c.from),c.to=a.effects.setTransition(c,h,q.to.y,c.to)),q.from.x!=q.to.x&&(c.from=a.effects.setTransition(c,i,q.from.x,c.from),c.to=a.effects.setTransition(c,i,q.to.x,c.to)),c.css(c.from),c.animate(c.to,b.duration,b.options.easing,function(){k&&a.effects.restore(c,f)})});c.animate(c.to,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){c.to.opacity===0&&c.css("opacity",c.from.opacity),j=="hide"&&c.hide(),a.effects.restore(c,k?d:e),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.shake.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.shake=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"effect"),f=b.options.direction||"left",g=b.options.distance||20,h=b.options.times||3,i=b.duration||b.options.duration||140;a.effects.save(c,d),c.show(),a.effects.createWrapper(c);var j=f=="up"||f=="down"?"top":"left",k=f=="up"||f=="left"?"pos":"neg",l={},m={},n={};l[j]=(k=="pos"?"-=":"+=")+g,m[j]=(k=="pos"?"+=":"-=")+g*2,n[j]=(k=="pos"?"-=":"+=")+g*2,c.animate(l,i,b.options.easing);for(var p=1;p<h;p++)c.animate(m,i,b.options.easing).animate(n,i,b.options.easing);c.animate(m,i,b.options.easing).animate(l,i/2,b.options.easing,function(){a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments)}),c.queue("fx",function(){c.dequeue()}),c.dequeue()})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.slide.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.slide=function(b){return this.queue(function(){var c=a(this),d=["position","top","bottom","left","right"],e=a.effects.setMode(c,b.options.mode||"show"),f=b.options.direction||"left";a.effects.save(c,d),c.show(),a.effects.createWrapper(c).css({overflow:"hidden"});var g=f=="up"||f=="down"?"top":"left",h=f=="up"||f=="left"?"pos":"neg",i=b.options.distance||(g=="top"?c.outerHeight(!0):c.outerWidth(!0));e=="show"&&c.css(g,h=="pos"?isNaN(i)?"-"+i:-i:i);var j={};j[g]=(e=="show"?h=="pos"?"+=":"-=":h=="pos"?"-=":"+=")+i,c.animate(j,{queue:!1,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide(),a.effects.restore(c,d),a.effects.removeWrapper(c),b.callback&&b.callback.apply(this,arguments),c.dequeue()}})})}})(jQuery);;/*! jQuery UI - v1.8.23 - 2012-08-15
* https://github.com/jquery/jquery-ui
* Includes: jquery.effects.transfer.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.effects.transfer=function(b){return this.queue(function(){var c=a(this),d=a(b.options.to),e=d.offset(),f={top:e.top,left:e.left,height:d.innerHeight(),width:d.innerWidth()},g=c.offset(),h=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:g.top,left:g.left,height:c.innerHeight(),width:c.innerWidth(),position:"absolute"}).animate(f,b.duration,b.options.easing,function(){h.remove(),b.callback&&b.callback.apply(c[0],arguments),c.dequeue()})})}})(jQuery);;;
var jstz=function(){var b=function(a){a=-a.getTimezoneOffset();return a!==null?a:0},d=function(){return b(new Date(2010,0,1,0,0,0,0))},e=function(){return b(new Date(2010,5,1,0,0,0,0))},c=function(){var a=d(),b=e(),f=d()-e();if(f<0)return a+",1";else if(f>0)return b+",1,s";return a+",0"};return{determine_timezone:function(){var a=c();return new jstz.TimeZone(jstz.olson.timezones[a])},date_is_dst:function(a){var c=a.getMonth()>5?e():d(),a=b(a);return c-a!==0}}}();
jstz.TimeZone=function(){var b=null,d=null,e=null,c=function(a){e=a[0];b=a[1];d=a[2];if(typeof jstz.olson.ambiguity_list[b]!=="undefined")for(var a=jstz.olson.ambiguity_list[b],c=a.length,f=0,g=a[0];f<c;f+=1)if(g=a[f],jstz.date_is_dst(jstz.olson.dst_start_dates[g])){b=g;break}};c.prototype={constructor:jstz.TimeZone,name:function(){return b},dst:function(){return d},offset:function(){return e}};return c}();jstz.olson={};
jstz.olson.timezones=function(){return{"-720,0":["-12:00","Etc/GMT+12",!1],"-660,0":["-11:00","Pacific/Pago_Pago",!1],"-600,1":["-11:00","America/Adak",!0],"-660,1,s":["-11:00","Pacific/Apia",!0],"-600,0":["-10:00","Pacific/Honolulu",!1],"-570,0":["-09:30","Pacific/Marquesas",!1],"-540,0":["-09:00","Pacific/Gambier",!1],"-540,1":["-09:00","America/Anchorage",!0],"-480,1":["-08:00","America/Los_Angeles",!0],"-480,0":["-08:00","Pacific/Pitcairn",!1],"-420,0":["-07:00","America/Phoenix",!1],"-420,1":["-07:00",
"America/Denver",!0],"-360,0":["-06:00","America/Guatemala",!1],"-360,1":["-06:00","America/Chicago",!0],"-360,1,s":["-06:00","Pacific/Easter",!0],"-300,0":["-05:00","America/Bogota",!1],"-300,1":["-05:00","America/New_York",!0],"-270,0":["-04:30","America/Caracas",!1],"-240,1":["-04:00","America/Halifax",!0],"-240,0":["-04:00","America/Santo_Domingo",!1],"-240,1,s":["-04:00","America/Asuncion",!0],"-210,1":["-03:30","America/St_Johns",!0],"-180,1":["-03:00","America/Godthab",!0],"-180,0":["-03:00",
"America/Argentina/Buenos_Aires",!1],"-180,1,s":["-03:00","America/Montevideo",!0],"-120,0":["-02:00","America/Noronha",!1],"-120,1":["-02:00","Etc/GMT+2",!0],"-60,1":["-01:00","Atlantic/Azores",!0],"-60,0":["-01:00","Atlantic/Cape_Verde",!1],"0,0":["00:00","Etc/UTC",!1],"0,1":["00:00","Europe/London",!0],"60,1":["+01:00","Europe/Berlin",!0],"60,0":["+01:00","Africa/Lagos",!1],"60,1,s":["+01:00","Africa/Windhoek",!0],"120,1":["+02:00","Asia/Beirut",!0],"120,0":["+02:00","Africa/Johannesburg",!1],
"180,1":["+03:00","Europe/Moscow",!0],"180,0":["+03:00","Asia/Baghdad",!1],"210,1":["+03:30","Asia/Tehran",!0],"240,0":["+04:00","Asia/Dubai",!1],"240,1":["+04:00","Asia/Yerevan",!0],"270,0":["+04:30","Asia/Kabul",!1],"300,1":["+05:00","Asia/Yekaterinburg",!0],"300,0":["+05:00","Asia/Karachi",!1],"330,0":["+05:30","Asia/Kolkata",!1],"345,0":["+05:45","Asia/Kathmandu",!1],"360,0":["+06:00","Asia/Dhaka",!1],"360,1":["+06:00","Asia/Omsk",!0],"390,0":["+06:30","Asia/Rangoon",!1],"420,1":["+07:00","Asia/Krasnoyarsk",
!0],"420,0":["+07:00","Asia/Jakarta",!1],"480,0":["+08:00","Asia/Shanghai",!1],"480,1":["+08:00","Asia/Irkutsk",!0],"525,0":["+08:45","Australia/Eucla",!0],"525,1,s":["+08:45","Australia/Eucla",!0],"540,1":["+09:00","Asia/Yakutsk",!0],"540,0":["+09:00","Asia/Tokyo",!1],"570,0":["+09:30","Australia/Darwin",!1],"570,1,s":["+09:30","Australia/Adelaide",!0],"600,0":["+10:00","Australia/Brisbane",!1],"600,1":["+10:00","Asia/Vladivostok",!0],"600,1,s":["+10:00","Australia/Sydney",!0],"630,1,s":["+10:30",
"Australia/Lord_Howe",!0],"660,1":["+11:00","Asia/Kamchatka",!0],"660,0":["+11:00","Pacific/Noumea",!1],"690,0":["+11:30","Pacific/Norfolk",!1],"720,1,s":["+12:00","Pacific/Auckland",!0],"720,0":["+12:00","Pacific/Tarawa",!1],"765,1,s":["+12:45","Pacific/Chatham",!0],"780,0":["+13:00","Pacific/Tongatapu",!1],"840,0":["+14:00","Pacific/Kiritimati",!1]}}();
jstz.olson.dst_start_dates=function(){return{"America/Denver":new Date(2011,2,13,3,0,0,0),"America/Mazatlan":new Date(2011,3,3,3,0,0,0),"America/Chicago":new Date(2011,2,13,3,0,0,0),"America/Mexico_City":new Date(2011,3,3,3,0,0,0),"Atlantic/Stanley":new Date(2011,8,4,7,0,0,0),"America/Asuncion":new Date(2011,9,2,3,0,0,0),"America/Santiago":new Date(2011,9,9,3,0,0,0),"America/Campo_Grande":new Date(2011,9,16,5,0,0,0),"America/Montevideo":new Date(2011,9,2,3,0,0,0),"America/Sao_Paulo":new Date(2011,
9,16,5,0,0,0),"America/Los_Angeles":new Date(2011,2,13,8,0,0,0),"America/Santa_Isabel":new Date(2011,3,5,8,0,0,0),"America/Havana":new Date(2011,2,13,2,0,0,0),"America/New_York":new Date(2011,2,13,7,0,0,0),"Asia/Gaza":new Date(2011,2,26,23,0,0,0),"Asia/Beirut":new Date(2011,2,27,1,0,0,0),"Europe/Minsk":new Date(2011,2,27,2,0,0,0),"Europe/Helsinki":new Date(2011,2,27,4,0,0,0),"Europe/Istanbul":new Date(2011,2,28,5,0,0,0),"Asia/Damascus":new Date(2011,3,1,2,0,0,0),"Asia/Jerusalem":new Date(2011,3,1,
6,0,0,0),"Africa/Cairo":new Date(2010,3,30,4,0,0,0),"Asia/Yerevan":new Date(2011,2,27,4,0,0,0),"Asia/Baku":new Date(2011,2,27,8,0,0,0),"Pacific/Auckland":new Date(2011,8,26,7,0,0,0),"Pacific/Fiji":new Date(2010,11,29,23,0,0,0),"America/Halifax":new Date(2011,2,13,6,0,0,0),"America/Goose_Bay":new Date(2011,2,13,2,1,0,0),"America/Miquelon":new Date(2011,2,13,5,0,0,0),"America/Godthab":new Date(2011,2,27,1,0,0,0)}}();
jstz.olson.ambiguity_list={"America/Denver":["America/Denver","America/Mazatlan"],"America/Chicago":["America/Chicago","America/Mexico_City"],"America/Asuncion":["Atlantic/Stanley","America/Asuncion","America/Santiago","America/Campo_Grande"],"America/Montevideo":["America/Montevideo","America/Sao_Paulo"],"Asia/Beirut":"Asia/Gaza,Asia/Beirut,Europe/Minsk,Europe/Helsinki,Europe/Istanbul,Asia/Damascus,Asia/Jerusalem,Africa/Cairo".split(","),"Asia/Yerevan":["Asia/Yerevan","Asia/Baku"],"Pacific/Auckland":["Pacific/Auckland",
"Pacific/Fiji"],"America/Los_Angeles":["America/Los_Angeles","America/Santa_Isabel"],"America/New_York":["America/Havana","America/New_York"],"America/Halifax":["America/Goose_Bay","America/Halifax"],"America/Godthab":["America/Miquelon","America/Godthab"]};;
_coveoJQuery = $.noConflict(true);;
// Script# Browser Compat Layer
//
function __loadCompatLayer(w){var opera=(window.navigator.userAgent.indexOf('Opera')>=0);var firefox=((window.navigator.userAgent.indexOf('Gecko')>=0)&&(window.navigator.userAgent.indexOf('Trident/')==-1)&&(window.navigator.userAgent.indexOf(' Chrome/')==-1));w.__getNonTextNode=function(node){try{while(node&&(node.nodeType!=1)){node=node.parentNode;}}
catch(ex){node=null;}
return node;};w.__getLocation=function(e){var loc={x:0,y:0};while(e){loc.x+=e.offsetLeft;loc.y+=e.offsetTop;e=e.offsetParent;}
return loc;};function addFunction(object,name,callback){if(!object[name]){object[name]=callback;}}
function addGetter(proto,name,callback){if(!proto.__lookupGetter__||(proto.__lookupGetter__(name)===undefined)){proto.__defineGetter__(name,callback);}}
function addSetter(proto,name,callback){if(!proto.__lookupSetter__||(proto.__lookupSetter__(name)===undefined)){proto.__defineSetter__(name,callback);}}
addFunction(w,'navigate',function(url){window.setTimeout('window.location = "'+url+'";',0);});function saveEvent(e){window.event=e;}
var attachEventProxy=function(eventName,eventHandler){var eventName=eventName.slice(2);if((eventName=='mousewheel')&&(opera||firefox)){eventName='DOMMouseScroll';}
this.addEventListener(eventName,saveEvent,true);this.addEventListener(eventName,eventHandler,false);return true;};var detachEventProxy=function(eventName,eventHandler){var eventName=eventName.slice(2);if((eventName=='mousewheel')&&(opera||firefox)){eventName='DOMMouseScroll';}
this.removeEventListener(eventName,saveEvent,true);this.removeEventListener(eventName,eventHandler,false);};addFunction(w,'attachEvent',attachEventProxy);addFunction(w,'detachEvent',detachEventProxy);addFunction(w.HTMLDocument.prototype,'attachEvent',attachEventProxy);addFunction(w.HTMLDocument.prototype,'detachEvent',detachEventProxy);addFunction(w.HTMLElement.prototype,'attachEvent',attachEventProxy);addFunction(w.HTMLElement.prototype,'detachEvent',detachEventProxy);var eventPrototype=w.Event.prototype;addGetter(eventPrototype,'srcElement',function(){return __getNonTextNode(this.target)||this.currentTarget;});addGetter(eventPrototype,'cancelBubble',function(){return this._bubblingCanceled||false;});addSetter(eventPrototype,'cancelBubble',function(v){if(v){this._bubblingCanceled=true;this.stopPropagation();}});addGetter(eventPrototype,'returnValue',function(){return this._cancelDefault;});addSetter(eventPrototype,'returnValue',function(v){if(!v){this.preventDefault();}
this._cancelDefault=v;return v;});addGetter(eventPrototype,'fromElement',function(){var n;if(this.type=='mouseover'){n=this.relatedTarget;}
else if(this.type=='mouseout'){n=this.target;}
return __getNonTextNode(n);});addGetter(eventPrototype,'toElement',function(){var n;if(this.type=='mouseout'){n=this.relatedTarget;}
else if(this.type=='mouseover'){n=this.target;}
return __getNonTextNode(n);});addGetter(eventPrototype,'button',function(){return(this.which==1)?1:(this.which==3)?2:0});addGetter(eventPrototype,'offsetX',function(){return window.pageXOffset+this.clientX-__getLocation(this.srcElement).x;});addGetter(eventPrototype,'offsetY',function(){return window.pageYOffset+this.clientY-__getLocation(this.srcElement).y;});var elementPrototype=w.HTMLElement.prototype;addGetter(elementPrototype,'parentElement',function(){return this.parentNode;});addGetter(elementPrototype,'children',function(){var children=[];var childCount=this.childNodes.length;for(var i=0;i<childCount;i++){var childNode=this.childNodes[i];if(childNode.nodeType==1){children.push(childNode);}}
return children;});addGetter(elementPrototype,'innerText',function(){try{return this.textContent}
catch(ex){var text='';for(var i=0;i<this.childNodes.length;i++){if(this.childNodes[i].nodeType==3){text+=this.childNodes[i].textContent;}}
return str;}});addSetter(elementPrototype,'innerText',function(v){var textNode=document.createTextNode(v);this.innerHTML='';this.appendChild(textNode);});addGetter(elementPrototype,'currentStyle',function(){return window.getComputedStyle(this,null);});addGetter(elementPrototype,'runtimeStyle',function(){return window.getOverrideStyle(this,null);});addFunction(elementPrototype,'removeNode',function(b){return this.parentNode?this.parentNode.removeChild(this):this;});addFunction(elementPrototype,'contains',function(el){while(el!=null&&el!=this){el=el.parentElement;}
return(el!=null);});addGetter(w.HTMLStyleElement.prototype,'styleSheet',function(){return this.sheet;});var cssSheetPrototype=w.CSSStyleSheet.prototype;addGetter(cssSheetPrototype,'rules',function(){return this.cssRules;});addFunction(cssSheetPrototype,'addRule',function(selector,style,index){this.insertRule(selector+'{'+style+'}',index);});addFunction(cssSheetPrototype,'removeRule',function(index){this.deleteRule(index);});var cssDecPrototype=w.CSSStyleDeclaration.prototype;addGetter(cssDecPrototype,'styleFloat',function(){return this.cssFloat;});addSetter(cssDecPrototype,'styleFloat',function(v){this.cssFloat=v;});var docFragPrototype=DocumentFragment.prototype;addFunction(docFragPrototype,'getElementById',function(id){var nodeQueue=[];var childNodes=this.childNodes;var node;var c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}
while(nodeQueue.length){node=Array.dequeue(nodeQueue);if(node.id==id){return node;}
childNodes=node.childNodes;if(childNodes.length!=0){for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}}}
return null;});addFunction(docFragPrototype,'getElementsByTagName',function(tagName){var elements=[];var nodeQueue=[];var childNodes=this.childNodes;var node;var c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}
while(nodeQueue.length){node=ArrayPrototype_dequeue(nodeQueue);if(tagName=='*'||node.tagName==tagName){ArrayPrototype_add(elements,node);}
childNodes=node.childNodes;if(childNodes.length!=0){for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}}}
return elements;});addFunction(docFragPrototype,'createElement',function(tagName){return document.createElement(tagName);});var selectNodes=function(doc,selector,context){if(!doc.documentElement){return[];}
context=context?context:doc;selector=selector.replace(/^\/\//g,"");if(!selector.indexOf("/")){context=context.documentElement;selector=selector.replace(/^\/\w*/,"");if(!selector)
return[context];}
selector=selector.replace(/\/\//g," ");selector=selector.replace(/\//g,">");selector=selector.replace(/\[([^@].*?)\]/g,function(m,selector){return":has("+selector+")";});if(selector.indexOf(">..")>=0){var parts=selector.split(/>\.\.>?/g);var cur=jQuery(parts[0],context);for(var i=1;i<parts.length;i++)
cur=cur.parent(parts[i]);return cur.get();}
return _coveoJQuery(selector,context);};var selectSingleNode=function(doc,path,contextNode){var nodes=selectNodes(doc,path,contextNode);if(nodes.length==0){return null;}
return nodes[0];};var xmlDocPrototype=w.Document.prototype;addFunction(xmlDocPrototype,'selectNodes',function(path,contextNode){return selectNodes(this,path,contextNode);});addFunction(xmlDocPrototype,'selectSingleNode',function(path,contextNode){return selectSingleNode(this,path,contextNode);});addFunction(xmlDocPrototype,'transformNode',function(xsl){var xslProcessor=new XSLTProcessor();xslProcessor.importStylesheet(xsl);var ownerDocument=document.implementation.createDocument("","",null);var transformedDoc=xslProcessor.transformToDocument(this);return transformedDoc.xml;});var nodePrototype=Node.prototype;addFunction(nodePrototype,'selectNodes',function(path){var doc=this.ownerDocument;return doc.selectNodes(path,this);});addFunction(nodePrototype,'selectSingleNode',function(path){var doc=this.ownerDocument;return doc.selectSingleNode(path,this);});addGetter(nodePrototype,'baseName',function(){return this.localName;});addGetter(nodePrototype,'text',function(){return this.textContent;});addSetter(nodePrototype,'text',function(value){this.textContent=value;});addGetter(nodePrototype,'xml',function(){return(new XMLSerializer()).serializeToString(this);});}
function __supportsCompatLayer(ua){return(ua.indexOf('Gecko')>=0)||(ua.indexOf('AppleWebKit')>=0)||(ua.indexOf('Opera')>=0);}
if(__supportsCompatLayer(window.navigator.userAgent)){try{__loadCompatLayer(window);}
catch(e){}};
// Script# Core Runtime
// More information at http://projects.nikhilk.net/ScriptSharp
//
(function(){var globals={version:'0.7.4.0',isUndefined:function(o){return(o===undefined);},isNull:function(o){return(o===null);},isNullOrUndefined:function(o){return(o===null)||(o===undefined);},isValue:function(o){return(o!==null)&&(o!==undefined);}};var started=false;var startCallbacks=[];function onStartup(cb){startCallbacks?startCallbacks.push(cb):setTimeout(cb,0);}
function startup(){if(startCallbacks){var callbacks=startCallbacks;startCallbacks=null;for(var i=0,l=callbacks.length;i<l;i++){callbacks[i]();}}}
if(document.addEventListener){document.readyState=='complete'?startup():document.addEventListener('DOMContentLoaded',startup,false);}
else if(window.attachEvent){window.attachEvent('onload',function(){startup();});}
var ss=window.ss;if(!ss){window.ss=ss={init:onStartup,ready:onStartup};}
for(var n in globals){ss[n]=globals[n];}})();Object.__typeName='Object';Object.__baseType=null;Object.clearKeys=function Object$clearKeys(d){for(var n in d){delete d[n];}}
Object.keyExists=function Object$keyExists(d,key){return d[key]!==undefined;}
if(!Object.keys){Object.keys=function Object$keys(d){var keys=[];for(var n in d){keys.push(n);}
return keys;}
Object.getKeyCount=function Object$getKeyCount(d){var count=0;for(var n in d){count++;}
return count;}}
else{Object.getKeyCount=function Object$getKeyCount(d){return Object.keys(d).length;}}
Boolean.__typeName='Boolean';Boolean.parse=function Boolean$parse(s){return(s.toLowerCase()=='true');}
Number.__typeName='Number';Number.parse=function Number$parse(s){if(!s||!s.length){return 0;}
if((s.indexOf('.')>=0)||(s.indexOf('e')>=0)||s.endsWith('f')||s.endsWith('F')){return parseFloat(s);}
return parseInt(s,10);}
Number.prototype.format=function Number$format(format){if(ss.isNullOrUndefined(format)||(format.length==0)||(format=='i')){return this.toString();}
return this._netFormat(format,false);}
Number.prototype.localeFormat=function Number$format(format){if(ss.isNullOrUndefined(format)||(format.length==0)||(format=='i')){return this.toLocaleString();}
return this._netFormat(format,true);}
Number._commaFormat=function Number$_commaFormat(number,groups,decimal,comma){var decimalPart=null;var decimalIndex=number.indexOf(decimal);if(decimalIndex>0){decimalPart=number.substr(decimalIndex);number=number.substr(0,decimalIndex);}
var negative=number.startsWith('-');if(negative){number=number.substr(1);}
var groupIndex=0;var groupSize=groups[groupIndex];if(number.length<groupSize){return decimalPart?number+decimalPart:number;}
var index=number.length;var s='';var done=false;while(!done){var length=groupSize;var startIndex=index-length;if(startIndex<0){groupSize+=startIndex;length+=startIndex;startIndex=0;done=true;}
if(!length){break;}
var part=number.substr(startIndex,length);if(s.length){s=part+comma+s;}
else{s=part;}
index-=length;if(groupIndex<groups.length-1){groupIndex++;groupSize=groups[groupIndex];}}
if(negative){s='-'+s;}
return decimalPart?s+decimalPart:s;}
Number.prototype._netFormat=function Number$_netFormat(format,useLocale){var nf=useLocale?ss.CultureInfo.CurrentCulture.numberFormat:ss.CultureInfo.InvariantCulture.numberFormat;var s='';var precision=-1;if(format.length>1){precision=parseInt(format.substr(1));}
var fs=format.charAt(0);switch(fs){case'd':case'D':s=parseInt(Math.abs(this)).toString();if(precision!=-1){s=s.padLeft(precision,'0');}
if(this<0){s='-'+s;}
break;case'x':case'X':s=parseInt(Math.abs(this)).toString(16);if(fs=='X'){s=s.toUpperCase();}
if(precision!=-1){s=s.padLeft(precision,'0');}
break;case'e':case'E':if(precision==-1){s=this.toExponential();}
else{s=this.toExponential(precision);}
if(fs=='E'){s=s.toUpperCase();}
break;case'f':case'F':case'n':case'N':if(precision==-1){precision=nf.numberDecimalDigits;}
s=this.toFixed(precision).toString();if(precision&&(nf.numberDecimalSeparator!='.')){var index=s.indexOf('.');s=s.substr(0,index)+nf.numberDecimalSeparator+s.substr(index+1);}
if((fs=='n')||(fs=='N')){s=Number._commaFormat(s,nf.numberGroupSizes,nf.numberDecimalSeparator,nf.numberGroupSeparator);}
break;case'c':case'C':if(precision==-1){precision=nf.currencyDecimalDigits;}
s=Math.abs(this).toFixed(precision).toString();if(precision&&(nf.currencyDecimalSeparator!='.')){var index=s.indexOf('.');s=s.substr(0,index)+nf.currencyDecimalSeparator+s.substr(index+1);}
s=Number._commaFormat(s,nf.currencyGroupSizes,nf.currencyDecimalSeparator,nf.currencyGroupSeparator);if(this<0){s=String.format(nf.currencyNegativePattern,s);}
else{s=String.format(nf.currencyPositivePattern,s);}
break;case'p':case'P':if(precision==-1){precision=nf.percentDecimalDigits;}
s=(Math.abs(this)*100.0).toFixed(precision).toString();if(precision&&(nf.percentDecimalSeparator!='.')){var index=s.indexOf('.');s=s.substr(0,index)+nf.percentDecimalSeparator+s.substr(index+1);}
s=Number._commaFormat(s,nf.percentGroupSizes,nf.percentDecimalSeparator,nf.percentGroupSeparator);if(this<0){s=String.format(nf.percentNegativePattern,s);}
else{s=String.format(nf.percentPositivePattern,s);}
break;}
return s;}
String.__typeName='String';String.Empty='';String.compare=function String$compare(s1,s2,ignoreCase){if(ignoreCase){if(s1){s1=s1.toUpperCase();}
if(s2){s2=s2.toUpperCase();}}
s1=s1||'';s2=s2||'';if(s1==s2){return 0;}
if(s1<s2){return-1;}
return 1;}
String.prototype.compareTo=function String$compareTo(s,ignoreCase){return String.compare(this,s,ignoreCase);}
String.concat=function String$concat(){if(arguments.length===2){return arguments[0]+arguments[1];}
return Array.prototype.join.call(arguments,'');}
String.prototype.endsWith=function String$endsWith(suffix){if(!suffix.length){return true;}
if(suffix.length>this.length){return false;}
return(this.substr(this.length-suffix.length)==suffix);}
String.equals=function String$equals1(s1,s2,ignoreCase){return String.compare(s1,s2,ignoreCase)==0;}
String._format=function String$_format(format,values,useLocale){if(!String._formatRE){String._formatRE=/(\{[^\}^\{]+\})/g;}
return format.replace(String._formatRE,function(str,m){var index=parseInt(m.substr(1));var value=values[index+1];if(ss.isNullOrUndefined(value)){return'';}
if(value.format){var formatSpec=null;var formatIndex=m.indexOf(':');if(formatIndex>0){formatSpec=m.substring(formatIndex+1,m.length-1);}
return useLocale?value.localeFormat(formatSpec):value.format(formatSpec);}
else{return useLocale?value.toLocaleString():value.toString();}});}
String.format=function String$format(format){return String._format(format,arguments,false);}
String.fromChar=function String$fromChar(ch,count){var s=ch;for(var i=1;i<count;i++){s+=ch;}
return s;}
String.prototype.htmlDecode=function String$htmlDecode(){var div=document.createElement('div');div.innerHTML=this;return div.textContent||div.innerText;}
String.prototype.htmlEncode=function String$htmlEncode(){var div=document.createElement('div');div.appendChild(document.createTextNode(this));return div.innerHTML.replace(/\"/g,'&quot;');}
String.prototype.indexOfAny=function String$indexOfAny(chars,startIndex,count){var length=this.length;if(!length){return-1;}
startIndex=startIndex||0;count=count||length;var endIndex=startIndex+count-1;if(endIndex>=length){endIndex=length-1;}
for(var i=startIndex;i<=endIndex;i++){if(ArrayPrototype_indexOf(chars,this.charAt(i))>=0){return i;}}
return-1;}
String.prototype.insert=function String$insert(index,value){if(!value){return this;}
if(!index){return value+this;}
var s1=this.substr(0,index);var s2=this.substr(index);return s1+value+s2;}
String.isNullOrEmpty=function String$isNullOrEmpty(s){return!s||!s.length;}
String.prototype.lastIndexOfAny=function String$lastIndexOfAny(chars,startIndex,count){var length=this.length;if(!length){return-1;}
startIndex=startIndex||length-1;count=count||length;var endIndex=startIndex-count+1;if(endIndex<0){endIndex=0;}
for(var i=startIndex;i>=endIndex;i--){if(ArrayPrototype_indexOf(chars,this.charAt(i))>=0){return i;}}
return-1;}
String.localeFormat=function String$localeFormat(format){return String._format(format,arguments,true);}
String.prototype.padLeft=function String$padLeft(totalWidth,ch){if(this.length<totalWidth){ch=ch||' ';return String.fromChar(ch,totalWidth-this.length)+this;}
return this;}
String.prototype.padRight=function String$padRight(totalWidth,ch){if(this.length<totalWidth){ch=ch||' ';return this+String.fromChar(ch,totalWidth-this.length);}
return this;}
String.prototype.remove=function String$remove(index,count){if(!count||((index+count)>this.length)){return this.substr(0,index);}
return this.substr(0,index)+this.substr(index+count);}
String.prototype.replaceAll=function String$replaceAll(oldValue,newValue){newValue=newValue||'';return this.split(oldValue).join(newValue);}
String.prototype.startsWith=function String$startsWith(prefix){if(!prefix.length){return true;}
if(prefix.length>this.length){return false;}
return(this.substr(0,prefix.length)==prefix);}
if(!String.prototype.trim){String.prototype.trim=function String$trim(){return this.trimEnd().trimStart();}}
String.prototype.trimEnd=function String$trimEnd(){return this.replace(/\s*$/,'');}
String.prototype.trimStart=function String$trimStart(){return this.replace(/^\s*/,'');}
Array.__typeName='Array';Array.__interfaces=[ss.IEnumerable];ArrayPrototype_add=function Array$add(_array,item){_array[_array.length]=item;}
ArrayPrototype_addRange=function Array$addRange(_array,items){_array.push.apply(_array,items);}
ArrayPrototype_aggregate=function Array$aggregate(_array,seed,callback,instance){var length=_array.length;for(var i=0;i<length;i++){if(i in _array){seed=callback.call(instance,seed,_array[i],i,_array);}}
return seed;}
ArrayPrototype_clear=function Array$clear(_array){_array.length=0;}
ArrayPrototype_clone=function Array$clone(_array){if(_array.length===1){return[_array[0]];}
else{return Array.apply(null,_array);}}
ArrayPrototype_contains=function Array$contains(_array,item){var index=ArrayPrototype_indexOf(_array,item);return(index>=0);}
ArrayPrototype_dequeue=function Array$dequeue(_array){return _array.shift();}
ArrayPrototype_enqueue=function Array$enqueue(_array,item){_array._queue=true;_array.push(item);}
ArrayPrototype_peek=function Array$peek(_array){if(_array.length){var index=_array._queue?0:_array.length-1;return _array[index];}
return null;}
ArrayPrototype_every=function Array$every(_array,callback,instance){var length=_array.length;for(var i=0;i<length;i++){if(i in _array&&!callback.call(instance,_array[i],i,_array)){return false;}}
return true;}
ArrayPrototype_extract=function Array$extract(_array,index,count){if(!count){return _array.slice(index);}
return _array.slice(index,index+count);}
ArrayPrototype_filter=function Array$filter(_array,callback,instance){var length=_array.length;var filtered=[];for(var i=0;i<length;i++){if(i in _array){var val=_array[i];if(callback.call(instance,val,i,_array)){filtered.push(val);}}}
return filtered;}
ArrayPrototype_forEach=function Array$forEach(_array,callback,instance){var length=_array.length;for(var i=0;i<length;i++){if(i in _array){callback.call(instance,_array[i],i,_array);}}}
ArrayPrototype_getEnumerator=function Array$getEnumerator(_array){return new ss.ArrayEnumerator(_array);}
ArrayPrototype_groupBy=function Array$groupBy(_array,callback,instance){var length=_array.length;var groups=[];var keys={};for(var i=0;i<length;i++){if(i in _array){var key=callback.call(instance,_array[i],i);if(String.isNullOrEmpty(key)){continue;}
var items=keys[key];if(!items){items=[];items.key=key;keys[key]=items;ArrayPrototype_add(groups,items);}
ArrayPrototype_add(items,_array[i]);}}
return groups;}
ArrayPrototype_index=function Array$index(_array,callback,instance){var length=_array.length;var items={};for(var i=0;i<length;i++){if(i in _array){var key=callback.call(instance,_array[i],i);if(String.isNullOrEmpty(key)){continue;}
items[key]=_array[i];}}
return items;}
ArrayPrototype_indexOf=function Array$indexOf(_array,item,startIndex){startIndex=startIndex||0;var length=_array.length;if(length){for(var index=startIndex;index<length;index++){if(_array[index]===item){return index;}}}
return-1;}
ArrayPrototype_insert=function Array$insert(_array,index,item){_array.splice(index,0,item);}
ArrayPrototype_insertRange=function Array$insertRange(_array,index,items){if(index===0){_array.unshift.apply(_array,items);}
else{for(var i=0;i<items.length;i++){_array.splice(index+i,0,items[i]);}}}
ArrayPrototype_map=function Array$map(_array,callback,instance){var length=_array.length;var mapped=new Array(length);for(var i=0;i<length;i++){if(i in _array){mapped[i]=callback.call(instance,_array[i],i,_array);}}
return mapped;}
Array.parse=function Array$parse(s){return eval('('+s+')');}
ArrayPrototype_remove=function Array$remove(_array,item){var index=ArrayPrototype_indexOf(_array,item);if(index>=0){_array.splice(index,1);return true;}
return false;}
ArrayPrototype_removeAt=function Array$removeAt(_array,index){_array.splice(index,1);}
ArrayPrototype_removeRange=function Array$removeRange(_array,index,count){return _array.splice(index,count);}
ArrayPrototype_some=function Array$some(_array,callback,instance){var length=_array.length;for(var i=0;i<length;i++){if(i in _array&&callback.call(instance,_array[i],i,_array)){return true;}}
return false;}
Array.toArray=function Array$toArray(obj){return Array.prototype.slice.call(obj);}
RegExp.__typeName='RegExp';RegExp.parse=function RegExp$parse(s){if(s.startsWith('/')){var endSlashIndex=s.lastIndexOf('/');if(endSlashIndex>1){var expression=s.substring(1,endSlashIndex);var flags=s.substr(endSlashIndex+1);return new RegExp(expression,flags);}}
return null;}
Date.__typeName='Date';Date.empty=null;Date.get_now=function Date$get_now(){return new Date();}
Date.get_today=function Date$get_today(){var d=new Date();return new Date(d.getFullYear(),d.getMonth(),d.getDate());}
Date.isEmpty=function Date$isEmpty(d){return(d===null)||(d.valueOf()===0);}
Date.prototype.format=function Date$format(format){if(ss.isNullOrUndefined(format)||(format.length==0)||(format=='i')){return this.toString();}
if(format=='id'){return this.toDateString();}
if(format=='it'){return this.toTimeString();}
return this._netFormat(format,false);}
Date.prototype.localeFormat=function Date$localeFormat(format){if(ss.isNullOrUndefined(format)||(format.length==0)||(format=='i')){return this.toLocaleString();}
if(format=='id'){return this.toLocaleDateString();}
if(format=='it'){return this.toLocaleTimeString();}
return this._netFormat(format,true);}
Date.prototype._netFormat=function Date$_netFormat(format,useLocale){var dt=this;var dtf=useLocale?ss.CultureInfo.CurrentCulture.dateFormat:ss.CultureInfo.InvariantCulture.dateFormat;if(format.length==1){switch(format){case'f':format=dtf.longDatePattern+' '+dtf.shortTimePattern;break;case'F':format=dtf.dateTimePattern;break;case'd':format=dtf.shortDatePattern;break;case'D':format=dtf.longDatePattern;break;case't':format=dtf.shortTimePattern;break;case'T':format=dtf.longTimePattern;break;case'g':format=dtf.shortDatePattern+' '+dtf.shortTimePattern;break;case'G':format=dtf.shortDatePattern+' '+dtf.longTimePattern;break;case'R':case'r':dtf=ss.CultureInfo.InvariantCulture.dateFormat;format=dtf.gmtDateTimePattern;break;case'u':format=dtf.universalDateTimePattern;break;case'U':format=dtf.dateTimePattern;dt=new Date(dt.getUTCFullYear(),dt.getUTCMonth(),dt.getUTCDate(),dt.getUTCHours(),dt.getUTCMinutes(),dt.getUTCSeconds(),dt.getUTCMilliseconds());break;case's':format=dtf.sortableDateTimePattern;break;}}
if(format.charAt(0)=='%'){format=format.substr(1);}
if(!Date._formatRE){Date._formatRE=/'.*?[^\\]'|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/g;}
var re=Date._formatRE;var sb=new ss.StringBuilder();re.lastIndex=0;while(true){var index=re.lastIndex;var match=re.exec(format);sb.append(format.slice(index,match?match.index:format.length));if(!match){break;}
var fs=match[0];var part=fs;switch(fs){case'dddd':part=dtf.dayNames[dt.getDay()];break;case'ddd':part=dtf.shortDayNames[dt.getDay()];break;case'dd':part=dt.getDate().toString().padLeft(2,'0');break;case'd':part=dt.getDate();break;case'MMMM':part=dtf.monthNames[dt.getMonth()];break;case'MMM':part=dtf.shortMonthNames[dt.getMonth()];break;case'MM':part=(dt.getMonth()+1).toString().padLeft(2,'0');break;case'M':part=(dt.getMonth()+1);break;case'yyyy':part=dt.getFullYear();break;case'yy':part=(dt.getFullYear()%100).toString().padLeft(2,'0');break;case'y':part=(dt.getFullYear()%100);break;case'h':case'hh':part=dt.getHours()%12;if(!part){part='12';}
else if(fs=='hh'){part=part.toString().padLeft(2,'0');}
break;case'HH':part=dt.getHours().toString().padLeft(2,'0');break;case'H':part=dt.getHours();break;case'mm':part=dt.getMinutes().toString().padLeft(2,'0');break;case'm':part=dt.getMinutes();break;case'ss':part=dt.getSeconds().toString().padLeft(2,'0');break;case's':part=dt.getSeconds();break;case't':case'tt':part=(dt.getHours()<12)?dtf.amDesignator:dtf.pmDesignator;if(fs=='t'){part=part.charAt(0);}
break;case'fff':part=dt.getMilliseconds().toString().padLeft(3,'0');break;case'ff':part=dt.getMilliseconds().toString().padLeft(3).substr(0,2);break;case'f':part=dt.getMilliseconds().toString().padLeft(3).charAt(0);break;case'z':part=dt.getTimezoneOffset()/60;part=((part>=0)?'-':'+')+Math.floor(Math.abs(part));break;case'zz':case'zzz':part=dt.getTimezoneOffset()/60;part=((part>=0)?'-':'+')+Math.floor(Math.abs(part)).toString().padLeft(2,'0');if(fs=='zzz'){part+=dtf.timeSeparator+Math.abs(dt.getTimezoneOffset()%60).toString().padLeft(2,'0');}
break;default:if(part.charAt(0)=='\''){part=part.substr(1,part.length-2).replace(/\\'/g,'\'');}
break;}
sb.append(part);}
return sb.toString();}
Date.parseDate=function Date$parse(s){return new Date(Date.parse(s));}
Error.__typeName='Error';Error.prototype.popStackFrame=function Error$popStackFrame(){if(ss.isNullOrUndefined(this.stack)||ss.isNullOrUndefined(this.fileName)||ss.isNullOrUndefined(this.lineNumber)){return;}
var stackFrames=this.stack.split('\n');var currentFrame=stackFrames[0];var pattern=this.fileName+':'+this.lineNumber;while(!ss.isNullOrUndefined(currentFrame)&&ArrayPrototype_indexOf(currentFrame,pattern)===-1){stackFrames.shift();currentFrame=stackFrames[0];}
var nextFrame=stackFrames[1];if(isNullOrUndefined(nextFrame)){return;}
var nextFrameParts=nextFrame.match(/@(.*):(\d+)$/);if(ss.isNullOrUndefined(nextFrameParts)){return;}
stackFrames.shift();this.stack=stackFrames.join("\n");this.fileName=nextFrameParts[1];this.lineNumber=parseInt(nextFrameParts[2]);}
Error.createError=function Error$createError(message,errorInfo,innerException){var e=new Error(message);if(errorInfo){for(var v in errorInfo){e[v]=errorInfo[v];}}
if(innerException){e.innerException=innerException;}
e.popStackFrame();return e;}
ss.Debug=window.Debug||function(){};ss.Debug.__typeName='Debug';if(!ss.Debug.writeln){ss.Debug.writeln=function Debug$writeln(text){if(window.console){if(window.console.debug){window.console.debug(text);return;}
else if(window.console.log){window.console.log(text);return;}}
else if(window.opera&&window.opera.postError){window.opera.postError(text);return;}}}
ss.Debug._fail=function Debug$_fail(message){ss.Debug.writeln(message);eval('debugger;');}
ss.Debug.assert=function Debug$assert(condition,message){if(!condition){message='Assert failed: '+message;if(confirm(message+'\r\n\r\nBreak into debugger?')){ss.Debug._fail(message);}}}
ss.Debug.fail=function Debug$fail(message){ss.Debug._fail(message);}
window.Type=Function;Type.__typeName='Type';window.__Namespace=function(name){this.__typeName=name;}
__Namespace.prototype={__namespace:true,getName:function(){return this.__typeName;}}
Type.registerNamespace=function Type$registerNamespace(name){if(!window.__namespaces){window.__namespaces={};}
if(!window.__rootNamespaces){window.__rootNamespaces=[];}
if(window.__namespaces[name]){return;}
var ns=window;var nameParts=name.split('.');for(var i=0;i<nameParts.length;i++){var part=nameParts[i];var nso=ns[part];if(!nso){ns[part]=nso=new __Namespace(nameParts.slice(0,i+1).join('.'));if(i==0){ArrayPrototype_add(window.__rootNamespaces,nso);}}
ns=nso;}
window.__namespaces[name]=ns;}
Type.prototype.registerClass=function Type$registerClass(name,baseType,interfaceType){this.prototype.constructor=this;this.__typeName=name;this.__class=true;this.__baseType=baseType||Object;if(baseType){this.__basePrototypePending=true;}
if(interfaceType){this.__interfaces=[];for(var i=2;i<arguments.length;i++){interfaceType=arguments[i];ArrayPrototype_add(this.__interfaces,interfaceType);}}}
Type.prototype.registerInterface=function Type$createInterface(name){this.__typeName=name;this.__interface=true;}
Type.prototype.registerEnum=function Type$createEnum(name,flags){for(var field in this.prototype){this[field]=this.prototype[field];}
this.__typeName=name;this.__enum=true;if(flags){this.__flags=true;}}
Type.prototype.setupBase=function Type$setupBase(){if(this.__basePrototypePending){var baseType=this.__baseType;if(baseType.__basePrototypePending){baseType.setupBase();}
for(var memberName in baseType.prototype){var memberValue=baseType.prototype[memberName];if(!this.prototype[memberName]){this.prototype[memberName]=memberValue;}}
delete this.__basePrototypePending;}}
if(!Type.prototype.resolveInheritance){Type.prototype.resolveInheritance=Type.prototype.setupBase;}
Type.prototype.initializeBase=function Type$initializeBase(instance,args){if(this.__basePrototypePending){this.setupBase();}
if(!args){this.__baseType.apply(instance);}
else{this.__baseType.apply(instance,args);}}
Type.prototype.callBaseMethod=function Type$callBaseMethod(instance,name,args){var baseMethod=this.__baseType.prototype[name];if(!args){return baseMethod.apply(instance);}
else{return baseMethod.apply(instance,args);}}
Type.prototype.get_baseType=function Type$get_baseType(){return this.__baseType||null;}
Type.prototype.get_fullName=function Type$get_fullName(){return this.__typeName;}
Type.prototype.get_name=function Type$get_name(){var fullName=this.__typeName;var nsIndex=fullName.lastIndexOf('.');if(nsIndex>0){return fullName.substr(nsIndex+1);}
return fullName;}
Type.prototype.getInterfaces=function Type$getInterfaces(){return this.__interfaces;}
Type.prototype.isInstanceOfType=function Type$isInstanceOfType(instance){if(ss.isNullOrUndefined(instance)){return false;}
if((this==Object)||(instance instanceof this)){return true;}
var type=Type.getInstanceType(instance);return this.isAssignableFrom(type);}
Type.prototype.isAssignableFrom=function Type$isAssignableFrom(type){if((this==Object)||(this==type)){return true;}
if(this.__class){var baseType=type.__baseType;while(baseType){if(this==baseType){return true;}
baseType=baseType.__baseType;}}
else if(this.__interface){var interfaces=type.__interfaces;if(interfaces&&ArrayPrototype_contains(interfaces,this)){return true;}
var baseType=type.__baseType;while(baseType){interfaces=baseType.__interfaces;if(interfaces&&ArrayPrototype_contains(interfaces,this)){return true;}
baseType=baseType.__baseType;}}
return false;}
Type.isClass=function Type$isClass(type){return(type.__class==true);}
Type.isEnum=function Type$isEnum(type){return(type.__enum==true);}
Type.isFlags=function Type$isFlags(type){return((type.__enum==true)&&(type.__flags==true));}
Type.isInterface=function Type$isInterface(type){return(type.__interface==true);}
Type.isNamespace=function Type$isNamespace(object){return(object.__namespace==true);}
Type.canCast=function Type$canCast(instance,type){return type.isInstanceOfType(instance);}
Type.safeCast=function Type$safeCast(instance,type){if(type.isInstanceOfType(instance)){return instance;}
return null;}
Type.getInstanceType=function Type$getInstanceType(instance){var ctor=null;try{ctor=instance.constructor;}
catch(ex){}
if(!ctor||!ctor.__typeName){ctor=Object;}
return ctor;}
Type.getType=function Type$getType(typeName){if(!typeName){return null;}
if(!Type.__typeCache){Type.__typeCache={};}
var type=Type.__typeCache[typeName];if(!type){type=eval(typeName);Type.__typeCache[typeName]=type;}
return type;}
Type.parse=function Type$parse(typeName){return Type.getType(typeName);}
ss.Delegate=function Delegate$(){}
ss.Delegate.registerClass('Delegate');ss.Delegate.empty=function(){}
ss.Delegate._contains=function Delegate$_contains(targets,object,method){for(var i=0;i<targets.length;i+=2){if(targets[i]===object&&targets[i+1]===method){return true;}}
return false;}
ss.Delegate._create=function Delegate$_create(targets){var delegate=function(){if(targets.length==2){return targets[1].apply(targets[0],arguments);}
else{var clone=ArrayPrototype_clone(targets);for(var i=0;i<clone.length;i+=2){if(ss.Delegate._contains(targets,clone[i],clone[i+1])){clone[i+1].apply(clone[i],arguments);}}
return null;}};delegate._targets=targets;return delegate;}
ss.Delegate.create=function Delegate$create(object,method){if(!object){return method;}
return ss.Delegate._create([object,method]);}
ss.Delegate.combine=function Delegate$combine(delegate1,delegate2){if(!delegate1){if(!delegate2._targets){return ss.Delegate.create(null,delegate2);}
return delegate2;}
if(!delegate2){if(!delegate1._targets){return ss.Delegate.create(null,delegate1);}
return delegate1;}
var targets1=delegate1._targets?delegate1._targets:[null,delegate1];var targets2=delegate2._targets?delegate2._targets:[null,delegate2];return ss.Delegate._create(targets1.concat(targets2));}
ss.Delegate.remove=function Delegate$remove(delegate1,delegate2){if(!delegate1||(delegate1===delegate2)){return null;}
if(!delegate2){return delegate1;}
var targets=delegate1._targets;var object=null;var method;if(delegate2._targets){object=delegate2._targets[0];method=delegate2._targets[1];}
else{method=delegate2;}
for(var i=0;i<targets.length;i+=2){if((targets[i]===object)&&(targets[i+1]===method)){if(targets.length==2){return null;}
targets.splice(i,2);return ss.Delegate._create(targets);}}
return delegate1;}
ss.Delegate.createExport=function Delegate$createExport(delegate,multiUse,name){name=name||'__'+(new Date()).valueOf();window[name]=multiUse?delegate:function(){try{delete window[name];}catch(e){window[name]=undefined;}
delegate.apply(null,arguments);};return name;}
ss.Delegate.deleteExport=function Delegate$deleteExport(name){delete window[name];}
ss.Delegate.clearExport=function Delegate$clearExport(name){window[name]=ss.Delegate.empty;}
ss.CultureInfo=function CultureInfo$(name,numberFormat,dateFormat){this.name=name;this.numberFormat=numberFormat;this.dateFormat=dateFormat;}
ss.CultureInfo.registerClass('CultureInfo');ss.CultureInfo.InvariantCulture=new ss.CultureInfo('en-US',{naNSymbol:'NaN',negativeSign:'-',positiveSign:'+',negativeInfinityText:'-Infinity',positiveInfinityText:'Infinity',percentSymbol:'%',percentGroupSizes:[3],percentDecimalDigits:2,percentDecimalSeparator:'.',percentGroupSeparator:',',percentPositivePattern:'{0} %',percentNegativePattern:'-{0} %',currencySymbol:'$',currencyGroupSizes:[3],currencyDecimalDigits:2,currencyDecimalSeparator:'.',currencyGroupSeparator:',',currencyNegativePattern:'(${0})',currencyPositivePattern:'${0}',numberGroupSizes:[3],numberDecimalDigits:2,numberDecimalSeparator:'.',numberGroupSeparator:','},{amDesignator:'AM',pmDesignator:'PM',dateSeparator:'/',timeSeparator:':',gmtDateTimePattern:'ddd, dd MMM yyyy HH:mm:ss \'GMT\'',universalDateTimePattern:'yyyy-MM-dd HH:mm:ssZ',sortableDateTimePattern:'yyyy-MM-ddTHH:mm:ss',dateTimePattern:'dddd, MMMM dd, yyyy h:mm:ss tt',longDatePattern:'dddd, MMMM dd, yyyy',shortDatePattern:'M/d/yyyy',longTimePattern:'h:mm:ss tt',shortTimePattern:'h:mm tt',firstDayOfWeek:0,dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],shortDayNames:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],minimizedDayNames:['Su','Mo','Tu','We','Th','Fr','Sa'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December',''],shortMonthNames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec','']});ss.CultureInfo.CurrentCulture=ss.CultureInfo.InvariantCulture;ss.IEnumerator=function IEnumerator$(){};ss.IEnumerator.prototype={get_current:null,moveNext:null,reset:null}
ss.IEnumerator.getEnumerator=function ss_IEnumerator$getEnumerator(enumerable){if(enumerable){return enumerable.getEnumerator?enumerable.getEnumerator():new ss.ArrayEnumerator(enumerable);}
return null;}
ss.IEnumerator.registerInterface('IEnumerator');ss.IEnumerable=function IEnumerable$(){};ss.IEnumerable.prototype={getEnumerator:null}
ss.IEnumerable.registerInterface('IEnumerable');ss.ArrayEnumerator=function ArrayEnumerator$(array){this._array=array;this._index=-1;this.current=null;}
ss.ArrayEnumerator.prototype={moveNext:function ArrayEnumerator$moveNext(){this._index++;this.current=this._array[this._index];return(this._index<this._array.length);},reset:function ArrayEnumerator$reset(){this._index=-1;this.current=null;}}
ss.ArrayEnumerator.registerClass('ArrayEnumerator',null,ss.IEnumerator);ss.IDisposable=function IDisposable$(){};ss.IDisposable.prototype={dispose:null}
ss.IDisposable.registerInterface('IDisposable');ss.StringBuilder=function StringBuilder$(s){this._parts=!ss.isNullOrUndefined(s)?[s]:[];this.isEmpty=this._parts.length==0;}
ss.StringBuilder.prototype={append:function StringBuilder$append(s){if(!ss.isNullOrUndefined(s)){ArrayPrototype_add(this._parts,s);this.isEmpty=false;}
return this;},appendLine:function StringBuilder$appendLine(s){this.append(s);this.append('\r\n');this.isEmpty=false;return this;},clear:function StringBuilder$clear(){ArrayPrototype_clear(this._parts);this.isEmpty=true;},toString:function StringBuilder$toString(s){return this._parts.join(s||'');}};ss.StringBuilder.registerClass('StringBuilder');ss.EventArgs=function EventArgs$(){}
ss.EventArgs.registerClass('EventArgs');ss.EventArgs.Empty=new ss.EventArgs();if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var progIDs=['Msxml2.XMLHTTP','Microsoft.XMLHTTP'];for(var i=0;i<progIDs.length;i++){try{var xmlHttp=new ActiveXObject(progIDs[i]);return xmlHttp;}
catch(ex){}}
return null;}}
ss.parseXml=function(markup){try{if(DOMParser){var domParser=new DOMParser();return domParser.parseFromString(markup,'text/xml');}
else{var progIDs=['Msxml2.DOMDocument.3.0','Msxml2.DOMDocument'];for(var i=0;i<progIDs.length;i++){var xmlDOM=new ActiveXObject(progIDs[i]);xmlDOM.async=false;xmlDOM.loadXML(markup);xmlDOM.setProperty('SelectionLanguage','XPath');return xmlDOM;}}}
catch(ex){}
return null;}
ss.CancelEventArgs=function CancelEventArgs$(){ss.CancelEventArgs.initializeBase(this);this.cancel=false;}
ss.CancelEventArgs.registerClass('CancelEventArgs',ss.EventArgs);ss.Tuple=function(first,second,third){this.first=first;this.second=second;if(arguments.length==3){this.third=third;}}
ss.Tuple.registerClass('Tuple');ss.Observable=function(v){this._v=v;this._observers=null;}
ss.Observable.prototype={getValue:function(){this._observers=ss.Observable._captureObservers(this._observers);return this._v;},setValue:function(v){if(this._v!==v){this._v=v;var observers=this._observers;if(observers){this._observers=null;ss.Observable._invalidateObservers(observers);}}}};ss.Observable._observerStack=[];ss.Observable._observerRegistration={dispose:function(){ss.Observable._observerStack.pop();}}
ss.Observable.registerObserver=function(o){ss.Observable._observerStack.push(o);return ss.Observable._observerRegistration;}
ss.Observable._captureObservers=function(observers){var registeredObservers=ss.Observable._observerStack;var observerCount=registeredObservers.length;if(observerCount){observers=observers||[];for(var i=0;i<observerCount;i++){var observer=registeredObservers[i];if(!ArrayPrototype_contains(observers,observer)){observers.push(observer);}}
return observers;}
return null;}
ss.Observable._invalidateObservers=function(observers){for(var i=0,len=observers.length;i<len;i++){observers[i].invalidateObserver();}}
ss.Observable.registerClass('Observable');ss.ObservableCollection=function(items){this._items=items||[];this._observers=null;}
ss.ObservableCollection.prototype={get_item:function(index){this._observers=ss.Observable._captureObservers(this._observers);return this._items[index];},set_item:function(index,item){this._items[index]=item;this._updated();},get_length:function(){this._observers=ss.Observable._captureObservers(this._observers);return this._items.length;},add:function(item){this._items.push(item);this._updated();},clear:function(){ArrayPrototype_clear(this._items);this._updated();},contains:function(item){return ArrayPrototype_contains(this._items,item);},getEnumerator:function(){this._observers=ss.Observable._captureObservers(this._observers);return ArrayPrototype_getEnumerator(this._items);},indexOf:function(item){return ArrayPrototype_indexOf(this._items);},insert:function(index,item){ArrayPrototype_insert(this._items,index,item);this._updated();},remove:function(item){if(ArrayPrototype_remove(this._items,item)){this._updated();return true;}
return false;},removeAt:function(index){ArrayPrototype_removeAt(this._items,index);this._updated();},toArray:function(){return this._items;},_updated:function(){var observers=this._observers;if(observers){this._observers=null;ss.Observable._invalidateObservers(observers);}}}
ss.ObservableCollection.registerClass('ObservableCollection',null,ss.IEnumerable);ss.IApplication=function(){};ss.IApplication.registerInterface('IApplication');ss.IContainer=function(){};ss.IContainer.registerInterface('IContainer');ss.IObjectFactory=function(){};ss.IObjectFactory.registerInterface('IObjectFactory');ss.IEventManager=function(){};ss.IEventManager.registerInterface('IEventManager');ss.IInitializable=function(){};ss.IInitializable.registerInterface('IInitializable');;
_coveoDefineJQuery = function() { var $ = _coveoJQuery;
Type.registerNamespace('Coveo.CES.Web.Search.SharePoint.SharePointScopes');Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataType=function(){};Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataType.prototype = {string:0,bool:1,integer:2}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataType.registerEnum('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataType',false);Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataValue=function(p_Name,p_Type,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);this.m_Name=p_Name;this.m_Type=p_Type;this.m_Value=p_Value;}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataValue.prototype={m_Name:null,m_Type:0,m_Value:null}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild=function(p_Name,p_Child){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);this.m_Name=p_Name;this.m_Child=p_Child;}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild.prototype={m_Name:null,m_Child:null}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData=function(){}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.parse=function(p_TreeStr){var $0=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData();if(!String.isNullOrEmpty(p_TreeStr)){var $1=$.parseXML(p_TreeStr);Coveo.CNL.Web.Scripts.CNLAssert.check($1.nodeName==='N');Coveo.CNL.Web.Scripts.CNLAssert.check($1.attributes==null||!$1.attributes.getNamedItem('n').nodeValue);Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$8($0,$1.firstChild);}return $0;}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$8=function($p0,$p1){var $enum1=ss.IEnumerator.getEnumerator($p1.childNodes);while($enum1.moveNext()){var $0=$enum1.current;switch($0.nodeName){case 'N':var $1=$0.attributes.getNamedItem('n').nodeValue;var $2=new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData();Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$8($2,$0);$p0.setChild($1,$2);break;case 'V':var $3=$0.attributes.getNamedItem('n').nodeValue;var $4=$0.attributes.getNamedItem('t').nodeValue;var $5=$0.attributes.getNamedItem('v').nodeValue;$p0.$E($3,parseInt($4),$5);break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();break;}}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$F=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);return $p0.htmlEncode();}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10=function($p0){return $p0.toLowerCase();}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11=function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.check($p1>=0);Coveo.CNL.Web.Scripts.CNLAssert.check($p2>=-1);if($p2===-1){$p2=$p0.length-$p1;}var $0;$0=$p0.substr($p1,$p2);return $0;}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$12=function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.check($p1>=0);var $0;$0=$p0.charAt($p1);return $0;}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.prototype={$6:null,$7:null,streamAsString:function(){var $0=new ss.StringBuilder();$0.append(String.format('<{0} {1}="">','N','n'));this.$9($0);$0.append(String.format('</{0}>','N'));return $0.toString();},$9:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);var $0=this.getValueCount();for(var $2=0;$2<$0;++$2){var $3=this.$7[$2];$p0.append(String.format('<{0} {1}="{2}" {3}="{4}" {5}="{6}"/>','V','n',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$F($3.m_Name),'t',$3.m_Type,'v',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$F($3.m_Value)));}var $1=this.getChildCount();for(var $4=0;$4<$1;++$4){var $5=this.$6[$4];$p0.append(String.format('<{0} {1}="{2}">','N','n',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$F($5.m_Name)));var $6=$5.m_Child;$6.$9($p0);$p0.append(String.format('</{0}>','N'));}},getValueCount:function(){return (this.$7==null)?0:this.$7.length;},getValueNameAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());return this.$7[p_Index].m_Name;},getValueTypeAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());return this.$7[p_Index].m_Type;},getStringValueAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());Coveo.CNL.Web.Scripts.CNLAssert.check(!this.$7[p_Index].m_Type);return this.$7[p_Index].m_Value;},getBoolValueAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());Coveo.CNL.Web.Scripts.CNLAssert.check(this.$7[p_Index].m_Type===1);return (this.$7[p_Index].m_Value!=='0');},getIntValueAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());Coveo.CNL.Web.Scripts.CNLAssert.check(this.$7[p_Index].m_Type===2);return parseInt(this.$7[p_Index].m_Value);},getStringValue:function(p_Name,p_DefVal){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0=p_Name.indexOf('/');if($0!==-1){var $1=this.$D(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$0));return ($1<this.getChildCount())?this.$6[$1].m_Child.getStringValue(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$0+1,-1),p_DefVal):p_DefVal;}else{var $2=this.$C(p_Name);if($2<this.getValueCount()){return this.getStringValueAt($2);}else{return p_DefVal;}}},getBoolValue:function(p_Name,p_DefVal){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0=p_Name.indexOf('/');if($0!==-1){var $1=this.$D(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$0));return ($1<this.getChildCount())?this.$6[$1].m_Child.getBoolValue(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$0+1,-1),p_DefVal):p_DefVal;}else{var $2=this.$C(p_Name);if($2<this.getValueCount()){return this.getBoolValueAt($2);}else{return p_DefVal;}}},getIntValue:function(p_Name,p_DefVal){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0=p_Name.indexOf('/');if($0!==-1){var $1=this.$D(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$0));return ($1<this.getChildCount())?this.$6[$1].m_Child.getIntValue(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$0+1,-1),p_DefVal):p_DefVal;}else{var $2=this.$C(p_Name);if($2<this.getValueCount()){return this.getIntValueAt($2);}else{return p_DefVal;}}},setStringValueAt:function(p_Index,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());this.$7[p_Index].m_Type=0;this.$7[p_Index].m_Value=p_Value;},setBoolValueAt:function(p_Index,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());this.$7[p_Index].m_Type=1;this.$7[p_Index].m_Value=((p_Value)?'1':'0');},setIntValueAt:function(p_Index,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());this.$7[p_Index].m_Type=2;this.$7[p_Index].m_Value=p_Value.toString();},setStringValue:function(p_Name,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);this.$E(p_Name,0,p_Value);},setBoolValue:function(p_Name,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);this.$E(p_Name,1,((p_Value)?'1':'0'));},setIntValue:function(p_Name,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);this.$E(p_Name,2,p_Value.toString());},$A:function($p0,$p1,$p2,$p3){if(this.$7==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$p0);this.$7=[];}ArrayPrototype_insert(this.$7, $p0,new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataValue($p1,$p2,$p3));},deleteValueAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getValueCount());if(this.$7.length===1){this.$7=null;}else{ArrayPrototype_removeAt(this.$7, p_Index);}},deleteValue:function(p_Name){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0=p_Name.indexOf('/');if($0!==-1){var $1=this.$D(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$0));if($1<this.getChildCount()){var $2=this.$6[$1].m_Child;$2.deleteValue(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$0+1,-1));if(!$2.getChildCount()&&!$2.getValueCount()){this.deleteChildAt($1);}}}else{var $3=this.$C(p_Name);if($3<this.getValueCount()){this.deleteValueAt($3);}}},clearValues:function(){this.$7=null;},getChildCount:function(){return (this.$6==null)?0:this.$6.length;},getChildNameAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getChildCount());return this.$6[p_Index].m_Name;},getChildAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getChildCount());return this.$6[p_Index].m_Child;},getChild:function(p_Name,p_CreateIfDoesNotExist){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0;var $1;var $2=p_Name.indexOf('/');if($2!==-1){$0=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$2);$1=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$2+1,-1);}else{$0=p_Name;$1='';}var $3=this.$D($0);if($3>=this.getChildCount()&&p_CreateIfDoesNotExist){if(this.$6==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$3);this.$6=[];}ArrayPrototype_add(this.$6, new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild($0,new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData()));}return (($3<this.getChildCount())?((!String.isNullOrEmpty($1))?this.$6[$3].m_Child.getChild($1,p_CreateIfDoesNotExist):this.$6[$3].m_Child):null);},setChildAt:function(p_Index,p_Child){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getChildCount());this.$6[p_Index].m_Child=p_Child;},setChild:function(p_Name,p_Child){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Child);var $0=p_Name.indexOf('/');if($0!==-1){var $1=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$0);var $2=this.$D($1);if($2>=this.getChildCount()){if(this.$6==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$2);this.$6=[];}ArrayPrototype_add(this.$6, new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild($1,new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData()));}this.$6[$2].m_Child.setChild(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$0+1,-1),p_Child);}else{var $3=this.$D(p_Name);if($3>=this.getChildCount()){if(this.$6==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$3);this.$6=[];}ArrayPrototype_add(this.$6, new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild(p_Name,null));}this.$6[$3].m_Child=p_Child;}},$B:function($p0,$p1,$p2){if(this.$6==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$p0);this.$6=[];}ArrayPrototype_insert(this.$6, $p0,new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild($p1,$p2));},deleteChildAt:function(p_Index){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Index>=0&&p_Index<this.getChildCount());if(this.$6.length===1){this.$6=null;}else{ArrayPrototype_removeAt(this.$6, p_Index);}},deleteChild:function(p_Name){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0=p_Name.indexOf('/');if($0!==-1){var $1=this.$D(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,0,$0));if($1<this.getChildCount()){var $2=this.$6[$1].m_Child;$2.deleteChild(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11(p_Name,$0+1,-1));if(!$2.getChildCount()&&!$2.getValueCount()){this.deleteChildAt($1);}}}else{var $3=this.$D(p_Name);if($3<this.getChildCount()){this.deleteChildAt($3);}}},clearChildren:function(){this.$6=null;},$C:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.check($p0.indexOf('/')===-1);var $0=this.getValueCount();var $1=0;while($1<$0&&this.$7[$1].m_Name!==$p0){++$1;}return $1;},$D:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.check($p0.indexOf('/')===-1);var $0=this.getChildCount();var $1=0;while($1<$0&&this.$6[$1].m_Name!==$p0){++$1;}return $1;},$E:function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=$p0.indexOf('/');if($0!==-1){var $1=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11($p0,0,$0);var $2=this.$D($1);if($2>=this.getChildCount()){if(this.$6==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$2);this.$6=[];}ArrayPrototype_add(this.$6, new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild($1,new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData()));}var $3=this.$6[$2].m_Child;$3.$E(Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$11($p0,$0+1,-1),$p1,$p2);}else{var $4=this.$C($p0);if($4>=this.getValueCount()){if(this.$7==null){Coveo.CNL.Web.Scripts.CNLAssert.check(!$4);this.$7=[];}ArrayPrototype_add(this.$7, new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataValue($p0,0,null));}this.$7[$4].m_Type=$p1;this.$7[$4].m_Value=$p2;}}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData=function(p_RawData){this.m_RawData=((p_RawData!=null)?p_RawData:new Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData());}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData.prototype={m_RawData:null,getRawData:function(){return this.m_RawData;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData=function(p_RawData){Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData.initializeBase(this,[p_RawData]);var $0=this.m_RawData.getChildCount();this.$0=[];for(var $1=0;$1<$0;++$1){ArrayPrototype_add(this.$0, this.createInstance(this.m_RawData.getChildAt($1)));}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData.sort=function(p_List,p_CompareCallBack){var $0=1;while($0<p_List.length){var $1=0;while($1<$0&&p_CompareCallBack(p_List[$1],p_List[$0])<=0){++$1;}if($1<$0){var $2=p_List[$0];ArrayPrototype_removeAt(p_List, $0);ArrayPrototype_insert(p_List, $1,$2);}++$0;}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData.prototype={$0:null,get_count:function(){return this.$0.length;},getEnumerator:function(){return ArrayPrototype_getEnumerator(this.$0);},getObject:function(p_Name){var $0=this.m_RawData.$D(p_Name);return ($0>=this.m_RawData.getChildCount())?null:this.getObjectAt($0);},getObjectAt:function(p_Index){return this.$0[p_Index];},setObjectAt:function(p_Index,p_Object){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Object);this.$0[p_Index]=p_Object;this.m_RawData.setChildAt(p_Index,p_Object.getRawData());},add:function(p_Object){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Object);ArrayPrototype_add(this.$0, p_Object);this.m_RawData.setChild(this.m_RawData.getChildCount().toString(),p_Object.getRawData());},insert:function(p_Index,p_Object){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Object);ArrayPrototype_insert(this.$0, p_Index,p_Object);this.m_RawData.$B(p_Index,'',p_Object.getRawData());},clear:function(){ArrayPrototype_clear(this.$0);this.m_RawData.clearChildren();},removeAt:function(p_Index){ArrayPrototype_removeAt(this.$0, p_Index);this.m_RawData.deleteChildAt(p_Index);}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData=function(p_RawData,p_ForceKeysInLowerCase){Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData.initializeBase(this,[p_RawData]);this.$2=p_ForceKeysInLowerCase;var $0=this.m_RawData.getChildCount();this.$0={};for(var $1=0;$1<$0;++$1){var $2=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(this.m_RawData.getChildNameAt($1));this.$0[$2]=this.createInstance(this.m_RawData.getChildAt($1));}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData.prototype={$0:null,$1:null,$2:false,get_count:function(){return Object.getKeyCount(this.$0);},get_keys:function(){if(this.$1==null){this.$1=[];var $dict1=this.$0;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};ArrayPrototype_add(this.$1, $0.key);}}return this.$1;},getEnumerator:function(){var $0=[];var $dict1=this.$0;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};ArrayPrototype_add($0, $1.value);}return ArrayPrototype_getEnumerator($0);},containsKey:function(p_Key){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}return Object.keyExists(this.$0,p_Key);},getObject:function(p_Key){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}var $0=null;$0=this.$0[p_Key];return $0;},setObject:function(p_Key,p_Object){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}this.$0[p_Key]=p_Object;this.$1=null;this.m_RawData.setChild(p_Key,p_Object.getRawData());},clear:function(){Object.clearKeys(this.$0);this.$1=null;this.m_RawData.clearChildren();},remove:function(p_Key){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}delete this.$0[p_Key];this.$1=null;this.m_RawData.deleteChild(p_Key);}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeStringIntDictionaryData=function(p_RawData,p_ForceKeysInLowerCase){Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeStringIntDictionaryData.initializeBase(this,[p_RawData]);this.$2=p_ForceKeysInLowerCase;var $0=this.m_RawData.getValueCount();this.$0={};for(var $1=0;$1<$0;++$1){var $2=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(this.m_RawData.getValueNameAt($1));this.$0[$2]=this.m_RawData.getIntValueAt($1);}}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeStringIntDictionaryData.prototype={$0:null,$1:null,$2:false,get_count:function(){return Object.getKeyCount(this.$0);},get_keys:function(){if(this.$1==null){this.$1=[];var $dict1=this.$0;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};ArrayPrototype_add(this.$1, $0.key);}}return this.$1;},getEnumerator:function(){var $0=[];var $dict1=this.$0;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};ArrayPrototype_add($0, $1.key);}return ArrayPrototype_getEnumerator($0);},containsKey:function(p_Key){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}return Object.keyExists(this.$0,p_Key);},clear:function(){Object.clearKeys(this.$0);this.$1=null;this.m_RawData.clearValues();},remove:function(p_Key){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}delete this.$0[p_Key];this.$1=null;this.m_RawData.deleteValue(p_Key);},get_item:function(p_Key){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}var $0=0;$0=this.$0[p_Key];return $0;},set_item:function(p_Key,value){if(this.$2){p_Key=Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.$10(p_Key);}this.$0[p_Key]=value;this.$1=null;this.m_RawData.setIntValue(p_Key,value);return value;}}
Type.registerNamespace('Coveo.CNL.Web.Scripts.BetterControls');Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript=function(){Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript.prototype={$1:null,$2:null,$3:null,m_DisplayElement:null,m_PopUpBackgroundElement:null,m_PopUpElement:null,m_OpenerElement:null,m_CloserElement:null,m_ShowPopUpOnStartup:false,$4:null,$5:null,$6:null,initialize:function(){Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript.callBaseMethod(this, 'initialize');this.$1=$(this.m_DisplayElement);this.$2=$(this.m_PopUpBackgroundElement);this.$3=$(this.m_PopUpElement);if(this.m_OpenerElement!=null){this.$5=ss.Delegate.create(this,this.$B);this.m_OpenerElement.attachEvent('onclick',this.$5);}if(this.m_CloserElement!=null){this.$6=ss.Delegate.create(this,this.$C);this.m_CloserElement.attachEvent('onclick',this.$6);}this.$4=ss.Delegate.create(this,this.$A);this.m_PopUpBackgroundElement.attachEvent('onclick',this.$4);if(this.m_ShowPopUpOnStartup){this.$7(false);}else{this.$9(false);}},tearDown:function(){if(this.$5!=null&&this.m_OpenerElement!=null){this.m_OpenerElement.detachEvent('onclick',this.$5);}if(this.$6!=null&&this.m_CloserElement!=null){this.m_CloserElement.detachEvent('onclick',this.$6);}if(this.$4!=null){this.m_PopUpBackgroundElement.detachEvent('onclick',this.$4);}Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript.callBaseMethod(this, 'tearDown');},popUpOpened:function(){},popUpClosed:function(){},$7:function($p0){this.$1.css('visibility','hidden');var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();this.$2.css('z-index',$0.toString());this.$2.show();$0++;this.$3.css('z-index',$0.toString());this.$3.show();if(this.$3.width()<this.$1.width()){this.$3.width(this.$1.width());}this.$8();if($p0){this.popUpOpened();}},$8:function(){var $0={};$0['my']='left top';$0['at']='left top';$0['of']=this.$1;this.$3.position($0);},$9:function($p0){this.$3.hide();this.$2.hide();this.$1.css('visibility','visible');if($p0){this.popUpClosed();}},$A:function(){this.$9(true);},$B:function(){this.$7(true);},$C:function(){this.$9(true);}}
Coveo.CNL.Web.Scripts.BetterControls.AutoCompleteItem=function(){Coveo.CNL.Web.Scripts.BetterControls.AutoCompleteItem.initializeBase(this);}
Coveo.CNL.Web.Scripts.BetterControls.AutoCompleteItem.prototype={m_Index:0,m_IsCorrection:false,m_WasShortened:false,m_IsCompletion:false,m_IsSampleQuery:false,m_Text:null,m_Query:null,m_ToolTip:null}
Coveo.CNL.Web.Scripts.BetterControls.BetterTextBoxScript=function(){this.$A=[8,9,13,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46,91,92,93,144,145];this.m_Selected=-1;Coveo.CNL.Web.Scripts.BetterControls.BetterTextBoxScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.BetterControls.BetterTextBoxScript.prototype={$B:0,$C:0,$D:0,$E:0,$F:false,$10:false,$11:false,$12:null,$13:null,$14:null,$15:null,$16:null,$17:null,get_$18:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ClearButton);return this.m_ClearButton.style.visibility==='visible'||this.m_ClearButton.style.visibility!=='hidden';},set_$18:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ClearButton);if($p0){this.m_ClearButton.style.visibility='visible';}else{this.m_ClearButton.style.visibility='hidden';}return $p0;},m_Timer:null,m_TooltipTimer:null,m_DropDown:null,m_InnerDropDown:null,m_Items:null,m_OuterBox:null,m_TextBox:null,m_ClearButton:null,m_AutoCompletionHiddenField:null,m_TypingDelay:0,m_DidYouMeanString:null,m_OriginalPrefix:null,m_SaveNewPrefix:false,m_IsTypingEventEnabled:false,m_IsAutoCompletionEnabled:false,m_AutoCompleteMenuCssClass:null,m_AutoCompleteInnerMenuCssClass:null,m_AutoCompleteItemCssClass:null,m_AutoCompleteItemSelectedCssClass:null,m_AutoCompleteItemTooltipCssClass:null,m_IE10TextBoxClearButtonCssClass:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_TextBox);this.$12=ss.Delegate.create(this,this.$1A);this.m_TextBox.attachEvent('onkeydown',this.$12);this.$13=ss.Delegate.create(this,this.$1B);this.m_TextBox.attachEvent('onkeypress',this.$13);this.$14=ss.Delegate.create(this,this.$19);this.m_TextBox.attachEvent('onkeyup',this.$14);this.$15=ss.Delegate.create(this,this.$1C);this.m_TextBox.attachEvent('onblur',this.$15);if(this.m_ClearButton!=null){if((Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE9())&&Coveo.CNL.Web.Scripts.BrowserHelper.getIECompatTridentVersion(null)>=6&&Coveo.CNL.Web.Scripts.BrowserHelper.get_ieDocumentMode()<10){this.m_ClearButton.style.display='none';this.m_ClearButton.parentNode.style.paddingLeft='0px';this.m_ClearButton=null;}else{this.m_TextBox.className=(this.m_TextBox.className||'')+' '+this.m_IE10TextBoxClearButtonCssClass;this.$16=ss.Delegate.create(this,this.$1D);this.m_ClearButton.attachEvent('onclick',this.$16);this.$2D();}}this.$17=ss.Delegate.create(this,this.$1E);$(document).mousemove(this.$17);},tearDown:function(){if(this.$12!=null){this.m_TextBox.detachEvent('onkeydown',this.$12);}if(this.$13!=null){this.m_TextBox.detachEvent('onkeypress',this.$13);}if(this.$14!=null){this.m_TextBox.detachEvent('onkeyup',this.$14);}if(this.$15!=null){this.m_TextBox.detachEvent('onblur',this.$15);}if(this.$16!=null){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ClearButton);this.m_ClearButton.detachEvent('onclick',this.$16);}if(this.$17!=null){$(document).unbind('onmousemove',this.$17);}},notifyServer:function(p_Text,p_KeyCode,p_Callback){},notifyUserSelectedAutoComplete:function(p_Callback){},$19:function(){if(this.m_SaveNewPrefix){this.m_OriginalPrefix=this.m_TextBox.value;this.m_SaveNewPrefix=false;}this.$2D();},$1A:function(){var $0=window.event.keyCode;var $1=window.event.ctrlKey;if($0===13){this.$20();if(this.m_IsAutoCompletionEnabled){if(this.m_Selected!==-1){this.$2A();}}this.$1C();}else if($0===8||$0===46){this.$20();if($1){window.event.cancelBubble=true;}this.$21();this.$1F($0);}else if(this.m_IsAutoCompletionEnabled){if($0===38||$0===40){this.$20();if(this.m_Items!=null){if($0===38){this.$27();}else{this.$26();}}window.event.cancelBubble=true;window.event.returnValue=false;}else if($0===27){this.$20();this.$22(true);window.event.cancelBubble=true;window.event.returnValue=false;}else if($0===9&&this.m_Items!=null){this.$20();if(this.m_Selected===-1){this.$28(0);}this.$2A();this.$21();window.event.cancelBubble=true;window.event.returnValue=false;}else if($0===39&&this.m_Items!=null){if(this.$2B(this.m_TextBox)){this.$20();this.$2A();this.$21();}}}},$1B:function(){var $0=window.event.keyCode;if(this.$2E($0)){return;}this.$20();if(this.m_IsAutoCompletionEnabled){if(this.m_Selected>-1){this.$2A();this.$21();}}this.$1F($0);this.$2D();},$1C:function(){if(this.m_IsAutoCompletionEnabled){this.$20();if(!false){new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$22),true,300);}}this.$2D();},$1D:function(){if(!this.m_TextBox.disabled){this.$11=true;this.m_TextBox.value='';this.m_TextBox.focus();this.$2D();}},$1E:function($p0){this.$B=$p0.pageX;this.$C=$p0.pageY;},$1F:function($p0){this.m_SaveNewPrefix=true;if(this.m_IsTypingEventEnabled||this.m_IsAutoCompletionEnabled){this.m_Timer=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,function($p1_0){
if(this.m_IsAutoCompletionEnabled){if(String.isNullOrEmpty(this.m_TextBox.value)){this.$21();}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Getting query suggests for ['+this.m_TextBox.value+']...');}this.notifyServer(this.m_TextBox.value,$p0,ss.Delegate.create(this,this.$23));}),null,this.m_TypingDelay);}},$20:function(){if(this.m_Timer!=null){this.m_Timer.cancel();}Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().cancelPendingOperations();},$21:function(){this.$22(false);},$22:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.check(Type.canCast($p0,Boolean));var $0=$p0;if(this.m_DropDown!=null){if($0&&!this.$10&&!this.$11){this.$28(-1);}this.m_DropDown.parentNode.removeChild(this.m_DropDown);this.m_DropDown=null;}this.m_Items=null;this.m_Selected=-1;},$23:function($p0){if(!this.m_IsAutoCompletionEnabled){return;}if($p0==null){this.$21();return;}this.$D=this.$B;this.$E=this.$C;this.$F=false;var $0=$p0;var $1=$0.selectNodes('//Correction');var $2=$0.selectNodes('//Completion');if(!!$1.length||!!$2.length){if(this.m_DropDown==null){this.m_DropDown=document.createElement('div');this.m_DropDown.style.position='absolute';this.m_DropDown.style.zIndex=999;this.m_DropDown.className=this.m_AutoCompleteMenuCssClass;this.m_TextBox.parentNode.appendChild(this.m_DropDown);var $4;if(this.m_OuterBox!=null){$4=this.m_OuterBox;}else{$4=this.m_TextBox;}this.m_DropDown.style.width=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize($4).width+'px';if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()){Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_DropDown,$4,6);}this.m_InnerDropDown=document.createElement('div');this.m_InnerDropDown.className=this.m_AutoCompleteInnerMenuCssClass;this.m_DropDown.appendChild(this.m_InnerDropDown);}else{this.m_InnerDropDown.innerHTML='';}this.m_Items=new Array($1.length+$2.length);this.m_Selected=-1;var $3=0;var $enum1=ss.IEnumerator.getEnumerator($1);while($enum1.moveNext()){var $5=$enum1.current;var $6=document.createElement('div');$6.m_Query=$5.text;$6.m_Text=$5.text;$6.m_Index=$3++;$6.m_IsCorrection=true;$6.innerHTML='<b>'+this.m_DidYouMeanString+':</b> '+$6.m_Query;$6.style.borderBottom='1px solid silver';$6.style.backgroundColor='whitesmoke';this.$24($6);}var $enum2=ss.IEnumerator.getEnumerator($2);while($enum2.moveNext()){var $7=$enum2.current;var $8=document.createElement('div');$8.m_Text=($7.attributes.getNamedItem('Text')).value;$8.m_Query=($7.attributes.getNamedItem('Query')).value;$8.m_WasShortened=Boolean.parse(($7.attributes.getNamedItem('WasShortened')).value);$8.m_Index=$3++;$8.m_IsCompletion=true;$8.innerHTML=($7.attributes.getNamedItem('DisplayText')).value;if($8.m_WasShortened){$8.m_ToolTip=document.createElement('div');$8.m_ToolTip.className=this.m_AutoCompleteItemTooltipCssClass;$8.m_ToolTip.innerHTML=$8.m_Text;}this.$24($8);}this.$10=false;}else{this.$21();}},$24:function($p0){$p0.style.cursor='pointer';$p0.style.padding='3px';$p0.className=this.m_AutoCompleteItemCssClass;$p0.attachEvent('onclick',ss.Delegate.create(this,function(){
if(!this.$10){if(this.m_Selected!==$p0.m_Index){this.$28($p0.m_Index);}this.$25($p0);}}));$p0.attachEvent('onmousemove',ss.Delegate.create(this,function(){
if(this.$D!==this.$B||this.$E!==this.$C){this.$F=true;if(this.m_Selected!==$p0.m_Index){this.$28($p0.m_Index);}}}));$p0.attachEvent('onmouseover',ss.Delegate.create(this,function(){
if(!this.$10){if(this.$F){this.$28($p0.m_Index);}}}));$p0.attachEvent('onmouseout',ss.Delegate.create(this,function(){
if(!this.$10){this.$28(-1);}}));this.m_InnerDropDown.appendChild($p0);if($p0.m_ToolTip!=null){this.m_InnerDropDown.appendChild($p0.m_ToolTip);}this.m_Items[$p0.m_Index]=$p0;},$25:function($p0){if(!$p0.m_IsSampleQuery){this.$2A();this.notifyUserSelectedAutoComplete(null);}},$26:function(){if(this.m_Selected<(this.m_Items.length-1)){this.$28(this.m_Selected+1);}else{this.$28(-1);}},$27:function(){if(this.m_Selected>=0){this.$28(this.m_Selected-1);}else{this.$28(this.m_Items.length-1);}},$28:function($p0){if(this.m_Selected!==-1){var $0=this.m_Items[this.m_Selected];$0.className=this.m_AutoCompleteItemCssClass;if(this.m_TooltipTimer!=null){this.m_TooltipTimer.cancel();}if($0.m_WasShortened&&!false){var $1=$($0.m_ToolTip);$1.hide();}}if($p0!==-1){var $2=this.m_Items[$p0];$2.className=this.m_AutoCompleteItemSelectedCssClass;this.m_TextBox.value=$2.m_Text;if($2.m_WasShortened){var $3=$($2.m_ToolTip);this.m_TooltipTimer=new Coveo.CNL.Web.Scripts.Timeout(function($p1_0){
$3.show();},null,100);}}else{if(this.m_DropDown!=null){this.m_TextBox.value=this.m_OriginalPrefix;}}Coveo.CNL.Web.Scripts.DOMUtilities.moveCaretAtTheEnd(this.m_TextBox);this.m_Selected=$p0;},$29:function($p0,$p1){var $0=$p1.m_Text;var $1=$0.indexOf('$');var $2=$0.lastIndexOf('$');if($1!==-1){if($1===$2){$0=$0.replaceAll('$','');}else{$0=$0.substring(0,$1)+'<u>'+$0.substring($1+1,$2)+'</u>'+$0.substring($2+1,$0.length);$p1.m_IsSampleQuery=true;}}return $0;},$2A:function(){this.$10=true;var $0=this.m_Items[this.m_Selected];if($0.m_IsCompletion){var $1=$0.m_Query.indexOf('$');var $2=$0.m_Query.lastIndexOf('$');if($1!==-1){if($1===$2){this.m_TextBox.value=$0.m_Query.replaceAll('$','');Coveo.CNL.Web.Scripts.DOMUtilities.setSelectedRange(this.m_TextBox,$1,$1);}else{this.m_TextBox.value=$0.m_Query.substring(0,$1)+$0.m_Query.substring($1+1,$2)+$0.m_Query.substring($2+1,$0.m_Query.length);Coveo.CNL.Web.Scripts.DOMUtilities.setSelectedRange(this.m_TextBox,$1,$2-1);}}else{this.m_TextBox.value=$0.m_Query;}}else{this.m_TextBox.value=$0.m_Query;}Coveo.CNL.Web.Scripts.DOMUtilities.moveCaretAtTheEnd(this.m_TextBox);if(this.m_AutoCompletionHiddenField!=null){this.m_AutoCompletionHiddenField.value='1';}},$2B:function($p0){var $0=0;$0=Coveo.CNL.Web.Scripts.DOMUtilities.getSelectionStart($p0);return $0===$p0.value.length;},$2C:function(){var $0=this.m_TextBox.value;if($0.length>0){while($0.endsWith(' ')||$0.endsWith('-')){$0=$0.substr(0,$0.length-1);}var $1=$0.lastIndexOf(' ');var $2=$0.lastIndexOf('-');var $3=Math.max($1,$2);if($3>0){this.m_TextBox.value=this.m_TextBox.value.substr(0,$3+1);}else{this.m_TextBox.value='';}}},$2D:function(){if(this.m_ClearButton!=null){if(this.m_TextBox.disabled){this.set_$18(false);}else if(this.m_TextBox.value.length>0&&!this.get_$18()){this.$11=false;this.set_$18(true);}else if(!this.m_TextBox.value.length){this.set_$18(false);}}},$2E:function($p0){var $0=false;var $enum1=ss.IEnumerator.getEnumerator(this.$A);while($enum1.moveNext()){var $1=$enum1.current;if($p0===$1){$0=true;break;}}return $0;}}
Coveo.CNL.Web.Scripts.BetterControls.TabControlScript=function(){Coveo.CNL.Web.Scripts.BetterControls.TabControlScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.BetterControls.TabControlScript.prototype={m_Element:null,m_Header:null,m_TabHeaders:null,m_Body:null,m_AllowSorting:false,m_SetBodyHeight:false,initialize:function(){if(this.m_AllowSorting){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_TabHeaders);var $0={};$0['axis']='x';$0['items']='.CnlMovableTab';$0['containment']='parent';$0['stop']=ss.Delegate.create(this,this.$2);$(this.m_TabHeaders).sortable($0);}if(this.m_SetBodyHeight){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Header);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Body);this.$1();}},tearDown:function(){},updateTabPositions:function(p_Tabs){},$1:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(!!this.m_Element.style.height);var $0=$(this.m_Element);var $1=$0.innerHeight();$1-=$(this.m_Header).outerHeight();this.m_Body.style.height=$1+'px';},$2:function($p0,$p1){var $0=[];for(var $1=0;$1<this.m_TabHeaders.children.length;++$1){var $2=this.m_TabHeaders.children[$1].id;var $3=$2.lastIndexOf('_');Coveo.CNL.Web.Scripts.CNLAssert.check($3!==-1);var $4=parseInt($2.substr($3+1));ArrayPrototype_add($0, $4);}this.updateTabPositions($0);}}
Coveo.CNL.Web.Scripts.BetterControls.BetterButtonScript=function(){Coveo.CNL.Web.Scripts.BetterControls.BetterButtonScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.BetterControls.BetterButtonScript.prototype={m_Button:null,m_DisableOnClick:false,m_DisableAlso:null,$1:null,initialize:function(){this.$1=ss.Delegate.create(this,this.$2);this.m_Button.attachEvent('onclick',this.$1);},tearDown:function(){if(this.$1!=null){this.m_Button.detachEvent('onclick',this.$1);this.$1=null;}},$2:function(){if(this.m_DisableOnClick){this.m_Button.disabled=true;if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty(this.m_DisableAlso)){var $0=new Coveo.CNL.Web.Scripts.StringDeserializer(this.m_DisableAlso);var $1=$0.getStringArray();for(var $2=0;$2<$1.length;$2++){var $3=$1[$2];var $4=document.getElementById($3);if($4!=null){$4.disabled=true;}}}}}}
Coveo.CNL.Web.Scripts.BetterControls.BetterLinkButtonScript=function(){Coveo.CNL.Web.Scripts.BetterControls.BetterLinkButtonScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.BetterControls.BetterLinkButtonScript.prototype={m_Button:null,m_DisableOnClick:false,$1:null,initialize:function(){this.$1=ss.Delegate.create(this,this.$2);this.m_Button.attachEvent('onclick',this.$1);},tearDown:function(){if(this.$1!=null){this.m_Button.detachEvent('onclick',this.$1);this.$1=null;}},$2:function(){if(this.m_DisableOnClick){this.m_Button.disabled=true;}}}
Type.registerNamespace('Coveo.CNL.Web.Scripts.Misc');Coveo.CNL.Web.Scripts.Misc.ResizeablePanelScript=function(){Coveo.CNL.Web.Scripts.Misc.ResizeablePanelScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Misc.ResizeablePanelScript.prototype={m_Panel:null,m_MinWidth:0,m_MaxWidth:0,m_MinHeight:0,m_MaxHeight:0,m_Handles:null,initialize:function(){if(this.m_Panel!=null){var $0={};if(this.m_MinWidth>0){$0['minWidth']=this.m_MinWidth;}if(this.m_MaxWidth>0){$0['maxWidth']=this.m_MaxWidth;}if(this.m_MinWidth>0){$0['minHeight']=this.m_MinHeight;}if(this.m_MaxWidth>0){$0['maxHeight']=this.m_MaxHeight;}if(!String.isNullOrEmpty(this.m_Handles)){$0['handles']=this.m_Handles;}$0['stop']=ss.Delegate.create(this,function($p1_0,$p1_1){
this.updatePanelSize(parseInt(($p1_1['size'])['width']),parseInt(($p1_1['size'])['height']));});$(this.m_Panel).resizable($0);}},updatePanelSize:function(p_Width,p_Height){}}
Coveo.CNL.Web.Scripts.Misc.WaterMarkTextBoxScript=function(){Coveo.CNL.Web.Scripts.Misc.WaterMarkTextBoxScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Misc.WaterMarkTextBoxScript.prototype={$1:null,$2:null,$3:false,m_ClientID:null,m_NonFocusText:null,m_NonFocusCssClass:null,m_IsPasswordBox:false,initialize:function(){this.$1=ss.Delegate.create(this,this.$4);this.$2=ss.Delegate.create(this,this.$5);var $0=this.$6();if(this.m_NonFocusText!=null&&!$0.value){if($0.className.indexOf(' '+this.m_NonFocusCssClass)===-1){$0.className+=' '+this.m_NonFocusCssClass;}$0.value=this.m_NonFocusText;if(this.m_IsPasswordBox){$0=this.$8($0,false);}}$0.attachEvent('onfocus',this.$1);$0.attachEvent('onblur',this.$2);},tearDown:function(){var $0=this.$6();if(this.$1!=null){$0.detachEvent('onfocus',this.$1);}if(this.$2!=null){$0.detachEvent('onblur',this.$2);}},$4:function(){if(!this.$3&&this.m_NonFocusText!=null){var $0=this.$6();if($0.className.indexOf(' '+this.m_NonFocusCssClass)!==-1){$0.value='';$0.className=$0.className.replaceAll(' '+this.m_NonFocusCssClass,'');}if(this.m_IsPasswordBox){$0=this.$9($0,true);}}},$5:function(){if(!this.$3&&this.m_NonFocusText!=null){var $0=this.$6();if(!$0.value){$0.className+=' '+this.m_NonFocusCssClass;$0.value=this.m_NonFocusText;if(this.m_IsPasswordBox){$0=this.$8($0,true);}}}},$6:function(){return document.getElementById(this.m_ClientID);},$7:function(){var $0=Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8();return !$0;},$8:function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);var $0=$p0;if(!this.$7()){$0=this.$A($p0,'text',false,$p1);}else{$p0.type='text';}return $0;},$9:function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);var $0=$p0;if(!this.$7()){$0=this.$A($p0,'password',true,$p1);}else{$p0.type='password';}return $0;},$A:function($p0,$p1,$p2,$p3){if($p0.type!==$p1){var $0=document.createElement('<input type="'+$p1+'" />');try{this.$3=true;$0.id=$p0.id;$0.name=$p0.name;$0.className=$p0.className;$0.value=$p0.value;var $dict1=$p0.style;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};if($0.style[$1.key]!==$1.value){$0.style[$1.key]=$1.value;}}if($p3){$p0.detachEvent('onfocus',this.$1);$p0.detachEvent('onblur',this.$2);}$p0.parentNode.replaceChild($0,$p0);if($p2){window.setTimeout(function(){
$0.focus();},0);}if($p3){$0.attachEvent('onfocus',this.$1);$0.attachEvent('onblur',this.$2);}}finally{this.$3=false;}return $0;}else{return $p0;}}}
Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript=function(){this.$4=[];Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript.prototype={$5:null,$6:null,$7:null,m_FolderTextBox:null,m_ListElem:null,m_FilenameTextBox:null,m_HiddenFocusStartElem:null,m_HiddenFocusEndElem:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_ListElem);var $0=this.m_ListElem.children;for(var $1=0;$1<$0.length;++$1){var $2=new Coveo.CNL.Web.Scripts.Misc.ListItem();$2.m_Index=$1;$2.m_TableElem=$0[$1];$2.m_Script=this;$2.m_OnClickHandler=ss.Delegate.create($2,$2.onClick);$2.m_TableElem.attachEvent('onclick',$2.m_OnClickHandler);$2.m_OnDblClickHandler=ss.Delegate.create($2,$2.onDblClick);$2.m_TableElem.attachEvent('ondblclick',$2.m_OnDblClickHandler);$2.m_OnKeyPressHandler=ss.Delegate.create($2,$2.onKeyPress);$2.m_TableElem.attachEvent('onkeypress',$2.m_OnKeyPressHandler);$2.m_OnMouseOverHandler=ss.Delegate.create($2,$2.onMouseOver);$2.m_TableElem.attachEvent('onmouseover',$2.m_OnMouseOverHandler);$2.m_OnMouseOutHandler=ss.Delegate.create($2,$2.onMouseOut);$2.m_TableElem.attachEvent('onmouseout',$2.m_OnMouseOutHandler);ArrayPrototype_add(this.$4, $2);}this.$5=ss.Delegate.create(this,this.$8);document.attachEvent('onkeydown',this.$5);this.$6=ss.Delegate.create(this,this.$9);this.m_HiddenFocusStartElem.attachEvent('onfocus',this.$6);this.$7=ss.Delegate.create(this,this.$A);this.m_HiddenFocusEndElem.attachEvent('onfocus',this.$7);},tearDown:function(){var $enum1=ss.IEnumerator.getEnumerator(this.$4);while($enum1.moveNext()){var $0=$enum1.current;$0.m_TableElem.detachEvent('onclick',ss.Delegate.create($0,$0.onClick));$0.m_TableElem.detachEvent('ondblclick',ss.Delegate.create($0,$0.onDblClick));$0.m_TableElem.detachEvent('onkeypress',ss.Delegate.create($0,$0.onKeyPress));$0.m_TableElem.detachEvent('onmouseover',$0.m_OnMouseOverHandler);$0.m_TableElem.detachEvent('onmouseout',$0.m_OnMouseOutHandler);}ArrayPrototype_clear(this.$4);this.m_ListElem=null;this.m_FolderTextBox=null;this.m_FilenameTextBox=null;document.detachEvent('onkeydown',this.$5);this.m_HiddenFocusStartElem.detachEvent('onfocus',this.$6);this.m_HiddenFocusEndElem.detachEvent('onfocus',this.$7);},listItem_OnClick:function(p_Item){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Item);var $0=p_Item.m_TableElem.children[0].children[0].children[1].innerText.trim();if(p_Item.m_TableElem.id.endsWith('_fi')){this.m_FilenameTextBox.value=$0;}p_Item.m_TableElem.focus();},listItem_OnDblClick:function(p_Item){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Item);var $0=p_Item.m_TableElem.children[0].children[0].children[1].innerText.trim();if(p_Item.m_TableElem.id.endsWith('_fi')){this.okButton_Clicked();}else{this.list_FolderDoubleClicked($0);}},listItem_OnKeyPress:function(p_Item){if(window.event.keyCode===13){this.listItem_OnClick(p_Item);this.listItem_OnDblClick(p_Item);window.event.cancelBubble=true;window.event.returnValue=false;}},list_FolderDoubleClicked:function(p_Directory){},okButton_Clicked:function(){},cancelButton_Clicked:function(){},$8:function(){if(window.event.keyCode===27){this.cancelButton_Clicked();window.event.cancelBubble=true;window.event.returnValue=false;}},$9:function(){this.m_HiddenFocusEndElem.previousSibling.focus();},$A:function(){this.m_HiddenFocusStartElem.nextSibling.focus();}}
Coveo.CNL.Web.Scripts.Misc.ListItem=function(){}
Coveo.CNL.Web.Scripts.Misc.ListItem.prototype={m_Index:0,m_TableElem:null,m_Script:null,m_OnClickHandler:null,m_OnDblClickHandler:null,m_OnKeyPressHandler:null,m_OnMouseOverHandler:null,m_OnMouseOutHandler:null,onClick:function(){this.m_Script.listItem_OnClick(this);},onDblClick:function(){this.m_Script.listItem_OnDblClick(this);},onKeyPress:function(){this.m_Script.listItem_OnKeyPress(this);},onMouseOver:function(){this.m_TableElem.className='CnlFilePickerHoveredItem';},onMouseOut:function(){this.m_TableElem.className='CnlFilePickerItem';}}
Coveo.CNL.Web.Scripts.Misc.TextChangedEventScript=function(){Coveo.CNL.Web.Scripts.Misc.TextChangedEventScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Misc.TextChangedEventScript.prototype={$2:null,$3:null,m_TextBox:null,m_PostbackTimeout:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_TextBox);this.$2=ss.Delegate.create(this,this.$4);this.$3=ss.Delegate.create(this,this.$5);this.m_TextBox.attachEvent('onkeydown',this.$2);this.m_TextBox.attachEvent('onkeyup',this.$3);},tearDown:function(){if(this.$2!=null){this.m_TextBox.detachEvent('onkeydown',this.$2);this.$2=null;}if(this.$3!=null){this.m_TextBox.detachEvent('onkeyup',this.$3);this.$3=null;}this.m_TextBox=null;},fireTextChanged:function(p_Text,p_Callback){},fireEscapePressed:function(){},$4:function(){if(window.event.keyCode===27){window.event.cancelBubble=true;window.event.returnValue=false;this.$7();this.fireEscapePressed();}},$5:function(){var $0=window.event.keyCode;if($0===13||$0===9){this.$7();this.$8(null);}else if($0===16||$0===17||$0===19||$0===20||$0===27||$0===33||$0===34||$0===35||$0===36||$0===144||$0===145){}else if($0>=37&&$0<=40){}else if($0>=112&&$0<=123){}else{this.$7();this.$6();}},$6:function(){Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.m_PostbackTimeout);this.m_PostbackTimeout=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$8),null,250);},$7:function(){if(this.m_PostbackTimeout!=null){this.m_PostbackTimeout.cancel();this.m_PostbackTimeout=null;}},$8:function($p0){this.m_PostbackTimeout=null;if(this.m_TextBox!=null){this.fireTextChanged(this.m_TextBox.value,ss.Delegate.create(this,this.$9));}},$9:function($p0){}}
Coveo.CNL.Web.Scripts.Misc.ToolTipScript=function(){Coveo.CNL.Web.Scripts.Misc.ToolTipScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Misc.ToolTipScript.prototype={m_HotSpot:null,m_PopupParent:null,m_Position:0,m_MaxWidth:0,m_ShowOnHover:false,m_ShowDelay:0,m_HideDelay:0,m_ShowOnClick:false,m_HideOnClick:false,m_HideOnClickElsewhere:false,m_FadeIn:false,m_HotSpotFocusStyle:null,m_StyleBeforeFocus:null,m_MakeTabable:false,$5:null,$6:null,$7:null,$8:null,$9:null,$A:null,$B:null,$C:null,initialize:function(){this.$10();if(this.$12()){this.$B=ss.Delegate.create(this,this.$15);this.$C=ss.Delegate.create(this,this.$16);this.m_HotSpot.attachEvent('onfocus',this.$B);this.m_HotSpot.attachEvent('onblur',this.$C);}},tearDown:function(){this.$11();if(this.$B!=null){this.m_HotSpot.detachEvent('onfocus',this.$B);this.$B=null;}if(this.$C!=null){this.m_HotSpot.detachEvent('onblur',this.$C);this.$C=null;}},fetchToolTipContent:function(p_Callback){Coveo.CNL.Web.Scripts.CNLAssert.fail();},$D:function(){if(this.$8==null){if(Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current()!=null){Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().blockTimer();}this.fetchToolTipContent(ss.Delegate.create(this,this.$F));}},$E:function(){if(this.$8!=null){this.$11();this.$8.parentNode.removeChild(this.$8);this.$8=null;this.$10();if(Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current()!=null){Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().unblockTimer();}}},$F:function($p0){this.$11();var $0=$p0;this.$8=document.createElement('div');this.$8.appendChild($0);this.$8.style.position='absolute';this.$8.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();if(this.m_FadeIn){Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$8,0);}this.m_PopupParent.appendChild(this.$8);if(!!this.m_MaxWidth&&Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$8).width>this.m_MaxWidth){this.$8.style.width=this.m_MaxWidth+'px';}Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.$8,this.m_HotSpot,this.m_Position);this.$10();if(this.m_FadeIn){this.$9=new Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager();this.$9.add(new Coveo.CNL.Web.Scripts.Ajax.GradualFadeInEffect(this.$8));this.$9.startAll(null);}},$10:function(){if(this.$8==null){if(this.m_ShowOnHover){this.$5=new Coveo.CNL.Web.Scripts.OnDwellEvent(this.m_HotSpot,this.m_ShowDelay,ss.Delegate.create(this,this.$13));}if(this.m_ShowOnClick){Coveo.CNL.Web.Scripts.Misc.ToolTipScript.callBaseMethod(this, 'initialize');this.addOnClickAttribute(this.m_HotSpot,ss.Delegate.create(this,this.$14),this.m_MakeTabable);}}else{if(this.m_ShowOnHover){this.$6=new Coveo.CNL.Web.Scripts.OnLeaveManyEvent([this.m_HotSpot,this.m_PopupParent,this.$8],this.m_HideDelay,ss.Delegate.create(this,this.$17));}if(this.m_HideOnClick){this.$A=ss.Delegate.create(this,this.$18);this.$8.attachEvent('onclick',this.$A);}if(this.m_ShowOnClick){Coveo.CNL.Web.Scripts.Misc.ToolTipScript.callBaseMethod(this, 'initialize');this.addOnClickAttribute(this.m_HotSpot,ss.Delegate.create(this,this.$18),this.m_MakeTabable);}if(this.m_HideOnClickElsewhere){this.$7=new Coveo.CNL.Web.Scripts.OnClickElsewhereEvent([this.m_HotSpot,this.m_PopupParent,this.$8],ss.Delegate.create(this,this.$17),true);}}},$11:function(){if(this.$9!=null){this.$9.terminateAll();this.$9=null;}if(this.$5!=null){this.$5.dispose();this.$5=null;}if(this.$6!=null){this.$6.dispose();this.$6=null;}if(this.m_ShowOnClick){Coveo.CNL.Web.Scripts.Misc.ToolTipScript.callBaseMethod(this, 'tearDown');}if(this.$8!=null&&this.m_HideOnClick){if(this.$A!=null){this.$8.detachEvent('onclick',this.$A);this.$A=null;}}if(this.$8!=null&&this.m_HideOnClickElsewhere){this.$7.dispose();this.$7=null;}},$12:function(){return this.m_HotSpotFocusStyle!=null&&!!this.m_HotSpotFocusStyle;},$13:function(){this.$D();},$14:function(){this.$D();},$15:function(){this.m_StyleBeforeFocus=this.m_HotSpot.style.cssText;this.m_HotSpot.style.cssText+='; '+this.m_HotSpotFocusStyle;},$16:function(){this.m_HotSpot.style.cssText=this.m_StyleBeforeFocus;},$17:function(){this.$E();},$18:function(){this.$E();}}
Type.registerNamespace('Coveo.CNL.Web.Scripts.Widgets');Coveo.CNL.Web.Scripts.Widgets.WidgetScript=function(){Coveo.CNL.Web.Scripts.Widgets.WidgetScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Widgets.WidgetScript.prototype={m_Element:null,m_Header:null,m_Body:null,m_SetBodyHeight:false,m_AllowResizingWidth:false,m_AllowResizingHeight:false,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Body);var $0=$(this.m_Element);if(this.m_SetBodyHeight){this.$1();}if(this.m_AllowResizingWidth||this.m_AllowResizingHeight){var $1={};if(this.m_AllowResizingWidth&&this.m_AllowResizingHeight){$1['handles']='s, e, se';}else if(this.m_AllowResizingWidth){$1['handles']='e';}else if(this.m_AllowResizingHeight){$1['handles']='s';}$1['grid']=[10,10];$1['resize']=ss.Delegate.create(this,this.$2);$1['stop']=ss.Delegate.create(this,this.$3);$0.resizable($1);}},tearDown:function(){},updateWidgetSize:function(p_Width,p_Height,p_Callback){},$1:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(!!this.m_Element.style.height);var $0=$(this.m_Element);var $1=$0.innerHeight();if(this.m_Header!=null){$1-=$(this.m_Header).outerHeight();}this.m_Body.style.height=$1+'px';},$2:function($p0){if(this.m_SetBodyHeight){this.$1();}},$3:function($p0){var $0=$(this.m_Element);this.updateWidgetSize($0.width(),$0.height(),null);}}
Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript=function(){Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.prototype={m_UniqueID:null,m_Widgets:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.m_UniqueID);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_Widgets);Coveo.CNL.Web.Scripts.CNLAssert.check(!Object.keyExists(Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.$2,this.m_UniqueID));Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.$2[this.m_UniqueID]=this;var $0=$(this.m_Widgets);$0.addClass('coveo_widget_zone');var $1={};$1['connectWith']='.'+'coveo_widget_zone';$1['handle']='.CnlWidgetHeader';$1['stop']=ss.Delegate.create(this,function($p1_0,$p1_1){
this.$3();});$0.sortable($1);},tearDown:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(Object.keyExists(Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.$2,this.m_UniqueID));delete Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.$2[this.m_UniqueID];},registerWidget:function(p_ClientID,p_UniqueID){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_ClientID);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_UniqueID);var $0=document.getElementById(p_ClientID);$0.m_UniqueID=p_UniqueID;},updateWidgetPositions:function(p_Xml,p_Callback){},$3:function(){var $0=new ss.StringBuilder();$0.append('<Zones>');var $dict1=Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.$2;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};var $2=$1.value;var $3=$($2.m_Widgets);$0.append('<Zone UniqueID="'+$1.key+'">');$3.children('.CnlWidget').each(function($p1_0,$p1_1){
var $1_0=$p1_1.m_UniqueID;Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($1_0);$0.append('<Widget>'+$1_0+'</Widget>');});$0.append('</Zone>');}$0.append('</Zones>');this.updateWidgetPositions($0.toString(),null);}}
Type.registerNamespace('Coveo.CNL.Web.Scripts.Ajax');Coveo.CNL.Web.Scripts.Ajax.EasingFunction=function(){};Coveo.CNL.Web.Scripts.Ajax.EasingFunction.prototype = {flat:1,fastSlow:2,slowFast:3,slowFastSlow:4}
Coveo.CNL.Web.Scripts.Ajax.EasingFunction.registerEnum('Coveo.CNL.Web.Scripts.Ajax.EasingFunction',false);Coveo.CNL.Web.Scripts.Ajax.IContentFlipper=function(){};Coveo.CNL.Web.Scripts.Ajax.IContentFlipper.registerInterface('Coveo.CNL.Web.Scripts.Ajax.IContentFlipper');Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess=function(){}
Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess.prototype={$0:null,get_manager:function(){return this.$0;},set_manager:function(value){this.$0=value;return value;},start:function(){this.beginProcess();},terminate:function(){this.endProcess();if(this.$0!=null){this.$0.processIsDone(this);}}}
Coveo.CNL.Web.Scripts.Ajax.ControlFlipper=function(p_Old,p_Html){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Old);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Html);this.$0=p_Old;this.$1=p_Html;this.$2=document.createElement('div');this.$2.style.display='none';document.body.appendChild(this.$2);this.$2.innerHTML=this.$1;Coveo.CNL.Web.Scripts.CNLAssert.check(this.$2.children.length===1);}
Coveo.CNL.Web.Scripts.Ajax.ControlFlipper.prototype={$0:null,$1:null,$2:null,get_newContent:function(){return this.$2.firstChild;},flip:function(){var $0=this.$3();var $1=this.$2.firstChild;this.$0.parentNode.insertBefore($1,this.$0);this.$0.parentNode.removeChild(this.$0);this.$2.parentNode.removeChild(this.$2);this.$4($0);return $1;},$3:function(){var $0='';if((Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE11CompatPlus())&&document.activeElement!=null&&document.activeElement.tagName==='INPUT'){var $1=document.activeElement;if(!String.compare($1.type,'text',true)){var $2=document.activeElement;while($2!=null){if($2===this.$0){$0=$1.id;break;}$2=$2.parentNode;}}}return $0;},$4:function($p0){if(!String.isNullOrEmpty($p0)){var $0=null;var $1=0;var $2=document.getElementsByTagName('input');for(var $3=0;$3<$2.length;++$3){var $4=$2[$3];if(!String.compare($4.type,'text',true)){var $5=$4.id;var $6=0;while($6<$p0.length&&$6<$5.length&&$p0.charAt($6)===$5.charAt($6)){++$6;}if($6>$1){$0=$4;$1=$6;}}}if($0!=null){$0.focus();}}}}
Coveo.CNL.Web.Scripts.Ajax.CollapseTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.CollapseTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.CollapseTransition.prototype={$2:null,$3:null,$4:0,$5:null,$6:null,$7:null,$8:null,beginTransition:function(){this.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).height;this.$6=document.createElement('div');this.$6.style.overflow='hidden';this.$6.style.height=this.$4+'px';this.$5=new Coveo.CNL.Web.Scripts.TransferMargin(this.$3,this.$6);this.$3.parentNode.replaceChild(this.$6,this.$3);this.$6.appendChild(this.$3);this.$8=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(300,1);this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,0);},endTransition:function(){if(this.$7!=null){this.$7.cancel();this.$7=null;}this.$3.style.display='none';this.$5.restore();this.$6.parentNode.replaceChild(this.$2.flip(),this.$6);},$9:function($p0){this.$8.ensureStarted();this.$6.style.height=((this.$4*Math.cos(Math.PI*this.$8.getPercentage()/2))).toString()+'px';if(!this.$8.isFinished()){this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.AdjustTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.AdjustTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.AdjustTransition.prototype={$2:null,$3:null,$4:0,$5:0,$6:null,$7:null,$8:null,$9:null,beginTransition:function(){this.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).height;this.$3=this.$2.flip();this.$5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).height-this.$4;this.$7=document.createElement('div');this.$7.style.overflow='hidden';this.$7.style.height=this.$4+'px';this.$6=new Coveo.CNL.Web.Scripts.TransferMargin(this.$3,this.$7);this.$3.parentNode.replaceChild(this.$7,this.$3);this.$7.appendChild(this.$3);this.$9=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(300,1);this.$8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$A),null,0);},endTransition:function(){if(this.$8!=null){this.$8.cancel();this.$8=null;}this.$6.restore();this.$7.parentNode.replaceChild(this.$3,this.$7);},$A:function($p0){this.$9.ensureStarted();this.$7.style.height=((this.$4+this.$5*Math.sin(Math.PI*this.$9.getPercentage()/2))).toString()+'px';if(!this.$9.isFinished()){this.$8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$A),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.Console=function(){Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CNL.Web.Scripts.Ajax.Console.$0);Coveo.CNL.Web.Scripts.Ajax.Console.$0=this;this.$1=document.createElement('div');this.$1.style.position='absolute';this.$1.style.left='5%';this.$1.style.top='5%';this.$1.style.width='90%';this.$1.style.height='90%';this.$1.style.border='2px solid silver';this.$1.style.backgroundColor='whitesmoke';document.body.appendChild(this.$1);this.$2=document.createElement('div');this.$2.style.fontFamily='Consolas';this.$2.style.fontSize='10pt';this.$2.style.padding='10px';this.$1.appendChild(this.$2);this.$1.style.display='none';document.body.attachEvent('onkeypress',ss.Delegate.create(this,this.$4));Coveo.CNL.Web.Scripts.Ajax.Console.writeLine('allo');Coveo.CNL.Web.Scripts.Ajax.Console.writeLine('toi');}
Coveo.CNL.Web.Scripts.Ajax.Console.writeLine=function(p_Text){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Text);if(Coveo.CNL.Web.Scripts.Ajax.Console.$0!=null){Coveo.CNL.Web.Scripts.Ajax.Console.$0.outputLineOfText(p_Text);}}
Coveo.CNL.Web.Scripts.Ajax.Console.writeHtmlLine=function(p_Html){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Html);if(Coveo.CNL.Web.Scripts.Ajax.Console.$0!=null){Coveo.CNL.Web.Scripts.Ajax.Console.$0.outputLineOfHtml(p_Html);}}
Coveo.CNL.Web.Scripts.Ajax.Console.prototype={$1:null,$2:null,$3:false,outputLineOfText:function(p_Text){var $0=document.createElement('div');$0.innerText=p_Text;this.$2.appendChild($0);},outputLineOfHtml:function(p_Html){var $0=document.createElement('div');$0.innerHTML=p_Html;this.$2.appendChild($0);},$4:function(){if(window.event.keyCode===126){if(!this.$3){this.$1.style.display='block';this.$3=true;}else{this.$1.style.display='none';this.$3=false;}window.event.cancelBubble=true;}}}
Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript=function(){}
Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript.prototype={$0:null,get_ownerId:function(){return this.$0;},set_ownerId:function(value){this.$0=value;return value;},initialize:function(){},tearDown:function(){}}
Coveo.CNL.Web.Scripts.Ajax.BlankFeedback=function(p_Element,p_Fullscreen,p_Image){Coveo.CNL.Web.Scripts.Ajax.BlankFeedback.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Image);this.$4=p_Element;this.$6=p_Fullscreen;this.$7=p_Image;}
Coveo.CNL.Web.Scripts.Ajax.BlankFeedback.prototype={$4:null,$5:null,$6:false,$7:null,beginFeedback:function(){var $0;if(this.$6){$0=Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle();}else{$0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds(this.$4.parentNode);$0=Coveo.CNL.Web.Scripts.DOMUtilities.getIntersection($0,Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle());}this.$5=document.createElement('div');this.$5.style.backgroundColor='white';this.$5.style.position='absolute';this.$5.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$5,0.75);document.body.appendChild(this.$5);Coveo.CNL.Web.Scripts.DOMUtilities.setElementBounds(this.$5,$0);this.$5.innerHTML='<table width=100% height=100%><tr><td align="center"><img src="'+this.$7+'"/></tr></td></table>';},endFeedback:function(){document.body.removeChild(this.$5);}}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap=function(){}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPage=function(p_Path,p_Element,p_ForwardQueryString){var $0={};$0['ForwardQueryString']=p_ForwardQueryString;Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPageWithOptions(p_Path,p_Element,$0);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPageWithOptions=function(p_Path,p_Element,p_Options){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Path);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Options);var $0={};$0['']=p_Element;Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPanelsWithOptions(p_Path,$0,p_Options);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPanels=function(p_Path,p_Panels,p_ForwardQueryString){var $0={};$0['ForwardQueryString']=p_ForwardQueryString;Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPanelsWithOptions(p_Path,p_Panels,$0);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.insertAjaxAspNetPanelsWithOptions=function(p_Path,p_Panels,p_Options){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Path);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Panels);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Options);Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$9(p_Options);if(p_Path.startsWith('http://')||p_Path.startsWith('https://')){alert('The Path argument must not include a server name.');}var $0=p_Path;if($0.indexOf('?')===-1){$0+='?';}if(Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$A(p_Options)&&!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty(window.location.search)){$0+='&'+window.location.search.substr(1);}if(Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$B(p_Options)){Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3=Coveo.CNL.Web.Scripts.Utilities.createGetXmlHttpRequest($0);Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.setRequestHeader('Coveo-Partial-Postback','1');Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.setRequestHeader('Coveo-Bootstrap','1');if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty(window.location.hash)&&window.location.hash.startsWith('#s=')){Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.setRequestHeader('Coveo-HState',window.location.hash.substr(3));}}else{$0+='&'+'Coveo-Partial-Postback'+'=1';$0+='&'+'Coveo-Bootstrap'+'=1';if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty(window.location.hash)&&window.location.hash.startsWith('#s=')){$0+='&'+'Coveo-HState'+'='+window.location.hash.substr(3);}Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3=Coveo.CNL.Web.Scripts.Utilities.createGetXmlHttpRequest($0);}Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.onreadystatechange=function(){
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$4(p_Path,p_Panels,p_Options);};Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.send('');}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$4=function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p1);if(Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.readyState===4){var $0=false;if(Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.status===200){var $1=Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.responseXML;if(!ss.isNullOrUndefined($1)&&$1.documentElement!=null){Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$5($p0,$p1,$1,$p2);}else{$0=true;}}else{$0=true;}if($0){var $2=Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.responseText;if(String.isNullOrEmpty($2)){$2='Cannot load the interface: '+Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3.statusText;}if(!Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$C($p2)){Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$6($2,$p1);}else{Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$7($2);}}Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3=null;}}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$5=function($p0,$p1,$p2,$p3){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p1);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p2);var $0=$p2.selectSingleNode('/AjaxManager/Bootstrap');Coveo.CNL.Web.Scripts.CNLAssert.notNull($0);var $1=$0.text;Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($1);var $2;var $3=[];if($p1['']!=null){Coveo.CNL.Web.Scripts.CNLAssert.check(Object.getKeyCount($p1)===1);var $A=$p1[''];$A.innerHTML=$1;$2=$A.getElementsByTagName('form')[0];Coveo.CNL.Web.Scripts.CNLAssert.notNull($2);}else{var $B=document.createElement('div');$B.style.display='none';$B.innerHTML=$1;document.body.appendChild($B);var $dict1=$p1;for(var $key2 in $dict1){var $D={key:$key2,value:$dict1[$key2]};var $E=$D.value;Coveo.CNL.Web.Scripts.CNLAssert.notNull($E);var $F=document.createElement('form');ArrayPrototype_add($3, $F);var $10=document.getElementById($D.key);$E.innerHTML='';$E.appendChild($F);$10.parentNode.removeChild($10);$F.appendChild($10);}$2=$B.getElementsByTagName('form')[0];Coveo.CNL.Web.Scripts.CNLAssert.notNull($2);var $C=[];ArrayPrototype_addRange($C, $2.elements);$2.innerHTML='';for(var $11=0;$11<$C.length;++$11){$2.appendChild($C[$11]);}$2.style.display='none';document.body.appendChild($2);$B.parentNode.removeChild($B);$B=null;}var $4=$p2.selectNodes('/AjaxManager/ProtectAgainstRestore');for(var $12=0;$12<$4.length;++$12){var $13=$4[$12];var $14=($13.attributes.getNamedItem('Id')).value;Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($14);var $15=document.getElementById($14);Coveo.CNL.Web.Scripts.CNLAssert.notNull($15);Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.takeBackupOfValue($15);}$2.action=$p0;var $5=null;var $6=$2.getElementsByTagName('input');for(var $16=0;$16<$6.length;++$16){var $17=$6[$16];if($17.name==='__VIEWSTATE'){$5=$17.value;break;}}Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($5);var $7;if(!!$3.length){$7=new Array($3.length);for(var $18=0;$18<$3.length;++$18){$7[$18]=$3[$18];}}else{$7=null;}var $8=($0.attributes.getNamedItem('Id')).value;Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($8);var $9=new Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript();_aM = $9;;$9.set_bootstrap(true);$9.set_enableHistory(true);$9.initialize($8,$2,$7,Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$8,$p2,true,Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$B($p3));eval('__doPostBack = function(t, a) { _aM.DPB(t, a); };');Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.$15($p2);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$6=function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p1);var $dict1=$p1;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=$0.value;$1.innerHTML=$p0;}}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$7=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=document.body;$0.innerHTML=$p0;}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$8=function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.fail();}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$9=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);var $dict1=$p0;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};switch($0.key){case 'ForwardQueryString':case 'CanAddHttpHeaders':case 'DisplayErrorsInWholePage':if(ss.isNullOrUndefined($0.value)){alert("The bootstrap option '"+$0.key+"' value is null or undefined. The default value will be used.");}else if(!(Type.canCast($0.value,Boolean))){alert("The bootstrap option '"+$0.key+"' value '"+$0.value.toString()+"' is not a bool. The default value will be used.");}break;default:alert("The bootstrap option '"+$0.key+"' is not recognized.");break;}}}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$A=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);return Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$D('ForwardQueryString',$p0,true);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$B=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);return Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$D('CanAddHttpHeaders',$p0,true);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$C=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);return Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$D('DisplayErrorsInWholePage',$p0,false);}
Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$D=function($p0,$p1,$p2){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p1);var $0=$p2;var $1=$p1[$p0];if(!ss.isNullOrUndefined($1)&&Type.canCast($1,Boolean)){$0=$1;}return $0;}
Coveo.CNL.Web.Scripts.Ajax.AjaxProgressScript=function(p_Manager,p_PostBack){Coveo.CNL.Web.Scripts.Ajax.AjaxProgressScript.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Manager);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_PostBack);this.$3=p_Manager;this.$4=p_PostBack;Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(this.$3.get_progressPageUri());}
Coveo.CNL.Web.Scripts.Ajax.AjaxProgressScript.prototype={$3:null,$4:null,$5:null,$6:null,$7:null,$8:false,beginProcess:function(){this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,500);},endProcess:function(){if(this.$5!=null){this.$5.cancel();this.$5=null;}if(this.$6!=null){this.$6.abort();this.$6=null;}if(this.$7!=null){this.$7.parentNode.removeChild(this.$7);this.$7=null;}this.$8=true;},$9:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$6);this.$6=Coveo.CNL.Web.Scripts.Utilities.createGetXmlHttpRequest(this.$3.get_progressPageUri()+'&rqid='+this.$4.get_uniqueID());this.$6.onreadystatechange=ss.Delegate.create(this,this.$A);this.$6.send(null);},$A:function(){if(this.$6.readyState===4){if(this.$7!=null){this.$7.parentNode.removeChild(this.$7);this.$7=null;}if(this.$6.status===200&&!!this.$6.responseText){this.$7=document.createElement('div');this.$7.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();Coveo.CNL.Web.Scripts.DOMUtilities.coverAllWindow(this.$7);document.body.appendChild(this.$7);var $0=document.createElement('table');$0.style.width='100%';$0.style.height='100%';var $1=$0.insertRow(0);var $2=$1.insertCell(0);$2.align='center';$2.valign='middle';this.$7.appendChild($0);var $3=document.createElement('div');$3.innerHTML=this.$6.responseText;$2.appendChild($3);}else if(this.$6.status===200){}else{Coveo.CNL.Web.Scripts.CNLAssert.fail();}this.$6=null;if(!this.$8){this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,500);}}}}
Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript=function(){Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript.initializeBase(this);}
Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript.prototype={$1:null,$2:null,$3:null,addOnClickAttribute:function(p_Element,p_OnClickEventHandler,p_MakeTabable){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_OnClickEventHandler);Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$1);Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$2);Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$3);this.$1=p_Element;this.$2=p_OnClickEventHandler;this.$1.attachEvent('onclick',this.$2);if(p_MakeTabable){this.$3=ss.Delegate.create(this,this.$4);this.$1.attachEvent('onkeydown',this.$3);this.$1.setAttribute('tabIndex','0');}},initialize:function(){},tearDown:function(){if(this.$3!=null){this.$1.detachEvent('onkeydown',this.$3);this.$1.removeAttribute('tabIndex');this.$3=null;}if(this.$2!=null){this.$1.detachEvent('onclick',this.$2);this.$2=null;}this.$1=null;},$4:function(){if(window.event.keyCode===13){this.$2();window.event.cancelBubble=true;window.event.returnValue=false;}}}
Coveo.CNL.Web.Scripts.Ajax.DropDownContentController=function(){Coveo.CNL.Web.Scripts.Ajax.DropDownContentController.initializeBase(this);}
Coveo.CNL.Web.Scripts.Ajax.DropDownContentController.prototype={$1:null,m_DropDown:null,m_HotSpot:null,m_DisplayOnHotSpotOver:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_HotSpot);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_DropDown);this.m_HotSpot.attachEvent('onclick',ss.Delegate.create(this,this.$4));this.m_DropDown.attachEvent('onclick',ss.Delegate.create(this,this.$5));if(this.m_DisplayOnHotSpotOver!=null){this.m_HotSpot.attachEvent('onmouseover',ss.Delegate.create(this,this.$2));this.m_HotSpot.attachEvent('onmouseout',ss.Delegate.create(this,this.$3));}},tearDown:function(){this.m_HotSpot.detachEvent('onclick',ss.Delegate.create(this,this.$4));this.m_DropDown.detachEvent('onclick',ss.Delegate.create(this,this.$5));if(this.m_DisplayOnHotSpotOver!=null){this.m_HotSpot.detachEvent('onmouseover',ss.Delegate.create(this,this.$2));this.m_HotSpot.detachEvent('onmouseout',ss.Delegate.create(this,this.$3));}this.m_DropDown=null;this.m_HotSpot=null;this.m_DisplayOnHotSpotOver=null;},$2:function(){this.m_DisplayOnHotSpotOver.style.display='inline';Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().blockTimer();},$3:function(){this.m_DisplayOnHotSpotOver.style.display='none';Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().unblockTimer();},$4:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_HotSpot);Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.m_DropDown);if(this.m_DropDown.style.display==='none'){if(this.$1==null){this.$1=new Coveo.CNL.Web.Scripts.OnLeaveManyEvent([this.m_HotSpot,this.m_DropDown],200,ss.Delegate.create(this,this.$7));}else{this.$1.attach([this.m_HotSpot,this.m_DropDown],200,ss.Delegate.create(this,this.$7));}this.$6();}else{this.$7();}},$5:function(){if(window.event.srcElement!==this.m_DropDown){this.$7();}},$6:function(){this.m_DropDown.style.position='absolute';this.m_DropDown.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();this.m_DropDown.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.positionElement(this.m_DropDown,this.m_HotSpot,6);Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().blockTimer();},$7:function(){if(this.m_DropDown.style.display==='block'){this.m_DropDown.style.display='none';this.$1.dispose();Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current().unblockTimer();}}}
Coveo.CNL.Web.Scripts.Ajax.DropDownMenuControler=function(){this.$2={};Coveo.CNL.Web.Scripts.Ajax.DropDownMenuControler.initializeBase(this);}
Coveo.CNL.Web.Scripts.Ajax.DropDownMenuControler.prototype={$1:null,$3:null,initialize:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$2);},tearDown:function(){this.$2=null;},addMenuDropdown:function(p_HotSpotID,p_DropDownID){this.$2[p_HotSpotID]=p_DropDownID;var $0=document.getElementById(p_HotSpotID);var $1=document.getElementById(p_DropDownID);$0.attachEvent('onmouseover',ss.Delegate.create(this,this.$4));},$4:function(){var $0=null;var $1=null;var $dict1=this.$2;for(var $key2 in $dict1){var $2={key:$key2,value:$dict1[$key2]};$0=document.getElementById($2.key);if($0.contains(window.event.srcElement)){break;}}Coveo.CNL.Web.Scripts.CNLAssert.notNull($0);$1=document.getElementById(this.$2[$0.id].toString());Coveo.CNL.Web.Scripts.CNLAssert.notNull($1);if(this.$3!==$1){if(this.$1==null){this.$1=new Coveo.CNL.Web.Scripts.OnLeaveManyEvent([$0,$1],300,ss.Delegate.create(this,this.$5));}else{this.$1.dispose();this.$1.attach([$0,$1],300,ss.Delegate.create(this,this.$5));}this.$6($0,$1);}},$5:function(){var $dict1=this.$2;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};var $1=document.getElementById($0.value.toString());$1.style.display='none';}this.$3=null;},$6:function($p0,$p1){if(this.$3!=null){this.$3.style.display='none';}$p1.style.position='absolute';$p1.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();$p1.style.display='block';Coveo.CNL.Web.Scripts.DOMUtilities.positionElement($p1,$p0,6);this.$3=$p1;}}
Coveo.CNL.Web.Scripts.Ajax.PostbackOptionsScript=function(p_Data){var $0=new Coveo.CNL.Web.Scripts.StringDeserializer(p_Data);this.$0=$0.getBool();this.$1=$0.getBool();this.$2=$0.getBool();this.$3=$0.getBool();}
Coveo.CNL.Web.Scripts.Ajax.PostbackOptionsScript.prototype={$0:false,$1:true,$2:true,$3:false,get_forcePartialPostback:function(){return this.$0;},get_sendControlData:function(){return this.$1;},get_triggerFeedbacks:function(){return this.$2;},get_ignoreResults:function(){return this.$3;},set_ignoreResults:function(value){this.$3=value;return value;}}
Coveo.CNL.Web.Scripts.Ajax.ProcessingFeedBack=function(p_Target,p_Text){Coveo.CNL.Web.Scripts.Ajax.ProcessingFeedBack.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Target);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Text);this.$5=p_Target;this.$6=p_Text;}
Coveo.CNL.Web.Scripts.Ajax.ProcessingFeedBack.prototype={$5:null,$6:null,$7:null,$8:null,$9:0,$A:null,beginFeedback:function(){this.$8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$B),null,0);this.$A=this.$5.style.display;this.$5.style.display='none';this.$7=document.createElement('span');this.$7.innerText=this.$6+' .  ';this.$5.parentNode.insertBefore(this.$7,this.$5);},endFeedback:function(){this.$8.cancel();this.$5.parentNode.removeChild(this.$7);this.$5.style.display=this.$A;},$B:function($p0){switch(this.$9){case 0:this.$7.innerText=this.$6+' .  ';++this.$9;break;case 1:this.$7.innerText=this.$6+' .. ';++this.$9;break;case 2:this.$7.innerText=this.$6+' ...';this.$9=0;break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();break;}this.$8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$B),null,750);}}
Coveo.CNL.Web.Scripts.Ajax.Profiler=function(){this.$3=new Date();this.$4=[];Coveo.CNL.Web.Scripts.Ajax.Profiler.$0=this;}
Coveo.CNL.Web.Scripts.Ajax.Profiler.log=function(p_Message){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Message);if(Coveo.CNL.Web.Scripts.Ajax.Profiler.$0!=null){Coveo.CNL.Web.Scripts.Ajax.Profiler.$0.$6(p_Message);}}
Coveo.CNL.Web.Scripts.Ajax.Profiler.prototype={$5:null,stop:function(){Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Profiling stopped.');if(Coveo.CNL.Web.Scripts.Ajax.Profiler.$1!=null){Coveo.CNL.Web.Scripts.CNLAssert.notNull(Coveo.CNL.Web.Scripts.Ajax.Profiler.$2);Coveo.CNL.Web.Scripts.Ajax.Profiler.$2.detachEvent('onclick',this.$5);Coveo.CNL.Web.Scripts.Ajax.Profiler.$1.parentNode.removeChild(Coveo.CNL.Web.Scripts.Ajax.Profiler.$1);}var $0=document.createElement('div');$0.style.position='absolute';$0.style.left='10px';$0.style.top='10px';$0.style.padding='5px';$0.style.border='1px solid black';$0.style.backgroundColor='white';$0.style.zIndex=999;$0.style.fontFamily='Tahoma';$0.style.fontSize='8pt';var $1=document.createElement('a');$1.innerText='Close';this.$5=ss.Delegate.create(this,this.$7);$1.attachEvent('onclick',this.$5);$1.href='javascript:void(0);';$0.appendChild($1);for(var $2=0;$2<this.$4.length;$2++){var $3=this.$4[$2];var $4=document.createElement('div');$4.innerHTML=$3;$0.appendChild($4);}document.body.appendChild($0);Coveo.CNL.Web.Scripts.Ajax.Profiler.$2=$1;Coveo.CNL.Web.Scripts.Ajax.Profiler.$1=$0;Coveo.CNL.Web.Scripts.Ajax.Profiler.$0=null;},$6:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=new Date().getTime()-this.$3.getTime();ArrayPrototype_add(this.$4, '+'+$0.toString()+' - '+$p0);},$7:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(Coveo.CNL.Web.Scripts.Ajax.Profiler.$1);Coveo.CNL.Web.Scripts.Ajax.Profiler.$1.style.display='none';}}
Coveo.CNL.Web.Scripts.Ajax.PercentTimer=function(p_Duration,p_EasingFunction){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Duration>0);this.$0=p_Duration;this.$3=p_EasingFunction;}
Coveo.CNL.Web.Scripts.Ajax.PercentTimer.prototype={$0:0,$1:null,$2:false,$3:0,ensureStarted:function(){if(!this.$2){this.$1=new Date();this.$2=true;}},getElapsedTime:function(){return new Date().getTime()-this.$1.getTime();},getPercentage:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(this.$2);var $0;var $1=this.getElapsedTime();if($1<=0){$0=0;}else if($1<this.$0){$0=$1/this.$0;Coveo.CNL.Web.Scripts.CNLAssert.check(!!$0);switch(this.$3){case 1:break;case 2:$0=Math.sin(Math.PI*Math.sin(Math.PI*$0/2)/2);break;case 3:$0=Math.cos(Math.PI*Math.cos(Math.PI*$0/2)/2);break;case 4:$0=1-Math.cos(Math.PI*Math.sin(Math.PI*$0/2)/2);break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();break;}}else{$0=1;}return $0;},isFinished:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(this.$2);return this.getElapsedTime()>=this.$0;}}
Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger=function(p_Flipper,p_Info){Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Info);this.$2=p_Flipper;this.$3=p_Info;}
Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger.prototype={$2:null,$3:null,$4:null,$5:null,beginTransition:function(){var $0=this.$2.flip();this.$4=document.createElement('div');this.$4.style.position='absolute';this.$4.style.zIndex=999;this.$4.style.border='2px solid red';this.$4.style.padding='5px';document.body.appendChild(this.$4);Coveo.CNL.Web.Scripts.DOMUtilities.setElementBounds(this.$4,Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds($0));var $1=document.createElement('span');$1.style.fontFamily='verdana';$1.style.fontWeight='bold';$1.style.fontSize='8pt';$1.style.color='white';$1.style.backgroundColor='black';$1.innerText=this.$3;this.$4.appendChild($1);this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$6),null,3000);},endTransition:function(){if(this.$5!=null){this.$5.cancel();this.$5=null;}this.$4.parentNode.removeChild(this.$4);},$6:function($p0){this.$5=null;this.terminate();}}
Coveo.CNL.Web.Scripts.Ajax.FlipFadeTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.FlipFadeTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.FlipFadeTransition.prototype={$2:null,$3:null,$4:null,$5:null,$6:null,beginTransition:function(){if(!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$2.get_newContent(),0);}this.$3=this.$2.flip();if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){this.$4=document.createElement('div');this.$4.style.backgroundColor='white';this.$4.style.position='absolute';this.$4.style.zIndex=999;document.body.appendChild(this.$4);Coveo.CNL.Web.Scripts.DOMUtilities.setElementBounds(this.$4,Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds(this.$3));}this.$6=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(100,1);this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,0);},endTransition:function(){if(this.$5!=null){this.$5.cancel();this.$5=null;}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){document.body.removeChild(this.$4);}else{this.$3.style.opacity='';}},$7:function($p0){this.$6.ensureStarted();if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$4,1-this.$6.getPercentage());}else{Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$3,this.$6.getPercentage());}if(!this.$6.isFinished()){this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,25);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.IdMappings=function(){this.$0={};}
Coveo.CNL.Web.Scripts.Ajax.IdMappings.prototype={add:function(p_Id,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);this.$0[p_Id]=p_Value;},remove:function(p_Id){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);delete this.$0[p_Id];},get:function(p_Id){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);var $0=null;var $1=null;var $dict1=this.$0;for(var $key2 in $dict1){var $2={key:$key2,value:$dict1[$key2]};if(($1==null||$2.key.length>$1.length)&&p_Id.startsWith($2.key)){$0=$2.value;}}return $0;},clear:function(){this.$0={};}}
Coveo.CNL.Web.Scripts.Ajax.Feedback=function(){this.m_InitialDelay=25;Coveo.CNL.Web.Scripts.Ajax.Feedback.initializeBase(this);}
Coveo.CNL.Web.Scripts.Ajax.Feedback.create=function(p_Id,p_Type,p_Target,p_Fullscreen,p_Text,p_Image){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Type);var $0;switch(p_Type){case 'Blank':Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Image);$0=new Coveo.CNL.Web.Scripts.Ajax.BlankFeedback(document.getElementById(p_Id),p_Fullscreen,p_Image);break;case 'Processing':Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Target);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Text);$0=new Coveo.CNL.Web.Scripts.Ajax.ProcessingFeedBack(document.getElementById(p_Target),p_Text);break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Image);$0=new Coveo.CNL.Web.Scripts.Ajax.BlankFeedback(document.getElementById(p_Id),p_Fullscreen,p_Image);break;}return $0;}
Coveo.CNL.Web.Scripts.Ajax.Feedback.prototype={$2:null,beginProcess:function(){if(!this.m_InitialDelay){this.beginFeedback();}else{this.$2=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$3),null,this.m_InitialDelay);}},endProcess:function(){if(this.$2!=null){this.$2.cancel();this.$2=null;}else{this.endFeedback();}},$3:function($p0){this.$2=null;this.beginFeedback();}}
Coveo.CNL.Web.Scripts.Ajax.FadeInTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.FadeInTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.FadeInTransition.prototype={$2:null,$3:null,$4:null,$5:null,beginTransition:function(){this.$5=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(650,1);this.$4=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$6),null,0);},endTransition:function(){if(this.$4!=null){this.$4.cancel();this.$4=null;}Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$3,1);},$6:function($p0){this.$5.ensureStarted();if(!this.$5.isFinished()){Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$3,this.$5.getPercentage());this.$4=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$6),null,20);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.TransitionEffect=function(){Coveo.CNL.Web.Scripts.Ajax.TransitionEffect.initializeBase(this);}
Coveo.CNL.Web.Scripts.Ajax.TransitionEffect.create=function(p_Content,p_Flipper,p_Effect){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Content);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Effect);var $0;switch(p_Effect){case 'None':$0=new Coveo.CNL.Web.Scripts.Ajax.FlipTransition(p_Flipper);break;case 'Expand':$0=new Coveo.CNL.Web.Scripts.Ajax.ExpandTransition(p_Flipper);break;case 'HExpand':$0=new Coveo.CNL.Web.Scripts.Ajax.HExpandTransition(p_Flipper);break;case 'Collapse':$0=new Coveo.CNL.Web.Scripts.Ajax.CollapseTransition(p_Content,p_Flipper);break;case 'HCollapse':$0=new Coveo.CNL.Web.Scripts.Ajax.HCollapseTransition(p_Content,p_Flipper);break;case 'Adjust':$0=new Coveo.CNL.Web.Scripts.Ajax.AdjustTransition(p_Content,p_Flipper);break;case 'HAdjust':$0=new Coveo.CNL.Web.Scripts.Ajax.HAdjustTransition(p_Content,p_Flipper);break;case 'FadeIn':$0=new Coveo.CNL.Web.Scripts.Ajax.FadeInTransition(p_Content,p_Flipper);break;case 'FadeFlip':$0=new Coveo.CNL.Web.Scripts.Ajax.FadeFlipTransition(p_Content,p_Flipper);break;case 'FlipFade':$0=new Coveo.CNL.Web.Scripts.Ajax.FlipFadeTransition(p_Content,p_Flipper);break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();$0=new Coveo.CNL.Web.Scripts.Ajax.FlipTransition(p_Flipper);break;}return $0;}
Coveo.CNL.Web.Scripts.Ajax.TransitionEffect.prototype={beginProcess:function(){this.beginTransition();},endProcess:function(){this.endTransition();}}
Coveo.CNL.Web.Scripts.Ajax.GradualFadeInEffect=function(p_Element){Coveo.CNL.Web.Scripts.Ajax.GradualFadeInEffect.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);this.$2=p_Element;}
Coveo.CNL.Web.Scripts.Ajax.GradualFadeInEffect.prototype={$2:null,$3:200,$4:1,$5:null,$6:null,get_duration:function(){return this.$3;},set_duration:function(value){this.$3=value;return value;},get_targetOpacity:function(){return this.$4;},set_targetOpacity:function(value){this.$4=value;return value;},beginTransition:function(){this.$6=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(this.$3,1);this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,0);},endTransition:function(){if(this.$5!=null){this.$5.cancel();this.$5=null;}Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$2,this.$4);},$7:function($p0){this.$6.ensureStarted();Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$2,this.$6.getPercentage()*this.$4);if(!this.$6.isFinished()){this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.ScriptLoaderWrapper=function(){this.$1=[];Coveo.CNL.Web.Scripts.Ajax.ScriptLoaderWrapper.initializeBase(this);}
Coveo.CNL.Web.Scripts.Ajax.ScriptLoaderWrapper.prototype={$2:null,add:function(p_Uri){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Uri);ArrayPrototype_add(this.$1, p_Uri);},beginProcess:function(){Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$2);var $0=new Array(this.$1.length);for(var $1=0;$1<this.$1.length;++$1){$0[$1]=this.$1[$1];}this.$2=new Coveo.CNL.Web.Scripts.ScriptLoader($0);this.$2.load(false,0,ss.Delegate.create(this,this.$3),ss.Delegate.create(this,this.$3));},endProcess:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$2);this.$2.dispose();this.$2=null;},$3:function(){this.terminate();}}
Coveo.CNL.Web.Scripts.Ajax.ModalBox=function(p_Manager,p_Id,p_Content,p_Width,p_Height,p_HorizontalMargin,p_VerticalMargin,p_EnableOutsideClick){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Manager);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Content);Coveo.CNL.Web.Scripts.CNLAssert.check(!!p_Width||!!(p_HorizontalMargin+p_VerticalMargin));Coveo.CNL.Web.Scripts.CNLAssert.check(!(!!p_Height&&!!(p_HorizontalMargin+p_VerticalMargin)));this.$1=p_Manager;this.$2=p_Id;this.$3=p_Content;this.$4=p_Width;this.$5=p_Height;this.$6=p_HorizontalMargin;this.$7=p_VerticalMargin;this.$C=p_EnableOutsideClick;}
Coveo.CNL.Web.Scripts.Ajax.ModalBox.prototype={$1:null,$2:null,$3:null,$4:0,$5:0,$6:0,$7:0,$8:null,$9:null,$A:null,$B:null,$C:false,$D:null,$E:null,$F:0,$10:0,get_id:function(){return this.$2;},get_visible:function(){return this.$A!=null;},show:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(!this.get_visible());var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();if(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()){this.$B=document.documentElement.style.overflow;document.documentElement.style.overflow='hidden';this.$F=$0.width;this.$10=$0.height;}else{this.$B=document.body.style.overflow;document.body.style.overflow='hidden';this.$F=$0.width;this.$10=$0.height;}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){this.$D=document.createElement('iframe');this.$D.getAttributeNode('src').value='javascript:false;';this.$D.getAttributeNode('scrolling').value='no';this.$D.style.position='absolute';this.$D.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();this.$D.style.display='none';this.$D.style.border='0';this.$D.style.display='block';this.$D.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';Coveo.CNL.Web.Scripts.DOMUtilities.coverAllWindow(this.$D);document.body.appendChild(this.$D);}this.$8=document.createElement('div');Coveo.CNL.Web.Scripts.DOMUtilities.coverAllWindow(this.$8);this.$8.style.backgroundColor='silver';this.$8.style.zIndex=Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex();Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$8,0.5);document.body.appendChild(this.$8);this.$9=document.createElement('div');Coveo.CNL.Web.Scripts.DOMUtilities.coverAllWindow(this.$9);this.$9.style.zIndex=(Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex()+1);this.$1.get_form().appendChild(this.$9);var $1=document.createElement('table');$1.style.width='100%';$1.style.height='100%';var $2=$1.insertRow(0);var $3=$2.insertCell(0);$3.align='center';this.$9.appendChild($1);if(this.$C){this.$9.attachEvent('onclick',ss.Delegate.create(this,this.$11));this.$9.style.cursor='pointer';}this.$A=document.createElement('div');if(!!this.$4){this.$A.style.width=this.$4+'px';if(!!this.$5){this.$A.style.height=this.$5+'px';}}else{Coveo.CNL.Web.Scripts.CNLAssert.check(this.$E==null);this.$12(null);Coveo.CNL.Web.Scripts.CNLAssert.check(this.$E!=null);}this.$A.style.textAlign='left';this.$A.style.cursor='default';$3.appendChild(this.$A);this.$A.innerHTML=this.$3;},close:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(this.get_visible());Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$8);if(this.$E!=null){this.$E.cancel();this.$E=null;}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$D);this.$D.parentNode.removeChild(this.$D);this.$D=null;}$(this.$8).fadeOut(300,ss.Delegate.create(this,function(){
this.$8.parentNode.removeChild(this.$8);this.$8=null;}));if(this.$9!=null){this.$9.parentNode.removeChild(this.$9);this.$9=null;this.$A=null;}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()){document.documentElement.style.overflow=this.$B;document.documentElement.scrollLeft=this.$F;document.documentElement.scrollTop=this.$10;}else{document.body.style.overflow=this.$B;document.body.scrollLeft=this.$F;document.body.scrollTop=this.$10;}Coveo.CNL.Web.Scripts.CNLAssert.check(!this.get_visible());},$11:function(){if(!this.$A.contains(window.event.srcElement)){this.$1.DPB(this.$2,'',false,false);}},$12:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$A);Coveo.CNL.Web.Scripts.CNLAssert.check(!this.$4);var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize();var $1=($0.width-this.$6*2)+'px';var $2=($0.height-this.$7*2)+'px';if(this.$A.style.width!==$1){this.$A.style.width=$1;}if(this.$A.style.height!==$2){this.$A.style.height=$2;}this.$E=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$12),null,500);}}
Coveo.CNL.Web.Scripts.Ajax.FlipTransition=function(p_Flipper){Coveo.CNL.Web.Scripts.Ajax.FlipTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$1=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.FlipTransition.prototype={$1:null,beginTransition:function(){this.$1.flip();this.terminate();},endTransition:function(){}}
Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager=function(){this.$0=[];}
Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager.prototype={$1:null,add:function(p_Process){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Process);p_Process.set_manager(this);ArrayPrototype_add(this.$0, p_Process);},startAll:function(p_Callback){this.$1=p_Callback;if(this.$0.length>0){var $0=ArrayPrototype_clone(this.$0);for(var $1=0;$1<$0.length;$1++){var $2=$0[$1];$2.start();}}else{if(this.$1!=null){this.$1(this,new ss.EventArgs());}}},terminateAll:function(){var $0=ArrayPrototype_clone(this.$0);for(var $1=0;$1<$0.length;$1++){var $2=$0[$1];$2.terminate();}Coveo.CNL.Web.Scripts.CNLAssert.check(!this.$0.length);},processIsDone:function(p_Process){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Process);Coveo.CNL.Web.Scripts.CNLAssert.check(ArrayPrototype_contains(this.$0, p_Process));ArrayPrototype_remove(this.$0, p_Process);if(!this.$0.length&&this.$1!=null){this.$1(this,new ss.EventArgs());}}}
Coveo.CNL.Web.Scripts.Ajax.FadeFlipTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.FadeFlipTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.FadeFlipTransition.prototype={$2:null,$3:null,$4:null,$5:null,$6:null,beginTransition:function(){if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){this.$4=document.createElement('div');this.$4.style.backgroundColor='white';this.$4.style.position='absolute';this.$4.style.zIndex=999;document.body.appendChild(this.$4);Coveo.CNL.Web.Scripts.DOMUtilities.setElementBounds(this.$4,Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds(this.$3));}this.$6=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(150,1);this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,0);},endTransition:function(){if(this.$5!=null){this.$5.cancel();this.$5=null;}if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){this.$3=this.$2.flip();document.body.removeChild(this.$4);}else{this.$3=this.$2.flip();this.$3.style.opacity='';}},$7:function($p0){this.$6.ensureStarted();if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$4,this.$6.getPercentage());}else{Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity(this.$3,1-this.$6.getPercentage());}if(!this.$6.isFinished()){this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.HAdjustTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.HAdjustTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.HAdjustTransition.prototype={$2:null,$3:null,$4:0,$5:0,$6:null,$7:null,$8:null,$9:null,beginTransition:function(){this.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).width;this.$3=this.$2.flip();this.$5=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).width-this.$4;this.$7=document.createElement('div');this.$7.style.overflow='hidden';this.$7.style.width=this.$4+'px';this.$6=new Coveo.CNL.Web.Scripts.TransferMargin(this.$3,this.$7);this.$3.parentNode.replaceChild(this.$7,this.$3);this.$7.appendChild(this.$3);this.$9=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(300,1);this.$8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$A),null,0);},endTransition:function(){if(this.$8!=null){this.$8.cancel();this.$8=null;}this.$6.restore();this.$7.parentNode.replaceChild(this.$3,this.$7);},$A:function($p0){this.$9.ensureStarted();this.$7.style.width=((this.$4+this.$5*Math.sin(Math.PI*this.$9.getPercentage()/2))).toString()+'px';if(!this.$9.isFinished()){this.$8=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$A),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.HCollapseTransition=function(p_Element,p_Flipper){Coveo.CNL.Web.Scripts.Ajax.HCollapseTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$3=p_Element;this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.HCollapseTransition.prototype={$2:null,$3:null,$4:0,$5:null,$6:null,$7:null,$8:null,beginTransition:function(){this.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).width;this.$6=document.createElement('div');this.$6.style.overflow='hidden';this.$6.style.width=this.$4+'px';this.$5=new Coveo.CNL.Web.Scripts.TransferMargin(this.$3,this.$6);this.$3.parentNode.replaceChild(this.$6,this.$3);this.$6.appendChild(this.$3);this.$8=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(300,1);this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,0);},endTransition:function(){if(this.$7!=null){this.$7.cancel();this.$7=null;}this.$5.restore();this.$6.parentNode.replaceChild(this.$2.flip(),this.$6);},$9:function($p0){this.$8.ensureStarted();this.$6.style.width=((this.$4*Math.cos(Math.PI*this.$8.getPercentage()/2))).toString()+'px';if(!this.$8.isFinished()){this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.HExpandTransition=function(p_Flipper){Coveo.CNL.Web.Scripts.Ajax.HExpandTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.HExpandTransition.prototype={$2:null,$3:null,$4:0,$5:null,$6:null,$7:null,$8:null,beginTransition:function(){this.$3=this.$2.flip();this.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).width;this.$6=document.createElement('div');this.$6.style.overflow='hidden';this.$6.style.width='0px';this.$5=new Coveo.CNL.Web.Scripts.TransferMargin(this.$3,this.$6);this.$3.parentNode.replaceChild(this.$6,this.$3);this.$6.appendChild(this.$3);this.$8=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(300,1);this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,0);},endTransition:function(){if(this.$7!=null){this.$7.cancel();this.$7=null;}this.$5.restore();this.$6.parentNode.replaceChild(this.$3,this.$6);},$9:function($p0){this.$8.ensureStarted();this.$6.style.width=((this.$4*Math.sin(Math.PI*this.$8.getPercentage()/2))).toString()+'px';if(!this.$8.isFinished()){this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.ExpandTransition=function(p_Flipper){Coveo.CNL.Web.Scripts.Ajax.ExpandTransition.initializeBase(this);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Flipper);this.$2=p_Flipper;}
Coveo.CNL.Web.Scripts.Ajax.ExpandTransition.prototype={$2:null,$3:null,$4:0,$5:null,$6:null,$7:null,$8:null,beginTransition:function(){this.$3=this.$2.flip();this.$3.style.display='block';this.$4=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(this.$3).height;this.$6=document.createElement('div');this.$6.style.overflow='hidden';this.$6.style.height='0px';this.$5=new Coveo.CNL.Web.Scripts.TransferMargin(this.$3,this.$6);this.$3.parentNode.replaceChild(this.$6,this.$3);this.$6.appendChild(this.$3);this.$8=new Coveo.CNL.Web.Scripts.Ajax.PercentTimer(300,1);this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,0);},endTransition:function(){if(this.$7!=null){this.$7.cancel();this.$7=null;}this.$5.restore();this.$6.parentNode.replaceChild(this.$3,this.$6);},$9:function($p0){this.$8.ensureStarted();this.$6.style.height=((this.$4*Math.sin(Math.PI*this.$8.getPercentage()/2))).toString()+'px';if(!this.$8.isFinished()){this.$7=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$9),null,7);}else{this.terminate();}}}
Coveo.CNL.Web.Scripts.Ajax.RegionFlipper=function(p_Region,p_Content){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Region);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Content);this.$0=p_Region;this.$1=p_Content;}
Coveo.CNL.Web.Scripts.Ajax.RegionFlipper.prototype={$0:null,$1:null,get_newContent:function(){return this.$0;},flip:function(){this.$0.innerHTML=this.$1;return this.$0;}}
Coveo.CNL.Web.Scripts.Ajax.PartialPostBack=function(p_Manager,p_Target,p_Argument,p_Feedbacks,p_Timer,p_Preemptive,p_NonCancelable){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Manager);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Target);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Argument);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Feedbacks);this.$0=p_Manager;this.$1=p_Target;this.$2=p_Argument;this.$3=p_Feedbacks;this.$4=p_Timer;this.$5=p_Preemptive;this.$6=p_NonCancelable;this.$C=(Math.random()*1000000000).toString(16);if(this.$0.get_enableProfiling()){this.$14=new Coveo.CNL.Web.Scripts.Ajax.Profiler();}}
Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.$15=function($p0){Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing updated regions to update after everything...');var $0=$p0.selectNodes('/AjaxManager/Updated/RegionAtEnd');for(var $1=0;$1<$0.length;++$1){var $2=$0[$1];var $3=($2.attributes.getNamedItem('Id')).value;var $4=document.getElementById($3);$4.innerHTML=$2.text;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Region '+$3+' was updated.');}}
Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.prototype={$0:null,$1:null,$2:null,$3:null,$4:false,$5:false,$6:false,$7:true,$8:false,$9:null,$A:false,$B:true,$C:null,$D:null,$E:null,$F:null,$10:false,$11:false,$12:null,$13:null,$14:null,get_sendControlData:function(){return this.$7;},set_sendControlData:function(value){this.$7=value;return value;},get_keepQueryStringArguments:function(){return this.$8;},set_keepQueryStringArguments:function(value){this.$8=value;return value;},get_callback:function(){return this.$9;},set_callback:function(value){this.$9=value;return value;},get_ignoreResults:function(){return this.$A;},set_ignoreResults:function(value){this.$A=value;return value;},get_enableProgress:function(){return this.$B;},set_enableProgress:function(value){this.$B=value;return value;},get_uniqueID:function(){return this.$C;},execute:function(){Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$D);if(!String.isNullOrEmpty(this.$0.get_onPartialPostBackSubmitCode())){Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Calling OnPartialPostBackSubmitCode...');eval(this.$0.get_onPartialPostBackSubmitCode());}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Preparing request...');(this.$0.get_form().__EVENTTARGET).value=this.$1;(this.$0.get_form().__EVENTARGUMENT).value=this.$2;var $0=this.$0.get_form().action;var $1=$0.indexOf('#');if($1!==-1){$0=$0.substring(0,$1);}if(this.$8&&!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty(window.location.search)){if($0.indexOf('?')===-1){$0+='?';}else{$0+='&';}$0+=window.location.search.substr(1);}this.$D=Coveo.CNL.Web.Scripts.Utilities.createPostXmlHttpRequest($0);this.$D.setRequestHeader('Content-Type','application/x-www-form-urlencoded');if(this.$0.get_canAddHttpHeaders()){this.$D.setRequestHeader('Coveo-Partial-Postback',this.$C);if(this.$0.get_bootstrap()){this.$D.setRequestHeader('Coveo-Bootstrap','1');}if(!this.$7){this.$D.setRequestHeader('Coveo-No-Control-Data','1');}}this.$D.onreadystatechange=ss.Delegate.create(this,this.$17);this.$D.send(this.$16());Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Request is sent.');this.$12=new Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager();for(var $2=0;$2<this.$3.length;$2++){var $3=this.$3[$2];this.$12.add($3);}if(this.$B&&this.$0.get_enableProgress()){this.$12.add(new Coveo.CNL.Web.Scripts.Ajax.AjaxProgressScript(this.$0,this));}Coveo.CNL.Web.Scripts.DOMUtilities.setOperationPendingCursor();if(!this.$A){Coveo.CNL.Web.Scripts.DOMUtilities.incrementBusyCounter();}this.$12.startAll(null);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Pre-request processes started.');},cancel:function(){var $0=true;if(!this.$6){if(!this.$10){this.$11=true;this.$12.terminateAll();this.$D.abort();this.$D=null;Coveo.CNL.Web.Scripts.DOMUtilities.removeOperationPendingCursor();if(!this.$A){Coveo.CNL.Web.Scripts.DOMUtilities.decrementBusyCounter();}}else{if(this.$13!=null){this.$13.terminateAll();this.$13=null;}}}else{$0=false;}return $0;},applyPreemptivePostback:function(){if(this.$E!=null){this.$19();}else{this.$5=false;}},$16:function(){var $0='';var $1=this.$0.getAllFormElements();for(var $2=0;$2<$1.length;++$2){var $3=$1[$2];var $4=$3.getAttribute('name');if(Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($4)){continue;}if(!this.$7&&$4!=='__EVENTTARGET'&&$4!=='__EVENTARGUMENT'&&$4!=='__VIEWSTATE'&&$4!=='__VIEWSTATEENCRYPTED'&&$4!=='__REQUESTDIGEST'&&!$4.endsWith('$PlaceHolderPageTitleInTitleArea$wikiPageNameEditTextBox')&&!this.$0.shouldAlwaysBeSent($4)){continue;}if(Coveo.CNL.Web.Scripts.Utilities.equals($3.tagName,'input',true)){var $5=null;var $6=$3.getAttribute('type');if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($6)){switch($6){case 'checkbox':if($3.checked){$5='on';}break;case 'radio':if($3.checked){$5=$3.getAttribute('value');}break;case 'submit':case 'button':break;default:$5=Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.getBackupValueIfAny($3);if($5==null){$5=$3.value;}break;}}if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($5)){$0+='&'+$4+'='+encodeURIComponent($5);}}else if(Coveo.CNL.Web.Scripts.Utilities.equals($3.tagName,'select',true)){var $7=$3;for(var $8=0;$8<$7.options.length;++$8){var $9=$7.options[$8];if($9.selected){var $A=($9.value!=null)?$9.value:$9.innerText;$0+='&'+$4+'='+encodeURIComponent($9.value);}}}else if(Coveo.CNL.Web.Scripts.Utilities.equals($3.tagName,'textarea',true)){var $B=$3;$0+='&'+$4+'='+encodeURIComponent($B.value);}}if(!this.$0.get_canAddHttpHeaders()||this.$0.get_newBootstrap()){$0+='&'+'Coveo-Partial-Postback'+'='+encodeURIComponent(this.$C);}if(!this.$0.get_canAddHttpHeaders()){if(this.$0.get_bootstrap()){$0+='&'+'Coveo-Bootstrap'+'=1';}if(!this.$7){$0+='&'+'Coveo-No-Control-Data'+'=1';}}return $0;},$17:function(){if(!this.$11&&this.$D.readyState===4){Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Response has been received.');if(!this.$A){var $0=false;var $1=false;if(this.$D.status===200){this.$E=this.$D.responseXML;if(!this.$5){this.$19();}}else{$0=true;if(this.$0.get_partialPostBackErrorHandler()!=null){$1=this.$0.get_partialPostBackErrorHandler()(this.$D);if($1){this.$0.cancelPendingOperations();}}}if($0&&!$1&&(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()||!!this.$D.status)){this.$18();}}this.$12.terminateAll();this.$12=null;Coveo.CNL.Web.Scripts.DOMUtilities.removeOperationPendingCursor();Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Pre-request processes terminated.');this.$D=null;this.$10=true;}},$18:function(){var $0;var $1='';var $2='';var $3='';if(this.$D.status===500){$2='An unexpected error occurred';$0=true;if(!!this.$D.responseText){$3=this.$D.responseText;}else if(!!this.$D.statusText){$3='HTTP '+this.$D.status.toString()+' '+this.$D.statusText;}else{$3='HTTP '+this.$D.status.toString()+' Unspecified error.';}}else{$1='The server is unavailable at the moment.<br/><br/>Reload the page for more information.';$0=!this.$4;}if($0){var $4=!!$1;Coveo.CNL.Web.Scripts.DOMUtilities.scrollAllTheWayUp(null);document.body.style.overflow='hidden';document.documentElement.style.overflow='hidden';var $5=document.createElement('div');$5.style.backgroundColor='silver';Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity($5,0.5);$5.style.position='absolute';$5.style.left='0px';$5.style.top='0px';$5.style.width='100%';$5.style.height='100%';$5.style.zIndex=9999;document.body.appendChild($5);var $6=document.createElement('div');$6.id='CoveoErrorMarker';$6.style.fontFamily='Arial';$6.style.fontSize='12pt';$6.style.padding='15px';$6.style.position='absolute';if($4){$6.style.border='3px solid gray';$6.style.backgroundColor='whitesmoke';$6.style.left='25%';$6.style.top='30%';$6.style.width='50%';$6.style.height='20%';}else{$6.style.border='3px solid red';$6.style.backgroundColor='white';$6.style.left='25%';$6.style.top='25%';$6.style.width='50%';$6.style.height='50%';}$6.style.zIndex=10000;document.body.appendChild($6);var $7=document.createElement('div');$7.style.width='100%';$7.style.height='100%';$7.style.overflow='auto';$6.appendChild($7);var $8=document.createElement('div');$8.style.fontWeight='bold';if(!$4){$8.style.paddingBottom='5px';$8.style.borderBottom='1px solid gray';}$8.style.position='relative';var $9=document.createElement('div');$9.innerHTML=($4)?$1:$2;$8.appendChild($9);$7.appendChild($8);if(!$4){var $A=document.createElement('div');$A.innerHTML=$3;$A.style.marginTop='20px';$A.style.display='none';$A.style.fontSize='0.8em';$7.appendChild($A);var $B=document.createElement('div');$B.innerHTML='Something unexpected happened and we had to stop processing your action.<br/><br/>'+'Please reload the page. If the error persists, contact your system administrator.<br/><br/>'+'Click here to display the error details.';$B.style.marginTop='20px';$B.style.cursor='pointer';$7.style.fontSize='0.9em';$B.attachEvent('onclick',function(){
$A.style.display='block';$B.style.display='none';$6.style.width='90%';$6.style.height='90%';$6.style.top='10px';$6.style.left='5%';});$7.appendChild($B);}eval('if (window.external && window.external.PostBackErrorHandler) { window.external.PostBackErrorHandler(); }');}},$19:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$E);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Calling ProcessXmlFromServer...');this.$1A();Coveo.CNL.Web.Scripts.Ajax.Profiler.log('ProcessXmlFromServer finished.');},$1A:function(){Coveo.CNL.Web.Scripts.CNLAssert.notNull(this.$E);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Calling ProcessXmlFromServer on AjaxManagerScript...');this.$13=new Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager();this.$0.$2A(this.$E,this.$13);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('ProcessXmlFromServer on AjaxManagerScript finished.');Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Updating view state...');var $0=this.$E.selectSingleNode('/AjaxManager/ViewState');if($0!=null){(this.$0.get_form().__VIEWSTATE).value=$0.text;}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing updated controls...');var $1=this.$E.selectNodes('/AjaxManager/Updated/Control');for(var $7=0;$7<$1.length;++$7){var $8=$1[$7];var $9=($8.attributes.getNamedItem('Id')).value;var $A=($8.attributes.getNamedItem('Effect')).value;var $B=($8.attributes.getNamedItem('Scope')).value;var $C=($8.attributes.getNamedItem('Reason')).value;this.$0.$2D($B);var $D=document.getElementById($9);var $E=new Coveo.CNL.Web.Scripts.Ajax.ControlFlipper($D,$8.text);if(!this.$0.get_enableUpdateDebugging()){this.$13.add(Coveo.CNL.Web.Scripts.Ajax.TransitionEffect.create($D,$E,$A));}else{this.$13.add(new Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger($E,$C));}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Control '+$9+' was updated.');}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing updated regions...');$1=this.$E.selectNodes('/AjaxManager/Updated/Region');for(var $F=0;$F<$1.length;++$F){var $10=$1[$F];var $11=($10.attributes.getNamedItem('Id')).value;var $12=($10.attributes.getNamedItem('Effect')).value;var $13=($10.attributes.getNamedItem('Scope')).value;var $14=($10.attributes.getNamedItem('Reason')).value;if(!!$13){this.$0.$2D($13);}var $15=document.getElementById($11);var $16=new Coveo.CNL.Web.Scripts.Ajax.RegionFlipper($15,$10.text);if(!this.$0.get_enableUpdateDebugging()){this.$13.add(Coveo.CNL.Web.Scripts.Ajax.TransitionEffect.create($15,new Coveo.CNL.Web.Scripts.Ajax.RegionFlipper($15,$10.text),$12));}else{this.$13.add(new Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger($16,$14));}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Region '+$11+' was updated.');}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing modal boxes...');$1=this.$E.selectNodes('/AjaxManager/Close/Box');for(var $17=0;$17<$1.length;++$17){var $18=$1[$17];var $19=($18.attributes.getNamedItem('BoxId')).value;this.$0.$2D($19);this.$0.closeModalBox($19);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Modal box '+$19+' was closed.');}$1=this.$E.selectNodes('/AjaxManager/ModalBoxes/Box');for(var $1A=0;$1A<$1.length;++$1A){var $1B=$1[$1A];var $1C=($1B.attributes.getNamedItem('BoxId')).value;var $1D=parseInt(($1B.attributes.getNamedItem('Width')).value);var $1E=parseInt(($1B.attributes.getNamedItem('Height')).value);var $1F=parseInt(($1B.attributes.getNamedItem('HorizontalMargin')).value);var $20=parseInt(($1B.attributes.getNamedItem('VerticalMargin')).value);var $21=Boolean.parse(($1B.attributes.getNamedItem('EnableOutsideClick')).value);var $22=new Coveo.CNL.Web.Scripts.Ajax.ModalBox(this.$0,$1C,$1B.text,$1D,$1E,$1F,$20,$21);this.$0.addModalBox($22);$22.show();Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Modal box '+$1C+' was shown.');}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing postback return value...');var $2=this.$E.selectSingleNode('/AjaxManager/Return');var $3=this.$E.selectSingleNode('/AjaxManager/ReturnHtml');var $4=this.$E.selectSingleNode('/AjaxManager/ReturnXml');if($2!=null){var $23=($2.attributes.getNamedItem('Type')).value;this.$F=Coveo.CNL.Web.Scripts.MarshalUtilities.unmarshalValue($23,$2.text);}else if($3!=null){var $24=document.createElement('div');$24.innerHTML=$3.text;this.$F=$24;}else if($4!=null){this.$F=$4;}if(this.$E.selectSingleNode('/AjaxManager/FullPostbackAsynchronousCall')!=null){this.$9=null;}var $5=this.$E.selectSingleNode('/AjaxManager/ResetTimerCount');if($5!=null){this.$0.resetTimer();}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Starting Post-request processes...');this.$13.startAll(ss.Delegate.create(this,this.$1B));Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Post-request processes started.');var $6=this.$E.selectSingleNode('/AjaxManager/ScrollBackUp');if($6!=null){var $25=$6.text;Coveo.CNL.Web.Scripts.DOMUtilities.scrollAllTheWayUp(($25.toLowerCase()==='true')?null:$25);}},$1B:function($p0,$p1){Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Post-request operations are done.');this.$13=null;Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.$15(this.$E);this.$0.$2B(this.$E);this.$0.$2C();if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isEmulatingIE7()){document.body.className=document.body.className;}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('ProcessXmlForAjaxObjects done.');if(this.$9!=null){this.$9(this.$F);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Postback callback function called.');}if(!this.$A){Coveo.CNL.Web.Scripts.DOMUtilities.decrementBusyCounter();}this.$0.postBackIsFinished();if(this.$14!=null){this.$14.stop();}}}
Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo=function(){}
Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo.prototype={$0:null,$1:null,$2:null,$3:null,$4:false,$5:null,$6:null}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript=function(){this.$9={};this.$A=new Coveo.CNL.Web.Scripts.Ajax.IdMappings();this.$B=[];this.$C=[];this.$D=new Coveo.CNL.Web.Scripts.Ajax.IdMappings();this.$E=new Coveo.CNL.Web.Scripts.Ajax.IdMappings();this.$F=[];this.$10={};this.$11={};this.$12=[];this.$14=[];this.$1C=-1;}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current=function(){return Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$0;}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.takeBackupOfValue=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isFirefox()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isChrome()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isSafari()){p_Element.type='text';p_Element.style.display='none';}var $0=p_Element.defaultValue;p_Element.__bak=$0;}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.getBackupValueIfAny=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);var $0=p_Element.__bak;if($0!=null){p_Element.__bak=null;}return $0;}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.registerClientFeedback=function(p_Target,p_Feedback){Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$1.add(p_Target,p_Feedback);}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.unregisterClientFeedback=function(p_Target){Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$1.remove(p_Target);}
Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.prototype={$2:null,$3:null,$4:null,$5:false,$6:false,$7:false,$8:null,$13:null,$15:false,$16:null,$17:false,$18:false,$19:false,$1A:'',$1B:true,$1D:0,$1E:0,$1F:0,$20:0,$21:null,$22:false,$23:10,$24:0,$25:null,$26:null,$27:null,$28:null,$29:'',get_form:function(){return this.$3;},get_bootstrap:function(){return this.$5;},set_bootstrap:function(value){this.$5=value;return value;},get_newBootstrap:function(){return this.$6;},set_newBootstrap:function(value){this.$6=value;return value;},get_canAddHttpHeaders:function(){return this.$7;},get_enableProgress:function(){return this.$15;},set_enableProgress:function(value){this.$15=value;return value;},get_progressPageUri:function(){return this.$16;},set_progressPageUri:function(value){this.$16=value;return value;},get_enableUpdateDebugging:function(){return this.$17;},set_enableUpdateDebugging:function(value){this.$17=value;return value;},get_enableProfiling:function(){return this.$18;},set_enableProfiling:function(value){this.$18=value;return value;},get_enableHistory:function(){return this.$19;},set_enableHistory:function(value){this.$19=value;return value;},get_currentPostBack:function(){return this.$13;},get_partialPostBackErrorHandler:function(){return this.$27;},set_partialPostBackErrorHandler:function(value){this.$27=value;return value;},get_scrollMasterControlID:function(){return this.$28;},set_scrollMasterControlID:function(value){this.$28=value;return value;},get_onPartialPostBackSubmitCode:function(){return this.$29;},set_onPartialPostBackSubmitCode:function(value){this.$29=value;return value;},initialize:function(p_Id,p_Form,p_AdditionalForms,p_DoPostBack,p_Xml,p_SkipInitialHistoryState,p_CanAddHttpHeaders){Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$0);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Id);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Form);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_DoPostBack);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Xml);this.$2=p_Id;this.$3=p_Form;this.$4=p_AdditionalForms;this.$8=p_DoPostBack;this.$1E=0;this.$7=p_CanAddHttpHeaders;var $0=document.getElementsByTagName('script');for(var $3=0;$3<$0.length;++$3){var $4=$0[$3];var $5=$4.getAttribute('src');if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty($5)){this.registerScript($5);}}var $1=document.getElementsByTagName('link');for(var $6=0;$6<$1.length;++$6){var $7=$1[$6];var $8=$7.getAttribute('rel');var $9=$7.getAttribute('href');if(Coveo.CNL.Web.Scripts.Utilities.equals($8,'stylesheet',true)){this.$11[$9]=$7;}}if(this.$19){if(Coveo.CNL.Web.Scripts.BrowserHelper.get_ieDocumentMode()>=8){var $A=document.getElementById('__historyFrame');if($A!=null){$A.parentNode.removeChild($A);}}$(window).bind('hashchange',ss.Delegate.create(this,this.$35));}if(p_SkipInitialHistoryState){this.$1A=window.location.hash.substr(1);}var $2=new Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager();this.$2A(p_Xml,$2);$2.startAll(ss.Delegate.create(this,function($p1_0,$p1_1){
this.$2B(p_Xml);this.$2C();Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$0=this;}));if(this.$19&&!ss.isNullOrUndefined($.bbq.getState('s'))){this.$35(null);}},DPB:function(p_Target,p_Argument,p_Preemptive,p_NonCancelable){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Target);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Argument);if(this.cancelPendingOperations()){var $0=this.$32(p_Target);if(this.$30($0)){var $1=(!p_Preemptive)?this.$31($0):[];this.$13=new Coveo.CNL.Web.Scripts.Ajax.PartialPostBack(this,p_Target,p_Argument,$1,false,p_Preemptive,p_NonCancelable);this.$13.execute();}else{this.$8(p_Target,p_Argument);}}return this.$13;},DMC:function(p_Target,p_Method,p_Options,p_Callback,p_Args){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Target);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Method);Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Options);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Args);if(this.cancelPendingOperations()){var $0=new Coveo.CNL.Web.Scripts.Ajax.PostbackOptionsScript(p_Options);var $1='M:'+encodeURIComponent(p_Target);$1+='&'+encodeURIComponent(p_Method);for(var $3=0;$3<p_Args.length-1;++$3){$1+='&'+this.$3A(p_Args[$3]);}var $2=this.$32(p_Target);if($0.get_forcePartialPostback()||this.$30($2)){var $4=($0.get_triggerFeedbacks())?this.$31($2):[];this.$13=new Coveo.CNL.Web.Scripts.Ajax.PartialPostBack(this,this.$2,$1,$4,false,false,false);this.$13.set_callback(p_Callback);this.$13.set_sendControlData($0.get_sendControlData());this.$13.set_ignoreResults($0.get_ignoreResults());this.$13.execute();}else{this.$8(this.$2,$1);}}},cancelPendingOperations:function(){var $0=true;if(this.$13!=null){if(this.$13.cancel()){this.$13=null;}else{$0=false;}}return $0;},shouldAlwaysBeSent:function(p_Id){var $0=false;for(var $1=0;$1<this.$B.length;$1++){var $2=this.$B[$1];if(Coveo.CNL.Web.Scripts.Utilities.equals($2,p_Id,true)){$0=true;break;}}return $0;},isScriptLoaded:function(p_Uri){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Uri);var $0=this.$33(p_Uri);return this.$10[$0]!=null||$0.indexOf('k=embedding')!==-1||$0.indexOf('k=ccs')!==-1;},registerScript:function(p_Uri){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Uri);var $0=this.$33(p_Uri);this.$10[$0]=1;},getAllFormElements:function(){var $0=this.$3B(this.$3);if(this.$4!=null){var $enum1=ss.IEnumerator.getEnumerator(this.$4);while($enum1.moveNext()){var $1=$enum1.current;var $enum2=ss.IEnumerator.getEnumerator(this.$3B($1));while($enum2.moveNext()){var $2=$enum2.current;ArrayPrototype_add($0, $2);}}}return $0;},addModalBox:function(p_Box){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Box);ArrayPrototype_add(this.$14, p_Box);},closeModalBox:function(p_BoxId){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_BoxId);var $0=null;for(var $1=0;$1<this.$14.length;$1++){var $2=this.$14[$1];if($2.get_id()===p_BoxId){$0=$2;break;}}Coveo.CNL.Web.Scripts.CNLAssert.notNull($0);if($0.get_visible()){$0.close();}ArrayPrototype_remove(this.$14, $0);},postBackIsFinished:function(){this.$13=null;},blockTimer:function(){this.$20+=1;},unblockTimer:function(){this.$20-=1;Coveo.CNL.Web.Scripts.CNLAssert.check(this.$20>=0);if(!this.$20){this.$37();}},resetTimer:function(){this.$1E=0;},$2A:function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p1);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing redirect uri...');var $0=($p0).selectSingleNode('/AjaxManager/Redirect/Uri');if($0!=null){var $7=$p0.selectSingleNode('/AjaxManager/Redirect/NewWindow');if($7!=null&&Boolean.parse($7.text)){window.open($0.text,'_blank');}else{window.navigate($0.text);}}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing download uri...');var $1=($p0).selectSingleNode('/AjaxManager/Download');if($1!=null){var $8=document.createElement('iframe');$8.setAttribute('style','display: none; height: 0; width: 0;');$8.setAttribute('height','0');$8.setAttribute('width','0');$8.setAttribute('src',$1.text);document.body.appendChild($8);}var $2=$p0.selectSingleNode('/AjaxManager/PageTitle');if($2!=null){document.title=$2.text;}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing history state...');var $3=$p0.selectSingleNode('/AjaxManager/History');if($3!=null&&!!this.get_enableHistory()){this.$1A=$3.text;var $9={};$9['s']=this.$1A;$.bbq.pushState($9);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    History state '+this.$1A+' was added.');}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing id substitutions...');this.$9={};var $4=$p0.selectNodes('/AjaxManager/Substitutions/Substitution');for(var $A=0;$A<$4.length;++$A){var $B=$4[$A];this.$9[($B.attributes.getNamedItem('Target')).value]=($B.attributes.getNamedItem('Substitute')).value;}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing list of partial postback controls...');this.$A.clear();$4=$p0.selectNodes('/AjaxManager/Partial/Control');for(var $C=0;$C<$4.length;++$C){var $D=$4[$C];var $E=($D.attributes.getNamedItem('Id')).value;this.$A.add(this.$32($E),true);}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing list of full postback controls...');$4=$p0.selectNodes('/AjaxManager/Full/Control');for(var $F=0;$F<$4.length;++$F){var $10=$4[$F];var $11=($10.attributes.getNamedItem('Id')).value;this.$A.add(this.$32($11),false);}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing list always sent form fields...');ArrayPrototype_clear(this.$B);$4=$p0.selectNodes('/AjaxManager/AlwaysSend/AlwaysSend');for(var $12=0;$12<$4.length;++$12){var $13=$4[$12];var $14=($13.attributes.getNamedItem('Id')).value;ArrayPrototype_add(this.$B, $14);}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing list of panel feedbacks...');ArrayPrototype_clear(this.$C);$4=$p0.selectNodes('/AjaxManager/Feedbacks/PanelFeedback');for(var $15=0;$15<$4.length;++$15){var $16=$4[$15];var $17=new Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo();$17.$0=($16.attributes.getNamedItem('Id')).value;$17.$2=($16.attributes.getNamedItem('Type')).value;$17.$4=Boolean.parse(($16.attributes.getNamedItem('Fullscreen')).value);$17.$5=($16.attributes.getNamedItem('Text')).value;$17.$6=($16.attributes.getNamedItem('Image')).value;var $18=this.$32(($16.attributes.getNamedItem('Panel')).value);ArrayPrototype_add(this.$C, $17);this.$D.add($18,$17);}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing list of named feedbacks...');$4=$p0.selectNodes('/AjaxManager/Feedbacks/NamedFeedback');for(var $19=0;$19<$4.length;++$19){var $1A=$4[$19];var $1B=new Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo();$1B.$0=($1A.attributes.getNamedItem('Id')).value;$1B.$1=($1A.attributes.getNamedItem('Name')).value;$1B.$2=($1A.attributes.getNamedItem('Type')).value;$1B.$4=Boolean.parse(($1A.attributes.getNamedItem('Fullscreen')).value);$1B.$5=($1A.attributes.getNamedItem('Text')).value;$1B.$6=($1A.attributes.getNamedItem('Image')).value;ArrayPrototype_add(this.$C, $1B);}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing list of targeted feedbacks...');$4=$p0.selectNodes('/AjaxManager/Feedbacks/TargetFeedback');for(var $1C=0;$1C<$4.length;++$1C){var $1D=$4[$1C];var $1E=new Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo();$1E.$0=($1D.attributes.getNamedItem('Id')).value;$1E.$3=($1D.attributes.getNamedItem('TargetClientID')).value;$1E.$2=($1D.attributes.getNamedItem('Type')).value;$1E.$4=Boolean.parse(($1D.attributes.getNamedItem('Fullscreen')).value);$1E.$5=($1D.attributes.getNamedItem('Text')).value;$1E.$6=($1D.attributes.getNamedItem('Image')).value;var $1F=this.$32(($1D.attributes.getNamedItem('TargetUniqueID')).value);ArrayPrototype_add(this.$C, $1E);this.$D.add($1F,$1E);}$4=$p0.selectNodes('/AjaxManager/Feedbacks/NamedFeedbackMapping');for(var $20=0;$20<$4.length;++$20){var $21=$4[$20];var $22=new Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo();$22.$0=this.$32(($21.attributes.getNamedItem('Id')).value);$22.$1=($21.attributes.getNamedItem('Name')).value;this.$E.add($22.$0,$22.$1);}ArrayPrototype_clear(this.$F);$4=$p0.selectNodes('/AjaxManager/BlankOnHistory/BlankOnHistory');for(var $23=0;$23<$4.length;++$23){var $24=$4[$23];var $25=($24.attributes.getNamedItem('Id')).value;Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($25);ArrayPrototype_add(this.$F, $25);}var $5={};$4=$p0.selectNodes('/AjaxManager/StyleSheets/Remove');for(var $26=0;$26<$4.length;++$26){var $27=$4[$26];var $28=$27.text;$5[$28]='';}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing stylesheets...');$4=$p0.selectNodes('/AjaxManager/StyleSheets/StyleSheet');for(var $29=0;$29<$4.length;++$29){var $2A=$4[$29];var $2B=$2A.text;if(Object.keyExists($5,$2B)){this.$2E($2B);delete $5[$2B];}if(this.$11[$2B]==null){var $2C=document.createElement('link');$2C.rel='stylesheet';$2C.type='text/css';$2C.href=$2B;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){$2C.attachEvent('onload',function(){
document.body.click();});if(Coveo.CNL.Web.Scripts.BrowserHelper.get_quirksMode()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIEWithHistoryFrame()){document.body.appendChild($2C);}else{document.getElementsByTagName('head')[0].appendChild($2C);}}else{document.getElementsByTagName('head')[0].appendChild($2C);}this.$11[$2B]=$2C;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Stylesheet '+$2B+' was added to the DOM.');}}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing stylesheets to unload...');var $dict1=$5;for(var $key2 in $dict1){var $2D={key:$key2,value:$dict1[$key2]};var $2E=$2D.key;this.$2E($2E);}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing hidden fields...');$4=$p0.selectNodes('/AjaxManager/HiddenFields/HiddenField');for(var $2F=0;$2F<$4.length;++$2F){var $30=$4[$2F];var $31=($30.attributes.getNamedItem('Name')).value;var $32=Boolean.parse(($30.attributes.getNamedItem('Delete')).value);var $33=$30.text;var $34=document.getElementById($31);if($32){if($34!=null){$34.parentNode.removeChild($34);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Field '+$31+' was deleted.');}}else{if($34==null){Coveo.CNL.Web.Scripts.CNLAssert.failWithMessage('Adding a new hidden field in a partial postback (after the initial load of the page) causes the navigation history to be lost in "IE with history frame" when navigating away and back to the search page. You should modify your code to avoid this.');$34=document.createElement('input');$34.type='hidden';$34.id=$31;$34.name=$31;var $35=this.$3.elements;$35[0].parentNode.appendChild($34);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Field '+$31+' was created.');}$34.value=$33;}}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing field values...');$4=$p0.selectNodes('/AjaxManager/FieldValues/FieldValue');for(var $36=0;$36<$4.length;++$36){var $37=$4[$36];var $38=($37.attributes.getNamedItem('Name')).value;var $39=$37.text;var $3A=document.getElementsByName($38);if($3A.length===1){var $3B=$3A[0];var $3C=$3B.getAttribute('type');if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($3C)&&Coveo.CNL.Web.Scripts.Utilities.equals($3C,'checkbox',true)){$3B.checked=$39==='on';}else{$3B.value=$39;}}else{var $3D=document.createElement('input');$3D.type='hidden';$3D.id=$38;$3D.value=$39;$3D.name=$38;var $3E=this.$3.elements;$3E[0].parentNode.appendChild($3D);}}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing images to update...');$4=$p0.selectNodes('/AjaxManager/ImagesToUpdate/ImageToUpdate');for(var $3F=0;$3F<$4.length;++$3F){var $40=$4[$3F];var $41=($40.attributes.getNamedItem('Id')).value;var $42=$40.text;var $43=document.getElementById($41);if($43!=null){$43.src=$42;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    The url of control '+$41+' was set to '+$42);}}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing control values...');$4=$p0.selectNodes('/AjaxManager/ControlValues/ControlValue');for(var $44=0;$44<$4.length;++$44){var $45=$4[$44];var $46=($45.attributes.getNamedItem('Id')).value;var $47=$45.text;var $48=document.getElementById($46);if($48!=null){$48.value=$47;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Value of control '+$46+' was set to '+$47);}}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing timer stuff...');var $6=$p0.selectSingleNode('/AjaxManager/GlobalTimer');if($6!=null){this.$1D=parseInt(($6.attributes.getNamedItem('Delay')).value);this.$1F=parseInt(($6.attributes.getNamedItem('HardStop')).value);}else{this.$1D=0;this.$1F=0;}if(this.$1D>0){this.$1B=true;this.$37();}else{this.$1B=false;window.clearTimeout(this.$1C);this.$1C=-1;}Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing external scripts...');$4=$p0.selectNodes('/AjaxManager/ExternalScripts/Script');if($4.length>0){var $49=null;for(var $4A=0;$4A<$4.length;++$4A){var $4B=$4[$4A];var $4C=($4B.attributes.getNamedItem('Uri')).value;if(!this.isScriptLoaded($4C)){Coveo.CNL.Web.Scripts.CNLAssert.fail();if($49==null){$49=new Coveo.CNL.Web.Scripts.Ajax.ScriptLoaderWrapper();}$49.add($4C);this.registerScript($4C);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Script '+$4C+' queued to be loaded.');}}if($49!=null){$p1.add($49);}}},$2B:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing constants...');var $0=$p0.selectNodes('/AjaxManager/Consts/Const');for(var $4=0;$4<$0.length;++$4){var $5=$0[$4];var $6=($5.attributes.getNamedItem('Class')).value;var $7=($5.attributes.getNamedItem('Name')).value;var $8=($5.attributes.getNamedItem('Type')).value;var $9=Coveo.CNL.Web.Scripts.MarshalUtilities.unmarshalValue($8,$5.text);eval($6)[$7]=$9;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Constant '+$6+'.'+$7+' was set to '+$9);}var $1=0;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('Processing inline scripts...');$0=$p0.selectNodes('/AjaxManager/InlineScripts/Script');for(var $A=0;$A<$0.length;++$A){var $B=$0[$A];eval($B.text);++$1;}Coveo.CNL.Web.Scripts.Ajax.Profiler.log($1.toString()+' inline scripts have been executed.');$0=$p0.selectNodes('/AjaxManager/AjaxObjects/AjaxObject');for(var $C=0;$C<$0.length;++$C){var $D=$0[$C];var $E=($D.attributes.getNamedItem('Type')).value;var $F=($D.attributes.getNamedItem('OwnerId')).value;$F=this.$32($F);var $10=null;var $11=$D.attributes.getNamedItem('Existing')!=null;if($11){for(var $13=0;$13<this.$12.length;++$13){var $14=this.$12[$13];if($14.get_ownerId()===$F){$10=$14;break;}}Coveo.CNL.Web.Scripts.CNLAssert.notNull($10);}else{$10=eval('new '+$E+'()');$10.set_ownerId($F);}var $12=$D.selectNodes('ProtectedField');for(var $15=0;$15<$12.length;++$15){var $16=$12[$15];var $17=($16.attributes.getNamedItem('Name')).value;var $18=($16.attributes.getNamedItem('Type')).value;var $19=Coveo.CNL.Web.Scripts.MarshalUtilities.unmarshalValue($18,$16.text);$10[$17]=$19;}$12=$D.selectNodes('ProtectedDomElement');for(var $1A=0;$1A<$12.length;++$1A){var $1B=$12[$1A];var $1C=($1B.attributes.getNamedItem('Name')).value;var $1D=($1B.attributes.getNamedItem('Id')).value;var $1E=document.getElementById($1D);Coveo.CNL.Web.Scripts.CNLAssert.notNull($1E);$10[$1C]=$1E;}$12=$D.selectNodes('ProtectedMethods');for(var $1F=0;$1F<$12.length;++$1F){var $20=$12[$1F];var $21=($20.attributes.getNamedItem('Name')).value;$10[$21] = eval('dummyVariableNobodyWillEverUse = ' + $20.text);;}$12=$D.selectNodes('PublicProperty');for(var $22=0;$22<$12.length;++$22){var $23=$12[$22];var $24=($23.attributes.getNamedItem('Name')).value;var $25=($23.attributes.getNamedItem('Type')).value;var $26=Coveo.CNL.Web.Scripts.MarshalUtilities.unmarshalValue($25,$23.text);$10['set_'+$24]($26);}if(!$11){ArrayPrototype_add(this.$12, $10);$10.initialize();}$12=$D.selectNodes('Method');for(var $27=0;$27<$12.length;$27++){var $28=$12[$27];var $29=($28.attributes.getNamedItem('Name')).value;var dummyVariableNobodyWillEverUse = $10;;eval('dummyVariableNobodyWillEverUse.'+$29+'('+$28.text+')');}}var $2=$p0.selectSingleNode('/AjaxManager/FullPostbackAsynchronousCall');if($2!=null){this.$25=$2.text;var $2A=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$38),null,0);}this.$26=$p0.selectNodes('/AjaxManager/AsynchronousCalls/AsynchronousCall');if(this.$26.length>0){var $2B=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$39),null,0);}var $3=$p0.selectSingleNode('/AjaxManager/SetFocus');if($3!=null){this.$21=$3.text;this.$22=Boolean.parse(($3.attributes.getNamedItem('WithoutScrolling')).value);this.$24=0;var $2C=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$2F),null,0);}else{this.$21='';this.$22=false;}},$2C:function(){var $enum1=ss.IEnumerator.getEnumerator(this.getAllFormElements());while($enum1.moveNext()){var $0=$enum1.current;if($0.tagName.toLowerCase()==='input'){var $1=$0;var $2=$1.name;if(($1.type==='submit'||$1.type==='button'||$1.type==='image')&&!String.isNullOrEmpty($2)&&$1.onclick==null){var $3=this.$34($2);$1.onclick=$3;}}}},$2D:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=this.$32($p0);var $1=[];for(var $2=0;$2<this.$12.length;$2++){var $3=this.$12[$2];if($3.get_ownerId().startsWith($0)){ArrayPrototype_add($1, $3);}}for(var $4=0;$4<$1.length;$4++){var $5=$1[$4];$5.tearDown();ArrayPrototype_remove(this.$12, $5);}},$2E:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);if(this.$11[$p0]!=null){var $0=this.$11[$p0];Coveo.CNL.Web.Scripts.DOMUtilities.removeLinkAndStylesheet($0);this.$11[$p0]=null;Coveo.CNL.Web.Scripts.Ajax.Profiler.log('    Stylesheet '+$p0+' was removed from the DOM.');}},$2F:function($p0){this.$24++;if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty(this.$21)){var $0=document.getElementById(this.$21);try{Coveo.CNL.Web.Scripts.DOMUtilities.focusElement($0,this.$22);if(document.activeElement!==$0&&this.$24<this.$23){var $1=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$2F),null,0);}else{if($0.tagName.toLowerCase()==='input'){var $2=$0;if($2.type==='text'){Coveo.CNL.Web.Scripts.DOMUtilities.moveCaretAtTheEnd($0);}}}}catch($3){}}},$30:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0;var $1=this.$A.get($p0);if($1!=null){$0=$1;}else{$0=false;}return $0;},$31:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=[];var $1=this.$D.get($p0);if($1!=null){ArrayPrototype_add($0, $1);}var $2=this.$E.get($p0);if($2!=null){for(var $5=0;$5<this.$C.length;$5++){var $6=this.$C[$5];if(Coveo.CNL.Web.Scripts.Utilities.equals($6.$1,$2,true)){ArrayPrototype_add($0, $6);}}}var $3=[];for(var $7=0;$7<$0.length;$7++){var $8=$0[$7];ArrayPrototype_add($3, Coveo.CNL.Web.Scripts.Ajax.Feedback.create($8.$0,$8.$2,$8.$3,$8.$4,$8.$5,$8.$6));}var $4=Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$1.get($p0);if($4!=null){ArrayPrototype_add($3, $4);}return $3;},$32:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=$p0;var $dict1=this.$9;for(var $key2 in $dict1){var $1={key:$key2,value:$dict1[$key2]};if($0.startsWith($1.key)){$0=$1.value+$0.substring($1.key.length,$0.length);}}return $0;},$33:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);var $0=$p0;var $1=$0.indexOf('&z=');if($1!==-1){var $2=$0.indexOf('&',$1+1);$0=$0.substring(0,$1);if($2!==-1){$0+=$0.substring($2-$1,$0.length);}}return $0;},$34:function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p0);return ss.Delegate.create(this,function(){
this.DPB($p0,'',false,false);return false;});},$35:function($p0){var $0=$.bbq.getState('s');if(Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($0)){$0='';}if($0!==this.$1A){var $1=this.blankElementsBeforeNavigation();this.$1A=$0;if(this.cancelPendingOperations()){this.$13=new Coveo.CNL.Web.Scripts.Ajax.PartialPostBack(this,this.$2,'R:'+this.$1A,[],false,false,true);this.$13.set_sendControlData(false);this.$13.set_callback(ss.Delegate.create(this,function($p1_0){
this.unblankElementsAfterNavigation($1);}));if(this.get_bootstrap()&&String.isNullOrEmpty(this.$1A)){this.$13.set_keepQueryStringArguments(true);}this.$13.execute();}}},blankElementsBeforeNavigation:function(){var $0=[];for(var $1=0;$1<this.$F.length;$1++){var $2=this.$F[$1];var $3=document.getElementById($2);Coveo.CNL.Web.Scripts.CNLAssert.notNull($3);$3.style.visibility='hidden';ArrayPrototype_add($0, $3);}return $0;},unblankElementsAfterNavigation:function(elements){if(elements!=null){for(var $0=0;$0<elements.length;$0++){var $1=elements[$0];$1.style.visibility='visible';}}},$36:function($p0){this.$1C=-1;this.$1E+=1;if(!this.$20){if(this.$13==null){this.$13=new Coveo.CNL.Web.Scripts.Ajax.PartialPostBack(this,this.$2,'T:',[],true,false,false);this.$13.set_sendControlData(false);this.$13.set_enableProgress(false);this.$13.execute();}else{this.$37();}}},$37:function(){if(this.$1B){if(!this.$1F||this.$1E<this.$1F){if(!this.$20){if(this.$1C===-1){if(this.$1D>0){this.$1C=window.setTimeout(ss.Delegate.create(this,this.$36),this.$1D);}}}}}},$38:function($p0){this.cancelPendingOperations();this.$8(this.$2,this.$25);this.$25=null;},$39:function($p0){if(this.$13!=null){this.$26=null;}else if(this.$26!=null){var $0='';for(var $1=0;$1<this.$26.length;++$1){$0+=this.$26[$1].text+'\n';}Coveo.CNL.Web.Scripts.CNLAssert.check(this.$13==null);this.$13=new Coveo.CNL.Web.Scripts.Ajax.PartialPostBack(this,this.$2,$0,[],false,false,false);this.$13.execute();this.$26=null;}},$3A:function($p0){var $0;if(Type.canCast($p0,Array)){var $1=$p0;var $2=encodeURIComponent($1.length.toString());for(var $3=0;$3<$1.length;++$3){$2+='&'+this.$3A($1[$3]);}$0=encodeURIComponent(Coveo.CNL.Web.Scripts.MarshalUtilities.marshalValue($2));}else{$0=encodeURIComponent(Coveo.CNL.Web.Scripts.MarshalUtilities.marshalValue($p0));}return $0;},$3B:function($p0){var $0=[];var $1={};for(var $3=0;$3<=$p0.elements.length;$3++){var $4=$p0.elements[$3];if($4!=null){ArrayPrototype_add($0, $4);$1[$4.id]=$4;}}var $2=this.$3.getElementsByTagName('input');for(var $5=0;$5<=$2.length;$5++){var $6=$2[$5];if($6!=null&&!Object.keyExists($1,$6.id)){ArrayPrototype_add($0, $6);$1[$6.id]=$6;}}return $0;}}
Type.registerNamespace('Coveo.CNL.Web.Scripts');Coveo.CNL.Web.Scripts.PositionEnum=function(){};Coveo.CNL.Web.Scripts.PositionEnum.prototype = {leftAbove:0,leftBelow:1,rightAbove:2,rightBelow:3,aboveLeft:4,aboveRight:5,belowLeft:6,belowRight:7}
Coveo.CNL.Web.Scripts.PositionEnum.registerEnum('Coveo.CNL.Web.Scripts.PositionEnum',false);Coveo.CNL.Web.Scripts.CookieUtilities=function(){}
Coveo.CNL.Web.Scripts.CookieUtilities.getCookie=function(p_Name){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);var $0=document.cookie;var $1=p_Name+'=';var $2=$0.indexOf('; '+$1);if($2===-1){$2=$0.indexOf($1);if($2===-1){return null;}}else{$2+=2;}var $3=$0.indexOf(';',$2);if($3===-1){$3=$0.length;}return unescape($0.substring($2+$1.length,$3));}
Coveo.CNL.Web.Scripts.CookieUtilities.setCookie=function(p_Name,p_Value,p_Expires){Coveo.CNL.Web.Scripts.CNLAssert.notEmpty(p_Name);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Value);var $0='';if(!ss.isNull(p_Expires)){var $2=Date.get_now();$2.setTime($2.getTime()+(p_Expires*24*60*60*1000));$0='; expires='+$2.toUTCString();}var $1=p_Name+'='+escape(p_Value)+$0+'; path=/';document.cookie=$1;}
Coveo.CNL.Web.Scripts.MouseCapture=function(p_MouseMoveHandler,p_MouseDownHandler,p_MouseUpHandler){Coveo.CNL.Web.Scripts.CNLAssert.check(p_MouseMoveHandler!=null||p_MouseDownHandler!=null||p_MouseUpHandler!=null);this.$0=p_MouseMoveHandler;this.$1=p_MouseDownHandler;this.$2=p_MouseUpHandler;if(this.$0!=null){if(window.event!=null){this.$7=window.event.screenX;this.$8=window.event.screenY;}this.$3=ss.Delegate.create(this,this.$C);document.attachEvent('onmousemove',this.$3);}if(this.$1!=null){this.$4=ss.Delegate.create(this,this.$D);document.attachEvent('onmousedown',this.$4);}if(this.$2!=null){this.$5=ss.Delegate.create(this,this.$E);document.attachEvent('onmouseup',this.$5);this.$6=ss.Delegate.create(this,this.$F);document.attachEvent('onmouseout',this.$6);}}
Coveo.CNL.Web.Scripts.MouseCapture.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:0,$8:0,$9:0,$A:0,$B:true,get_offsetX:function(){return this.$9;},get_offsetY:function(){return this.$A;},get_cancelBubble:function(){return this.$B;},set_cancelBubble:function(value){this.$B=value;return value;},dispose:function(){if(this.$3!=null){document.detachEvent('onmousemove',this.$3);this.$3=null;}if(this.$4!=null){document.detachEvent('onmousedown',this.$4);this.$4=null;}if(this.$5!=null){document.detachEvent('onmouseup',this.$5);this.$5=null;}if(this.$6!=null){document.detachEvent('onmouseout',this.$6);this.$6=null;}},$C:function(){var $0=window.event.screenX;this.$9=this.$7-$0;var $1=window.event.screenY;this.$A=this.$8-$1;if(this.$0!=null){this.$0();}this.$7=$0;this.$8=$1;if(this.get_cancelBubble()){window.event.returnValue=false;window.event.cancelBubble=true;}},$D:function(){if(this.$1!=null){this.$1();}if(this.get_cancelBubble()){window.event.returnValue=false;window.event.cancelBubble=true;}},$E:function(){if(this.$2!=null){this.$2();}if(this.get_cancelBubble()){window.event.returnValue=false;window.event.cancelBubble=true;}},$F:function(){if(window.event.toElement==null||window.event.toElement===document.documentElement){this.$E();}}}
Coveo.CNL.Web.Scripts.ElementRect=function(){}
Coveo.CNL.Web.Scripts.ElementRect.prototype={m_Origin:null,m_Size:null,get_origin:function(){return this.m_Origin;},set_origin:function(value){this.m_Origin=value;return value;},get_size:function(){return this.m_Size;},set_size:function(value){this.m_Size=value;return value;},isPtInside:function(p_X,p_Y){return (p_X>=this.get_origin().left&&p_X<this.get_origin().left+this.get_size().width&&p_Y>=this.get_origin().top&&p_Y<this.get_origin().top+this.get_size().width);},left:function(){return this.get_origin().left;},right:function(){return this.get_origin().left+this.get_size().width-1;},top:function(){return this.get_origin().top;},bottom:function(){return this.get_origin().top+this.get_size().height-1;},inflate:function(dx,dy){this.get_origin().left-=dx;this.get_origin().top-=dy;this.get_size().width+=dx*2;this.get_size().height+=dy*2;},toString:function(){return 'L:'+this.get_origin().left+'T:'+this.get_origin().top+'W:'+this.get_size().width+'H:'+this.get_size().height;}}
Coveo.CNL.Web.Scripts.MulticastEventHandler=function(){this.$0=[];}
Coveo.CNL.Web.Scripts.MulticastEventHandler.prototype={$0:null,add:function(p_Handler){ArrayPrototype_remove(this.$0, p_Handler);},remove:function(p_Handler){ArrayPrototype_remove(this.$0, p_Handler);},invoke:function(p_Sender,p_Args){for(var $0=0;$0<this.$0.length;$0++){var $1=this.$0[$0];$1(p_Sender,p_Args);}},isDefined:function(){return this.$0.length>0;}}
Coveo.CNL.Web.Scripts.OnClickElsewhereEvent=function(p_Elements,p_Handler,p_EscapeToo){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Elements);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Handler);this.$0=p_Elements;this.$1=p_Handler;this.$2=ss.Delegate.create(this,this.$4);document.body.attachEvent('onclick',this.$2);if(p_EscapeToo){this.$3=ss.Delegate.create(this,this.$5);document.body.attachEvent('onkeydown',this.$3);}}
Coveo.CNL.Web.Scripts.OnClickElsewhereEvent.prototype={$0:null,$1:null,$2:null,$3:null,dispose:function(){if(this.$2!=null){document.body.detachEvent('onclick',this.$2);this.$2=null;}if(this.$3!=null){document.body.detachEvent('onkeydown',this.$3);this.$3=null;}},$4:function(){var $0=false;for(var $1=0;$1<this.$0.length;$1++){var $2=this.$0[$1];if($2.contains(window.event.srcElement)){$0=true;break;}}if(!$0){this.$1();}},$5:function(){if(window.event.keyCode===27){this.$1();}}}
Coveo.CNL.Web.Scripts.ScriptLoader=function(p_URLs){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_URLs);Coveo.CNL.Web.Scripts.CNLAssert.check(p_URLs.length>0);this.$0=p_URLs;this.$6=-1;}
Coveo.CNL.Web.Scripts.ScriptLoader.prototype={$0:null,$1:null,$2:null,$3:false,$4:null,$5:null,$6:0,$7:null,$8:0,$9:false,$A:false,dispose:function(){if(this.$7!=null){for(var $0=0;$0<this.$7.length;$0++){var $1=this.$7[$0];if(this.$3){$1.detachEvent('onreadystatechange',this.$4);}else{$1.detachEvent('onload',this.$4);$1.detachEvent('onerror',this.$5);}}this.$7=null;}},load:function(p_LoadInParallel,p_TimeOut,p_LoadedHandler,p_ErrorHandler){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_ErrorHandler);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_ErrorHandler);this.$1=p_LoadedHandler;this.$2=p_ErrorHandler;this.$4=ss.Delegate.create(this,this.onScriptErrorEventHandler);this.$3=window.navigator.userAgent.indexOf('MSIE')>=0;if(this.$3){this.$5=ss.Delegate.create(this,this.onScriptErrorEventHandler);}this.$7=[];if(p_LoadInParallel){for(var $0=0;$0<this.$0.length;$0++){this.loadScript(this.$0[$0]);}}else{this.$6++;this.loadScript(this.$0[this.$6]);}if(p_TimeOut>0){window.setTimeout(ss.Delegate.create(this,this.onScriptError),p_TimeOut);}},loadScript:function(p_ScriptURL){var $0=document.createElement('SCRIPT');if(this.$3){$0.attachEvent('onreadystatechange',this.$4);}else{$0.readyState='complete';$0.attachEvent('onload',this.$4);$0.attachEvent('onerror',this.$5);}$0.type='text/javascript';$0.src=p_ScriptURL;ArrayPrototype_add(this.$7, $0);document.getElementsByTagName('HEAD')[0].appendChild($0);},onScriptErrorEventHandler:function(){this.onScriptError(null);},onScriptError:function(arg){if(!this.$9&&!this.$A){this.$9=true;this.$2();}},onScriptLoad:function(){if(this.$9){return;}var $0=window.event.srcElement;if($0.readyState!=='complete'&&$0.readyState!=='loaded'){return;}if(this.$6!==-1){this.$6++;if(this.$6!==this.$0.length){this.loadScript(this.$0[this.$6]);return;}}else{this.$8++;if(this.$8!==this.$0.length){return;}}this.$A=true;this.$1();}}
Coveo.CNL.Web.Scripts.StringDeserializer=function(p_String){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_String);this.$0=p_String;this.$1=['~','!'];Coveo.CNL.Web.Scripts.CNLAssert.check(this.$0.startsWith('_d'));var $0=this.getString();Coveo.CNL.Web.Scripts.CNLAssert.check($0.startsWith('_d'));}
Coveo.CNL.Web.Scripts.StringDeserializer.prototype={$0:null,$1:null,$2:0,$3:null,get_EOF:function(){return this.$2===this.$0.length;},getInt:function(){return parseInt(this.$4());},getDouble:function(){return parseFloat(this.$4());},getBool:function(){return (this.$4()==='0')?false:true;},getString:function(){var $0=this.$4();var $1=$0.indexOf('~');if($1!==-1){if(this.$3==null){this.$3=new ss.StringBuilder();}else{this.$3.clear();}var $2=0;do{this.$3.append($0.substring($2,$1));if($0.charAt($1+1)==='~'){this.$3.append(('~'));}else{this.$3.append(('!'));}$2=$1+2;$1=$0.indexOf('~',$2);}while($1!==-1);this.$3.append($0.substring($2,$0.length));$0=this.$3.toString();}return $0;},getStringArray:function(){var $0=this.getInt();var $1=new Array($0);for(var $2=0;$2<$0;++$2){$1[$2]=this.getString();}return $1;},$4:function(){Coveo.CNL.Web.Scripts.CNLAssert.check(!this.get_EOF());var $0=Coveo.CNL.Web.Scripts.Utilities.indexOfAny(this.$0,this.$1,this.$2);while($0!==-1){var $2=this.$0.charAt($0);if($2==='~'){Coveo.CNL.Web.Scripts.CNLAssert.check($0<this.$0.length-1);$0+=2;}else if($2==='!'){break;}$0=Coveo.CNL.Web.Scripts.Utilities.indexOfAny(this.$0,this.$1,$0);}var $1;if($0!==-1){$1=this.$0.substring(this.$2,$0);this.$2=$0+1;}else{$1=this.$0.substring(this.$2,this.$0.length);this.$2=this.$0.length;}return $1;}}
Coveo.CNL.Web.Scripts.Utilities=function(){}
Coveo.CNL.Web.Scripts.Utilities.fromChar=function(p_Char,p_Length){var $0=p_Char;for(var $1=1;$1<p_Length;$1++){$0+=p_Char;}return $0;}
Coveo.CNL.Web.Scripts.Utilities.padLeft=function(p_String,p_TotalWidth,p_Char){if(p_String.length<p_TotalWidth){return Coveo.CNL.Web.Scripts.Utilities.fromChar(p_Char,p_TotalWidth-p_String.length)+p_String;}return p_String;}
Coveo.CNL.Web.Scripts.Utilities.padRight=function(p_String,p_TotalWidth,p_Char){if(p_String.length<p_TotalWidth){return p_String+Coveo.CNL.Web.Scripts.Utilities.fromChar(p_Char,p_TotalWidth-p_String.length);}return p_String;}
Coveo.CNL.Web.Scripts.Utilities.isNullOrEmpty=function(p_String){return p_String==null||!p_String;}
Coveo.CNL.Web.Scripts.Utilities.equals=function(p_String1,p_String2,p_IgnoreCase){if(p_IgnoreCase){return (p_String1.toLowerCase()===p_String2.toLowerCase());}else{return (p_String1===p_String2);}}
Coveo.CNL.Web.Scripts.Utilities.indexOfAny=function(p_String,p_Chars,p_StartIndex){var $0=-1;for(var $1=0;$1<p_Chars.length;$1++){var $2=p_String.indexOf(p_Chars[$1],p_StartIndex);if($2!==-1&&($0===-1||$2<$0)){$0=$2;}}return $0;}
Coveo.CNL.Web.Scripts.Utilities.isNull=function(p_Object){return Boolean.parse(eval('p_Object === null').toString());}
Coveo.CNL.Web.Scripts.Utilities.isUndefined=function(p_Object){return Boolean.parse(eval('p_Object === undefined').toString());}
Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined=function(p_Object){return (Coveo.CNL.Web.Scripts.Utilities.isNull(p_Object)||Coveo.CNL.Web.Scripts.Utilities.isUndefined(p_Object));}
Coveo.CNL.Web.Scripts.Utilities.createGetXmlHttpRequest=function(url){return Coveo.CNL.Web.Scripts.Utilities.$0('GET',url);}
Coveo.CNL.Web.Scripts.Utilities.createPostXmlHttpRequest=function(url){return Coveo.CNL.Web.Scripts.Utilities.$0('POST',url);}
Coveo.CNL.Web.Scripts.Utilities.$0=function($p0,$p1){Coveo.CNL.Web.Scripts.CNLAssert.check($p0==='GET'||$p0==='POST');Coveo.CNL.Web.Scripts.CNLAssert.notEmpty($p1);var $0=new XMLHttpRequest();$0.open($p0,$p1,true);Coveo.CNL.Web.Scripts.Utilities.$1($0);return $0;}
Coveo.CNL.Web.Scripts.Utilities.$1=function($p0){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10Compat()){$p0.responseType='msxml-document';}}
Coveo.CNL.Web.Scripts.TransferMargin=function(p_From,p_To){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_From);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_To);this.$0=p_From;p_To.style.marginLeft=p_From.currentStyle.marginLeft;p_To.style.marginTop=p_From.currentStyle.marginTop;p_To.style.marginRight=p_From.currentStyle.marginRight;p_To.style.marginBottom=p_From.currentStyle.marginBottom;this.$1=p_From.style.marginLeft;p_From.style.marginLeft='0px';this.$2=p_From.style.marginTop;p_From.style.marginTop='0px';this.$3=p_From.style.marginRight;p_From.style.marginRight='0px';this.$4=p_From.style.marginBottom;p_From.style.marginBottom='0px';}
Coveo.CNL.Web.Scripts.TransferMargin.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,restore:function(){this.$0.style.marginLeft=this.$1;this.$0.style.marginTop=this.$2;this.$0.style.marginRight=this.$3;this.$0.style.marginBottom=this.$4;}}
Coveo.CNL.Web.Scripts.Timeout=function(p_Callback,p_CallbackArg,p_Delay){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Callback!=null);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Delay>=0);this.$1=p_Callback;this.$2=p_CallbackArg;this.$0=window.setTimeout(ss.Delegate.create(this,this.$3),p_Delay);}
Coveo.CNL.Web.Scripts.Timeout.prototype={$0:0,$1:null,$2:null,cancel:function(){if(!!this.$0){window.clearTimeout(this.$0);this.$0=0;}},$3:function(){if(!!this.$0){this.$1(this.$2);this.$0=0;}}}
Coveo.CNL.Web.Scripts.OnLeaveManyEvent=function(p_Elements,p_Delay,p_Handler){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Elements);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Delay>0);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Handler);this.attach(p_Elements,p_Delay,p_Handler);}
Coveo.CNL.Web.Scripts.OnLeaveManyEvent.prototype={$0:null,$1:0,$2:null,$3:null,$4:null,$5:null,dispose:function(){if(this.$5!=null){this.$5.cancel();this.$5=null;}for(var $0=0;$0<this.$0.length;$0++){var $1=this.$0[$0];$1.detachEvent('onmouseover',this.$3);$1.detachEvent('onmouseout',this.$4);}},attach:function(p_Elements,p_Delay,p_Handler){this.$0=p_Elements;this.$1=p_Delay;this.$2=p_Handler;this.$3=ss.Delegate.create(this,this.$7);this.$4=ss.Delegate.create(this,this.$8);for(var $0=0;$0<this.$0.length;$0++){var $1=this.$0[$0];$1.attachEvent('onmouseover',this.$3);$1.attachEvent('onmouseout',this.$4);}},$6:function($p0){this.$5=null;this.$2();},$7:function(){var $0=true;for(var $1=0;$1<this.$0.length;$1++){var $2=this.$0[$1];if($2.contains(window.event.fromElement)){$0=false;break;}}if($0){if(this.$5!=null){this.$5.cancel();this.$5=null;}}},$8:function(){var $0=true;for(var $1=0;$1<this.$0.length;$1++){var $2=this.$0[$1];if($2.contains(window.event.toElement)){$0=false;break;}}if($0){if(this.$5==null){this.$5=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$6),null,this.$1);}}}}
Coveo.CNL.Web.Scripts.OnDwellEvent=function(p_Element,p_Delay,p_Handler){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Delay>0);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Handler);this.$0=p_Element;this.$1=p_Delay;this.$2=p_Handler;this.$5=ss.Delegate.create(this,this.$8);this.$0.attachEvent('onmousemove',this.$5);this.$6=ss.Delegate.create(this,this.$9);this.$0.attachEvent('onmouseout',this.$6);}
Coveo.CNL.Web.Scripts.OnDwellEvent.prototype={$0:null,$1:0,$2:null,$3:null,$4:false,$5:null,$6:null,dispose:function(){if(this.$3!=null){this.$3.cancel();this.$3=null;}if(this.$5!=null){this.$0.detachEvent('onmousemove',this.$5);this.$5=null;}if(this.$6!=null){this.$0.detachEvent('onmouseout',this.$6);this.$6=null;}},$7:function($p0){this.$3=null;this.$2();},$8:function(){if(!this.$4){Coveo.CNL.Web.Scripts.CNLAssert.isNull(this.$3);this.$3=new Coveo.CNL.Web.Scripts.Timeout(ss.Delegate.create(this,this.$7),null,this.$1);this.$4=true;}},$9:function(){if(!this.$0.contains(window.event.toElement)){if(this.$3!=null){this.$3.cancel();this.$3=null;}this.$4=false;}}}
Coveo.CNL.Web.Scripts.ElementPosition=function(p_Left,p_Top){this.left=p_Left;this.top=p_Top;}
Coveo.CNL.Web.Scripts.ElementPosition.prototype={left:0,top:0}
Coveo.CNL.Web.Scripts.ElementBounds=function(p_Left,p_Top,p_Right,p_Bottom){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Left>=0);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Top>=0);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Right>=p_Left);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Bottom>=p_Top);this.left=p_Left;this.top=p_Top;this.right=p_Right;this.bottom=p_Bottom;}
Coveo.CNL.Web.Scripts.ElementBounds.prototype={left:0,top:0,right:0,bottom:0,get_width:function(){return this.right-this.left;},get_height:function(){return this.bottom-this.top;},isPtInside:function(p_X,p_Y){return (p_X>=this.left&&p_X<=this.right&&p_Y>=this.top&&p_Y<=this.bottom);}}
Coveo.CNL.Web.Scripts.BrowserHelper=function(){}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE=function(){return window.navigator.userAgent.indexOf('MSIE')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE6=function(){return window.navigator.userAgent.indexOf('MSIE 6')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7=function(){return window.navigator.userAgent.indexOf('MSIE 7')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isEmulatingIE7=function(){return (Coveo.CNL.Web.Scripts.BrowserHelper.getIECompatTridentVersion('MSIE 7.0')>=4);}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8=function(){return window.navigator.userAgent.indexOf('MSIE 8')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8Compat=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()&&window.navigator.userAgent.indexOf('Trident/4.0')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE9=function(){return window.navigator.userAgent.indexOf('MSIE 9')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE9Compat=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()&&window.navigator.userAgent.indexOf('Trident/5.0')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10=function(){return window.navigator.userAgent.indexOf('MSIE 10')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10Compat=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()&&window.navigator.userAgent.indexOf('Trident/6.0')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE11CompatPlus=function(){return (Coveo.CNL.Web.Scripts.BrowserHelper.getIECompatTridentVersion(null)>=7);}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7Plus=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8Plus();}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8Plus=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE9Plus();}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE9Plus=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE9()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10Plus();}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10Plus=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10();}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isIEWithHistoryFrame=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()&&document.getElementById('__historyFrame')!=null;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isFirefox=function(){return window.navigator.userAgent.indexOf('Firefox')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isChrome=function(){return window.navigator.userAgent.indexOf('Chrome')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isSafari=function(){return window.navigator.userAgent.indexOf('Safari')!==-1;}
Coveo.CNL.Web.Scripts.BrowserHelper.get_isWebKit=function(){return Coveo.CNL.Web.Scripts.BrowserHelper.get_isSafari()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isChrome();}
Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode=function(){return eval('document.compatMode')!=='BackCompat';}
Coveo.CNL.Web.Scripts.BrowserHelper.get_quirksMode=function(){return !Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode();}
Coveo.CNL.Web.Scripts.BrowserHelper.get_ieDocumentMode=function(){var $0=-1;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){var $1=eval('document.documentMode');if(ss.isNullOrUndefined($1)){$0=7;}else{$0=$1;}}return $0;}
Coveo.CNL.Web.Scripts.BrowserHelper.getIECompatTridentVersion=function(msieMarker){if(String.isNullOrEmpty(msieMarker)){msieMarker='MSIE ';}var $0=0;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){var $1=window.navigator.userAgent;if($1.indexOf(msieMarker)!==-1){var $2='Trident/';var $3=$1.indexOf($2);if($3!==-1){$3+=$2.length;var $4=$3;while($4<$1.length&&($1.charAt($4)>='0'&&$1.charAt($4)<='9')){++$4;}if($4>$3){$0=parseInt($1.substring($3,$4));}}}}return $0;}
Coveo.CNL.Web.Scripts.ElementSize=function(p_Width,p_Height){Coveo.CNL.Web.Scripts.CNLAssert.check(p_Width>=0);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Height>=0);this.width=p_Width;this.height=p_Height;}
Coveo.CNL.Web.Scripts.ElementSize.prototype={width:0,height:0}
Coveo.CNL.Web.Scripts.DOMUtilities=function(){}
Coveo.CNL.Web.Scripts.DOMUtilities.getClientRect=function(){var $0=new Coveo.CNL.Web.Scripts.ElementRect();var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();$0.set_origin(new Coveo.CNL.Web.Scripts.ElementPosition($1.width,$1.height));$0.set_size(Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize());return $0;}
Coveo.CNL.Web.Scripts.DOMUtilities.getWindowSize=function(){var $0;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()){$0=new Coveo.CNL.Web.Scripts.ElementSize(document.documentElement.clientWidth,document.documentElement.clientHeight);}else{$0=new Coveo.CNL.Web.Scripts.ElementSize(document.body.clientWidth,document.body.clientHeight);}return $0;}
Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount=function(){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getDocumentElemForScroll();return new Coveo.CNL.Web.Scripts.ElementSize($0.scrollLeft,$0.scrollTop);}
Coveo.CNL.Web.Scripts.DOMUtilities.getDocumentElemForScroll=function(){var $0=null;var $1=Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current();if($1!=null&&!String.isNullOrEmpty($1.get_scrollMasterControlID())){$0=document.getElementById($1.get_scrollMasterControlID());}if($0==null){$0=((Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isChrome())?document.documentElement:document.body);}return $0;}
Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);var $0=0;var $1=0;var $2=p_Element.getClientRects();if($2.length>0){var $3=$2.item(0);$0=$3.left;$1=$3.top;}if(!Coveo.CNL.Web.Scripts.Utilities.equals(p_Element.tagName,'html',true)&&!Coveo.CNL.Web.Scripts.Utilities.equals(p_Element.tagName,'body',true)){var $4=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();$0+=$4.width;$1+=$4.height;}return new Coveo.CNL.Web.Scripts.ElementPosition($0,$1);}
Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);return new Coveo.CNL.Web.Scripts.ElementSize(p_Element.offsetWidth,p_Element.offsetHeight);}
Coveo.CNL.Web.Scripts.DOMUtilities.setElementSize=function(p_Element,p_Size){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Size);p_Element.style.width=p_Size.width+'px';p_Element.style.height=p_Size.height+'px';}
Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition(p_Element);var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(p_Element);return new Coveo.CNL.Web.Scripts.ElementBounds($0.left,$0.top,$0.left+$1.width,$0.top+$1.height);}
Coveo.CNL.Web.Scripts.DOMUtilities.setElementBounds=function(p_Element,p_Bounds){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Bounds);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Element.style.position==='absolute');p_Element.style.left=p_Bounds.left+'px';p_Element.style.top=p_Bounds.top+'px';p_Element.style.width=p_Bounds.get_width()+'px';p_Element.style.height=p_Bounds.get_height()+'px';}
Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle=function(){var $0,$1;var $2=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount();$0=$2.width;$1=$2.height;var $3,$4;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()){$3=$0+document.documentElement.clientWidth;$4=$1+document.documentElement.clientHeight;}else{$3=$0+document.body.clientWidth;$4=$1+document.body.clientHeight;}return new Coveo.CNL.Web.Scripts.ElementBounds($0,$1,$3,$4);}
Coveo.CNL.Web.Scripts.DOMUtilities.getIntersection=function(p_First,p_Second){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_First);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Second);var $0=Math.max(p_First.left,p_Second.left);var $1=Math.max(p_First.top,p_Second.top);var $2=Math.min(p_First.right,p_Second.right);var $3=Math.min(p_First.bottom,p_Second.bottom);return new Coveo.CNL.Web.Scripts.ElementBounds($0,$1,$2,$3);}
Coveo.CNL.Web.Scripts.DOMUtilities.positionElement=function(p_Element,p_Reference,p_Position){var $0;var $1;switch(p_Position){case 1:$0='Left';$1='Below';break;case 0:$0='Left';$1='Above';break;case 4:$0='Above';$1='Left';break;case 5:$0='Above';$1='Right';break;case 3:$0='Right';$1='Below';break;case 2:$0='Right';$1='Above';break;case 6:$0='Below';$1='Left';break;case 7:$0='Below';$1='Right';break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();$0='Left';$1='Below';break;}var $2=0;var $3=0;var $4=0;var $5=0;var $6=false;var $7=false;var $8=0;var $9=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize(p_Element);var $A=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds(p_Reference);var $B=Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle();while((!$6||!$7)&&$8<3){if($0==='Left'){$2=$A.left-$9.width;}else if($0==='Right'){$2=$A.right-1;}else if($0==='Above'){$3=$A.top-$9.height;}else if($0==='Below'){$3=$A.bottom-1;}if($1==='Left'){$2=$A.left;}else if($1==='Right'){$2=$A.right-$9.width;}else if($1==='Above'){$3=$A.bottom-$9.height;}else if($1==='Below'){$3=$A.top;}if(!$8){$4=$2;$5=$3;}$6=true;$7=true;var $C=$2+$9.width;var $D=$3+$9.height;if($2<$B.left||$C>=$B.right){if($0==='Left'){$0='Right';}else if($0==='Right'){$0='Left';}else if($1==='Left'){$1='Right';}else if($1==='Right'){$1='Left';}$6=false;}if($3<$B.top||$D>=$B.bottom){if($0==='Above'){$0='Below';}else if($0==='Below'){$0='Above';}else if($1==='Above'){$1='Below';}else if($1==='Below'){$1='Above';}$7=false;}++$8;}if(!$6){$2=$4;}if(!$7){$3=$5;}Coveo.CNL.Web.Scripts.DOMUtilities.setElementPosition(p_Element,new Coveo.CNL.Web.Scripts.ElementPosition($2,$3));}
Coveo.CNL.Web.Scripts.DOMUtilities.setElementPosition=function(p_Element,p_Position){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Position);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Element.currentStyle.position==='absolute');var $0=p_Element.offsetParent;if($0!=null&&!Coveo.CNL.Web.Scripts.Utilities.equals($0.nodeName,'body',true)){var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($0);var $2=Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.get_current();if($2!=null&&!String.isNullOrEmpty($2.get_scrollMasterControlID())){$1.left-=$0.scrollLeft;$1.top-=$0.scrollTop;}p_Element.style.left=p_Position.left-$1.left+'px';p_Element.style.top=p_Position.top-$1.top+'px';}else{p_Element.style.left=p_Position.left+'px';p_Element.style.top=p_Position.top+'px';}}
Coveo.CNL.Web.Scripts.DOMUtilities.setFixedPosition=function(p_Element,p_Left,p_Top){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Left>=0);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Top>=0);if((Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE7Plus()&&Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode())||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10Plus()||Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10Compat()||!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){p_Element.style.position='fixed';p_Element.style.left=p_Left+'px';p_Element.style.top=p_Top+'px';}else{var $0=(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode())?'documentElement':'body';p_Element.style.position='absolute';p_Element.style.setExpression('left','(dummy = document.'+$0+'.scrollLeft + '+p_Left+") + 'px'");p_Element.style.setExpression('top','(dummy = document.'+$0+'.scrollTop + '+p_Top+") + 'px'");}}
Coveo.CNL.Web.Scripts.DOMUtilities.consumeRemainingHeight=function(p_Parent,p_Header,p_Body,p_Footer,p_Continuous){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Parent);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Body);Coveo.CNL.Web.Scripts.DOMUtilities.$2(p_Parent,p_Header,p_Body,p_Footer,0,0,0,p_Continuous);}
Coveo.CNL.Web.Scripts.DOMUtilities.consumeHeightToWindowBottom=function(p_Element,p_Continuous){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.DOMUtilities.$3(p_Element,0,0,p_Continuous);}
Coveo.CNL.Web.Scripts.DOMUtilities.coverAllWindow=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.DOMUtilities.setFixedPosition(p_Element,0,0);if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE8Plus()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isEmulatingIE7()){var $0=(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode())?'documentElement':'body';p_Element.style.setExpression('width','(dummy = window.document.'+$0+".clientWidth) + 'px'");p_Element.style.setExpression('height','(dummy = window.document.'+$0+".clientHeight) + 'px'");}else{p_Element.style.width='100%';p_Element.style.height='100%';}}
Coveo.CNL.Web.Scripts.DOMUtilities.setOpacity=function(p_Element,p_Opacity){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);Coveo.CNL.Web.Scripts.CNLAssert.check(p_Opacity>=0&&p_Opacity<=1);if(Math.abs(p_Opacity-1)>0.1){if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10()){p_Element.style.filter='alpha(opacity='+(p_Opacity*100).toFixed(0)+')';}else{p_Element.style.opacity=p_Opacity.toString();}}else{if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE10()){p_Element.style.filter='';}else{p_Element.style.opacity='';}}}
Coveo.CNL.Web.Scripts.DOMUtilities.scrollAllTheWayUp=function(p_MasterElemId){Coveo.CNL.Web.Scripts.DOMUtilities.scrollToHeight(p_MasterElemId,0);}
Coveo.CNL.Web.Scripts.DOMUtilities.scrollToHeight=function(p_MasterElemId,p_Height){if(p_MasterElemId==null){if(Coveo.CNL.Web.Scripts.BrowserHelper.get_standardMode()&&!Coveo.CNL.Web.Scripts.BrowserHelper.get_isWebKit()){document.documentElement.scrollTop=p_Height;}else{document.body.scrollTop=p_Height;}}else{var $0=document.getElementById(p_MasterElemId);if($0!=null){$0.scrollTop=p_Height;}}}
Coveo.CNL.Web.Scripts.DOMUtilities.scrollIntoViewIfNotAlready=function(p_Element){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getVisibleRectangle();var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementBounds(p_Element);if($0.left>$1.left||$0.top>$1.top||$0.right<$1.right||$0.bottom<$1.bottom){p_Element.scrollIntoView();}}
Coveo.CNL.Web.Scripts.DOMUtilities.resizeIFrameHeight=function(p_IFrame,p_AdditionalHeight){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_IFrame);var $0;if(!Coveo.CNL.Web.Scripts.Utilities.equals(p_IFrame.contentWindow.document.compatMode,'BackCompat',true)){$0=p_IFrame.contentWindow.document.documentElement.scrollHeight;}else{$0=p_IFrame.contentWindow.document.body.scrollHeight;}p_IFrame.style.height=($0+p_AdditionalHeight)+'px';}
Coveo.CNL.Web.Scripts.DOMUtilities.removeLinkAndStylesheet=function(p_Link){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Link);var $0=window.document.styleSheets;for(var $1=0;$1<$0.length;++$1){var $2=$0[$1];var $3=$2[(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE())?'owningElement':'ownerNode'];if($3===p_Link){$2.disabled=true;break;}}p_Link.parentNode.removeChild(p_Link);}
Coveo.CNL.Web.Scripts.DOMUtilities.setOperationPendingCursor=function(){$('body').css('cursor','progress');}
Coveo.CNL.Web.Scripts.DOMUtilities.removeOperationPendingCursor=function(){$('body').css('cursor','');}
Coveo.CNL.Web.Scripts.DOMUtilities.incrementBusyCounter=function(){if(++Coveo.CNL.Web.Scripts.DOMUtilities.$0===1){Coveo.CNL.Web.Scripts.CNLAssert.isNull(Coveo.CNL.Web.Scripts.DOMUtilities.$1);Coveo.CNL.Web.Scripts.DOMUtilities.$1=document.createElement('div');Coveo.CNL.Web.Scripts.DOMUtilities.$1.id='CoveoBusyMarker';Coveo.CNL.Web.Scripts.DOMUtilities.$1.style.display='none';document.body.appendChild(Coveo.CNL.Web.Scripts.DOMUtilities.$1);}}
Coveo.CNL.Web.Scripts.DOMUtilities.decrementBusyCounter=function(){Coveo.CNL.Web.Scripts.CNLAssert.check(Coveo.CNL.Web.Scripts.DOMUtilities.$0>0);if(!--Coveo.CNL.Web.Scripts.DOMUtilities.$0){Coveo.CNL.Web.Scripts.CNLAssert.notNull(Coveo.CNL.Web.Scripts.DOMUtilities.$1);document.body.removeChild(Coveo.CNL.Web.Scripts.DOMUtilities.$1);Coveo.CNL.Web.Scripts.DOMUtilities.$1=null;}}
Coveo.CNL.Web.Scripts.DOMUtilities.getNextHighestZindex=function(){var $0=0;var $1=0;var $2=document.getElementsByTagName('*');for(var $3=0;$3<$2.length;++$3){if(!Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($2[$3].currentStyle)&&!Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined($2[$3].currentStyle.zIndex)){$1=$2[$3].currentStyle.zIndex;if(!isNaN($1)){var $4=parseInt($1);if($4<16777271&&$4>$0){$0=$4;}}}}return ($0+1);}
Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren=function(p_Element,p_Disable,p_ResetValues){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Element);for(var $0=0;$0<p_Element.childNodes.length;$0++){var $1=p_Element.childNodes[$0];Coveo.CNL.Web.Scripts.CNLAssert.notNull($1);if($1.hasChildNodes()){Coveo.CNL.Web.Scripts.DOMUtilities.changeEnableStateOfChildren($1,p_Disable,p_ResetValues);}try{$1.disabled=p_Disable;}catch($2){}if(p_ResetValues){if($1.nodeName==='OPTION'&&!!($1).selected){($1).selected=false;}else if($1.nodeName==='INPUT'&&((!$1.getAttribute('type').toString().compareTo('text',true))||(!$1.getAttribute('type').toString().compareTo('password',true)))){($1).value='';}}}}
Coveo.CNL.Web.Scripts.DOMUtilities.setSelectedRange=function(p_TextBox,p_First,p_Last){if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){var $0=p_TextBox.createTextRange();$0.moveStart('character',p_First);$0.moveEnd('character',p_Last-p_TextBox.value.length);$0.select();}else{p_TextBox.setSelectionRange(p_First,p_Last);}}
Coveo.CNL.Web.Scripts.DOMUtilities.getSelectionStart=function(p_TextBox){var $0=0;if(Coveo.CNL.Web.Scripts.BrowserHelper.get_isIE()){p_TextBox.focus();var $1=document.selection.createRange();$1.moveStart('character',-p_TextBox.value.length);$0=$1.text.length;}else{$0=p_TextBox.selectionStart;}return $0;}
Coveo.CNL.Web.Scripts.DOMUtilities.moveCaretAtTheEnd=function(p_TextBox){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_TextBox);Coveo.CNL.Web.Scripts.DOMUtilities.setSelectedRange(p_TextBox,p_TextBox.value.length,p_TextBox.value.length);if(p_TextBox.scrollWidth>p_TextBox.clientWidth){p_TextBox.scrollLeft=p_TextBox.scrollWidth-p_TextBox.clientWidth;}}
Coveo.CNL.Web.Scripts.DOMUtilities.focusElement=function(p_Element,p_DoNotScroll){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getScrollingAmount().height;p_Element.focus();if(p_DoNotScroll){window.setTimeout(function(){
Coveo.CNL.Web.Scripts.DOMUtilities.scrollToHeight(null,$0);},10);}}
Coveo.CNL.Web.Scripts.DOMUtilities.$2=function($p0,$p1,$p2,$p3,$p4,$p5,$p6,$p7){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);Coveo.CNL.Web.Scripts.CNLAssert.notNull($p2);if($p0.parentNode!=null){var $0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize($p0).height;var $1=($p1!=null)?Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize($p1).height:0;var $2=($p3!=null)?Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize($p3).height:0;if($0!==$p4||$1!==$p5||$2!==$p6){$p2.style.height='25px';var $3=$p2.clientTop*2;$p2.style.display='none';$0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize($p0).height;$p2.style.height=Math.max($0-$1-$2-$3,0)+'px';$p2.style.display='block';$0=Coveo.CNL.Web.Scripts.DOMUtilities.getElementSize($p0).height;}if($p7){window.setTimeout(function(){
Coveo.CNL.Web.Scripts.DOMUtilities.$2($p0,$p1,$p2,$p3,$0,$1,$2,$p7);},Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis);}}else{}}
Coveo.CNL.Web.Scripts.DOMUtilities.$3=function($p0,$p1,$p2,$p3){Coveo.CNL.Web.Scripts.CNLAssert.notNull($p0);if($p0.parentNode!=null&&document.getElementById($p0.id)!=null){var $0=document.documentElement.clientHeight;var $1=Coveo.CNL.Web.Scripts.DOMUtilities.getElementPosition($p0).top;if($0!==$p1||$1!==$p2){$p0.style.height=Math.max($0-$1,0)+'px';}for(var $2=0;$2<document.documentElement.childNodes.length;$2++){if(document.documentElement.childNodes[$2].tagName==='HTML'){document.documentElement.childNodes[$2].style.overflow='hidden';break;}}document.documentElement.style.overflow='hidden';if($p3){window.setTimeout(function(){
Coveo.CNL.Web.Scripts.DOMUtilities.$3($p0,$0,$1,$p3);},Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis);}}else{}}
Coveo.CNL.Web.Scripts.MarshalUtilities=function(){}
Coveo.CNL.Web.Scripts.MarshalUtilities.marshalValue=function(p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Value);return p_Value.toString();}
Coveo.CNL.Web.Scripts.MarshalUtilities.unmarshalValue=function(p_Type,p_Value){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Type);Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_Value);var $0;switch(p_Type.toLowerCase()){case 'string':$0=p_Value;break;case 'int32':$0=parseInt(p_Value);break;case 'double':$0=parseFloat(p_Value);break;case 'boolean':$0=Boolean.parse(p_Value);break;case 'none':$0=null;break;default:Coveo.CNL.Web.Scripts.CNLAssert.fail();$0=null;break;}return $0;}
Coveo.CNL.Web.Scripts.CNLAssert=function(){}
Coveo.CNL.Web.Scripts.CNLAssert.fail=function(){}
Coveo.CNL.Web.Scripts.CNLAssert.failWithMessage=function(p_Message){}
Coveo.CNL.Web.Scripts.CNLAssert.check=function(p_Condition){if(!p_Condition){Coveo.CNL.Web.Scripts.CNLAssert.fail();}}
Coveo.CNL.Web.Scripts.CNLAssert.notNull=function(p_Object){Coveo.CNL.Web.Scripts.CNLAssert.check(!Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined(p_Object));}
Coveo.CNL.Web.Scripts.CNLAssert.isNull=function(p_Object){Coveo.CNL.Web.Scripts.CNLAssert.check(Coveo.CNL.Web.Scripts.Utilities.isNullOrUndefined(p_Object));}
Coveo.CNL.Web.Scripts.CNLAssert.notEmpty=function(p_String){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_String);Coveo.CNL.Web.Scripts.CNLAssert.check(!!p_String);}
Coveo.CNL.Web.Scripts.CNLAssert.isEmpty=function(p_String){Coveo.CNL.Web.Scripts.CNLAssert.notNull(p_String);Coveo.CNL.Web.Scripts.CNLAssert.check(!p_String);}
Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataValue.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataValue');Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawDataChild');Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData');Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData');Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeCollectionData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData,ss.IEnumerable);Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeDictionaryData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData,ss.IEnumerable);Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeStringIntDictionaryData.registerClass('Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeStringIntDictionaryData',Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeBaseData,ss.IEnumerable);Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript.registerClass('Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript');Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript.registerClass('Coveo.CNL.Web.Scripts.BetterControls.BetterCustomDropDownScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.BetterControls.AutoCompleteItem.registerClass('Coveo.CNL.Web.Scripts.BetterControls.AutoCompleteItem',Object);Coveo.CNL.Web.Scripts.BetterControls.BetterTextBoxScript.registerClass('Coveo.CNL.Web.Scripts.BetterControls.BetterTextBoxScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.BetterControls.TabControlScript.registerClass('Coveo.CNL.Web.Scripts.BetterControls.TabControlScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.BetterControls.BetterButtonScript.registerClass('Coveo.CNL.Web.Scripts.BetterControls.BetterButtonScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.BetterControls.BetterLinkButtonScript.registerClass('Coveo.CNL.Web.Scripts.BetterControls.BetterLinkButtonScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Misc.ResizeablePanelScript.registerClass('Coveo.CNL.Web.Scripts.Misc.ResizeablePanelScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Misc.WaterMarkTextBoxScript.registerClass('Coveo.CNL.Web.Scripts.Misc.WaterMarkTextBoxScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript.registerClass('Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Misc.ListItem.registerClass('Coveo.CNL.Web.Scripts.Misc.ListItem');Coveo.CNL.Web.Scripts.Misc.TextChangedEventScript.registerClass('Coveo.CNL.Web.Scripts.Misc.TextChangedEventScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript.registerClass('Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Misc.ToolTipScript.registerClass('Coveo.CNL.Web.Scripts.Misc.ToolTipScript',Coveo.CNL.Web.Scripts.Ajax.AjaxTabableObjectScript);Coveo.CNL.Web.Scripts.Widgets.WidgetScript.registerClass('Coveo.CNL.Web.Scripts.Widgets.WidgetScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.registerClass('Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess.registerClass('Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess');Coveo.CNL.Web.Scripts.Ajax.ControlFlipper.registerClass('Coveo.CNL.Web.Scripts.Ajax.ControlFlipper',null,Coveo.CNL.Web.Scripts.Ajax.IContentFlipper);Coveo.CNL.Web.Scripts.Ajax.TransitionEffect.registerClass('Coveo.CNL.Web.Scripts.Ajax.TransitionEffect',Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess);Coveo.CNL.Web.Scripts.Ajax.CollapseTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.CollapseTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.AdjustTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.AdjustTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.Console.registerClass('Coveo.CNL.Web.Scripts.Ajax.Console');Coveo.CNL.Web.Scripts.Ajax.Feedback.registerClass('Coveo.CNL.Web.Scripts.Ajax.Feedback',Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess);Coveo.CNL.Web.Scripts.Ajax.BlankFeedback.registerClass('Coveo.CNL.Web.Scripts.Ajax.BlankFeedback',Coveo.CNL.Web.Scripts.Ajax.Feedback);Coveo.CNL.Web.Scripts.Ajax.Bootstrap.registerClass('Coveo.CNL.Web.Scripts.Ajax.Bootstrap');Coveo.CNL.Web.Scripts.Ajax.AjaxProgressScript.registerClass('Coveo.CNL.Web.Scripts.Ajax.AjaxProgressScript',Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess);Coveo.CNL.Web.Scripts.Ajax.DropDownContentController.registerClass('Coveo.CNL.Web.Scripts.Ajax.DropDownContentController',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Ajax.DropDownMenuControler.registerClass('Coveo.CNL.Web.Scripts.Ajax.DropDownMenuControler',Coveo.CNL.Web.Scripts.Ajax.AjaxObjectScript);Coveo.CNL.Web.Scripts.Ajax.PostbackOptionsScript.registerClass('Coveo.CNL.Web.Scripts.Ajax.PostbackOptionsScript');Coveo.CNL.Web.Scripts.Ajax.ProcessingFeedBack.registerClass('Coveo.CNL.Web.Scripts.Ajax.ProcessingFeedBack',Coveo.CNL.Web.Scripts.Ajax.Feedback);Coveo.CNL.Web.Scripts.Ajax.Profiler.registerClass('Coveo.CNL.Web.Scripts.Ajax.Profiler');Coveo.CNL.Web.Scripts.Ajax.PercentTimer.registerClass('Coveo.CNL.Web.Scripts.Ajax.PercentTimer');Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger.registerClass('Coveo.CNL.Web.Scripts.Ajax.UpdateDebugger',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.FlipFadeTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.FlipFadeTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.IdMappings.registerClass('Coveo.CNL.Web.Scripts.Ajax.IdMappings');Coveo.CNL.Web.Scripts.Ajax.FadeInTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.FadeInTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.GradualFadeInEffect.registerClass('Coveo.CNL.Web.Scripts.Ajax.GradualFadeInEffect',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.ScriptLoaderWrapper.registerClass('Coveo.CNL.Web.Scripts.Ajax.ScriptLoaderWrapper',Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcess);Coveo.CNL.Web.Scripts.Ajax.ModalBox.registerClass('Coveo.CNL.Web.Scripts.Ajax.ModalBox');Coveo.CNL.Web.Scripts.Ajax.FlipTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.FlipTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager.registerClass('Coveo.CNL.Web.Scripts.Ajax.AsynchronousProcessManager');Coveo.CNL.Web.Scripts.Ajax.FadeFlipTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.FadeFlipTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.HAdjustTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.HAdjustTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.HCollapseTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.HCollapseTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.HExpandTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.HExpandTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.ExpandTransition.registerClass('Coveo.CNL.Web.Scripts.Ajax.ExpandTransition',Coveo.CNL.Web.Scripts.Ajax.TransitionEffect);Coveo.CNL.Web.Scripts.Ajax.RegionFlipper.registerClass('Coveo.CNL.Web.Scripts.Ajax.RegionFlipper',null,Coveo.CNL.Web.Scripts.Ajax.IContentFlipper);Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.registerClass('Coveo.CNL.Web.Scripts.Ajax.PartialPostBack');Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo.registerClass('Coveo.CNL.Web.Scripts.Ajax._FeedbackInfo');Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.registerClass('Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript');Coveo.CNL.Web.Scripts.CookieUtilities.registerClass('Coveo.CNL.Web.Scripts.CookieUtilities');Coveo.CNL.Web.Scripts.MouseCapture.registerClass('Coveo.CNL.Web.Scripts.MouseCapture');Coveo.CNL.Web.Scripts.ElementRect.registerClass('Coveo.CNL.Web.Scripts.ElementRect');Coveo.CNL.Web.Scripts.MulticastEventHandler.registerClass('Coveo.CNL.Web.Scripts.MulticastEventHandler');Coveo.CNL.Web.Scripts.OnClickElsewhereEvent.registerClass('Coveo.CNL.Web.Scripts.OnClickElsewhereEvent');Coveo.CNL.Web.Scripts.ScriptLoader.registerClass('Coveo.CNL.Web.Scripts.ScriptLoader',null,ss.IDisposable);Coveo.CNL.Web.Scripts.StringDeserializer.registerClass('Coveo.CNL.Web.Scripts.StringDeserializer');Coveo.CNL.Web.Scripts.Utilities.registerClass('Coveo.CNL.Web.Scripts.Utilities');Coveo.CNL.Web.Scripts.TransferMargin.registerClass('Coveo.CNL.Web.Scripts.TransferMargin');Coveo.CNL.Web.Scripts.Timeout.registerClass('Coveo.CNL.Web.Scripts.Timeout');Coveo.CNL.Web.Scripts.OnLeaveManyEvent.registerClass('Coveo.CNL.Web.Scripts.OnLeaveManyEvent');Coveo.CNL.Web.Scripts.OnDwellEvent.registerClass('Coveo.CNL.Web.Scripts.OnDwellEvent');Coveo.CNL.Web.Scripts.ElementPosition.registerClass('Coveo.CNL.Web.Scripts.ElementPosition');Coveo.CNL.Web.Scripts.ElementBounds.registerClass('Coveo.CNL.Web.Scripts.ElementBounds');Coveo.CNL.Web.Scripts.BrowserHelper.registerClass('Coveo.CNL.Web.Scripts.BrowserHelper');Coveo.CNL.Web.Scripts.ElementSize.registerClass('Coveo.CNL.Web.Scripts.ElementSize');Coveo.CNL.Web.Scripts.DOMUtilities.registerClass('Coveo.CNL.Web.Scripts.DOMUtilities');Coveo.CNL.Web.Scripts.MarshalUtilities.registerClass('Coveo.CNL.Web.Scripts.MarshalUtilities');Coveo.CNL.Web.Scripts.CNLAssert.registerClass('Coveo.CNL.Web.Scripts.CNLAssert');Coveo.CES.Web.Search.SharePoint.SharePointScopes.PropTreeRawData.patH_SEP='/';Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript.hovereD_STYLE_NAME='CnlFilePickerHoveredItem';Coveo.CNL.Web.Scripts.Misc.ServerFilePickerScript.noN_HOVERED_STYLE_NAME='CnlFilePickerItem';Coveo.CNL.Web.Scripts.Widgets.WidgetZoneScript.$2={};Coveo.CNL.Web.Scripts.Ajax.Console.$0=null;Coveo.CNL.Web.Scripts.Ajax.Bootstrap.$3=null;Coveo.CNL.Web.Scripts.Ajax.Profiler.$0=null;Coveo.CNL.Web.Scripts.Ajax.Profiler.$1=null;Coveo.CNL.Web.Scripts.Ajax.Profiler.$2=null;Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.partiaL_POSTBACK_MARKER='Coveo-Partial-Postback';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.bootstraP_MARKER='Coveo-Bootstrap';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.historY_STATE_MARKER='Coveo-HState';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.nO_CONTROL_DATA_MARKER='Coveo-No-Control-Data';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.forM_EVENT_TARGET='__EVENTTARGET';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.forM_EVENT_ARGUMENT='__EVENTARGUMENT';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.forM_VIEW_STATE='__VIEWSTATE';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.forM_VIEW_STATE_ENCRYPTED='__VIEWSTATEENCRYPTED';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.forM_REQUEST_DIGEST='__REQUESTDIGEST';Coveo.CNL.Web.Scripts.Ajax.PartialPostBack.forM_SP2010_WIKI_SUFFIX='$PlaceHolderPageTitleInTitleArea$wikiPageNameEditTextBox';Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$0=null;Coveo.CNL.Web.Scripts.Ajax.AjaxManagerScript.$1=new Coveo.CNL.Web.Scripts.Ajax.IdMappings();Coveo.CNL.Web.Scripts.StringDeserializer.SEPARATOR='!';Coveo.CNL.Web.Scripts.StringDeserializer.escapE_CHARACTER='~';Coveo.CNL.Web.Scripts.StringDeserializer.versioN_MARKER='_d';Coveo.CNL.Web.Scripts.DOMUtilities.$0=0;Coveo.CNL.Web.Scripts.DOMUtilities.$1=null;Coveo.CNL.Web.Scripts.DOMUtilities.s_HeaderAndBodyTimerMillis=500;;
};
_coveoDefineJQuery();
