var wptheme_DebugUtils = { // summary: Collection of utilities for logging debug messages. enabled: false, log: function ( /*String*/className, /*String*/message ) { // summary: Logs a debugging message, if debugging is enabled. // className: the javascript class name or function name which is logging the message // message: the message to log if ( this.enabled ) { message = className + " ==> " + message; if ( typeof( console ) == "undefined" ) { console.debug( message ); } else { //better alternative for browsers that don't support console???? alert( message ); } } } } var wptheme_HTMLElementUtils = { // summary: Collection of utility functions useful for manipulating HTML elements in a cross-browser fashion. className: "wptheme_HTMLElementUtils", _debugUtils: wptheme_DebugUtils, _uniqueIdCounter: 0, getUniqueId: function () { // summary: Generates a unique identifier (to the current page) by appending a counter to a set prefix. // A page refresh resets the unique identifier counter. // returns: a unique identifier var retVal = "wptheme_unique_" + this._uniqueIdCounter; this._uniqueIdCounter++; return retVal; // String }, sizeToViewableArea: function ( /*HTMLElement*/element ) { // summary: Sizes the given element to the viewable area of the browser in a cross-browser fashion. // element: the html element to size var browserDimensions = new BrowserDimensions(); element.style.height = browserDimensions.getViewableAreaHeight() + "px"; element.style.width = browserDimensions.getViewableAreaWidth() + "px"; element.style.top = browserDimensions.getScrollFromTop() + "px"; element.style.left = browserDimensions.getScrollFromLeft() + "px"; }, sizeToEntireArea: function ( /*HTMLElement*/element ) { // summary: Sizes the given element to the viewable area plus the scroll area. // element: the html element to size var browserDimensions = new BrowserDimensions(); //The getHTMLElement*() functions return the exact size of the body element in IE even if the viewable area is //larger (i.e. no scroll bars). In Firefox, the dimensions of the viewable area plus the scrollable area is returned. //So in IE, we take the viewable area if that is larger and the HTMLElement* area if that is larger. element.style.height = Math.max( browserDimensions.getHTMLElementHeight(), browserDimensions.getViewableAreaHeight() ) + "px"; element.style.width = Math.max( browserDimensions.getHTMLElementWidth(), browserDimensions.getViewableAreaWidth() ) + "px"; }, sizeRelativeToViewableArea: function ( /*HTMLElement*/element, /*float*/heightFactor, /*float*/widthFactor ) { // summary: Sizes the given element to a certain multiple of the viewable area. For example, if heightFactor is 0.5, // the height of the given element will be set to half of the viewable area height. // element: the html element to size // heightFactor: the factor to multiply the viewable area height by // widthFactor: the factor to multiply the viewable area width by var browserDimensions = new BrowserDimensions(); element.style.height = ( browserDimensions.getViewableAreaHeight() * heightFactor ) + "px"; element.style.width = ( browserDimensions.getViewableAreaWidth() * widthFactor ) + "px"; }, positionRelativeToViewableArea: function ( /*HTMLElement*/element, /*float*/heightFactor, /*float*/widthFactor ) { // summary: Positions the given element relative to the viewable area. For example, if the heightFactor is 0.5, the // top of the element will be positioned (Y axis) halfway down the viewable area. Note that this means the element // will be ABSOLUTELY positioned. // element: the html element to position // heightFactor: the factor to multiply the viewable area height by // widthFactor: the factor to multiply the viewable area width by var browserDimensions = new BrowserDimensions(); element.style.position = "absolute"; if ( this._debugUtils.enabled ) { this._debugUtils.log( this.className, "Browser's viewable height: " + browserDimensions.getViewableAreaHeight() ); this._debugUtils.log( this.className, "Browser's viewable width: " + browserDimensions.getViewableAreaWidth() ); this._debugUtils.log( this.className, "Browser's scroll from top: " + browserDimensions.getScrollFromTop() ); this._debugUtils.log( this.className, "Browser's scroll from left: " + browserDimensions.getScrollFromLeft() ); } element.style.top = ( ( browserDimensions.getViewableAreaHeight() * heightFactor ) + browserDimensions.getScrollFromTop() ) + "px"; //Scroll left behaves differently in FF & IE in RTL languages. The "correct" behavior is up for debate. In FF, it will return the "correct" value //(scrollLeft switches when the page is rendered right-to-left). In IE, scroll left will basically return the scroll width for the body element. //There's no real "capability" to test for here so the window.attachEvent is a cheap trick to check for IE. //bidiSupport is defined in the theme. if ( bidiSupport.isRTL && window.attachEvent ) { if ( this._debugUtils.enabled ) { this._debugUtils.log( this.className, "scrollWidth = " + browserDimensions.getHTMLElementWidth() ); this._debugUtils.log( this.className, "clientWidth = " + browserDimensions.getViewableAreaWidth() ); this._debugUtils.log( this.className, "Scroll Offset should be: " + ( browserDimensions.getHTMLElementWidth() - browserDimensions.getViewableAreaWidth() - browserDimensions.getScrollFromLeft() ) ); } element.style.left = ( ( browserDimensions.getViewableAreaWidth() * widthFactor) + ( browserDimensions.getHTMLElementWidth() - browserDimensions.getViewableAreaWidth() - browserDimensions.getScrollFromLeft() ) ) + "px"; } else { element.style.left = ( ( browserDimensions.getViewableAreaWidth() * widthFactor ) + browserDimensions.getScrollFromLeft() ) + "px"; } }, positionOutsideElementTopRight: function ( /*HTMLElement*/elementToPosition, /*HTMLElement*/relativeElement ) { // summary: Positions the given element just outside (to the top and lining up with the right edge) of the // relative element. // description: Sets the top (Y-axis) position of the given element to the top of the relative element minus the // height of element being positioned. Sets the left (X-axis) position of the given element to the left position of // the relative element plus the width of the relative element (to get the right edge) minus the width of the element // being positioned (to line the end of the element being positioned up with the right edge of the relative element). elementToPosition.style.position = "absolute"; elementToPosition.style.top = ( this.stripUnits( relativeElement.style.top ) - elementToPosition.offsetHeight ) + "px"; if ( bidiSupport.isRTL ) { elementToPosition.style.left = ( this.stripUnits( relativeElement.style.left ) ) + "px"; } else { elementToPosition.style.left = ( this.stripUnits( relativeElement.style.left ) + relativeElement.offsetWidth - elementToPosition.offsetWidth) + "px"; } }, stripUnits: function ( /*String*/cssProp ) { // summary: Strips any units (i.e. "px") from a CSS style property. // returns: the number value minus any units return parseInt( cssProp.substring( 0, cssProp.length - 2 )); //integer }, addClassName: function ( /*HTMLElement*/element, /*String*/className ) { // summary: Adds the given className to the element's style definitions. // element: the HTMLElement to add the class name to // className: the className to add var clazz = element.className; if ( clazz.indexOf( className ) < 0 ) { element.className += (" " + className); } }, removeClassName: function ( /*HTMLElement*/element, /*String*/className ) { // summary: Removes the given className from the element's style definitions. // element: the HTMLElement to remove the class name from // className: the className to remove var clazz = element.className; var startIndex = clazz.indexOf( className ); if ( startIndex >= 0 ) { clazz = clazz.substring(0, startIndex) + clazz.substring( startIndex + className.length + 1 ); element.className = clazz; } }, hideElementsByTagName: function ( /*String 1...N*/) { // summary: Hides every element of a given tag name. Stores the old visibility style so it can be // restored by the showElementsByTagName function. for ( var i = 0; i < arguments.length; i++ ) { var elements = document.getElementsByTagName( arguments[i] ); for ( var j = 0; j < elements.length; j++ ) { if ( elements[j] && elements[j].style ) { elements[j]._oldVisibilityStyle = elements[j].style.visibility; elements[j].style.visibility = "hidden"; } } } }, showElementsByTagName: function ( /*String 1...N*/) { // summary: Shows every element of a given tag name. Uses the old visibility style so that elements hidden // by hideElementsByTagName are properly restored. for ( var i = 0; i < arguments.length; i++ ) { var elements = document.getElementsByTagName( arguments[i] ); for ( var j = 0; j < elements.length; j++ ) { if ( elements[j] && elements[j].style ) { if ( elements[j]._oldVisibility ) { elements[j].style.visibility = elements[j]._oldVisibility; elements[j]._oldVisibility = null; } else { elements[j].style.visibility = "visible"; } } } } }, addOnload: function ( /*Function*/func ) { // summary: Adds a function to be called on page load. // func: the function to call if ( window.addEventListener ) { window.addEventListener( "load", func, false ); } else if ( window.attachEvent ) { window.attachEvent( "onload", func ); } }, getEventObject: function ( /*Event?*/event ) { // summary: Cross-browser function to retrieve the event object. // event: In W3C-compliant browsers, this object will just simply be // returned // returns: the event object var result = event; if ( !event && window.event ) { result = window.event; } return result; // Event } } var wptheme_CookieUtils = { // summary: Various utility functions for dealing with cookies on the client. _deleteDate: new Date( "1/1/2003" ), _undefinedOrNull: function ( /*Object*/variable ) { // summary: Determines if a given variable is undefined or NULL. // returns: true if undefined OR NULL, false otherwise. return ( typeof ( variable ) == "undefined" || variable == null ); // boolean }, debug: wptheme_DebugUtils, className: "wptheme_CookieUtils", getCookie: function ( /*String*/cookieName ) { // summary: Gets the value for a given cookie name. If no value is found, returns NULL. if ( this.debug.enabled ) { this.debug.log( this.className, "getCookie( " + cookieName + " )" ); } cookieName = cookieName + "=" var retVal = null; if ( this.debug.enabled ) { this.debug.log( this.className, "document.cookie=" + document.cookie ); this.debug.log( this.className, "indexOf cookieName: " + document.cookie.indexOf( cookieName ) ); } if ( document.cookie.indexOf( cookieName ) >= 0 ) { var cookies = document.cookie.split(";"); var c = 0; if ( this.debug.enabled && cookies.length > 0 ) { this.debug.log( this.className, "cookies[0] = " + cookies[0] ); } while ( c < cookies.length && ( cookies[c].indexOf( cookieName ) == -1 ) ) { if ( this.debug.enabled ) { this.debug.log( this.className, "cookies[" + c + "] = " + cookies[0] ); } c=c+1; } //Make sure there's no leading or trailing spaces on our cookie name/value pair. var cookieNVP = cookies[c].replace( /^[ \s]+|[ \s]+$/, '' ); if ( this.debug.enabled ) { this.debug.log( this.className, "cookieName=\"" + cookieName + "\"." ); this.debug.log( this.className, "cookieName.length=\"" + cookieName.length + "\"." ); this.debug.log( this.className, "cookieNVP=\"" + cookieNVP + "\"." ); this.debug.log( this.className, "cookieNVP.length=\"" + cookieNVP.length + "\"." ); } var cookieValue = cookieNVP.substring( cookieName.length ); if ( this.debug.enabled ) { this.debug.log( this.className, "cookie value =\"" + cookieValue + "\"."); } if ( cookieValue != "null" ) { retVal = cookieValue; } } if ( this.debug.enabled ) { this.debug.log( this.className, "getCookie( " + cookieName + " ) return " + retVal ); } return retVal; // String }, setCookie: function ( /*String*/name, /*String*/value, /*Date?*/expiration, /*String?*/path ) { // summary: Creates the cookie based on the given information. // name: the name of the cookie // value: the value for the cookie // expiration: OPTIONAL -- when the cookie should expire // path: OPTIONAL -- the url path the cookie applies to if ( this.debug.enabled ) { this.debug.log( this.className, "set cookie (" + [ name, value, expiration, path ] + ")"); } if ( this._undefinedOrNull( name ) ) { throw Error( "Unable to set cookie! No name given!" ); } if ( this._undefinedOrNull( value ) ) { throw Error( "Unable to set cookie! No value given!" ); } if ( this._undefinedOrNull( expiration ) ) { expiration = ""; } else { expiration = "expiration=" + expiration.toUTCString() + ";"; } if ( this._undefinedOrNull( path ) ) { path = "path=/;"; } else { path = "path=" + path + ";"; } document.cookie=name + '=' + value + ';' + expiration + path; if ( this.debug.enabled ) { this.debug.log( this.className, "document.cookie after setting the cookie=" + document.cookie ); } }, deleteCookie: function ( /*String*/cookieName ) { // summary: Deletes a given cookie by setting the value to "null" and setting the expiration // value to expire completely. if ( this.debug.enabled ) { this.debug.log( this.className, "delete cookie (" + [ cookieName ] + ") "); } if(wpsFLY_isIE){ this.setCookie( cookieName, "null", this._deleteDate); }else{ this.setCookie( cookieName, ""); } } } // Populates and shows a context menu asynchronously. // // uniqueID - some unique identifier describing the context of the menu (i.e. portlet window id) // urlToMenuContents - url target for the iFrame // isLTR - indicates if the page orientation is Left-to-Right // // // This function creates a context menu using the WCL context menu javascript library. It populates this menu // by creating a hidden DIV ( the ID consists of the unique identifier with "_DIV" appended ) which contains // a hidden IFRAME ( the ID consists of the DIV identifier with "_IFRAME" appended ). The IFRAME loads the // specified URL and calls the buildAndDisplayMenu() function upon completion of loading the IFRAME. The document // returned by the specified URL must contain a javascript function called "getMenuContents()" which returns // an array. The contents of the array must be in the following format ( array[i] = ; // array[i+1] = ). The menu is attached to an HTML element with the id equal to the // unique identifier. So, in the portlet context menu case, the image associated with the context menu must have // an ID equal to the portlet window ID. The dynamically created DIV and IFRAME are deleted after the menu // contents are populated and the same menu is returned for the duration of the request in which it was created. // //Control debugging. // -1 - no debugging // 0 - minimal debugging ( adding items to menus ) // 1 - medium debugging ( function entry/exit ) // 2 - maximum debugging ( makes iframe visible ) // 999 - make iframe visible only var asynchContextMenuDebug = -1; var asynchContextMenuMouseOverIndicator = ""; var portletIdMap = new Object(); function asynchContextMenuOnMouseClickHandler( uniqueID, isLTR, urlToMenuContents, menuBorderStyle, menuTableStyle, menuItemStyle, menuItemSelectedStyle, emptyMenuText, loadingImage, renderBelow ) { var menuID = "contextMenu_" + uniqueID; var menu = getContextMenu( menuID ); if (menu == null) { asynchContextMenu_menuCurrentlyLoading = uniqueID; if ( loadingImage ) { setLoadingImage( loadingImage ); } menu = createContextMenu( menuID, isLTR, null, menuBorderStyle, menuTableStyle, emptyMenuText, null, renderBelow ); loadAsynchContextMenu( uniqueID, urlToMenuContents, isLTR, menuItemStyle, menuItemSelectedStyle, '', true ); } else { if ( asynchContextMenu_menuCurrentlyLoading == uniqueID ) { return; } showContextMenu( menuID, document.getElementById( uniqueID ) ); } } var asynchContextMenu_originalMenuImgElementSrc; function setLoadingImage( img ) { asynchContextMenu_originalMenuImgElementSrc = document.getElementById( asynchContextMenu_menuCurrentlyLoading + "_img" ).src; document.getElementById( asynchContextMenu_menuCurrentlyLoading + "_img" ).src = img; } function clearLoadingImage() { document.getElementById( asynchContextMenu_menuCurrentlyLoading + "_img" ).src = asynchContextMenu_originalMenuImgElementSrc; } function loadAsynchContextMenu( uniqueID, url, isLTR, menuItemStyle, menuItemSelectedStyle, emptyMenuText, showMenu, onMenuAffordanceShowHandler ) { asynchDebug( 'ENTRY loadAsynchContextMenu p1=' + uniqueID + '; p2=' + url + '; p3=' + isLTR + '; p4=' + isLTR); var menuID = "contextMenu_" + uniqueID; var dialogTag = null; var ID = uniqueID + '_DIV'; //an iframe wasn't cleaned up properly if ( document.getElementById( ID ) != null ) { closeMenu( ID ); return; } //create the div tag and assign the styles to it dialogTag = document.createElement( "DIV" ); dialogTag.style.position="absolute"; if ( asynchContextMenuDebug < 2 ) { dialogTag.style.left = "0px"; dialogTag.style.top = "-9999px"; dialogTag.style.visibility = "hidden"; } if ( asynchContextMenuDebug >= 2 || asynchContextMenuDebug == 999 ) { dialogTag.style.left = "100px"; dialogTag.style.top = "100px"; dialogTag.style.visibility = "visible"; } dialogTag.id=ID; var styleString = 'null'; if ( menuItemStyle != null ) { styleString = "'" + menuItemStyle + "'"; } if ( menuItemSelectedStyle != null ) { styleString = styleString + ", '" + menuItemSelectedStyle + "'"; } else { styleString = styleString + ", null"; } //alert( 'buildAndDisplayMenu( this.id, this.name, ' + styleString + ', ' + showMenu + ' , ' + callbackFn + ' );' ); //create the iframe this way because onload handlers attached when creating dynamically don't seem to fire dialogTag.innerHTML=''; //append the div tag to the document body document.body.appendChild( dialogTag ); asynchDebug( 'EXIT createDynamicElements' ); } //Builds and displays the menu from the contents of the IFRAME. function buildAndDisplayMenu( menuID, iframeID, menuItemStyle, menuItemSelectedStyle, showMenu, onMenuAffordanceShowHandler ) { asynchDebug( 'ENTRY buildAndDisplayMenu p1=' + menuID + '; p2=' + iframeID + '; p3=' + showMenu + '; p4=' + onMenuAffordanceShowHandler ); //get the context menu, should have already been created. var menu = getContextMenu( menuID ); //clear out our loading indicator clearLoadingImage(); asynchContextMenu_menuCurrentlyLoading = null; //if the menu doesn't exist, we shouldn't even be here....but just in case. if ( menu == null ) { return false; } //strip the _IFRAME from the id to come up with the DIV id index = iframeID.indexOf( "_IFRAME" ); var divID = iframeID.substring( 0, index ); //strip the _DIV from the id to come up with the portlet id index2 = divID.indexOf( "_DIV" ); var uniqueID = divID.substring( 0, index2 ); asynchDebug( 'divID = ' + divID ); asynchDebug( 'uniqueID = ' + uniqueID ); var frame, c=-1, done=false; //In IE, referencing the iFrame via the name in the window.frames[] array //does not appear to work in this case, so we have to cycle through all the //frames and compare the names to find the correct one. while ( ( c + 1 ) < window.frames.length && !done ) { c=c+1; //We have to surround this with a try/catch block because there are //cases where attempting to access the 'name' property of the current //frame in the array will generate an access denied exception. This is //OK to ignore because any frame that generates this exception shouldn't //be the one we are looking for. try { done = ( window.frames[c].name == iframeID ); } catch ( e ) { //do nothing. } } //Check for the existence of the function we are looking to call. //If not, don't bother creating the menu. if ( window.frames[c].getMenuContents ) { contents = window.frames[c].getMenuContents(); } else { //we were unable to load the context menu for whatever reason return false; } //Cycle through the array created by the getMenuContents() //function. The structure of the array should be [url, name]. for ( i=0; i < contents.length; i=i+3 ) { asynchDebug2( 'Adding item: ' + contents[i+1] ); asynchDebug2( 'URL: ' + contents[i] ); if ( contents[i] ) { asynchDebug2( 'url length: ' + contents[i].length ); } asynchDebug2( 'icon: ' + contents[i+2] ); if ( contents[i] && contents[i].length != 0 ) { var icon = null; if ( contents[i+2] && contents[i+2].length != 0 ) { icon = contents[i+2]; } menu.add( new UilMenuItem( contents[i+1], true, '', contents[i], null, icon, null, menuItemStyle, menuItemSelectedStyle ) ); } } //our target image should have an ID of the uniqueID var target = document.getElementById( uniqueID ); //remove our iframe since we've created the menu, we don't need the iframe on this request anymore. // (148004) deleting the elements causes the status bar to spin forever on mozilla //deleteDynamicElements( divID ); asynchDebug( 'EXIT buildAndDisplayMenu' ); //asynchContextMenuOnLoadCheck( menuID, uniqueID, target, onMenuAffordanceShowHandler ); //...and display! if ( showMenu == null || showMenu == true ) { return showContextMenu( menuID, target ); } } function asynchDebug( str ) { if ( asynchContextMenuDebug >= 1 && asynchContextMenuDebug != 999 ) { alert( str ); } } function asynchDebug2( str ) { if ( asynchContextMenuDebug >= 0 && asynchContextMenuDebug != 999 ) { alert( str) ; } } //MMD - this function is used so that relative URLs may be used with the context menus. function asynchDoFormSubmit( url ){ var formElem = document.createElement("form"); document.body.appendChild(formElem); formElem.setAttribute("method", "GET"); var delimLocation = url.indexOf("?"); if (delimLocation >= 0) { var newUrl = url.substring(0, delimLocation); var paramsEnd = url.length; // test to see if a # fragment identifier (the layout node id) is appended to the end of the URL var layoutNodeLocation = url.indexOf("#"); if (layoutNodeLocation >= 0 && layoutNodeLocation > delimLocation) { paramsEnd = layoutNodeLocation; newUrl = newUrl + url.substring(layoutNodeLocation, url.length); } var params = url.substring(delimLocation + 1, paramsEnd); var paramArray = params.split("&"); for (var i = 0; i < paramArray.length; i++) { var name = paramArray[i].substring(0, paramArray[i].indexOf("=")); var value = paramArray[i].substring(paramArray[i].indexOf("=") + 1, paramArray[i].length); var inputElem = document.createElement("input"); inputElem.setAttribute("type", "hidden"); inputElem.setAttribute("name", name); inputElem.setAttribute("value", value); formElem.appendChild(inputElem); } url = newUrl; } formElem.setAttribute("action", url); formElem.submit(); } var asynchContextMenu_menuCurrentlyLoading = null; function menuMouseOver( id, selectedImage ) { if ( asynchContextMenu_menuCurrentlyLoading != null ) return; portletIdMap[id] = 'menu_'+id+'_img'; showAffordance(id, selectedImage); } function menuMouseOut( id, disabledImage ) { if ( asynchContextMenu_menuCurrentlyLoading != null ) return; hideAffordance(id , disabledImage); portletIdMap[id] = ""; } function showAffordance( id, selectedImage ) { document.getElementById( 'menu_'+id ).style.cursor='pointer'; document.getElementById( 'menu_'+id+'_img').src=selectedImage; } function hideAffordance( id, disabledImage ) { document.getElementById( 'menu_'+id ).style.cursor='default'; document.getElementById( 'menu_'+id+'_img').src=disabledImage; } function menuMouseOverThinSkin(id, selectedImage, minimized) { if ( asynchContextMenu_menuCurrentlyLoading != null ) return; portletIdMap[id] = 'menu_'+id+'_img'; showAffordanceThinSkin(id, selectedImage, minimized); } function menuMouseOutThinSkin(id, disabledImage, minimized ) { if ( asynchContextMenu_menuCurrentlyLoading != null) return; hideAffordanceThinSkin(id , disabledImage, minimized); portletIdMap[id] = ""; } function showAffordanceThinSkin(id, selectedImage, minimized) { document.getElementById( 'menu_'+id ).style.cursor='pointer'; document.getElementById( 'portletTitleBar_'+id ).className='wpsThinSkinContainerBar wpsThinSkinContainerBarBorder'; document.getElementById( 'title_'+id ).className='wpsThinSkinDragZoneContainer wpsThinSkinVisible'; document.getElementById( 'menu_'+id+'_img' ).src=selectedImage; } function hideAffordanceThinSkin(id, disabledImage, minimized) { document.getElementById( 'menu_'+id ).style.cursor='default'; /* when minimized, the titlebar should always be displayed so it can be found by the user, so we don't hide it */ if (minimized == null || minimized == false){ document.getElementById( 'portletTitleBar_'+id ).className='wpsThinSkinContainerBar'; } document.getElementById( 'title_'+id ).className='wpsThinSkinDragZoneContainer wpsThinSkinInvisible'; document.getElementById( 'menu_'+id+'_img' ).src=disabledImage; } var onmousedownold_; function closeMenu(id, disabledImage) { hideCurrentContextMenu(); if ( portletIdMap[id] == "") { hideAffordance( id, disabledImage ); } document.onmousedown = onmousedownold_; } function showPortletMenu( id, portletNoActionsText, isRTL, menuPortletURL, disabledImage, loadingImage ) { if ( portletIdMap[id].indexOf( id ) < 0 ) return; asynchContextMenuOnMouseClickHandler('menu_'+id,!isRTL,menuPortletURL, null, null, null, null, portletNoActionsText, loadingImage ); onmousedownold_ = document.onmousedown; document.onmousedown = closeMenu; } function accessibleShowMenu( event , id , portletNoActionsText, isRTL, menuPortletURL, loadingImage ) { if ( event.which == 13 ) { asynchContextMenuOnMouseClickHandler( 'menu_'+id,!isRTL,menuPortletURL, null, null, null, null, portletNoActionsText, loadingImage ); } else { return true; } } wptheme_AsyncMenuAffordance = function ( /*String*/anchorId, /*String*/imageId, /*String*/showingImgUrl, /*String*/hidingImgUrl ) { // summary: Representation of an asynchronous menu's affordance (UI element which triggers the menu to show). Manages the details // of showing/hiding the affordance, if appropriate. // description: In the Portal theme, we want the menu affordance to only show during certain events (e.g. mouseover the page name). The details // of the showing/hiding is a little more complicated than changing the css on an HTML element due to various rendering/accessibility concerns. This // object manages these details. this.anchorId = anchorId; this.imageId = imageId; this.showingImgUrl = showingImgUrl; this.hidingImgUrl = hidingImgUrl; this.show = function () { // summary: Shows the affordance. if (document.getElementById( this.anchorId ) != null) { document.getElementById( this.anchorId ).style.cursor = 'pointer'; document.getElementById( this.imageId ).src=this.showingImgUrl; } } this.hide = function () { // summary: Hides the affordance. if (document.getElementById( this.anchorId ) != null) { document.getElementById( this.anchorId ).style.cursor = 'default'; document.getElementById( this.imageId ).src=this.hidingImgUrl; } } } wptheme_AsyncMenu = function ( /*String*/id, /*String*/menuBorderStyle, /*String*/menuStyle, /*String*/menuItemStyle, /*String*/selectedMenuItemStyle ) { // summary: Representation of an asynchronous context menu. Manages showing/hiding the menu as well as showing/hiding the menu's affordance (UI element // which opens the menu). // id: the menu's id // menuBorderStyle: the style name to be applied to the menu's border // menuStyle: the style name to be applied to the general menu // menuItemStyle: the style name to be applied to the menu item // selectedMenuItemStyle: the style name to be applied to a selected menu item //alert(' AsynchronousContextMenu.js wptheme_AsyncMenu id='+id+' selectedMenuItemStyle='+selectedMenuItemStyle); //global utilities this._htmlUtils = wptheme_HTMLElementUtils; //properties passed in at construction time this.id = id; this.menuBorderStyle = menuBorderStyle; this.menuStyle = menuStyle; this.menuItemStyle = menuItemStyle; this.selectedMenuItemStyle = selectedMenuItemStyle; //properties that have to be initialized in the theme this.url = null; this.isRTL = false; this.emptyMenuText = null; this.loadingImgUrl = null; this.affordance = null; this.init = function ( /*String*/ url, /*boolean*/isRTL, /*String*/ emptyMenuText, /*String*/ loadingImgUrl, /*wptheme_MenuAffordance*/affordance, /*boolean*/renderBelow ) { // summary: Convenience function for setting up the required variables for showing the page menu. // url: the url to load page menu contents (usually created with ) // isRTL: is the current locale a right-to-left locale // emptyMenuText: the text to display if the user has no valid options // loadingImgUrl: the url to the image to display while the menu is loading this.url = url; this.isRTL = isRTL; this.emptyMenuText = emptyMenuText; this.loadingImgUrl = loadingImgUrl; this.affordance = affordance; this.renderBelow = renderBelow; //alert('this.init url='+url); } this.show = function ( /*Event?*/evt ) { // summary: Shows the page menu for the selected page. // description: Typically triggered by 2 types of events: click and keypress. On a click event, we just want to show the menu. On a keypress // event, we want to make sure the ENTER/RETURN key was pressed before showing the menu. // event: Event object passed in when triggered from a key press event. evt = this._htmlUtils.getEventObject( evt ); var show = false; var result; //On a keypress event, we want to make sure the ENTER/RETURN key was pressed before showing the menu. if ( evt && evt.type == "keypress" ) { //alert('keypress at show evt='+evt); var keyCode = -1; if ( evt && evt.which ){ keyCode = evt.which; } else { keyCode = evt.keyCode } //Enter/Return was the key that triggered this keypress event. if ( keyCode == 13 ) { show = true; } } else { //Some other kind of event, just show the menu already... show = true; } //Show the menu if necessary. if ( show ) { result = asynchContextMenuOnMouseClickHandler( this.id, !this.isRTL, this.url, this.menuBorderStyle, this.menuStyle, this.menuItemStyle, this.selectedMenuItemStyle, this.emptyMenuText, this.loadingImgUrl, this.renderBelow ); } return result; } this.showAffordance = function () { // summary: Shows the affordance associated with the given asynchronous menu. if ( asynchContextMenu_menuCurrentlyLoading == null ) { this.affordance.show(); } } this.hideAffordance = function () { // summary: Hides the affordance associated with the given asynchronous menu. if ( asynchContextMenu_menuCurrentlyLoading == null ) { this.affordance.hide(); } } } wptheme_ContextMenuUtils = { // summary: Utility object for managing the different context menus in the theme. Constructs the wptheme_AsyncMenu objects here, initialization must take place in // the head section of the HTML document (usually the initialization values require the usage of JSP tags). moreMenu: new wptheme_AsyncMenu( "wptheme_more_menu", "wptheme-more-menu-border", "wptheme-more-menu", "wptheme-more-menu-item", "wptheme-more-menu-item-selected", true ), topNavPageMenu: new wptheme_AsyncMenu( "wptheme_selected_page_menu", "wptheme-page-menu-border", "wptheme-page-menu", "wptheme-page-menu-item", "wptheme-page-menu-item-selected" ), sideNavPageMenu: new wptheme_AsyncMenu( "wptheme_selected_page_menu", "wptheme-page-menu-border", "wptheme-page-menu", "wptheme-page-menu-item", "wptheme-page-menu-item-selected" ) } ////////////////////////////////////////////////////////////////// // begin BrowserDimensions object definition BrowserDimensions.prototype = new Object(); BrowserDimensions.prototype.constructor = BrowserDimensions; BrowserDimensions.superclass = null; function BrowserDimensions(){ this.body = document.body; if (this.isStrictDoctype() && !this.isSafari()) { this.body = document.documentElement; } } BrowserDimensions.prototype.getScrollFromLeft = function(){ return this.body.scrollLeft ; } BrowserDimensions.prototype.getScrollFromTop = function(){ return this.body.scrollTop ; } BrowserDimensions.prototype.getViewableAreaWidth = function(){ return this.body.clientWidth ; } BrowserDimensions.prototype.getViewableAreaHeight = function(){ if(this.isSafari()) return document.documentElement.clientHeight; return this.body.clientHeight ; } BrowserDimensions.prototype.getHTMLElementWidth = function(){ return this.body.scrollWidth ; } BrowserDimensions.prototype.getHTMLElementHeight = function(){ return this.body.scrollHeight ; } BrowserDimensions.prototype.isStrictDoctype = function(){ return (document.compatMode && document.compatMode != "BackCompat"); } BrowserDimensions.prototype.isSafari = function(){ return (navigator.userAgent.toLowerCase().indexOf("safari") >= 0); } BrowserDimensions.prototype.isOpera = function(){ return (navigator.userAgent.toLowerCase().indexOf("opera") >= 0); } // end BrowserDimensions object definition ////////////////////////////////////////////////////////////////// //Provides a controller for enabling and disabling javascript events //on a particular HTML element. Elements must register with the controller //in order to be enabled/disabled. The act of registering with the controller //disables the element, unless otherwise specified. // // // **The main purpose of this controller is to disable the javascript //actions of certain elements that, if executed prior to the page completely //loading, cause problems. //Object definition for ElementJavascriptEventController function ElementJavascriptEventController() { //Registered elements to disable and enable upon page load. this.elements = new Array(); this.arrayPosition = 0; //Function mappings this.enableAll = enableRegisteredElementsInternal; this.disableAll = disableRegisteredElementsInternal; this.register = registerElementInternal; this.enable = enableRegisteredElementInternal; this.disable = disableRegisteredElementInternal; //Enables all registered items. function enableRegisteredElementsInternal() { for ( c=0; c < this.arrayPosition; c=c+1 ) { this.elements[c].enable(); } } function enableRegisteredElementInternal( id ) { for ( c=0; c < this.arrayPosition; c=c+1 ) { if ( this.elements[c].ID == id ) { this.elements[c].enable(); } } } //Disables all registered items. function disableRegisteredElementsInternal() { for ( c=0; c < this.arrayPosition; c=c+1 ) { this.elements[c].disable(); } } function disableRegisteredElementInternal( id ) { for ( c=0; c < this.arrayPosition; c=c+1 ) { if ( this.elements[c].ID == id ) { this.elements[c].disable(); } } } //Registers an item with the controller. function registerElementInternal( HTMLElementID, doNotDisable, optionalOnEnableJavascriptAction ) { this.elements[ this.arrayPosition ] = new RegisteredElement( HTMLElementID, doNotDisable, optionalOnEnableJavascriptAction ); this.arrayPosition = this.arrayPosition + 1; } } //Object definition for an element registered with the controller. //These objects should only be created by the controller. function RegisteredElement( ElementID, doNotDisable, optionalOnEnableJavascriptAction ) { //Information about the element. this.ID = ElementID; this.oldCursor = "normal"; this.ItemOnMouseDown = null; this.ItemOnMouseUp = null; this.ItemOnMouseOver = null; this.ItemOnMouseOut = null; this.ItemOnMouseClick = null; this.ItemOnBlur = null; this.ItemOnFocus = null; this.ItemOnChange = null; this.onEnableJS = optionalOnEnableJavascriptAction; //Function mappings this.enable = enableInternal; this.disable = disableInternal; //Enables an element. Enabling consists of changing the cursor //style back to the original style, and returning all the stored //javascript events to their original state. If the HTML element //is a button, the disabled property is simply set to false. function enableInternal() { if ( document.getElementById( this.ID ) ) { //Return the old cursor style. document.getElementById( this.ID ).style.cursor = this.oldCursor; //If it's a button, re-enable it. if ( document.getElementById( this.ID ).tagName == "BUTTON" ) { document.getElementById( this.ID ).disabled = false; } else { //Return all the events. document.getElementById( this.ID ).onmousedown = this.ItemOnMouseDown; document.getElementById( this.ID ).onmouseup = this.ItemOnMouseUp; document.getElementById( this.ID ).onmouseover = this.ItemOnMouseOver; document.getElementById( this.ID ).onmouseout = this.ItemOnMouseOut; document.getElementById( this.ID ).onclick = this.ItemOnMouseClick; document.getElementById( this.ID ).onblur = this.ItemOnBlur; document.getElementById( this.ID ).onfocus = this.ItemOnFocus; document.getElementById( this.ID ).onchange = this.ItemOnChange; } //Execute the onEnable Javascript, if specified. if ( this.onEnableJS != null ) { eval( this.onEnableJS ); } } } //Disables an element. Disabling consists of changing the cursor //style to "not-allowed", and setting all the javascript events to //do nothing. If the HTML element is a button, the "disabled" property //is simply set to true. function disableInternal() { if ( document.getElementById( this.ID ) ) { //Set the cursor style to point out that you can't do anything yet this.oldCursor = document.getElementById( this.ID ).style.cursor; document.getElementById( this.ID ).style.cursor = "not-allowed"; //If the HTML element is a BUTTON, we can easily disable it by //setting the disabled property to true. if ( document.getElementById( this.ID ).tagName == "BUTTON" ) { document.getElementById( this.ID ).disabled = true; } else { //Store all the current events registered to the item. this.ItemOnMouseDown = document.getElementById( this.ID ).onmousedown; this.ItemOnMouseUp = document.getElementById( this.ID ).onmouseup; this.ItemOnMouseOver = document.getElementById( this.ID ).onmouseover; this.ItemOnMouseOut = document.getElementById( this.ID ).onmouseout; this.ItemOnMouseClick = document.getElementById( this.ID ).onclick; this.ItemOnBlur = document.getElementById( this.ID ).onblur; this.ItemOnFocus = document.getElementById( this.ID ).onfocus; this.ItemOnChange = document.getElementById( this.ID ).onchange; //Now set all the current events to do nothing. document.getElementById( this.ID ).onmousedown = function () { void(0); return false; }; document.getElementById( this.ID ).onmouseup = function () { void(0); return false; }; document.getElementById( this.ID ).onmouseover = function () { void(0); return false; }; document.getElementById( this.ID ).onmouseout = function () { void(0); return false; }; document.getElementById( this.ID ).onclick = function () { void(0); return false; }; document.getElementById( this.ID ).onblur = function () { void(0); return false; }; document.getElementById( this.ID ).onfocus = function () { void(0); return false; }; document.getElementById( this.ID ).onchange = function () { void(0); return false; }; } } } //Disable the element if ( !doNotDisable ) { this.disable(); } } // Global variables var wpsFLY_isIE = document.all?1:0; var wpsFLY_isNetscape=document.layers?1:0; var wpsFLY_isMoz = document.getElementById && !document.all; // This sets how many pixels of the tab should show when collapsed was 11 var wpsFLY_minFlyout=0; // How many pixels should it move every step? var wpsFLY_move=15; if (wpsFLY_isIE) wpsFLY_move=12; // Specify the scroll speed in milliseconds var wpsFLY_scrollSpeed=1; // Timeout ID for flyout var wpsFLY_timeoutID=1; // How from from top of screen for scrolling var wpsFLY_fromTop=100; var wpsFLY_leftResize; //Cross browser access to required dimensions var wpsFLY_browserDimensions = new BrowserDimensions(); var wpsFLY_initFlyoutExpanded = wpsFLY_getInitialFlyoutState(); // Current state of the flyout for the life of the request (true=in, false=out) var wpsFLY_state = true; var wpsFLY_currIndex = -1; // ----------------------------------------------------------------- // Initialize the Flyout // ----------------------------------------------------------------- function wpsFLY_initFlyout(showHidden) { wpsFLY_Flyout=new wpsFLY_makeFlyout('wpsFLYflyout'); wpsFLY_Flyout.setWidth(wpsFLY_minFlyout); wpsFLY_Flyout.css.overflow = 'hidden'; wpsFLY_Flyout.setLeft( wpsFLY_Flyout.pageWidth() - wpsFLY_minFlyout-1 ); if (wpsFLY_isNetscape||wpsFLY_isMoz) scrolled="window.pageYOffset"; else if (wpsFLY_isIE) scrolled="document.body.scrollTop"; if (wpsFLY_isNetscape||wpsFLY_isMoz) wpsFLY_fromTop=wpsFLY_Flyout.css.top; else if (wpsFLY_isIE) wpsFLY_fromTop=wpsFLY_Flyout.css.pixelTop; if (wpsFLY_isIE) { window.onscroll=wpsFLY_internalScroll; window.onresize=wpsFLY_internalScroll; } else { window.onscroll=wpsFLY_internalScroll(); } if (showHidden) wpsFLY_Flyout.css.visibility="hidden"; else wpsFLY_Flyout.css.visibility="visible"; //Open or close the flyout depending on the init state. if ( wpsFLY_initFlyoutExpanded != null ) { wpsFLY_toggleFlyout( wpsFLY_initFlyoutExpanded, true ); } return; } // ----------------------------------------------------------------- // Initialize the Flyout on left // ----------------------------------------------------------------- function wpsFLY_initFlyoutLeft(showHidden) { wpsFLY_FlyoutLeft=new wpsFLY_makeFlyoutLeft('wpsFLYflyout'); if (wpsFLY_isIE) { wpsFLY_FlyoutLeft.setWidth(wpsFLY_minFlyout); wpsFLY_FlyoutLeft.css.overflow = 'hidden'; wpsFLY_FlyoutLeft.setLeft(0); } else { // Mozilla does not move the scroll to the left for bidi languages wpsFLY_FlyoutLeft.setLeft(wpsFLY_minFlyout - wpsFLY_FlyoutLeft.getWidth()- 4); } if (wpsFLY_isNetscape||wpsFLY_isMoz) scrolled="window.pageYOffset"; else if (wpsFLY_isIE) scrolled="document.body.scrollTop"; if (wpsFLY_isNetscape||wpsFLY_isMoz) wpsFLY_fromTop=wpsFLY_FlyoutLeft.css.top; else if (wpsFLY_isIE) wpsFLY_fromTop=wpsFLY_FlyoutLeft.css.pixelTop; if (wpsFLY_isIE) { window.onscroll=wpsFLY_internalScrollLeft; window.onresize=wpsFLY_internalResizeLeft; } else window.onscroll=wpsFLY_internalScrollLeft(); if (showHidden) wpsFLY_FlyoutLeft.css.visibility="hidden"; else wpsFLY_FlyoutLeft.css.visibility="visible"; //Open or close the flyout depending on the init state. if ( wpsFLY_initFlyoutExpanded != null ) { wpsFLY_toggleFlyout( wpsFLY_initFlyoutExpanded, true ); } } // ----------------------------------------------------------------- // Constructs flyout (default on right) // ----------------------------------------------------------------- function wpsFLY_makeFlyout(obj) { this.origObject=document.getElementById(obj); //get the css for the DIV tag, need it later if (wpsFLY_isNetscape) this.css=eval('document.'+obj); else if (wpsFLY_isMoz) this.css=document.getElementById(obj).style; else if (wpsFLY_isIE) this.css=eval(obj+'.style'); //initialize the expand state wpsFLY_state=1; this.go=0; //get the width if (wpsFLY_isNetscape) this.width=this.css.document.width; else if (wpsFLY_isMoz) this.width=document.getElementById(obj).offsetWidth; else if (wpsFLY_isIE) this.width=eval(obj+'.offsetWidth'); this.setWidth=wpsFLY_internalSetWidth; this.getWidth=wpsFLY_internalGetWidth; //set a left method to make it common across browsers this.left=wpsFLY_internalGetLeft; this.pageWidth=wpsFLY_internalGetPageWidth; this.setLeft = wpsFLY_internalSetLeft; this.obj = obj + "Object"; eval(this.obj + "=this"); } // ----------------------------------------------------------------- // Constructs flyout (on left) // ----------------------------------------------------------------- function wpsFLY_makeFlyoutLeft(obj) { this.origObject=document.getElementById(obj); //get the css for the DIV tag, need it later if (wpsFLY_isNetscape) this.css=eval('document.'+obj); else if (wpsFLY_isMoz) this.css=document.getElementById(obj).style; else if (wpsFLY_isIE) this.css=eval(obj+'.style'); //initialize the expand state wpsFLY_state=1; this.go=0; //get the width if (wpsFLY_isNetscape) this.width=this.css.document.width; else if (wpsFLY_isMoz) this.width=document.getElementById(obj).offsetWidth; else if (wpsFLY_isIE) this.width=eval(obj+'.offsetWidth'); this.setWidth=wpsFLY_internalSetWidthLeft; this.getWidth=wpsFLY_internalGetWidthLeft; //set a left method to make it common across browsers this.left=wpsFLY_internalGetLeft; this.pageWidth=wpsFLY_internalGetPageWidth; this.setLeft = wpsFLY_internalSetLeft; this.obj = obj + "Object"; eval(this.obj + "=this"); } // ----------------------------------------------------------------- // The internal api to get the page width value that is cross browser // ----------------------------------------------------------------- function wpsFLY_internalGetPageWidth() { //get the width return wpsFLY_browserDimensions.getViewableAreaWidth(); } function wpsFLY_internalSetLeft( value ) { this.css.left=value + "px"; } // ----------------------------------------------------------------- // The internal api to set the width value that is cross browser // ----------------------------------------------------------------- function wpsFLY_internalSetWidth(value) { this.css.width = value + "px"; if (navigator.userAgent.indexOf ("Opera") != -1) { var operaIframe=document.getElementById('wpsFLY_flyoutIFrame'); operaIframe.style.width = (value-wpsFLY_minFlyout) + "px" ; } } // ----------------------------------------------------------------- // The internal api to set the width value that is cross browser // ----------------------------------------------------------------- function wpsFLY_internalSetWidthLeft(value) { this.css.width = value + "px"; if (navigator.userAgent.indexOf ("Opera") != -1) { var operaIframe=document.getElementById('wpsFLY_flyoutIFrame'); operaIframe.style.width = (value-wpsFLY_minFlyout) + "px" ; } } // ----------------------------------------------------------------- // The internal api to get the width value that is cross browser // ----------------------------------------------------------------- function wpsFLY_internalGetWidth() { //get the width if (wpsFLY_isNetscape) return eval(this.css.document.width); else if (wpsFLY_isMoz||wpsFLY_isIE) return eval(this.origObject.offsetWidth); } // ----------------------------------------------------------------- // The internal api to get the width value that is cross browser // ----------------------------------------------------------------- function wpsFLY_internalGetWidthLeft() { var width; if (wpsFLY_isNetscape) width = eval(this.css.document.width); else if (wpsFLY_isMoz||wpsFLY_isIE) width = eval(this.origObject.offsetWidth); return width; } // ----------------------------------------------------------------- // The internal api to get the left value that is cross browser // ----------------------------------------------------------------- function wpsFLY_internalGetLeft() { if (wpsFLY_isNetscape||wpsFLY_isMoz) leftfunc=parseInt(this.css.left); else if (wpsFLY_isIE) leftfunc=eval(this.css.pixelLeft); return leftfunc; } // ----------------------------------------------------------------- // The internal fly out function, called my real function, only // wpsFLY_moveOutFlyout should call this function. // ----------------------------------------------------------------- function wpsFLY_internalMoveOut() { document.getElementById('wpsFLYflyout').className = "portalFlyoutExpanded"; if (wpsFLY_Flyout.left() - wpsFLY_move > wpsFLY_Flyout.pageWidth()+ wpsFLY_browserDimensions.getScrollFromLeft() - wpsFLY_Flyout.width ) { var newwidth= wpsFLY_Flyout.getWidth()+wpsFLY_move; wpsFLY_Flyout.setWidth(newwidth); wpsFLY_Flyout.setLeft(wpsFLY_Flyout.left() - wpsFLY_move); wpsFLY_timeoutID=setTimeout("wpsFLY_internalMoveOut()",wpsFLY_scrollSpeed); wpsFLY_Flyout.go=1; } else { wpsFLY_Flyout.setLeft(wpsFLY_Flyout.pageWidth() + wpsFLY_browserDimensions.getScrollFromLeft() - wpsFLY_Flyout.width); wpsFLY_Flyout.setWidth(wpsFLY_Flyout.width); wpsFLY_Flyout.go=0; wpsFLY_state=0; } } // ----------------------------------------------------------------- // The internal slide out function, called my real function, only // wpsFLY_moveOutFlyoutLeft should call this function. For left sided // flyout. // ----------------------------------------------------------------- function wpsFLY_internalMoveOutLeft() { document.getElementById('wpsFLYflyout').className = "portalFlyoutExpanded"; if (wpsFLY_isIE) { if (wpsFLY_FlyoutLeft.getWidth() + wpsFLY_move < wpsFLY_FlyoutLeft.width) { var newwidth= wpsFLY_FlyoutLeft.getWidth()+wpsFLY_move; wpsFLY_FlyoutLeft.setWidth(newwidth); wpsFLY_timeoutID=setTimeout("wpsFLY_internalMoveOutLeft()",wpsFLY_scrollSpeed); wpsFLY_FlyoutLeft.go=1; } else { wpsFLY_FlyoutLeft.setLeft( wpsFLY_FlyoutLeft.left()); wpsFLY_FlyoutLeft.setWidth(wpsFLY_FlyoutLeft.width); wpsFLY_FlyoutLeft.go=0; wpsFLY_state=0; } } else { // Mozilla browsers don't scroll left if( wpsFLY_FlyoutLeft.left()+wpsFLY_move < wpsFLY_browserDimensions.getScrollFromLeft()) { wpsFLY_FlyoutLeft.go=1; wpsFLY_FlyoutLeft.setLeft(wpsFLY_FlyoutLeft.left()+wpsFLY_move); wpsFLY_timeoutID=setTimeout("wpsFLY_internalMoveOutLeft()",wpsFLY_scrollSpeed); } else { wpsFLY_FlyoutLeft.setLeft( wpsFLY_browserDimensions.getScrollFromLeft()); wpsFLY_FlyoutLeft.go=0; wpsFLY_state=0; } } } // ----------------------------------------------------------------- // The internal fly in function, called my real function, only // wpsFLY_moveInFlyout should call this function. // ----------------------------------------------------------------- function wpsFLY_internalMoveIn() { if ( wpsFLY_Flyout.left() + wpsFLY_move < wpsFLY_Flyout.pageWidth() + wpsFLY_browserDimensions.getScrollFromLeft() - wpsFLY_minFlyout ) { wpsFLY_Flyout.go=1; var newwidth= wpsFLY_Flyout.getWidth()-wpsFLY_move; wpsFLY_Flyout.setWidth(newwidth); wpsFLY_Flyout.setLeft(wpsFLY_Flyout.left()+wpsFLY_move); wpsFLY_timeoutID=setTimeout("wpsFLY_internalMoveIn()",wpsFLY_scrollSpeed); } else { wpsFLY_Flyout.setWidth(wpsFLY_minFlyout); wpsFLY_Flyout.setLeft(wpsFLY_Flyout.pageWidth() + wpsFLY_browserDimensions.getScrollFromLeft() - wpsFLY_minFlyout); wpsFLY_Flyout.go=0; wpsFLY_state=1; } } // ----------------------------------------------------------------- // The internal slide in function, called my real function, only // wpsFLY_moveInFlyoutLeft should call this function. For left sided // flyout. // ----------------------------------------------------------------- function wpsFLY_internalMoveInLeft() { if (wpsFLY_isIE) { if (wpsFLY_FlyoutLeft.getWidth() - wpsFLY_move > wpsFLY_minFlyout) { var newwidth= wpsFLY_FlyoutLeft.getWidth() - wpsFLY_move; wpsFLY_FlyoutLeft.setWidth(newwidth); wpsFLY_timeoutID=setTimeout("wpsFLY_internalMoveInLeft()",wpsFLY_scrollSpeed); wpsFLY_FlyoutLeft.go=1; } else { wpsFLY_FlyoutLeft.setWidth(wpsFLY_minFlyout); wpsFLY_FlyoutLeft.setLeft( wpsFLY_FlyoutLeft.left()); wpsFLY_FlyoutLeft.go=0; wpsFLY_state=1; } } else { if(wpsFLY_FlyoutLeft.left()>-wpsFLY_FlyoutLeft.width+wpsFLY_minFlyout) { wpsFLY_FlyoutLeft.go=1; wpsFLY_FlyoutLeft.setLeft(wpsFLY_FlyoutLeft.left()-wpsFLY_move); wpsFLY_timeoutID=setTimeout("wpsFLY_internalMoveInLeft()",wpsFLY_scrollSpeed); } else { wpsFLY_FlyoutLeft.setLeft( wpsFLY_minFlyout - wpsFLY_FlyoutLeft.getWidth()- 4 ); wpsFLY_FlyoutLeft.go=0; wpsFLY_state=1; } } } // ----------------------------------------------------------------- // The internal scroll function. // ----------------------------------------------------------------- function wpsFLY_internalScroll() { if (!wpsFLY_Flyout.go) { //wpsFLY_Flyout.css.top=eval(scrolled)+parseInt(wpsFLY_fromTop); if (wpsFLY_state==1) { wpsFLY_Flyout.setLeft(wpsFLY_browserDimensions.getScrollFromLeft() + wpsFLY_browserDimensions.getViewableAreaWidth() - wpsFLY_minFlyout); } else { wpsFLY_Flyout.setLeft(wpsFLY_browserDimensions.getScrollFromLeft() + wpsFLY_browserDimensions.getViewableAreaWidth() - wpsFLY_Flyout.width); } } if (wpsFLY_isNetscape||wpsFLY_isMoz) setTimeout('wpsFLY_internalScroll()',20); } // ----------------------------------------------------------------- // The internal scroll left function. // ----------------------------------------------------------------- function wpsFLY_internalScrollLeft() { if (!wpsFLY_FlyoutLeft.go) { //wpsFLY_FlyoutLeft.css.top=eval(scrolled)+parseInt(wpsFLY_fromTop); // scroll horizontally for flyoutin if (wpsFLY_state==1) { if (wpsFLY_isIE) { if (wpsFLY_leftResize == null) { wpsFLY_leftResize = wpsFLY_browserDimensions.getScrollFromLeft(); } wpsFLY_FlyoutLeft.setWidth(wpsFLY_minFlyout); wpsFLY_FlyoutLeft.css.overflow = 'hidden'; wpsFLY_FlyoutLeft.setLeft(wpsFLY_browserDimensions.getScrollFromLeft() - wpsFLY_leftResize); } else { wpsFLY_FlyoutLeft.setLeft(wpsFLY_minFlyout + wpsFLY_browserDimensions.getScrollFromLeft() - wpsFLY_FlyoutLeft.getWidth() - 4); } } } if (wpsFLY_isNetscape||wpsFLY_isMoz) setTimeout('wpsFLY_internalScrollLeft()',20); } // ----------------------------------------------------------------- // The internal resize left function. // ----------------------------------------------------------------- function wpsFLY_internalResizeLeft(){ if (wpsFLY_isIE) { wpsFLY_leftResize = wpsFLY_browserDimensions.getScrollFromLeft(); - wpsFLY_browserDimensions.getViewableAreaWidth(); } } // ----------------------------------------------------------------- // Expand the flyout. The parameter skipSlide indicates whether or not // the flyout should simply be rendered without the slide-out effect. // ----------------------------------------------------------------- function wpsFLY_moveOutFlyout( skipSlide ) { if (this.wpsFLY_Flyout != null) { if ( wpsFLY_state && !skipSlide ) { clearTimeout(wpsFLY_timeoutID); wpsFLY_internalMoveOut(); } if ( wpsFLY_state && skipSlide ) { wpsFLY_Flyout.setLeft(wpsFLY_Flyout.pageWidth() + document.body.scrollLeft - wpsFLY_Flyout.width); wpsFLY_Flyout.setWidth(wpsFLY_Flyout.width); wpsFLY_Flyout.go=0; wpsFLY_state=0; document.getElementById('wpsFLYflyout').className = "portalFlyoutExpanded"; } } if (this.wpsFLY_FlyoutLeft != null) { if ( wpsFLY_state && !skipSlide ) { clearTimeout(wpsFLY_timeoutID); wpsFLY_internalMoveOutLeft(); } if ( wpsFLY_state && skipSlide ) { if ( wpsFLY_isIE ) { wpsFLY_FlyoutLeft.setLeft( wpsFLY_FlyoutLeft.left()); wpsFLY_FlyoutLeft.setWidth(wpsFLY_FlyoutLeft.width); wpsFLY_FlyoutLeft.go=0; wpsFLY_state=0; } else { wpsFLY_FlyoutLeft.setLeft( document.body.scrollLeft); wpsFLY_FlyoutLeft.go=0; wpsFLY_state=0; } document.getElementById('wpsFLYflyout').className = "portalFlyoutExpanded"; } } } // ----------------------------------------------------------------- // Called to close the flyout. This is the method that the function // external to the flyout should call. // ----------------------------------------------------------------- function wpsFLY_moveInFlyout() { if (this.wpsFLY_Flyout != null) { if (!wpsFLY_state) { clearTimeout(wpsFLY_timeoutID); wpsFLY_internalMoveIn(); } } if (this.wpsFLY_FlyoutLeft != null) { if (!wpsFLY_state) { clearTimeout(wpsFLY_timeoutID); wpsFLY_internalMoveInLeft(); } } document.getElementById('wpsFLYflyout').className = "portalFlyoutCollapsed"; } // ----------------------------------------------------------------- // Called to toggle the flyout. This is the method that the function // external to the flyout should call. // ----------------------------------------------------------------- function wpsFLY_toggleFlyout(index, skipSlide) { if(flyOut[index] != null){ var checkIndex = index; var prevIndex=wpsFLY_getCurrIndex(); if(checkIndex==prevIndex){ if(flyOut[index].active==true){ flyOut[index].active=false; /* document.getElementById("toolBarIcon"+prevIndex).src = flyOut[prevIndex].icon; document.getElementById("toolBarIcon"+prevIndex).alt = flyOut[prevIndex].altText; document.getElementById("toolBarIcon"+prevIndex).title = flyOut[prevIndex].altText; */ } else{ flyOut[index].active=true; /* document.getElementById("toolBarIcon"+index).src = flyOut[index].activeIcon; document.getElementById("toolBarIcon"+index).alt = flyOut[index].activeAltText; document.getElementById("toolBarIcon"+index).title = flyOut[index].activeAltText; */ } //Closing flyout, clear the state cookie. wpsFLY_clearStateCookie(); wpsFLY_moveInFlyout(); }else{ if(prevIndex > -1){ flyOut[prevIndex].active=false; /* document.getElementById("toolBarIcon"+prevIndex).src = flyOut[prevIndex].icon; document.getElementById("toolBarIcon"+prevIndex).alt = flyOut[prevIndex].altText; document.getElementById("toolBarIcon"+prevIndex).title = flyOut[prevIndex].altText; */ } flyOut[index].active=true; /* document.getElementById("toolBarIcon"+index).src = flyOut[index].activeIcon; document.getElementById("toolBarIcon"+index).alt = flyOut[index].activeAltText; document.getElementById("toolBarIcon"+index).title = flyOut[index].activeAltText; */ wpsFLY_setCurrIndex(index); document.getElementById("wpsFLY_flyoutIFrame").src = flyOut[index].url; } if(wpsFLY_state){ //Expanding flyout, store the open flyout index in the state cookie. wpsFLY_setStateCookie( index ); wpsFLY_moveOutFlyout( skipSlide ); } } } function wpsFLY_getCurrIndex() { return wpsFLY_currIndex; } function wpsFLY_setCurrIndex(index) { wpsFLY_currIndex = index; } // ----------------------------------------------------------------- // Create a cookie to track the state of the flyout. The value of the // cookie is the index of the open flyout. The cookie is marked for // deletion when the browser closes and the path is set to ensure the // cookie is valid for the entire site. // ----------------------------------------------------------------- function wpsFLY_setStateCookie( index ) { document.cookie='portalOpenFlyout=' + index + '; path=/;'; } // ----------------------------------------------------------------- // Clear the cookie by changing the value to null. By setting the expiration date in // the past, the cookie is marked for deletion when the browser closes. // ----------------------------------------------------------------- function wpsFLY_clearStateCookie() { document.cookie='portalOpenFlyout=null; expires=Wed, 1 Jan 2003 11:11:11 UTC; path=/;'; } // ----------------------------------------------------------------- // Check which side of the page the flyout should show on // ----------------------------------------------------------------- function wpsFLY_onloadShow( isRTL ) { if (this.wpsFLY_minFlyout != null) { var bodyObj = document.getElementById("FLYParent"); if (bodyObj != null) { var showHidden = false; if (isRTL) { bodyObj.onload = wpsFLY_initFlyoutLeft(showHidden); } else { bodyObj.onload = wpsFLY_initFlyout(showHidden); } } } } // ----------------------------------------------------------------- // Write markup out to document for all flyout items // ----------------------------------------------------------------- function wpsFLY_markupLoop( flyOut) { for(arrayIndex = 0; arrayIndex < flyOut.length; arrayIndex++){ if(flyOut[arrayIndex].url != "" && flyOut[arrayIndex].url != null){ document.write('
  • '); document.write(flyOut[arrayIndex].altText); //document.write(''+flyOut[arrayIndex].altText+''); document.write('
  • '); } if ( javascriptEventController ) { javascriptEventController.register( "globalActionLink" + arrayIndex ); //javascriptEventController.register( "toolBarIcon" + arrayIndex ); } } } // ----------------------------------------------------------------- // If we have an empty expanded flyout (via the back button), load // the previously open flyout. // ----------------------------------------------------------------- function wpsFLY_checkForEmptyExpandedFlyout() { var index = wpsFLY_getInitialFlyoutState(); if ( index != null && flyOut[index] != null) { document.getElementById("wpsFLY_flyoutIFrame").src = flyOut[index].url; } } // ----------------------------------------------------------------- // Determine if the flyout should initially open and which flyout // should be loaded. // ----------------------------------------------------------------- function wpsFLY_getInitialFlyoutState() { // Determine if the flyout's initial state is open or closed. if ( document.cookie.indexOf( "portalOpenFlyout=" ) >= 0 ) { var cookies = document.cookie.split(";"); var c = 0; while ( c < cookies.length && ( cookies[c].indexOf( "portalOpenFlyout=" ) == -1 ) ) { c=c+1; } initCookieValue = cookies[c].substring( 18, cookies[c].length ); if ( initCookieValue != "null" ) { return initCookieValue; } else { return null; } } else { return null; } } var wpsInlineShelf_initShelfExpanded = wpsInlineShelf_getInitialShelfState(); // Current state of the flyout for the life of the request (true=expanded, false=collapsed) var wpsInlineShelf_stateExpanded = false; var wpsInlineShelf_currIndex = -1; var wpsInlineShelf_loadingMsg = null; function wpsInlineShelf_markupLoop( shelves ) { document.write(''); } // ----------------------------------------------------------------- // Called to toggle the shelf. This is the method that the function // external to the shelf should call. // ----------------------------------------------------------------- function wpsInlineShelf_toggleShelf(index, skipZoom) { if(wptheme_InlineShelves[index] != null) { var checkIndex = index; var prevIndex=wpsInlineShelf_getCurrIndex(); var newIframeUrl = null; if(checkIndex==prevIndex){ if(wptheme_InlineShelves[index].active==true){ wptheme_InlineShelves[index].active=false; /* document.getElementById("globalActionLinkInlineShelf"+prevIndex).src = wptheme_InlineShelves[prevIndex].icon; document.getElementById("globalActionLinkInlineShelf"+prevIndex).alt = wptheme_InlineShelves[prevIndex].altText; document.getElementById("globalActionLinkInlineShelf"+prevIndex).title = wptheme_InlineShelves[prevIndex].altText; */ wpsInlineShelf_stateExpanded = false; }else{ wptheme_InlineShelves[index].active=true; /* document.getElementById("globalActionLinkInlineShelf"+index).src = wptheme_InlineShelves[index].activeIcon; document.getElementById("globalActionLinkInlineShelf"+index).alt = wptheme_InlineShelves[index].activeAltText; document.getElementById("globalActionLinkInlineShelf"+index).title = wptheme_InlineShelves[index].activeAltText; */ wpsInlineShelf_stateExpanded = true; } }else{ if(prevIndex > -1){ wptheme_InlineShelves[prevIndex].active=false; /* document.getElementById("globalActionLinkInlineShelf"+prevIndex).src = wptheme_InlineShelves[prevIndex].icon; document.getElementById("globalActionLinkInlineShelf"+prevIndex).alt = wptheme_InlineShelves[prevIndex].altText; document.getElementById("globalActionLinkInlineShelf"+prevIndex).title = wptheme_InlineShelves[prevIndex].altText; */ } wptheme_InlineShelves[index].active=true; /* document.getElementById("globalActionLinkInlineShelf"+index).src = wptheme_InlineShelves[index].activeIcon; document.getElementById("globalActionLinkInlineShelf"+index).alt = wptheme_InlineShelves[index].activeAltText; document.getElementById("globalActionLinkInlineShelf"+index).title = wptheme_InlineShelves[index].activeAltText; */ wpsInlineShelf_setCurrIndex(index); wpsInlineShelf_stateExpanded = true; newIframeUrl = wptheme_InlineShelves[index].url; // document.getElementById("wpsInlineShelf_shelfIFrame").src = wptheme_InlineShelves[index].url; } if(wpsInlineShelf_stateExpanded){ //Expanding flyout, store the open shelf index in the state cookie. wpsInlineShelf_setStateCookie( index ); wpsInlineShelf_expandShelf( skipZoom, newIframeUrl ); } else { //Closing shelf, clear the state cookie. wpsInlineShelf_clearStateCookie(); wpsInlineShelf_collapseShelf(); } } } function wpsInlineShelf_getCurrIndex() { return wpsInlineShelf_currIndex; } function wpsInlineShelf_setCurrIndex(index) { wpsInlineShelf_currIndex = index; } // ----------------------------------------------------------------- // Create a cookie to track the state of the shelf. The value of the // cookie is the index of the open shelf. The cookie is marked for // deletion when the browser closes and the path is set to ensure the // cookie is valid for the entire site. // ----------------------------------------------------------------- function wpsInlineShelf_setStateCookie( index ) { document.cookie='portalOpenInlineShelf=' + index + '; path=/;'; } // ----------------------------------------------------------------- // Clear the cookie by changing the value to null. By setting the expiration date in // the past, the cookie is marked for deletion when the browser closes. // ----------------------------------------------------------------- function wpsInlineShelf_clearStateCookie() { document.cookie='portalOpenInlineShelf=null; expires=Wed, 1 Jan 2003 11:11:11 UTC; path=/;'; } // ----------------------------------------------------------------- // Determine if the shelf should initially open and which shelf // should be loaded. // ----------------------------------------------------------------- function wpsInlineShelf_getInitialShelfState() { // Determine if the shelf's initial state is expanded or collapsed. if ( document.cookie.indexOf( "portalOpenInlineShelf=" ) >= 0 ) { var cookies = document.cookie.split(";"); var c = 0; while ( c < cookies.length && ( cookies[c].indexOf( "portalOpenInlineShelf=" ) == -1 ) ) { c=c+1; } initCookieValue = cookies[c].substring( ("portalOpenInlineShelf=".length)+1, cookies[c].length ); if ( initCookieValue != "null" ) { return initCookieValue; } else { return null; } } else { return null; } } // ----------------------------------------------------------------- // Expand the shelf. The parameter skipZoom indicates whether or not // the shelf should simply be rendered without the zoom-out effect. // NOTE: The zoom-out effect is not implemented yet. // ----------------------------------------------------------------- function wpsInlineShelf_expandShelf( skipZoom, newIframeUrl ) { var shelf = document.getElementById("wpsInlineShelf"); wpsInlineShelf_stateExpanded = false; // attach event listeners so when the URL loads or reloads, the iframe will be shown and resized. wpsInlineShelf_AttachIframeEventListeners("wpsInlineShelf_shelfIFrame"); // show the shelf... but not the iframe yet... shelf.style.display = "block"; // We change the URL AFTER the event listeners are hooked up. // If we are not changing the URL, we need to manually resize the iframe. if (null != newIframeUrl) { // when loading a new URL, display the spinning loading graphic wpsInlineShelf_loadingMsg.show(document.getElementById("wpsInlineShelf")); document.getElementById("wpsInlineShelf_shelfIFrame").src = newIframeUrl; } else { wpsInlineShelf_resizeIframe("wpsInlineShelf_shelfIFrame"); } } // ----------------------------------------------------------------- // Collapse the shelf. The parameter skipZoom indicates whether or not // the shelf should simply be rendered without the zoom-in effect. // NOTE: The zoom-in effect is not implemented yet yet. // ----------------------------------------------------------------- function wpsInlineShelf_collapseShelf( skipZoom ) { var shelf = document.getElementById("wpsInlineShelf"); var iframe = document.getElementById("wpsInlineShelf_shelfIFrame"); shelf.style.display = "none"; iframe.style.display = "none"; wpsInlineShelf_loadingMsg.hide(); wpsInlineShelf_stateExpanded = true; } // ----------------------------------------------------------------- // Check which side of the page the shelf should show on // ----------------------------------------------------------------- function wpsInlineShelf_onloadShow( isRTL ) { if ( wpsInlineShelf_initShelfExpanded != null ) { wpsInlineShelf_toggleShelf( wpsInlineShelf_initShelfExpanded, true ); } } var wpsInlineShelf_getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] var wpsInlineShelf_FFextraHeight=parseFloat(wpsInlineShelf_getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers function wpsInlineShelf_resizeIframe(iframeID){ var iframe=document.getElementById(iframeID) iframe.style.display = "block"; wpsInlineShelf_loadingMsg.hide(); if (iframe && !window.opera) { /* // put the background color style onto the body of the document in the iframe if (iframe.contentDocument) { var iframeDocBody = iframe.contentDocument.body; if (iframeDocBody.className.indexOf("wpsInlineShelfIframeDocBody",0) == -1) { iframeDocBody.className = iframeDocBody.className + " wpsInlineShelfIframeDocBody"; } } */ if (iframe.contentDocument && iframe.contentDocument.body.offsetHeight) //ns6 syntax iframe.height = iframe.contentDocument.body.offsetHeight+wpsInlineShelf_FFextraHeight; else if (iframe.Document && iframe.Document.body.scrollHeight) //ie5+ syntax iframe.height = iframe.Document.body.scrollHeight; } } function wpsInlineShelf_AttachIframeEventListeners(iframeID) { var iframe=document.getElementById(iframeID) if (iframe && !window.opera) { if (iframe.addEventListener){ iframe.addEventListener("load", wpsInlineShelf_IframeOnloadEventListener, false) } else if (iframe.attachEvent){ iframe.detachEvent("onload", wpsInlineShelf_IframeOnloadEventListener) // Bug fix line iframe.attachEvent("onload", wpsInlineShelf_IframeOnloadEventListener) } } } function wpsInlineShelf_IframeOnloadEventListener(loadevt) { var crossevt=(window.event)? event : loadevt var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement if (iframeroot) { wpsInlineShelf_resizeIframe(iframeroot.id); } } // ----------------------------------------------------------------- // If we have an empty expanded shelf (via the back button), load // the previously open shelf. // ----------------------------------------------------------------- function wpsInlineShelf_checkForEmptyExpandedShelf() { var index = wpsInlineShelf_getInitialShelfState(); if ( index != null && wptheme_InlineShelves[index] != null) { document.getElementById("wpsInlineShelf_shelfIFrame").src = wptheme_InlineShelves[index].url; } } wptheme_QuickLinksShelf = { _cookieUtils: wptheme_CookieUtils, cookieName: null, expand: function () { // summary: Expand the quick links shelf. document.getElementById("wptheme-expandedQuickLinksShelf").style.display='block'; document.getElementById("wptheme-collapsedQuickLinksShelf").style.display='none'; if ( this.cookieName != null ) { this._cookieUtils.deleteCookie( this.cookieName ); } return false; }, collapse: function () { // summary: Collapse the quick links shelf. document.getElementById("wptheme-expandedQuickLinksShelf").style.display='none'; document.getElementById("wptheme-collapsedQuickLinksShelf").style.display='block'; if ( this.cookieName != null ) { var expires = new Date(); expires.setDate( expires.getDate() + 5 ); this._cookieUtils.setCookie( this.cookieName, "small", expires ); } return false; } } var wpsInlineShelf_LoadingImage = function ( /*String*/cssClassName, /*String*/imageURL, /*String*/imageText ) { // summary: creates loading image for inline shelf // cssClassName: the class name to apply to the overlaid div // imageURL: the url to the image to display in the center of the overlaid div // imageText: the text to display next to the image var elem = document.createElement( "DIV" ); elem.className = cssClassName; elem.id = cssClassName; if ( imageURL && imageURL != "" && imageText ) { elem.innerHTML = "\"\" " + imageText; } var appended = false; this.show = function ( refNode ) { if ( !appended ) { refNode.appendChild( elem ); appended= true; } elem.style.display = 'block'; } this.hide = function () { elem.style.display = 'none'; } } /* //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended): var iframehide="yes" var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1] var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers function resizeCaller() { if (document.getElementById) resizeIframe("myiframe") //reveal iframe for lower end browsers? (see var above): if ((document.all || document.getElementById) && iframehide=="no"){ var tempobj=document.all? document.all["myiframe"] : document.getElementById("myiframe") tempobj.style.display="block" } } function resizeIframe(frameid){ var currentfr=document.getElementById(frameid) if (currentfr && !window.opera) { currentfr.style.display="block" if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax currentfr.height = currentfr.Document.body.scrollHeight; if (currentfr.addEventListener){ currentfr.addEventListener("load", readjustIframe, false) } else if (currentfr.attachEvent){ currentfr.detachEvent("onload", readjustIframe) // Bug fix line currentfr.attachEvent("onload", readjustIframe) } } } function readjustIframe(loadevt) { var crossevt=(window.event)? event : loadevt var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement if (iframeroot) resizeIframe(iframeroot.id); } function wptheme_ExpandToolsShelf() { //loadToolsIframe('myiframe', '${inlineTCUrl}'); document.getElementById("wptheme-expandedToolsShelf").style.display='block'; document.getElementById("wptheme-collapsedToolsShelf").style.display='none'; //document.getElementById("wptheme-expandedToolsShelfLink").style.display='block'; //document.getElementById("wptheme-collapsedToolsShelfLink").style.display='none'; document.getElementById("toolsShelfCollapseLink").style.display='block'; document.getElementById("toolsShelfExpandLink").style.display='none'; loadToolsIframe('myiframe', '${inlineTCUrl}'); //if (document.getElementById) // resizeIframe("myiframe"); resizeCaller(); wptheme_createCookie("<%=toolsShelfCookie%>",'small',7); return false; } function wptheme_CollapseToolsShelf() { document.getElementById("wptheme-expandedToolsShelf").style.display='none'; document.getElementById("wptheme-collapsedToolsShelf").style.display='block'; //document.getElementById("wptheme-expandedToolsShelfLink").style.display='none'; //document.getElementById("wptheme-collapsedToolsShelfLink").style.display='block'; document.getElementById("toolsShelfCollapseLink").style.display='none'; document.getElementById("toolsShelfExpandLink").style.display='block'; wptheme_eraseCookie("<%=toolsShelfCookie%>"); return false; } function loadToolsIframe(iframeName, toolsUrl){ alert('loading tools iframe'); if (document.getElementById) { document.getElementById(iframeName).src = toolsUrl; } return false; } */ var wptheme_InlinePalettes = { // summary: Manages the inline palette(s). Tracks the iframe used to display the palettes, as well as the persistent state. // description: Palettes managed by this object must be added using the addPalette method. The addPalette method expects a // PaletteContext object which has the following structure: // { // url: the url to set the iframe to (for CSA, only used as the initial url) // page: the unique id of the page the url will be pointing to // portlet: the unique id of the portlet control the url will be pointing to // newWindow: indicates whether or not the url should be rendered using the Plain theme template // portletWindowState: the window state the portlet should be in // selectionDependent: indicates whether or not the url changes based on the current page selection // } // This PaletteContext object is required to support client-side aggregation. Since, in client-side aggregation, // the page does not always reload in between page changes, the palette may need to be refreshed as the selection // changes in client-side aggregation. This context object gives the client-side aggregation engine all the info // it needs to create the appropriate url for the palette, as needed. // paletteStatus: indicates whether the palette is open or closed (0 = closed, 1 = open) // iframeID: the ID/NAME of the iframe to use // loadingDecorator: the decoration to display while the iframe is loading // currentIndex: the index (into the paletteContextArray) of the currently displaying palette // cookieName: the cookie used to store the state of the palette // paletteContextArray: the array of PaletteContext objects // urlFactory: only used in client-side aggregation -- set during the CSA theme's bootstrap, this function takes the PaletteContext // object described above as the only parameter and returns the url to use to display the palette // INITIALIZATION className: "wptheme_InlinePalettes", //HTML element IDs iframeID: "wpsFLY_flyoutIFrame", //Persistent state of the palette paletteStatus: 0, // 0 = closed, 1 = open currentIndex: -1, // the index of the paletteContextArray which is currently displaying cookieName: "portalOpenFlyout", //Decoration to display while the palette is loading loadingDecorator: null, //needs to provide 2 functions: show and hide. show will receive a single parameter -- the node which should be covered with the decoration //Instance variables urlFactory: null, //expected to be set in the bootstrap of the CSA theme. takes the context as a single parameter and returns the url as the output. paletteContextArray: [], // Array of palettes which can be displayed //Debug debug: wptheme_DebugUtils, init: function ( /*Document?*/doc) { // summary: Initializes the inline palettes. Usually executed on page load. // description: Checks to see if the persisted state indicates the palette should be open or closed. If open, the proper location // should be loaded into the iframe and displayed. // doc: OPTIONAL -- specifies the document to use when initializing (for use when called from within an iframe, for example). if ( this.debug.enabled ) { this.debug.log( this.className, "init( " + [ doc ] + ")" ); } if ( !doc ) { doc = document; } //Retrieve the persisted value. This will be the index into the PaletteContextArray. var value = this.getPersistedValue(); if ( this.debug.enabled ) { this.debug.log( this.className, "retrieved value: " + value ); } if ( value != null && this.paletteContextArray[ value ] ) { this.show( value, true ); } else { this.hide(); } if ( this.debug.enabled ) { this.debug.log( this.className, "return init" ); } }, // DISPLAY CONTROL showCurrent: function () { // summary: Displays the current index or auto selects an index if no current index is selected. var indexToShow = 0; if ( this.currentIndex > -1 ) { indexToShow = this.currentIndex; } this.show( indexToShow ); }, show: function (/*int*/index, /*boolean?*/skipAnimation) { // summary: Displays the specified url in the palette. // url: the url for the iframe. // skipAnimation: OPTIONAL -- skips the loading decorator show/hide steps (used for the case where the palette is open on an initial page load if ( this.debug.enabled ) { this.debug.log( this.className, "show( " + [ index, skipAnimation ] + ")" ); } var iframe = this._getIframeElement(); if ( !iframe ) { return false; } var url = this.getURL( index ); var iframeLocation = window.frames[this.iframeID].location; if ( this.debug.enabled ) { this.debug.log( this.className, "Url returned from getUrl is: " + url ); this.debug.log( this.className, "Current iframe url is: " + iframeLocation.href ); this.debug.log( this.className, "Are they equal? " + ( url == iframeLocation.href ) ); } iframe.parentNode.style.display = "block"; //If we have to load the iframe, call postShow onload. Otherwise, call it immediately since the //iframe is already loaded. //In CSA, the state serialization service returns the url without the protocol, host, and port while //the iframe url includes this information. So we compare the complete href value AND the pathname value of //the iframe location. if ( iframeLocation.href != url && iframeLocation.pathname != url ) { if ( !skipAnimation && this.loadingDecorator != null && this.loadingDecorator.show ) { this.loadingDecorator.show( iframe.parentNode.parentNode ); } iframe.src = url; } else { //The location hasn't changed so go ahead and call the post show behavior. Normally, the post show //behavior executes once the iframe is loaded. this._doPostShow(); } this.persist( index ); this.paletteStatus = 1; this.currentIndex = index; }, hide: function ( doc ) { // summary: Hides the active palette. if ( this.debug.enabled ) { this.debug.log( this.className, "hide( " + [ doc ] + ")" ); } var iframe = this._getIframeElement( doc ); if ( !iframe ) { return false; } iframe.parentNode.style.display = "none"; this.paletteStatus = 0; this.currentIndex = -1; //Execute the post hide behavior. this._doPostHide(); }, _doPostShow: function () { // summary: Called after the iframe is loaded and ready to display. // description: Performs any sizing adjustments necessary (possibly IE) and hides the loading decoration. if ( this.debug.enabled ) { this.debug.log( this.className, "_doPostShow()" ); } var iframe = this._getIframeElement(); if ( iframe.parentNode.style.display == "none" ) { return false; } iframe.style.visibility = "visible"; if ( typeof ( dojo ) != "undefined" ) { var size = dojo.contentBox( iframe ); if ( size.h < 300) { //IE doesn't correctly size the iframe when height is set to 100%. So if the height //is still 0 (IE 6) or small (IE7)after setting the display and visibility, set it manually to the height //of the TD element. var size = dojo.contentBox( iframe.parentNode.parentNode ); iframe.style.height = size.h + "px"; } } if ( this.loadingDecorator != null && this.loadingDecorator.hide ) { this.loadingDecorator.hide(); } }, _doPostHide: function () { // summary: Execute any actions that need to occur after the palette is hidden from view. if ( this.debug.enabled ) { this.debug.log( this.className, "_doPostHide()" ); } var iframe = this._getIframeElement(); iframe.style.visibility = "hidden"; }, // PERSISTENT STATE CONTROL persist: function ( /*String*/value ) { // summary: Persist the given value in a cookie. if ( this.debug.enabled ) { this.debug.log( this.className, "persist(" + [ value ] + ")" ); } wptheme_CookieUtils.setCookie( this.cookieName, value ); }, getPersistedValue: function () { // summary: Retrieve the persisted state for the inline palettes, if one exists. // description: Looks for the "portalOpenFlyout" cookie and parses out it's value. // returns: the persisted value for the portalOpenFlyout cookie or NULL if no value exists. if ( this.debug.enabled ) { this.debug.log( this.className, "getPersistedValue()" ); } return wptheme_CookieUtils.getCookie( this.cookieName ); }, unpersist: function () { // summary: Clears out the persisted value. // description: Sets the cookie's value to NULL and sets it to expire in the past. // returns: the index of the persisted value if ( this.debug.enabled ) { this.debug.log( this.className, "unpersist()" ); } var value = this.getPersistedValue(); wptheme_CookieUtils.deleteCookie( this.cookieName ); return value; }, // UTILITY _getIframeElement: function ( /*Document?*/doc ) { // summary: Retrieves the iframe HTML element from the HTML document specified. If no HTML document is specified, // the global HTML document is used. // doc: OPTIONAL -- specify the HTML document in which to look up the IFRAME object. // returns: the iframe HTML element if ( this.debug.enabled ) { this.debug.log( this.className, "_getIframeElement( " + [ doc ] + ")" ); } if ( !doc ) { doc = document; } return doc.getElementById( this.iframeID ); // the IFRAME HTML element }, addPalette: function ( /*PaletteContext*/context ) { if ( this.debug.enabled ){ this.debug.log( this.className, "addPalette( " + [ context ] + ")" ); } this.paletteContextArray.push( context ); }, getURL: function ( /*int*/value ) { if ( this.debug.enabled ) { this.debug.log( this.className, "getURL( " + [ value ] + ")" ); } var url = this.paletteContextArray[ value ].url; if ( document.isCSA && this.urlFactory != null ) { url = this.urlFactory( this.paletteContextArray[ value ] ); } return url; } } var wptheme_DarkTransparentLoadingDecorator = function ( /*String*/cssClassName, /*String*/imageURL, /*String*/imageText ) { // summary: Displays a partially opaque overlay with a centered image and text to partially obscure and prevent // interaction with a loading portion of the HTML page. // cssClassName: the class name to apply to the overlaid div // imageURL: the url to the image to display in the center of the overlaid div // imageText: the text to display next to the image this.className = "wptheme_DarkTransparentLoadingDecorator"; var elem = document.createElement( "DIV" ); elem.className = cssClassName; elem.style.position = "absolute"; if ( imageURL && imageURL != "" && imageText ) { var text = document.createElement( "DIV" ); text.style.position = "relative"; text.style.top = "50%"; text.style.left = "40%"; text.innerHTML = " " + imageText; elem.appendChild( text ); } var appended = false; this.show = function ( refNode ) { if ( !appended ) { document.body.appendChild( elem ); appended= true; } elem.style.display = 'block'; elem.style.top = (dojo.coords( refNode, true ).y + 1) + "px"; elem.style.left = (dojo.coords( refNode, true ).x + 1) + "px"; var size = dojo.contentBox( refNode ); elem.style.height = (size.h - 2) + "px"; elem.style.width = (size.w - 2) + "px"; } this.hide = function () { elem.style.display = 'none'; } } var wptheme_InlinePalettesContainer = { // summary: Manages the inline palettes container. // description: Manages the container which holds the palettes. Made up of two parts: the first is the container. // The container holds the links to select a palette, as well as, the actual iframe which displays // the palette once a palette is selected. The second is the toggle element. The toggle element is // the html element which actually opens and closes the container element. // containerStatus: indicates whether the container is open or closed (0 = closed, 1 = open) // openCssClassName: indicates the CSS class name which should be applied when the container is open // closedCssClassName: indicates the CSS class name which should be applied when the container is closed // containerElementID: the id of the html element which actually holds the palettes // toggleElementID: the id of the html element which is the toggle element // lastIndex: the index of the last palette that was opened // cookieName: the name of the cookie used to store the container's last state // cookieUtils: the utility object used to set and unset cookies - default is wptheme_CookieUtils // htmlUtils: the utility object used for adding/removing css classnames - default is wptheme_HTMLElementUtils // paletteManager: the object which contains the information about the palettes to display inside the container // default is wptheme_InlinePalettes className: "wptheme_InlinePalettesContainer", debug: wptheme_DebugUtils, containerStatus: 0, //0 = closed, 1 = open openCssClassName: "wptheme-flyoutExpanded", closedCssClassName: "wptheme-flyoutCollapsed", toggleElementID: "wptheme-flyoutToggle", containerElementID: "wptheme-flyout", lastIndex: null, cookieName: "portalFlyoutIsOpen", cookieUtils: wptheme_CookieUtils, htmlUtils: wptheme_HTMLElementUtils, paletteManager: wptheme_InlinePalettes, //Main functions. init: function ( /*HTMLDocument?*/doc ) { // summary: Initializes and sets the appropriate visibilites for the container and the // palettes inside. // doc: OPTIONAL -- used when called from an iframe if ( this.debug.enabled ) { this.debug.log( this.className, "init( " + [ doc ] + ")" ); } var cookie = this.cookieUtils.getCookie( this.cookieName ); if ( cookie && cookie != "null" ) { this.containerStatus = parseInt( cookie ); } if ( this.debug.enabled ) { this.debug.log( this.className, "containerStatus is " + this.containerStatus ); } if ( this.paletteManager.paletteContextArray.length == 0 ) { this.disable(); } else { if ( this.containerStatus ) { this.paletteManager.init(); this._show(); } else { this._hide(); } this._makeVisible(); } }, toggle: function () { // summary: Toggles the container between open and closed state. if ( this.debug.enabled ) { this.debug.log( this.className, "toggle()" ); } if ( this.containerStatus ) { this.containerStatus = 0; this._hide(); } else { this.containerStatus = 1; this._show(); } }, persist: function () { // summary: Sets the cookie with the current container status. if ( this.debug.enabled ) { this.debug.log( this.className, "persist()" ); } this.cookieUtils.setCookie( this.cookieName, this.containerStatus ); if ( this.paletteManager.currentIndex == this.lastIndex ) { this.paletteManager.persist( this.lastIndex ); } }, unpersist: function () { // summary: Removes the cookie which holds the state of the flyout. if ( this.debug.enabled ) { this.debug.log( this.className, "unpersist()" ); } this.cookieUtils.deleteCookie( this.cookieName ); this.lastIndex = this.paletteManager.unpersist(); }, _makeVisible: function () { // summary: Shows the toggle element AND the container element. //Retrieve the applicable DOM elements. if ( this.debug.enabled ) { this.debug.log( this.className, "_makeVisible()" ); } var toggleElement = document.getElementById( this.toggleElementID ); toggleElement.style.visibility = 'visible'; }, disable: function () { // summary: Hides the toggle element AND the container element. //Retrieve the applicable DOM elements. if ( this.debug.enabled ) { this.debug.log( this.className, "disable()" ); } var toggleElement = document.getElementById( this.toggleElementID ); var containerElement = document.getElementById( this.containerElementID ); if (toggleElement != null) { toggleElement.style.display = 'none'; } if (containerElement != null) { containerElement.style.display = 'none'; } }, _hide: function () { //Retrieve the applicable DOM elements. if ( this.debug.enabled ) { this.debug.log( this.className, "_hide()" ); } var toggleElement = document.getElementById( this.toggleElementID ); var containerElement = document.getElementById( this.containerElementID ); if ( !toggleElement || !containerElement ) { throw Error( "Unable to retrieve the necessary markup elements! The palettes may not function correctly."); } //Closing the container. this.htmlUtils.removeClassName( toggleElement, this.openCssClassName ); this.htmlUtils.addClassName( toggleElement, this.closedCssClassName ); containerElement.style.display = 'none'; this.paletteManager.hide( document ); //Persistence cleanup. this.unpersist(); }, _show: function () { //Retrieve the applicable DOM elements. if ( this.debug.enabled ) { this.debug.log( this.className, "_show()" ); } var toggleElement = document.getElementById( this.toggleElementID ); var containerElement = document.getElementById( this.containerElementID ); if ( !toggleElement || !containerElement ) { throw Error( "Unable to retrieve the necessary markup elements! The palettes may not function correctly."); } //Opening the container. this.htmlUtils.removeClassName( toggleElement, this.closedCssClassName ); this.htmlUtils.addClassName( toggleElement, this.openCssClassName ); containerElement.style.display = 'block'; this.paletteManager.showCurrent(); //Persistence cleanup. this.persist(); } } //If we aren't inside an iframe, go ahead and register the init function so it's called on page load. This is where we check for //a palette's persistent state and handle other startup tasks. if ( top.location == self.location ) { wptheme_InlinePalettesContainer.htmlUtils.addOnload( function () { wptheme_InlinePalettesContainer.init(); } ); }; //Shows an IFRAME inside a lightbox which blocks access to the page. var wptheme_IFrameLightbox = function ( /*String*/disabledBackgroundClassname, /*String*/borderBoxClassname, /*String*/closeLinkClassname, /*String*/closeString ) { // summary: Creates a "lightbox" effect where a partially opaque div is set to cover the entire viewable area of the browser and the content // is displayed in an iframe in approximately the middle of the viewable area. // description: Creates a div the size of the viewable area of the browser which is styled using the given "disabledBackgroundClassname". The iframe is // displayed inside another div which is approximately centered and styled according to the given "borderBoxClassname". The content of the iframe is // set using the "setURL" function. The "lightbox" is closed via a text anchor link which is positioned above the top right edge of the border box. The // text displayed is controlled using the "closeString" parameter and the link is styled according to the "closeLinkClassname". // disabledBackgroundClassname: the CSS class name to apply to the background div displayed when the lightbox is showing // borderBoxClassname: the CSS class name to apply to the border box in the center of the page // closeString: the string which will be displayed as the link to close the lightbox this.className = "wptheme_IFrameLightbox"; //Declare this here so that any dependency error (e.g. wptheme_HTMLElementUtils not yet being defined) //is clear from the beginning (throws an error at construction time instead of runtime). Also, allows //for easy substitution of alternate implementations (as long as function names & signatures are the same). this._htmlUtils = wptheme_HTMLElementUtils; this._debugUtils = wptheme_DebugUtils; this._initialized = false; this.showing = false; var uniquePrefix = this._htmlUtils.getUniqueId(); this._backgroundDivId = uniquePrefix + "_lightboxPageBackgroundDiv"; this._borderDivId = uniquePrefix + "_lightboxBorderDiv"; this._closeLinkId = uniquePrefix + "_lightboxCloseLink"; this._iframeId = uniquePrefix + "_lightboxIframe"; // **************************************************************** // * Dynamically created DOM elements. // **************************************************************** function createDiv(idStr, className, parent ) { // summary: Creates a div with the given ID, class, and appends to the given parent node. The display property is set to none by default. var div = document.createElement( "DIV" ); div.id = idStr; div.className = className; div.style.display = "none"; parent.appendChild( div ); return div; } var me = this; function createLink(idStr, className, text, parent) { // summary: Creates a link with the given ID, class, textContent, and appends it to the given parent node. The display property is set to none // by default. The onclick is set to hide the lightbox. var a = document.createElement( "A" ); a.id = idStr; a.className = className; a.href = "javascript:void(0);"; a.onclick = function () { me.hide() }; a.style.display = "none"; a.appendChild( document.createTextNode( text ) ); parent.appendChild( a ); return a; } function createIFrame( idStr, parent ) { // summary: Creates an iframe with the given ID (also used for the name) and appends it to the given parent node. var iframe = document.createElement( "IFRAME" ); iframe.name = idStr; iframe.id = idStr; //iframe.style.display = "none"; parent.appendChild( iframe ); return iframe; } // **************************************************************** // * Initialization. // **************************************************************** this._init = function () { this._initialized = true; //Create the background div. createDiv( this._backgroundDivId, disabledBackgroundClassname, document.body ); //Create the border box div createIFrame( this._iframeId, createDiv( this._borderDivId, borderBoxClassname, document.body )); //Create the close link. createLink( this._closeLinkId, closeLinkClassname, closeString, document.body ); } // **************************************************************** // * Handling the browser scrolling and resizing dynamically. // **************************************************************** //Make sure to call any existing onscroll handler. var oldScrollFunc = window.onscroll; window.onscroll = function (e) { if ( me.showing ) { me.sizeAndPositionBorderBox(); //me.sizeBackgroundDisablingDiv(); } if ( oldScrollFunc ) { if (e) { oldScrollFunc(e); } else { oldScrollFunc(); } } } //Make sure to call any existing onresize handler. var oldResizeFunc = window.onresize; window.onresize = function (e) { if ( me.showing ) { me.sizeAndPositionBorderBox(); me.sizeBackgroundDisablingDiv(); } if ( oldResizeFunc ) { if (e) { oldResizeFunc(e); } else { oldResizeFunc(); } } } // **************************************************************** // * Main functions for use in the theme. // **************************************************************** this.setURL = function ( /*String*/url ) { // summary: Sets the URL displayed by the IFRAME in the lightbox. // url: the url to the resource to display window.frames[this._iframeId].location = url; } this.show = function ( /*String?*/url ) { // summary: Shows the lightbox above the disabled background div. // url: OPTIONAL -- the url to display in the iframe in the center of the screen if ( !this._initialized ) { this._init(); } this.showing = true; this.disableBackground(); this.showBorderBox(); if ( url ) { this.setURL( url ); } } this.hide = function() { // summary: Hides the lightbox and the disabled background div. if ( !this._initialized ) { this._init(); } this.showing = false; this.enableBackground(); this.hideBorderBox(); } // **************************************************************** // * Content border box // **************************************************************** this.showBorderBox = function () { // summary: Shows and positions the border box which contains the IFRAME. var div = document.getElementById( this._borderDivId ); div.style.display = "block"; var link = document.getElementById( this._closeLinkId ); link.style.display = "block"; this.sizeAndPositionBorderBox(); } this.sizeAndPositionBorderBox = function () { // summary: Sizes and positions the border box which contains the IFRAME. var div = document.getElementById( this._borderDivId ); this._htmlUtils.sizeRelativeToViewableArea( div, 0.60, 0.75 ); this._htmlUtils.positionRelativeToViewableArea( div, 0.20, 0.12 ); var link = document.getElementById( this._closeLinkId ); this._htmlUtils.positionOutsideElementTopRight( link, div ); } this.hideBorderBox = function () { // summary: hides the border box and IFRAME. document.getElementById( this._borderDivId ).style.display = "none"; document.getElementById( this._closeLinkId ).style.display = "none"; } // **************************************************************** // * Transparent background controls // **************************************************************** this.disableBackground = function () { // summary: Disables the background by laying a transparent div over top of the document body. var div = document.getElementById( this._backgroundDivId ); div.style.display = "block"; this.sizeBackgroundDisablingDiv(); this._htmlUtils.hideElementsByTagName( "select" ); } this.sizeBackgroundDisablingDiv = function () { // summary: Sizes the transparent div appropriately. var div = document.getElementById( this._backgroundDivId ); //dynamically size the div to the inner browser window this._htmlUtils.sizeToEntireArea( div ); } this.enableBackground=function () { // summary: Enables the background by hiding the overlaid div. this._htmlUtils.showElementsByTagName( "select" ); document.getElementById( this._backgroundDivId ).style.display = "none"; } }; /* * Copyright (c) 2001 Paul Sowden. * http://www.alistapart.com/articles/alternate/ * * @version 1.0 */ function setActiveStyleSheet(title) { var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && a.id !== 'contrast') { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } function getActiveStyleSheet(){var i,a;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title")&&!a.disabled)return a.getAttribute("title");} return null;} function getPreferredStyleSheet(){var i,a;for(i=0;(a=document.getElementsByTagName("link")[i]);i++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("rel").indexOf("alt")==-1&&a.getAttribute("title"))return a.getAttribute("title");} return null;} function createCookie(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();} else expires="";document.cookie=name+"="+value+expires+"; path=/";} function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& (d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== "find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
    a"; var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, "_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== "="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

    ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); (function(){var g=s.createElement("div");g.innerHTML="
    ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= {},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== "string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
    ","
    "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, ""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", ""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, "border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== "string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
    ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? "&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== 1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== "json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== "number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
    "; a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": "pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); /* * Copyright (c) 2009 Simo Kinnunen. * Licensed under the MIT license. * * @version 1.09 */ var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E0){E=" "+E}}else{if(B400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||JD){D=J}K.push(J)}if(ID){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?ML:(M<=I&&L<=I)?M>L:MO){O=K}if(I>N){N=I}if(Kcufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m":{"d":"42,-87r297,-162r-297,-167r0,-111r417,227r0,99r-417,225r0,-111"},"?":{"d":"245,-664v-70,0,-67,61,-69,111r-124,0v-8,-147,66,-215,195,-215v118,0,193,71,193,186v0,113,-81,181,-138,249v-32,37,-36,85,-36,132r-117,0v-7,-137,48,-188,114,-270v32,-40,39,-61,39,-112v0,-58,-17,-81,-57,-81xm147,-130r127,0r0,130r-127,0r0,-130"},"@":{"d":"795,-452v0,155,-118,301,-260,301v-25,0,-50,-24,-42,-63r-2,-2v-43,41,-82,61,-123,61v-106,0,-169,-82,-169,-184v0,-122,83,-238,212,-238v53,0,97,18,127,61r11,-53r98,0r-53,308v-4,19,9,26,20,21v48,-22,101,-92,103,-183v4,-169,-116,-271,-285,-271v-185,0,-316,133,-316,316v0,194,146,322,333,322v79,0,148,-40,205,-92r96,0v-74,102,-181,166,-309,166v-223,0,-403,-169,-403,-396v0,-223,176,-390,397,-390v185,0,360,136,360,316xm504,-370v5,-60,-19,-119,-82,-114v-62,5,-109,63,-113,127v-4,66,29,103,71,109v75,11,119,-66,124,-122","w":833},"A":{"d":"159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154","w":556},"B":{"d":"205,-110v42,-2,80,6,114,-8v38,-16,43,-66,43,-104v0,-81,-16,-115,-103,-115r-54,0r0,227xm205,-447v49,-1,98,9,126,-26v15,-18,15,-45,15,-81v0,-56,-12,-86,-76,-86r-65,0r0,193xm506,-227v1,138,-66,227,-194,227r-247,0r0,-750r226,0v60,0,119,4,159,55v32,41,37,84,37,135v0,65,-14,129,-90,157r0,2v79,11,109,77,109,174","w":556},"C":{"d":"371,-267r141,0v-5,158,-39,284,-212,285v-272,2,-245,-212,-245,-453v0,-191,21,-333,245,-333v146,0,212,95,208,251r-138,0v-6,-48,-1,-138,-70,-138v-110,0,-101,131,-101,189r0,208v0,62,5,163,101,163v77,0,68,-124,71,-172","w":556},"D":{"d":"212,-110v179,10,194,-31,194,-283v0,-177,-18,-247,-102,-247r-92,0r0,530xm550,-406v0,181,-8,406,-219,406r-259,0r0,-750r292,0v34,0,102,15,145,85v32,52,41,135,41,259","w":611},"E":{"d":"458,0r-394,0r0,-750r394,0r0,110r-254,0r0,189r234,0r0,110r-234,0r0,231r254,0r0,110"},"F":{"d":"213,0r-140,0r0,-750r397,0r0,110r-257,0r0,190r241,0r0,110r-241,0r0,340"},"G":{"d":"300,18v-272,6,-245,-212,-245,-453v0,-191,21,-333,245,-333v120,0,203,32,235,162v7,30,6,61,7,91r-140,0v-2,-76,-7,-140,-102,-140v-110,0,-101,131,-101,189r0,208v0,62,5,163,101,163v80,0,106,-85,103,-198r-97,0r0,-110r233,0r0,403r-105,0v-2,-27,4,-63,-2,-86v-28,78,-81,103,-132,104","w":611},"H":{"d":"208,0r-140,0r0,-750r140,0r0,297r196,0r0,-297r140,0r0,750r-140,0r0,-343r-196,0r0,343","w":611},"I":{"d":"209,0r-140,0r0,-750r140,0r0,750","w":278},"J":{"d":"8,-238r140,0v5,60,-21,143,45,143v50,0,51,-38,51,-79r0,-576r140,0r0,547v0,51,4,124,-41,172v-41,44,-103,49,-171,49v-50,0,-106,-19,-144,-77v-17,-27,-24,-110,-20,-179","w":444},"K":{"d":"208,0r-140,0r0,-750r140,0r0,333r2,0v46,-116,115,-224,170,-333r158,0r-185,322r194,428r-158,0r-132,-296r-49,81r0,215","w":556},"L":{"d":"468,0r-400,0r0,-750r140,0r0,640r260,0r0,110"},"M":{"d":"207,-236r0,236r-140,0r0,-750r223,0r75,348v14,56,16,120,28,173v16,-205,63,-340,97,-521r222,0r0,750r-140,0r0,-236v0,-149,3,-298,12,-447r-2,0r-150,683r-85,0r-147,-683r-5,0v9,149,12,298,12,447","w":778},"N":{"d":"403,-603r0,-147r140,0r0,750r-146,0v-76,-192,-150,-344,-209,-565r-2,0v5,62,11,138,15,214v4,75,7,150,7,210r0,141r-140,0r0,-750r145,0v76,197,147,343,209,571r2,0v-5,-68,-10,-141,-14,-213v-4,-72,-7,-144,-7,-211","w":611},"O":{"d":"306,18v-272,0,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,200,-15,346,-245,346xm205,-466r0,208v0,62,5,163,101,163v100,0,101,-103,101,-175r0,-192v0,-60,3,-193,-101,-193v-110,0,-101,131,-101,189","w":611},"P":{"d":"208,-640r0,216v105,2,177,8,177,-117v0,-113,-78,-98,-177,-99xm208,0r-140,0r0,-750r286,0v134,0,175,108,175,213v0,64,-17,136,-70,178v-68,53,-147,45,-251,45r0,314","w":556},"Q":{"d":"587,5r-71,66r-78,-76v-34,17,-74,23,-132,23v-272,3,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,96,-5,198,-41,256xm315,-126r76,-64r7,7v16,-84,9,-188,9,-283v0,-58,9,-189,-101,-189v-110,0,-101,131,-101,189r0,208v0,62,5,163,101,163v14,0,26,-2,36,-5","w":611},"R":{"d":"350,-313v-46,-13,-93,-9,-144,-10r0,323r-140,0r0,-750v215,9,481,-57,478,180v0,82,-21,168,-115,181r0,2v83,11,108,64,108,136v0,31,-4,215,30,237r0,14r-154,0v-17,-48,-14,-140,-15,-190v-1,-46,0,-109,-48,-123xm206,-640r0,207v108,1,192,16,192,-108v0,-130,-90,-93,-192,-99","w":611},"S":{"d":"489,-522r-135,0v1,-67,-5,-133,-82,-133v-47,0,-77,19,-77,70v0,57,37,78,80,107v90,61,233,130,233,280v0,142,-94,216,-231,216v-190,0,-238,-112,-228,-283r140,0v-4,90,2,170,88,170v59,0,87,-31,87,-88v0,-44,-22,-72,-56,-99v-97,-76,-257,-124,-257,-288v0,-128,72,-198,220,-198v223,0,217,172,218,246","w":556},"T":{"d":"17,-640r0,-110r467,0r0,110r-163,0r0,640r-140,0r0,-640r-164,0"},"U":{"d":"404,-239r0,-511r140,0r0,523v0,166,-54,245,-237,245v-185,0,-239,-79,-239,-245r0,-523r140,0r0,511v0,72,5,144,100,144v91,0,96,-72,96,-144","w":611},"V":{"d":"307,-269r79,-481r150,0r-162,750r-187,0r-166,-750r150,0r88,481v13,61,14,129,25,190v0,-21,4,-42,6,-62v4,-43,10,-86,17,-128","w":556},"W":{"d":"475,-750v40,220,88,406,106,655r2,0v2,-18,3,-36,5,-54v5,-64,12,-128,21,-192r56,-409r145,0r-139,750r-168,0r-56,-296v-17,-78,-16,-164,-32,-239v-17,185,-51,360,-80,535r-168,0r-143,-750r145,0r63,409v15,80,15,167,27,246v21,-245,63,-433,100,-655r116,0","w":833},"X":{"d":"359,-380r186,380r-160,0v-36,-91,-87,-174,-109,-278r-2,0v-18,103,-75,188,-110,278r-153,0r184,-380r-177,-370r157,0v33,86,88,163,103,264r3,0v15,-97,69,-178,100,-264r158,0","w":556},"Y":{"d":"165,-750v37,102,90,197,112,312r2,0v27,-123,75,-204,113,-312r153,0r-198,431r0,319r-140,0r0,-319r-195,-431r153,0","w":556},"Z":{"d":"33,0r0,-112r241,-465v12,-22,22,-45,39,-66v-83,7,-176,1,-264,3r0,-110r410,0r0,112r-241,465v-12,22,-22,45,-39,66v91,-7,193,-1,289,-3r0,110r-435,0"},"[":{"d":"280,94r-199,0r0,-844r199,0r0,76r-89,0r0,692r89,0r0,76","w":333},"\\":{"d":"-89,-750r106,0r323,750r-106,0","w":250},"]":{"d":"53,-750r199,0r0,844r-199,0r0,-76r89,0r0,-692r-89,0r0,-76","w":333},"^":{"d":"114,-326r-104,-47r180,-377r120,0r180,377r-104,47r-136,-279"},"_":{"d":"500,125r-500,0r0,-50r500,0r0,50"},"a":{"d":"307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151"},"b":{"d":"194,-354v6,96,-28,269,63,269v40,0,57,-43,57,-97r0,-188v-4,-56,2,-109,-59,-109v-61,0,-63,80,-61,125xm64,0r0,-750r130,0r0,180v2,16,-6,42,-1,63v26,-54,61,-73,116,-72v84,2,135,45,135,200v0,172,43,394,-135,394v-54,0,-90,-19,-119,-75r-2,0r0,60r-124,0"},"c":{"d":"403,-368r-130,0v1,-51,6,-111,-45,-111v-50,0,-49,57,-49,126r0,133v-3,110,10,135,49,135v54,0,43,-77,45,-135r130,0v8,146,-28,235,-178,235v-115,0,-176,-61,-176,-211r0,-183v-1,-158,77,-200,176,-200v150,0,187,89,178,211","w":444},"d":{"d":"240,-85v91,1,57,-174,63,-269v2,-45,0,-125,-61,-125v-61,0,-59,53,-59,109r0,188v3,54,17,97,57,97xm303,0v-2,-19,4,-45,-2,-60v-25,57,-61,75,-112,75v-179,0,-136,-223,-136,-394v0,-155,52,-197,136,-200v57,-2,88,22,118,72v-9,-75,-2,-162,-4,-243r130,0r0,750r-130,0"},"e":{"d":"53,-222r0,-148v-6,-133,62,-209,190,-209v212,0,201,138,200,324r-260,0r0,82v1,74,29,88,68,88v48,0,62,-35,60,-106r130,0v5,126,-47,206,-180,206v-150,0,-211,-71,-208,-237xm183,-355r130,0v1,-69,4,-129,-68,-124v-74,5,-60,63,-62,124"},"f":{"d":"71,-469r-50,0r0,-95r50,0r0,-56v-4,-122,69,-135,186,-130r0,104v-21,-9,-56,-9,-56,16r0,66r56,0r0,95r-56,0r0,469r-130,0r0,-469","w":278},"g":{"d":"303,-354v2,-45,0,-125,-61,-125v-61,0,-59,53,-59,109r0,188v3,54,17,97,57,97v91,1,57,-174,63,-269xm189,63v1,26,27,33,55,33v78,-1,67,-87,63,-155v-26,54,-63,74,-119,74v-179,0,-135,-223,-135,-393v0,-155,51,-198,135,-201v61,-2,93,26,115,73r0,-58r130,0r0,547v0,115,-32,207,-210,207v-86,0,-157,-32,-164,-127r130,0"},"h":{"d":"191,0r-130,0r0,-750r130,0r0,244r2,0v37,-66,89,-73,117,-73v74,0,130,43,130,144r0,435r-130,0r0,-386v0,-55,-6,-91,-55,-93v-49,-2,-64,44,-64,104r0,375"},"i":{"d":"204,0r-130,0r0,-564r130,0r0,564xm204,-632r-130,0r0,-118r130,0r0,118","w":278},"j":{"d":"31,190r0,-100v30,2,48,-2,48,-30r0,-624r130,0r0,567v0,59,11,148,-53,178v-19,9,-66,14,-125,9xm209,-632r-130,0r0,-118r130,0r0,118","w":278},"k":{"d":"178,0r-130,0r0,-750r130,0r-2,410r2,0r123,-224r142,0r-142,227r138,337r-145,0r-81,-230r-35,58r0,172","w":444},"l":{"d":"204,0r-130,0r0,-750r130,0r0,750","w":278},"m":{"d":"196,-564v2,18,-4,44,2,58v29,-62,82,-71,124,-73v50,-3,109,24,122,73v25,-49,66,-73,130,-73v96,0,138,60,138,120r0,459r-130,0r0,-381v0,-51,-5,-101,-62,-98v-56,3,-66,42,-66,108r0,371r-130,0r0,-388v0,-50,-4,-92,-64,-91v-61,1,-64,46,-64,108r0,371r-130,0r0,-564r130,0","w":778},"n":{"d":"191,-564v2,18,-4,44,2,58v29,-65,87,-73,117,-73v74,0,130,43,130,144r0,435r-130,0r0,-376v0,-55,-6,-91,-55,-93v-49,-2,-64,44,-64,104r0,365r-130,0r0,-564r130,0"},"o":{"d":"183,-372r0,188v0,69,6,99,69,99v60,0,65,-30,65,-99r0,-188v0,-53,0,-107,-65,-107v-69,0,-69,54,-69,107xm252,15v-171,0,-200,-81,-199,-277v1,-193,3,-317,199,-317v193,0,194,124,195,317v1,196,-27,277,-195,277"},"p":{"d":"188,-354v6,96,-28,269,63,269v40,0,57,-43,57,-97r0,-188v-4,-56,2,-109,-59,-109v-61,0,-63,80,-61,125xm188,-564v2,18,-4,44,2,59v24,-55,59,-75,113,-74v84,2,135,47,135,202v0,171,43,392,-135,392v-51,0,-87,-16,-119,-73r-2,0r0,247r-124,0r0,-753r130,0"},"q":{"d":"237,-85v91,1,57,-174,63,-269v2,-45,0,-125,-61,-125v-61,0,-59,53,-59,109r0,188v3,54,17,97,57,97xm430,-564r0,752r-130,0r0,-248r-2,0v-25,56,-61,75,-113,75v-178,0,-135,-223,-135,-394v0,-155,51,-197,135,-200v56,-2,87,21,115,72r0,-57r130,0"},"r":{"d":"185,-564v2,32,-4,72,2,100v18,-67,81,-112,132,-110r0,154v-72,-7,-129,11,-129,94r0,326r-130,0r0,-564r125,0","w":333},"s":{"d":"29,-186r130,0v-10,104,30,101,60,101v37,0,60,-27,54,-63v-5,-32,-39,-50,-64,-67v-77,-53,-178,-112,-178,-227v0,-87,69,-137,194,-137v126,0,184,66,181,187r-130,0v3,-63,-15,-87,-60,-87v-31,0,-55,14,-55,46v0,33,25,47,49,65v68,50,178,92,195,183v18,97,-13,200,-193,200v-69,0,-198,-29,-183,-201","w":444},"t":{"d":"252,-100r0,102v-77,9,-185,16,-185,-89r0,-382r-53,0r0,-95r52,0r0,-155r131,0r0,155r55,0r0,95r-55,0r0,350v3,24,39,21,55,19","w":278},"u":{"d":"188,-178v-4,40,8,93,53,93v61,0,60,-69,60,-113r0,-366r130,0r0,564r-124,0v-2,-27,4,-61,-2,-84v-20,67,-58,99,-121,99v-103,0,-126,-53,-126,-147r0,-432r130,0r0,386"},"v":{"d":"142,0r-132,-564r140,0r55,316v13,51,12,144,20,167v8,-152,50,-337,74,-483r135,0r-130,564r-162,0","w":444},"w":{"d":"381,-564r63,346v7,40,11,80,13,121r3,0v10,-165,37,-310,54,-467r131,0r-114,564r-142,0v-21,-121,-51,-238,-60,-370r-4,0v-6,132,-35,249,-53,370r-145,0r-116,-564r137,0r46,344v5,16,7,105,13,125v12,-164,46,-313,67,-469r107,0","w":667},"x":{"d":"157,-288r-142,-276r153,0v22,48,42,100,59,153v13,-57,41,-103,62,-153r144,0r-141,273r144,291r-146,0v-24,-54,-51,-114,-67,-174v-11,65,-44,118,-66,174r-149,0","w":444},"y":{"d":"5,-564r137,0r57,299v11,49,10,105,21,150v15,-157,52,-301,77,-449r132,0r-137,572v-33,128,-36,208,-216,182r0,-101v21,0,77,11,77,-25v0,-20,-7,-52,-12,-72","w":444},"z":{"d":"367,-471r-206,371r206,0r0,100r-344,0r0,-102r198,-362r-194,0r0,-100r340,0r0,93","w":389},"{":{"d":"-32,-327v115,-21,75,-175,75,-293v0,-87,32,-130,123,-130v23,0,55,-4,74,2v-62,14,-75,54,-75,110r0,184v0,70,-14,111,-82,126r0,2v123,22,82,182,82,307v0,50,13,93,75,109r0,2r-65,0v-171,12,-132,-162,-132,-310v0,-58,-17,-92,-75,-107r0,-2","w":274},"|":{"d":"75,250r0,-1000r100,0r0,1000r-100,0","w":250},"}":{"d":"231,-618r0,183v-2,55,22,98,75,111v-66,8,-75,50,-75,108r0,162v0,100,-23,148,-129,148v-21,0,-51,4,-68,-2v113,-22,75,-165,75,-281v0,-67,9,-114,82,-135r0,-2v-125,-21,-82,-184,-82,-311v0,-59,-19,-99,-75,-110r0,-3r68,0v94,1,129,38,129,132","w":274},"~":{"d":"418,-359r57,73v-31,54,-63,117,-129,117v-60,0,-154,-66,-186,-66v-41,0,-59,48,-77,82r-57,-74v28,-57,68,-124,133,-124v65,0,145,66,187,66v37,0,54,-44,72,-74"},"\u00a1":{"d":"102,-40v-5,-118,15,-235,21,-346r88,0v2,57,8,115,13,173v12,122,7,251,8,383r-130,0r0,-210xm102,-447r0,-132r130,0r0,132r-130,0","w":333},"\u00a2":{"d":"194,-346r0,209r2,0r56,-332v-59,-8,-58,50,-58,123xm428,-218v12,158,-67,260,-209,232r-20,108r-69,0r24,-126v-55,-28,-82,-89,-82,-190r0,-183v-1,-174,121,-223,200,-198r17,-96r70,0r-21,110v80,39,95,100,90,195r-130,0r0,-79r-3,0r-61,343v12,12,34,10,50,2v17,-23,13,-76,14,-118r130,0"},"\u00a3":{"d":"141,-88r3,2v38,-21,62,-31,97,-31v38,0,94,14,120,18v33,5,68,-10,98,-31r28,109v-71,50,-174,35,-257,11v-57,-17,-97,-7,-159,25r-36,-94v82,-48,131,-157,88,-258r-86,0r0,-59r63,0v-31,-49,-46,-108,-46,-166v0,-217,309,-280,401,-111v23,42,20,93,20,141r-128,0v-1,-63,1,-126,-79,-126v-65,0,-83,49,-83,106v0,47,28,113,46,156r146,0r0,59r-124,0v35,112,-36,197,-112,249"},"\u00a5":{"d":"518,-750r-198,431r0,60r108,0r0,50r-108,0r0,61r108,0r0,50r-108,0r0,98r-140,0r0,-98r-112,0r0,-50r112,0r0,-61r-112,0r0,-50r112,0r0,-60r-198,-431r156,0v37,102,89,197,113,312r2,0v23,-115,76,-210,113,-312r152,0"},"\u00a7":{"d":"305,-320r-114,-93v-20,9,-52,41,-36,83v6,16,16,29,29,40r123,100v22,-12,38,-37,38,-63v0,-30,-18,-49,-40,-67xm54,-12r125,0v-1,54,12,93,73,93v29,0,53,-21,59,-49v10,-44,-26,-79,-58,-103r-119,-93v-65,-51,-97,-84,-97,-172v0,-58,28,-113,86,-145v-40,-29,-51,-65,-51,-125v0,-78,59,-162,190,-162v109,0,183,64,176,176r-123,0v4,-44,-16,-76,-63,-76v-31,0,-58,16,-58,55v0,36,19,56,46,77r137,108v54,41,86,84,86,155v0,60,-31,115,-83,147v31,22,57,86,57,134v0,104,-96,175,-196,175v-130,0,-188,-72,-187,-195"},"\u00a4":{"d":"9,-137r42,-44v-46,-77,-47,-180,0,-257r-42,-42r76,-80r42,43v75,-49,174,-50,250,0r43,-43r72,80r-41,42v48,75,49,181,0,257r41,44r-72,79r-43,-43v-75,49,-175,51,-250,0r-42,43xm252,-437v-66,0,-118,62,-118,127v0,65,52,129,118,129v67,0,117,-64,117,-129v0,-65,-50,-127,-117,-127"},"'":{"d":"185,-468r-119,0r0,-271r119,0r0,271","w":250},"\u00ab":{"d":"231,-62r-157,-142r0,-102r157,-141r0,112r-94,79r94,81r0,113xm419,-62r-159,-142r0,-102r159,-141r0,112r-96,79r96,81r0,113"},"\u00b7":{"d":"233,-315r-132,0r0,132r132,0r0,-132","w":333},"\u00b6":{"d":"366,116r0,-748r-68,0r0,748r-118,0r0,-517v-104,0,-157,-71,-157,-171v0,-135,75,-178,200,-178r303,0r0,118r-42,0r0,748r-118,0","w":550},"\u00bb":{"d":"81,-62r0,-113r96,-85r-96,-75r0,-112r159,141r0,102xm269,-62r0,-113r95,-85r-95,-75r0,-112r157,141r0,102"},"\u00bf":{"d":"255,86v70,0,67,-61,69,-111r124,0v8,147,-66,215,-195,215v-118,0,-193,-71,-193,-186v0,-113,81,-181,138,-249v32,-37,36,-85,36,-132r117,0v7,137,-48,188,-114,270v-32,40,-39,61,-39,112v0,58,17,81,57,81xm353,-450r-128,0r0,-129r128,0r0,129"},"`":{"d":"1,-775r155,0r94,146r-101,0","w":333},"\u00b4":{"d":"83,-629r94,-146r155,0r-148,146r-101,0","w":333},"\u00af":{"d":"340,-666r-346,0r0,-74r346,0r0,74","w":333},"\u00a8":{"d":"132,-644r-127,0r0,-115r127,0r0,115xm328,-644r-128,0r0,-115r128,0r0,115","w":333},"\u00b8":{"d":"154,63v73,-30,159,46,108,117v-50,70,-154,53,-223,23r19,-42v49,19,130,32,130,-30v0,-33,-55,-34,-85,-21r-21,-20r59,-90r53,0r-42,61","w":333},"\u00c6":{"d":"365,0r0,-192r-172,0r-65,192r-150,0r288,-750r484,0r0,110r-245,0r0,190r229,0r0,110r-229,0r0,230r245,0r0,110r-385,0xm365,-611r-27,0r-107,309r134,0r0,-309","w":778},"\u00aa":{"d":"146,-471v61,0,38,-74,43,-128v-63,39,-82,39,-82,84v0,26,8,44,39,44xm105,-659r-80,0v-1,-64,22,-109,128,-109v115,0,121,56,121,100v0,82,-8,176,7,247r-80,0v-8,-9,-3,-26,-7,-34v-14,25,-43,43,-74,43v-68,0,-98,-31,-98,-101v0,-77,59,-96,125,-121v36,-14,49,-29,42,-57v-4,-15,-17,-21,-40,-21v-38,0,-44,23,-44,53","w":300},"\u00d8":{"d":"578,-744r-58,92v41,92,31,205,31,324v0,200,-15,346,-245,346v-86,0,-133,-12,-175,-54r-46,74r-49,-30r59,-94v-42,-86,-34,-224,-34,-349v0,-191,21,-333,245,-333v78,0,129,8,178,60r44,-71xm206,-275r187,-300v-3,-43,-21,-80,-87,-80v-108,0,-101,123,-101,241v0,71,-2,113,-1,139r2,0xm405,-478r-190,306v9,46,30,77,91,77v108,0,101,-127,101,-206v0,-56,6,-124,-2,-177","w":611},"\u00ba":{"d":"106,-648r0,113v0,31,0,63,43,63v44,0,44,-32,44,-63r0,-113v0,-42,-4,-60,-44,-60v-40,0,-43,18,-43,60xm150,-768v126,0,128,74,128,190v0,117,-18,166,-127,166v-111,0,-130,-49,-129,-166v0,-116,2,-190,128,-190","w":300},"\u00e6":{"d":"176,-400r-130,0v-1,-30,4,-58,13,-87v24,-77,111,-92,185,-92v46,0,91,10,130,36v36,-29,74,-36,117,-36v101,0,180,39,180,175r0,145r-245,0v5,73,-22,167,60,174v54,5,58,-51,55,-107r131,0v3,110,-34,207,-186,207v-64,0,-100,-15,-136,-59v-28,43,-82,59,-131,59v-110,0,-175,-39,-175,-158v0,-93,24,-129,104,-174v77,-44,152,-47,152,-113v0,-40,-24,-49,-60,-49v-60,0,-62,31,-64,79xm226,-85v90,0,67,-123,70,-211v-54,39,-122,54,-122,136v0,54,14,75,52,75xm426,-359r115,0r0,-56v0,-56,-27,-64,-57,-64v-57,0,-61,59,-58,120","w":722},"\u00f8":{"d":"315,-338r-130,196v4,40,19,57,67,57v60,0,65,-30,65,-99v0,-50,4,-108,-2,-154xm390,-539r53,-78r49,35r-66,99v21,54,21,130,21,221v1,196,-26,277,-194,277v-64,0,-108,-10,-139,-35r-54,78r-53,-34r69,-99v-18,-45,-24,-107,-23,-187v1,-193,4,-317,199,-317v65,0,109,14,138,40xm185,-219r130,-195v-3,-36,-15,-65,-63,-65v-69,0,-69,54,-69,107v0,50,-4,108,2,153"},"\u00df":{"d":"433,-579v0,93,-35,126,-79,145v67,17,90,90,91,210v1,106,-22,223,-117,238v-31,5,-66,-4,-92,-14r0,-92v100,35,77,-113,78,-211v0,-48,-17,-75,-69,-77r0,-95v42,-4,61,-6,61,-70v0,-62,6,-123,-58,-123v-58,0,-58,73,-58,114r0,554r-130,0r0,-533v-1,-88,4,-235,190,-235v135,0,183,100,183,189"},"\u00f7":{"d":"26,-194r0,-110r449,0r0,110r-449,0xm313,-377r-127,0r0,-115r127,0r0,115xm313,-6r-127,0r0,-115r127,0r0,115"},"\u00be":{"d":"515,-157r91,0r0,-183r-2,0xm596,-443r101,0r0,286r42,0r0,66r-42,0r0,91r-91,0r0,-91r-158,0r0,-66xm234,0r-75,0r425,-738r75,0xm18,-618v-5,-88,39,-134,128,-133v92,0,132,45,132,116v0,41,-20,83,-63,95v43,4,73,39,73,108v0,89,-41,142,-141,142v-140,0,-136,-83,-135,-158r85,0v2,37,-6,92,51,92v51,0,49,-43,49,-85v0,-14,0,-37,-10,-48v-17,-18,-57,-18,-82,-18r0,-66v19,-1,40,1,57,-6v45,-19,37,-106,-15,-106v-19,0,-44,7,-44,36r0,31r-85,0","w":750},"\u00bc":{"d":"505,-157r91,0r0,-183r-2,0xm586,-443r101,0r0,286r42,0r0,66r-42,0r0,91r-91,0r0,-91r-158,0r0,-66xm206,0r-75,0r425,-738r75,0xm130,-300r0,-312r-110,0r0,-60v63,-1,115,-16,134,-78r67,0r0,450r-91,0","w":750},"\u00b9":{"d":"160,-300r0,-312r-110,0r0,-60v63,-1,115,-16,134,-78r67,0r0,450r-91,0","w":300},"\u00d7":{"d":"170,-249r-144,-144r78,-78r144,144r149,-149r78,78r-149,149r149,149r-78,78r-149,-149r-144,144r-78,-78"},"\u00ae":{"d":"416,18v-218,0,-394,-176,-394,-394v0,-216,176,-392,394,-392v216,0,392,176,392,392v0,218,-176,394,-392,394xm416,-56v176,0,318,-142,318,-320v0,-176,-142,-318,-318,-318v-177,0,-320,142,-320,318v0,178,143,320,320,320xm508,-341r103,180r-97,0r-94,-180r-83,0r0,180r-83,0r0,-425v113,7,236,-23,320,21v40,21,50,66,50,110v0,77,-41,109,-116,114xm337,-404v84,-9,205,33,204,-64v0,-55,-60,-55,-101,-55r-103,0r0,119","w":830},"\u00de":{"d":"208,-522r0,216r75,0v75,0,102,-32,102,-108v0,-76,-27,-108,-102,-108r-75,0xm68,0r0,-750r140,0r0,118r134,0v146,0,187,108,187,218v0,150,-101,218,-199,218r-122,0r0,196r-140,0","w":556},"\u00a6":{"d":"75,175r0,-350r100,0r0,350r-100,0xm175,-675r0,350r-100,0r0,-350r100,0","w":250},"\u00d0":{"d":"212,-640r0,167r105,0r0,67r-105,0r0,296r92,0v102,0,102,-114,102,-265v0,-151,0,-265,-102,-265r-92,0xm550,-406v0,181,-8,406,-219,406r-259,0r0,-406r-52,0r0,-67r52,0r0,-277r292,0v34,0,102,15,145,85v32,52,41,135,41,259","w":611},"\u00bd":{"d":"183,0r-75,0r425,-738r75,0xm122,-300r0,-312r-110,0r0,-60v63,-1,115,-16,134,-78r67,0r0,450r-91,0xm604,-386v-46,0,-53,47,-49,86r-85,0v0,-59,-9,-152,138,-152v77,0,131,45,131,117v0,88,-81,141,-130,191v-19,18,-46,47,-47,78r170,0r0,66r-267,0v5,-99,16,-120,94,-203v34,-36,89,-67,89,-129v0,-41,-18,-54,-44,-54","w":750},"\u00e7":{"d":"224,63v73,-30,159,46,108,117v-50,70,-154,53,-223,23r19,-42v49,19,130,32,130,-30v0,-33,-55,-34,-85,-21r-21,-20r50,-77v-101,-7,-153,-69,-153,-209r0,-183v-1,-158,77,-200,176,-200v150,0,187,89,178,211r-130,0v1,-51,6,-111,-45,-111v-50,0,-49,57,-49,126r0,133v-3,110,10,135,49,135v54,0,43,-77,45,-135r130,0v7,134,-22,225,-148,233r-33,48","w":444},"\u00f0":{"d":"183,-346r0,162v0,69,6,99,67,99v62,0,67,-30,67,-99r0,-162v0,-53,0,-107,-67,-107v-67,0,-67,54,-67,107xm112,-622r56,-44v-21,-15,-45,-27,-69,-39r87,-74v24,10,51,24,73,40r50,-40r45,35r-50,40v68,48,143,140,143,334r0,108v0,196,-27,277,-197,277v-169,0,-197,-81,-197,-277v0,-200,35,-282,159,-282v39,0,71,8,90,26r2,-2v-12,-43,-57,-93,-88,-114r-59,47"},"\u00b1":{"d":"195,-379r0,-134r110,0r0,134r170,0r0,110r-170,0r0,134r-110,0r0,-134r-169,0r0,-110r169,0xm26,15r0,-110r449,0r0,110r-449,0"},"\u00c7":{"d":"284,63v73,-30,159,46,108,117v-50,70,-154,53,-223,23r19,-42v49,19,130,32,130,-30v0,-33,-55,-34,-85,-21r-21,-20r48,-74v-230,-16,-205,-225,-205,-451v0,-191,21,-333,245,-333v146,0,212,95,208,251r-138,0v-6,-48,-1,-138,-70,-138v-110,0,-101,131,-101,189r0,208v0,62,5,163,101,163v77,0,68,-124,71,-172r141,0v-5,153,-36,278,-199,284r-31,44","w":556},"\u00fe":{"d":"308,-194r0,-188v0,-56,-14,-97,-59,-97v-53,0,-61,50,-61,125v0,96,-28,269,63,269v40,0,57,-43,57,-109xm58,189r0,-939r130,0r0,245r2,0v24,-55,59,-74,113,-74v84,0,135,49,135,209v0,168,39,377,-135,385v-53,2,-85,-20,-115,-67r0,241r-130,0"},"\u00a9":{"d":"416,-768v217,0,392,174,392,391v0,219,-175,395,-392,395v-218,0,-394,-176,-394,-395v0,-217,176,-391,394,-391xm416,-57v174,0,318,-143,318,-320v0,-175,-144,-317,-318,-317v-177,0,-320,142,-320,317v0,177,143,320,320,320xm527,-306r89,0v-11,95,-92,153,-184,153v-131,0,-217,-100,-217,-227v0,-130,82,-226,215,-226v95,0,169,55,186,149r-89,0v-9,-49,-48,-77,-98,-77v-84,0,-126,74,-126,152v0,75,47,157,129,157v48,0,92,-33,95,-81","w":830},"\u00ac":{"d":"365,-105r0,-186r-339,0r0,-110r449,0r0,296r-110,0"},"\u00b2":{"d":"152,-686v-46,0,-53,47,-49,86r-85,0v0,-59,-9,-152,138,-152v77,0,131,45,131,117v0,88,-81,141,-130,191v-19,18,-46,47,-47,78r170,0r0,66r-267,0v5,-99,16,-120,94,-203v34,-36,89,-67,89,-129v0,-41,-18,-54,-44,-54","w":300},"\u00b3":{"d":"18,-618v-5,-88,39,-134,128,-133v92,0,132,45,132,116v0,41,-20,83,-63,95v43,4,73,39,73,108v0,89,-41,142,-141,142v-140,0,-136,-83,-135,-158r85,0v2,37,-6,92,51,92v51,0,49,-43,49,-85v0,-14,0,-37,-10,-48v-17,-18,-57,-18,-82,-18r0,-66v19,-1,40,1,57,-6v45,-19,37,-106,-15,-106v-19,0,-44,7,-44,36r0,31r-85,0","w":300},"\u00b0":{"d":"350,-600v0,83,-68,150,-150,150v-83,0,-150,-67,-150,-150v0,-82,67,-150,150,-150v82,0,150,68,150,150xm129,-600v0,40,32,71,72,71v39,0,70,-31,70,-71v0,-39,-31,-71,-71,-71v-39,0,-71,32,-71,71","w":400},"\u00c1":{"d":"159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154xm195,-815r94,-146r155,0r-148,146r-101,0","w":556},"\u00c2":{"d":"205,-956r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154","w":556},"\u00c4":{"d":"159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154xm244,-830r-127,0r0,-115r127,0r0,115xm440,-830r-128,0r0,-115r128,0r0,115","w":556},"\u00c0":{"d":"159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154xm113,-961r155,0r94,146r-101,0","w":556},"\u00c5":{"d":"279,-778v-58,0,-107,-48,-107,-106v0,-58,49,-107,107,-107v59,0,106,49,106,107v0,59,-47,106,-106,106xm279,-942v-32,0,-58,26,-58,58v0,31,28,57,58,57v30,0,58,-27,58,-57v0,-31,-27,-58,-58,-58xm159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154","w":556},"\u00c3":{"d":"210,-925v67,0,159,85,187,-5r65,0v-33,145,-108,132,-205,99v-22,-8,-52,-20,-73,-8v-16,8,-25,35,-26,37r-62,0v6,-83,70,-123,114,-123xm159,0r-150,0r179,-750r189,0r170,750r-150,0r-37,-190r-164,0xm279,-667v-13,130,-37,249,-61,367r120,0r-38,-213v-12,-49,-9,-106,-21,-154","w":556},"\u00c9":{"d":"458,0r-394,0r0,-750r394,0r0,110r-254,0r0,189r234,0r0,110r-234,0r0,231r254,0r0,110xm167,-815r94,-146r155,0r-148,146r-101,0"},"\u00ca":{"d":"187,-956r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm458,0r-394,0r0,-750r394,0r0,110r-254,0r0,189r234,0r0,110r-234,0r0,231r254,0r0,110"},"\u00cb":{"d":"458,0r-394,0r0,-750r394,0r0,110r-254,0r0,189r234,0r0,110r-234,0r0,231r254,0r0,110xm216,-830r-127,0r0,-115r127,0r0,115xm412,-830r-128,0r0,-115r128,0r0,115"},"\u00c8":{"d":"458,0r-394,0r0,-750r394,0r0,110r-254,0r0,189r234,0r0,110r-234,0r0,231r254,0r0,110xm85,-961r155,0r94,146r-101,0"},"\u00cd":{"d":"209,0r-140,0r0,-750r140,0r0,750xm56,-815r94,-146r155,0r-148,146r-101,0","w":278},"\u00ce":{"d":"76,-956r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm209,0r-140,0r0,-750r140,0r0,750","w":278},"\u00cf":{"d":"209,0r-140,0r0,-750r140,0r0,750xm105,-830r-127,0r0,-115r127,0r0,115xm301,-830r-128,0r0,-115r128,0r0,115","w":278},"\u00cc":{"d":"209,0r-140,0r0,-750r140,0r0,750xm-26,-961r155,0r94,146r-101,0","w":278},"\u00d1":{"d":"237,-925v67,0,159,85,187,-5r65,0v-33,145,-108,132,-205,99v-22,-8,-52,-20,-73,-8v-16,8,-25,35,-26,37r-62,0v6,-83,70,-123,114,-123xm403,-603r0,-147r140,0r0,750r-146,0v-76,-192,-150,-344,-209,-565r-2,0v5,62,11,138,15,214v4,75,7,150,7,210r0,141r-140,0r0,-750r145,0v76,197,147,343,209,571r2,0v-5,-68,-10,-141,-14,-213v-4,-72,-7,-144,-7,-211","w":611},"\u00d3":{"d":"306,18v-272,0,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,200,-15,346,-245,346xm205,-466r0,208v0,62,5,163,101,163v100,0,101,-103,101,-175r0,-192v0,-60,3,-193,-101,-193v-110,0,-101,131,-101,189xm222,-815r94,-146r155,0r-148,146r-101,0","w":611},"\u00d4":{"d":"242,-956r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm306,18v-272,0,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,200,-15,346,-245,346xm205,-466r0,208v0,62,5,163,101,163v100,0,101,-103,101,-175r0,-192v0,-60,3,-193,-101,-193v-110,0,-101,131,-101,189","w":611},"\u00d6":{"d":"306,18v-272,0,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,200,-15,346,-245,346xm205,-466r0,208v0,62,5,163,101,163v100,0,101,-103,101,-175r0,-192v0,-60,3,-193,-101,-193v-110,0,-101,131,-101,189xm271,-830r-127,0r0,-115r127,0r0,115xm467,-830r-128,0r0,-115r128,0r0,115","w":611},"\u00d2":{"d":"306,18v-272,0,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,200,-15,346,-245,346xm205,-466r0,208v0,62,5,163,101,163v100,0,101,-103,101,-175r0,-192v0,-60,3,-193,-101,-193v-110,0,-101,131,-101,189xm140,-961r155,0r94,146r-101,0","w":611},"\u00d5":{"d":"237,-925v67,0,159,85,187,-5r65,0v-33,145,-108,132,-205,99v-22,-8,-52,-20,-73,-8v-16,8,-25,35,-26,37r-62,0v6,-83,70,-123,114,-123xm306,18v-272,0,-245,-212,-245,-453v0,-191,21,-333,245,-333v264,0,245,204,245,440v0,200,-15,346,-245,346xm205,-466r0,208v0,62,5,163,101,163v100,0,101,-103,101,-175r0,-192v0,-60,3,-193,-101,-193v-110,0,-101,131,-101,189","w":611},"\u00da":{"d":"404,-239r0,-511r140,0r0,523v0,166,-54,245,-237,245v-185,0,-239,-79,-239,-245r0,-523r140,0r0,511v0,72,5,144,100,144v91,0,96,-72,96,-144xm222,-815r94,-146r155,0r-148,146r-101,0","w":611},"\u00db":{"d":"242,-956r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm404,-239r0,-511r140,0r0,523v0,166,-54,245,-237,245v-185,0,-239,-79,-239,-245r0,-523r140,0r0,511v0,72,5,144,100,144v91,0,96,-72,96,-144","w":611},"\u00dc":{"d":"404,-239r0,-511r140,0r0,523v0,166,-54,245,-237,245v-185,0,-239,-79,-239,-245r0,-523r140,0r0,511v0,72,5,144,100,144v91,0,96,-72,96,-144xm271,-830r-127,0r0,-115r127,0r0,115xm467,-830r-128,0r0,-115r128,0r0,115","w":611},"\u00d9":{"d":"404,-239r0,-511r140,0r0,523v0,166,-54,245,-237,245v-185,0,-239,-79,-239,-245r0,-523r140,0r0,511v0,72,5,144,100,144v91,0,96,-72,96,-144xm140,-961r155,0r94,146r-101,0","w":611},"\u00dd":{"d":"165,-750v37,102,90,197,112,312r2,0v27,-123,75,-204,113,-312r153,0r-198,431r0,319r-140,0r0,-319r-195,-431r153,0xm195,-815r94,-146r155,0r-148,146r-101,0","w":556},"\u00e1":{"d":"307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151xm167,-629r94,-146r155,0r-148,146r-101,0"},"\u00e2":{"d":"187,-770r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151"},"\u00e4":{"d":"307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151xm216,-644r-127,0r0,-115r127,0r0,115xm412,-644r-128,0r0,-115r128,0r0,115"},"\u00e0":{"d":"307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151xm85,-775r155,0r94,146r-101,0"},"\u00e5":{"d":"236,-622v-58,0,-107,-48,-107,-106v0,-58,49,-107,107,-107v59,0,106,49,106,107v0,59,-47,106,-106,106xm236,-786v-32,0,-58,26,-58,58v0,31,28,57,58,57v30,0,58,-27,58,-57v0,-31,-27,-58,-58,-58xm307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151"},"\u00e3":{"d":"182,-739v67,0,159,85,187,-5r65,0v-33,145,-108,132,-205,99v-22,-8,-52,-20,-73,-8v-16,8,-25,35,-26,37r-62,0v6,-83,70,-123,114,-123xm307,-58v-25,39,-59,73,-114,73v-105,0,-151,-53,-151,-169v0,-129,91,-160,193,-202v55,-23,75,-48,64,-94v-6,-25,-26,-29,-61,-29v-59,0,-69,31,-68,82r-124,0v-1,-107,34,-182,197,-182v177,0,186,93,186,167r0,333v0,27,4,53,11,79r-123,0v-11,-17,-6,-43,-10,-58xm299,-236r0,-61v-32,22,-74,41,-105,72v-39,38,-36,140,39,140v77,0,66,-97,66,-151"},"\u00e9":{"d":"53,-222r0,-148v-6,-133,62,-209,190,-209v212,0,201,138,200,324r-260,0r0,82v1,74,29,88,68,88v48,0,62,-35,60,-106r130,0v5,126,-47,206,-180,206v-150,0,-211,-71,-208,-237xm183,-355r130,0v1,-69,4,-129,-68,-124v-74,5,-60,63,-62,124xm167,-629r94,-146r155,0r-148,146r-101,0"},"\u00ea":{"d":"187,-770r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm53,-222r0,-148v-6,-133,62,-209,190,-209v212,0,201,138,200,324r-260,0r0,82v1,74,29,88,68,88v48,0,62,-35,60,-106r130,0v5,126,-47,206,-180,206v-150,0,-211,-71,-208,-237xm183,-355r130,0v1,-69,4,-129,-68,-124v-74,5,-60,63,-62,124"},"\u00eb":{"d":"53,-222r0,-148v-6,-133,62,-209,190,-209v212,0,201,138,200,324r-260,0r0,82v1,74,29,88,68,88v48,0,62,-35,60,-106r130,0v5,126,-47,206,-180,206v-150,0,-211,-71,-208,-237xm183,-355r130,0v1,-69,4,-129,-68,-124v-74,5,-60,63,-62,124xm216,-644r-127,0r0,-115r127,0r0,115xm412,-644r-128,0r0,-115r128,0r0,115"},"\u00e8":{"d":"53,-222r0,-148v-6,-133,62,-209,190,-209v212,0,201,138,200,324r-260,0r0,82v1,74,29,88,68,88v48,0,62,-35,60,-106r130,0v5,126,-47,206,-180,206v-150,0,-211,-71,-208,-237xm183,-355r130,0v1,-69,4,-129,-68,-124v-74,5,-60,63,-62,124xm85,-775r155,0r94,146r-101,0"},"\u00ed":{"d":"204,0r-130,0r0,-564r130,0r0,564xm56,-629r94,-146r155,0r-148,146r-101,0","w":278},"\u00ee":{"d":"66,-770r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm204,0r-130,0r0,-564r130,0r0,564","w":278},"\u00ef":{"d":"204,0r-130,0r0,-564r130,0r0,564xm105,-644r-127,0r0,-115r127,0r0,115xm301,-644r-128,0r0,-115r128,0r0,115","w":278},"\u00ec":{"d":"204,0r-130,0r0,-564r130,0r0,564xm-26,-775r155,0r94,146r-101,0","w":278},"\u00f1":{"d":"182,-739v67,0,159,85,187,-5r65,0v-33,145,-108,132,-205,99v-22,-8,-52,-20,-73,-8v-16,8,-25,35,-26,37r-62,0v6,-83,70,-123,114,-123xm191,-564v2,18,-4,44,2,58v29,-65,87,-73,117,-73v74,0,130,43,130,144r0,435r-130,0r0,-376v0,-55,-6,-91,-55,-93v-49,-2,-64,44,-64,104r0,365r-130,0r0,-564r130,0"},"\u00f3":{"d":"183,-372r0,188v0,69,6,99,69,99v60,0,65,-30,65,-99r0,-188v0,-53,0,-107,-65,-107v-69,0,-69,54,-69,107xm252,15v-171,0,-200,-81,-199,-277v1,-193,3,-317,199,-317v193,0,194,124,195,317v1,196,-27,277,-195,277xm167,-629r94,-146r155,0r-148,146r-101,0"},"\u00f4":{"d":"187,-770r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm183,-372r0,188v0,69,6,99,69,99v60,0,65,-30,65,-99r0,-188v0,-53,0,-107,-65,-107v-69,0,-69,54,-69,107xm252,15v-171,0,-200,-81,-199,-277v1,-193,3,-317,199,-317v193,0,194,124,195,317v1,196,-27,277,-195,277"},"\u00f6":{"d":"183,-372r0,188v0,69,6,99,69,99v60,0,65,-30,65,-99r0,-188v0,-53,0,-107,-65,-107v-69,0,-69,54,-69,107xm252,15v-171,0,-200,-81,-199,-277v1,-193,3,-317,199,-317v193,0,194,124,195,317v1,196,-27,277,-195,277xm216,-644r-127,0r0,-115r127,0r0,115xm412,-644r-128,0r0,-115r128,0r0,115"},"\u00f2":{"d":"183,-372r0,188v0,69,6,99,69,99v60,0,65,-30,65,-99r0,-188v0,-53,0,-107,-65,-107v-69,0,-69,54,-69,107xm252,15v-171,0,-200,-81,-199,-277v1,-193,3,-317,199,-317v193,0,194,124,195,317v1,196,-27,277,-195,277xm85,-775r155,0r94,146r-101,0"},"\u00f5":{"d":"182,-739v67,0,159,85,187,-5r65,0v-33,145,-108,132,-205,99v-22,-8,-52,-20,-73,-8v-16,8,-25,35,-26,37r-62,0v6,-83,70,-123,114,-123xm183,-372r0,188v0,69,6,99,69,99v60,0,65,-30,65,-99r0,-188v0,-53,0,-107,-65,-107v-69,0,-69,54,-69,107xm252,15v-171,0,-200,-81,-199,-277v1,-193,3,-317,199,-317v193,0,194,124,195,317v1,196,-27,277,-195,277"},"\u00fa":{"d":"188,-178v-4,40,8,93,53,93v61,0,60,-69,60,-113r0,-366r130,0r0,564r-124,0v-2,-27,4,-61,-2,-84v-20,67,-58,99,-121,99v-103,0,-126,-53,-126,-147r0,-432r130,0r0,386xm167,-629r94,-146r155,0r-148,146r-101,0"},"\u00fb":{"d":"187,-780r125,0r115,146r-114,0r-63,-82r-64,82r-112,0xm188,-178v-4,40,8,93,53,93v61,0,60,-69,60,-113r0,-366r130,0r0,564r-124,0v-2,-27,4,-61,-2,-84v-20,67,-58,99,-121,99v-103,0,-126,-53,-126,-147r0,-432r130,0r0,386"},"\u00fc":{"d":"188,-178v-4,40,8,93,53,93v61,0,60,-69,60,-113r0,-366r130,0r0,564r-124,0v-2,-27,4,-61,-2,-84v-20,67,-58,99,-121,99v-103,0,-126,-53,-126,-147r0,-432r130,0r0,386xm216,-644r-127,0r0,-115r127,0r0,115xm412,-644r-128,0r0,-115r128,0r0,115"},"\u00f9":{"d":"188,-178v-4,40,8,93,53,93v61,0,60,-69,60,-113r0,-366r130,0r0,564r-124,0v-2,-27,4,-61,-2,-84v-20,67,-58,99,-121,99v-103,0,-126,-53,-126,-147r0,-432r130,0r0,386xm85,-775r155,0r94,146r-101,0"},"\u00fd":{"d":"5,-564r137,0r57,299v11,49,10,105,21,150v15,-157,52,-301,77,-449r132,0r-137,572v-33,128,-36,208,-216,182r0,-101v21,0,77,11,77,-25v0,-20,-7,-52,-12,-72xm139,-629r94,-146r155,0r-148,146r-101,0","w":444},"\u00ff":{"d":"5,-564r137,0r57,299v11,49,10,105,21,150v15,-157,52,-301,77,-449r132,0r-137,572v-33,128,-36,208,-216,182r0,-101v21,0,77,11,77,-25v0,-20,-7,-52,-12,-72xm188,-644r-127,0r0,-115r127,0r0,115xm384,-644r-128,0r0,-115r128,0r0,115","w":444},"\u00a0":{"w":250}}}); /* * jQuery Tools 1.2.4 - The missing UI library for the Web * * [tabs, tabs.slideshow] * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/ * * File generated: Fri Aug 27 12:21:40 GMT 2010 */ (function(c){function p(d,b,a){var e=this,l=d.add(this),h=d.find(a.tabs),i=b.jquery?b:d.children(b),j;h.length||(h=d.children());i.length||(i=d.parent().find(b));i.length||(i=c(b));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(a.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(j>=0)return e;f=a.initialIndex;k=h.eq(f)}if(f===j)return e; g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[a.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});j=f;h.removeClass(a.current);k.addClass(a.current);return e}},getConf:function(){return a},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return e.click(j+1)},prev:function(){return e.click(j-1)},destroy:function(){h.unbind(a.event).removeClass(a.current); i.find("a[href^=#]").unbind("click.T");return e}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(a[g])&&c(e).bind(g,a[g]);e[g]=function(k){k&&c(e).bind(g,k);return e}});if(a.history&&c.fn.history){c.tools.history.init(h);a.event="history"}h.each(function(f){c(this).bind(a.event,function(g){e.click(f,g);return g.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(f){e.click(c(this).attr("href"),f)});if(location.hash&&a.tabs==="a"&&d.find(a.tabs+location.hash).length)e.click(location.hash); else if(a.initialIndex===0||a.initialIndex>0)e.click(a.initialIndex)}c.tools=c.tools||{version:"1.2.4"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,b){o[d]=b}};var o={"default":function(d,b){this.getPanes().hide().eq(d).show();b.call()},fade:function(d,b){var a=this.getConf(),e=a.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(a.fadeInSpeed,b)},slide:function(d, b){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,b)},ajax:function(d,b){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),b)}},m;c.tools.tabs.addEffect("horizontal",function(d,b){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();b.call()})});c.fn.tabs=function(d,b){var a=this.data("tabs");if(a){a.destroy();this.removeData("tabs")}if(c.isFunction(b))b= {onBeforeClick:b};b=c.extend({},c.tools.tabs.conf,b);this.each(function(){a=new p(c(this),d,b);c(this).data("tabs",a)});return b.api?a:this}})(jQuery); (function(d){function r(g,a){function p(f){var e=d(f);return e.length<2?e:g.parent().find(f)}var c=this,j=g.add(this),b=g.data("tabs"),h,m,k,n=false,o=p(a.next).click(function(){b.next()}),l=p(a.prev).click(function(){b.prev()});d.extend(c,{getTabs:function(){return b},getConf:function(){return a},play:function(){if(!h){var f=d.Event("onBeforePlay");j.trigger(f);if(f.isDefaultPrevented())return c;n=false;h=setInterval(b.next,a.interval);j.trigger("onPlay");b.next()}},pause:function(){if(!h&&!k)return c; var f=d.Event("onBeforePause");j.trigger(f);if(f.isDefaultPrevented())return c;h=clearInterval(h);k=clearInterval(k);j.trigger("onPause")},stop:function(){c.pause();n=true}});d.each("onBeforePlay,onPlay,onBeforePause,onPause".split(","),function(f,e){d.isFunction(a[e])&&c.bind(e,a[e]);c[e]=function(s){return c.bind(e,s)}});if(a.autopause){var t=b.getTabs().add(o).add(l).add(b.getPanes());t.hover(function(){c.pause();m=clearInterval(m)},function(){n||(m=setTimeout(c.play,a.interval))})}if(a.autoplay)k= setTimeout(c.play,a.interval);else c.stop();a.clickable&&b.getPanes().click(function(){b.next()});if(!b.getConf().rotate){var i=a.disabledClass;b.getIndex()||l.addClass(i);b.onBeforeClick(function(f,e){if(e){l.removeClass(i);e==b.getTabs().length-1?o.addClass(i):o.removeClass(i)}else l.addClass(i)})}}var q;q=d.tools.tabs.slideshow={conf:{next:".forward",prev:".backward",disabledClass:"disabled",autoplay:false,autopause:true,interval:3E3,clickable:true,api:false}};d.fn.slideshow=function(g){var a= this.data("slideshow");if(a)return a;g=d.extend({},q.conf,g);this.each(function(){a=new r(d(this),g);d(this).data("slideshow",a)});return g.api?a:this}})(jQuery); try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {} var highContrast = { initStyles: function() { var status = (readCookie('contrast') === 'highcontrast') ? true : false; $('#contrast').attr('disabled', !status); $(window).load(function() { document.getElementById('contrast').disabled = !status; }); this.currentStyles(status); }, currentStyles: function(contrast) { var elemText = '' if($('html').attr('lang') == 'en') { elemText = (contrast) ? 'Graphical version' : 'High contrast version'; } else { elemText = (contrast) ? 'Version graphique' : 'Plus de contraste'; } $(function() { $('div.tohsubheader div.pagetools li.contrast a').text(elemText); }); }, updateStyles: function() { var status = (readCookie('contrast') === 'highcontrast') ? 'graphical' : 'highcontrast'; createCookie('contrast', status, 365); this.initStyles(); } } highContrast.initStyles(); (function () { var Init = function() { /* div.primary ul.navigation > li > a' */ Cufon.replace('div.webtabs a, div.takeaction a', { hover: true }); Cufon.replace('div.tohsubheader h1, div.banner h2, div.social li:first-child'); $(document).ready(function() { // JavaScript support is enabled on the user's device. $('html').addClass('js'); var pagetools = $('div.tohsubheader div.pagetools'); $('.print > a', pagetools).click(function() { window.print(); return false; }); $('.fontsize a', pagetools).click(function() { FontSize($(this).attr('class')); Cufon.refresh(); return false; }); $('.contrast a', pagetools).click(function() { highContrast.updateStyles(); Cufon.refresh(); return false; }); // Format height of quick links. }); FontSize = function(direction) { if(typeof(title) === 'undefined') { return false; } if(title === 'null') title = 'small'; var fontsizes = ['small', 'medium', 'large'], fontindex = jQuery.inArray(title, fontsizes); if(direction === 'increase' && fontindex < (fontsizes.length - 1)) { title = fontsizes[fontindex + 1]; } else if(direction === 'decrease' && fontindex > 0) { title = fontsizes[fontindex - 1]; } setActiveStyleSheet(title); }; } return Init(); })(); var InitTabbedContent = function(elem){ var tabs = $('.navigation:first', elem), tabHeight = 0; /* Hide all banners by default; allow jQuery Tools to properly initialize the defined starting banner. */ $('.pane:gt(0)', elem).hide(); /* Add a 'helper' class for the first tab to allow for slightly varied layout settings. */ $('li:first', tabs).addClass('first'); /* Add a 'helper' class for the number of active tabs (for styling purposes). */ $(tabs).addClass('navigation-' + $('li', tabs).size()) /* Dynamically size the content (within each tab) to ensure a consistent layout of the text. */ $('li b', tabs).each(function() { tabHeight = ($(this).height() > tabHeight) ? $(this).height() : tabHeight; }); $('li b', tabs).each(function() { if($(this).height() < tabHeight) { $(this).css('paddingTop', parseInt((tabHeight - $(this).height()) /2)); } }); }; function SelectAll(id) { document.getElementById(id).focus(); document.getElementById(id).select(); } /** * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML . * Author: Drew Diller * Email: drew.diller@gmail.com * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/ * Version: 0.0.8a * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license * * Example usage: * DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector * DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement **/ var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;bn.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet(); /* Setup mouseover events for the primary navigation and display options dropdown menus. */ $(function() { $('div.primary ul.navigation > li, div.pagetools li.displayoptions').hover( function() { $('ul.dropdown', this).css('visibility', 'visible'); }, function() { $('ul.dropdown', this).css('visibility', 'hidden'); } ) }); /* Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing */ /* This is a compiled version of Dojo, built for deployment and not for development. To get an editable version, please visit: http://dojotoolkit.org for documentation and information on getting the source. */ (function(){var _1=null;if((_1||(typeof djConfig!="undefined"&&djConfig.scopeMap))&&(typeof window!="undefined")){var _2="",_3="",_4="",_5={},_6={};_1=_1||djConfig.scopeMap;for(var i=0;i<_1.length;i++){var _8=_1[i];_2+="var "+_8[0]+" = {}; "+_8[1]+" = "+_8[0]+";"+_8[1]+"._scopeName = '"+_8[1]+"';";_3+=(i==0?"":",")+_8[0];_4+=(i==0?"":",")+_8[1];_5[_8[0]]=_8[1];_6[_8[1]]=_8[0];}eval(_2+"dojo._scopeArgs = ["+_4+"];");dojo._scopePrefixArgs=_3;dojo._scopePrefix="(function("+_3+"){";dojo._scopeSuffix="})("+_4+")";dojo._scopeMap=_5;dojo._scopeMapRev=_6;}(function(){if(!this["console"]){this.console={log:function(){}};}var cn=["assert","count","debug","dir","dirxml","error","group","groupEnd","info","profile","profileEnd","time","timeEnd","trace","warn","log"];var i=0,tn;while((tn=cn[i++])){if(!console[tn]){(function(){var _c=tn+"";console[_c]=function(){var a=Array.apply({},arguments);a.unshift(_c+":");console.log(a.join(" "));};})();}}if(typeof dojo=="undefined"){this.dojo={_scopeName:"dojo",_scopePrefix:"",_scopePrefixArgs:"",_scopeSuffix:"",_scopeMap:{},_scopeMapRev:{}};}var d=dojo;if(typeof dijit=="undefined"){this.dijit={_scopeName:"dijit"};}if(typeof dojox=="undefined"){this.dojox={_scopeName:"dojox"};}if(!d._scopeArgs){d._scopeArgs=[dojo,dijit,dojox];}d.global=this;d.config={isDebug:false,debugAtAllCosts:false};if(typeof djConfig!="undefined"){for(var _f in djConfig){d.config[_f]=djConfig[_f];}}var _10=["Browser","Rhino","Spidermonkey","Mobile"];var t;while((t=_10.shift())){d["is"+t]=false;}dojo.locale=d.config.locale;var rev="$Rev: 13707 $".match(/\d+/);dojo.version={major:1,minor:1,patch:1,flag:"_IBM",revision:rev?+rev[0]:999999,toString:function(){with(d.version){return major+"."+minor+"."+patch+flag+" ("+revision+")";}}};if(typeof OpenAjax!="undefined"){OpenAjax.hub.registerLibrary(dojo._scopeName,"http://dojotoolkit.org",d.version.toString());}dojo._mixin=function(obj,_14){var _15={};for(var x in _14){if(_15[x]===undefined||_15[x]!=_14[x]){obj[x]=_14[x];}}if(d["isIE"]&&_14){var p=_14.toString;if(typeof p=="function"&&p!=obj.toString&&p!=_15.toString&&p!="\nfunction toString() {\n [native code]\n}\n"){obj.toString=_14.toString;}}return obj;};dojo.mixin=function(obj,_19){for(var i=1,l=arguments.length;i0){console.warn("files still in flight!");return;}d._callLoaded();};dojo._callLoaded=function(){if(typeof setTimeout=="object"||(dojo.config.useXDomain&&d.isOpera)){if(dojo.isAIR){setTimeout(function(){dojo.loaded();},0);}else{setTimeout(dojo._scopeName+".loaded();",0);}}else{d.loaded();}};dojo._getModuleSymbols=function(_4b){var _4c=_4b.split(".");for(var i=_4c.length;i>0;i--){var _4e=_4c.slice(0,i).join(".");if((i==1)&&!this._moduleHasPrefix(_4e)){_4c[0]="../"+_4c[0];}else{var _4f=this._getModulePrefix(_4e);if(_4f!=_4e){_4c.splice(0,i,_4f);break;}}}return _4c;};dojo._global_omit_module_check=false;dojo._loadModule=dojo.require=function(_50,_51){_51=this._global_omit_module_check||_51;var _52=this._loadedModules[_50];if(_52){return _52;}var _53=this._getModuleSymbols(_50).join("/")+".js";var _54=(!_51)?_50:null;var ok=this._loadPath(_53,_54);if(!ok&&!_51){throw new Error("Could not load '"+_50+"'; last tried '"+_53+"'");}if(!_51&&!this._isXDomain){_52=this._loadedModules[_50];if(!_52){throw new Error("symbol '"+_50+"' is not defined after loading '"+_53+"'");}}return _52;};dojo.provide=function(_56){_56=_56+"";return (d._loadedModules[_56]=d.getObject(_56,true));};dojo.platformRequire=function(_57){var _58=_57.common||[];var _59=_58.concat(_57[d._name]||_57["default"]||[]);for(var x=0;x<_59.length;x++){var _5b=_59[x];if(_5b.constructor==Array){d._loadModule.apply(d,_5b);}else{d._loadModule(_5b);}}};dojo.requireIf=function(_5c,_5d){if(_5c===true){var _5e=[];for(var i=1;i0&&!(j==1&&_6f[0]=="")&&_6f[j]==".."&&_6f[j-1]!=".."){if(j==(_6f.length-1)){_6f.splice(j,1);_6f[j-1]="";}else{_6f.splice(j-1,2);j-=2;}}}}_6c.path=_6f.join("/");}}}}uri=[];if(_6c.scheme){uri.push(_6c.scheme,":");}if(_6c.authority){uri.push("//",_6c.authority);}uri.push(_6c.path);if(_6c.query){uri.push("?",_6c.query);}if(_6c.fragment){uri.push("#",_6c.fragment);}}this.uri=uri.join("");var r=this.uri.match(ore);this.scheme=r[2]||(r[1]?"":n);this.authority=r[4]||(r[3]?"":n);this.path=r[5];this.query=r[7]||(r[6]?"":n);this.fragment=r[9]||(r[8]?"":n);if(this.authority!=n){r=this.authority.match(ire);this.user=r[3]||n;this.password=r[4]||n;this.host=r[6]||r[7];this.port=r[9]||n;}};dojo._Url.prototype.toString=function(){return this.uri;};dojo.moduleUrl=function(_72,url){var loc=d._getModuleSymbols(_72).join("/");if(!loc){return null;}if(loc.lastIndexOf("/")!=loc.length-1){loc+="/";}var _75=loc.indexOf(":");if(loc.charAt(0)!="/"&&(_75==-1||_75>loc.indexOf("/"))){loc=d.baseUrl+loc;}return new d._Url(loc,url);};})();if(typeof window!="undefined"){dojo.isBrowser=true;dojo._name="browser";(function(){var d=dojo;if(document&&document.getElementsByTagName){var _77=document.getElementsByTagName("script");var _78=/dojo(\.xd)?\.js(\W|$)/i;for(var i=0;i<_77.length;i++){var src=_77[i].getAttribute("src");if(!src){continue;}var m=src.match(_78);if(m){if(!d.config.baseUrl){d.config.baseUrl=src.substring(0,m.index);}var cfg=_77[i].getAttribute("djConfig");if(cfg){var _7d=eval("({ "+cfg+" })");for(var x in _7d){dojo.config[x]=_7d[x];}}break;}}}d.baseUrl=d.config.baseUrl;var n=navigator;var dua=n.userAgent;var dav=n.appVersion;var tv=parseFloat(dav);d.isOpera=(dua.indexOf("Opera")>=0)?tv:0;var idx=Math.max(dav.indexOf("WebKit"),dav.indexOf("Safari"),0);if(idx){d.isSafari=parseFloat(dav.split("Version/")[1])||((parseFloat(dav.substr(idx+7))>=419.3)?3:2)||2;}d.isAIR=(dua.indexOf("AdobeAIR")>=0)?1:0;d.isKhtml=(dav.indexOf("Konqueror")>=0||d.isSafari)?tv:0;d.isMozilla=d.isMoz=(dua.indexOf("Gecko")>=0&&!d.isKhtml)?tv:0;d.isFF=d.isIE=0;if(d.isMoz){d.isFF=parseFloat(dua.split("Firefox/")[1])||0;}if(document.all&&!d.isOpera){d.isIE=parseFloat(dav.split("MSIE ")[1])||0;}if(dojo.isIE&&window.location.protocol==="file:"){dojo.config.ieForceActiveXXhr=true;}var cm=document.compatMode;d.isQuirks=cm=="BackCompat"||cm=="QuirksMode"||d.isIE<6;d.locale=dojo.config.locale||(d.isIE?n.userLanguage:n.language).toLowerCase();d._XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];d._xhrObj=function(){var _85=null;var _86=null;if(!dojo.isIE||!dojo.config.ieForceActiveXXhr){try{_85=new XMLHttpRequest();}catch(e){}}if(!_85){for(var i=0;i<3;++i){var _88=d._XMLHTTP_PROGIDS[i];try{_85=new ActiveXObject(_88);}catch(e){_86=e;}if(_85){d._XMLHTTP_PROGIDS=[_88];break;}}}if(!_85){throw new Error("XMLHTTP not available: "+_86);}return _85;};d._isDocumentOk=function(_89){var _8a=_89.status||0;return (_8a>=200&&_8a<300)||_8a==304||_8a==1223||(!_8a&&(location.protocol=="file:"||location.protocol=="chrome:"));};var _8b=window.location+"";var _8c=document.getElementsByTagName("base");var _8d=(_8c&&_8c.length>0);d._getText=function(uri,_8f){var _90=this._xhrObj();if(!_8d&&dojo._Url){uri=(new dojo._Url(_8b,uri)).toString();}if(d.config.cacheBust){uri+=(uri.indexOf("?")==-1?"?":"&")+String(d.config.cacheBust).replace(/\W+/g,"");}_90.open("GET",uri,false);try{_90.send(null);if(!d._isDocumentOk(_90)){var err=Error("Unable to load "+uri+" status:"+_90.status);err.status=_90.status;err.responseText=_90.responseText;throw err;}}catch(e){if(_8f){return null;}throw e;}return _90.responseText;};})();dojo._initFired=false;dojo._loadInit=function(e){dojo._initFired=true;var _93=(e&&e.type)?e.type.toLowerCase():"load";if(arguments.callee.initialized||(_93!="domcontentloaded"&&_93!="load")){return;}arguments.callee.initialized=true;if("_khtmlTimer" in dojo){clearInterval(dojo._khtmlTimer);delete dojo._khtmlTimer;}if(dojo._inFlightCount==0){dojo._modulesLoaded();}};dojo._fakeLoadInit=function(){dojo._loadInit({type:"load"});};if(!dojo.config.afterOnLoad){if(document.addEventListener){if(dojo.isOpera||dojo.isFF>=3||(dojo.isMoz&&dojo.config.enableMozDomContentLoaded===true)){document.addEventListener("DOMContentLoaded",dojo._loadInit,null);}window.addEventListener("load",dojo._loadInit,null);}if(dojo.isAIR){window.addEventListener("load",dojo._loadInit,null);}else{if(/(WebKit|khtml)/i.test(navigator.userAgent)){dojo._khtmlTimer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){dojo._loadInit();}},10);}}}(function(){var _w=window;var _95=function(_96,fp){var _98=_w[_96]||function(){};_w[_96]=function(){fp.apply(_w,arguments);_98.apply(_w,arguments);};};if(dojo.isIE){if(!dojo.config.afterOnLoad){document.write(""+"");}var _99=true;_95("onbeforeunload",function(){_w.setTimeout(function(){_99=false;},0);});_95("onunload",function(){if(_99){dojo.unloaded();}});try{document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:*","behavior:url(#default#VML)");}catch(e){}}else{_95("onbeforeunload",function(){dojo.unloaded();});}})();}(function(){var mp=dojo.config["modulePaths"];if(mp){for(var _9b in mp){dojo.registerModulePath(_9b,mp[_9b]);}}})();if(dojo.config.isDebug){dojo.require("dojo._firebug.firebug");}if(dojo.config.debugAtAllCosts){dojo.config.useXDomain=true;dojo.require("dojo._base._loader.loader_xd");dojo.require("dojo._base._loader.loader_debug");}if(!dojo._hasResource["dojo._base.lang"]){dojo._hasResource["dojo._base.lang"]=true;dojo.provide("dojo._base.lang");dojo.isString=function(it){return !!arguments.length&&it!=null&&(typeof it=="string"||it instanceof String);};dojo.isArray=function(it){return it&&(it instanceof Array||typeof it=="array");};dojo.isFunction=(function(){var _9e=function(it){return it&&(typeof it=="function"||it instanceof Function);};return dojo.isSafari?function(it){if(typeof it=="function"&&it=="[object NodeList]"){return false;}return _9e(it);}:_9e;})();dojo.isObject=function(it){return it!==undefined&&(it===null||typeof it=="object"||dojo.isArray(it)||dojo.isFunction(it));};dojo.isArrayLike=function(it){var d=dojo;return it&&it!==undefined&&!d.isString(it)&&!d.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(d.isArray(it)||isFinite(it.length));};dojo.isAlien=function(it){return it&&!dojo.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));};dojo.extend=function(_a5,_a6){for(var i=1,l=arguments.length;i2){return dojo._hitchArgs.apply(dojo,arguments);}if(!_b0){_b0=_af;_af=null;}if(dojo.isString(_b0)){_af=_af||dojo.global;if(!_af[_b0]){throw (["dojo.hitch: scope[\"",_b0,"\"] is null (scope=\"",_af,"\")"].join(""));}return function(){return _af[_b0].apply(_af,arguments||[]);};}return !_af?_b0:function(){return _b0.apply(_af,arguments||[]);};};dojo.delegate=dojo._delegate=function(obj,_b2){function TMP(){};TMP.prototype=obj;var tmp=new TMP();if(_b2){dojo.mixin(tmp,_b2);}return tmp;};dojo.partial=function(_b4){var arr=[null];return dojo.hitch.apply(dojo,arr.concat(dojo._toArray(arguments)));};dojo._toArray=function(obj,_b7,_b8){var arr=_b8||[];for(var x=_b7||0;x=0){this._fire();}return this;},_fire:function(){var _12b=this.chain;var _12c=this.fired;var res=this.results[_12c];var self=this;var cb=null;while((_12b.length>0)&&(this.paused==0)){var f=_12b.shift()[_12c];if(!f){continue;}try{res=f(res);_12c=((res instanceof Error)?1:0);if(res instanceof dojo.Deferred){cb=function(res){self._resback(res);self.paused--;if((self.paused==0)&&(self.fired>=0)){self._fire();}};this.paused++;}}catch(err){console.debug(err);_12c=1;res=err;}}this.fired=_12c;this.results[_12c]=res;if((cb)&&(this.paused)){res.addBoth(cb);}}});}if(!dojo._hasResource["dojo._base.json"]){dojo._hasResource["dojo._base.json"]=true;dojo.provide("dojo._base.json");dojo.fromJson=function(json){return eval("("+json+")");};dojo._escapeString=function(str){return ("\""+str.replace(/(["\\])/g,"\\$1")+"\"").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r");};dojo.toJsonIndentStr="\t";dojo.toJson=function(it,_135,_136){if(it===undefined){return "undefined";}var _137=typeof it;if(_137=="number"||_137=="boolean"){return it+"";}if(it===null){return "null";}if(dojo.isString(it)){return dojo._escapeString(it);}if(it.nodeType&&it.cloneNode){return "";}var _138=arguments.callee;var _139;_136=_136||"";var _13a=_135?_136+dojo.toJsonIndentStr:"";if(typeof it.__json__=="function"){_139=it.__json__();if(it!==_139){return _138(_139,_135,_13a);}}if(typeof it.json=="function"){_139=it.json();if(it!==_139){return _138(_139,_135,_13a);}}var sep=_135?" ":"";var _13c=_135?"\n":"";if(dojo.isArray(it)){var res=dojo.map(it,function(obj){var val=_138(obj,_135,_13a);if(typeof val!="string"){val="undefined";}return _13c+_13a+val;});return "["+res.join(","+sep)+_13c+_136+"]";}if(_137=="function"){return null;}var _140=[];for(var key in it){var _142;if(typeof key=="number"){_142="\""+key+"\"";}else{if(typeof key=="string"){_142=dojo._escapeString(key);}else{continue;}}val=_138(it[key],_135,_13a);if(typeof val!="string"){continue;}_140.push(_13c+_13a+_142+":"+sep+val);}return "{"+_140.join(","+sep)+_13c+_136+"}";};}if(!dojo._hasResource["dojo._base.array"]){dojo._hasResource["dojo._base.array"]=true;dojo.provide("dojo._base.array");(function(){var _143=function(arr,obj,cb){return [dojo.isString(arr)?arr.split(""):arr,obj||dojo.global,dojo.isString(cb)?new Function("item","index","array",cb):cb];};dojo.mixin(dojo,{indexOf:function(_147,_148,_149,_14a){var step=1,end=_147.length||0,i=0;if(_14a){i=end-1;step=end=-1;}if(_149!=undefined){i=_149;}if((_14a&&i>end)||i>=bits;t[x]=bits==4?17*c:c;});t.a=1;return t;};dojo.colorFromArray=function(a,obj){var t=obj||new dojo.Color();t._set(Number(a[0]),Number(a[1]),Number(a[2]),Number(a[3]));if(isNaN(t.a)){t.a=1;}return t.sanitize();};dojo.colorFromString=function(str,obj){var a=dojo.Color.named[str];return a&&dojo.colorFromArray(a,obj)||dojo.colorFromRgb(str,obj)||dojo.colorFromHex(str,obj);};}if(!dojo._hasResource["dojo._base"]){dojo._hasResource["dojo._base"]=true;dojo.provide("dojo._base");}if(!dojo._hasResource["dojo._base.window"]){dojo._hasResource["dojo._base.window"]=true;dojo.provide("dojo._base.window");dojo._gearsObject=function(){var _198;var _199;var _19a=dojo.getObject("google.gears");if(_19a){return _19a;}if(typeof GearsFactory!="undefined"){_198=new GearsFactory();}else{if(dojo.isIE){try{_198=new ActiveXObject("Gears.Factory");}catch(e){}}else{if(navigator.mimeTypes["application/x-googlegears"]){_198=document.createElement("object");_198.setAttribute("type","application/x-googlegears");_198.setAttribute("width",0);_198.setAttribute("height",0);_198.style.display="none";document.documentElement.appendChild(_198);}}}if(!_198){return null;}dojo.setObject("google.gears.factory",_198);return dojo.getObject("google.gears");};dojo.isGears=(!!dojo._gearsObject())||0;dojo.doc=window["document"]||null;dojo.body=function(){return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];};dojo.setContext=function(_19b,_19c){dojo.global=_19b;dojo.doc=_19c;};dojo._fireCallback=function(_19d,_19e,_19f){if(_19e&&dojo.isString(_19d)){_19d=_19e[_19d];}return _19d.apply(_19e,_19f||[]);};dojo.withGlobal=function(_1a0,_1a1,_1a2,_1a3){var rval;var _1a5=dojo.global;var _1a6=dojo.doc;try{dojo.setContext(_1a0,_1a0.document);rval=dojo._fireCallback(_1a1,_1a2,_1a3);}finally{dojo.setContext(_1a5,_1a6);}return rval;};dojo.withDoc=function(_1a7,_1a8,_1a9,_1aa){var rval;var _1ac=dojo.doc;try{dojo.doc=_1a7;rval=dojo._fireCallback(_1a8,_1a9,_1aa);}finally{dojo.doc=_1ac;}return rval;};}if(!dojo._hasResource["dojo._base.event"]){dojo._hasResource["dojo._base.event"]=true;dojo.provide("dojo._base.event");(function(){var del=(dojo._event_listener={add:function(node,name,fp){if(!node){return;}name=del._normalizeEventName(name);fp=del._fixCallback(name,fp);var _1b1=name;if(!dojo.isIE&&(name=="mouseenter"||name=="mouseleave")){var ofp=fp;name=(name=="mouseenter")?"mouseover":"mouseout";fp=function(e){if(!dojo.isDescendant(e.relatedTarget,node)){return ofp.call(this,e);}};}node.addEventListener(name,fp,false);return fp;},remove:function(node,_1b5,_1b6){if(node){node.removeEventListener(del._normalizeEventName(_1b5),_1b6,false);}},_normalizeEventName:function(name){return name.slice(0,2)=="on"?name.slice(2):name;},_fixCallback:function(name,fp){return name!="keypress"?fp:function(e){return fp.call(this,del._fixEvent(e,this));};},_fixEvent:function(evt,_1bc){switch(evt.type){case "keypress":del._setKeyChar(evt);break;}return evt;},_setKeyChar:function(evt){evt.keyChar=evt.charCode?String.fromCharCode(evt.charCode):"";}});dojo.fixEvent=function(evt,_1bf){return del._fixEvent(evt,_1bf);};dojo.stopEvent=function(evt){evt.preventDefault();evt.stopPropagation();};var _1c1=dojo._listener;dojo._connect=function(obj,_1c3,_1c4,_1c5,_1c6){var _1c7=obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener);var lid=!_1c7?0:(!_1c6?1:2),l=[dojo._listener,del,_1c1][lid];var h=l.add(obj,_1c3,dojo.hitch(_1c4,_1c5));return [obj,_1c3,h,lid];};dojo._disconnect=function(obj,_1cc,_1cd,_1ce){([dojo._listener,del,_1c1][_1ce]).remove(obj,_1cc,_1cd);};dojo.keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101,NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145};if(dojo.isIE){var _1cf=function(e,code){try{return (e.keyCode=code);}catch(e){return 0;}};var iel=dojo._listener;if(!dojo.config._allow_leaks){_1c1=iel=dojo._ie_listener={handlers:[],add:function(_1d3,_1d4,_1d5){_1d3=_1d3||dojo.global;var f=_1d3[_1d4];if(!f||!f._listeners){var d=dojo._getIeDispatcher();d.target=f&&(ieh.push(f)-1);d._listeners=[];f=_1d3[_1d4]=d;}return f._listeners.push(ieh.push(_1d5)-1);},remove:function(_1d9,_1da,_1db){var f=(_1d9||dojo.global)[_1da],l=f&&f._listeners;if(f&&l&&_1db--){delete ieh[l[_1db]];delete l[_1db];}}};var ieh=iel.handlers;}dojo.mixin(del,{add:function(node,_1df,fp){if(!node){return;}_1df=del._normalizeEventName(_1df);if(_1df=="onkeypress"){var kd=node.onkeydown;if(!kd||!kd._listeners||!kd._stealthKeydownHandle){var h=del.add(node,"onkeydown",del._stealthKeyDown);kd=node.onkeydown;kd._stealthKeydownHandle=h;kd._stealthKeydownRefs=1;}else{kd._stealthKeydownRefs++;}}return iel.add(node,_1df,del._fixCallback(fp));},remove:function(node,_1e4,_1e5){_1e4=del._normalizeEventName(_1e4);iel.remove(node,_1e4,_1e5);if(_1e4=="onkeypress"){var kd=node.onkeydown;if(--kd._stealthKeydownRefs<=0){iel.remove(node,"onkeydown",kd._stealthKeydownHandle);delete kd._stealthKeydownHandle;}}},_normalizeEventName:function(_1e7){return _1e7.slice(0,2)!="on"?"on"+_1e7:_1e7;},_nop:function(){},_fixEvent:function(evt,_1e9){if(!evt){var w=_1e9&&(_1e9.ownerDocument||_1e9.document||_1e9).parentWindow||window;evt=w.event;}if(!evt){return (evt);}evt.target=evt.srcElement;evt.currentTarget=(_1e9||evt.srcElement);evt.layerX=evt.offsetX;evt.layerY=evt.offsetY;var se=evt.srcElement,doc=(se&&se.ownerDocument)||document;var _1ed=((dojo.isIE<6)||(doc["compatMode"]=="BackCompat"))?doc.body:doc.documentElement;var _1ee=dojo._getIeDocumentElementOffset();evt.pageX=evt.clientX+dojo._fixIeBiDiScrollLeft(_1ed.scrollLeft||0)-_1ee.x;evt.pageY=evt.clientY+(_1ed.scrollTop||0)-_1ee.y;if(evt.type=="mouseover"){evt.relatedTarget=evt.fromElement;}if(evt.type=="mouseout"){evt.relatedTarget=evt.toElement;}evt.stopPropagation=del._stopPropagation;evt.preventDefault=del._preventDefault;return del._fixKeys(evt);},_fixKeys:function(evt){switch(evt.type){case "keypress":var c=("charCode" in evt?evt.charCode:evt.keyCode);if(c==10){c=0;evt.keyCode=13;}else{if(c==13||c==27){c=0;}else{if(c==3){c=99;}}}evt.charCode=c;del._setKeyChar(evt);break;}return evt;},_punctMap:{106:42,111:47,186:59,187:43,188:44,189:45,190:46,191:47,192:96,219:91,220:92,221:93,222:39},_stealthKeyDown:function(evt){var kp=evt.currentTarget.onkeypress;if(!kp||!kp._listeners){return;}var k=evt.keyCode;var _1f4=(k!=13)&&(k!=32)&&(k!=27)&&(k<48||k>90)&&(k<96||k>111)&&(k<186||k>192)&&(k<219||k>222);if(_1f4||evt.ctrlKey){var c=_1f4?0:k;if(evt.ctrlKey){if(k==3||k==13){return;}else{if(c>95&&c<106){c-=48;}else{if((!evt.shiftKey)&&(c>=65&&c<=90)){c+=32;}else{c=del._punctMap[c]||c;}}}}var faux=del._synthesizeEvent(evt,{type:"keypress",faux:true,charCode:c});kp.call(evt.currentTarget,faux);evt.cancelBubble=faux.cancelBubble;evt.returnValue=faux.returnValue;_1cf(evt,faux.keyCode);}},_stopPropagation:function(){this.cancelBubble=true;},_preventDefault:function(){this.bubbledKeyCode=this.keyCode;if(this.ctrlKey){_1cf(this,0);}this.returnValue=false;}});dojo.stopEvent=function(evt){evt=evt||window.event;del._stopPropagation.call(evt);del._preventDefault.call(evt);};}del._synthesizeEvent=function(evt,_1f9){var faux=dojo.mixin({},evt,_1f9);del._setKeyChar(faux);faux.preventDefault=function(){evt.preventDefault();};faux.stopPropagation=function(){evt.stopPropagation();};return faux;};if(dojo.isOpera){dojo.mixin(del,{_fixEvent:function(evt,_1fc){switch(evt.type){case "keypress":var c=evt.which;if(c==3){c=99;}c=((c<41)&&(!evt.shiftKey)?0:c);if((evt.ctrlKey)&&(!evt.shiftKey)&&(c>=65)&&(c<=90)){c+=32;}return del._synthesizeEvent(evt,{charCode:c});}return evt;}});}if(dojo.isSafari){dojo.mixin(del,{_fixEvent:function(evt,_1ff){switch(evt.type){case "keypress":var c=evt.charCode,s=evt.shiftKey,k=evt.keyCode;k=k||_203[evt.keyIdentifier]||0;if(evt.keyIdentifier=="Enter"){c=0;}else{if((evt.ctrlKey)&&(c>0)&&(c<27)){c+=96;}else{if(c==dojo.keys.SHIFT_TAB){c=dojo.keys.TAB;s=true;}else{c=(c>=32&&c<63232?c:0);}}}return del._synthesizeEvent(evt,{charCode:c,shiftKey:s,keyCode:k});}return evt;}});dojo.mixin(dojo.keys,{SHIFT_TAB:25,UP_ARROW:63232,DOWN_ARROW:63233,LEFT_ARROW:63234,RIGHT_ARROW:63235,F1:63236,F2:63237,F3:63238,F4:63239,F5:63240,F6:63241,F7:63242,F8:63243,F9:63244,F10:63245,F11:63246,F12:63247,PAUSE:63250,DELETE:63272,HOME:63273,END:63275,PAGE_UP:63276,PAGE_DOWN:63277,INSERT:63302,PRINT_SCREEN:63248,SCROLL_LOCK:63249,NUM_LOCK:63289});var dk=dojo.keys,_203={"Up":dk.UP_ARROW,"Down":dk.DOWN_ARROW,"Left":dk.LEFT_ARROW,"Right":dk.RIGHT_ARROW,"PageUp":dk.PAGE_UP,"PageDown":dk.PAGE_DOWN};}})();if(dojo.isIE){dojo._ieDispatcher=function(args,_206){var ap=Array.prototype,h=dojo._ie_listener.handlers,c=args.callee,ls=c._listeners,t=h[c.target];var r=t&&t.apply(_206,args);for(var i in ls){if(!(i in ap)){h[ls[i]].apply(_206,args);}}return r;};dojo._getIeDispatcher=function(){return new Function(dojo._scopeName+"._ieDispatcher(arguments, this)");};dojo._event_listener._fixCallback=function(fp){var f=dojo._event_listener._fixEvent;return function(e){return fp.call(this,f(e,this));};};}}if(!dojo._hasResource["dojo._base.html"]){dojo._hasResource["dojo._base.html"]=true;dojo.provide("dojo._base.html");try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}if(dojo.isIE||dojo.isOpera){dojo.byId=function(id,doc){if(dojo.isString(id)){var _d=doc||dojo.doc;var te=_d.getElementById(id);if(te&&te.attributes.id.value==id){return te;}else{var eles=_d.all[id];if(!eles||!eles.length){return eles;}var i=0;while((te=eles[i++])){if(te.attributes.id.value==id){return te;}}}}else{return id;}};}else{dojo.byId=function(id,doc){return dojo.isString(id)?(doc||dojo.doc).getElementById(id):id;};}(function(){var d=dojo;var _21a=null;dojo.addOnUnload(function(){_21a=null;});dojo._destroyElement=function(node){node=d.byId(node);try{if(!_21a||_21a.ownerDocument!=node.ownerDocument){_21a=node.ownerDocument.createElement("div");}_21a.appendChild(node.parentNode?node.parentNode.removeChild(node):node);_21a.innerHTML="";}catch(e){}};dojo.isDescendant=function(node,_21d){try{node=d.byId(node);_21d=d.byId(_21d);while(node){if(node===_21d){return true;}node=node.parentNode;}}catch(e){}return false;};dojo.setSelectable=function(node,_21f){node=d.byId(node);if(d.isMozilla){node.style.MozUserSelect=_21f?"":"none";}else{if(d.isKhtml){node.style.KhtmlUserSelect=_21f?"auto":"none";}else{if(d.isIE){node.unselectable=_21f?"":"on";d.query("*",node).forEach(function(_220){_220.unselectable=_21f?"":"on";});}}}};var _221=function(node,ref){ref.parentNode.insertBefore(node,ref);return true;};var _224=function(node,ref){var pn=ref.parentNode;if(ref==pn.lastChild){pn.appendChild(node);}else{return _221(node,ref.nextSibling);}return true;};dojo.place=function(node,_229,_22a){if(!node||!_229||_22a===undefined){return false;}node=d.byId(node);_229=d.byId(_229);if(typeof _22a=="number"){var cn=_229.childNodes;if((_22a==0&&cn.length==0)||cn.length==_22a){_229.appendChild(node);return true;}if(_22a==0){return _221(node,_229.firstChild);}return _224(node,cn[_22a-1]);}switch(_22a.toLowerCase()){case "before":return _221(node,_229);case "after":return _224(node,_229);case "first":if(_229.firstChild){return _221(node,_229.firstChild);}default:_229.appendChild(node);return true;}};dojo.boxModel="content-box";if(d.isIE){var _dcm=document.compatMode;d.boxModel=_dcm=="BackCompat"||_dcm=="QuirksMode"||d.isIE<6?"border-box":"content-box";}var gcs;if(d.isSafari){gcs=function(node){var dv=node.ownerDocument.defaultView;var s=dv.getComputedStyle(node,null);if(!s&&node.style){node.style.display="";s=dv.getComputedStyle(node,null);}return s||{};};}else{if(d.isIE){gcs=function(node){return node.currentStyle;};}else{gcs=function(node){var dv=node.ownerDocument.defaultView;return dv.getComputedStyle(node,null);};}}dojo.getComputedStyle=gcs;if(!d.isIE){dojo._toPixelValue=function(_234,_235){return parseFloat(_235)||0;};}else{dojo._toPixelValue=function(_236,_237){if(!_237){return 0;}if(_237=="medium"){return 4;}if(_237.slice&&(_237.slice(-2)=="px")){return parseFloat(_237);}with(_236){var _238=style.left;var _239=runtimeStyle.left;runtimeStyle.left=currentStyle.left;try{style.left=_237;_237=style.pixelLeft;}catch(e){_237=0;}style.left=_238;runtimeStyle.left=_239;}return _237;};}var px=d._toPixelValue;dojo._getOpacity=d.isIE?function(node){try{return node.filters.alpha.opacity/100;}catch(e){return 1;}}:function(node){return gcs(node).opacity;};dojo._setOpacity=d.isIE?function(node,_23e){if(_23e==1){var _23f=/FILTER:[^;]*;?/i;node.style.cssText=node.style.cssText.replace(_23f,"");if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){i.style.cssText=i.style.cssText.replace(_23f,"");});}}else{var o="Alpha(Opacity="+_23e*100+")";node.style.filter=o;}if(node.nodeName.toLowerCase()=="tr"){d.query("> td",node).forEach(function(i){i.style.filter=o;});}return _23e;}:function(node,_244){return node.style.opacity=_244;};var _245={left:true,top:true};var _246=/margin|padding|width|height|max|min|offset/;var _247=function(node,type,_24a){type=type.toLowerCase();if(d.isIE&&_24a=="auto"){if(type=="height"){return node.offsetHeight;}if(type=="width"){return node.offsetWidth;}}if(!(type in _245)){_245[type]=_246.test(type);}return _245[type]?px(node,_24a):_24a;};var _24b=d.isIE?"styleFloat":"cssFloat";var _24c={"cssFloat":_24b,"styleFloat":_24b,"float":_24b};dojo.style=function(node,_24e,_24f){var n=d.byId(node),args=arguments.length,op=(_24e=="opacity");_24e=_24c[_24e]||_24e;if(args==3){return op?d._setOpacity(n,_24f):n.style[_24e]=_24f;}if(args==2&&op){return d._getOpacity(n);}var s=gcs(n);if(args==2&&!d.isString(_24e)){for(var x in _24e){d.style(node,x,_24e[x]);}return s;}return (args==1)?s:_247(n,_24e,s[_24e]);};dojo._getPadExtents=function(n,_256){var s=_256||gcs(n),l=px(n,s.paddingLeft),t=px(n,s.paddingTop);return {l:l,t:t,w:l+px(n,s.paddingRight),h:t+px(n,s.paddingBottom)};};dojo._getBorderExtents=function(n,_25b){var ne="none",s=_25b||gcs(n),bl=(s.borderLeftStyle!=ne?px(n,s.borderLeftWidth):0),bt=(s.borderTopStyle!=ne?px(n,s.borderTopWidth):0);return {l:bl,t:bt,w:bl+(s.borderRightStyle!=ne?px(n,s.borderRightWidth):0),h:bt+(s.borderBottomStyle!=ne?px(n,s.borderBottomWidth):0)};};dojo._getPadBorderExtents=function(n,_261){var s=_261||gcs(n),p=d._getPadExtents(n,s),b=d._getBorderExtents(n,s);return {l:p.l+b.l,t:p.t+b.t,w:p.w+b.w,h:p.h+b.h};};dojo._getMarginExtents=function(n,_266){var s=_266||gcs(n),l=px(n,s.marginLeft),t=px(n,s.marginTop),r=px(n,s.marginRight),b=px(n,s.marginBottom);if(d.isSafari&&(s.position!="absolute")){r=l;}return {l:l,t:t,w:l+r,h:t+b};};dojo._getMarginBox=function(node,_26d){var s=_26d||gcs(node),me=d._getMarginExtents(node,s);var l=node.offsetLeft-me.l,t=node.offsetTop-me.t;if(d.isMoz){var sl=parseFloat(s.left),st=parseFloat(s.top);if(!isNaN(sl)&&!isNaN(st)){l=sl,t=st;}else{var p=node.parentNode;if(p&&p.style){var pcs=gcs(p);if(pcs.overflow!="visible"){var be=d._getBorderExtents(p,pcs);l+=be.l,t+=be.t;}}}}else{if(d.isOpera){var p=node.parentNode;if(p){var be=d._getBorderExtents(p);l-=be.l,t-=be.t;}}}return {l:l,t:t,w:node.offsetWidth+me.w,h:node.offsetHeight+me.h};};dojo._getContentBox=function(node,_278){var s=_278||gcs(node),pe=d._getPadExtents(node,s),be=d._getBorderExtents(node,s),w=node.clientWidth,h;if(!w){w=node.offsetWidth,h=node.offsetHeight;}else{h=node.clientHeight,be.w=be.h=0;}if(d.isOpera){pe.l+=be.l;pe.t+=be.t;}return {l:pe.l,t:pe.t,w:w-pe.w-be.w,h:h-pe.h-be.h};};dojo._getBorderBox=function(node,_27f){var s=_27f||gcs(node),pe=d._getPadExtents(node,s),cb=d._getContentBox(node,s);return {l:cb.l-pe.l,t:cb.t-pe.t,w:cb.w+pe.w,h:cb.h+pe.h};};dojo._setBox=function(node,l,t,w,h,u){u=u||"px";var s=node.style;if(!isNaN(l)){s.left=l+u;}if(!isNaN(t)){s.top=t+u;}if(w>=0){s.width=w+u;}if(h>=0){s.height=h+u;}};dojo._usesBorderBox=function(node){var n=node.tagName;return d.boxModel=="border-box"||n=="TABLE"||n=="BUTTON";};dojo._setContentSize=function(node,_28d,_28e,_28f){if(d._usesBorderBox(node)){var pb=d._getPadBorderExtents(node,_28f);if(_28d>=0){_28d+=pb.w;}if(_28e>=0){_28e+=pb.h;}}d._setBox(node,NaN,NaN,_28d,_28e);};dojo._setMarginBox=function(node,_292,_293,_294,_295,_296){var s=_296||gcs(node);var bb=d._usesBorderBox(node),pb=bb?_29a:d._getPadBorderExtents(node,s),mb=d._getMarginExtents(node,s);if(_294>=0){_294=Math.max(_294-pb.w-mb.w,0);}if(_295>=0){_295=Math.max(_295-pb.h-mb.h,0);}d._setBox(node,_292,_293,_294,_295);};var _29a={l:0,t:0,w:0,h:0};dojo.marginBox=function(node,box){var n=d.byId(node),s=gcs(n),b=box;return !b?d._getMarginBox(n,s):d._setMarginBox(n,b.l,b.t,b.w,b.h,s);};dojo.contentBox=function(node,box){var n=dojo.byId(node),s=gcs(n),b=box;return !b?d._getContentBox(n,s):d._setContentSize(n,b.w,b.h,s);};var _2a6=function(node,prop){if(!(node=(node||0).parentNode)){return 0;}var val,_2aa=0,_b=d.body();while(node&&node.style){if(gcs(node).position=="fixed"){return 0;}val=node[prop];if(val){_2aa+=val-0;if(node==_b){break;}}node=node.parentNode;}return _2aa;};dojo._docScroll=function(){var _b=d.body(),_w=d.global,de=d.doc.documentElement;return {y:(_w.pageYOffset||de.scrollTop||_b.scrollTop||0),x:(_w.pageXOffset||d._fixIeBiDiScrollLeft(de.scrollLeft)||_b.scrollLeft||0)};};dojo._isBodyLtr=function(){return !("_bodyLtr" in d)?d._bodyLtr=gcs(d.body()).direction=="ltr":d._bodyLtr;};dojo._getIeDocumentElementOffset=function(){var de=d.doc.documentElement;return (d.isIE>=7)?{x:de.getBoundingClientRect().left,y:de.getBoundingClientRect().top}:{x:d._isBodyLtr()||window.parent==window?de.clientLeft:de.offsetWidth-de.clientWidth-de.clientLeft,y:de.clientTop};};dojo._fixIeBiDiScrollLeft=function(_2b0){var dd=d.doc;if(d.isIE&&!dojo._isBodyLtr()){var de=dd.compatMode=="BackCompat"?dd.body:dd.documentElement;return _2b0+de.clientWidth-de.scrollWidth;}return _2b0;};dojo._abs=function(node,_2b4){var _2b5=node.ownerDocument;var ret={x:0,y:0};var db=d.body();if(d.isIE||(d.isFF>=3)){var _2b8=node.getBoundingClientRect();var _2b9=(d.isIE)?d._getIeDocumentElementOffset():{x:0,y:0};ret.x=_2b8.left-_2b9.x;ret.y=_2b8.top-_2b9.y;}else{if(_2b5["getBoxObjectFor"]){var bo=_2b5.getBoxObjectFor(node),b=d._getBorderExtents(node);ret.x=bo.x-b.l-_2a6(node,"scrollLeft");ret.y=bo.y-b.t-_2a6(node,"scrollTop");}else{if(node["offsetParent"]){var _2bc;if(d.isSafari&&(gcs(node).position=="absolute")&&(node.parentNode==db)){_2bc=db;}else{_2bc=db.parentNode;}if(node.parentNode!=db){var nd=node;if(d.isOpera){nd=db;}ret.x-=_2a6(nd,"scrollLeft");ret.y-=_2a6(nd,"scrollTop");}var _2be=node;do{var n=_2be.offsetLeft;if(!d.isOpera||n>0){ret.x+=isNaN(n)?0:n;}var t=_2be.offsetTop;ret.y+=isNaN(t)?0:t;if(d.isSafari&&_2be!=node){var cs=gcs(_2be);ret.x+=px(_2be,cs.borderLeftWidth);ret.y+=px(_2be,cs.borderTopWidth);}_2be=_2be.offsetParent;}while((_2be!=_2bc)&&_2be);}else{if(node.x&&node.y){ret.x+=isNaN(node.x)?0:node.x;ret.y+=isNaN(node.y)?0:node.y;}}}}if(_2b4){var _2c2=d._docScroll();ret.y+=_2c2.y;ret.x+=_2c2.x;}return ret;};dojo.coords=function(node,_2c4){var n=d.byId(node),s=gcs(n),mb=d._getMarginBox(n,s);var abs=d._abs(n,_2c4);mb.x=abs.x;mb.y=abs.y;return mb;};var _2c9=function(name){switch(name.toLowerCase()){case "tabindex":return (d.isIE&&d.isIE<8)?"tabIndex":"tabindex";default:return name;}};var _2cb={colspan:"colSpan",enctype:"enctype",frameborder:"frameborder",method:"method",rowspan:"rowSpan",scrolling:"scrolling",shape:"shape",span:"span",type:"type",valuetype:"valueType"};dojo.hasAttr=function(node,name){var attr=d.byId(node).getAttributeNode(_2c9(name));return attr?attr.specified:false;};var _2cf={};var _ctr=0;var _2d1=dojo._scopeName+"attrid";dojo.attr=function(node,name,_2d4){var args=arguments.length;if(args==2&&!d.isString(name)){for(var x in name){d.attr(node,x,name[x]);}return;}node=d.byId(node);name=_2c9(name);if(args==3){if(d.isFunction(_2d4)){var _2d7=d.attr(node,_2d1);if(!_2d7){_2d7=_ctr++;d.attr(node,_2d1,_2d7);}if(!_2cf[_2d7]){_2cf[_2d7]={};}var h=_2cf[_2d7][name];if(h){d.disconnect(h);}else{try{delete node[name];}catch(e){}}_2cf[_2d7][name]=d.connect(node,name,_2d4);}else{if(typeof _2d4=="boolean"){node[name]=_2d4;}else{node.setAttribute(name,_2d4);}}return;}else{var prop=_2cb[name.toLowerCase()];if(prop){return node[prop];}else{var _2d4=node[name];return (typeof _2d4=="boolean"||typeof _2d4=="function")?_2d4:(d.hasAttr(node,name)?node.getAttribute(name):null);}}};dojo.removeAttr=function(node,name){d.byId(node).removeAttribute(_2c9(name));};})();dojo.hasClass=function(node,_2dd){return ((" "+dojo.byId(node).className+" ").indexOf(" "+_2dd+" ")>=0);};dojo.addClass=function(node,_2df){node=dojo.byId(node);var cls=node.className;if((" "+cls+" ").indexOf(" "+_2df+" ")<0){node.className=cls+(cls?" ":"")+_2df;}};dojo.removeClass=function(node,_2e2){node=dojo.byId(node);var t=dojo.trim((" "+node.className+" ").replace(" "+_2e2+" "," "));if(node.className!=t){node.className=t;}};dojo.toggleClass=function(node,_2e5,_2e6){if(_2e6===undefined){_2e6=!dojo.hasClass(node,_2e5);}dojo[_2e6?"addClass":"removeClass"](node,_2e5);};}if(!dojo._hasResource["dojo._base.NodeList"]){dojo._hasResource["dojo._base.NodeList"]=true;dojo.provide("dojo._base.NodeList");(function(){var d=dojo;var tnl=function(arr){arr.constructor=dojo.NodeList;dojo._mixin(arr,dojo.NodeList.prototype);return arr;};var _2ea=function(func,_2ec){return function(){var _a=arguments;var aa=d._toArray(_a,0,[null]);var s=this.map(function(i){aa[0]=i;return d[func].apply(d,aa);});return (_2ec||((_a.length>1)||!d.isString(_a[0])))?this:s;};};dojo.NodeList=function(){return tnl(Array.apply(null,arguments));};dojo.NodeList._wrap=tnl;dojo.extend(dojo.NodeList,{slice:function(){var a=dojo._toArray(arguments);return tnl(a.slice.apply(this,a));},splice:function(){var a=dojo._toArray(arguments);return tnl(a.splice.apply(this,a));},concat:function(){var a=dojo._toArray(arguments,0,[this]);return tnl(a.concat.apply([],a));},indexOf:function(_2f4,_2f5){return d.indexOf(this,_2f4,_2f5);},lastIndexOf:function(){return d.lastIndexOf.apply(d,d._toArray(arguments,0,[this]));},every:function(_2f6,_2f7){return d.every(this,_2f6,_2f7);},some:function(_2f8,_2f9){return d.some(this,_2f8,_2f9);},map:function(func,obj){return d.map(this,func,obj,d.NodeList);},forEach:function(_2fc,_2fd){d.forEach(this,_2fc,_2fd);return this;},coords:function(){return d.map(this,d.coords);},attr:_2ea("attr"),style:_2ea("style"),addClass:_2ea("addClass",true),removeClass:_2ea("removeClass",true),toggleClass:_2ea("toggleClass",true),connect:_2ea("connect",true),place:function(_2fe,_2ff){var item=d.query(_2fe)[0];return this.forEach(function(i){d.place(i,item,(_2ff||"last"));});},orphan:function(_302){var _303=_302?d._filterQueryResult(this,_302):this;_303.forEach(function(item){if(item.parentNode){item.parentNode.removeChild(item);}});return _303;},adopt:function(_305,_306){var item=this[0];return d.query(_305).forEach(function(ai){d.place(ai,item,_306||"last");});},query:function(_309){if(!_309){return this;}var ret=d.NodeList();this.forEach(function(item){d.query(_309,item).forEach(function(_30c){if(_30c!==undefined){ret.push(_30c);}});});return ret;},filter:function(_30d){var _30e=this;var _a=arguments;var r=d.NodeList();var rp=function(t){if(t!==undefined){r.push(t);}};if(d.isString(_30d)){_30e=d._filterQueryResult(this,_a[0]);if(_a.length==1){return _30e;}_a.shift();}d.forEach(d.filter(_30e,_a[0],_a[1]),rp);return r;},addContent:function(_313,_314){var ta=d.doc.createElement("span");if(d.isString(_313)){ta.innerHTML=_313;}else{ta.appendChild(_313);}if(_314===undefined){_314="last";}var ct=(_314=="first"||_314=="after")?"lastChild":"firstChild";this.forEach(function(item){var tn=ta.cloneNode(true);while(tn[ct]){d.place(tn[ct],item,_314);}});return this;},empty:function(){return this.forEach("item.innerHTML='';");},instantiate:function(_319,_31a){var c=d.isFunction(_319)?_319:d.getObject(_319);return this.forEach(function(i){new c(_31a||{},i);});}});d.forEach(["blur","focus","click","keydown","keypress","keyup","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup"],function(evt){var _oe="on"+evt;dojo.NodeList.prototype[_oe]=function(a,b){return this.connect(_oe,a,b);};});})();}if(!dojo._hasResource["dojo._base.query"]){dojo._hasResource["dojo._base.query"]=true;dojo.provide("dojo._base.query");(function(){var d=dojo;var _322=dojo.isIE?"children":"childNodes";var _323=false;var _324=function(_325){if(">~+".indexOf(_325.charAt(_325.length-1))>=0){_325+=" *";}_325+=" ";var ts=function(s,e){return d.trim(_325.slice(s,e));};var _329=[];var _32a=-1;var _32b=-1;var _32c=-1;var _32d=-1;var _32e=-1;var inId=-1;var _330=-1;var lc="";var cc="";var _333;var x=0;var ql=_325.length;var _336=null;var _cp=null;var _338=function(){if(_330>=0){var tv=(_330==x)?null:ts(_330,x).toLowerCase();_336[(">~+".indexOf(tv)<0)?"tag":"oper"]=tv;_330=-1;}};var _33a=function(){if(inId>=0){_336.id=ts(inId,x).replace(/\\/g,"");inId=-1;}};var _33b=function(){if(_32e>=0){_336.classes.push(ts(_32e+1,x).replace(/\\/g,""));_32e=-1;}};var _33c=function(){_33a();_338();_33b();};for(;lc=cc,cc=_325.charAt(x),x=0){if(cc=="]"){if(!_cp.attr){_cp.attr=ts(_32a+1,x);}else{_cp.matchFor=ts((_32c||_32a+1),x);}var cmf=_cp.matchFor;if(cmf){if((cmf.charAt(0)=="\"")||(cmf.charAt(0)=="'")){_cp.matchFor=cmf.substring(1,cmf.length-1);}}_336.attrs.push(_cp);_cp=null;_32a=_32c=-1;}else{if(cc=="="){var _33e=("|~^$*".indexOf(lc)>=0)?lc:"";_cp.type=_33e+cc;_cp.attr=ts(_32a+1,x-_33e.length);_32c=x+1;}}}else{if(_32b>=0){if(cc==")"){if(_32d>=0){_cp.value=ts(_32b+1,x);}_32d=_32b=-1;}}else{if(cc=="#"){_33c();inId=x+1;}else{if(cc=="."){_33c();_32e=x;}else{if(cc==":"){_33c();_32d=x;}else{if(cc=="["){_33c();_32a=x;_cp={};}else{if(cc=="("){if(_32d>=0){_cp={name:ts(_32d+1,x),value:null};_336.pseudos.push(_cp);}_32b=x;}else{if(cc==" "&&lc!=cc){_33c();if(_32d>=0){_336.pseudos.push({name:ts(_32d+1,x)});}_336.hasLoops=(_336.pseudos.length||_336.attrs.length||_336.classes.length);_336.query=ts(_333,x);_336.tag=(_336["oper"])?null:(_336.tag||"*");_329.push(_336);_336=null;}}}}}}}}}return _329;};var _33f={"*=":function(attr,_341){return "[contains(@"+attr+", '"+_341+"')]";},"^=":function(attr,_343){return "[starts-with(@"+attr+", '"+_343+"')]";},"$=":function(attr,_345){return "[substring(@"+attr+", string-length(@"+attr+")-"+(_345.length-1)+")='"+_345+"']";},"~=":function(attr,_347){return "[contains(concat(' ',@"+attr+",' '), ' "+_347+" ')]";},"|=":function(attr,_349){return "[contains(concat(' ',@"+attr+",' '), ' "+_349+"-')]";},"=":function(attr,_34b){return "[@"+attr+"='"+_34b+"']";}};var _34c=function(_34d,_34e,_34f,_350){d.forEach(_34e.attrs,function(attr){var _352;if(attr.type&&_34d[attr.type]){_352=_34d[attr.type](attr.attr,attr.matchFor);}else{if(attr.attr.length){_352=_34f(attr.attr);}}if(_352){_350(_352);}});};var _353=function(_354){var _355=".";var _356=_324(d.trim(_354));while(_356.length){var tqp=_356.shift();var _358;var _359="";if(tqp.oper==">"){_358="/";tqp=_356.shift();}else{if(tqp.oper=="~"){_358="/following-sibling::";tqp=_356.shift();}else{if(tqp.oper=="+"){_358="/following-sibling::";_359="[position()=1]";tqp=_356.shift();}else{_358="//";}}}_355+=_358+tqp.tag+_359;if(tqp.id){_355+="[@id='"+tqp.id+"'][1]";}d.forEach(tqp.classes,function(cn){var cnl=cn.length;var _35c=" ";if(cn.charAt(cnl-1)=="*"){_35c="";cn=cn.substr(0,cnl-1);}_355+="[contains(concat(' ',@class,' '), ' "+cn+_35c+"')]";});_34c(_33f,tqp,function(_35d){return "[@"+_35d+"]";},function(_35e){_355+=_35e;});}return _355;};var _35f={};var _360=function(path){if(_35f[path]){return _35f[path];}var doc=d.doc;var _363=_353(path);var tf=function(_365){var ret=[];var _367;try{_367=doc.evaluate(_363,_365,null,XPathResult.ANY_TYPE,null);}catch(e){console.debug("failure in exprssion:",_363,"under:",_365);console.debug(e);}var _368=_367.iterateNext();while(_368){ret.push(_368);_368=_367.iterateNext();}return ret;};return _35f[path]=tf;};var _369={};var _36a={};var _36b=function(_36c,_36d){if(!_36c){return _36d;}if(!_36d){return _36c;}return function(){return _36c.apply(window,arguments)&&_36d.apply(window,arguments);};};var _36e=function(root){var ret=[];var te,x=0,tret=root[_322];while(te=tret[x++]){if(te.nodeType==1){ret.push(te);}}return ret;};var _374=function(root,_376){var ret=[];var te=root;while(te=te.nextSibling){if(te.nodeType==1){ret.push(te);if(_376){break;}}}return ret;};var _379=function(_37a,_37b,_37c,idx){var nidx=idx+1;var _37f=(_37b.length==nidx);var tqp=_37b[idx];if(tqp.oper){var ecn=(tqp.oper==">")?_36e(_37a):_374(_37a,(tqp.oper=="+"));if(!ecn||!ecn.length){return;}nidx++;_37f=(_37b.length==nidx);var tf=_383(_37b[idx+1]);for(var x=0,ecnl=ecn.length,te;x=0);};},"^=":function(attr,_3a8){return function(elem){return (_3a0(elem,attr).indexOf(_3a8)==0);};},"$=":function(attr,_3ab){var tval=" "+_3ab;return function(elem){var ea=" "+_3a0(elem,attr);return (ea.lastIndexOf(_3ab)==(ea.length-_3ab.length));};},"~=":function(attr,_3b0){var tval=" "+_3b0+" ";return function(elem){var ea=" "+_3a0(elem,attr)+" ";return (ea.indexOf(tval)>=0);};},"|=":function(attr,_3b5){var _3b6=" "+_3b5+"-";return function(elem){var ea=" "+(elem.getAttribute(attr,2)||"");return ((ea==_3b5)||(ea.indexOf(_3b6)==0));};},"=":function(attr,_3ba){return function(elem){return (_3a0(elem,attr)==_3ba);};}};var _3bc={"first-child":function(name,_3be){return function(elem){if(elem.nodeType!=1){return false;}var fc=elem.previousSibling;while(fc&&(fc.nodeType!=1)){fc=fc.previousSibling;}return (!fc);};},"last-child":function(name,_3c2){return function(elem){if(elem.nodeType!=1){return false;}var nc=elem.nextSibling;while(nc&&(nc.nodeType!=1)){nc=nc.nextSibling;}return (!nc);};},"empty":function(name,_3c6){return function(elem){var cn=elem.childNodes;var cnl=elem.childNodes.length;for(var x=cnl-1;x>=0;x--){var nt=cn[x].nodeType;if((nt==1)||(nt==3)){return false;}}return true;};},"contains":function(name,_3cd){return function(elem){return (elem.innerHTML.indexOf(_3cd)>=0);};},"not":function(name,_3d0){var ntf=_383(_324(_3d0)[0]);return function(elem){return (!ntf(elem));};},"nth-child":function(name,_3d4){var pi=parseInt;if(_3d4=="odd"){return function(elem){return (((_395(elem))%2)==1);};}else{if((_3d4=="2n")||(_3d4=="even")){return function(elem){return ((_395(elem)%2)==0);};}else{if(_3d4.indexOf("0n+")==0){var _3d8=pi(_3d4.substr(3));return function(elem){return (elem.parentNode[_322][_3d8-1]===elem);};}else{if((_3d4.indexOf("n+")>0)&&(_3d4.length>3)){var _3da=_3d4.split("n+",2);var pred=pi(_3da[0]);var idx=pi(_3da[1]);return function(elem){return ((_395(elem)%pred)==idx);};}else{if(_3d4.indexOf("n")==-1){var _3d8=pi(_3d4);return function(elem){return (_395(elem)==_3d8);};}}}}}}};var _3df=(d.isIE)?function(cond){var clc=cond.toLowerCase();return function(elem){return elem[cond]||elem[clc];};}:function(cond){return function(elem){return (elem&&elem.getAttribute&&elem.hasAttribute(cond));};};var _394=function(_3e5){var _3e6=(_36a[_3e5.query]||_369[_3e5.query]);if(_3e6){return _3e6;}var ff=null;if(_3e5.id){if(_3e5.tag!="*"){ff=_36b(ff,function(elem){return (elem.tagName.toLowerCase()==_3e5.tag);});}}d.forEach(_3e5.classes,function(_3e9,idx,arr){var _3ec=_3e9.charAt(_3e9.length-1)=="*";if(_3ec){_3e9=_3e9.substr(0,_3e9.length-1);}var re=new RegExp("(?:^|\\s)"+_3e9+(_3ec?".*":"")+"(?:\\s|$)");ff=_36b(ff,function(elem){return re.test(elem.className);});ff.count=idx;});d.forEach(_3e5.pseudos,function(_3ef){if(_3bc[_3ef.name]){ff=_36b(ff,_3bc[_3ef.name](_3ef.name,_3ef.value));}});_34c(_3a3,_3e5,_3df,function(_3f0){ff=_36b(ff,_3f0);});if(!ff){ff=function(){return true;};}return _36a[_3e5.query]=ff;};var _3f1={};var _388=function(_3f2,root){var fHit=_3f1[_3f2.query];if(fHit){return fHit;}if(_3f2.id&&!_3f2.hasLoops&&!_3f2.tag){return _3f1[_3f2.query]=function(root){return [d.byId(_3f2.id)];};}var _3f6=_394(_3f2);var _3f7;if(_3f2.tag&&_3f2.id&&!_3f2.hasLoops){_3f7=function(root){var te=d.byId(_3f2.id);if(_3f6(te)){return [te];}};}else{var tret;if(!_3f2.hasLoops){_3f7=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_3f2.tag);while(te=tret[x++]){ret.push(te);}return ret;};}else{_3f7=function(root){var ret=[];var te,x=0,tret=root.getElementsByTagName(_3f2.tag);while(te=tret[x++]){if(_3f6(te)){ret.push(te);}}return ret;};}}return _3f1[_3f2.query]=_3f7;};var _403={};var _404={"*":d.isIE?function(root){return root.all;}:function(root){return root.getElementsByTagName("*");},"~":_374,"+":function(root){return _374(root,true);},">":_36e};var _408=function(_409){var _40a=_324(d.trim(_409));if(_40a.length==1){var tt=_388(_40a[0]);tt.nozip=true;return tt;}var sqf=function(root){var _40e=_40a.slice(0);var _40f;if(_40e[0].oper==">"){_40f=[root];}else{_40f=_388(_40e.shift())(root);}return _389(_40f,_40e);};return sqf;};var _410=((document["evaluate"]&&!d.isSafari)?function(_411){var _412=_411.split(" ");if((document["evaluate"])&&(_411.indexOf(":")==-1)&&(_411.indexOf("+")==-1)){if(((_412.length>2)&&(_411.indexOf(">")==-1))||(_412.length>3)||(_411.indexOf("[")>=0)||((1==_412.length)&&(0<=_411.indexOf(".")))){return _360(_411);}}return _408(_411);}:_408);var _413=function(_414){var qcz=_414.charAt(0);if(d.doc["querySelectorAll"]&&((!d.isSafari)||(d.isSafari>3.1))&&(">+~".indexOf(qcz)==-1)){return function(root){var r=root.querySelectorAll(_414);r.nozip=true;return r;};}if(_404[_414]){return _404[_414];}if(0>_414.indexOf(",")){return _404[_414]=_410(_414);}else{var _418=_414.split(/\s*,\s*/);var tf=function(root){var _41b=0;var ret=[];var tp;while(tp=_418[_41b++]){ret=ret.concat(_410(tp,tp.indexOf(" "))(root));}return ret;};return _404[_414]=tf;}};var _41e=0;var _zip=function(arr){if(arr&&arr.nozip){return d.NodeList._wrap(arr);}var ret=new d.NodeList();if(!arr){return ret;}if(arr[0]){ret.push(arr[0]);}if(arr.length<2){return ret;}_41e++;arr[0]["_zipIdx"]=_41e;for(var x=1,te;te=arr[x];x++){if(arr[x]["_zipIdx"]!=_41e){ret.push(te);}te["_zipIdx"]=_41e;}return ret;};d.query=function(_424,root){if(_424.constructor==d.NodeList){return _424;}if(!d.isString(_424)){return new d.NodeList(_424);}if(d.isString(root)){root=d.byId(root);}return _zip(_413(_424)(root||d.doc));};d.query.pseudos=_3bc;d._filterQueryResult=function(_426,_427){var tnl=new d.NodeList();var ff=(_427)?_383(_324(_427)[0]):function(){return true;};for(var x=0,te;te=_426[x];x++){if(ff(te)){tnl.push(te);}}return tnl;};})();}if(!dojo._hasResource["dojo._base.xhr"]){dojo._hasResource["dojo._base.xhr"]=true;dojo.provide("dojo._base.xhr");(function(){var _d=dojo;function setValue(obj,name,_42f){var val=obj[name];if(_d.isString(val)){obj[name]=[val,_42f];}else{if(_d.isArray(val)){val.push(_42f);}else{obj[name]=_42f;}}};dojo.formToObject=function(_431){var ret={};var iq="input:not([type=file]):not([type=submit]):not([type=image]):not([type=reset]):not([type=button]), select, textarea";_d.query(iq,_431).filter(function(node){return !node.disabled&&node.name;}).forEach(function(item){var _in=item.name;var type=(item.type||"").toLowerCase();if(type=="radio"||type=="checkbox"){if(item.checked){setValue(ret,_in,item.value);}}else{if(item.multiple){ret[_in]=[];_d.query("option",item).forEach(function(opt){if(opt.selected){setValue(ret,_in,opt.value);}});}else{setValue(ret,_in,item.value);if(type=="image"){ret[_in+".x"]=ret[_in+".y"]=ret[_in].x=ret[_in].y=0;}}}});return ret;};dojo.objectToQuery=function(map){var enc=encodeURIComponent;var _43b=[];var _43c={};for(var name in map){var _43e=map[name];if(_43e!=_43c[name]){var _43f=enc(name)+"=";if(_d.isArray(_43e)){for(var i=0;i<_43e.length;i++){_43b.push(_43f+enc(_43e[i]));}}else{_43b.push(_43f+enc(_43e));}}}return _43b.join("&");};dojo.formToQuery=function(_441){return _d.objectToQuery(_d.formToObject(_441));};dojo.formToJson=function(_442,_443){return _d.toJson(_d.formToObject(_442),_443);};dojo.queryToObject=function(str){var ret={};var qp=str.split("&");var dec=decodeURIComponent;_d.forEach(qp,function(item){if(item.length){var _449=item.split("=");var name=dec(_449.shift());var val=dec(_449.join("="));if(_d.isString(ret[name])){ret[name]=[ret[name]];}if(_d.isArray(ret[name])){ret[name].push(val);}else{ret[name]=val;}}});return ret;};dojo._blockAsync=false;dojo._contentHandlers={"text":function(xhr){return xhr.responseText;},"json":function(xhr){if(!dojo.config.usePlainJson){console.warn("Consider using mimetype:text/json-comment-filtered"+" to avoid potential security issues with JSON endpoints"+" (use djConfig.usePlainJson=true to turn off this message)");}return (xhr.status==204)?undefined:_d.fromJson(xhr.responseText);},"json-comment-filtered":function(xhr){var _44f=xhr.responseText;var _450=_44f.indexOf("/*");var _451=_44f.lastIndexOf("*/");if(_450==-1||_451==-1){throw new Error("JSON was not comment filtered");}return (xhr.status==204)?undefined:_d.fromJson(_44f.substring(_450+2,_451));},"javascript":function(xhr){return _d.eval(xhr.responseText);},"xml":function(xhr){var _454=xhr.responseXML;if(_d.isIE&&(!_454||window.location.protocol=="file:")){_d.forEach(["MSXML2","Microsoft","MSXML","MSXML3"],function(_455){try{var dom=new ActiveXObject(_455+".XMLDOM");dom.async=false;dom.loadXML(xhr.responseText);_454=dom;}catch(e){}});}return _454;}};dojo._contentHandlers["json-comment-optional"]=function(xhr){var _458=_d._contentHandlers;try{return _458["json-comment-filtered"](xhr);}catch(e){return _458["json"](xhr);}};dojo._ioSetArgs=function(args,_45a,_45b,_45c){var _45d={args:args,url:args.url};var _45e=null;if(args.form){var form=_d.byId(args.form);var _460=form.getAttributeNode("action");_45d.url=_45d.url||(_460?_460.value:null);_45e=_d.formToObject(form);}var _461=[{}];if(_45e){_461.push(_45e);}if(args.content){_461.push(args.content);}if(args.preventCache){_461.push({"dojo.preventCache":new Date().valueOf()});}_45d.query=_d.objectToQuery(_d.mixin.apply(null,_461));_45d.handleAs=args.handleAs||"text";var d=new _d.Deferred(_45a);d.addCallbacks(_45b,function(_463){return _45c(_463,d);});var ld=args.load;if(ld&&_d.isFunction(ld)){d.addCallback(function(_465){return ld.call(args,_465,_45d);});}var err=args.error;if(err&&_d.isFunction(err)){d.addErrback(function(_467){return err.call(args,_467,_45d);});}var _468=args.handle;if(_468&&_d.isFunction(_468)){d.addBoth(function(_469){return _468.call(args,_469,_45d);});}d.ioArgs=_45d;return d;};var _46a=function(dfd){dfd.canceled=true;var xhr=dfd.ioArgs.xhr;var _at=typeof xhr.abort;if(_at=="function"||_at=="unknown"){xhr.abort();}var err=new Error("xhr cancelled");err.dojoType="cancel";return err;};var _46f=function(dfd){return _d._contentHandlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);};var _471=function(_472,dfd){console.debug(_472);return _472;};var _474=function(args){var dfd=_d._ioSetArgs(args,_46a,_46f,_471);dfd.ioArgs.xhr=_d._xhrObj(dfd.ioArgs.args);return dfd;};var _477=null;var _478=[];var _479=function(){var now=(new Date()).getTime();if(!_d._blockAsync){for(var i=0,tif;i<_478.length&&(tif=_478[i]);i++){var dfd=tif.dfd;try{if(!dfd||dfd.canceled||!tif.validCheck(dfd)){_478.splice(i--,1);}else{if(tif.ioCheck(dfd)){_478.splice(i--,1);tif.resHandle(dfd);}else{if(dfd.startTime){if(dfd.startTime+(dfd.ioArgs.args.timeout||0)0){setTimeout(_p,de);return _t;}_p();return _t;},_play:function(_4ae){var _t=this;_t._startTime=new Date().valueOf();if(_t._paused){_t._startTime-=_t.duration*_t._percent;}_t._endTime=_t._startTime+_t.duration;_t._active=true;_t._paused=false;var _4b0=_t.curve.getValue(_t._percent);if(!_t._percent){if(!_t._startRepeatCount){_t._startRepeatCount=_t.repeat;}_t._fire("onBegin",[_4b0]);}_t._fire("onPlay",[_4b0]);_t._cycle();return _t;},pause:function(){this._stopTimer();if(!this._active){return this;}this._paused=true;this._fire("onPause",[this.curve.getValue(this._percent)]);return this;},gotoPercent:function(_4b1,_4b2){this._stopTimer();this._active=this._paused=true;this._percent=_4b1;if(_4b2){this.play();}return this;},stop:function(_4b3){if(!this._timer){return this;}this._stopTimer();if(_4b3){this._percent=1;}this._fire("onStop",[this.curve.getValue(this._percent)]);this._active=this._paused=false;return this;},status:function(){if(this._active){return this._paused?"paused":"playing";}return "stopped";},_cycle:function(){var _t=this;if(_t._active){var curr=new Date().valueOf();var step=(curr-_t._startTime)/(_t._endTime-_t._startTime);if(step>=1){step=1;}_t._percent=step;if(_t.easing){step=_t.easing(step);}_t._fire("onAnimate",[_t.curve.getValue(step)]);if(_t._percent<1){_t._startTimer();}else{_t._active=false;if(_t.repeat>0){_t.repeat--;_t.play(null,true);}else{if(_t.repeat==-1){_t.play(null,true);}else{if(_t._startRepeatCount){_t.repeat=_t._startRepeatCount;_t._startRepeatCount=0;}}}_t._percent=0;_t._fire("onEnd");_t._stopTimer();}}return _t;}});var ctr=0;var _4b8=[];var _4b9={run:function(){}};var _4ba=null;dojo._Animation.prototype._startTimer=function(){if(!this._timer){this._timer=d.connect(_4b9,"run",this,"_cycle");ctr++;}if(!_4ba){_4ba=setInterval(d.hitch(_4b9,"run"),this.rate);}};dojo._Animation.prototype._stopTimer=function(){if(this._timer){d.disconnect(this._timer);this._timer=null;ctr--;}if(ctr<=0){clearInterval(_4ba);_4ba=null;ctr=0;}};var _4bb=(d.isIE)?function(node){var ns=node.style;if(!ns.zoom.length&&d.style(node,"zoom")=="normal"){ns.zoom="1";}if(!ns.width.length&&d.style(node,"width")=="auto"){ns.width="auto";}}:function(){};dojo._fade=function(args){args.node=d.byId(args.node);var _4bf=d.mixin({properties:{}},args);var _4c0=(_4bf.properties.opacity={});_4c0.start=!("start" in _4bf)?function(){return Number(d.style(_4bf.node,"opacity"));}:_4bf.start;_4c0.end=_4bf.end;var anim=d.animateProperty(_4bf);d.connect(anim,"beforeBegin",d.partial(_4bb,_4bf.node));return anim;};dojo.fadeIn=function(args){return d._fade(d.mixin({end:1},args));};dojo.fadeOut=function(args){return d._fade(d.mixin({end:0},args));};dojo._defaultEasing=function(n){return 0.5+((Math.sin((n+1.5)*Math.PI))/2);};var _4c5=function(_4c6){this._properties=_4c6;for(var p in _4c6){var prop=_4c6[p];if(prop.start instanceof d.Color){prop.tempColor=new d.Color();}}this.getValue=function(r){var ret={};for(var p in this._properties){var prop=this._properties[p];var _4cd=prop.start;if(_4cd instanceof d.Color){ret[p]=d.blendColors(_4cd,prop.end,r,prop.tempColor).toCss();}else{if(!d.isArray(_4cd)){ret[p]=((prop.end-_4cd)*r)+_4cd+(p!="opacity"?prop.units||"px":"");}}}return ret;};};dojo.animateProperty=function(args){args.node=d.byId(args.node);if(!args.easing){args.easing=d._defaultEasing;}var anim=new d._Animation(args);d.connect(anim,"beforeBegin",anim,function(){var pm={};for(var p in this.properties){if(p=="width"||p=="height"){this.node.display="block";}var prop=this.properties[p];prop=pm[p]=d.mixin({},(d.isObject(prop)?prop:{end:prop}));if(d.isFunction(prop.start)){prop.start=prop.start();}if(d.isFunction(prop.end)){prop.end=prop.end();}var _4d3=(p.toLowerCase().indexOf("color")>=0);function getStyle(node,p){var v=({height:node.offsetHeight,width:node.offsetWidth})[p];if(v!==undefined){return v;}v=d.style(node,p);return (p=="opacity")?Number(v):(_4d3?v:parseFloat(v));};if(!("end" in prop)){prop.end=getStyle(this.node,p);}else{if(!("start" in prop)){prop.start=getStyle(this.node,p);}}if(_4d3){prop.start=new d.Color(prop.start);prop.end=new d.Color(prop.end);}else{prop.start=(p=="opacity")?Number(prop.start):parseFloat(prop.start);}}this.curve=new _4c5(pm);});d.connect(anim,"onAnimate",anim,function(_4d7){for(var s in _4d7){d.style(this.node,s,_4d7[s]);}});return anim;};dojo.anim=function(node,_4da,_4db,_4dc,_4dd,_4de){return d.animateProperty({node:node,duration:_4db||d._Animation.prototype.duration,properties:_4da,easing:_4dc,onEnd:_4dd}).play(_4de||0);};})();}if(!dojo._hasResource["dojo._base.browser"]){dojo._hasResource["dojo._base.browser"]=true;dojo.provide("dojo._base.browser");if(dojo.config.require){dojo.forEach(dojo.config.require,"dojo['require'](item);");}}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_4df,_4e0,_4e1){_4e1=dojo.i18n.normalizeLocale(_4e1);var _4e2=_4e1.split("-");var _4e3=[_4df,"nls",_4e0].join(".");var _4e4=dojo._loadedModules[_4e3];if(_4e4){var _4e5;for(var i=_4e2.length;i>0;i--){var loc=_4e2.slice(0,i).join("_");if(_4e4[loc]){_4e5=_4e4[loc];break;}}if(!_4e5){_4e5=_4e4.ROOT;}if(_4e5){var _4e8=function(){};_4e8.prototype=_4e5;return new _4e8();}}throw new Error("Bundle not found: "+_4e0+" in "+_4df+" , locale="+_4e1);};dojo.i18n.normalizeLocale=function(_4e9){var _4ea=_4e9?_4e9.toLowerCase():dojo.locale;if(_4ea=="root"){_4ea="ROOT";}return _4ea;};dojo.i18n._requireLocalization=function(_4eb,_4ec,_4ed,_4ee){var _4ef=dojo.i18n.normalizeLocale(_4ed);var _4f0=[_4eb,"nls",_4ec].join(".");var _4f1="";if(_4ee){var _4f2=_4ee.split(",");for(var i=0;i<_4f2.length;i++){if(_4ef.indexOf(_4f2[i])==0){if(_4f2[i].length>_4f1.length){_4f1=_4f2[i];}}}if(!_4f1){_4f1="ROOT";}}var _4f4=_4ee?_4f1:_4ef;var _4f5=dojo._loadedModules[_4f0];var _4f6=null;if(_4f5){if(dojo.config.localizationComplete&&_4f5._built){return;}var _4f7=_4f4.replace(/-/g,"_");var _4f8=_4f0+"."+_4f7;_4f6=dojo._loadedModules[_4f8];}if(!_4f6){_4f5=dojo["provide"](_4f0);var syms=dojo._getModuleSymbols(_4eb);var _4fa=syms.concat("nls").join("/");var _4fb;dojo.i18n._searchLocalePath(_4f4,_4ee,function(loc){var _4fd=loc.replace(/-/g,"_");var _4fe=_4f0+"."+_4fd;var _4ff=false;if(!dojo._loadedModules[_4fe]){dojo["provide"](_4fe);var _500=[_4fa];if(loc!="ROOT"){_500.push(loc);}_500.push(_4ec);var _501=_500.join("/")+".js";_4ff=dojo._loadPath(_501,null,function(hash){var _503=function(){};_503.prototype=_4fb;_4f5[_4fd]=new _503();for(var j in hash){_4f5[_4fd][j]=hash[j];}});}else{_4ff=true;}if(_4ff&&_4f5[_4fd]){_4fb=_4f5[_4fd];}else{_4f5[_4fd]=_4fb;}if(_4ee){return true;}});}if(_4ee&&_4ef!=_4f1){_4f5[_4ef.replace(/-/g,"_")]=_4f5[_4f1.replace(/-/g,"_")];}};(function(){var _505=dojo.config.extraLocale;if(_505){if(!_505 instanceof Array){_505=[_505];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_509,_50a){req(m,b,_509,_50a);if(_509){return;}for(var i=0;i<_505.length;i++){req(m,b,_505[i],_50a);}};}})();dojo.i18n._searchLocalePath=function(_50c,down,_50e){_50c=dojo.i18n.normalizeLocale(_50c);var _50f=_50c.split("-");var _510=[];for(var i=_50f.length;i>0;i--){_510.push(_50f.slice(0,i).join("-"));}_510.push(false);if(down){_510.reverse();}for(var j=_510.length-1;j>=0;j--){var loc=_510[j]||"ROOT";var stop=_50e(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_515,_516){function preload(_517){_517=dojo.i18n.normalizeLocale(_517);dojo.i18n._searchLocalePath(_517,true,function(loc){for(var i=0;i<_516.length;i++){if(_516[i]==loc){dojo["require"](_515+"_"+loc);return true;}}return false;});};preload();var _51a=dojo.config.extraLocale||[];for(var i=0;i<_51a.length;i++){preload(_51a[i]);}};}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(str,_52c){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_52c&&_52c.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_530){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i_546){var _54a=Math.pow(10,_546);if(_547>0){_54a*=10/_547;_546++;}_545=Math.round(_545*_54a)/_54a;_548=String(_545).split(".");_549=(_548[1]&&_548[1].length)||0;if(_549>_546){_548[1]=_548[1].substr(0,_546);_545=Number(_548.join("."));}}return _545;};dojo.number._formatAbsolute=function(_54b,_54c,_54d){_54d=_54d||{};if(_54d.places===true){_54d.places=0;}if(_54d.places===Infinity){_54d.places=6;}var _54e=_54c.split(".");var _54f=(_54d.places>=0)?_54d.places:(_54e[1]&&_54e[1].length)||0;if(!(_54d.round<0)){_54b=dojo.number.round(_54b,_54f,_54d.round);}var _550=String(Math.abs(_54b)).split(".");var _551=_550[1]||"";if(_54d.places){_550[1]=dojo.string.pad(_551.substr(0,_54d.places),_54d.places,"0",true);}else{if(_54e[1]&&_54d.places!==0){var pad=_54e[1].lastIndexOf("0")+1;if(pad>_551.length){_550[1]=dojo.string.pad(_551,pad,"0",true);}var _553=_54e[1].length;if(_553<_551.length){_550[1]=_551.substr(0,_553);}}else{if(_550[1]){_550.pop();}}}var _554=_54e[0].replace(",","");pad=_554.indexOf("0");if(pad!=-1){pad=_554.length-pad;if(pad>_550[0].length){_550[0]=dojo.string.pad(_550[0],pad);}if(_554.indexOf("#")==-1){_550[0]=_550[0].substr(_550[0].length-pad);}}var _555=_54e[0].lastIndexOf(",");var _556,_557;if(_555!=-1){_556=_54e[0].length-_555-1;var _558=_54e[0].substr(0,_555);_555=_558.lastIndexOf(",");if(_555!=-1){_557=_558.length-_555-1;}}var _559=[];for(var _55a=_550[0];_55a;){var off=_55a.length-_556;_559.push((off>0)?_55a.substr(off):_55a);_55a=(off>0)?_55a.slice(0,off):"";if(_557){_556=_557;delete _557;}}_550[0]=_559.reverse().join(_54d.group||",");return _550.join(_54d.decimal||".");};dojo.number.regexp=function(_55c){return dojo.number._parseInfo(_55c).regexp;};dojo.number._parseInfo=function(_55d){_55d=_55d||{};var _55e=dojo.i18n.normalizeLocale(_55d.locale);var _55f=dojo.i18n.getLocalization("dojo.cldr","number",_55e);var _560=_55d.pattern||_55f[(_55d.type||"decimal")+"Format"];var _561=_55f.group;var _562=_55f.decimal;var _563=1;if(_560.indexOf("%")!=-1){_563/=100;}else{if(_560.indexOf("‰")!=-1){_563/=1000;}else{var _564=_560.indexOf("¤")!=-1;if(_564){_561=_55f.currencyGroup||_561;_562=_55f.currencyDecimal||_562;}}}var _565=_560.split(";");if(_565.length==1){_565.push("-"+_565[0]);}var re=dojo.regexp.buildGroupRE(_565,function(_567){_567="(?:"+dojo.regexp.escapeString(_567,".")+")";return _567.replace(dojo.number._numberPatternRE,function(_568){var _569={signed:false,separator:_55d.strict?_561:[_561,""],fractional:_55d.fractional,decimal:_562,exponent:false};var _56a=_568.split(".");var _56b=_55d.places;if(_56a.length==1||_56b===0){_569.fractional=false;}else{if(_56b===undefined){_56b=_56a[1].lastIndexOf("0")+1;}if(_56b&&_55d.fractional==undefined){_569.fractional=true;}if(!_55d.places&&(_56b<_56a[1].length)){_56b+=","+_56a[1].length;}_569.places=_56b;}var _56c=_56a[0].split(",");if(_56c.length>1){_569.groupSize=_56c.pop().length;if(_56c.length>1){_569.groupSize2=_56c.pop().length;}}return "("+dojo.number._realNumberRegexp(_569)+")";});},true);if(_564){re=re.replace(/(\s*)(\u00a4{1,3})(\s*)/g,function(_56d,_56e,_56f,_570){var prop=["symbol","currency","displayName"][_56f.length-1];var _572=dojo.regexp.escapeString(_55d[prop]||_55d.currency||"");_56e=_56e?"\\s":"";_570=_570?"\\s":"";if(!_55d.strict){if(_56e){_56e+="*";}if(_570){_570+="*";}return "(?:"+_56e+_572+_570+")?";}return _56e+_572+_570;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_561,decimal:_562,factor:_563};};dojo.number.parse=function(_573,_574){var info=dojo.number._parseInfo(_574);var _576=(new RegExp("^"+info.regexp+"$")).exec(_573);if(!_576){return NaN;}var _577=_576[1];if(!_576[1]){if(!_576[2]){return NaN;}_577=_576[2];info.factor*=-1;}_577=_577.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return Number(_577)*info.factor;};dojo.number._realNumberRegexp=function(_578){_578=_578||{};if(!("places" in _578)){_578.places=Infinity;}if(typeof _578.decimal!="string"){_578.decimal=".";}if(!("fractional" in _578)||/^0/.test(_578.places)){_578.fractional=[true,false];}if(!("exponent" in _578)){_578.exponent=[true,false];}if(!("eSigned" in _578)){_578.eSigned=[true,false];}var _579=dojo.number._integerRegexp(_578);var _57a=dojo.regexp.buildGroupRE(_578.fractional,function(q){var re="";if(q&&(_578.places!==0)){re="\\"+_578.decimal;if(_578.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_578.places+"}";}}return re;},true);var _57d=dojo.regexp.buildGroupRE(_578.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_578.eSigned})+")";}return "";});var _57f=_579+_57a;if(_57a){_57f="(?:(?:"+_57f+")|(?:"+_57a+"))";}return _57f+_57d;};dojo.number._integerRegexp=function(_580){_580=_580||{};if(!("signed" in _580)){_580.signed=[true,false];}if(!("separator" in _580)){_580.separator="";}else{if(!("groupSize" in _580)){_580.groupSize=3;}}var _581=dojo.regexp.buildGroupRE(_580.signed,function(q){return q?"[-+]":"";},true);var _583=dojo.regexp.buildGroupRE(_580.separator,function(sep){if(!sep){return "(?:0|[1-9]\\d*)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_580.groupSize,grp2=_580.groupSize2;if(grp2){var _587="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_587+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_587;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _581+_583;};}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.date.getDaysInMonth=function(_588){var _589=_588.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_589==1&&dojo.date.isLeapYear(_588)){return 29;}return days[_589];};dojo.date.isLeapYear=function(_58b){var year=_58b.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_58d){var str=_58d.toString();var tz="";var _590;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_590=str.match(pat))){tz=_590[1];}else{str=_58d.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_590=str.match(pat))){tz=_590[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_593,_594,_595){_593=new Date(Number(_593));_594=new Date(Number(_594||new Date()));if(_595!=="undefined"){if(_595=="date"){_593.setHours(0,0,0,0);_594.setHours(0,0,0,0);}else{if(_595=="time"){_593.setFullYear(0,0,0);_594.setFullYear(0,0,0);}}}if(_593>_594){return 1;}if(_593<_594){return -1;}return 0;};dojo.date.add=function(date,_597,_598){var sum=new Date(Number(date));var _59a=false;var _59b="Date";switch(_597){case "day":break;case "weekday":var days,_59d;var mod=_598%5;if(!mod){days=(_598>0)?5:-5;_59d=(_598>0)?((_598-5)/5):((_598+5)/5);}else{days=mod;_59d=parseInt(_598/5);}var strt=date.getDay();var adj=0;if(strt==6&&_598>0){adj=1;}else{if(strt==0&&_598<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_598>0)?2:-2;}_598=(7*_59d)+days+adj;break;case "year":_59b="FullYear";_59a=true;break;case "week":_598*=7;break;case "quarter":_598*=3;case "month":_59a=true;_59b="Month";break;case "hour":case "minute":case "second":case "millisecond":_59b="UTC"+_597.charAt(0).toUpperCase()+_597.substring(1)+"s";}if(_59b){sum["set"+_59b](sum["get"+_59b]()+_598);}if(_59a&&(sum.getDate()0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_5b2+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_5b2+mod)<0:adj=2;}}}days+=adj;days-=(_5ac*2);}_5a6=days;break;case "year":_5a6=_5a5;break;case "month":_5a6=(_5a3.getMonth()-_5a2.getMonth())+(_5a5*12);break;case "week":_5a6=parseInt(dojo.date.difference(_5a2,_5a3,"day")/7);break;case "day":_5a6/=24;case "hour":_5a6/=60;case "minute":_5a6/=60;case "second":_5a6/=1000;case "millisecond":_5a6*=_5a3.getTime()-_5a2.getTime();}return Math.round(_5a6);};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.cldr.supplemental.getFirstDayOfWeek=function(_5b3){var _5b4={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};var _5b5=dojo.cldr.supplemental._region(_5b3);var dow=_5b4[_5b5];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_5b7){_5b7=dojo.i18n.normalizeLocale(_5b7);var tags=_5b7.split("-");var _5b9=tags[1];if(!_5b9){_5b9={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_5b9.length==4){_5b9=tags[2];}}return _5b9;};dojo.cldr.supplemental.getWeekend=function(_5ba){var _5bb={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};var _5bc={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};var _5bd=dojo.cldr.supplemental._region(_5ba);var _5be=_5bb[_5bd];var end=_5bc[_5bd];if(_5be===undefined){_5be=6;}if(end===undefined){end=0;}return {start:_5be,end:end};};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");(function(){function formatPattern(_5c0,_5c1,_5c2,_5c3){return _5c3.replace(/([a-z])\1*/ig,function(_5c4){var s,pad;var c=_5c4.charAt(0);var l=_5c4.length;var _5c9=["abbr","wide","narrow"];switch(c){case "G":s=_5c1[(l<4)?"eraAbbr":"eraNames"][_5c0.getFullYear()<0?0:1];break;case "y":s=_5c0.getFullYear();switch(l){case 1:break;case 2:if(!_5c2){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_5c0.getMonth()+1)/3);pad=true;break;case "M":case "L":var m=_5c0.getMonth();var _5cb;switch(l){case 1:case 2:s=m+1;pad=true;break;case 3:case 4:case 5:_5cb=_5c9[l-3];break;}if(_5cb){var _5cc=(c=="L")?"standalone":"format";var _5cd=["months",_5cc,_5cb].join("-");s=_5c1[_5cd][m];}break;case "w":var _5ce=0;s=dojo.date.locale._getWeekOfYear(_5c0,_5ce);pad=true;break;case "d":s=_5c0.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_5c0);pad=true;break;case "E":case "e":case "c":var d=_5c0.getDay();var _5d0;switch(l){case 1:case 2:if(c=="e"){var _5d1=dojo.cldr.supplemental.getFirstDayOfWeek(options.locale);d=(d-_5d1+7)%7;}if(c!="c"){s=d+1;pad=true;break;}case 3:case 4:case 5:_5d0=_5c9[l-3];break;}if(_5d0){var _5d2=(c=="c")?"standalone":"format";var _5d3=["days",_5d2,_5d0].join("-");s=_5c1[_5d3][d];}break;case "a":var _5d4=(_5c0.getHours()<12)?"am":"pm";s=_5c1[_5d4];break;case "h":case "H":case "K":case "k":var h=_5c0.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_5c0.getMinutes();pad=true;break;case "s":s=_5c0.getSeconds();pad=true;break;case "S":s=Math.round(_5c0.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.getTimezoneName(_5c0);if(s){break;}l=4;case "Z":var _5d6=_5c0.getTimezoneOffset();var tz=[(_5d6<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_5d6)/60),2),dojo.string.pad(Math.abs(_5d6)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_5c3);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale.format=function(_5d8,_5d9){_5d9=_5d9||{};var _5da=dojo.i18n.normalizeLocale(_5d9.locale);var _5db=_5d9.formatLength||"short";var _5dc=dojo.date.locale._getGregorianBundle(_5da);var str=[];var _5de=dojo.hitch(this,formatPattern,_5d8,_5dc,_5d9.fullYear);if(_5d9.selector=="year"){var year=_5d8.getFullYear();if(_5da.match(/^zh|^ja/)){year+="年";}return year;}if(_5d9.selector!="time"){var _5e0=_5d9.datePattern||_5dc["dateFormat-"+_5db];if(_5e0){str.push(_processPattern(_5e0,_5de));}}if(_5d9.selector!="date"){var _5e1=_5d9.timePattern||_5dc["timeFormat-"+_5db];if(_5e1){str.push(_processPattern(_5e1,_5de));}}var _5e2=str.join(" ");return _5e2;};dojo.date.locale.regexp=function(_5e3){return dojo.date.locale._parseInfo(_5e3).regexp;};dojo.date.locale._parseInfo=function(_5e4){_5e4=_5e4||{};var _5e5=dojo.i18n.normalizeLocale(_5e4.locale);var _5e6=dojo.date.locale._getGregorianBundle(_5e5);var _5e7=_5e4.formatLength||"short";var _5e8=_5e4.datePattern||_5e6["dateFormat-"+_5e7];var _5e9=_5e4.timePattern||_5e6["timeFormat-"+_5e7];var _5ea;if(_5e4.selector=="date"){_5ea=_5e8;}else{if(_5e4.selector=="time"){_5ea=_5e9;}else{_5ea=_5e8+" "+_5e9;}}var _5eb=[];var re=_processPattern(_5ea,dojo.hitch(this,_buildDateTimeRE,_5eb,_5e6,_5e4));return {regexp:re,tokens:_5eb,bundle:_5e6};};dojo.date.locale.parse=function(_5ed,_5ee){var info=dojo.date.locale._parseInfo(_5ee);var _5f0=info.tokens,_5f1=info.bundle;var re=new RegExp("^"+info.regexp+"$");var _5f3=re.exec(_5ed);if(!_5f3){return null;}var _5f4=["abbr","wide","narrow"];var _5f5=[1970,0,1,0,0,0,0];var amPm="";var _5f7=dojo.every(_5f3,function(v,i){if(!i){return true;}var _5fa=_5f0[i-1];var l=_5fa.length;switch(_5fa.charAt(0)){case "y":if(l!=2&&_5ee.strict){_5f5[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear();var _5fd=year.substring(0,2)*100;var _5fe=Math.min(Number(year.substring(2,4))+20,99);var num=(v<_5fe)?_5fd+v:_5fd-100+v;_5f5[0]=num;}else{if(_5ee.strict){return false;}_5f5[0]=v;}}break;case "M":if(l>2){var _600=_5f1["months-format-"+_5f4[l-3]].concat();if(!_5ee.strict){v=v.replace(".","").toLowerCase();_600=dojo.map(_600,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_600,v);if(v==-1){return false;}}else{v--;}_5f5[1]=v;break;case "E":case "e":var days=_5f1["days-format-"+_5f4[l-3]].concat();if(!_5ee.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_5f5[1]=0;case "d":_5f5[2]=v;break;case "a":var am=_5ee.am||_5f1.am;var pm=_5ee.pm||_5f1.pm;if(!_5ee.strict){var _606=/\./g;v=v.replace(_606,"").toLowerCase();am=am.replace(_606,"").toLowerCase();pm=pm.replace(_606,"").toLowerCase();}if(_5ee.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_5f5[3]=v;break;case "m":_5f5[4]=v;break;case "s":_5f5[5]=v;break;case "S":_5f5[6]=v;}return true;});var _607=+_5f5[3];if(amPm==="p"&&_607<12){_5f5[3]=_607+12;}else{if(amPm==="a"&&_607==12){_5f5[3]=0;}}var _608=new Date(_5f5[0],_5f5[1],_5f5[2],_5f5[3],_5f5[4],_5f5[5],_5f5[6]);if(_5ee.strict){_608.setFullYear(_5f5[0]);}var _609=_5f0.join("");if(!_5f7||(_609.indexOf("M")!=-1&&_608.getMonth()!=_5f5[1])||(_609.indexOf("d")!=-1&&_608.getDate()!=_5f5[2])){return null;}return _608;};function _processPattern(_60a,_60b,_60c,_60d){var _60e=function(x){return x;};_60b=_60b||_60e;_60c=_60c||_60e;_60d=_60d||_60e;var _610=_60a.match(/(''|[^'])+/g);var _611=false;dojo.forEach(_610,function(_612,i){if(!_612){_610[i]="";}else{_610[i]=(_611?_60c:_60b)(_612);_611=!_611;}});return _60d(_610.join(""));};function _buildDateTimeRE(_614,_615,_616,_617){_617=dojo.regexp.escapeString(_617);if(!_616.strict){_617=_617.replace(" a"," ?a");}return _617.replace(/([a-z])\1*/ig,function(_618){var s;var c=_618.charAt(0);var l=_618.length;var p2="",p3="";if(_616.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+":p2+"[1-9]|1[0-2]";break;case "D":s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";break;case "d":s=p2+"[1-9]|[12]\\d|3[01]";break;case "w":s=p2+"[1-9]|[1-4][0-9]|5[0-3]";break;case "E":s="\\S+";break;case "h":s=p2+"[1-9]|1[0-2]";break;case "k":s=p2+"\\d|1[01]";break;case "H":s=p2+"\\d|1\\d|2[0-3]";break;case "K":s=p2+"[1-9]|1\\d|2[0-4]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_616.am||_615.am||"AM";var pm=_616.pm||_615.pm||"PM";if(_616.strict){s=am+"|"+pm;}else{s=am+"|"+pm;if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}}break;default:s=".*";}if(_614){_614.push(_618);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _620=[];dojo.date.locale.addCustomFormats=function(_621,_622){_620.push({pkg:_621,name:_622});};dojo.date.locale._getGregorianBundle=function(_623){var _624={};dojo.forEach(_620,function(desc){var _626=dojo.i18n.getLocalization(desc.pkg,desc.name,_623);_624=dojo.mixin(_624,_626);},this);return _624;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,use,_62a){var _62b;var _62c=dojo.date.locale._getGregorianBundle(_62a);var _62d=[item,use,type];if(use=="standAlone"){_62b=_62c[_62d.join("-")];}_62d[1]="format";return (_62b||_62c[_62d.join("-")]).concat();};dojo.date.locale.isWeekend=function(_62e,_62f){var _630=dojo.cldr.supplemental.getWeekend(_62f);var day=(_62e||new Date()).getDay();if(_630.end<_630.start){_630.end+=7;if(day<_630.start){day+=7;}}return day>=_630.start&&day<=_630.end;};dojo.date.locale._getDayOfYear=function(_632){return dojo.date.difference(new Date(_632.getFullYear(),0,1),_632)+1;};dojo.date.locale._getWeekOfYear=function(_633,_634){if(arguments.length==1){_634=0;}var _635=new Date(_633.getFullYear(),0,1).getDay();var adj=(_635-_634+7)%7;var week=Math.floor((dojo.date.locale._getDayOfYear(_633)+adj-1)/7);if(_635==_634){week++;}return week;};}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_638,_639){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _63a=dojo.date.stamp._isoRegExp.exec(_638);var _63b=null;if(_63a){_63a.shift();if(_63a[1]){_63a[1]--;}if(_63a[6]){_63a[6]*=1000;}if(_639){_639=new Date(_639);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _639["get"+prop]();}).forEach(function(_63d,_63e){if(_63a[_63e]===undefined){_63a[_63e]=_63d;}});}_63b=new Date(_63a[0]||1970,_63a[1]||0,_63a[2]||1,_63a[3]||0,_63a[4]||0,_63a[5]||0,_63a[6]||0);var _63f=0;var _640=_63a[7]&&_63a[7].charAt(0);if(_640!="Z"){_63f=((_63a[8]||0)*60)+(Number(_63a[9])||0);if(_640!="-"){_63f*=-1;}}if(_640){_63f-=_63b.getTimezoneOffset();}if(_63f){_63b.setTime(_63b.getTime()+_63f*60000);}}return _63b;};dojo.date.stamp.toISOString=function(_641,_642){var _=function(n){return (n<10)?"0"+n:n;};_642=_642||{};var _645=[];var _646=_642.zulu?"getUTC":"get";var date="";if(_642.selector!="time"){var year=_641[_646+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_641[_646+"Month"]()+1),_(_641[_646+"Date"]())].join("-");}_645.push(date);if(_642.selector!="date"){var time=[_(_641[_646+"Hours"]()),_(_641[_646+"Minutes"]()),_(_641[_646+"Seconds"]())].join(":");var _64a=_641[_646+"Milliseconds"]();if(_642.milliseconds){time+="."+(_64a<100?"0":"")+_(_64a);}if(_642.zulu){time+="Z";}else{if(_642.selector!="time"){var _64b=_641.getTimezoneOffset();var _64c=Math.abs(_64b);time+=(_64b>0?"-":"+")+_(Math.floor(_64c/60))+":"+_(_64c%60);}}_645.push(time);}return _645.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _64e=d._scopeName+"Type";var qry="["+_64e+"]";function val2type(_650){if(d.isString(_650)){return "string";}if(typeof _650=="number"){return "number";}if(typeof _650=="boolean"){return "boolean";}if(d.isFunction(_650)){return "function";}if(d.isArray(_650)){return "array";}if(_650 instanceof Date){return "date";}if(_650 instanceof d._Url){return "url";}return "object";};function str2obj(_651,type){switch(type){case "string":return _651;case "number":return _651.length?Number(_651):NaN;case "boolean":return typeof _651=="boolean"?_651:!(_651.toLowerCase()=="false");case "function":if(d.isFunction(_651)){_651=_651.toString();_651=d.trim(_651.substring(_651.indexOf("{")+1,_651.length-1));}try{if(_651.search(/[^\w\.]+/i)!=-1){_651=d.parser._nameAnonFunc(new Function(_651),this);}return d.getObject(_651,false);}catch(e){return new Function();}case "array":return _651.split(/\s*,\s*/);case "date":switch(_651){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_651);}case "url":return d.baseUrl+_651;default:return d.fromJson(_651);}};var _653={};function getClassInfo(_654){if(!_653[_654]){var cls=d.getObject(_654);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_654+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _656=cls.prototype;var _657={};for(var name in _656){if(name.charAt(0)=="_"){continue;}var _659=_656[name];_657[name]=val2type(_659);}_653[_654]={cls:cls,params:_657};}return _653[_654];};this._functionFromScript=function(_65a){var _65b="";var _65c="";var _65d=_65a.getAttribute("args");if(_65d){d.forEach(_65d.split(/\s*,\s*/),function(part,idx){_65b+="var "+part+" = arguments["+idx+"]; ";});}var _660=_65a.getAttribute("with");if(_660&&_660.length){d.forEach(_660.split(/\s*,\s*/),function(part){_65b+="with("+part+"){";_65c+="}";});}return new Function(_65b+_65a.innerHTML+_65c);};this.instantiate=function(_662){var _663=[];d.forEach(_662,function(node){if(!node){return;}var type=node.getAttribute(_64e);if((!type)||(!type.length)){return;}var _666=getClassInfo(type);var _667=_666.cls;var ps=_667._noScript||_667.prototype._noScript;var _669={};var _66a=node.attributes;for(var name in _666.params){var item=_66a.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _66d=item.value;switch(name){case "class":_66d=node.className;break;case "style":_66d=node.style&&node.style.cssText;}var _66e=_666.params[name];_669[name]=str2obj(_66d,_66e);}if(!ps){var _66f=[],_670=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_671){var _672=_671.getAttribute("event"),type=_671.getAttribute("type"),nf=d.parser._functionFromScript(_671);if(_672){if(type=="dojo/connect"){_66f.push({event:_672,func:nf});}else{_669[_672]=nf;}}else{_670.push(nf);}});}var _674=_667["markupFactory"];if(!_674&&_667["prototype"]){_674=_667.prototype["markupFactory"];}var _675=_674?_674(_669,node,_667):new _667(_669,node);_663.push(_675);var _676=node.getAttribute("jsId");if(_676){d.setObject(_676,_675);}if(!ps){d.forEach(_66f,function(_677){d.connect(_675,_677.event,null,_677.func);});d.forEach(_670,function(func){func.call(_675);});}});d.forEach(_663,function(_679){if(_679&&_679.startup&&!_679._started&&(!_679.getParent||!_679.getParent())){_679.startup();}});return _663;};this.parse=function(_67a){var list=d.query(qry,_67a);var _67c=this.instantiate(list);return _67c;};}();(function(){var _67d=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_67d);}else{dojo._loaders.unshift(_67d);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_67e,_67f){var jpn="$joinpoint";var nso=(_67f||dojo.parser._anon);if(dojo.isIE){var cn=_67e["__dojoNameCache"];if(cn&&nso[cn]===_67e){return _67e["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_67e;return ret;};}if(!dojo._hasResource["dojo.xml.XslTransform"]){dojo._hasResource["dojo.xml.XslTransform"]=true;dojo.provide("dojo.xml.XslTransform");dojo.xml.XslTransform=function(_684){window.console.log("XslTransform is supported by Internet Explorer and Mozilla, with limited support in Opera 9 (no document function support).");var _685=dojo.isIE;var _686=["Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];var _687=["Msxml2.FreeThreadedDOMDocument.5.0","MSXML2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument.3.0"];var _688=["Msxml2.XSLTemplate.5.0","Msxml2.XSLTemplate.4.0","MSXML2.XSLTemplate.3.0"];function getActiveXImpl(_689){for(var i=0;i<_689.length;i++){try{var _68b=new ActiveXObject(_689[i]);if(_68b){return _689[i];}}catch(e){}}dojo.raise("Could not find an ActiveX implementation in:\n\n "+_689);};if(_684==null||_684==undefined){dojo.raise("You must pass the URI String for the XSL file to be used!");return false;}var _68c=null;var _68d=null;if(_685){_68c=new ActiveXObject(getActiveXImpl(_687));}else{_68d=new XSLTProcessor();_68c=document.implementation.createDocument("","",null);_68c.addEventListener("load",onXslLoad,false);}_68c.async=false;_68c.load(_684);if(_685){var xslt=new ActiveXObject(getActiveXImpl(_688));xslt.stylesheet=_68c;_68d=xslt.createProcessor();}function onXslLoad(){_68d.importStylesheet(_68c);};function getResultDom(_68f,_690){if(_685){addIeParams(_690);var _691=getIeResultDom(_68f);removeIeParams(_690);return _691;}else{return getMozillaResultDom(_68f,_690);}};function addIeParams(_692){if(!_692){return;}for(var i=0;i<_692.length;i++){_68d.addParameter(_692[i][0],_692[i][1]);}};function removeIeParams(_694){if(!_694){return;}for(var i=0;i<_694.length;i++){_68d.addParameter(_694[i][0],"");}};function getIeResultDom(_696){_68d.input=_696;var _697=new ActiveXObject(getActiveXImpl(_686));_697.async=false;_697.validateOnParse=false;_68d.output=_697;_68d.transform();if(_697.parseError.errorCode!=0){var err=_697.parseError;dojo.raise("err.errorCode: "+err.errorCode+"\n\nerr.reason: "+err.reason+"\n\nerr.url: "+err.url+"\n\nerr.srcText: "+err.srcText);}return _697;};function getIeResultStr(_699,_69a){_68d.input=_699;_68d.transform();return _68d.output;};function addMozillaParams(_69b){if(!_69b){return;}for(var i=0;i<_69b.length;i++){_68d.setParameter(null,_69b[i][0],_69b[i][1]);}};function getMozillaResultDom(_69d,_69e){addMozillaParams(_69e);var _69f=_68d.transformToDocument(_69d);_68d.clearParameters();return _69f;};function getMozillaResultStr(_6a0,_6a1,_6a2){addMozillaParams(_6a1);var _6a3=_68d.transformToFragment(_6a0,_6a2);var _6a4=new XMLSerializer();_68d.clearParameters();return _6a4.serializeToString(_6a3);};this.getResultString=function(_6a5,_6a6,_6a7){var _6a8=null;if(_685){addIeParams(_6a6);_6a8=getIeResultStr(_6a5,_6a6);removeIeParams(_6a6);}else{_6a8=getMozillaResultStr(_6a5,_6a6,_6a7);}return _6a8;};this.transformToContentPane=function(_6a9,_6aa,_6ab,_6ac){var _6ad=this.getResultString(_6a9,_6aa,_6ac);_6ab.setContent(_6ad);};this.transformToRegion=function(_6ae,_6af,_6b0,_6b1){try{var _6b2=this.getResultString(_6ae,_6af,_6b1);_6b0.innerHTML=_6b2;}catch(e){dojo.raise(e.message+"\n\n xsltUri: "+_684);}};this.transformToDocument=function(_6b3,_6b4){return getResultDom(_6b3,_6b4);};this.transformToWindow=function(_6b5,_6b6,_6b7,_6b8){try{_6b7.open();_6b7.write(this.getResultString(_6b5,_6b6,_6b8));_6b7.close();}catch(e){dojo.raise(e.message+"\n\n xsltUri: "+_684);}};};}if(!dojo._hasResource["dojo.back"]){dojo._hasResource["dojo.back"]=true;dojo.provide("dojo.back");(function(){var back=dojo.back;function getHash(){var h=window.location.hash;if(h.charAt(0)=="#"){h=h.substring(1);}return dojo.isMozilla?h:decodeURIComponent(h);};function setHash(h){if(!h){h="";}window.location.hash=encodeURIComponent(h);_6bc=history.length;};if(dojo.exists("tests.back-hash")){back.getHash=getHash;back.setHash=setHash;}var _6bd=(typeof (window)!=="undefined")?window.location.href:"";var _6be=(typeof (window)!=="undefined")?getHash():"";var _6bf=null;var _6c0=null;var _6c1=null;var _6c2=null;var _6c3=[];var _6c4=[];var _6c5=false;var _6c6=false;var _6bc;function handleBackButton(){var _6c7=_6c4.pop();if(!_6c7){return;}var last=_6c4[_6c4.length-1];if(!last&&_6c4.length==0){last=_6bf;}if(last){if(last.kwArgs["back"]){last.kwArgs["back"]();}else{if(last.kwArgs["backButton"]){last.kwArgs["backButton"]();}else{if(last.kwArgs["handle"]){last.kwArgs.handle("back");}}}}_6c3.push(_6c7);};back.goBack=handleBackButton;function handleForwardButton(){var last=_6c3.pop();if(!last){return;}if(last.kwArgs["forward"]){last.kwArgs.forward();}else{if(last.kwArgs["forwardButton"]){last.kwArgs.forwardButton();}else{if(last.kwArgs["handle"]){last.kwArgs.handle("forward");}}}_6c4.push(last);};back.goForward=handleForwardButton;function createState(url,args,hash){return {"url":url,"kwArgs":args,"urlHash":hash};};function getUrlQuery(url){var _6ce=url.split("?");if(_6ce.length<2){return null;}else{return _6ce[1];}};function loadIframeHistory(){var url=(dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html"))+"?"+(new Date()).getTime();_6c5=true;if(_6c2){dojo.isSafari?_6c2.location=url:window.frames[_6c2.name].location=url;}else{}return url;};function checkLocation(){if(!_6c6){var hsl=_6c4.length;var hash=getHash();if((hash===_6be||window.location.href==_6bd)&&(hsl==1)){handleBackButton();return;}if(_6c3.length>0){if(_6c3[_6c3.length-1].urlHash===hash){handleForwardButton();return;}}if((hsl>=2)&&(_6c4[hsl-2])){if(_6c4[hsl-2].urlHash===hash){handleBackButton();return;}}if(dojo.isSafari&&dojo.isSafari<3){var _6d2=history.length;if(_6d2>_6bc){handleForwardButton();}else{if(_6d2<_6bc){handleBackButton();}}_6bc=_6d2;}}};back.init=function(){if(dojo.byId("dj_history")){return;}var src=dojo.config["dojoIframeHistoryUrl"]||dojo.moduleUrl("dojo","resources/iframe_history.html");document.write("");};back.setInitialState=function(args){_6bf=createState(_6bd,args,_6be);};back.addToHistory=function(args){_6c3=[];var hash=null;var url=null;if(!_6c2){if(dojo.config["useXDomain"]&&!dojo.config["dojoIframeHistoryUrl"]){console.debug("dojo.back: When using cross-domain Dojo builds,"+" please save iframe_history.html to your domain and set djConfig.dojoIframeHistoryUrl"+" to the path on your domain to iframe_history.html");}_6c2=window.frames["dj_history"];}if(!_6c1){_6c1=document.createElement("a");dojo.body().appendChild(_6c1);_6c1.style.display="none";}if(args["changeUrl"]){hash=""+((args["changeUrl"]!==true)?args["changeUrl"]:(new Date()).getTime());if(_6c4.length==0&&_6bf.urlHash==hash){_6bf=createState(url,args,hash);return;}else{if(_6c4.length>0&&_6c4[_6c4.length-1].urlHash==hash){_6c4[_6c4.length-1]=createState(url,args,hash);return;}}_6c6=true;setTimeout(function(){setHash(hash);_6c6=false;},1);_6c1.href=hash;if(dojo.isIE){url=loadIframeHistory();var _6d8=args["back"]||args["backButton"]||args["handle"];var tcb=function(_6da){if(getHash()!=""){setTimeout(function(){setHash(hash);},1);}_6d8.apply(this,[_6da]);};if(args["back"]){args.back=tcb;}else{if(args["backButton"]){args.backButton=tcb;}else{if(args["handle"]){args.handle=tcb;}}}var _6db=args["forward"]||args["forwardButton"]||args["handle"];var tfw=function(_6dd){if(getHash()!=""){setHash(hash);}if(_6db){_6db.apply(this,[_6dd]);}};if(args["forward"]){args.forward=tfw;}else{if(args["forwardButton"]){args.forwardButton=tfw;}else{if(args["handle"]){args.handle=tfw;}}}}else{if(!dojo.isIE){if(!_6c0){_6c0=setInterval(checkLocation,200);}}}}else{url=loadIframeHistory();}_6c4.push(createState(url,args,hash));};back._iframeLoaded=function(evt,_6df){var _6e0=getUrlQuery(_6df.href);if(_6e0==null){if(_6c4.length==1){handleBackButton();}return;}if(_6c5){_6c5=false;return;}if(_6c4.length>=2&&_6e0==getUrlQuery(_6c4[_6c4.length-2].url)){handleBackButton();}else{if(_6c3.length>0&&_6e0==getUrlQuery(_6c3[_6c3.length-1].url)){handleForwardButton();}}};})();}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_6e2,_6e3){var c=document.cookie;if(arguments.length==1){var _6e5=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _6e5?decodeURIComponent(_6e5[1]):undefined;}else{_6e3=_6e3||{};var exp=_6e3.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_6e3.expires=d;}if(exp&&exp.toUTCString){_6e3.expires=exp.toUTCString();}_6e2=encodeURIComponent(_6e2);var _6e8=name+"="+_6e2;for(propName in _6e3){_6e8+="; "+propName;var _6e9=_6e3[propName];if(_6e9!==true){_6e8+="="+_6e9;}}document.cookie=_6e8;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.cldr.monetary"]){dojo._hasResource["dojo.cldr.monetary"]=true;dojo.provide("dojo.cldr.monetary");dojo.cldr.monetary.getData=function(code){var _6eb={ADP:0,BHD:3,BIF:0,BYR:0,CLF:0,CLP:0,DJF:0,ESP:0,GNF:0,IQD:3,ITL:0,JOD:3,JPY:0,KMF:0,KRW:0,KWD:3,LUF:0,LYD:3,MGA:0,MGF:0,OMR:3,PYG:0,RWF:0,TND:3,TRL:0,VUV:0,XAF:0,XOF:0,XPF:0};var _6ec={CHF:5};var _6ed=_6eb[code],_6ee=_6ec[code];if(typeof _6ed=="undefined"){_6ed=2;}if(typeof _6ee=="undefined"){_6ee=0;}return {places:_6ed,round:_6ee};};}if(!dojo._hasResource["dojo.currency"]){dojo._hasResource["dojo.currency"]=true;dojo.provide("dojo.currency");dojo.currency._mixInDefaults=function(_6ef){_6ef=_6ef||{};_6ef.type="currency";var _6f0=dojo.i18n.getLocalization("dojo.cldr","currency",_6ef.locale)||{};var iso=_6ef.currency;var data=dojo.cldr.monetary.getData(iso);dojo.forEach(["displayName","symbol","group","decimal"],function(prop){data[prop]=_6f0[iso+"_"+prop];});data.fractional=[true,false];return dojo.mixin(data,_6ef);};dojo.currency.format=function(_6f4,_6f5){return dojo.number.format(_6f4,dojo.currency._mixInDefaults(_6f5));};dojo.currency.regexp=function(_6f6){return dojo.number.regexp(dojo.currency._mixInDefaults(_6f6));};dojo.currency.parse=function(_6f7,_6f8){return dojo.number.parse(_6f7,dojo.currency._mixInDefaults(_6f8));};}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");(function(){var _6f9={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _6fc=function(_6fd){this._index=-1;this._animations=_6fd||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;dojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};dojo.extend(_6fc,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){dojo.disconnect(this._onAnimateCtx);dojo.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_6ff,_700){if(!this._current){this._current=this._animations[this._index=0];}if(!_700&&this._current.status()=="playing"){return this;}var _701=dojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_702=dojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_704=dojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);dojo.disconnect(_701);dojo.disconnect(_702);dojo.disconnect(_704);});if(this._onAnimateCtx){dojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=dojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){dojo.disconnect(this._onEndCtx);}this._onEndCtx=dojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=dojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);dojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_708,_709){this.pause();var _70a=this.duration*_708;this._current=null;dojo.some(this._animations,function(a){if(a.duration<=_70a){this._current=a;return true;}_70a-=a.duration;return false;});if(this._current){this._current.gotoPercent(_70a/_current.duration,_709);}return this;},stop:function(_70c){if(this._current){if(_70c){for(;this._index+1=_22;i--){var _24=dijit.byId(_21[i]);if(_24){_24._focused=false;_24._hasBeenBlurred=true;if(_24._onBlur){_24._onBlur();}if(_24._setStateClass){_24._setStateClass();}dojo.publish("widgetBlur",[_24]);}}for(i=_22;i<_20.length;i++){_24=dijit.byId(_20[i]);if(_24){_24._focused=true;if(_24._onFocus){_24._onFocus();}if(_24._setStateClass){_24._setStateClass();}dojo.publish("widgetFocus",[_24]);}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_25){if(this._hash[_25.id]){throw new Error("Tried to register widget with id=="+_25.id+" but that id is already registered");}this._hash[_25.id]=_25;},remove:function(id){delete this._hash[id];},forEach:function(_27){for(var id in this._hash){_27(this._hash[id]);}},filter:function(_29){var res=new dijit.WidgetSet();this.forEach(function(_2b){if(_29(_2b)){res.add(_2b);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_2e){return _2e.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_2f){var id;do{id=_2f+"_"+(_2f in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_2f]:dijit._widgetTypeCtr[_2f]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_31){_31.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_33){return dijit.registry.byId(_33.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_34){while(_34){if(_34.getAttribute&&_34.getAttribute("widgetId")){return dijit.registry.byId(_34.getAttribute("widgetId"));}_34=_34.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_35){var _36=dojo.style(_35);return (_36.visibility!="hidden")&&(_36.visibility!="collapsed")&&(_36.display!="none");};dijit.isTabNavigable=function(_37){if(dojo.hasAttr(_37,"disabled")){return false;}var _38=dojo.hasAttr(_37,"tabindex");var _39=dojo.attr(_37,"tabindex");if(_38&&_39>=0){return true;}var _3a=_37.nodeName.toLowerCase();if(((_3a=="a"&&dojo.hasAttr(_37,"href"))||dijit._tabElements[_3a])&&(!_38||_39>=0)){return true;}return false;};dijit._getTabNavigable=function(_3b){var _3c,_3d,_3e,_3f,_40,_41;var _42=function(_43){dojo.query("> *",_43).forEach(function(_44){var _45=dijit._isElementShown(_44);if(_45&&dijit.isTabNavigable(_44)){var _46=dojo.attr(_44,"tabindex");if(!dojo.hasAttr(_44,"tabindex")||_46==0){if(!_3c){_3c=_44;}_3d=_44;}else{if(_46>0){if(!_3e||_46<_3f){_3f=_46;_3e=_44;}if(!_40||_46>=_41){_41=_46;_40=_44;}}}}if(_45){_42(_44);}});};if(dijit._isElementShown(_3b)){_42(_3b);}return {first:_3c,last:_3d,lowest:_3e,highest:_40};};dijit.getFirstInTabbingOrder=function(_47){var _48=dijit._getTabNavigable(dojo.byId(_47));return _48.lowest?_48.lowest:_48.first;};dijit.getLastInTabbingOrder=function(_49){var _4a=dijit._getTabNavigable(dojo.byId(_49));return _4a.last?_4a.last:_4a.highest;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _4b=dojo.global;var _4c=dojo.doc;var w=0,h=0;var de=_4c.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _52,_53,_54,_55;var dbw=_4c.body.clientWidth;if(dbw>dew){_52=dew;_54=dbw;}else{_54=dew;_52=dbw;}var dbh=_4c.body.clientHeight;if(dbh>deh){_53=deh;_55=dbh;}else{_55=deh;_53=dbh;}w=(_54>_4b.innerWidth)?_52:_54;h=(_55>_4b.innerHeight)?_53:_55;}else{if(!dojo.isOpera&&_4b.innerWidth){w=_4b.innerWidth;h=_4b.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _58=dojo._docScroll();return {w:w,h:h,l:_58.x,t:_58.y};};dijit.placeOnScreen=function(_59,pos,_5b,_5c){var _5d=dojo.map(_5b,function(_5e){return {corner:_5e,pos:pos};});return dijit._place(_59,_5d);};dijit._place=function(_5f,_60,_61){var _62=dijit.getViewport();if(!_5f.parentNode||String(_5f.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_5f);}var _63=null;dojo.some(_60,function(_64){var _65=_64.corner;var pos=_64.pos;if(_61){_61(_5f,_64.aroundCorner,_65);}var _67=_5f.style;var _68=_67.display;var _69=_67.visibility;_67.visibility="hidden";_67.display="";var mb=dojo.marginBox(_5f);_67.display=_68;_67.visibility=_69;var _6b=(_65.charAt(1)=="L"?pos.x:Math.max(_62.l,pos.x-mb.w)),_6c=(_65.charAt(0)=="T"?pos.y:Math.max(_62.t,pos.y-mb.h)),_6d=(_65.charAt(1)=="L"?Math.min(_62.l+_62.w,_6b+mb.w):pos.x),_6e=(_65.charAt(0)=="T"?Math.min(_62.t+_62.h,_6c+mb.h):pos.y),_6f=_6d-_6b,_70=_6e-_6c,_71=(mb.w-_6f)+(mb.h-_70);if(_63==null||_71<_63.overflow){_63={corner:_65,aroundCorner:_64.aroundCorner,x:_6b,y:_6c,w:_6f,h:_70,overflow:_71};}return !_71;});_5f.style.left=_63.x+"px";_5f.style.top=_63.y+"px";if(_63.overflow&&_61){_61(_5f,_63.aroundCorner,_63.corner);}return _63;};dijit.placeOnScreenAroundElement=function(_72,_73,_74,_75){_73=dojo.byId(_73);var _76=_73.style.display;_73.style.display="";var _77=_73.offsetWidth;var _78=_73.offsetHeight;var _79=dojo.coords(_73,true);_73.style.display=_76;var _7a=[];for(var _7b in _74){_7a.push({aroundCorner:_7b,corner:_74[_7b],pos:{x:_79.x+(_7b.charAt(1)=="L"?0:_77),y:_79.y+(_7b.charAt(0)=="T"?0:_78)}});}return dijit._place(_72,_7a,_75);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i0&&_81[pi].parent===_81[pi-1].widget;pi--){}return _81[pi];};_8f.push(dojo.connect(_8b,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_86.onCancel){dojo.stopEvent(evt);_86.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _93=_90();if(_93&&_93.onCancel){_93.onCancel();}}}}));if(_87.onCancel){_8f.push(dojo.connect(_87,"onCancel",null,_86.onCancel));}_8f.push(dojo.connect(_87,_87.onExecute?"onExecute":"onChange",null,function(){var _94=_90();if(_94&&_94.onExecute){_94.onExecute();}}));_81.push({wrapper:_8b,iframe:_8d,widget:_87,parent:_86.parent,onExecute:_86.onExecute,onCancel:_86.onCancel,onClose:_86.onClose,handlers:_8f});if(_87.onOpen){_87.onOpen(_8e);}return _8e;};this.close=function(_95){while(dojo.some(_81,function(_96){return _96.widget==_95;})){var top=_81.pop(),_98=top.wrapper,_99=top.iframe,_9a=top.widget,_9b=top.onClose;if(_9a.onClose){_9a.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_9a||!_9a.domNode){return;}this.prepare(_9a.domNode);_99.destroy();dojo._destroyElement(_98);if(_9b){_9b();}}};}();dijit._frames=new function(){var _9c=[];this.pop=function(){var _9d;if(_9c.length){_9d=_9c.pop();_9d.style.display="";}else{if(dojo.isIE){var _9e="");com.ibm.portal.aggregation.forms.PORTLET_FORM_HANDLER._callbackfns[_2b6]={fn:_2b3,args:_2b4};var url=new com.ibm.portal.utilities.HttpUrl(this._feedURI);url.addParameter("ibm.web2.contentType","text/plain");this._form.getDOMElement().setAttribute("action",url.toString());}else{ibm.portal.debug.text("Creating the iframe... name is: "+_2b6+"; url is: "+this._feedURI);_2b5=document.createElement("IFRAME");_2b5.setAttribute("name",_2b6);_2b5.setAttribute("id",_2b6);var me=this;_2b5.onload=function(){var xml=window.frames[_2b6].document;_2b3("load",xml,null,_2b4);com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});};this._form.getDOMElement().setAttribute("action",this._feedURI);}_2b5.style.visibility="hidden";_2b5.style.height="1px";_2b5.style.width="1px";document.body.appendChild(_2b5);if(window.frames[_2b6].name!=_2b6){window.frames[_2b6].name=_2b6;}ibm.portal.debug.text("Setting the iframe target attribute to: "+_2b6);this._form.getDOMElement().setAttribute("target",_2b6);this._form.submit();ibm.portal.debug.exit("PortalRestServiceRequest._doIframeRequest");},_doXmlHttpRequest:function(_2ba,_2bb){ibm.portal.debug.entry("PortalRestServiceRequest._doXmlHttpRequest",[_2ba,_2bb]);var _2bc={};ibm.portal.debug.text("Attempting to retrieve: "+this._feedURI+"; synchronously? "+this._sync);var me=this;var args={url:this._feedURI,content:_2bc,handle:function(_2bf,_2c0){ibm.portal.debug.entry("PortalRestServiceRequest.handle",[_2bf,_2c0]);var xhr=_2c0.xhr;ibm.portal.debug.text("XHR object: "+xhr);var _2c2=com.ibm.portal.services.PortalRestServiceConfig;var _2c3=xhr.getResponseHeader("X-Request-Digest");if(_2c3){_2c2.digest=_2c3;}if(xhr.status==200){var data=_2bf;var loc=xhr.getResponseHeader("IBM-Web2-Location");if(loc){if(loc.indexOf(ibmPortalConfig["portalProtectedURI"])>=0&&me._feedURI.indexOf(ibmPortalConfig["portalPublicURI"])>=0){top.location.href=loc;return;}}var _2c6=xhr.getResponseHeader("Content-Type");if(_2c6&&_2c6.indexOf("text/html")>=0){var _2c7=me._feedURI;if(loc){_2c7=loc;}if(dojo.cookie("WASReqURL")!=null){var _2c8=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();var _2c9=_2c8.createLinkToCurrentState();var _2ca="WASReqURL="+_2c9+"; path=/";document.cookie=_2ca;}com.ibm.portal.EVENT_BROKER.redirect.fire({url:_2c7});top.location.href=_2c7;return;}ibm.portal.debug.text("Read feed: "+me._feedURI);if(dojo.isIE){var doc=dojox.data.dom.createDocument(data);_2ba("load",doc,xhr,_2bb);}else{_2ba("load",data,xhr,_2bb);}}else{_2ba("error",_2bf,null,_2bb);}com.ibm.portal.EVENT_BROKER.endRequest.fire({uri:me._feedURI});ibm.portal.debug.exit("PortalRestServiceRequest.handle");},sync:this._sync,handleAs:"xml"};var _2cc="Get";if(this._form){args.content=dojo.queryToObject(this._form.toQuery());_2cc=com.ibm.portal.utilities.string.properCase(this._form.method);}if(dojo.isIE){args.content["ibm.web2.contentType"]="text/xml";args.handleAs="text";}var _2cd=com.ibm.portal.services.PortalRestServiceConfig;if(_2cd.timeout){args.timeout=_2cd.timeout;}if(_2cd.digest){args.content["digest"]=_2cd.digest;}var xhr=dojo["xhr"+_2cc](args);ibm.portal.debug.exit("PortalRestServiceRequest._doXmlHttpRequest");},toString:function(){return this._feedURI;}});com.ibm.portal.services.PortalRestServiceConfig={timeout:null,digest:null};dojo.provide("com.ibm.portal.services.PortletFragmentService");dojo.require("dojox.data.dom");dojo.require("com.ibm.portal.services.PortalRestServiceRequest");dojo.require("com.ibm.portal.utilities");dojo.require("com.ibm.portal.debug");dojo.require("com.ibm.portal.EventBroker");dojo.declare("com.ibm.portal.services.PortletFragmentURL",null,{constructor:function(uri){if(uri.indexOf("?uri=")==0){this.url=ibmPortalConfig["portalURI"]+uri;this.url=this.url.replace(/&/g,"&");this.url=this.url.replace(/lm:/,"pm:");}else{if(uri.indexOf("lm:")==0){this.url=ibmPortalConfig["portalURI"]+"?uri=fragment:"+uri;this.url=this.url.replace(/lm:/,"pm:");}else{this.url=uri;}}}});dojo.declare("com.ibm.portal.services.PortletInfo",null,{constructor:function(wId,pId,_2d2,_2d3,_2d4,_2d5,_2d6,_2d7,_2d8,_2d9,_2da){ibm.portal.debug.entry("PortletInfo.constructor",[wId,pId,_2d2,_2d3,_2d4,_2d5,_2d7]);this.windowId=wId;this.portletId=pId;this.uri="fragment:pm:oid:"+wId+"@oid:"+pId;this.markup=_2d2;this.portletModes=_2d3;this.windowStates=_2d4;this.dependentPortlets=_2d5;this.otherPortlets=_2d6;this.stateVaryExpressions=_2d8;this.updatedState=_2d7;this.currentMode=_2d9;this.currentWindowState=_2da;ibm.portal.debug.exit("PortletInfo.constructor");}});dojo.declare("com.ibm.portal.services.PortletFragmentService",null,{namespaces:{"xsl":"http://www.w3.org/1999/XSL/Transform","thr":"http://purl.org/syndication/thread/1.0","atom":"http://www.w3.org/2005/Atom","xhtml":"http://www.w3.org/1999/xhtml","model":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model-elements","base":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/ibm-portal-composite-base","portal":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model","xsi":"http://www.w3.org/2001/XMLSchema-instance","state":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state","state-vary":"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/portal-state-vary"},_flagPortletUrl:function(url,_2dc){ibm.portal.debug.entry("PortletFragmentService._flagPortletUrl",[url]);var _2dd=url.indexOf("uri=fragment:pm:oid:");var _2de=new com.ibm.portal.utilities.HttpUrl(url);_2de.addParameter("ibm.web2.keepRenderMode","false");if(_2dd<0){_2dc=_2dc.replace(/lm:/g,"fragment:pm:");_2de.addParameter("uri",_2dc);}ibm.portal.debug.exit("PortletFragmentService._flagPortletUrl",[_2de.toString()]);return _2de.toString();},getPortletInfo:function(_2df,_2e0,_2e1,form,_2e3){ibm.portal.debug.entry("PortletFragmentService.getPortletInfo",[_2df,_2e0,_2e1,form,_2e3]);if(_2e0=="#"||_2e0==window.location.href+"#"){ibm.portal.debug.text("Illegal portlet url provided: "+_2e0);ibm.portal.debug.text("Aborting request.");return false;}if(com.ibm.portal.utilities.isJavascriptUrl(_2e0)){return eval(_2e0);}if(!_2e3){com.ibm.portal.EVENT_BROKER.startFragment.fire({id:_2df});}var _2e4=_2e0;if(_2e4.indexOf(top.location.href)==0){_2e4=_2e4.substring(top.location.href.length);while(_2e4.length>0&&_2e4.charAt(0)=="/"){_2e4=_2e4.substring(1);}}if(_2e4.indexOf("?")==0){var _2e5=com.ibm.portal.navigation.controller.NAVIGATION_CONTROLLER.getState();_2e0=_2e5.resolveRelativePortletURL(_2e4);}if(com.ibm.portal.utilities.isExternalUrl(_2e0)){self.location.href=_2e0;}else{var url={url:this._flagPortletUrl(_2e0,_2df)};var _2e7=new com.ibm.portal.services.PortalRestServiceRequest(url,form);var me=this;_2e7.read(function(type,_2ea,xhr){var _2ec=null;if(type=="load"){_2ec=me.createPortletInfo(_2ea);}if(_2ea instanceof Error){_2ec=_2ea;}if(!_2e3){me._fireEvents(_2ec,_2df,xhr);}if(_2e1){_2e1(_2ec,xhr);}});}ibm.portal.debug.exit("PortletFragmentService.getPortletInfo");},readWindowID:function(_2ed){ibm.portal.debug.entry("PortletFragmentService.readWindowID",[_2ed]);var _2ee="/atom:feed/atom:entry/atom:id";var _2ef=com.ibm.portal.xpath.evaluateXPath(_2ee,_2ed,this.namespaces);var _2f0=dojox.data.dom.textContent(_2ef[0]);ibm.portal.debug.exit("PortletFragmentService.readWindowID",[_2f0.substring(4)]);return _2f0.substring(4);},readPortletID:function(_2f1){ibm.portal.debug.entry("PortletFragmentService.readPortletID",[_2f1]);var _2f2="/atom:feed/atom:id";var _2f3=com.ibm.portal.xpath.evaluateXPath(_2f2,_2f1,this.namespaces);var _2f4=dojox.data.dom.textContent(_2f3[0]);ibm.portal.debug.exit("PortletFragmentService.readPortletID",[_2f4.substring(4)]);return _2f4.substring(4);},readMarkup:function(_2f5){ibm.portal.debug.entry("PortletFragmentService.readMarkup",[_2f5]);var _2f6="/atom:feed/atom:entry/atom:content";var _2f7=com.ibm.portal.xpath.evaluateXPath(_2f6,_2f5,this.namespaces);var _2f8="";if(_2f7!=null&&_2f7.length>0){_2f8=dojox.data.dom.textContent(_2f7[0]);}ibm.portal.debug.exit("PortletFragmentService.readMarkup",[_2f8]);return _2f8;},readPortletModes:function(_2f9){ibm.portal.debug.entry("PortletFragmentService.readPortletModes",[_2f9]);var _2fa="/atom:feed/atom:entry/atom:link[@portal:rel='portlet-mode']";var _2fb=com.ibm.portal.xpath.evaluateXPath(_2fa,_2f9,this.namespaces);var _2fc=new Array();if(_2fb!=null&&_2fb.length>0){var _2fd=_2fb.length;for(var i=0;i<_2fd;i++){_2fc.push({"link":_2fb[i].getAttribute("href"),"mode":_2fb[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readPortletModes",[_2fc]);return _2fc;},readWindowStates:function(_2ff){ibm.portal.debug.entry("PortletFragmentService.readWindowStates",[_2ff]);var _300="/atom:feed/atom:entry/atom:link[@portal:rel='window-state']";var _301=com.ibm.portal.xpath.evaluateXPath(_300,_2ff,this.namespaces);var _302=new Array();if(_301!=null&&_301.length>0){var _303=_301.length;for(var i=0;i<_303;i++){_302.push({"link":_301[i].getAttribute("href"),"mode":_301[i].getAttribute("title")});}}ibm.portal.debug.exit("PortletFragmentService.readWindowStates",[_302]);return _302;},readDependentPortlets:function(_305){ibm.portal.debug.entry("PortletFragmentService.readDependentPortlets",[_305]);var _306="/atom:feed/atom:link[@portal:rel='dependent']";var _307=com.ibm.portal.xpath.evaluateXPath(_306,_305,this.namespaces);var _308=new Array();if(_307!=null&&_307.length>0){var _309=_307.length;for(var i=0;i<_309;i++){_308.push({"link":_307[i].getAttribute("href"),"portlet":_307[i].getAttribute("title"),"uri":_307[i].getAttribute("portal:uri")?_307[i].getAttribute("portal:uri"):_307[i].getAttribute("uri")});}}ibm.portal.debug.exit("PortletFragmentService.readDependentPortlets",[_308]);return _308;},readOtherPortlets:function(_30b){ibm.portal.debug.entry("PortletFragmentService.readOtherPortlets",[_30b]);var _30c="/atom:feed/atom:link[@portal:rel='other']";var _30d=com.ibm.portal.xpath.evaluateXPath(_30c,_30b,this.namespaces);var _30e=new Array();if(_30d!=null&&_30d.length>0){var _30f=_30d.length;for(var i=0;i<_30f;i++){_30e.push({"link":_30d[i].getAttribute("href"),"portlet":_30d[i].getAttribute("title"),"uri":_30d[i].getAttribute("portal:uri")});}}ibm.portal.debug.exit("PortletFragmentService.readOtherPortlets",[_30e]);return _30e;},readStateVaryExpressions:function(_311){ibm.portal.debug.entry("PortletFragmentService.readStateVaryExpressions",[_311]);var _312="/atom:feed/atom:entry/state-vary:state-vary/state-vary:expr";var _313=com.ibm.portal.xpath.evaluateXPath(_312,_311,this.namespaces);var _314=new Array();if(_313!=null&&_313.length>0){var _315=_313.length;for(var i=0;i<_315;i++){var _317=_313[i].firstChild;if(_317!=null){_314.push(_317.nodeValue);}}}ibm.portal.debug.exit("PortletFragmentService.readStateVaryExpressions",[_314]);return _314;},readPortletState:function(_318){return this._readPortletState(_318);},_readPortletState:function(_319){ibm.portal.debug.entry("PortletFragmentService.readPortletState",[_319]);var _31a="/atom:feed/atom:entry/state:root";var _31b=com.ibm.portal.xpath.evaluateXPath(_31a,_319,this.namespaces);var _31c=null;if(_31b!=null&&_31b.length>0){var doc=dojox.data.dom.createDocument();com.ibm.portal.utilities.addExternalNode(doc,_31b[0]);_31c=doc;}else{_31a="/atom:feed/state:root";_31b=com.ibm.portal.xpath.evaluateXPath(_31a,_319,this.namespaces);if(_31b!=null&&_31b.length>0){var doc=dojox.data.dom.createDocument();com.ibm.portal.utilities.addExternalNode(doc,_31b[0]);_31c=doc;}}ibm.portal.debug.exit("PortletFragmentService.readPortletState",[_31c]);return _31c;},_fireEvents:function(_31e,_31f,xhr){this._fireGlobalPortletStateChange(_31e,_31f,xhr);},_fireGlobalPortletStateChange:function(_321,_322,xhr){com.ibm.portal.EVENT_BROKER.endFragment.fire({portletInfo:_321,id:_322,xhr:xhr});},_fireIndividualPortletStateChange:function(_324){},createPortletInfo:function(_325){var _326=this.readWindowID(_325);var _327=this.readPortletID(_325);var _328=this.readMarkup(_325);var _329=this.readPortletModes(_325);var _32a=this.readWindowStates(_325);var _32b=this.readDependentPortlets(_325);var _32c=this.readOtherPortlets(_325);var _32d=this.readPortletState(_325);var _32e=this.readStateVaryExpressions(_325);var _32f=_32d;if(_32f==null){_32f=this._readPortletState(_325);}var _330=new com.ibm.portal.state.StateManager();var _331=_330.newPortletAccessor(_326,_32f);var mode=_331.getPortletMode();var _333=_331.getWindowState();return new com.ibm.portal.services.PortletInfo(_326,_327,_328,_329,_32a,_32b,_32c,_32d,_32e,mode,_333);}});dojo.declare("com.ibm.portal.services.IndependentPortletFragmentService",com.ibm.portal.services.PortletFragmentService,{readDependentPortlets:function(_334){ibm.portal.debug.entry("DependentPortletFragmentService.readDependentPortlets",[_334]);var _335=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readDependentPortlets",[_335]);return _335;},readOtherPortlets:function(_336){ibm.portal.debug.entry("DependentPortletFragmentService.readOtherPortlets",[_336]);var _337=new Array();ibm.portal.debug.exit("DependentPortletFragmentService.readOtherPortlets",[_337]);return _337;},readPortletState:function(_338){return null;}});if(!dojo._hasResource["ibm.portal.portlet.portlet"]){dojo._hasResource["ibm.portal.portlet.portlet"]=true;dojo.provide("ibm.portal.portlet.portlet");ibm.portal.portlet._SafeToExecute=false;if(window.addEventListener){window.addEventListener("load",function(){ibm.portal.portlet._SafeToExecute=true;},false);}else{if(window.attachEvent){window.attachEvent("onload",function(){ibm.portal.portlet._SafeToExecute=true;});}}dojo.declare("ibm.portal.portlet.PortletWindow",null,{STATUS_UNDEFINED:0,STATUS_OK:1,STATUS_ERROR:2,constructor:function(_339){if(_339==null){return;}this.windowID=_339;var _33a=document.getElementById("com.ibm.wps.web2.portlet.preferences."+this.windowID);this.preferenceEditID=_33a.getAttribute("editid");this.preferenceConfigID=_33a.getAttribute("configid");this.preferenceEditDefaultsID=_33a.getAttribute("editdefaultsid");this.pageID=_33a.getAttribute("pageid");this.attributes=new Array();this._queuedFuncs=new Array();this.portletState=new ibm.portal.portlet.PortletState(_339);this.isCSA=false;try{this.isCSA=(typeof (document.isCSA)!="undefined");}catch(e){}var me=this;function executeQueued(){for(var i=0;i0){_36a=_369[0];}else{return null;}var _36b=_36a.parentNode;expr="/atom:feed/atom:entry";_369=ibm.portal.xml.xpath.evaluateXPath(expr,_361.xmlData,_361.ns);for(var i=0;i<_369.length;i++){var node=_369[i];if(node!=_36a){_36b.removeChild(node);}}var _36e=this;var _36f=null;dojo.rawXhrPut({url:_url,sync:(_362)?false:true,putData:dojox.data.dom.innerXML(_361.xmlData),contentType:"application/xml",handleAs:"xml",handle:function(_370,_371){var type=(_370 instanceof Error)?"error":"load";if(type=="load"){if(_362){_362(_36e,ibm.portal.portlet.PortletWindow.STATUS_OK,_361);}else{_36f={"portletWindow":_36e,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_361};}}else{if(type=="error"){if(_362){_362(_36e,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_36f={"portletWindow":_36e,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}},transport:"XMLHTTPTransport"});return _36f;},getUserProfile:function(_373){if(!ibm.portal.portlet._SafeToExecute){if(_373){var me=this;this._queueUp(function(){me.getUserProfile(_373);});return false;}else{return this._throwInappropriateRequestError("getUserProfile");}}this.status=ibm.portal.portlet.PortletWindow.STATUS_UNDEFINED;var _url=document.getElementById("com.ibm.wps.web2.portlet.user."+this.windowID).innerHTML;var _376=this;var _377=null;dojo.xhrGet({url:_url,headers:{"If-Modified-Since":"Thu, 1 Jan 1970 00:00:00 GMT"},sync:(_373)?false:true,handleAs:"xml",handle:function(_378,_379){var type=(_378 instanceof Error)?"error":"load";if(type=="load"){var _37b=_378;if(!_37b||(typeof (dojox.data.dom.innerXML(_378))=="undefined")){_37b=dojox.data.dom.createDocument(_379.xhr.responseText);}var _37c=new ibm.portal.portlet.UserProfile(_376.windowID,_37b);if(_373){_373(_376,ibm.portal.portlet.PortletWindow.STATUS_OK,_37c);}else{_377={"portletWindow":_376,"status":ibm.portal.portlet.PortletWindow.STATUS_OK,"returnObject":_37c};}}else{if(type=="error"){if(_373){_373(_376,ibm.portal.portlet.PortletWindow.STATUS_ERROR,null);}else{_377={"portletWindow":_376,"status":ibm.portal.portlet.PortletWindow.STATUS_ERROR,"returnObject":null};}}}},transport:"XMLHTTPTransport"});return _377;},setUserProfile:function(_37d,_37e){if(!ibm.portal.portlet._SafeToExecute){if(_37e){var me=this;this._queueUp(function(){me.setUserPr