var InlineEditState = {"EDIT":{"cssClass":"inlineEditWrite","display":true},"NONE":{"cssClass":"","display":false},"POSTONLY":{"cssClass":"","display":false},"READONLY":{"cssClass":"inlineEditLock","display":true}}; var ColumnType = {"NAMESPACE":{"inlineEditable":false,"isCompond":true,"comparableDatatypes":["n"],"isNumber":false,"datatypeLetter":"n","needsLookup":false,"isDate":false},"HTMLMULTILINETEXT":{"inlineEditExtraData":["maxLength","isHtml"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarHtmlMultiLineTextField;},"inlineEditFieldObject":"HtmlMultiLineTextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["5"],"isNumber":false,"datatypeLetter":"5","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return HtmlMultiLineTextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"AUTONUMBER":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["V"],"isNumber":false,"datatypeLetter":"V","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"BLOB":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["H","X","S","L","E","U"],"isNumber":false,"datatypeLetter":"X","needsLookup":false,"isDate":false},"RAW":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["r"],"isNumber":false,"datatypeLetter":"r","needsLookup":false,"isDate":false},"PERSONNAME":{"inlineEditExtraData":["hasSalutation","inputOrder","reverse","picklistId","labels","hasMiddle","hasInformal","hasSuffix"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarPersonNameField;},"inlineEditFieldObject":"PersonNameField","inlineEditable":true,"isCompond":true,"comparableDatatypes":["M"],"isNumber":false,"datatypeLetter":"M","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return PersonNameField;}},"TEXT":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"S","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"EMAIL":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","S","L","E"],"isNumber":false,"datatypeLetter":"E","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"SFDCENCRYPTEDTEXT":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["T"],"isNumber":false,"datatypeLetter":"T","needsLookup":false,"isDate":false,"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"HTMLSTRINGPLUSCLOB":{"inlineEditExtraData":["maxLength","numCols","numRows","isHtml","basePath","caseSafe18Id","useCKEditor","visualforce","RTA_LIBRARY","csrfToken"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarHtmlStringPlusClobField;},"inlineEditFieldObject":"HtmlStringPlusClobField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["z"],"isNumber":false,"datatypeLetter":"z","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return HtmlStringPlusClobField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"SIMPLE_NAMESPACE":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["R"],"isNumber":false,"datatypeLetter":"R","needsLookup":false,"isDate":false,"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"INETADDRESS":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarInetAddressField;},"inlineEditFieldObject":"InetAddressField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["W"],"isNumber":false,"datatypeLetter":"W","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return InetAddressField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"BASE64":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["4"],"isNumber":false,"datatypeLetter":"4","needsLookup":false,"isDate":false},"TIMEONLY":{"inlineEditExtraData":["hasTime"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["f"],"isNumber":false,"datatypeLetter":"f","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"ANYTYPE":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["K"],"isNumber":false,"datatypeLetter":"K","needsLookup":false,"isDate":false},"DUEDATE":{"inlineEditExtraData":["hasTime"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarDateField;},"inlineEditFieldObject":"DateField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["D","F"],"isNumber":false,"datatypeLetter":"F","needsLookup":false,"isDate":true,"inlineEditFieldConstructor":function(){return DateField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"BIRTHDAY":{"inlineEditExtraData":["hasTime"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarDateField;},"inlineEditFieldObject":"DateField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["D","F"],"isNumber":false,"datatypeLetter":"D","needsLookup":false,"isDate":true,"inlineEditFieldConstructor":function(){return DateField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"INTEGER":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarNumberField;},"inlineEditFieldObject":"NumberField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["P","N"],"isNumber":true,"datatypeLetter":"N","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return NumberField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"BOOLEAN":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarBooleanField;},"inlineEditFieldObject":"BooleanField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["B"],"isNumber":false,"datatypeLetter":"B","needsLookup":true,"isDate":false,"inlineEditFieldConstructor":function(){return BooleanField;},"filterQueryOperators":["e","n"],"queryOperators":["e","n"]},"DATACATEGORYGROUPREFERENCE":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["d"],"isNumber":false,"datatypeLetter":"d","needsLookup":false,"isDate":false,"filterQueryOperators":["e","n"],"queryOperators":["e","n"]},"STATICENUM":{"inlineEditExtraData":["picklistData"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarStaticEnumField;},"inlineEditFieldObject":"StaticEnumField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"L","needsLookup":true,"isDate":false,"inlineEditFieldConstructor":function(){return StaticEnumField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"MULTIENUM":{"inlineEditExtraData":["picklistId","controller","controllerLabel","height","fieldEnumOrId"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarMultiEnumField;},"inlineEditFieldObject":"MultiEnumField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["Q"],"isNumber":false,"datatypeLetter":"Q","needsLookup":true,"isDate":false,"inlineEditFieldConstructor":function(){return MultiEnumField;},"filterQueryOperators":["e","n"],"queryOperators":["e","n","u","x"]},"ADDRESS":{"inlineEditExtraData":["hasAddressPicklists","addressFormat","labels"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarAddressField;},"inlineEditFieldObject":"AddressField","inlineEditable":true,"isCompond":true,"comparableDatatypes":["A"],"isNumber":false,"datatypeLetter":"A","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return AddressField;},"filterQueryOperators":["w","y"],"queryOperators":["w","y"]},"EXTERNALID":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["x"],"isNumber":false,"datatypeLetter":"x","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"LOCATION":{"inlineEditable":false,"isCompond":true,"comparableDatatypes":["g"],"isNumber":false,"datatypeLetter":"g","needsLookup":false,"isDate":false,"filterQueryOperators":["w","y"],"queryOperators":["w","y"]},"YEARQUARTER":{"inlineEditable":false,"isCompond":true,"comparableDatatypes":["O"],"isNumber":false,"datatypeLetter":"O","needsLookup":false,"isDate":false},"PHONE":{"inlineEditExtraData":["maxLength","formatPhone","addDir"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarPhoneField;},"inlineEditFieldObject":"PhoneField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L"],"isNumber":false,"datatypeLetter":"H","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return PhoneField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"JSON":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["j"],"isNumber":false,"datatypeLetter":"j","needsLookup":false,"isDate":false},"SWITCHABLE_PERSONNAME":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarnull;},"inlineEditable":true,"isCompond":true,"comparableDatatypes":["m"],"isNumber":false,"datatypeLetter":"m","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return null;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","c","k","s"]},"ADDRESSCOUNTRY":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"S","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"RECORDTYPE":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["7"],"isNumber":false,"datatypeLetter":"7","needsLookup":true,"isDate":false,"filterQueryOperators":["e","n"],"queryOperators":["e","n"]},"MULTILINETEXT":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarMultiLineTextField;},"inlineEditFieldObject":"MultiLineTextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["H","X","S","L","E","U"],"isNumber":false,"datatypeLetter":"X","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return MultiLineTextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"URL":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","S","L","U"],"isNumber":false,"datatypeLetter":"U","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"DIVISION":{"inlineEditExtraData":["picklistData"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarStaticEnumField;},"inlineEditFieldObject":"StaticEnumField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["I"],"isNumber":false,"datatypeLetter":"I","needsLookup":true,"isDate":false,"inlineEditFieldConstructor":function(){return StaticEnumField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"DYNAMICENUM":{"inlineEditExtraData":["picklistId","controller","controllerLabel","fieldEnumOrId"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarDynamicEnumField;},"inlineEditFieldObject":"DynamicEnumField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"L","needsLookup":true,"isDate":false,"inlineEditFieldConstructor":function(){return DynamicEnumField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"COMPLEXVALUETYPE":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["v"],"isNumber":false,"datatypeLetter":"v","needsLookup":false,"isDate":false},"DATEONLY":{"inlineEditExtraData":["hasTime"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarDateField;},"inlineEditFieldObject":"DateField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["D","F"],"isNumber":false,"datatypeLetter":"D","needsLookup":false,"isDate":true,"inlineEditFieldConstructor":function(){return DateField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"CONTENT":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["9"],"isNumber":false,"datatypeLetter":"9","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"DOUBLE":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarNumberField;},"inlineEditFieldObject":"NumberField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["P","N"],"isNumber":true,"datatypeLetter":"N","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return NumberField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"FILE":{"inlineEditable":false,"isCompond":true,"comparableDatatypes":["l"],"isNumber":false,"datatypeLetter":"l","needsLookup":false,"isDate":false},"LONG":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarNumberField;},"inlineEditFieldObject":"NumberField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["P","N"],"isNumber":true,"datatypeLetter":"N","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return NumberField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"CURRENCY":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarNumberField;},"inlineEditFieldObject":"NumberField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["C"],"isNumber":true,"datatypeLetter":"C","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return NumberField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"BITVECTOR":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["8"],"isNumber":false,"datatypeLetter":"8","needsLookup":false,"isDate":false,"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"ADDRESSSTATE":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"S","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"ENTITYID":{"inlineEditExtraData":["domain","useNewLookups","lookupEntityPrefix","lookupFieldEnumOrId","mruServletUri","mruAutoComplete","controllerIds","validationServletURI","matchBlanks"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarForeignKeyField;},"inlineEditFieldObject":"ForeignKeyField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["Y"],"isNumber":false,"datatypeLetter":"Y","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return ForeignKeyField;},"filterQueryOperators":["e","n","s"],"queryOperators":["e","n","s"]},"FFX_BLOB":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["H","X","S","L","E","U"],"isNumber":false,"datatypeLetter":"X","needsLookup":false,"isDate":false},"CURRENCYCODE":{"inlineEditExtraData":["picklistData"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarStaticEnumField;},"inlineEditFieldObject":"StaticEnumField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"L","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return StaticEnumField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"STRINGPLUSCLOB":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarMultiLineTextField;},"inlineEditFieldObject":"MultiLineTextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["J"],"isNumber":false,"datatypeLetter":"J","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return MultiLineTextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"DATETIME":{"inlineEditExtraData":["hasTime"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarDateField;},"inlineEditFieldObject":"DateField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["D","F"],"isNumber":false,"datatypeLetter":"F","needsLookup":false,"isDate":true,"inlineEditFieldConstructor":function(){return DateField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"ENCRYPTEDBASE64":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["c"],"isNumber":false,"datatypeLetter":"c","needsLookup":false,"isDate":false},"TEXTENUM":{"inlineEditExtraData":["maxLength"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarTextField;},"inlineEditFieldObject":"TextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["X","H","S","L","E","U"],"isNumber":false,"datatypeLetter":"L","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return TextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"PERCENT":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarNumberField;},"inlineEditFieldObject":"NumberField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["P","N"],"isNumber":true,"datatypeLetter":"P","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return NumberField;},"filterQueryOperators":["e","n","l","g","m","h"],"queryOperators":["e","n","l","g","m","h"]},"ENUMORID":{"inlineEditable":false,"isCompond":false,"comparableDatatypes":["e"],"isNumber":false,"datatypeLetter":"e","needsLookup":true,"isDate":false,"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"ENCRYPTEDTEXT":{"inlineEditExtraData":["maxLength","masked"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarEncryptedTextField;},"inlineEditFieldObject":"EncryptedTextField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["6"],"isNumber":false,"datatypeLetter":"6","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return EncryptedTextField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"FAX":{"inlineEditExtraData":["maxLength","formatPhone","addDir"],"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarPhoneField;},"inlineEditFieldObject":"PhoneField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["G"],"isNumber":false,"datatypeLetter":"G","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return PhoneField;},"filterQueryOperators":["e","n","c","k","s"],"queryOperators":["e","n","l","g","m","h","c","k","s","i"]},"JSONSTRINGPLUSCLOB":{"consoleSidebarInlineEditFieldConstructor":function(){return ConsoleSidebarJsonStringPlusClobField;},"inlineEditFieldObject":"JsonStringPlusClobField","inlineEditable":true,"isCompond":false,"comparableDatatypes":["s"],"isNumber":false,"datatypeLetter":"s","needsLookup":false,"isDate":false,"inlineEditFieldConstructor":function(){return JsonStringPlusClobField;}}}; var ZenCss = {"imgExt":"zen-imgExt","inputLarge":"zen-inputLarge","skipLinkTarget":"zen-skipLinkTarget","faqBackground":"zen-faqBackground","wizardBackground":"zen-wizardBackground","assistiveText":"zen-assistiveText","firstItem":"zen-firstItem","deemphasize":"zen-deemphasize","cropH":"zen-cropH","stats":"zen-stats","chattyBackground":"zen-chattyBackground","firstMenuItem":"zen-firstMenuItem","alertBackground":"zen-alertBackground","arrowMiddle":"zen-arrowMiddle","active":"zen-active","mediaBody":"zen-mediaBody","hdTableMenusCell":"zen-hdTableMenusCell","arrowCenter":"zen-arrowCenter","pipedList":"zen-pipedList","mhl":"zen-mhl","input":"zen-input","mhn":"zen-mhn","mhm":"zen-mhm","left":"zen-left","inlineListExt":"zen-inlineListExt","confirmBackground":"zen-confirmBackground","lastItem":"zen-lastItem","hdTableSearchCell":"zen-hdTableSearchCell","lastUnit":"zen-lastUnit","mhs":"zen-mhs","lowlight":"zen-lowlight","collapsed":"zen-collapsed","formFieldInfo":"zen-formFieldInfo","inputTiny":"zen-inputTiny","lastRow":"zen-lastRow","navMenus":"zen-navMenus","disabled":"zen-disabled","btn":"zen-btn","themed":"zen-themed","navViaMenus":"zen-navViaMenus","size4of5":"zen-size4of5","closeBtn":"zen-closeBtn","pageMsg":"zen-pageMsg","promoBtn":"zen-promoBtn","hasSubmenu":"zen-hasSubmenu","right":"zen-right","chartBackground":"zen-chartBackground","breadcrumbList":"zen-breadcrumbList","cropV":"zen-cropV","confirm":"zen-confirm","healthyPlanet":"zen-healthyPlanet","progress":"zen-progress","bodyOverlapsTabs":"zen-bodyOverlapsTabs","chart":"zen-chart","valueStrong":"zen-valueStrong","size1of2":"zen-size1of2","moreTabs":"zen-moreTabs","instructions":"zen-instructions","size1of1":"zen-size1of1","callout":"zen-callout","size1of5":"zen-size1of5","size1of4":"zen-size1of4","size1of3":"zen-size1of3","branding":"zen-branding","inlineList":"zen-inlineList","skinnyForm":"zen-skinnyForm","toggleOpen":"zen-toggleOpen","columnSort":"zen-columnSort","legal":"zen-legal","instructionsBackground":"zen-instructionsBackground","noEdit":"zen-noEdit","pal":"zen-pal","pan":"zen-pan","pam":"zen-pam","info":"zen-info","textMiddle":"zen-textMiddle","textBottom":"zen-textBottom","bodyInner":"zen-bodyInner","accessibleMode":"zen-accessibleMode","zen":"zen","pas":"zen-pas","inlineForm":"zen-inlineForm","inputSmall":"zen-inputSmall","prm":"zen-prm","prl":"zen-prl","list":"zen-list","mll":"zen-mll","prn":"zen-prn","mln":"zen-mln","importHeader":"zen-importHeader","mlm":"zen-mlm","prs":"zen-prs","warn":"zen-warn","formBody":"zen-formBody","mls":"zen-mls","hdTableLogoCell":"zen-hdTableLogoCell","detailList":"zen-detailList","navViaSearch":"zen-navViaSearch","pbm":"zen-pbm","arrowUp":"zen-arrowUp","pbl":"zen-pbl","page":"zen-page","pbn":"zen-pbn","pbs":"zen-pbs","headerTop":"zen-headerTop","listLarge":"zen-listLarge","numberedList":"zen-numberedList","h1":"zen-h1","h2":"zen-h2","toggleArrow":"zen-toggleArrow","h3":"zen-h3","hdTable":"zen-hdTable","h4":"zen-h4","h5":"zen-h5","inputFull":"zen-inputFull","h6":"zen-h6","formFieldAction":"zen-formFieldAction","expanded":"zen-expanded","hasActionsInHead":"zen-hasActionsInHead","innerBackground":"zen-innerBackground","tabCornerRight":"zen-tabCornerRight","divider":"zen-divider","detailTable":"zen-detailTable","end":"zen-end","warnBackground":"zen-warnBackground","sidebarCollapsed":"zen-sidebarCollapsed","valueOk":"zen-valueOk","bodyZen":"zen-bodyZen","start":"zen-start","ptm":"zen-ptm","ptl":"zen-ptl","label":"zen-label","ptn":"zen-ptn","message":"zen-message","pts":"zen-pts","disabledBtn":"zen-disabledBtn","form":"zen-form","primaryBtn":"zen-primaryBtn","standardBackground":"zen-standardBackground","textLeft":"zen-textLeft","recycleBackground":"zen-recycleBackground","select":"zen-select","pageBoxHeader":"zen-pageBoxHeader","actionLink":"zen-actionLink","collapsible":"zen-collapsible","sideNorth":"zen-sideNorth","corner":"zen-corner","labelMedium":"zen-labelMedium","sidebar":"zen-sidebar","faq":"zen-faq","options":"zen-options","stepsHeader":"zen-stepsHeader","listMedium":"zen-listMedium","sideEast":"zen-sideEast","size2of5":"zen-size2of5","cropMe":"zen-cropMe","pvm":"zen-pvm","size2of3":"zen-size2of3","pvl":"zen-pvl","pvn":"zen-pvn","handle":"zen-handle","fieldLarge":"zen-fieldLarge","pvs":"zen-pvs","goToRecord":"zen-goToRecord","field":"zen-field","toggleIntro":"zen-toggleIntro","hasTabOrganizer":"zen-hasTabOrganizer","arrowTop":"zen-arrowTop","fieldMedium":"zen-fieldMedium","guidedTour":"zen-guidedTour","pageFooter":"zen-pageFooter","hasActionsInFoot":"zen-hasActionsInFoot","cornerRight":"zen-cornerRight","listSmall":"zen-listSmall","sideWest":"zen-sideWest","mam":"zen-mam","mal":"zen-mal","man":"zen-man","headerBottom":"zen-headerBottom","selectArrow":"zen-selectArrow","notNeeded":"zen-notNeeded","mas":"zen-mas","arrowLeft":"zen-arrowLeft","mrl":"zen-mrl","errorMessage":"zen-errorMessage","mrn":"zen-mrn","mrm":"zen-mrm","toggle":"zen-toggle","trigger":"zen-trigger","chartHeader":"zen-chartHeader","toggleShowAll":"zen-toggleShowAll","menu":"zen-menu","mrs":"zen-mrs","hasDefault":"zen-hasDefault","noSubmenu":"zen-noSubmenu","labelSmall":"zen-labelSmall","help":"zen-help","inputMedium":"zen-inputMedium","phm":"zen-phm","phl":"zen-phl","mbl":"zen-mbl","phn":"zen-phn","mbn":"zen-mbn","highlightBtn":"zen-highlightBtn","mbm":"zen-mbm","phs":"zen-phs","mbs":"zen-mbs","date":"zen-date","quick":"zen-quick","data":"zen-data","textRight":"zen-textRight","arrow":"zen-arrow","simple":"zen-simple","main":"zen-main","body":"zen-body","noTabOrganizer":"zen-noTabOrganizer","handleBottom":"zen-handleBottom","sideSouth":"zen-sideSouth","handleMiddle":"zen-handleMiddle","textTop":"zen-textTop","labelMediumLarge":"zen-labelMediumLarge","actionBtn":"zen-actionBtn","fieldSmall":"zen-fieldSmall","checkGroup":"zen-checkGroup","bgdThemed":"zen-bgdThemed","quickHeader":"zen-quickHeader","mtl":"zen-mtl","mtn":"zen-mtn","mtm":"zen-mtm","inner":"zen-inner","mts":"zen-mts","unit":"zen-unit","header":"zen-header","basic":"zen-basic","arrowRight":"zen-arrowRight","size3of5":"zen-size3of5","pageMessages":"zen-pageMessages","note":"zen-note","img":"zen-img","skipLink":"zen-skipLink","footer":"zen-footer","line":"zen-line","size3of4":"zen-size3of4","valueNotOk":"zen-valueNotOk","detailListExt":"zen-detailListExt","box":"zen-box","media":"zen-media","hasMessages":"zen-hasMessages","highlight":"zen-highlight","mediaExt":"zen-mediaExt","bulletedList":"zen-bulletedList","midlight":"zen-midlight","popHeader":"zen-popHeader","subPageMsg":"zen-subPageMsg","infoBackground":"zen-infoBackground","textCenter":"zen-textCenter","value":"zen-value","handleTop":"zen-handleTop","pageBoxFooter":"zen-pageBoxFooter","mvl":"zen-mvl","arrowBottom":"zen-arrowBottom","mvn":"zen-mvn","requiredMark":"zen-requiredMark","mvm":"zen-mvm","mvs":"zen-mvs","customBranding":"zen-customBranding","cropEllipsis":"zen-cropEllipsis","plm":"zen-plm","pll":"zen-pll","pln":"zen-pln","pls":"zen-pls","tabMenu":"zen-tabMenu","cornerLeft":"zen-cornerLeft","assistiveLink":"zen-assistiveLink"}; var UiSkin = {"WEBSTORE":{"dbValue":"3","apiValue":"Webstore"},"SALESFORCE":{"dbValue":"1","apiValue":"Theme2"},"ALOHA":{"dbValue":"4","apiValue":"Theme3"},"PORTAL_DEFAULT":{"dbValue":"2","apiValue":"PortalDefault"},"TOUCH":{"dbValue":"5","apiValue":"Touch"},"CLASSIC":{"dbValue":"0","apiValue":"Theme1"}}; var PerfLogLevel = {"INTERNAL":{"name":"INTERNAL","value":2},"DEBUG":{"name":"DEBUG","value":1},"PRODUCTION":{"name":"PRODUCTION","value":3}}; var QueryOperator = {"RANGE_INCL_RIGHT":{"value":"R"},"NOT_WITHIN":{"value":"y"},"WITHIN":{"value":"w"},"CONTAINS":{"value":"c"},"INCLUDES":{"value":"u"},"ABOVE":{"value":"V"},"GREATER_OR_EQUAL":{"value":"h"},"RANGE_EXCLUSIVE":{"value":"E"},"BELOW":{"value":"B"},"GREATER_THAN":{"value":"g"},"EXCLUDES":{"value":"x"},"NOT_EXACT_EQUALS":{"value":"o"},"EXACT_EQUALS":{"value":"a"},"EQUALS":{"value":"e"},"STARTS_WITH":{"value":"s"},"RANGE_INCL_LEFT":{"value":"L"},"LESS_THAN":{"value":"l"},"LESS_OR_EQUAL":{"value":"m"},"AT":{"value":"A"},"LIKE":{"value":"i"},"NOT_CONTAIN":{"value":"k"},"NOT_EQUAL":{"value":"n"},"NOT_START_WITH":{"value":"t"},"NOT_LIKE":{"value":"j"},"RANGE_INCLUSIVE":{"value":"I"},"ABOVE_OR_BELOW":{"value":"O"}}; var LayoutItemTypeEnum = {"ANALYTICS_CLOUD_COMPONENT":{"dbValue":"W","apiValue":"W"},"STANDARD_RELATED_LIST":{"dbValue":"R","apiValue":"R"},"DETAIL_BUTTON_BAR":{"dbValue":"B","apiValue":"B"},"PAGE":{"dbValue":"P","apiValue":"P"},"EMPTY_SPACE":{"dbValue":"E","apiValue":"E"},"STANDARD_FIELD":{"dbValue":"F","apiValue":"F"},"CUSTOM_FIELD":{"dbValue":"C","apiValue":"C"},"RELATED_LOOKUP":{"dbValue":"U","apiValue":"U"},"CUSTOM_S_CONTROL":{"dbValue":"S","apiValue":"S"},"AURA_COMPONENT":{"dbValue":"A","apiValue":"A"},"CUSTOM_RELATED_LIST":{"dbValue":"L","apiValue":"L"},"TAGGING":{"dbValue":"T","apiValue":"T"},"CANVAS":{"dbValue":"N","apiValue":"N"},"CUSTOM_LINK":{"dbValue":"K","apiValue":"K"},"ANALYTICS_COMPONENT":{"dbValue":"V","apiValue":"V"},"CONTROL":{"dbValue":"O","apiValue":"O"}}; /* * This code is for Internal Salesforce use only, and subject to change without notice. * Customers shouldn't reference this file in any web pages. */ function copyInnerHTML(a,b){b.innerHTML=a.innerHTML}function listProperties(a){var b="",c;for(c in a)b+=c+", ";alert(b)}function getLocalOffsetTop(a){return getLocalOffset(a,"Top")}function getLocalOffsetLeft(a){return getLocalOffset(a,"Left")}function getLocalOffset(a,b){var c=a["offset"+b],d;try{d=a.offsetParent}catch(e){return c}for(;d&&"static"==getCurrentStyle(d,"position");){c+=d["offset"+b];try{d=d.offsetParent}catch(f){break}}return c} function makeAjaxRequest(a,b){if(window.XMLHttpRequest)xmlhttp=new XMLHttpRequest;else if(window.ActiveXObject)xmlhttp=new ActiveXObject("MSXML2.XMLHTTP");else return!1;xmlhttp.open("GET",a,!0);xmlhttp.onreadystatechange=function(){4==xmlhttp.readyState&&b&&b(xmlhttp.responseText)};xmlhttp.send(null)} function getElementsByClassName(a,b,c){b||(b=document.body);if(b.getElementsByClassName){var d=b.getElementsByClassName(a);if(strTagNameUpper=c?c.toUpperCase():null){if(Array.filter)return Array.filter(d,function(a){return a.nodeName==strTagNameUpper});c=[];a=d.length;for(b=0;blastMouseX-c&&(lastMouseX=c),lastMouseY+d>screen.height&&(lastMouseY-=lastMouseY+d+50-screen.height),lastMouseX-=c,lastMouseY+=10,e+=",screenX\x3d"+lastMouseX+",left\x3d"+lastMouseX+",screenY\x3d"+lastMouseY+",top\x3d"+lastMouseY);g?(curPopupWindow=window.open(a,b,e,!1),curPopupWindow.focus()):(win=window.open(a,b,e,!1),win.focus());m&&(closeOnParentUnloadWindow=win)} function openPopupFocusWithOffset(a,b,c,d){win=window.open(a,"",b);win.moveTo(window.pageXOffset+c,window.pageYOffset+d);win.focus()}var closetimer,ie9=0<=navigator.userAgent.indexOf("MSIE 9");function closePopupOnBodyFocus(){ie9?(closetimer&&clearTimeout(closetimer),closetimer=window.setTimeout(function(){closetimer=null;closePopup()},500)):closePopup()} function closePopup(){closetimer&&(clearTimeout(closetimer),closetimer=null);if(null!=curPopupWindow){try{if(curPopupWindow.confirmOnClose&&curPopupWindow.confirm(curPopupWindow.confirmOnCloseLabel))return curPopupWindow.confirmOnClose=!1,curPopupWindow.focus(),!1;curPopupWindow.close()}catch(a){}curPopupWindow=null}}var modalWindow=null;function ignoreModalEvents(a){return!1} function handleModalFocus(){modalWindow&&(modalWindow.closed?(window.top.releaseEvents(Event.CLICK|Event.FOCUS),window.top.onclick=""):modalWindow.focus());return!1}function invokeResultFunc(){(window.dialogArguments?window.dialogArguments:window.opener.resultFunc)()} function openPopupModal(a,b,c,d,e,f,g){try{if(window.showModalDialog)window.showModalDialog(a,null==f?window:f,e);else if(window.top.captureEvents)window.top.captureEvents(Event.CLICK|Event.FOCUS),window.top.onclick=ignoreModalEvents,window.top.onfocus=handleModalFocus,modalWindow=window.open(a,b,e+",modal\x3dyes"),f&&(window.resultFunc=f);else return g?g():openPopup(a,b,c,d,e,!1)}catch(m){modalWindow=window.open(a,b,e+",modal\x3dyes"),f&&(window.resultFunc=f),Sfdc.log(m)}}var clickedLink,warningText; function confirmPopup(a,b,c,d,e,f){clickedLink=e.href?e.href:e;warningText=f;e=new Function("window.location \x3d clickedLink");e.window=window;openPopupModal(a,"_blank",b,c,d,e,new Function("return confirm(warningText)"));return!1}function openLookup(a,b,c,d){"1"==c&&(a+=d);openPopup(a,"lookup",350,480,"width\x3d"+b+",height\x3d480,toolbar\x3dno,status\x3dno,directories\x3dno,menubar\x3dno,resizable\x3dyes,scrollable\x3dno",!0)} function pick(a,b,c,d){document.getElementById(a)[b].value=c;if(d)document.getElementById(a)[b].onchange();closePopup();return!1}function pickSubmit(a,b,c,d){document.getElementById(a)[b].value=c;if(d)document.getElementById(a)[b].onchange();document.getElementById(a).submit();closePopup();hiddenOrDisabled(document.getElementById(a)[b])||(document.getElementById(a)[b].focus(),document.getElementById(a)[b].select());return!1} function hiddenOrDisabled(a){do{if(null==a||"hidden"==a.type||a.disabled||"none"==getCurrentStyle(a,"display")||"hidden"==getCurrentStyle(a,"visibility"))return!0;a=a.parentNode}while(null!=a&&"BODY"!=a.tagName);return!1}function hiddenOrDisabledOrReadOnly(a){do{if(null==a||"hidden"==a.type||a.readOnly||a.disabled||"none"==getCurrentStyle(a,"display")||"hidden"==getCurrentStyle(a,"visibility"))return!0;a=a.parentNode}while(null!=a&&"BODY"!=a.tagName);return!1} function pickcolor(a,b,c){var d=parseInt(c,16);a=document.getElementById(a)[b];a.setValue?a.setValue(d):a.value=d;document.getElementById(b+"cell").style.backgroundColor="#"+c;closePopup();return!1}function comboBoxPick(a,b,c,d){a=document.getElementById(a)[b];null!=a&&(c=eval(c),null!=c&&(0<=d&&da;a++)for(var b=a,c=0;c=f&&(0==e?c+="(":3==e?c+=") ":6==e&&(c+="-"),c+=f,e++);if(!("0"<=f&&"9">=f)&&" "!=f&&"-"!=f&&"."!=f&&"("!=f&&")"!=f){d=i;break}}0<=d&&(c+=" "+b.substring(d,b.length));10==e&&40>=c.length&&(a.value=c)}return!0} function clearcols(){for(var a=0;a=c?b+=escape(a.charAt(i)):2047>=c?b+="%"+(c>>6|192).toString(16)+"%"+(c&63|128).toString(16):2048<=c&&(b+="%"+(c>>12|224).toString(16)+"%"+(c>>6&63|128).toString(16)+"%"+(c&63|128).toString(16))}return b}function openRefer(a){window.open(a,"referv2","resizable\x3dno,toolbar\x3dno,status\x3dno,directories\x3dno,scrollbars\x3dyes,width\x3d420,height\x3d500",!1)} function changeOpenerWindowLocation(a){null==window.top.opener||window.top.opener.closed?window.top.open(a):(window.top.opener.location.href=a,window.top.opener.focus())}function verifyUnderLimit(a,b,c,d){var e=0;for(i=0;ic)return alert(d),!1;return!0}function verifyChecked(a,b,c){for(i=0;i/g,"\x26gt;"));return a} function unescapeHTML(a){a&&a.replace&&(a=a.replace(/\&/g,"\x26"),a=a.replace(/</g,"\x3c"),a=a.replace(/>/g,"\x3e"));return a}function unescapeJsInHtml(a){a&&a.replace&&(a=a.replace(/\\\\/g,"\\"),a=a.replace(/\\'/g,"'"),a=a.replace(/\\n/g,"\n"),a=a.replace(/"/g,'"'));return a}function unescapeXML(a){a&&a.replace&&(a=a.replace(/\&/g,"\x26"),a=a.replace(/</g,"\x3c"),a=a.replace(/>/g,"\x3e"),a=a.replace(/"/g,'"'),a=a.replace(/'/g,"'"));return a} function isValidEmail(a,b){if(!a)return!1;a=a.toLowerCase();var c=a.split("@");if(2!=c.length||0>c[1].indexOf("."))return!1;if(b){for(var d=b.split(","),e=0;ea.indexOf(".")||0<=a.indexOf("..")||(0<=a.indexOf(".-")||0<=a.indexOf("-."))||("."==a.charAt(0)||"-"==a.charAt(0))||("."==a.charAt(a.length-1)||"-"==a.charAt(a.length-1))||"localhost.localdomain"==a.toLowerCase())return!1;a=a.split(".");return!a||2>a.length||0==a[0].length||1>=a[1].length?!1:!0} function setCookie(a,b,c,d,e){document.cookie=a+"\x3d"+(e?encodeURIComponent:escape)(b)+(c?"; expires\x3d"+c.toGMTString():"")+(d?"; path\x3d"+d:"; path\x3d/")}function getCookie(a){var b=document.cookie;a+="\x3d";var c=b.indexOf("; "+a);if(-1==c){if(c=b.indexOf(a),0!=c)return null}else c+=2;var d=document.cookie.indexOf(";",c);-1==d&&(d=b.length);return unescape(b.substring(c+a.length,d))} function deleteCookie(a,b){if(getCookie(a)){var c=new Date((new Date).getTime()+-1E4);document.cookie=a+"\x3d-deleted-"+(b?"; path\x3d"+b:"; path\x3d/")+"; expires\x3d"+c.toGMTString()}}function addTwistCookie(a,b,c){var d=getCookie(a);c=b+":"+(c?"1":"0")+",";if(d){for(var e=d.indexOf(b);-1c?c-encryptionAESBlockSize+h+1:g+h),g=Math.max(k,g),k=c-g):(l=g.value.length+h,k=b-l,50g&&(k=g)));Sfdc.Dom.addClass(m.parentNode,"textCounterMiddle");0>k?(Sfdc.Dom.addClass(m.parentNode,"over"),Sfdc.Dom.removeClass(m.parentNode,"warn"),m.innerHTML=f?e:-1*k+" "+e):50>k?(Sfdc.Dom.removeClass(m.parentNode, "over"),Sfdc.Dom.addClass(m.parentNode,"warn"),m.innerHTML=k+" "+d):Sfdc.Dom.removeClass(m.parentNode,["over","warn"])},500)}var filterLookupValueElem; function openFilterLookupWindow(a,b,c,d){filterLookupValueElem=d;c=document.getElementById(c);c="number"==typeof c.selectedIndex?c.options[c.selectedIndex]:c;if(null!=a||null==b){a=document.getElementById(a);d=a.action;var e=a.target,f=a.lookup.value;null!=b&&(a.action=b);a.target="filter_lookup";a.lookup.value=c.value;a.submit();a.action=d;a.target=e;a.lookup.value=f}else a=0<=b.indexOf("?")?"\x26":"?",curPopupWindow.location.href=b+a+"lookup\x3d"+c.value+"\x26workflow\x3d1"} function submitCalcAgg(a,b){var c=document.report;c||(c=opener.document.report);c.target="aggcalc_popup";c.calcagg_request.value=a;c.calcagg_index.value=b;if("new"==a)clearCalcAgg(c,"_v");else if("edit"==a)copyCalcaggParams(c,b,c,"_v");else if("done"==a||"validate"==a){var d=document.getElementById("calcagg_form");copyCalcaggParams(d,"_v",c,"_v")}c.nav.value="agg";c.submit();c.calcagg_request.value="";c.target=""} function finishValidCalcAgg(a){var b=opener.document.getElementById("report"),c=document.getElementById("calcagg_form");b.calcagg_index.value=a;copyCalcaggParams(c,"_v",b,a);b.calcagg_active_v.value=c.calcagg_name_v.value;b.nav.value="agg";b.submit();self.close()}var calcagg_params="calcagg_label calcagg_name calcagg_formula calcagg_type calcagg_desc calcagg_scale".split(" ");function clearCalcAgg(a,b){for(var c in calcagg_params)a[calcagg_params[c]+b].value=""} function deleteCalcAgg(a){var b=document.getElementById("report");clearCalcAgg(b,a);b.nav.value="agg";b.submit()}function copyCalcaggParams(a,b,c,d){for(var e in calcagg_params)c[calcagg_params[e]+d].value=a[calcagg_params[e]+b].value}function getIframeContents(a){return(a.contentDocument||a.contentWindow.document).body.innerHTML} function adjustIFrameSize(a){if(a){var b;a.contentDocument?b=a.contentDocument.body.offsetHeight:(b=document.frames&&document.frames(a.id)?document.frames(a.id).document.body:a.document.body,b=0>=b.children.length?0:b.scrollHeight);var c=a.height-b;0>c&&(c=-c);15c&&(d=c,e=a.height*c/a.width);if(d(" "+a.className+" ").indexOf(" "+b+" ")&&(a.className+=a.className&&0InlineHelp.SUFFIX_DELIMITER.length&&(c=c.substring(0,c.lastIndexOf(InlineHelp.SUFFIX_DELIMITER)),a.showHelp(c,helpSpan,b))}};this.handleHelpUnhover=function(b){var c=getEventTarget(getEvent(b));c&&!UserContext.isAccessibleMode&&(c.className==InlineHelp.CLASS_NAME_HOVER&&mouseExited(b,c)?c.className=InlineHelp.CLASS_NAME:"LABEL"==c.nodeName&&c.parentNode.className==InlineHelp.CLASS_NAME_HOVER&&mouseExited(b,c.parentNode)?c.parentNode.className=InlineHelp.CLASS_NAME:c.className==InlineHelp.DISPLAY_DIV_CLASS&& mouseExited(b,c)?(b=getEventToElement(getEvent(b)))&&(b.className!=InlineHelp.ORB&&a.helpFader)&&a.helpFader.fadeOut():c.className==InlineHelp.ORB&&mouseExited(b,c)&&(b=getEventToElement(getEvent(b)),c=c.parentNode,UserContext.isAccessibleMode&&(c=c.parentNode),b.className!=InlineHelp.DISPLAY_DIV_CLASS&&(b!=c&&(c.className=InlineHelp.CLASS_NAME),a.helpFader&&a.helpFader.fadeOut())))};this.appendToOnloadQueue(function(){addEvent(window,"resize",function(){a.executeOnResizeQueue()});addEvent(document, "mouseover",a.handleHelpHover,!1);addEvent(document,"mouseout",a.handleHelpUnhover,!1);(Sfdc.userAgent.isIE6||Sfdc.userAgent.isIE7||Sfdc.userAgent.isIE8)&&addEvent(document.body,"click",a.handleLabelClickIEOnly)});this.appendToOnloadQueue(GenericSfdcPage.displayAlohaWarning);this.appendToOnloadQueue(GenericSfdcPage.setHTPortalCookie)}GenericSfdcPage.STATE_CLEAN=0;GenericSfdcPage.STATE_DIRTY=1;GenericSfdcPage.STATE_ERROR=2;GenericSfdcPage.STATE_SAVING=3;GenericSfdcPage.UPDATE_DIRTY_STATE_EVENT="updateDirtyState"; GenericSfdcPage.prototype.init=function(){this.onLoadQueue=[];this.onBeforeUnloadQueue=[];this.onResizeQueue=[];this.hasRun=!1;this.relatedLists=[];this.relatedListsById={};this.dialogs={};this.messages={};this.appendToOnloadQueue(function(){try{document.execCommand("BackgroundImageCache",!1,!0)}catch(a){}},"Turn on CSS background image cache (IE6 only)")}; GenericSfdcPage.prototype.handleLabelClickIEOnly=function(a){var b=getEvent(a);if((b=getEventTarget(b))&&"LABEL"==b.tagName&&b.htmlFor)if(b=getElementByIdCS(b.htmlFor))type=(b.type||"").toLowerCase(),("checkbox"==type||"radio"==type)&&b.click(),b.focus&&(b.focus(),a.returnValue=!1)};GenericSfdcPage.prototype.prependToOnloadQueue=function(a,b){b&&(a.desc=b);this.hasRun?this.execFunctionNoThrow(a):this.onLoadQueue.unshift(a)}; GenericSfdcPage.prototype.appendToOnloadQueue=function(a,b){b&&(a.desc=b);this.hasRun?this.execFunctionNoThrow(a):this.onLoadQueue.push(a)}; GenericSfdcPage.prototype.executeOnloadQueue=function(){if(!this.hasRun){this.hasRun=!0;GenericSfdcPage.HAS_INITIALIZED_TAB_ORGANIZER||(GenericSfdcPage.HAS_INITIALIZED_TAB_ORGANIZER=!0,SfdcApp.Controls.TabOrganizer&&new SfdcApp.Controls.TabOrganizer);for(var a=0;this.onLoadQueue&&a[GenericSfdcPage.EPT_COOKIE].indexOf(a)||0>b.indexOf(window.location.host)};GenericSfdcPage.prototype.prependToOnResizeQueue=function(a,b){b&&(a.desc=b);this.onResizeQueue.unshift(a)};GenericSfdcPage.prototype.appendToOnResizeQueue=function(a,b){b&&(a.desc=b);this.onResizeQueue.push(a)};GenericSfdcPage.prototype.executeOnResizeQueue=function(){for(var a=0;this.onResizeQueue&&ab?{name:a}:{name:a.substring(0,b),extension:a.substring(b+1,a.length)}},getFileNameFromFileInputUsingJS:function(a){if(a.files&&a.files.item(0)){var b=a.files.item(0).fileName;b||(b=a.files.item(0).name);return b}return a.value},extend:function(a,b){var c=function(){};c.prototype=b.prototype;c=new c;c.constructor=a;a.prototype=c},functionMapping:{},stripCustomFunctionFromObjectPrototype:function(a){var b=this.functionMapping[a]; b||(b={});for(var c in a.prototype)a.prototype.hasOwnProperty(c)&&(b[c]=a.prototype[c],delete a.prototype[c]);this.functionMapping[a]=b},restoreCustomFunctionsToObjectPrototype:function(a){var b=this.functionMapping[a];if(b){for(var c in b)if((!b.hasOwnProperty||b.hasOwnProperty(c))&&"undefined"===typeof a.prototype[c])a.prototype[c]=b[c];this.functionMapping[a]=null}},loadedScripts:{},loadScripts:function(a,b,c){if(b==a.length)c();else{var e=a[b];if(Util.loadedScripts[e])Util.loadScripts(a,b+1,c); else{Util.loadedScripts[e]=!0;var f=document.createElement("script");f.setAttribute("type","text/javascript");f.setAttribute("src",e);f.readyState?f.onreadystatechange=function(){if("loaded"===f.readyState||"complete"===f.readyState)f.onreadystatechange=null,Util.loadScripts(a,b+1,c)}:f.onload=function(){Util.loadScripts(a,b+1,c)};document.getElementsByTagName("head")[0].appendChild(f)}}}}; Array.isArray||(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)}); Date.now||(Date.now=function(){return+new Date}); Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Array.prototype.slice.call(arguments,1);return function(){return b.apply(a,c.concat(Array.prototype.slice.call(arguments,0)))}}); this.Node||(this.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}); Object.keys||(Object.keys=function(){var e=Object.prototype.hasOwnProperty,f=!{toString:null}.propertyIsEnumerable("toString"),c="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),g=c.length;return function(b){if("object"!==typeof b&&"function"!==typeof b||null===b)throw new TypeError("Object.keys called on non-object");var d=[],a;for(a in b)e.call(b,a)&&d.push(a);if(f)for(a=0;a|\{|&|=|!/;v.prototype.eos=function(){return""===this.tail};v.prototype.scan=function(a){a=this.tail.match(a);if(!a||0!==a.index)return"";a=a[0];this.tail=this.tail.substring(a.length);this.pos+=a.length;return a};v.prototype.scanUntil=function(a){a=this.tail.search(a);var c;switch(a){case -1:c= this.tail;this.tail="";break;case 0:c="";break;default:c=this.tail.substring(0,a),this.tail=this.tail.substring(a)}this.pos+=c.length;return c};s.prototype.push=function(a){return new s(a,this)};s.prototype.lookup=function(a){var c=this.cache,b;if(c.hasOwnProperty(a))b=c[a];else{for(var d=this,e,g,h=!1;d;){if(0"'`=\/]/g,function(a){return K[a]})};k.Scanner=v;k.Context=s;k.Writer=m;return k}); (function(G){function r(a,b,c,d){var e,f,g,s,k,w=b&&b.ownerDocument,u=b?b.nodeType:9;c=c||[];if("string"!==typeof a||!a||1!==u&&9!==u&&11!==u)return c;if(!d&&((b?b.ownerDocument||b:x)!==h&&H(b),b=b||h,B)){if(11!==u&&(s=va.exec(a)))if(e=s[1])if(9===u)if(f=b.getElementById(e)){if(f.id===e)return c.push(f),c}else return c;else{if(w&&(f=w.getElementById(e))&&Q(b,f)&&f.id===e)return c.push(f),c}else{if(s[2])return I.apply(c,b.getElementsByTagName(a)),c;if((e=s[3])&&p.getElementsByClassName&&b.getElementsByClassName)return I.apply(c, b.getElementsByClassName(e)),c}if(p.qsa&&!T[a+" "]&&(!v||!v.test(a))){if(1!==u)w=b,k=a;else if("object"!==b.nodeName.toLowerCase()){(g=b.getAttribute("id"))?g=g.replace(ka,la):b.setAttribute("id",g=n);f=R(a);for(e=f.length;e--;)f[e]="#"+g+" "+U(f[e]);k=f.join(",");w=ba.test(a)&&ca(b.parentNode)||b}if(k)try{return I.apply(c,w.querySelectorAll(k)),c}catch(q){}finally{g===n&&b.removeAttribute("id")}}}return ma(a.replace(V,"$1"),b,c,d)}function da(){function a(c,d){b.push(c+" ")>l.cacheLength&&delete a[b.shift()]; return a[c+" "]=d}var b=[];return a}function A(a){a[n]=!0;return a}function C(a){var b=h.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function ea(a,b){for(var c=a.split("|"),d=c.length;d--;)l.attrHandle[c[d]]=b}function na(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function wa(a){return function(b){return"input"===b.nodeName.toLowerCase()&& b.type===a}}function xa(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"label"in b&&b.disabled===a||"form"in b&&b.disabled===a||"form"in b&&!1===b.disabled&&(b.isDisabled===a||b.isDisabled!==!a&&("label"in b||!ya(b))!==a)}}function K(a){return A(function(b){b=+b;return A(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)if(c[e=f[g]])c[e]=!(d[e]=c[e])})})}function ca(a){return a&&"undefined"!==typeof a.getElementsByTagName&& a}function pa(){}function U(a){for(var b=0,c=a.length,d="";b+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/, Ha=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,Ia=RegExp(":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"),Ja=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,aa={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/, TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:RegExp("^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]"),PSEUDO:RegExp("^:((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)"), CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:RegExp("^[\\x20\\t\\r\\n\\f]*[\x3e+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?\x3d[^-]|$)", "i")},Ka=/^(?:input|select|textarea|button)$/i,La=/^h\d$/i,S=/^[^{]+\{\s*\[native \w/,va=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ba=/[+~]/,E=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,F=function(a,b,c){a="0x"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},ka=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,la=function(a,b){return b?"\x00"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},ua=function(){H()}, ya=W(function(a){return!0===a.disabled},{dir:"parentNode",next:"legend"});try{I.apply(N=ta.call(x.childNodes),x.childNodes),N[x.childNodes.length].nodeType}catch(Na){I={apply:N.length?function(a,b){Da.apply(a,ta.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}p=r.support={};qa=r.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};H=r.setDocument=function(a){var b;a=a?a.ownerDocument||a:x;if(a===h||9!==a.nodeType||!a.documentElement)return h; h=a;z=h.documentElement;B=!qa(h);if(x!==h&&(b=h.defaultView)&&b.top!==b)b.addEventListener?b.addEventListener("unload",ua,!1):b.attachEvent&&b.attachEvent("onunload",ua);p.attributes=C(function(a){a.className="i";return!a.getAttribute("className")});p.getElementsByTagName=C(function(a){a.appendChild(h.createComment(""));return!a.getElementsByTagName("*").length});p.getElementsByClassName=S.test(h.getElementsByClassName);p.getById=C(function(a){z.appendChild(a).id=n;return!h.getElementsByName||!h.getElementsByName(n).length}); p.getById?(l.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&B){var e=b.getElementById(a);return e?[e]:[]}},l.filter.ID=function(a){var b=a.replace(E,F);return function(a){return a.getAttribute("id")===b}}):(delete l.find.ID,l.filter.ID=function(a){var b=a.replace(E,F);return function(a){return(a="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}});l.find.TAG=p.getElementsByTagName?function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a); if(p.qsa)return b.querySelectorAll(a)}:function(a,b){var e,f=[],g=0,s=b.getElementsByTagName(a);if("*"===a){for(;e=s[g++];)1===e.nodeType&&f.push(e);return f}return s};l.find.CLASS=p.getElementsByClassName&&function(a,b){if("undefined"!==typeof b.getElementsByClassName&&B)return b.getElementsByClassName(a)};M=[];v=[];if(p.qsa=S.test(h.querySelectorAll))C(function(a){z.appendChild(a).innerHTML="\x3ca id\x3d'"+n+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+n+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e"; a.querySelectorAll("[msallowcapture^\x3d'']").length&&v.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||v.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");a.querySelectorAll("[id~\x3d"+n+"-]").length||v.push("~\x3d");a.querySelectorAll(":checked").length||v.push(":checked");a.querySelectorAll("a#"+n+"+*").length||v.push(".#.+[+~]")}),C(function(a){a.innerHTML= "\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";var b=h.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name\x3dd]").length&&v.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==a.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled");z.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled");a.querySelectorAll("*,:x"); v.push(",.*:")});(p.matchesSelector=S.test($=z.matches||z.webkitMatchesSelector||z.mozMatchesSelector||z.oMatchesSelector||z.msMatchesSelector))&&C(function(a){p.disconnectedMatch=$.call(a,"*");$.call(a,"[s!\x3d'']:x");M.push("!\x3d",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}); v=v.length&&RegExp(v.join("|"));M=M.length&&RegExp(M.join("|"));Q=(b=S.test(z.compareDocumentPosition))||S.test(z.contains)?function(a,b){var e=9===a.nodeType?a.documentElement:a,f=b&&b.parentNode;return a===f||!(!f||!(1===f.nodeType&&(e.contains?e.contains(f):a.compareDocumentPosition&&a.compareDocumentPosition(f)&16)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};ja=b?function(a,b){if(a===b)return P=!0,0;var e=!a.compareDocumentPosition-!b.compareDocumentPosition;if(e)return e; e=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return e&1||!p.sortDetached&&b.compareDocumentPosition(a)===e?a===h||a.ownerDocument===x&&Q(x,a)?-1:b===h||b.ownerDocument===x&&Q(x,b)?1:J?L(J,a)-L(J,b):0:e&4?-1:1}:function(a,b){if(a===b)return P=!0,0;var e,f=0;e=a.parentNode;var g=b.parentNode,s=[a],k=[b];if(!e||!g)return a===h?-1:b===h?1:e?-1:g?1:J?L(J,a)-L(J,b):0;if(e===g)return na(a,b);for(e=a;e=e.parentNode;)s.unshift(e);for(e=b;e=e.parentNode;)k.unshift(e);for(;s[f]=== k[f];)f++;return f?na(s[f],k[f]):s[f]===x?-1:k[f]===x?1:0};return h};r.matches=function(a,b){return r(a,null,null,b)};r.matchesSelector=function(a,b){(a.ownerDocument||a)!==h&&H(a);b=b.replace(Ha,"\x3d'$1']");if(p.matchesSelector&&B&&!T[b+" "]&&(!M||!M.test(b))&&(!v||!v.test(b)))try{var c=$.call(a,b);if(c||p.disconnectedMatch||a.document&&11!==a.document.nodeType)return c}catch(d){}return 0a.nodeType)return!1;return!0},parent:function(a){return!l.pseudos.empty(a)},header:function(a){return La.test(a.nodeName)},input:function(a){return Ka.test(a.nodeName)},button:function(a){var b= a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:K(function(){return[0]}),last:K(function(a,b){return[b-1]}),eq:K(function(a,b,c){return[0>c?c+b:c]}),even:K(function(a,b){for(var c=0;cc?c+b:c;0<=--b;)a.push(b); return a}),gt:K(function(a,b,c){for(c=0>c?c+b:c;++c(a*=2)?0.5*a*a:-0.5*(--a*(a-2)-1)};TWEEN.Easing.Cubic.EaseIn=function(a){return a*a*a};TWEEN.Easing.Cubic.EaseOut=function(a){return--a*a*a+1};TWEEN.Easing.Cubic.EaseInOut=function(a){return 1>(a*=2)?0.5*a*a*a:0.5*((a-=2)*a*a+2)};TWEEN.Easing.Quartic.EaseIn=function(a){return a*a*a*a}; TWEEN.Easing.Quartic.EaseOut=function(a){return-(--a*a*a*a-1)};TWEEN.Easing.Quartic.EaseInOut=function(a){return 1>(a*=2)?0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2)};TWEEN.Easing.Quintic.EaseIn=function(a){return a*a*a*a*a};TWEEN.Easing.Quintic.EaseOut=function(a){return(a-=1)*a*a*a*a+1};TWEEN.Easing.Quintic.EaseInOut=function(a){return 1>(a*=2)?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2)};TWEEN.Easing.Sinusoidal.EaseIn=function(a){return-Math.cos(a*Math.PI/2)+1}; TWEEN.Easing.Sinusoidal.EaseOut=function(a){return Math.sin(a*Math.PI/2)};TWEEN.Easing.Sinusoidal.EaseInOut=function(a){return-0.5*(Math.cos(Math.PI*a)-1)};TWEEN.Easing.Exponential.EaseIn=function(a){return 0==a?0:Math.pow(2,10*(a-1))};TWEEN.Easing.Exponential.EaseOut=function(a){return 1==a?1:-Math.pow(2,-10*a)+1};TWEEN.Easing.Exponential.EaseInOut=function(a){return 0==a?0:1==a?1:1>(a*=2)?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*(a-1))+2)}; TWEEN.Easing.Circular.EaseIn=function(a){return-(Math.sqrt(1-a*a)-1)};TWEEN.Easing.Circular.EaseOut=function(a){return Math.sqrt(1- --a*a)};TWEEN.Easing.Circular.EaseInOut=function(a){return 1>(a/=0.5)?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)};TWEEN.Easing.Elastic.EaseIn=function(a){var d,c=0.1,b=0.4;if(0==a)return 0;if(1==a)return 1;b||(b=0.3);!c||1>c?(c=1,d=b/4):d=b/(2*Math.PI)*Math.asin(1/c);return-(c*Math.pow(2,10*(a-=1))*Math.sin(2*(a-d)*Math.PI/b))}; TWEEN.Easing.Elastic.EaseOut=function(a){var d,c=0.1,b=0.4;if(0==a)return 0;if(1==a)return 1;b||(b=0.3);!c||1>c?(c=1,d=b/4):d=b/(2*Math.PI)*Math.asin(1/c);return c*Math.pow(2,-10*a)*Math.sin(2*(a-d)*Math.PI/b)+1};TWEEN.Easing.Elastic.EaseInOut=function(a){var d,c=0.1,b=0.4;if(0==a)return 0;if(1==a)return 1;b||(b=0.3);!c||1>c?(c=1,d=b/4):d=b/(2*Math.PI)*Math.asin(1/c);return 1>(a*=2)?-0.5*c*Math.pow(2,10*(a-=1))*Math.sin(2*(a-d)*Math.PI/b):0.5*c*Math.pow(2,-10*(a-=1))*Math.sin(2*(a-d)*Math.PI/b)+1}; TWEEN.Easing.Back.EaseIn=function(a){return a*a*(2.70158*a-1.70158)};TWEEN.Easing.Back.EaseOut=function(a){return(a-=1)*a*(2.70158*a+1.70158)+1};TWEEN.Easing.Back.EaseInOut=function(a){return 1>(a*=2)?0.5*a*a*(3.5949095*a-2.5949095):0.5*((a-=2)*a*(3.5949095*a+2.5949095)+2)};TWEEN.Easing.Bounce.EaseIn=function(a){return 1-TWEEN.Easing.Bounce.EaseOut(1-a)}; TWEEN.Easing.Bounce.EaseOut=function(a){return(a/=1)<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+0.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+0.9375:7.5625*(a-=2.625/2.75)*a+0.984375};TWEEN.Easing.Bounce.EaseInOut=function(a){return 0.5>a?0.5*TWEEN.Easing.Bounce.EaseIn(2*a):0.5*TWEEN.Easing.Bounce.EaseOut(2*a-1)+0.5}; this.Sfdc||(Sfdc={}); if("undefined"===typeof SfdcFramework){var SfdcFramework=function(m,b){function y(a,c,d){var e=!1;b.isArray(d)&&(e=!r(d));k[a]={pending:e,name:a,ctr:c,dependencies:d};e?b.require(d,function(){var b=k[a];b&&(b.pending=!1);v(a)}):v(a)}function v(a){if(a in l){for(var c=l[a],d=[],e,f=0;f\.#\\]/.test(a))return b.first(a,c);c?d=c.getElementById?c:c.ownerDocument:c=d;d=d.getElementById(a);return null===d||d.getAttribute("id")===a?d:c.all?c.all[a]:null};b.first=function(a,c){return b.select(a,c)[0]||null};b.assert=function(a,c){if(void 0===a||null===a||!1===!!a)throw"error"in b&&b.error(c),Error(c);return a}; b.isDefAndNotNull=function(a){return void 0!==a&&null!==a};b.on=function(a,c,d,e,f){b.assert(b.Event,"Sfdc.on(): Sfdc.Event is required to use Sfdc.on().");b.assert(a,"Sfdc.on(): 'element' must be a valid Object or Node.");b.assert(c,"Sfdc.on(): 'eventName' must be a valid String.");b.Event.add(a,c,d,e,f);return b};b.un=function(a,c,d,e){b.assert(b.Event,"Sfdc.un(): Sfdc.Event is required to use Sfdc.un().");b.assert(a,"Sfdc.un(): 'element' must be a valid Object or Node.");b.assert(c,"Sfdc.un(): 'eventName' must be a valid String."); b.Event.remove(a,c,d,e);return b};b.getConst=function(a,c){b.assert(void 0!==m[a],"That Constants group does not exist.");return m[a][c]};b.getUID=function(a){if(a.getAttribute){var c=a.getAttribute("data-uidSfdc");if(c)return c;c=b.newUID();a.setAttribute("data-uidSfdc",c);return c}return(c=a["data-uidSfdc"])?c:a["data-uidSfdc"]=b.newUID()};b.hasUID=function(a){return a?a.getAttribute?null!=a.getAttribute("data-uidSfdc"):a.hasOwnProperty?a.hasOwnProperty("data-uidSfdc"):"data-uidSfdc"in a:!1};b.newUID= function(){return++z};b.log=function(a,b,d){void 0!==a&&x.push({msg:a,level:b,args:d});return x};b.isEmpty=function(a){if(b.isObject(a)){for(var c in a)if(a.hasOwnProperty(c))return!1;return!0}return null===a||void 0===a||""===a||b.isArray(a)&&!a.length};b.inherits=function(a,c){if(!b.isFunction(a))throw Error("Sfdc.inherit(): 'type' must be a valid Function pointer.");for(var d=c;d;){if(a===d||d instanceof a||a===d.constructor)return!0;d=d.prototype}return!1};b.implies=function(a,c,d){if(!b.isObject(a))throw Error("Sfdc.implies(): 'contract' must be a valid Object."); if(null==c)return d&&(d.reason="Instance was undefined."),!1;var e=null,f=null,g;for(g in a){if(void 0===c[g])return d&&(d.reason=b.String.format("Instance member not implemented. Expected: '{0}{1}'.",[g,b.isFunction(a[g])?b.String.format("({0})",[b.Function.getParameters(a[g]).join(", ")]):""])),!1;if(b.isFunction(a[g])){if(b.inherits(a[g],c[g]))continue;if(b.isFunction(c[g])&&b.isDebug&&(e=b.Function.getParameters(a[g]).join(", "),f=b.Function.getParameters(c[g]).join(", "),e!=f))return d&&(d.reason= b.String.format("Instance member signature mismatch on '{0}()'. Expected '{0}({1})', found '{0}({2})'.",[g,e,f])),!1}if(b.isObject(a[g])){if(null!==c[g]&&!b.implies(a[g],c[g],d))return d&&(d.reason=b.String.format("Instance member type mismatch on '{0}': {1}",[g,d.reason])),!1}else if(typeof a[g]!==typeof c[g])return d&&(d.reason=b.String.format("Instance member type mismatch on '{0}'. Expected '{1}', found '{2}'.",[g,typeof a[g],typeof c[g]])),!1}return!0};b.isAssignableFrom=function(a,c,d){if(void 0== a)throw Error("Sfdc.isAssignableFrom(): 'type' must be a valid Function or Object.");if(void 0!=c)switch(typeof a){case "object":if(a.constructor!=Object&&b.inherits(a.constructor,c)||b.implies(a,c,d))return!0;break;case "function":if(b.inherits(a,c))return!0}return!1};b.define=function(a,c,d){b.assert(b.isString(a)&&0b||304===b||1223===b?a.success&&a.success.call(a.context,d.responseText,d,a):a.failure&&a.failure.call(a.context,d.responseText,d,a);a.complete&&a.complete.call(a.context,d.responseText,d,a);a.complete=a.success=a.failure=a.beforerequest=null}};a.data&&("GET"===a.method||"HEAD"===a.method?e=c.Url.generateUrl(e,a.data,{escape:a.escape}):!c.isString(a.data)&&a.processData&&(a.data=c.Url.generateQueryString("",a.data,{includeMark:!1,escape:a.escape,allowMultipleOfParam:!0})));a.async&& (d.onreadystatechange=b);if(!c.isFunction(a.beforerequest)||a.beforerequest.call(a.context)){d.open(a.method,e,a.async);!0===a.withCredentials&&(d.withCredentials=!0);if(a.headers)for(var g in a.headers)a.headers.hasOwnProperty(g)&&d.setRequestHeader(g,a.headers[g]);c.Url.getHostFromUrl(window.location.href)===c.Url.getHostFromUrl(e)&&d.setRequestHeader("X-Requested-With","XMLHttpRequest");a.contentType?d.setRequestHeader("Content-Type",a.contentType):a.data&&"POST"===a.method&&d.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset\x3dUTF-8");d.send(a.data);return!a.async?(b(),g=d.responseText,d.onreadystatechange=function(){},d=null,g):d}}},_createXmlHttpObject:function(){if(window.XMLHttpRequest)return new window.XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(c){}return null},_handleXDR:function(e,a){var b=new XDomainRequest;if(!c.isFunction(a.beforerequest)||a.beforerequest.call(a.context))return b&&(b.onerror=function(){a.failure.call(a.context,b.responseText, b,a)},b.ontimeout=function(){a.failure.call(a.context,b.responseText,b,a)},b.onprogress=function(){},b.onload=function(){a.success.call(a.context,b.responseText,b,a)},b.open("get",e),b.send()),b}})})(Sfdc); (function(c){function m(a){return c.apply({duration:c.Animation.DEFAULT_DURATION,delay:c.Animation.DEFAULT_DELAY,onComplete:c.Function.blank(),tryCSS:c.Animation.DEFAULT_USE_CSS_ANIMATION,timing:c.Animation.DEFAULT_TIMING_FUNCTION},a||{},!0)}function q(a,b){var e;e=c.isEmpty(a)?c.Animation.Easing[c.Animation.DEFAULT_TIMING_FUNCTION]:c.isString(a)?c.Animation.Easing[a]:a;return!e?c.Animation.Easing[c.Animation.DEFAULT_TIMING_FUNCTION][b.toUpperCase()]:e[b.toUpperCase()]}function v(a,b){b=new n(b); var e=new l(b.toDashed());e.duration=0;var d=new p(a);d.set(e);return c.Dom.setPrefixedStyle(a,"transition",d.toString())}function r(){}function s(){}function k(){}function t(){}function n(a){if(a instanceof n)return a;this.rawProperty=a}function u(a){}function p(a){this.delimiter=", ";this.onParse=l.parse;this.getId=function(){return this.prop};this.parse(c.Dom.getPrefixedStyle(a,"transition"))}function l(a){this.prop=a}c.provide("Sfdc.Animation",{DEFAULT_DURATION:400,DEFAULT_DELAY:0,DEFAULT_USE_CSS_ANIMATION:!1, DEFAULT_TIMING_FUNCTION:"Linear",Easing:{Linear:{CSS:"linear",JS:TWEEN.Easing.Linear.EaseNone},Ease:{CSS:"ease",JS:TWEEN.Easing.Sinusoidal.EaseInOut},EaseIn:{CSS:"ease-in",JS:TWEEN.Easing.Cubic.EaseIn},EaseOut:{CSS:"ease-out",JS:TWEEN.Easing.Cubic.EaseOut},EaseInOut:{CSS:"ease-in-out",JS:TWEEN.Easing.Cubic.EaseInOut}},css:function(a,b,e,d,f){c.assert(a&&b,"An element and animation definition must be specified.");f=m(f);b=new n(b);if(e==d)c.Dom.setStyle(a,b.toCamelCase(),d);else{if(f.tryCSS){if(f.tryCSS&& this.cssTransform(a,b,e,d,f))return null}else v(a,b);f.onUpdate=function(e){c.Dom.setStyle(a,b.toCamelCase(),e)};return this.animate(e,d,f)}},property:function(a,b,e,d,f){c.assert(a&&b,"An element and animation definition must be specified.");f=m(f);f.onUpdate=function(c){a[b]=c};return this.animate(e,d,f)},animate:function(a,b,e){c.assert(c.isFunction(e.onUpdate),"config.onUpdate must be set to a function");e=m(e);var d=!c.isDefAndNotNull(a)?null:!isNaN(a)?new r:c.Units.HexColor.isHexColor(a)?new k: /^[\d\.-]+px$/g.test(a)?new s:/^rgb/g.test(a)?new t:null;if(d){var f={},g={};d instanceof k?(c.apply(f,d.toInt(a)),c.apply(g,d.toInt(b))):(f.prop=d.toInt(a),g.prop=d.toInt(b));TWEEN.start();a=(new TWEEN.Tween(f)).to(g,e.duration).easing(q(e.timing,"JS")).onUpdate(function(){if(d instanceof k)e.onUpdate(d.fromInt(f));else e.onUpdate(d.fromInt(f.prop))}).onComplete(function(){TWEEN.stop();e.onComplete()});e.delay&&a.delay(e.delay);return a.start()}},opacity:function(a,b,e,d){function f(b){c.Dom.setStyle(a, "opacity",b)}function g(){var b=""+c.Dom.getStyle(a,"opacity");"0"===b&&c.Dom.hideByVisibility(a);if(!("opacity"in a.style)&&("1"===b||"0"===b)){var b=a,e=b.style.filter;c.isEmpty(e)?b.style.opacity="":b.style.filter=c.String.trim(e.replace(/alpha\(opacity=(.*)\)/i,""))}h&&h()}var h;if(a){d=m(d);b=Math.min(Math.max(0,b),1);e=Math.min(Math.max(0,e),1);h=d.onComplete;if(b||e)c.Dom.setStyle(a,"opacity",b),c.Dom.show(a);d.onUpdate=f;d.onComplete=g;if(b==e)c.Dom.setStyle(a,"opacity",e),d.onComplete(); else return d.tryCSS&&this.cssTransform(a,"opacity",b,e,d)?null:this.animate(b,e,d)}},cssTransform:function(a,b,e,d,f){function g(){c.un(a,"oTransitionEnd",g);c.un(a,"transitionend",g);c.un(a,"webkitTransitionEnd",g);f.onComplete();f=null}if(!a)return!1;f=m(f);b=new n(b);var h=new l(b.toDashed());h.duration=0;var k=new p(a);k.set(h);if(!c.Dom.setPrefixedStyle(a,"transition",k.toString()))return!1;c.Dom.setStyle(a,b.toCamelCase(),e);h.duration=f.duration;h.delay=f.delay;h.timing=q(f.timing,"CSS"); k.set(h);c.on(a,"oTransitionEnd",g);c.on(a,"transitionend",g);c.on(a,"webkitTransitionEnd",g);setTimeout(function(){c.Dom.setPrefixedStyle(a,"transition",k.toString());setTimeout(function(){c.Dom.setStyle(a,b.toCamelCase(),d)},0)},0);return!0}},!0);r.prototype={toInt:function(a){return a},fromInt:function(a){return a}};s.prototype={toInt:function(a){return 1*a.replace(/\D+$/gi,"")},fromInt:function(a){return a+"px"}};k.prototype={toInt:function(a){var b,c,d;4==a.length&&(b=a.substr(1,1),c=a.substr(2, 1),d=a.substr(3,1),b=parseInt(b+b,16),c=parseInt(c+c,16),d=parseInt(d+d,16));7==a.length&&(b=parseInt(a.substr(1,2),16),c=parseInt(a.substr(3,2),16),d=parseInt(a.substr(5,2),16));return{r:b,g:c,b:d}},fromInt:function(a){return"#"+[(16>Math.round(a.r)?"0":"")+Math.round(a.r).toString(16),(16>Math.round(a.g)?"0":"")+Math.round(a.g).toString(16),(16>Math.round(a.b)?"0":"")+Math.round(a.b).toString(16)].join("")}};t.prototype={toInt:function(a){a=a.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);return{r:a[1], g:a[2],b:a[3]}},fromInt:function(a){return c.String.format("rgb({r}, {g}, {b})",a)}};n.prototype={rawProperty:null,toCamelCase:function(){var a=c.String.toCamelCase(this.rawProperty);this.toCamelCase=function(){return a};return a},toDashed:function(){var a=c.String.dashify(this.rawProperty);this.toDashed=function(){return a};return a}};u.prototype={delimiter:", ",onParse:function(){},$coll:{},get:function(a){return this.$coll[a]},set:function(a){this.$coll[a.getId()]=a},toString:function(){var a= [],b;for(b in this.$coll)this.$coll.hasOwnProperty(b)&&a.push(this.$coll[b].toString());return a.join(this.delimiter)},parse:function(a){if(a){a=a.split(this.delimiter);for(var b,c=0,d=a.length;c=c)}return c},doesBrowserDefaultToSameSiteLax:function(a){a=a||g.userAgent;var c=a.chromeVersionMajor,d=a.isFirefox,b=a.firefoxVersionMajor;return!!((a.isChrome||a.isChromium)&&77<=c||d&&70<=b)},setCookieConsent:function(a){var c=new Date,d=new Date((new Date).getTime()+ 31536E6),b=this.getCookie("CookieConsent");if(null==b){var b=this.getConsentStringFromPreferencesCookieConsent(a),e=this.getTimeStampInRequiredFormat(c);this.setCookie("CookieConsent","232.1|230.1.0|"+e+"|"+b+"|false",d,"/",null,!1,encodeURI,"");b=this.getCookie("CookieConsent")}b=this.getParsedCookieElementsCookieConsent(b);b[3]=this.getConsentStringFromPreferencesCookieConsent(a);b[2]=this.getTimeStampInRequiredFormat(c);a=this.generateCookieValueStringCookieConsent(b);this.setCookie("CookieConsent", a,d,"/",null,!1,encodeURI,"")},getTimeStampInRequiredFormat:function(a){return a.toISOString()},getConsentStringFromPreferencesCookieConsent:function(a){var c=a.Statistics,d=a.Marketing,b="1";a.Preferences?b+="1":b+="0";c?b+="1":b+="0";d?b+="1":b+="0";return encodeURIComponent(b)},getParsedCookieElementsCookieConsent:function(a){return a.split("|")},generateCookieValueStringCookieConsent:function(a){return a.join("|")},isCategoryAllowedForCurrentConsent:function(a){if(1===Number(this.getCategoryIndex(a)))return!0; var c=this.getCookie("CookieConsentPolicy");if(null==c)return!0;var d=this.getCookie("CookieConsent"),c=c.split(":"),b=Boolean(Number(c[1]));return Boolean(Number(c[0]))?b?null===d?1===Number(getCategoryIndex(a))?!0:!1:getConsentFromCookieConsentValue(d,a):!1:!0},getConsentFromCookieConsentValue:function(a,c){var d=this.getParsedCookieElementsCookieConsent(a);if(null==d[3])return!1;var d=d[3],b=Number(this.getCategoryIndex(c));return 1==Number(d.charAt(b-1))?!0:!1},getCategoryIndex:function(a){switch(a.toLowerCase()){case "essential":return"1"; case "preferences":return"2";case "statistics":return"3";case "marketing":return"4";default:return"-1"}}}}(Sfdc)); Sfdc.provide("Sfdc.Data",function(b){var e={};return{set:function(a,d,c){b.assert(a,"An element must be provided for Sfdc.Data.set(el, name, val);");b.assert(d,"A name must be defined for Sfdc.Data.set(el, name, val);");a=b.getUID(b.get(a));e[a]||(e[a]={});e[a][d]=c},get:function(a,d){b.assert(a,"An element must be provided for Sfdc.Data.get(el, name);");a=b.get(a);var c=null;b.hasUID(a)&&(c=e[b.getUID(a)]);c&&void 0!==d&&(c=c[d]);return c},clear:function(a,b){this.set(a,b,null)}}}(Sfdc)); Sfdc.provide("Sfdc.Debug",{describe:function(b,a){a=a||Sfdc.log;var c=[],d;for(d in b)b.hasOwnProperty(d)&&c.push([d,b[d]].join(" \x3d "));a(c.join(", "))},log:function(b,a){window.console&&(b.constructor==Array?window.console.log.apply(this,arguments):window.console.log(Sfdc.String.format(b,a)))},warn:function(b,a){window.console&&window.console.warn(Sfdc.String.format(b,a))},error:function(b,a){window.console&&window.console.error(Sfdc.String.format(b,a))},logUsage:function(b,a){if(Sfdc.isDefAndNotNull(a))Sfdc.isArray(a)|| (a=[a]);else{a=[];for(var c in b)b.hasOwnProperty(c)&&Sfdc.isFunction(b[c])&&a.push(c)}c=0;for(var d=a.length;carguments.length))b[a?"attachEvent":"detachEvent"]("on"+c,d)}var r={A:1,ABBR:1,B:1,CODE:1,EM:1,I:1,IMG:1,INPUT:1,LABEL:1,SELECT:1,SMALL:1,SPAN:1,TEXTAREA:1},p=["","Moz","Webkit","O"],q={},k=null;this.isNode=function(a){return a&&!(!isNaN(parseFloat(a))&&isFinite(a))&&"nodeType"in a};this.isElement= function(a){return this.isNode(a)&&a.nodeType==Node.ELEMENT_NODE};this.replace=function(a,b){if(!this.isNode(a))throw Error("Sfdc.Dom.replace(): 'replacementNode' must be a valid Node.");if(!this.isNode(b))throw Error("Sfdc.Dom.replace(): 'targetNode' must be a valid Node.");if(!this.isNode(b.parentNode))throw Error("Sfdc.Dom.replace(): 'targetNode' must be attached to a valid Node.");var c=b.parentNode;c.insertBefore(a,b);c.removeChild(b);return a};this.setText=function(a,b){e.assert(a,"No element specified!"); a=e.get(a);this.updateHTML(a,"");a.appendChild(document.createTextNode(b));return this};this.getText=function(a){e.assert(a,"No element specified!");a=e.get(a);return void 0!==a.innerText?a.innerText:a.textContent};this.getTextFromMarkup=function(a){if(!a)return"";k||(k=document.createElement("div"));k.innerHTML=a;a="textContent"in k?k.textContent:k.innerText;k.innerHTML="";return a};this.hideByDisplay=function(a){e.assert(a,"No Element specified.");a=e.get(a);e.isArray(a)||(a=[a]);for(var b,c;b= a.pop();)c=this.getStyle(b,"display"),"none"!==c&&e.Data.set(b,"original-display",c),this.setStyle(b,"display","none");return this};this.hideByVisibility=function(a){e.assert(a,"No Element specified.");a=e.get(a);e.isArray(a)||(a=[a]);this.set(a,{style:{visibility:"hidden"}});return this};this.show=function(a){e.assert(a,"No Element specified.");a=e.get(a);e.isArray(a)||(a=[a]);for(var b,c,d;b=a.pop();)c=this.getStyles(b,["visibility","display"]),d={},"hidden"===c.visibility&&(d.visibility="visible"), "none"===c.display&&(d.display=e.Data.get(b,"original-display"),d.display||(d.display=r.hasOwnProperty(b.nodeName)?"inline":"block")),this.setStyles(b,d);return this};this.isVisible=function(a,b){a=e.get(a);var c=this.getStyles(a,["visibility","display"]),c=!("hidden"===c.visibility||"none"===c.display);return!c||!b?c:"BODY"!==a.tagName.toUpperCase()&&a.parentNode&&"BODY"!==a.parentNode.tagName.toUpperCase()?this.isVisible(a.parentNode,b):!0};this.blur=function(a){if(this.isElement(a)&&a.blur)try{return a.blur(), !0}catch(b){}return!1};this.focus=function(a,b){if(this.isElement(a)&&a.focus)try{return a.focus(),b&&a.select&&a.select(),!0}catch(c){}return!1};this.get=function(a,b){a=e.get(a);if(e.isArray(b)){for(var c={},d=0,f=b.length;dg.right&&(f=g.right-u.width),c-r.yg.bottom&&(d=g.bottom-u.height));e={x:f,y:d};p.notify("ondrag",{event:b,target:p, position:e});c=h.getEventTarget(b);b=p;do(f=a.Data.get(c,"Sfdc.DragDrop.Droppable"))&&f.notify("ondrag",{event:event,target:b,position:e}),c=a.Dom.getParent(c);while(a.Dom.isElement(c));k(e)}function x(b){clearTimeout(z);m();p.notify("ondrop",{event:b,target:p})}var t={x:0,y:0},y=null,p=this,c=l.target,r={x:0,y:0},h=new a.Event.EventManager("ondragstart","ondrag","ondrop"),d=null,u={width:0,height:0},B="",s={ghost:!1===l.ghost?!1:!0,containment:l.containment||null,delay:l.delay||0,offset:l.offset|| a.DragDrop.MouseOffset.Preserve},z=null,w;if(!l.handle||!(w=a.select(l.handle,c)[0]))w=c;a.Data.set(c,"Sfdc.DragDrop.Draggable",this);h.add(w,"mousedown",function(b){if(0==b.button){h.preventDefault(b);r=g(b);var e=s.containment;if(e){var d=a.Dom.getElementXY(e),e=n(e);y={left:d.x,top:d.y,right:d.x+e.width,bottom:d.y+e.height}}else y=null;s.delay?(clearTimeout(z),z=setTimeout(C.bind(c,c),parseInt(s.delay,10))):C(c,b)}});h.add(w,"mouseup",x);this.dispose=function(){h&&h.dispose();p=c=h=d=null};this.attach= function(b,a){h.add(this,b,a)};this.detach=function(b,a){h.remove(this,b,delegate)};this.notify=function(b,a){h.fireEvent(this,b,{data:a})};this.getElement=function(){return c};this.getVisualization=function(){return d}}});a.provide("Sfdc.DragDrop.Droppable",{$implements:a.IDisposable,$constructor:function(l){var m=new a.Event.EventManager("ondrag","ondragout","ondrop"),n=l.target;a.Data.set(n,"Sfdc.DragDrop.Droppable",this);m.add(n,"mouseup",function(g){var k=a.DragDrop.activeDrag;k&&this.notify("ondrop", {event:g,target:k})},this);m.add(n,"mouseout",function(g){var k=a.DragDrop.activeDrag;k&&this.notify("ondragout",{event:g,target:k})},this);this.dispose=function(){m&&m.dispose();m=n=null};this.attach=function(a,k){m.add(this,a,k)};this.detach=function(a,k){m.remove(this,a,delegate)};this.notify=function(a,k){m.fireEvent(this,a,{data:k})};this.getElement=function(){return n}}})})(Sfdc,this); (function(a){a.provide("Sfdc.Effects",{fadeIn:function(b,d){var c=a.Dom.isVisible(b)?a.Dom.getStyle(b,"opacity"):0;a.Animation.opacity(b,c,1,{onComplete:d||a.Function.blank(),duration:500,tryCSS:!0})},fadeOut:function(b,d){var c=a.Dom.getStyle(b,"opacity");a.Animation.opacity(b,c,0,{onComplete:d||a.Function.blank(),duration:500,tryCSS:!0})},rollIn:function(b,d,c){var e=a.Dom.getActualHeight(b)+"px";c=c&&c.duration||500;a.Dom.setStyle(b,"height","1px");a.Dom.show(b);a.Animation.css(b,"height","1px", e,{onComplete:d||a.Function.blank(),duration:c,timing:a.Animation.Easing.Linear})},rollOut:function(b,d){var c=a.Dom.getActualHeight(b)+"px";a.Dom.show(b);a.Animation.css(b,"height",c,"1px",{onComplete:function(){a.Dom.hideByVisibility(b);a.Dom.hideByDisplay(b);a.Dom.setStyle(b,"height","");a.isFunction(d)&&d()},duration:500,timing:a.Animation.Easing.EaseIn})},rollInRollOut:function(b,d,c){a.Effects.rollIn(b,function(){setTimeout(function(){a.Effects.rollOut(b,c)},d)})}})})(Sfdc); (function(d,l){function n(){function n(a,c,b,e){var f=d.Data.get(a,c)||{};f[d.getUID(b)]=e?r(b,e):b;d.Data.set(a,c,f)}function p(a,c,b,e,f){var g={element:a,eventName:c,handler:e?r(b,e):b,originalHandler:b,useCapture:f||!1};f=d.getUID(a);h[f]||(h[f]=[]);h[f].push(g);a.addEventListener?g.element.addEventListener(g.eventName,g.handler,g.useCapture):a.attachEvent?(b=g.handler,g.handler=function(c){b.call(e||a,d.apply(c||l.event,{currentTarget:g.element},!0))},g.element.attachEvent("on"+g.eventName,g.handler)): n(a,c,b,e)}function s(a,c,b,e,f){var g=d.Data.get(a,c);c={eventName:c,target:a};if(g)for(var h in g)if(g.hasOwnProperty(h)&&d.isFunction(g[h]))try{g[h].apply(b.context||a,[c].concat(b.data||[]))}catch(k){if(d.isFunction(f)&&f(k),e)throw k;}return!0}function r(a,c){return function(){a.apply(c,arguments)}}function t(a){var c=null,b;for(b in h)if(h.hasOwnProperty(b))for(c=h[b];c.length;)try{q(c.shift())}catch(e){d.log(e.message||e.description)}if(k)for(var f in k)if(k.hasOwnProperty(f))try{k[f](a),k[f]= null}catch(g){d.log(g.message||g.description)}k=null;h={}}function u(a,c,b){a=d.Data.get(a,c);b=d.getUID(b);a&&a[b]&&(a[b]=null,delete a[b])}function q(a){var c=d.getUID(a.element);if(h.hasOwnProperty(c)){for(var b=h[c],e=null,f=0;fd.Array.indexOf(m,a)&&m.push(a)};this.getExpectedEvents=function(){return m.slice(0)};this.getEvent=function(a){return a||l.event};this.getEventTarget=function(a,c){a=this.getEvent(a);if(!a)return null;var b=a.target||a.srcElement;return!c||Sizzle.matches(c,[b]).length?b:d.Dom.getParent(b,c)};this.getEventToElement=function(a){a=this.getEvent(a);return a.relatedTarget?a.relatedTarget:a.toElement}; this.isCustomEvent=function(a){return-1d.Array.indexOf(m,c))throw Error(d.String.format("Sfdc.Event.EventManager.add(): unknown 'eventName' '{0}'. The following events are supported: '{1}'", [c,m.join("', '")]));return n(a,c,b,e)}k||(p(l,"unload",t),k={});a==l&&"unload"==c.toLowerCase()?(a=d.getUID(b),k.hasOwnProperty(a)||(k[a]=e?r(b,e):b)):p(a,c,b,e,f)};this.remove=function(a,c,b,e){d.assert(a,"Sfdc.Event.remove(): 'element' must be a valid Object or Node.");d.assert(c,"Sfdc.Event.remove(): 'eventName' must be a valid String.");if(this.isCustomEvent(c))return u(a,c,b);if(a==l&&"unload"==c.toLowerCase())a=d.getUID(b),k&&k.hasOwnProperty(a)&&(k[a]=null,delete k[a]);else{var f=d.getUID(a); if(h.hasOwnProperty(f))for(var f=h[f],g=null,m=0;m=e&&(0===f?c+="(":3==f?c+=") ":6==f&&(c+="-"),c+=e,f++);if(!("0"<=e&&"9">=e)&&" "!=e&&"-"!=e&&"."!=e&&"("!=e&&")"!=e){d=g;break}}0<=d&&(c+=" "+b.substring(d,b.length));10==f&&40>=c.length&&(a.value=c)}return!0}}); Sfdc.provide("Sfdc.History",function(q){function m(a,b){var d,k;if(q.isArray(a)){d=0;for(k=a.length;ddocument.documentMode?m(h):(Boolean(b.history&&b.history.pushState&&h.usePushState)?(a=function(){return b.location.search.slice(1)},e=function(a){b.history.pushState({},"Sfdc.History","?"+a);b.onpopstate()},b.onpopstate=function(){var b=a();k(b,c);a();c=a()}):(a=function(){var a=b.location.href.split("#")[1]; return a?a.slice(2):""},e=function(a){b.location.hash="!/"+a},b.onhashchange!==r||window.hasOwnProperty("onhashchange")?(""===a()&&d&&(b.location.hash="!/"+b.location.search.slice(1)),b.onhashchange=function(){var b=a();k(b,c);a();c=a()}):g=!1),c=a(),k(c,void 0),a()))}}}();return{onChange:function(){var a=arguments;e?e.addListener(a):s.push(a)},update:function(){e.updateState.apply(e,arguments)},replace:function(a){e.replaceState(a)},isBrowserSupported:function(){return n.isBrowserSupported()},init:function(a){a= a||{};a.window&&(b=a.window);e=new u(s);n.init(e.handleState,a);this.init=function(){};t=!0},isInit:function(){return t}}}(Sfdc)); Sfdc.provide("Sfdc.JSON",function(g){function k(a,b,f){if(g.isArray(a)){for(var c=f||[],e=0;e=b;)a+=b,d();if("."===b)for(a+=".";d()&&"0"<=b&&"9">=b;)a+=b;if("e"===b||"E"===b){a+=b;d();if("-"===b||"+"===b)a+=b,d();for(;"0"<=b&&"9">= b;)a+=b,d()}a=+a;if(isFinite(a))return a;e("Bad number")},k=function(){var a,c,l="",g;if('"'===b)for(;d();){if('"'===b)return d(),l;if("\\"===b)if(d(),"u"===b){for(c=g=0;4>c;c+=1){a=parseInt(d(),16);if(!isFinite(a))break;g=16*g+a}l+=String.fromCharCode(g)}else if("string"===typeof f[b])l+=f[b];else break;else l+=b}e("Bad string")},h=function(){for(;b&&" ">=b;)d()},m=function(){switch(b){case "t":return d("t"),d("r"),d("u"),d("e"),!0;case "f":return d("f"),d("a"),d("l"),d("s"),d("e"),!1;case "n":return d("n"), d("u"),d("l"),d("l"),null}e("Unexpected '"+b+"'")},n;n=function(){h();switch(b){case "{":var a;a:{var c={};if("{"===b){d("{");h();if("}"===b){d("}");a=c;break a}for(;b;){a=k();h();d(":");Object.hasOwnProperty.call(c,a)&&e('Duplicate key "'+a+'"');c[a]=n();h();if("}"===b){d("}");a=c;break a}d(",");h()}}e("Bad object");a=void 0}return a;case "[":a:{a=[];if("["===b){d("[");h();if("]"===b){d("]");break a}for(;b;){a.push(n());h();if("]"===b){d("]");break a}d(",");h()}}e("Bad array");a=void 0}return a; case '"':return k();case "-":return g();default:return"0"<=b&&"9">=b?g():m()}};return function(d,f){var g;c=d;a=0;b=" ";g=n();h();b&&e("Syntax error");return"function"===typeof f?function r(a,b){var c,d,e=a[b];if(e&&"object"===typeof e)for(c in e)Object.prototype.hasOwnProperty.call(e,c)&&(d=r(e,c),void 0!==d?e[c]=d:delete e[c]);return f.call(a,b,e)}({"":g},""):g}}();return{parseSafe:function(a,b){return m(a,b)},parse:function(a,b){return m(a,b)},parseWithCSRF:function(a,b){if(!g.isString(a))return null; var f;a:{f=["while(1);\n","while(1);\n".replace("\n","")];for(var c=0,e=f.length;cc.MAX_BUFFER_SIZE&&f.shift(),this.startFlushTimer()},getRelay:function(b){return h[b]},addRelay:function(b,a){h[b]=a},removeRelay:function(a){delete h[a]}, flush:function(){e&&(clearTimeout(e),e=null);if(0===f.length)return 0;var b=f.splice(0,c.FLUSH_SIZE),g={};g[c.LOG_LINES]=a.JSON.stringify(b);a.Ajax.post(a.Url.resolveUrl(c.URL),null,{data:g,escape:encodeURIComponent});0e)b+=String.fromCharCode(e);else if(191e)d=a.charCodeAt(c++),b+=String.fromCharCode((e&31)<<6|d&63);else{d=a.charCodeAt(c++);var g=a.charCodeAt(c++),b=b+String.fromCharCode((e&15)<<12|(d&63)<<6|g&63)}}return b},base64Decode:function(a,b){var c=[],e,f,g="",h,l="",k=0;a=a.replace(/[^A-Za-z0-9+/=]/g,"");do e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(a.charAt(k++)),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(a.charAt(k++)), h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(a.charAt(k++)),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d".indexOf(a.charAt(k++)),e=e<<2|f>>4,f=(f&15)<<4|h>>2,g=(h&3)<<6|l,c.push(String.fromCharCode(e)),64!=h&&c.push(String.fromCharCode(f)),64!=l&&c.push(String.fromCharCode(g));while(k"'\u00a9\u2028\u2029]/g,n);b&&(c=c.replace(/\n/g,"\x3cbr\x3e"));return c},unescapeHtml:function(a,b){if(null===a)return"";d.assert(d.isDefAndNotNull(a)&&d.isString(a),"expected unescapeHtml(string input, boolean replaceBRwithNewline)");d.assert(d.isBoolean(b||!1),"expected unescapeHtml(string input, boolean replaceBRwithNewline)"); if(d.isEmpty(a))return a;var c=a.replace(/</g,"\x3c").replace(/>/g,"\x3e").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/©/g,"\u00a9").replace(/&/g,"\x26");b&&(c=c.replace(/
/g,"\n").replace(//g,"\n"));return c}}}(Sfdc)); (function(e,f){var b=f.Mustache;e.provide("Sfdc.Template",{compile:function(a){b.parse(a);return function(c,d){return b.render(a,c,d)}},render:function(a,c,d){return b.render(a,c,d)}})})(Sfdc,this); Sfdc.provide("Sfdc.Units.HexColor",{$constructor:function(a){Sfdc.assert(Sfdc.isString(a)||Sfdc.isObject(a),"Must specify a color parameter");this.val=a},toString:function(){return this.val},toRGB:function(){var a=this.toInt();return Sfdc.Units.RGBColor.fromInt(a)},toInt:function(){return Sfdc.Units.HexColor.toInt(this.val)}}); Sfdc.apply(Sfdc.Units.HexColor,{fromInt:function(a){if(!Sfdc.isObject(a)||Sfdc.isString(a))throw Error("Requires rgb object as input - { r: 0, g: 0, b: 0 }");a="#"+[(16>Math.round(a.r)?"0":"")+Math.round(a.r).toString(16),(16>Math.round(a.g)?"0":"")+Math.round(a.g).toString(16),(16>Math.round(a.b)?"0":"")+Math.round(a.b).toString(16)].join("");return new Sfdc.Units.HexColor(a)},toInt:function(a){if(Sfdc.isObject(a)||-1d;d++){for(var b=0,e=0;5>e;e++){var f=a.charAt(5*d+e);"A"<=f&&"Z">=f&&(b+=1<=b?c+"ABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(b):c+"012345".charAt(b-26)}return a+c};ApiUtils.to15CharId=function(a){return!a?null:a.substring(0,15)};ApiUtils.getId=function(a){if(!a)return null;a=a.get("Id");a.splice&&(a.length&&0d&&(c=c.substring(0,d));b.value=c}}; function CustomSummaryFieldAttributes(a,b,d,f,g,e,h,k){this.radios=document.getElementsByName(g);this.parentEntityEnumOrId=b;this.servletUrl=a;this.entityElement=document.getElementById(d);this.fieldTarget=document.getElementById(f);if(this.entityElement)this.currentEntity=this.getEntityValue(this.entityElement.options[this.entityElement.selectedIndex].value);else for(var m in k){this.currentEntity=m;break}this.oldOpVal=null;for(a=0;ac;c++)b[ScheduleElement.pDayOfWeek+c+a]=document.getElementById(ScheduleElement.pDayOfWeek+c+a).checked?"1":"0";b[ScheduleElement.pMonthlyRec+a]=SchedulePageUtil.getCheckedValue(ScheduleElement.pMonthlyRec+a);b[ScheduleElement.pMonthlyOnDayN+a]=document.getElementById(ScheduleElement.pMonthlyOnDayN+a).value;b[ScheduleElement.pMonthlyOnNthDay+a]=document.getElementById(ScheduleElement.pMonthlyOnNthDay+a).value;b[ScheduleElement.pMonthlyOnNDayOfWeek+ a]=document.getElementById(ScheduleElement.pMonthlyOnNDayOfWeek+a).value;b[SchedulePage.pJobType]=document.getElementById(SchedulePage.pJobType).value;return b};SchedulePageUtil.getCheckedValue=function(a){a=document.getElementsByName(a);if(null==a.length){if(a.checked)return a.value}else for(var b=0;b=AutoComplete.prototype.MIN_LENGTH_THRESHOLD)null==d.valQueried||-1==b.toLowerCase().indexOf(d.valQueried.toLowerCase())?d.doLookup(b):d.doFilter(b);else if(null==b||b.length<=AutoComplete.prototype.MIN_LENGTH_THRESHOLD)d.valQueried=null,d.doClear()}};AutoComplete.prototype.onFocus=function(a){if(a=AutoComplete.prototype.AUTOCOMPLETE_MAP[this.name])a.hasFocus=!0}; AutoComplete.prototype.onBlur=function(a){a||(a=window.event);var d=AutoComplete.prototype.AUTOCOMPLETE_MAP[this.name];d&&(d.hasFocus=!1,AutoComplete.prototype.TIMEOUT_ID&&clearTimeout(AutoComplete.prototype.TIMEOUT_ID),a&&!AutoComplete.prototype.isIgnore(a)&&!AutoComplete.prototype.isEscape(a)&&0<=d.selected?d.selectItem(d.selected):setTimeout("AutoComplete.prototype.AUTOCOMPLETE_MAP['"+this.name+"'].doClear()",200))}; AutoComplete.prototype.setSelected=function(a,d){var b=AutoComplete.prototype.AUTOCOMPLETE_MAP[a];b&&(b.selected=d)}; AutoComplete.prototype.handleNav=function(a,d){var b=AutoComplete.prototype.AUTOCOMPLETE_MAP[a];if(b){var c=40==d.keyCode,e=b.selected,f=AutoComplete.prototype.getBox(b.getBaseName());if(f&&(f=f.childNodes[0].childNodes[0])&&f.rows){c?b.selected=a||112<=a&&123>=a};AutoComplete.prototype.isEscape=function(a){return 27==a.keyCode};AutoComplete.prototype.isEnter=function(a){return 13==a.keyCode};AutoComplete.prototype.query=function(a){try{var d=sforce.connection.query(a);a={};a.size=d.size;a.records=d.getArray("records");return a}catch(b){alert("error: "+b)}}; AutoComplete.prototype.makeBox=function(a,d,b){if(AutoComplete.prototype.IS_IE){var c=document.createElement("iframe");c.id=a+"I";c.style.display="block";c.style.position="absolute";c.style.padding="3px";c.style.height=d+"px";c.style.width=b+"px";c.style.backgroundColor="#ffffCC";document.body.appendChild(c)}c=document.createElement("div");c.id=a+"D";c.style.border="1px solid #666";c.style.display="block";c.style.position="absolute";c.style.padding="2px";c.style.height=d+"px";c.style.width=b+"px"; c.style.backgroundColor="#ffffCC";document.body.appendChild(c);return c};AutoComplete.prototype.getBox=function(a){return document.getElementById(a+"D")};AutoComplete.prototype.resizeBox=function(a,d,b){var c=document.getElementById(a+"I");c&&(c.style.height=d+"px",c.style.width=b+"px");if(a=document.getElementById(a+"D"))a.style.height=d+"px",a.style.width=b+"px"}; AutoComplete.prototype.moveBox=function(a,d,b){var c=document.getElementById(a+"I");c&&(c.style.top=d+"px",c.style.left=b+"px",c.style.zIndex=10);if(a=document.getElementById(a+"D"))a.style.top=d+"px",a.style.left=b+"px",a.style.zIndex=20};AutoComplete.prototype.showBox=function(a,d){var b=d?"block":"none",c=document.getElementById(a+"I");c&&(c.style.display=b);if(c=document.getElementById(a+"D"))c.style.display=b}; AutoComplete.prototype.loadAutoComplete=function(a){a||(AutoComplete.prototype.FORM_NAME="editPage");a=getCookie("sid");var d=ApiUtils.getApiURL(!0,"7.0");sforce.connection.init(a,d,!0);a=document.getElementsByTagName("input");for(d=0;dBanner.BANNER_END){var a=this;this.bannerY+=Banner.BANNER_STEP;this.shim.setStyle("top",this.bannerY+"px");this.fadingOut=setTimeout(function(){a.fadeOut()},Banner.BANNER_STEP_DELAY)}}; Banner.prototype.fadeIn=function(){this.fadingIn&&(clearTimeout(this.fadingIn),this.fadingIn=null);if(this.bannerYa&&(a=c.offsetWidth)}this.shim.setStyle("width",a+"px")};CheckedMenu.prototype.fixIe7ZIndex=function(){if(Sfdc.userAgent.isIE7){var a=this.getZIndexParent();a&&a.setStyle("z-index","10")}}; CheckedMenu.prototype.revertIe7ZIndexChange=function(){if(Sfdc.userAgent.isIE7){var a=this.getZIndexParent();a&&a.setStyle("z-index","")}};CheckedMenu.prototype.getZIndexParent=function(){if(!this.zIndexParent){var a=CheckedMenu.Z_INDEX_PARENT_MAP,b;for(b in a)if(-1!=this.parentDiv.className.indexOf(b))return this.zIndexParent=Ext.get(this.parentDiv).parent(a[b]);return null}return this.zIndexParent}; CheckedMenu.prototype.hide=function(){delStyleClass(this.parentDiv,"checkedMenuActivated");"none"!=Sfdc.Dom.getStyle(this.menuDiv,"display")&&(this.shim.setStyle("display","none"),this.parentDiv.style.position="",this.revertIe7ZIndexChange())}; CheckedMenu.prototype.hideOthers=function(a){a=Ext.get(getEventTarget(a));a=hasStyleClass(a.dom,CheckedMenu.CONTAINER_CSS_CLASS)?a:a.parent("."+CheckedMenu.CONTAINER_CSS_CLASS);a&&a.dom.id===this.id||(this.hide(!0),hasStyleClass(this.parentDiv,"checkedMenuActivated")&&delStyleClass(this.parentDiv,"checkedMenuActivated"))};CheckedMenu.prototype.handleKeyPress=function(a){a.keyCode==KEY_ESC&&this.hide()}; CheckedMenu.prototype.initAccessibilityMode=function(a){var b=document.getElementById(a+CheckedMenu.SELECT);addEvent(b,"change",function(){var c=b.options[b.selectedIndex];document.getElementById(a+CheckedMenu.GO_BUTTON).onclick=function(a){!window.event&&a&&(window.event=a);eval(c.value)}},!1)}; CheckedMenu.prototype.removeDottedLinkOutline=function(a){getEventTarget(a)==this.buttonLabel&&("mousedown"==a.type?(this.buttonLabel.blur(),isIE?this.buttonLabel.hideFocus=!0:this.buttonLabel.style.outline="none"):"mouseout"==a.type&&(this.buttonLabel.blur(),isIE?this.buttonLabel.hideFocus=!1:this.buttonLabel.style.outline=null))}; ColorInput=function(a){this.id=a;this.box=document.createElement("div");this.box.innerHTML="\x3cspan\x3e\x3c/span\x3e";this.input=document.getElementById(a);var b=this;this.handleChange=function(a){b.formatInput();b.updateColor()};this.init()}; ColorInput.prototype.updateColor=function(){var a=this.input.value,b=!0;a.match(/^(#[0-9a-f]{6})$/i)?(delStyleClass(this.box,ColorInputConstants.ERROR_COLOR_BOX_CSS),this.box.style.backgroundColor=a):(this.box.style.backgroundColor="#FFFFFF",addStyleClass(this.box,ColorInputConstants.ERROR_COLOR_BOX_CSS),b=!1);return b}; ColorInput.prototype.formatInput=function(){var a=this.input.value;"#"!=a.charAt(0)&&6==a.length&&(a="#"+a);a=a.toUpperCase();if(a.match(/^#[0-9a-f]{3}$/i))var b=a.charAt(1),c=a.charAt(2),a=a.charAt(3),a="#"+b+b+c+c+a+a;this.input.value=a}; ColorInput.prototype.init=function(){addStyleClass(this.box,ColorInputConstants.COLOR_BOX_CSS);this.updateColor();this.input.parentNode.insertBefore(this.box,this.input);var a=this;addEvent(this.input,"change",this.handleChange,!1);var b=function(b){ColorPicker.pick(a.id,b)};addEvent(this.box,"click",b,!1);addEvent(this.input,"focus",b,!1);addEvent(this.input,"click",b,!1);addEvent(this.input,"click",ColorPicker.cancelHide,!1);this.input.updateColor=function(){a.updateColor()}}; function ColorPicker(){this.pickerDiv=document.getElementById(ColorPickerConstants.DOM_ID);this.colorView=document.getElementById(ColorPickerConstants.COLOR_VIEW_ID);this.hexView=document.getElementById(ColorPickerConstants.HEX_VIEW_ID);this.shim=new iframeShim(this.pickerDiv);this.field=null;this.addedFields={};var a=this;addEvent(document,"click",function(){a.hide()},!1);addEvent(this.pickerDiv,"click",function(a){ColorPicker.cancelHide(a)},!1)} ColorPicker.prototype.position=function(){for(var a=0,b=0,c=this.field,d=this.pickerDiv.offsetHeight,e=this.pickerDiv.offsetWidth;null!=c&&c!=this.pickerDiv.offsetParent;)a+=c.offsetLeft,b+=c.offsetTop,c.scrollLeft&&(a-=c.scrollLeft),c.scrollTop&&(b-=c.scrollTop),c=c.offsetParent;Dialogs.hasOpenDialog()?(b=b+d+this.field.offsetHeight>Sfdc.Window.getWindowHeight()?b-d:b+this.field.offsetHeight,a+e>getWindowWidth()&&(a-=e-this.field.offsetWidth),this.shim.setStyle("position","fixed")):(getObjX(this.field)+ e>getScrollX()+Sfdc.Window.getWindowWidth()&&(a-=e-this.field.offsetWidth),b=getObjY(this.field)+d>getScrollY()+Sfdc.Window.getWindowHeight()?b-d:b+this.field.offsetHeight,this.shim.setStyle("position","absolute"));this.shim.setStyle("left",a+"px");this.shim.setStyle("top",b+"px")};ColorPicker.prototype.hide=function(){this.shim.setStyle("display","none")}; ColorPicker.prototype.show=function(a){this.field=document.getElementById(a);this.updateView(this.field.value);this.shim.setStyle("display","block");if(!this.addedFields[a]){this.addedFields[a]=!0;var b=this;addEvent(document,"keydown",function(a){b.handleKeyPress(a)},!1)}this.position()};ColorPicker.prototype.handleKeyPress=function(a){getEvent(a).keyCode==KEY_ESC&&this.hide()}; ColorPicker.prototype.selectBasic=function(a){!this.field.disabled&&this.field.value!=a&&(this.field.value=ColorPicker.formatHex(a),Sfdc.Event.fireEvent(this.field,"change"));this.field.focus();Sfdc.userAgent.isIE?Sfdc.Function.delay(this.hide,100,this):this.hide()};ColorPicker.prototype.updateView=function(a){a=ColorPicker.formatHex(a);this.colorView.style.backgroundColor=a;this.hexView.value=a};ColorPicker.singleton=null;ColorPicker.cancelHide=function(a){eventCancelBubble(a);return!1}; ColorPicker.pick=function(a,b){ColorPicker.singleton||(ColorPicker.singleton=new ColorPicker);ColorPicker.singleton.show(a);b&&ColorPicker.cancelHide(b)};ColorPicker.formatHex=function(a){var b="#"==a.charAt(0)?a:"#"+a;if(b.match(/^#[0-9a-f]{3}$/i)){a=b.charAt(1);var c=b.charAt(2),b=b.charAt(3),b="#"+a+a+c+c+b+b}else b.match(/^#[0-9a-f]{6}$/i)||(b="#FFFFFF");return b};ColorPicker.hiOn=function(a,b){hiOn(a);a.style.backgroundColor="#000000";ColorPicker.singleton.updateView(b)}; ColorPicker.hiOff=function(a,b){hiOff(a);a.style.backgroundColor=ColorPicker.formatHex(b)}; function CriteriaInput(a,c,b){if(a){this.oppLabels=a;this.numFilters=c;this.hook_isPopulated=!1;this.currentEntityData=b;this.entityCache={};b&&(this.entityCache[b.entityName]=b);var d=this;this.handleFieldChange=function(a){a=getEventTarget(getEvent(a));d.updateOperator(a,d.getOp(a))};this.handleClearFiltersClick=function(a){document.getElementById(CriteriaInputConstants.pCOL+"1").disabled||d.clearFilters()};this.handleClearFilterRowClick=function(a){document.getElementById(CriteriaInputConstants.pCOL+ "1").disabled||d.clearFilterRow(a)};this.revealHiddenRow=function(a){var b=a.hiddenId;void 0===b&&(b=getEventTarget(getEvent(a)).id);for(var e=0;e=c&&(b=document.getElementById(CriteriaInputConstants.MAX_ROWS_ID)))b.style.display="";break}d.hook_revealHiddenRow()};this.init()}} CriteriaInput.prototype.init=function(){for(var a=this,c=function(b){return function(){a.handleClearFilterRowClick(b)}},b=1;b<=this.numFilters;b++){var d=document.getElementById(CriteriaInputConstants.pCOL+b);("number"==typeof d.selectedIndex&&0a.getFullYear()){Util.insertOption(this.yearPicker,new Option(d,c,!1,!0),e);b=!0;break}else if(parseInt(this.yearPicker[e].value)==c){this.yearPicker.selectedIndex=e;b=!0;break}b||(this.yearPicker.options[this.yearPicker.options.length]=new Option(d,c,!1,!0));this.monthPicker.selectedIndex= a.getMonth()};DatePicker.prototype.prevMonth=function(){if(0==this.monthPicker.selectedIndex){var a=parseInt(this.yearPicker[this.yearPicker.selectedIndex].value)-1;if(0==this.yearPicker.selectedIndex||a!=this.yearPicker[this.yearPicker.selectedIndex-1].value){var b=new Date;b.setFullYear(a);b.setMonth(11);this.setMyDate(b)}else this.yearPicker.selectedIndex--,this.monthPicker.selectedIndex=11}else this.monthPicker.selectedIndex--;this.generateMonth()}; DatePicker.prototype.nextMonth=function(){if(11==this.monthPicker.selectedIndex){var a=parseInt(this.yearPicker[this.yearPicker.selectedIndex].value)+1;if(this.yearPicker.selectedIndex==this.yearPicker.length-1||a!=this.yearPicker[this.yearPicker.selectedIndex+1].value){var b=new Date;b.setFullYear(a);b.setMonth(0);this.setMyDate(b)}else this.yearPicker.selectedIndex++,this.monthPicker.selectedIndex=0}else this.monthPicker.selectedIndex++;this.generateMonth()}; DatePicker.prototype.generateMonth=function(){var a=parseInt(this.monthPicker[this.monthPicker.selectedIndex].value),b=parseInt(this.yearPicker[this.yearPicker.selectedIndex].value),c=new Date;c.setDate(1);c.setFullYear(b);c.setMonth(a);var d=UserContext.startOfWeek-c.getDay();1Sfdc.Window.getScrollY()+Sfdc.Window.getWindowHeight()?b-(this.calendarDiv.offsetHeight+1):b+(this.myElement.offsetHeight+1);c="left"; LC.isRtlPage()&&(c="right",a=this.calendarDiv.offsetParent.offsetWidth-a-this.myElement.offsetWidth);this.shim.setStyle(c,a+"px");this.shim.setStyle("top",b+"px")}; DatePicker.prototype.show=function(a,b,c,d){if(this.skipReopen)this.skipReopen=!1;else{this.callOnChange=a;this.hasTime=c;this.myField=DatePicker.getDateField(b);this.myElement=d?d:this.myField;var e=this;"hidden"!=this.myField.type&&(this.addedFields[b]!==this.myField&&(this.addedFields[b]=null),this.addedFields[b]||(this.addedFields[b]=this.myField,addEvent(this.myField,"keydown",function(a){e.handleKeyPress(a)},!1),!c&&LC.isEnglishLanguage()&&(a=LC.isEnglishUS()?function(){DateUtil.checkYear(e.myField, e.callOnChange)}:function(){DateUtil.evaluateShortcut(e.myField,e.callOnChange)},addEvent(this.myField,"blur",a,!1))));c=c?DateUtil.getDateFromFormat(this.myField.value,UserContext.dateTimeFormat):DateUtil.getDateFromFormat(this.myField.value,UserContext.dateFormat);0!=c?(this.currentDate=new Date(c),this.setMyDate(this.currentDate)):this.setMyDate(this.today);this.generateMonth();this.display()}};DatePicker.prototype.cancelHide=function(a){eventCancelBubble(a);return!1}; DatePicker.prototype.handleKeyPress=function(a){a=getEvent(a).keyCode;a==KEY_ESC||a==KEY_TAB?this.hide():a==KEY_ENTER&&!this.hasTime&&(LC.isEnglishUS()?DateUtil.checkYear(this.myField):LC.isEnglishLanguage()&&DateUtil.evaluateShortcut(this.myField))};DatePicker.prototype.hide=function(a){a&&getEventTarget(a)===this.myField||this.shim.setStyle("display","none")};DatePicker.prototype.display=function(){this.shim.setStyle("display","block");this.position();this.skipReopen=!1};DatePicker.datePicker=null; DatePicker.getDatePicker=function(){DatePicker.datePicker||(DatePicker.datePicker=new DatePicker);return DatePicker.datePicker};DatePicker.getDateField=function(a){a=Sfdc.get(a);if(!a)return null;Sfdc.Data.get(a,"DatePicker:onClickAdded")||(Sfdc.on(a,"click",function(a){if(document.activeElement&&this===document.activeElement&&Sfdc.isFunction(this.onfocus))this.onfocus(a)}),Sfdc.Data.set(a,"DatePicker:onClickAdded",!0));return a}; DatePicker.pickDate=function(a,b,c,d){DatePicker.getDatePicker().show(a,b,c,d)}; DatePicker.insertDate=function(a,b,c){var d=DatePicker.getDateField(b);if(!d.disabled&&d.value!=a){d.value=DatePicker.formateDateForInputElement(d.type,a);if(window.sfdcPage&&window.sfdcPage.getLookupFieldsControlledBy){b=(a=sfdcPage.getLookupFieldsControlledBy(b))?a.length:0;for(var e=0;e=b||"A"<=b&&"Z">=b||"0"<=b&&"9">=b?(!e&&("0"<=b&&"9">=b)&&(a+="X"),a+=b,e=!0,f=!1):e&&!f&&(a+="_",f=!0)}e?(c.maxLength&&0b&&(b=d);a.width=b}var b=c.getElementsByTagName("body")[0], e=d=0;ua=navigator.userAgent.toLowerCase();if(/msie 8/.test(ua))e=40;else if(/msie/.test(ua)||/gecko/.test(ua)&&/rv:1/.test(ua))e=20;b?(b.scrollHeight!=b.clientHeight&&(d=b.scrollHeight-b.clientHeight),c=b.clientHeight+d+HtmlDetailElement.adjustFrameSizeForListOnly(b)+e,b.firstChild&&b.firstChild.offsetTop&&(c+=b.firstChild.offsetTop),a.height=c):(c.scrollHeight!=c.clientHeight&&(d=c.scrollHeight-c.clientHeight),a.height=c.scrollHeight+d+HtmlDetailElement.adjustFrameSizeForListOnly(c)+e)}},adjustFrameSizeForListOnly:function(a){return a&& (a.childNodes&&1==a.childNodes.length&&"ul"==a.firstChild.nodeName.toLowerCase())&&(a=a.firstChild,a.childNodes&&1<=a.childNodes.length)?a.getElementsByTagName("li")[0].clientHeight:0}}; function ImageSelectElement(b,d,e){var a=this;this.inputElement=document.getElementById(b);this.image=document.getElementById(d);this.partialImageURL=e;this.inputElement.imageSelectElement=this;this.inputElement.onchange=function(){var b=QueryString.getURI(a.partialImageURL),c=QueryString.createQueryString(a.partialImageURL,!1);c.replace("id",a.inputElement.value);a.image.src=c.concatenateWithUrl(b,!1)}} ImageSelectElement.prototype.isNull=function(){return!(this.inputElement&&this.inputElement.value&&0c.length)){var d=c[0],b=this;this.isHidden=!0;this.onLinkClickHandler=function(){b.isHidden?(d.style.display="block",b.link.innerHTML=LC.getLabel("ManageableInfo","LessInfo"),b.isHidden=!1):(d.style.display="none",b.link.innerHTML=LC.getLabel("ManageableInfo","MoreInfo"),b.isHidden=!0);window.VFEditor&&window.VFEditor.refreshTroughPosition()};if((a=a.getElementsByTagName("a"))&& 0this.buttonWidth&&aa&&(a=c.offsetWidth)}this.shim.setStyle("width",a+"px");a=Sfdc.Dom.getStyle(this.parentDiv,"display");if("inline"==a||"inline-block"==a)this.parentDiv.style.position="relative",this.shim.setStyle("top",this.buttonDiv.offsetHeight+"px")}; MenuButton.prototype.hide=function(a){delStyleClass(this.parentDiv,"menuButtonActivated");"none"!=Sfdc.Dom.getStyle(this.menuDiv,"display")&&(this.shim.setStyle("display","none"),this.parentDiv.style.position="",a||this.hide_hook())};MenuButton.prototype.hide_hook=function(){}; MenuButton.prototype.hideOthers=function(a){a=getEventTarget(a);a!=this.buttonDiv&&(a!=this.buttonLabel&&a!=this.parentDiv&&a.parentNode!=this.buttonDiv&&!hasStyleClass(a,"menuButtonMenuLink"))&&(this.hide(!0),hasStyleClass(this.parentDiv,"menuButtonActivated")&&delStyleClass(this.parentDiv,"menuButtonActivated"))};MenuButton.prototype.handleKeyPress=function(a){a.keyCode==KEY_ESC&&this.hide()}; MenuButton.prototype.addOption=function(a,b,c,e){if(!this.hook_isAccessibleMode()){var d=document.createElement("a");c&&(d.className=c);e&&(d.target=e);d.href=b;d.innerHTML=a;this.menuDiv.appendChild(d)}}; MenuButton.prototype.addOptionAsMediaBlock=function(a,b,c){if(!this.hook_isAccessibleMode()){var e=document.createElement("li"),d=e;c&&(d=document.createElement("a"),d.href=c,Sfdc.Dom.addClass(d,["zen-gotoRecord"]),e.appendChild(d));var f=document.createElement("div");Sfdc.Dom.addClass(f,"zen-media");d.appendChild(f);a&&(f.innerHTML=a,Sfdc.Dom.addClass(f.firstChild,["zen-img","zen-mhs","zen-mvn","mruIcon"]));d=document.createElement("div");f.appendChild(d);Sfdc.Dom.addClass(d,"zen-mediaBody");!a&& !c&&Sfdc.Dom.addClass(d,"zen-pas");d.innerHTML=b;this.menuDiv.appendChild(e);return e}};MenuButton.prototype.addOptionsAsMediaBlock=function(a){if(!this.hook_isAccessibleMode())for(var b=0;b=OverlayDialog.MAX_BUTTONS)throw"Cannot have more than "+OverlayDialog.MAX_BUTTONS+" buttons.";this.buttons[a]={display:c,action:b}}; OverlayDialog.prototype.setupDefaultButtons=function(){this.buttons=[];this.buttons[0]={display:LC.getLabel("Buttons","ok"),action:null};this.buttons[1]={display:LC.getLabel("Buttons","cancel"),action:null}};OverlayDialog.prototype.clearButtons=function(){this.buttons=[]}; OverlayDialog.prototype.show=function(){if(this.useCSS){var a=this.getPageOverflowElement();this.htmlOverflow=a.style.overflow;a.style.overflow="hidden"}this.dialog?(this.dialog.style.display="block",this.position(),this.isModal&&(this.background||this.createBackground(),this.resizeBackground(),this.background.style.display="block",this.processSelectElems()),this.dialog.style.visibility="visible",this.isOpen=!0,Sfdc.Function.delay(this.setPrimaryFocus,1,this,[this]),window.Perf&&Perf.endMark(OverlayDialog.LOAD_MARK)): Sfdc.log("WARNING \x3e OverlayDialog.show() was called even though no dialog object had been created with createDialog(). This means that the dialog creation failed or is stuck in the Aloha onLoad queue.")}; OverlayDialog.prototype.setPrimaryFocus=function(a,c){a||(a=this);if(!0===c){if(null!==a.wrappingPointId){var b=document.getElementById(a.wrappingPointId);if(null!==b&&!0!==b.disabled)try{b.focus()}catch(d){}else Sfdc.error(a.wrappingPointId+" could not be focused")}}else if(!0===a.focusOnShow){b=null;null!==a.focusPointId&&(b=document.getElementById(a.focusPointId));if(null===b||b.disabled||"none"===b.style.display||"hidden"===b.style.display.visibility){var e=a.dialog.getElementsByTagName("*"), f=null,h=null;for(i=0;igetWindowHeight()&&(c.style.height=getWindowHeight()-100+"px",c.style.overflowY="auto",c.style.position="relative");if(this.positioned){var c=Sfdc.Window.getWindowWidth()-OverlayDialog.EDGE_BUFFER,b=Sfdc.Window.getWindowHeight()-OverlayDialog.EDGE_BUFFER,d=OverlayDialog.EDGE_BUFFER-this.dialog.offsetWidth,e=-OverlayDialog.EDGE_BUFFER/2;this.fixedXc&&(this.fixedX=c);this.fixedYb&&(this.fixedY=b)}else this.setInnerHeight(),c=Sfdc.Window.getWindowWidth()-this.dialog.offsetWidth,c=6>c?6:c/2,b=Sfdc.Window.getWindowHeight()-this.dialog.offsetHeight,this.fixedX=c,this.fixedY=6>b?6:b/2;Sfdc.userAgent.isIE6?(a.left=this.fixedX+getScrollX()+"px",a.top=this.fixedY+getScrollY()+"px"):(a.left=this.fixedX+"px",a.top=this.fixedY+"px")}}};OverlayDialog.prototype.setInnerHeight=function(){}; OverlayDialog.prototype.createBackground=function(){this.background=document.createElement("div");this.background.className="overlayBackground";this.useCSS&&(Sfdc.userAgent.isSafariIOS?(this.background.style.width=document.body.scrollWidth+"px",this.background.style.height=document.body.scrollHeight+"px"):(this.background.style.width="10000px",this.background.style.height="20000px"));document.body.appendChild(this.background);var a=this;addEvent(this.background,"mousedown",function(c){a.smash(c)}, !1);addEvent(this.background,"click",function(c){a.smash(c)},!1)};OverlayDialog.prototype.resizeBackground=function(){if(this.background&&!this.useCSS&&this.created){var a=this.background.style;this.dialog.currentStyle&&Sfdc.userAgent.isIE6?(a.width=document.body.offsetWidth+"px",a.height=document.body.offsetHeight+"px"):(a.width=Math.max(document.documentElement.scrollWidth,Sfdc.Window.getWindowWidth())+"px",a.height=Math.max(document.documentElement.scrollHeight,Sfdc.Window.getWindowHeight())+"px")}}; OverlayDialog.prototype.scrollEvent=function(){this.created&&this.position()};OverlayDialog.prototype.resizeEvent=function(){this.resizeBackground();this.position()}; OverlayDialog.prototype.createDialog=function(){this.dialog=this.createDialogElement();document.body.appendChild(this.dialog);this.setWidth(this.width);var a=this;addEvent(document.getElementById(this.blurCatchId),"focus",function(){a.setPrimaryFocus(a,!0)});addEvent(document.body,"keyup",function(){if(a&&a.isOpen){for(var b=document.activeElement,c=!0;b.id!=a.id;){if(b===document.body){c=!1;break}b=b.parentNode}c||a.setPrimaryFocus(a)}});if(!this.useCSS&&(this.isMovable||this.isResizable))if(addEvent(document, "mouseup",function(){a.stopDrag()},!1),this.isMovable&&(addEvent(this.dialog.firstChild,"mousedown",function(b){a.startMove(b)},!1),addEvent(document,"mousemove",function(b){a.move(b)},!1)),this.isResizable){var c=document.getElementById(this.id+"Resize");addEvent(c,"mousedown",function(b){a.startResize(b)},!1);addEvent(document,"mousemove",function(b){a.resize(b)},!1)}this.createContent();this.created=!0}; OverlayDialog.prototype.createDialogElement=function(){this.blurCatchId=this.id+"BlurCatch";this.focusPointId=this.id+"FocusPoint";this.wrappingPointId=this.displayX?this.id+"X":this.focusPointId;var a=this.id+"Title",c=document.createElement("div");c.id=this.id;c.setAttribute("role","dialog");c.setAttribute("aria-live","assertive");c.setAttribute("aria-describedby",a);var b=["overlayDialog"];this.isAbsolutePositioned&&b.push("absolutePositionedOverlayDialog");this.useCSS&&b.push("cssDialog");b.push(this.extraClass); c.className=b.join(" ");b=[];b.push("\x3cdiv class\x3d'topRight");this.isMovable&&b.push(" movable");b.push("'");this.showHeader||b.push(" style\x3d'display:none;'");b.push("\x3e");b.push("\x3ca id\x3d'"+this.focusPointId+"' ");b.push("href\x3d'javascript:void(0)' ");b.push("onclick\x3d'return false;' ");b.push("style\x3d'"+OverlayDialog.HIDDEN_STYLE+"' ");b.push("title\x3d'"+LC.getLabel("Global","startOfDialog")+"' ");this.displayX&&b.push("onfocus\x3d'document.getElementById(\""+this.wrappingPointId+ "\").focus()'");b.push("\x3e");b.push(LC.getLabel("Global","startOfDialog"));b.push("\x3c/a\x3e");b.push("\x3cdiv class\x3d'topLeft'\x3e");this.displayX&&(b.push("\x3ca id\x3d'"+this.wrappingPointId+"' title\x3d'"+LC.getLabel("Buttons","close")+"' tabindex\x3d'0' onmouseover\x3d\"this.className \x3d 'dialogCloseOn'\" onmouseout\x3d\"this.className \x3d 'dialogClose'\" onclick\x3d\"var dlg \x3d sfdcPage.getDialogById('"),b.push(this.id),b.push("');"),"function"==typeof this.closeButtonAction&&b.push("dlg.closeButtonAction();"), b.push("dlg.cancel()\" href\x3d'javascript:void(0)' class\x3d'dialogClose'\x3e"+LC.getLabel("Buttons","close")+"\x3c/a\x3e"));b.push("\x3ch2 id\x3d'"+a+"'\x3e");b.push(this.title);b.push("\x3c/h2\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d'middle'\x3e\x3cdiv class\x3d'innerContent' id\x3d'");b.push(this.getContentId());b.push("'\x3e\x3c/div\x3e\x3c/div\x3e");this.isResizable&&(b.push("\x3cdiv id\x3d'"),b.push(this.id),b.push("Resize' class\x3d'dialogResize'\x3e\x3c/div\x3e"));b.push("\x3cdiv class\x3d'bottomRight'"); this.showFooter||b.push(" style\x3d'display:none;'");b.push('\x3e\x3clabel style\x3d"display:none;" for \x3d"'+this.blurCatchId+"\"\x3e'\x26nbsp;'\x3c/label\x3e\x3cinput id\x3d'"+this.blurCatchId+"' style\x3d'"+OverlayDialog.HIDDEN_STYLE+"' type\x3d'text' /\x3e\x3cdiv class\x3d'bottomLeft'\x3e\x3c/div\x3e\x3c/div\x3e");c.innerHTML=b.join("");return c};OverlayDialog.prototype.createContent=function(){}; OverlayDialog.prototype.startMove=function(a){a=getEvent(a);"IMG"!=getEventTarget(a).nodeName&&(this.moving=this.positioned=!0,this.relativeX=a.clientX-this.dialog.offsetLeft,this.relativeY=a.clientY-this.dialog.offsetTop,Sfdc.userAgent.isIE6&&(this.relativeX+=getScrollX(),this.relativeY+=getScrollY()),this.fixedX=a.clientX-this.relativeX,this.fixedY=a.clientY-this.relativeY,this.smash(a))}; OverlayDialog.prototype.startResize=function(a){a=getEvent(a);this.resizing=this.positioned=!0;this.relativeX=a.clientX;this.relativeY=a.clientY;this.startWidth=this.dialog.offsetWidth;this.startHeight=this.dialog.offsetHeight;this.smash(a)};OverlayDialog.prototype.stopDrag=function(){this.resizing=this.moving=!1};OverlayDialog.prototype.move=function(a){this.moving&&(a=getEvent(a),this.smash(a),this.fixedX=a.clientX-this.relativeX,this.fixedY=a.clientY-this.relativeY,this.position())}; OverlayDialog.prototype.resize=function(a){this.resizing&&(a=getEvent(a),this.smash(a),this.changeX=a.clientX-this.relativeX,this.changeY=a.clientY-this.relativeY,this.position())};OverlayDialog.prototype.smash=function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;a.preventDefault?a.preventDefault():a.returnValue=!1};OverlayDialog.prototype.getContentId=function(){return this.id+"Content"}; OverlayDialog.prototype.createButtons=function(a){a.push("\x3cdiv id\x3d'"+this.id+"_buttons' class\x3d'buttons ");a.push("zen");a.push("'\x3e");for(var c=0;ca?a=1:a>this.totalPages&&(a=this.totalPages);this.handler&&this.handler(a)}; Paginator.addPaginator=function(a){Paginator.instances[a.id]=a};Paginator.instances={}; function RelatedListPanel(a,b){this.panelId=a;this.delayingShow=this.delayingHide=this.currentListId=null;this.numLists=0;this.linksHtml=[];this.isConsole=-1b.innerHTML.indexOf("linklet"))&&"SCRIPT"!==b.nodeName){Sfdc.Dom.updateHTML(b,this.linksHtml.join('\x3cspan class\x3d"pipe"\x3e | \x3c/span\x3e'));a=b.getElementsByTagName("a");for(var c=0;cthis.maxValues);0==b.options.length&&(b.options[0]=new Option(LC.getLabel("SelectElement","Required"),"000000000000000"))}}; SelectFilterElement.prototype.onSearchComplete=function(a){document.getElementById(this.controllerName);a=Util.evalAjaxServletOutput(a);var b=document.getElementById(this.existingName),d=document.getElementById(this.targetName);d.options.length=0;var c=[];if(a.FilteredOptions&&Array.isArray(a.FilteredOptions)&&0this.maxValues)):(d.options[0]=new Option(LC.getLabel("SelectElement","Required"),Udd.EMPTY_KEY),this.showErrorMessage(!1))}; SelectFilterElement.prototype.doSearchServer=function(){if(this.ajaxFilterUrl){var a=document.getElementById(this.getSearchElementId()),a=a.value?a.value:"";if(0===a.length)this.filter();else{var b=document.getElementById(this.controllerName);Sfdc.Ajax.post(UserContext.getUrl(this.ajaxFilterUrl),this.onSearchComplete,{data:{searchStr:a,controlType:b.value},context:this})}}else{a=document.forms[SelectFilterElement.FORMNAME];if(a.onsubmit)a.onsubmit();a.submit()}};SelectFilterElement.FORMNAME=EditPageConstants.pEDIT_PAGE; SelectFilterElement.prototype.handleKeyDown=function(a){a=getEvent(a);return 13==a.keyCode||13==a.which?(this.queueSearch(),!1):this.searchStringChanged=!0};SelectFilterElement.prototype.handlePropertyChange=function(){this.useJsSearch&&this.queueSearch()}; SelectFilterElement.prototype.showErrorMessage=function(a,b){var d=document.getElementById(this.getSearchElementId()),c=document.getElementById("error_"+this.targetName);d&&c&&(a?(c.style.visibility="visible",c.innerHTML=b?b:LC.getLabel("Search_Filter","too_many",this.maxValues,this.maxValues)):c.style.visibility="hidden")}; SelectFilterElement.prototype.filter=function(){var a=document.getElementById(this.controllerName),b=document.getElementById(this.targetName),d=document.getElementById(this.getSearchElementId());this.useJsSearch&&(d&&0!=d.value.length)&&(d.value="");b.options.length=0;SelectFilterElement.prototype.NONE_LABEL&&(b.options[0]=new Option(SelectFilterElement.prototype.NONE_LABEL,"000000000000000"));var c=0,f=0,e=this.allOptions[a.value];if(e){var g=this.existingName;g&&this.initSelectedOptionsFromUi(); for(var h=0;hthis.maxValues);0==b.options.length&&(b.options[0]=new Option(LC.getLabel("SelectElement","Required"),"000000000000000"))}; SelectFilterElement.prototype.initSelectedOptionsFromUi=function(){if(this.existingName){this.selectedOptions=[];var a=document.getElementById(this.existingName);if(a)for(var b=0;bb&&(b=this.sourceList.childNodes[a].scrollWidth);for(a=0;ad&&(d=this.sourceList.childNodes[a].offsetWidth);this.menuDiv.setStyle("width",b+"px");this.scrollbars&&(b=20*this.sourceList.childNodes[0].offsetHeight,a=this.sourceList.offsetHeight,ad;d++){b.setHours(Math.floor(d/2));0==d%2?b.setMinutes(0):b.setMinutes(30);var e=DateUtil.getTimeStringFromUserLocale(b),f="timePickerItem_"+d;this.timeDivs[d]=new TimeDivData(f,e);c.push("\x3cdiv class\x3d'simpleHour' id\x3d'"+f+"' onmouseover\x3d'SimpleTimePicker.timePicker.highLightTimeItem("); c.push(d);c.push(")' onclick\x3d\"SimpleTimePicker.timePicker.selectTime('");c.push(e);c.push("', true)\"\x3e");c.push(e);c.push("\x3c/div\x3e")}a?a.appendChild(this.hoursDiv):document.body.appendChild(this.hoursDiv);this.hoursDiv.innerHTML=c.join("");var g=this;addEvent(document,"click",function(a){g.hide(a)},!1);addEvent(this.hoursDiv,"click",function(a){eventCancelBubble(getEvent(a));return!1},!1);this.hoursShim=new iframeShim(this.hoursDiv)}; SimpleTimePicker.prototype.highLightTimeItem=function(a){null!=this.selectedDiv&&(document.getElementById(this.timeDivs[this.selectedDiv].divId).className="simpleHour");this.selectedDiv=a;document.getElementById(this.timeDivs[this.selectedDiv].divId).className="simpleHour hover";this.adjustScrollbar(a)};SimpleTimePicker.prototype.selectTimeItem=function(a){this.highLightTimeItem(a);this.selectTime(this.timeDivs[this.selectedDiv].timeValue,!1)}; SimpleTimePicker.prototype.positionTime=function(a){var b=getObjX(this.currentField),c=getObjY(this.currentField)+this.currentField.offsetHeight;if(a)var d=getObjX(a),e=getObjY(a),b=b-d,c=c-e+a.offsetTop;this.hoursShim.setStyle("left",b+"px");this.hoursShim.setStyle("top",c+"px");b=a=0;this.currentField.value?(c=DateUtil.getTimeFromUserLocale(this.currentField.value),c.getTime()&&(a=c.getHours(),b=c.getMinutes())):(a=this.now.getHours(),b=this.now.getMinutes());b=parseFloat(b/60);a=Math.round(2*(a+ b));SimpleTimePicker.timePicker.highLightTimeItem(a)};SimpleTimePicker.prototype.adjustScrollbar=function(a){a*=this.hoursDiv.firstChild.offsetHeight;athis.hoursDiv.scrollTop+this.hoursDiv.clientHeight?this.hoursDiv.scrollTop=a:a>this.hoursDiv.scrollTop+this.hoursDiv.clientHeight-this.hoursDiv.firstChild.offsetHeight&&(this.hoursDiv.scrollTop+=this.hoursDiv.firstChild.offsetHeight)}; SimpleTimePicker.prototype.show=function(a,b){this.created||this.create(b);this.currentField=getElementByIdCS(a);this.fields[a]!==this.currentField&&(this.fields[a]=null);if(!this.fields[a]){var c=this;this.currentField.onkeydown=function(a){return c.trapEnterKey(a)};addEvent(this.currentField,"keydown",function(a){return c.handleKeyPress(a)},!1);this.fields[a]=this.currentField}this.hoursDiv.style.width=this.currentField.clientWidth+2+"px";this.hoursShim.setStyle("display","block");this.positionTime(b); this.isVisible=!0};SimpleTimePicker.prototype.hide=function(a){a&&getEventTarget(a)===this.currentField||(this.hoursShim.setStyle("display","none"),this.isVisible=!1)};SimpleTimePicker.prototype.trapEnterKey=function(a){return getEvent(a).keyCode==KEY_ENTER&&this.isVisible?(eventCancelBubble(getEvent(a)),!1):!0}; SimpleTimePicker.prototype.handleKeyPress=function(a){var b=getEvent(a).keyCode;if(this.isVisible)if(b==KEY_ESC||b==KEY_TAB)this.hide();else{if(b==KEY_ENTER)return this.hide(),eventCancelBubble(getEvent(a)),!1;b==KEY_ARROW_U?0c;c++)a.setHours(c),b.push("\x3cdiv class\x3d'hour' onmouseover\x3d'TimePicker.timePicker.selectHour("),b.push(c),b.push(")' onclick\x3d'TimePicker.timePicker.selectTime("),b.push(c),b.push(", 0)'\x3e"),b.push(DateUtil.getTimeStringFromUserLocale(a)),b.push("\x3c/div\x3e");document.body.appendChild(this.hoursDiv); this.hoursDiv.style.width=DateUtil.hasAMPM(UserContext.timeFormat)?"7em":"5.5em";this.hoursDiv.innerHTML=b.join("");this.minutesDiv=document.createElement("div");this.minutesDiv.className="minutePicker";b=[];for(c=15;60>c;c+=15)b.push("\x3cdiv class\x3d'minutes' onclick\x3d'TimePicker.timePicker.selectMinutes("),b.push(c),b.push(")' onmouseover\x3d'this.className \x3d \"minutes hover\";' onmouseout\x3d'this.className \x3d \"minutes\";'\x3e:"),b.push(c),b.push("\x3c/div\x3e");document.body.appendChild(this.minutesDiv); this.minutesDiv.innerHTML=b.join("");var d=this;addEvent(document,"click",function(a){d.hide(a)},!1);addEvent(this.hoursDiv,"click",function(a){eventCancelBubble(a);return!1},!1);addEvent(this.minutesDiv,"click",function(a){eventCancelBubble(a);return!1},!1);addEvent(this.minutesDiv,"mouseout",function(){d.delayHideMinutes()},!1);addEvent(this.hoursDiv,"mouseout",function(){d.delayHideMinutes()},!1);addEvent(this.minutesDiv,"mouseover",function(){d.cancelHideMinutes()},!1);this.hoursShim=new iframeShim(this.hoursDiv); this.minutesShim=new iframeShim(this.minutesDiv)};TimePicker.prototype.positionHours=function(){var a=getObjX(this.currentField),b=getObjY(this.currentField)+this.currentField.offsetHeight;this.hoursShim.setStyle("left",a+"px");this.hoursShim.setStyle("top",b+"px");a=0;this.currentField.value?(b=DateUtil.getTimeFromUserLocale(this.currentField.value),b.getTime()&&(a=b.getHours())):a=this.now.getHours();this.hoursDiv.scrollTop=a*this.hoursDiv.firstChild.offsetHeight}; TimePicker.prototype.positionMinutes=function(){var a=getObjY(this.hoursDiv)+this.currentHour*this.hoursDiv.firstChild.offsetHeight-this.hoursDiv.scrollTop+1,b=getObjX(this.hoursDiv)+this.hoursDiv.firstChild.offsetWidth;this.minutesShim.setStyle("left",b+"px");this.minutesShim.setStyle("top",a+"px")}; TimePicker.prototype.show=function(a){this.created||this.create();this.currentField=getElementByIdCS(a);this.fields[a]!==this.currentField&&(this.fields[a]=null);if(!this.fields[a]){var b=this;addEvent(this.currentField,"keydown",function(a){b.handleKeyPress(a)},!1);this.fields[a]=this.currentField}this.hoursShim.setStyle("display","block");this.positionHours()};TimePicker.prototype.showMinutes=function(){this.cancelHideMinutes();this.positionMinutes();this.minutesShim.setStyle("display","block")}; TimePicker.prototype.cancelHideMinutes=function(){this.hidingMinutes&&(clearTimeout(this.hidingMinutes),this.hidingMinutes=null)};TimePicker.prototype.delayHideMinutes=function(){var a=this;this.hidingMinutes=setTimeout(function(){a.hideMinutes()},50)};TimePicker.prototype.hideMinutes=function(){this.minutesShim.setStyle("display","none");this.hoursDiv.childNodes[this.currentHour].className="hour"}; TimePicker.prototype.hide=function(a){a&&getEventTarget(a)===this.currentField||(this.hideMinutes(),this.hoursShim.setStyle("display","none"))};TimePicker.prototype.handleKeyPress=function(a){a=getEvent(a).keyCode;(a==KEY_ESC||a==KEY_TAB)&&this.hide()};TimePicker.prototype.selectHour=function(a){this.hoursDiv.childNodes[this.currentHour].className="hour";this.currentHour=a;this.hoursDiv.childNodes[this.currentHour].className="hour hover";this.showMinutes()}; TimePicker.prototype.selectMinutes=function(a){this.selectTime(this.currentHour,a)};TimePicker.prototype.selectTime=function(a,b){this.hide();var c=new Date;c.setHours(a);c.setMinutes(b);c=DateUtil.getTimeStringFromUserLocale(c);if(!this.currentField.disabled&&this.currentField.value!=c&&(this.currentField.value=c,this.currentField.onchange))this.currentField.onchange()};TimePicker.timePicker=null;TimePicker.pickTime=function(a){TimePicker.timePicker||(TimePicker.timePicker=new TimePicker);TimePicker.timePicker.show(a)}; TimePicker.quickTime=function(a,b){var c=getElementByIdCS(b);if(!c.disabled&&c.value!=a&&(c.value=a,c.onchange))c.onchange()}; var TreeNodeElement=function(){};TreeNodeElement.prototype.collapsedWidget=new Image(20,16);TreeNodeElement.prototype.collapsedWidget.className="plus";TreeNodeElement.prototype.collapsedWidgetStart=new Image(20,16);TreeNodeElement.prototype.collapsedWidgetStart.className="plusStart";TreeNodeElement.prototype.collapsedWidgetEnd=new Image(20,16);TreeNodeElement.prototype.collapsedWidgetEnd.className="plusEnd";TreeNodeElement.prototype.expandedWidget=new Image(20,16); TreeNodeElement.prototype.expandedWidget.className="minus";TreeNodeElement.prototype.expandedWidgetStart=new Image(20,16);TreeNodeElement.prototype.expandedWidgetStart.className="minusStart";TreeNodeElement.prototype.expandedWidgetEnd=new Image(20,16);TreeNodeElement.prototype.expandedWidgetEnd.className="minusEnd"; TreeNodeElement.prototype.getExpandedWidgetState=function(a){return-1!=a.indexOf("Start")?TreeNodeElement.prototype.expandedWidgetStart.className:-1!=a.indexOf("End")?TreeNodeElement.prototype.expandedWidgetEnd.className:TreeNodeElement.prototype.expandedWidget.className};TreeNodeElement.prototype.getCollapsedWidgetState=function(a){return-1!=a.indexOf("Start")?TreeNodeElement.prototype.collapsedWidgetStart.className:-1!=a.indexOf("End")?TreeNodeElement.prototype.collapsedWidgetEnd.className:TreeNodeElement.prototype.collapsedWidget.className}; TreeNodeElement.prototype.toggle=function(a,c){var b=document.getElementById(c);null!=b&&((visible="none"!=b.style.display)?(b.style.display="none",a.className=TreeNodeElement.prototype.getCollapsedWidgetState(a.className)):(b.style.display="block",a.className=TreeNodeElement.prototype.getExpandedWidgetState(a.className)))}; function TwistyElement(a,b,d,e,c){this.twisty=document.getElementById(a);this.dep=document.getElementById(b);this.showLabel=d;this.hideLabel=e;if(this.twisty&&this.dep){c&&(this.dep.style.display="none");this.hidden=c;var f=this;addEvent(this.twisty.parentNode,"click",function(a){f.twistElement(a)})}} TwistyElement.prototype.twistElement=function(a){var b=Sfdc.get(".twistyText",this.twisty.parentNode);a=getEventTarget(getEvent(a));if(a===b||a===this.twisty)this.hidden?(this.dep.style.display="block",this.hidden=!1,this.twisty.className="hideListButton",b.innerHTML=this.hideLabel):(this.dep.style.display="none",this.hidden=!0,this.twisty.className="showListButton",b.innerHTML=this.showLabel)}; function VerticallyArrangableSelectElement(a){this.id=a;var c=this;sfdcPage.appendToOnloadQueue(function(){c.init()})} VerticallyArrangableSelectElement.prototype.init=function(){for(var a=document.getElementById(this.id).parentNode.parentNode.getElementsByTagName("img"),c=this.id,b=0;a&&bb&&(b=n)}e&&Sfdc.Dom.hideByDisplay(e);0==b||b==d+2||this.grid.getColumnModel().setColumnWidth(a,b+8)},handleHdMenuClick:function(a){var b=a.getItemId();if("asc"==b||"desc"==b){a=this.cm.getDataIndex(this.hdCtxIndex); var b=b.toUpperCase(),c=this.sortState;if(a&&(Ext.isEmpty(c)||c.field!=a||c.dir!=b))this.fireEvent("sfdc.updateSort",this,a,b),this.updateSortIcon(this.hdCtxIndex,b),this.sortState={field:a,dir:b}}else Sfdc.grid.GridView.superclass.handleHdMenuClick.call(this,a)},beforeColMenuShow:function(){var a=this.colMenu,b=this.cm,c=function(a){return(a=b.getColumnById(a))&&!a.hidden};0=b.getColumnsBy(this.isHideableColumn,this).length)this.onDenyColumnHide();else this.grid.getStore().recordType.prototype.fields.removeKey(c),g.splice(d,1),b.setConfig(g), this.fireEvent("sfdc.removeColumn",this,c)}else a=this.hdCtxIndex+1,-1!=d?b.moveColumn(d,a):(d=new Ext.data.Field({name:c}),this.grid.getStore().recordType.prototype.fields.add(d),b.config=[],g.splice(a,0,this._availableColumnsLookup[c]),b.setConfig(g)),this.fireEvent("sfdc.addColumn",this,e,c)}}),Sfdc.grid.CheckboxSelectionModel=Ext.extend(Ext.grid.RowSelectionModel,{header:"\x3cinput type\x3d'checkbox' id\x3d'allBox' value\x3d''/\x3e",width:20,sortable:!1,fixed:!0,dataIndex:"",id:"checkbox",renderer:function(a, b,c){a="";if(this.scope&&this.scope.titleFieldKey)if(b=c.data&&c.data[this.scope.titleFieldKey],Sfdc.isDefAndNotNull(b)){Sfdc.isString(b)?a=b:Sfdc.isArray(b)&&(Sfdc.isArray(b[1])?a=b[1][1]:b[1]&&(a=b[1]));Sfdc.isDefAndNotNull(a)&&!Sfdc.isString(a)&&(a=a.toString());if(Sfdc.isEmpty(a)||"\x26nbsp;"==a)a=LC.getLabel("listviewMessages","emptytitle");a=Sfdc.String.escapeToHtml(a)}else a="";return['\x3cinput id\x3d"',c.id,'" value\x3d"',c.id,'" title\x3d"',a,'" type\x3d"checkbox" class\x3d"checkbox" name\x3d"ids"/\x3e'].join("")}, initEvents:function(){Sfdc.grid.CheckboxSelectionModel.superclass.initEvents.call(this);this.grid.on("render",function(){var a=this.grid.getView();a.mainBody.on("mousedown",this.onMouseDown,this);a.mainBody.on("mouseup",this.onMouseUp,this);a.mainBody.on("keypress",this.onKeyPress,this);Ext.fly(a.innerHd).on("mousedown",this.onHdMouseDown,this);Ext.fly(a.innerHd).on("mouseup",this.onHdMouseUp,this);Ext.fly(a.innerHd).on("keypress",this.onKeyPress,this);Sfdc.userAgent.isIE9&&(a.mainBody.on("dblclick", this.handleDoubleClick,this),Ext.fly(a.innerHd).on("dblclick",this.handleDoubleClick,this))},this);this.on("beforerowselect",this.onBeforeRowSelect,this)},maxSelections:200,selectRow:function(a,b,c){if(this.locked||0>a||a>=this.grid.store.getCount())return!1;if(this.isSelected(a))return!0;var d=this.grid.store.getAt(a);if(d&&!1!==this.fireEvent("beforerowselect",this,a,b,d)){(!b||this.singleSelect)&&this.clearSelections();this.selections.add(d);this.last=this.lastActive=a;if(!c)this.grid.getView().onRowSelect(a); this.fireEvent("rowselect",this,a,d);this.fireEvent("selectionchange",this);this.grid.viewport.paginator.setSelectCount(this.selections.length)}else return!1;return!0},deselectRow:function(a,b){if(!this.locked&&this.isSelected(a)){this.last=a;var c=this.grid.store.getAt(a);if(c){this.selections.removeKey(c.id);if(!b)this.grid.getView().onRowDeselect(a);this.fireEvent("rowdeselect",this,a,c);this.fireEvent("selectionchange",this);this.grid.viewport.paginator.setSelectCount(this.selections.length)}}}, selectRows:function(a,b){b||this.clearSelections();for(var c=0,d=a.length;c=b&&this.selectRow(a,!0);a--);},deselectRange:function(a,b,c){if(!this.locked)if(a<=b)for(;a<=b;a++)this.deselectRow(a,c);else for(;a>=b;a--)this.deselectRow(a,c)},clearAllSelections:function(){this.clearSelections();this.selections.clear();this.grid.viewport.paginator.setSelectCount(0); this.grid.viewport.paginator.selectedOnThisPage=0},clearSelections:function(){for(var a=0,b=this.grid.store.getCount();a=this.maxSelections)return alert(LC.getLabel("List","selectionLimit",this.maxSelections)),!1},handleMouseDown:function(a,b,c){},onEditorKey:function(a,b){},onMouseDown:function(a, b){if(0===a.button&&"checkbox"==b.className){a.stopEvent();var c=a.getTarget(".x-grid3-row");if(c){c=c.rowIndex;if(a.shiftKey&&!1!==this.last){var d=this.last;this.isSelected(d)?this.selectRange(d,c,!0):this.deselectRange(d,c);this.last=d}else this.isSelected(c)?this.deselectRow(c):this.selectRow(c,!0);this.lastClickedRow=b}}else this.lastClickedRow=null},onMouseUp:function(a,b){if(0===a.button&&"checkbox"==b.className){a.stopEvent();var c=a.getTarget(".x-grid3-row");if(c&&b==this.lastClickedRow&& (c=this.grid.store.getAt(c.rowIndex).id,(c=getElementByIdCS(c))&&!c.disabled))c.checked=!c.checked}this.lastClickedRow=null},onHdMouseDown:function(a,b){0===a.button?"allBox"==b.id&&(a.stopEvent(),b.checked?this.clearSelections():this.selectAll(),this.lastClickedRow=b):this.lastClickedRow=null},onHdMouseUp:function(a,b){0===a.button&&("allBox"==b.id&&this.lastClickedRow==b&&!b.disabled)&&(b.checked=!b.checked);this.lastClickedRow=null},handleDoubleClick:function(a,b){if(("checkbox"==b.className|| "allBox"==b.id)&&Sfdc.userAgent.isIE9&&!b.disabled)b.checked=!b.checked},onKeyPress:function(a,b){if((31===a.button||32===a.keyCode)&&"checkbox"==b.type)a.button=0,"allBox"==b.id?(this.onHdMouseDown(a,b),this.onHdMouseUp(a,b)):(this.onMouseDown(a,b),this.onMouseUp(a,b))},onRefresh:function(){var a=getElementByIdCS("allBox");a&&(a.checked=!1);var a=this.grid.store,b,c=this.getSelections();this.grid.viewport.paginator&&(this.grid.viewport.paginator.selectedOnThisPage=0);for(var d=[],e=0,g=c.length;e< g;e++)if(-1!=(b=a.indexOfId(c[e].id)))this.grid.getView().onRowSelect(b);else d.push("\x3cinput type\x3d'hidden' name\x3d'ids' value\x3d'"),d.push(c[e].id),d.push("'/\x3e");Sfdc.Dom.updateHTML(this.grid.viewport.offPageIds,d.join(""));c.length!=this.selections.getCount()&&this.fireEvent("selectionchange",this);this.last=!1;this.grid.viewport.paginator&&this.grid.viewport.paginator.draw(0===this.grid.viewport.paginator.totalRecords)}})); var ActivityReminder={_REMINDER_COOKIE:"reminderCookie",_REMINDER_INTERVAL:5E3,_LOCK_COOKIE:"reminderLockCookie",_MAX_COOKIE_LENGTH:4096,initialize:function(a,b,c){ActivityReminder._isPopup=b;ActivityReminder._launched=(new Date).getTime();ActivityReminder._currentSchedule=a;ActivityReminder._checkScheduleUpdates();ActivityReminder._isPopup&&(c||(ActivityReminder._isBlur=!1,setTimeout("ActivityReminder._pseudoFlash()",500),ActivityReminder._subscribeEvents()),ActivityReminder._popupCountdown(),ActivityReminder._setupMeetingSummary(), ActivityReminder._setupSnoozeDismiss(),ActivityReminder._updateSchedule(),ActivityReminder._closeIfEmpty(),updateToggleAllBox(document.forms.reminder,"ids"),window.onresize=ActivityReminder._resizeToFitHorizontalChange,ActivityReminder._resizeToFitHorizontal())},_subscribeEvents:function(){addEvent(window,"focus",ActivityReminder._wasFocused,!1);addEvent(window,"blur",ActivityReminder._wasBlured,!1);var a=document.getElementById(ActivityReminderConstants.REMINDER_ID);addEvent(a,"keydown",ActivityReminder._cancelReturnSubmit); a=document.getElementById(ActivityReminderConstants.DISMISS_ALL_ID);addEvent(a,"click",ActivityReminder._handleDismissAll)},_cancelReturnSubmit:function(a){if((window.event.keyCode||a.keyCode||a.which)==Sfdc.Event.keyCode.ENTER)event.cancelBubble=!0,event.returnValue=!1},_checkScheduleUpdates:function(){var a=getCookie(ActivityReminder._REMINDER_COOKIE);a&&(ActivityReminder._currentSchedule=a.split(","),setTimeout("deleteCookie(ActivityReminder._REMINDER_COOKIE)",ActivityReminder._REMINDER_INTERVAL)); for(var a=(new Date).getTime(),b=!1,c=[],d=0;db&&(b=2E3);ActivityReminder._isPopup&& (b+=1E4);b+=Math.floor(31E3*Math.random());a=Number(a)-ActivityReminder._launched;!ActivityReminder._isPopup&&-72E5>=a?setTimeout("ActivityReminder._showPopup(false)",b):setTimeout("ActivityReminder._showPopupIfRequired()",b)},_updateSchedule:function(){var a=ActivityReminder._currentSchedule.join(","),b=new Date((new Date).getTime()+2*ActivityReminder._REMINDER_INTERVAL);a.length<=ActivityReminder._MAX_COOKIE_LENGTH&&setCookie(ActivityReminder._REMINDER_COOKIE,a,b)},_showPopupIfRequired:function(){var a= (new Date).getTime();Sfdc.Ajax.get(UrlMap.convertClassNameToUrl(ActivityReminderRefreshPage.pCLASS_NAME)+"?at\x3d"+a,function(a){var c=a.indexOf(ActivityReminderConstants.REMINDERS_OK);0>c?(c=a.indexOf(ActivityReminderConstants.REMINDERS_NONE),0>c&&ActivityReminder._showPopup()):ActivityReminder._showPopup()})},_showPopup:function(a){if(!getCookie(ActivityReminder._LOCK_COOKIE)){var b=new Date((new Date).getTime()+5E3);setCookie(ActivityReminder._LOCK_COOKIE,"shown",b);var c=isFirefox?"yes":"no", b=(new Date).getTime(),d=!0==a?"\x26test\x3d1":"",e=320;isNetscape&&isIE&&(e+=40);var f=window.parent,c="width\x3d450,height\x3d"+e+",status\x3dno,location\x3d"+c+",dependent\x3dno,resizable\x3dyes,toolbar\x3dno,directories\x3dno,menubar\x3dno,scrollbars\x3dyes";Sfdc.resolve("Sfdc.servicedeskview")?b=window.privateapi.console.activity.openNewWindow(UrlMap.convertClassNameToUrl(ActivityReminderPage.pCLASS_NAME)+"?at\x3d"+b+d,"Reminder",c,!1):(d=(b=f.open(UrlMap.convertClassNameToUrl(ActivityReminderPage.pCLASS_NAME)+ "?at\x3d"+b+d,"Reminder",c,!1))&&!b.closed,a&&!d?alert(LC.getLabel("Page_ActivityReminder","popup_blocked")):d&&b.focus())}},_popupCountdown:function(){for(var a=(new Date).getTime(),b=0;;b++){var c=document.getElementById(ActivityReminderConstants.DUE_MINUTES_ID+b);if(!c)break;var d=c.getAttribute(ActivityReminderConstants.DUE_TIME_ATTR);0!=d&&ActivityReminder._updateTime(c,d-a)}ActivityReminder._enableSnoozeOptions();setTimeout("ActivityReminder._popupCountdown()",3E4)},_updateTime:function(a,b){var c= Math.round(b/6E4),d=a.firstChild,e;0>c?(e=!0,c=-c):e=!1;c=ActivityReminder._formatDuration(c,e);e&&(c=LC.getLabel("Page_ReminderSettings","overdue",c));d.nodeValue=c},_formatDuration:function(a,b){if(60<=a){var c=b?Math.floor(a/60):Math.ceil(a/60);return 24<=c?(c=Math.floor(c/24),1==c?LC.getLabel("Page_ReminderSettings","day",c):LC.getLabel("Page_ReminderSettings","days",c)):1==c?LC.getLabel("Page_ReminderSettings","hour",c):LC.getLabel("Page_ReminderSettings","hours",c)}return 1==a?LC.getLabel("Page_ReminderSettings", "minute",a):LC.getLabel("Page_ReminderSettings","minutes",a)},showLink:function(a){var b=ActivityReminder._stopFlash=!0;try{if(b=!window.opener||window.opener.closed||window.opener==window,!b)try{b=!window.opener.document}catch(c){b=!0}}catch(d){}b?window.open(a,null,"",!1):(b=window.opener.document.getElementById("mainFrame"))&&"IFRAME"==b.tagName?b.src=a+"?"+Desktop.IS_DESKTOP+"\x3dmn":window.opener.isServiceDeskPage?window.opener.openLinkFromTaskReminder(a):window.opener.location=a},_closeIfEmpty:function(){for(var a= 0,b=0;;b++)if(document.getElementById("ids"+b))a++;else break;a||setTimeout("window.close()",10)},_setupMeetingSummary:function(){var a=Sfdc.select(".dataRow");if(a)for(var b=0;be)b=e;"true"==d&&(b=0)}}for(var a=document.getElementById(ActivityReminderConstants.SNOOZE_TIME_ID),f=a.childNodes,k=!1,e=[0,5,10,15],c=0;cb?document.title=ActivityReminder._originalTitle:(document.title=1==a%2?LC.getLabel("Page_ActivityReminder","new_flash"):ActivityReminder._originalTitle,setTimeout("ActivityReminder._pseudoFlash()",500))},testPopup:function(){setTimeout("ActivityReminder._showPopup(true)",1500)},_resizeToFitHorizontalChange:function(){if(isIE&& document.documentElement.clientWidth!=ActivityReminder._oldWidth){ActivityReminder._oldWidth=document.documentElement.clientWidth;var a=Sfdc.select(".maxHorizontal"),b=!1,c;for(c in a){var d=a[c];d.style.width&&null!=d.style.width&&(d.style.width=null,b=!0)}b&&window.setTimeout("ActivityReminder._resizeToFitHorizontal()",100)}},_resizeToFitHorizontal:function(){if(isNetscape&&!isIE){var a=Sfdc.select(".maxHorizontal"),b=0,c;for(c in a){var d=a[c],e=d.offsetWidth;d.style.width="200px";d.style.overflow= "hidden"}a[0]&&(a[0].parentNode.parentNode.parentNode.style.height="auto")}else if(isIE){var a=Sfdc.get(".bRelatedList"),d=Sfdc.get(".list").offsetWidth+4,f=document.documentElement.clientWidth-(a.offsetWidthGoogleTalkConstants.MIN_EXPANDED_HEIGHT?b:GoogleTalkConstants.MIN_EXPANDED_HEIGHT;this.mouseStatus="down";this.curPos=a.clientY;this.curHeight= parseInt(this.gadget.height);document.body.onmousemove=function(a){GoogleTalk.prototype.theGadget.resize(a)};document.body.onmouseup=function(a){GoogleTalk.prototype.theGadget.setEndDrag(a)}};GoogleTalk.prototype.setEndDrag=function(a){"down"==this.mouseStatus&&(this.mouseStatus="up",this.resizeBar.style.height=this.resizeBarOrigHeight,a=new Date,a.setTime(a.getTime()+31536E7),setCookie(GoogleTalkConstants.HEIGHT_COOKIE,this.gadget.height,a),this.expandedHeight=this.gadget.height)};GoogleTalk.prototype.popout= function(a){this.popupWindow=window.open(this.gadgetUrl,"gTalkPopup","toolbar\x3dno,width\x3d300,height\x3d600,resizable\x3dyes,toolbars\x3dno,status\x3dno,scrollbars\x3dyes,menubar\x3dno,directories\x3dyes,location\x3dyes,dependant\x3dno",!1,!1)};GoogleTalk.prototype.hide=function(){this.gadget.height=0};GoogleTalk.prototype.show=function(){this.gadget.height=this.expandedHeight};GoogleTalk.prototype.isShown=function(){return this.gadget.height!=GoogleTalkConstants.COLLAPSED_HEIGHT}}; function ListPage(){}ListPage.prototype=new GenericSfdcPage; function MultiLineEditPage(){EditPage.call(this);this.elementToEntityIdMap={}}MultiLineEditPage.prototype=new EditPage;MultiLineEditPage.prototype.registerDependentLookup=function(a,c,b){EditPage.prototype.registerDependentLookup.call(this,a,c,b);this.elementToEntityIdMap[a]=b};MultiLineEditPage.prototype.getEntityId=function(a){return this.elementToEntityIdMap[a]}; function FieldTree(a,b,c){this.rootList=a;this.currentNode=FieldTree.ROOT_NODE;this.currentDepth=0;this.formulaType=b;this.servletUrl=c}FieldTree.LOADING_MARKER="__";FieldTree.ROOT_NODE={};FieldTree.prototype.getCurrentList=function(){return this.currentNode===FieldTree.ROOT_NODE?this.rootList:this.getChildren(this.currentNode)}; FieldTree.prototype.ascend=function(a){var b=a?a:this.currentDepth-1;0===a&&(b=0);b>this.currentDepth&&(b=this.currentDepth);for(;this.currentDepth>b;)if(a=this.currentNode)a.parent?(this.currentNode=a.parent,this.currentDepth--):(this.currentNode=FieldTree.ROOT_NODE,this.currentDepth=0);else break};FieldTree.prototype.handleChildrenResponse=function(a,b,c){a=eval(Util.evalAjaxServletOutput(a)[AjaxGetFieldTreeChildren.NODE_LIST]);b.setChildren(a);c&&c(b)}; FieldTree.prototype.handleChildrenError=function(a,b,c){b.setChildren([new FieldTreeNode(FieldTree.LOADING_MARKER,!0,null,LC.getLabel("Global","error"),!0)]);c&&c(b)};FieldTree.prototype.descend=function(a){a=this.getNodeFromCurrentList(a);if(!a||a.isLeaf)return!1;this.currentNode=a;this.currentDepth++;return!0}; FieldTree.prototype.getChildren=function(a,b){if(!a.isLeaf&&!a.children){message={};message[AjaxGetFieldTreeChildren.NODE_KEY]=a.getLabelToInsert(!0);message[AjaxGetFieldTreeChildren.FORMULA_TYPE]=this.formulaType;message[AjaxGetFieldTreeChildren.BASE_ENTITY_FOR_ADDL_CONTEXT]=this.rootList[0].key;var c=this;Sfdc.Ajax.post(this.servletUrl,function(d){c.handleChildrenResponse(d,a,b)},{data:message,failure:function(d){c.handleChildrenError(d,a,b)}});a.setChildren([new FieldTreeNode(FieldTree.LOADING_MARKER, !0,null,LC.getLabel("Global","loading"),!0)])}return a.children};FieldTree.prototype.getNodeFromCurrentList=function(a){for(var b,c=this.getCurrentList(),d=0;da;){c--;for(var b=this.selects[c].parentNode;"TD"!=b.nodeName;)b=b.parentNode;this.container.removeChild(b);this.selects.pop()}};FieldTreeController.prototype.insertCode=function(a,c,b){FormulaEditor.insertCode(a,c.getLabelToInsert(),b);this.afterInsertCallback&&this.afterInsertCallback()}; FieldTreeController.prototype.scrollRight=function(){var a=this.scrollDiv||this.container;0==a.clientWidth&&(a=a.parentNode);a.scrollLeft=a.scrollWidth-a.clientWidth};FieldTreeController.prototype.showSelects=function(){for(var a=0;athis.focusDepth&&(this.focusDepth=this.selects.length);this.focusDepth>this.selects.length&&(this.focusDepth=0);this.focusDepthd.tableCell.offsetTop))c=d;d.setError(a[b])}}c&&c.state==InlineEditState.EDIT&&this.openField(c)}; InlineEditData.prototype.revert=function(){if(this.isEditable){this.closeCurrentField(!0);var a={},c;for(c in this.fields){var b=this.fields[c];b&&(b.changed?b.group?a[b.group[0]]=!0:b.reset():b.clearError())}for(c in a)this.resetGroup(this.fields[c].group);SfdcApp.Dedupe&&SfdcApp.Dedupe.MatchResults&&SfdcApp.Dedupe.MatchResults.revertDedupeOverride()}}; InlineEditData.prototype.loadDynamicData=function(){if(!this.sentRequest){this.sentRequest=!0;var a=this;Sfdc.Resource.addJavaScript(this.dynamicDataUrl,function(){a.dynamicDataLoaded()})}};InlineEditData.prototype.dynamicDataLoaded=function(){this.loadedDynamicData||(this.loadedDynamicData=!0,this.currentField.waitForLoad&&(this.openField(this.currentField),this.visualforce&&sfdcPage.registerPickList(this.visualforce,pl)))}; function InlineEditField(){this.readDiv=this.tableCell=this.id=null;this.created=!1;this.editDiv=null;this.state=InlineEditState.NONE;this.required=!1;this.currentValue=this.initialHTML=this.initialValue=this.label=null;this.changed=!1;this.errorDiv=this.error=this.undoButton=null;this.waitForLoad=this.compound=!1;this.controllerId=null;this.saveOnEnter=!1}InlineEditField.overlay=null; InlineEditField.prototype.init=function(a,b,c,e,d){this.id=a;this.state=b;this.required=c;this.isColumn=e;this.currentValue=this.initialValue=void 0===d||null===d?"":d;this.isColumn||(this.tableCell=getElementByIdCS(a+InlineEditConstants.CELL_ID),this.readDiv=getElementByIdCS(a+InlineEditConstants.INNER_ID),!this.tableCell||!this.readDiv?this.state=InlineEditState.NONE:this.initialHTML=this.readDiv.innerHTML)};InlineEditField.prototype.isDifferentValue=function(a){}; InlineEditField.prototype.openField=function(){};InlineEditField.prototype.showEdit=function(){};InlineEditField.prototype.hideEdit=function(){};InlineEditField.prototype.closeField=function(){};InlineEditField.prototype.createEditElements=function(){};InlineEditField.prototype.getValueFromEdit=function(){return null};InlineEditField.prototype.updateReadElement=function(){};InlineEditField.prototype.updateEditElementImpl=function(){};InlineEditField.prototype.formatValue=function(){}; InlineEditField.prototype.addSaveData=function(a){};InlineEditField.prototype.createDummy=function(){};InlineEditField.prototype.load=function(){};InlineEditField.prototype.mayUndo=function(){return!0};InlineEditField.prototype.updateEditElement=function(){this.created&&this.updateEditElementImpl()};InlineEditField.prototype.doPost=function(){return this.state==InlineEditState.EDIT||this.state==InlineEditState.POSTONLY};InlineEditField.prototype.reset=function(){}; InlineEditField.prototype.cleanValue=function(a){return a&&a.replace?this.cleanValueNoBR(a).replace(/'/g,"\x26#39;").replace(/"/g,"\x26quot;").replace(/\n/g,"\x3cbr\x3e"):a};InlineEditField.prototype.getDeletedValue=function(){return this.isColumn?"":"\x3cem\x3e"+LC.getLabel("Global","deleted")+"\x3c/em\x3e"};InlineEditField.prototype.cleanValueNoBR=function(a){return a&&a.replace?a.replace(/&/g,"\x26amp;").replace(//g,"\x26gt;"):a}; InlineEditField.prototype.createUndoButton=function(){this.undoButton=document.createElement("a");this.undoButton.className="inlineEditUndoLink";this.undoButton.title=LC.getLabel("Icons","inlineEditUndo");this.undoButton.href="javascript:sfdcPage.getInlineEditData('"+this.id+"').resetFieldById('"+this.id+"');";this.attachUndoButtonImage()}; InlineEditField.prototype.attachUndoButtonImage=function(){null===this.undoButton||""!=this.undoButton.innerHTML||(this.undoButton.innerHTML="\x3cimg width\x3d'16px' height\x3d'16px' src\x3d'/s.gif' alt\x3d'"+LC.getLabel("Icons","inlineEditUndo")+"' class\x3d'inlineEditUndo'\x3e")}; InlineEditField.prototype.getFieldLabel=function(){if(this[VisualforceConstants.LABEL])return this[VisualforceConstants.LABEL];for(var a=this.tableCell.previousSibling;a&&a.nodeType!=Node.TEXT_NODE;)a=a.firstChild;return a?Sfdc.String.escapeToHtml(a.nodeValue):""}; InlineEditField.prototype.setError=function(a){this.error=a;this.errorDiv?(this.errorDiv.innerHTML=this.error,this.errorDiv.style.display="block"):(this.errorDiv=document.createElement("div"),this.errorDiv.className="errorMsg",this.errorDiv.innerHTML=this.error,this.tableCell.appendChild(this.errorDiv))}; InlineEditField.prototype.updateDependents=function(){if(this.dependentIds)for(var a=0;aa||9b?1:0}; DateUtil.formatDate=function(a,c){c+="";var b="",h=0,f="",d="",f=a.getFullYear()+"",d=a.getMonth()+1,p=a.getDate(),q=a.getDay(),k=a.getHours(),m=a.getMinutes(),l=a.getSeconds(),e={};LC.isThaiTHLocale()&&(f=f-0+LC.BUDDHIST_CAL_OFFSET+"");e.y=""+f;e.yyyy=f;e.yy=f.substring(2,4);e.M=d;e.MM=DateUtil.LZ(d);e.MMM=DateUtil.MONTH_NAMES[d-1];e.NNN=DateUtil.MONTH_NAMES[d+11];e.d=p;e.dd=DateUtil.LZ(p);e.E=DateUtil.DAY_NAMES[q+7];e.EE=DateUtil.DAY_NAMES[q];e.H=k;e.HH=DateUtil.LZ(k);e.h=0===k?12:12=b;h--){var f=a.substring(c,c+h);if(f.lengthl||12l||12e||31g||12g||23g||11g||24r||59k||59g&&n==DateUtil.getPMSymbol()?g=g-0+12:11DateUtil.compare(a,c)};DateUtil.greaterThan=function(a,c){return 0h/1E3)return 60<=h&&100>h?b.setFullYear(h+1900):b.setFullYear(h+2E3),b.setMonth(parseInt(a[0],10)-1),b.setDate(parseInt(a[1],10)),DateUtil.getDateStringFromUserLocale(b);if("/"!=c)return a[0]+"/"+a[1]+"/"+a[2]}}else return DateUtil.getEvaluateShortcutValue(a)};DateUtil.DAY_SHORTCUTS="Sun Mon Tue Wed Thu Fri Sat".split(" "); DateUtil.evaluateShortcut=function(a,c){var b=a.value.toLowerCase();if(b=DateUtil.getEvaluateShortcutValue(b))if(a.value=b,c&&a.onchange)a.onchange()}; DateUtil.getEvaluateShortcutValue=function(a){if(!(a&&0a&&(a+=7),c.setDate(c.getDate()+a),DateUtil.getDateStringFromUserLocale(c);return null};DateUtil.differenceInMinutes=function(a,c){var b=c.getTime()-a.getTime();return Math.round(b/6E4)};DateUtil.getDateFromValue=function(a,c){var b=c?DateUtil.getDateFromFormat(a,UserContext.dateTimeFormat):DateUtil.getDateFromFormat(a,UserContext.dateFormat);return 0!==b?new Date(b):null}; function DomUtil(){}DomUtil.importNode=function(a,b){if(a){if(b.importNode)return b.importNode(a,!1);for(var e=b.createElement(a.tagName),d=0;dparseFloat(a)||c==parseFloat(a)&&(b>parseFloat(d)||b==parseFloat(d)&&e>=parseFloat(g))?!0:!1}}function ac_AddExtension(a,d){return-1!=a.indexOf("?")?a.replace(/\?/,d+"?"):a+d} function ac_Generateobj(a,d,g,c){var b="",e;if(isIE&&isWin&&!isOpera){b+="\x3cobject ";for(e in d)"parent"!=e&&(b+=e+'\x3d"'+d[e]+'" ');b+="\x3e";for(e in g)g.hasOwnProperty(e)&&(b+='\x3cparam name\x3d"'+e+'" value\x3d"'+g[e]+'" /\x3e ');b+="\x3cp\x3e"+LC.getLabel("ContentFlashPlayer","flashFilePreview")+"\x3c/p\x3e\x3c/object\x3e"}else{b+="\x3cembed ";for(e in c)c.hasOwnProperty(e)&&"function"!=typeof c[e]&&(b+=e+'\x3d"'+c[e]+'" ');b+="\x3e\x3cnoembed\x3e\x3cp\x3e"+LC.getLabel("ContentFlashPlayer", "flashFilePreview")+"\x3c/p\x3e\x3c/noembed\x3e\x3c/embed\x3e"}a.innerHTML=b} function ac_GetArgs(a,d,g,c,b){for(var e={embedAttrs:{},params:{},objAttrs:{}},f=0;f=d&&e<=g/d?(b.width=d,b.height=b.width*e):b.height>=g&&(b.height=g,b.width=b.height/e);b.heightc;c++){if(document.height)a=document.height;else if(document.body.offsetHeight)a=document.body.offsetHeight;else break;b=window.innerHeight?window.innerHeight:document.documentElement.clientHeight&&0b&&window.resizeBy)window.resizeBy(0,a-b);else break}}; function MailmergeTemplateSelectElement(b,a,c){this.id=b;this.items=a;this.fileDownloadUrl=c;var d=this;sfdcPage.appendToOnloadQueue(function(){d.init()})} MailmergeTemplateSelectElement.prototype.init=function(){var b=document.getElementById(this.id),a=this,c=document.getElementById(MailmergeTemplateSelectElementConst.TEMPLATE_VIEW_BUTTON+"_"+this.id);c&&addEvent(c,"mouseup",function(){MailmergeTemplateSelectElement.showPreview(a.fileDownloadUrl,b)},!1);Sfdc.userAgent.isIE9||addEvent(b,"mousemove",function(){MailmergeTemplateSelectElement.showDetails(a.id,b,a.items)},!1);addEvent(b,"change",function(){MailmergeTemplateSelectElement.showDetails(a.id, b,a.items)},!1);MailmergeTemplateSelectElement.showDetails(a.id,b,a.items)}; MailmergeTemplateSelectElement.showDetails=function(b,a,c){0>a.selectedIndex||(a=(a=a.options[a.selectedIndex])?c[a.value]:null,null!=a&&(c=a[MailmergeTemplateSelectElementConst.TEMPLATE_TITLE],a=a[MailmergeTemplateSelectElementConst.TEMPLATE_DESCRIPTION],document.getElementById(MailmergeTemplateSelectElementConst.TEMPLATE_TITLE+"_"+b).innerHTML=c,document.getElementById(MailmergeTemplateSelectElementConst.TEMPLATE_DESCRIPTION+"_"+b).innerHTML=a))}; MailmergeTemplateSelectElement.showPreview=function(b,a){0>a.selectedIndex||window.open(b+"?file\x3d"+a.options[a.selectedIndex].value,"_blank")}; var CustomObjectTeamMemberPage={getMemberRow:function(a){return document.getElementById(CustomObjectTeamMemberUiConstants.MEMBERS_TABLE_ROW_PREFIX+a)},initializeRoles:function(){for(var a=parseInt(document.getElementById(CustomObjectTeamMemberUiConstants.pMEMBERS_COUNT).value),b=0;b=c&&(b.outcome=h.timeout);return b};this.generateNextDelay=function(b,a,d,c,e){a=f.computeDelay(a,d);ab&&(a=b);return a};this.execute=function(b,a){var d=Math.floor(2E16*Math.random());e[d]={timeout:a&&a.timeout||f.globalTimeout,payload:b,submitTime:Timestamp.get()};p(d,f.minTestDelay);return d};this.cancel=function(b){b&&l(b)}} function ensureIdleCallback(c){if(!window.requestIdleCallback||!Sfdc.isFunction(window.requestIdleCallback)||!window.cancelIdleCallback||!Sfdc.isFunction(window.cancelIdleCallback)){c=Sfdc.apply({},c,!0);var k=new EventQueueMonitor(c);window.requestIdleCallback=function(c,l){return k.execute(c,l)};window.cancelIdleCallback=function(c){k.cancel(c)}}}; var FingerprintVars={WEBGL_CONTEXT_NAMES:"webgl,webgl-experimental,moz-webgl",WEBGL_DRAW_MODE:"TRIANGLE_STRIP",WEBGL_EXTENSIONS:"OES_texture_float,OES_texture_half_float,WEBGL_lose_context,OES_standard_derivatives,OES_vertex_array_objects,WEBGL_debug_renderer_info,WEBGL_debug_shaders,WEBGL_compressed_texture_s3tc,WEBGL_depth_texture,OES_element_index_uint,EXT_texture_filter_anisotropic,EXT_frag_depth,WEBGL_draw_buffers,ANGLE_instanced_arrays,OES_texture_float_linear,OES_texture_half_float_linear,EXT_blend_minmax,EXT_shader_texture_lod,WEBGL_compressed_texture_atc,WEBGL_compressed_texture_pvrtc,EXT_color_buffer_half_float,WEBGL_color_buffer_float,EXT_srgb,WEBGL_compressed_texture_etc1,EXT_disjoint_timer_query,EXT_color_buffer_float,WEBGL_shared_resources,WEBGL_security_sensitive_resources,OES_fbo_render_mipmap,WEBGL_compressed_texture_es3", WEBGL_FS_SOURCE:"precision mediump float;varying vec2 tc;void main() {gl_FragColor \x3d vec4(cos(tc.y), sin(tc.x),cos(tc.x) * sin(tc.y),1);}",WEBGL_VERTEX_SIZE:"2",WEBGL_VERTICES:"-0.99,-0.99,0.99,-0.99,-0.99,0.99,0.99,0.99",WEBGL_VIEWPORT:"400,400",WEBGL_VS_ATTR_VERTEX:"pos",WEBGL_VS_SOURCE:"attribute vec2 pos;varying vec2 tc;void main() {tc \x3d pos;gl_Position \x3d vec4(pos, 0, 1);}"},Timestamp={perfObj:window.performance&&Sfdc.isFunction(window.performance.now)?window.performance:void 0,get:function(){return Timestamp.perfObj? Timestamp.perfObj.now():(new Date).getTime()}}; function PerformanceMetrics(){var a={},b={},c=!1,d=window.perfOptions&&window.perfOptions.BOOMR_lstart?window.perfOptions.BOOMR_lstart:+new Date;this.setActive=function(a){c=a};this.isActive=function(){return!!c};this.mark=function(b){c&&(a[b]=Timestamp.get())};this.end=function(d){c&&a[d]&&(b[d]=(Timestamp.get()-a[d]).toPrecision(3),delete a[d])};this.report=function(d,h){c&&(b[d]=h.toPrecision(3),a[d]&&delete a[d])};this.get=function(){return b};this.startTime=function(){return d};this.reset=function(){c= !1;a={};b={}}}function NamedFunction(a,b){this.name=function(){return a};this.fn=b} var BinaryOperations={b64:function(a){var b,c=[];b=a.length;for(var d=b%3,e=b-d,h=0;h>>18&63)),c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>>12&63)),c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>>6&63)),c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b&63));switch(d){case 2:b= a[h++]<<16|a[h++]<<8;c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>>18&63));c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>>12&63));c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>>6&63));c.push("\x3d");break;case 1:b=a[h++]<<16,c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>>18&63)),c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b>>> 12&63)),c.push("\x3d"),c.push("\x3d")}return c.join("")},bitset:function(a){for(var b=[],c=0,d=0,e=0;ed;d++)c=c+ a[d].kind+":"+a[d].label+":"+a[d].deviceId+"\n";this.perfMetrics.end("media.defer");b(c)},getMediaSources:function(a){if(a)if(this.perfMetrics.mark("media.defer"),!navigator.mediaDevices||!navigator.mediaDevices.enumerateDevices)this.perfMetrics.end("media.defer"),a(void 0);else try{var b=this;navigator.mediaDevices.enumerateDevices().then(function(c){b.getMediaDevices(c,a)})}catch(c){this.perfMetrics.end("media.defer"),a(void 0)}},getCanvas:function(){var a="";try{var b=document.createElement("canvas"); b.width=450;b.height=25;var c=b.getContext("2d");c.textBaseline="top";c.font="14px 'Arial'";c.textBaseline="alphabetic";c.fillStyle="#f60";c.fillRect(125,1,200,20);c.fillStyle="#069";c.fillText("How quickly daft jumping zebras vex!@#$%^\x26*()-\x3d+_",2,15);c.fillStyle="rgba(102, 204, 0, 0.7)";c.fillText("How quickly daft jumping zebras vex!@#$%^\x26*()-\x3d+_",4,17);a=b.toDataURL("image/png")}catch(d){a="error"}return BinaryOperations.hashString(a)},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(a){return!0}}, hasLocalStorage:function(){try{return!!window.localStorage}catch(a){return!0}},hasIndexedDB:function(){return!!window.indexedDB},hasWebSockets:function(){return"function"===typeof WebSocket},getPluginStr:function(a){for(var b="",c=0;cc;c++)b=b.concat(a[c].name,":",a[c].description,"\n");return b},getPlugins:function(){return this.getPluginStr(navigator.plugins)},getCpuClass:function(){return navigator.cpuClass||""},getCodecs:function(a){var b=document.createElement("audio"),c=document.createElement("video"); return(new BitSetBuilder("fp.codecs",'application/ogg,application/ogg; codecs\x3dbogus,application/mp4,application/mp4; codecs\x3dbogus,application/octet-stream,application/octet-stream; codecs\x3dbogus,audio/3gpp,audio/3gpp2,audio/aac,audio/x-aac,audio/aiff,audio/x-aiff,audio/ac3,audio/x-ac3,audio/basic,audio/flac,audio/x-flac,audio/mid,audio/midi,audio/x-midi,audio/mpeg,audio/x-mpeg,audio/mpegurl,audio/x-mpegurl,audio/mp4,audio/mp4; codecs\x3dbogus,audio/ogg,audio/ogg; codecs\x3dbogus,audio/wav,audio/wav; codecs\x3d0,audio/wav; codecs\x3d1,audio/wav; codecs\x3d2,audio/wave,audio/wave; codecs\x3d0,audio/wave; codecs\x3d1,audio/wave; codecs\x3d2,audio/x-wav,audio/x-wav; codecs\x3d0,audio/x-wav; codecs\x3d1,audio/x-wav; codecs\x3d2,audio/x-pn-wav,audio/x-pn-wav; codecs\x3d0,audio/x-pn-wav; codecs\x3d1,audio/x-pn-wav; codecs\x3d2,video/3gpp,video/3gpp2,video/avi,video/mpeg,video/x-mpeg,video/mp4,video/mp4; codecs\x3dbogus,video/msvideo,video/x-msvideo,video/quicktime,video/ogg,video/ogg; codecs\x3dbogus,video/mp4; codecs\x3d"avc1.42E01E, mp4a.40.2",video/mp4; codecs\x3d"avc1.58A01E, mp4a.40.2",video/mp4; codecs\x3d"avc1.4D401E, mp4a.40.2",video/mp4; codecs\x3d"avc1.64001E, mp4a.40.2",video/mp4; codecs\x3d"mp4v.20.8, mp4a.40.2",video/mp4; codecs\x3d"mp4v.20.240, mp4a.40.2",video/3gpp; codecs\x3d"mp4v.20.8, samr",video/ogg; codecs\x3d"theora, vorbis",video/ogg; codecs\x3d"theora, speex",audio/ogg; codecs\x3dvorbis,audio/ogg; codecs\x3dspeex,audio/ogg; codecs\x3dflac,video/ogg; codecs\x3d"dirac, vorbis",video/x-matroska; codecs\x3d"theora, vorbis",audio/webm,audio/webm; codecs\x3dvorbis,video/webm,video/webm; codecs\x3dvorbis,video/webm; codecs\x3dvp8,video/webm; codecs\x3dvp8.0'.split(","), function(a){try{return/^audio\/.+/.test(a)?0=a.length)return b;a=a[a.length-1];a=a.split("@");a=a[a.length-1];isUrl(a)&&(b=parseUrl(a),b=-1startIndex&&f("scheduler$"+c[startIndex].name()+"-"+c[e].name(),windowElapsed);ba.stacktrace.split("\n").length?"opera9":"opera10a":a.message&&a.stack&&a.stacktrace?0>a.stacktrace.indexOf("called from line")?"opera10b":"opera11":a.stack&&!a.fileName?"chrome":"other"},instrumentFunction:function(a,b,c){a=a||window;var d=a[b];a[b]=function(){c.call(this, h().slice(4));return a[b]._instrumented.apply(this,arguments)};a[b]._instrumented=d},deinstrumentFunction:function(a,b){a[b].constructor===Function&&(a[b]._instrumented&&a[b]._instrumented.constructor===Function)&&(a[b]=a[b]._instrumented)},chrome:function(a){return(a.stack+"\n").replace(/^[\s\S]+?\s+at\s+/," at ").replace(/^\s+(at eval )?at\s+/gm,"").replace(/^([^\(]+?)([\n$])/gm,"{anonymous}() ($1)$2").replace(/^Object.\s*\(([^\)]+)\)/gm,"{anonymous}() ($1)").replace(/^(.+) \((.+)\)$/gm, "$1@$2").split("\n").slice(0,-1)},safari:function(a){return a.stack.replace(/\[native code\]\n/m,"").replace(/^(?=\w+Error\:).*$\n/m,"").replace(/^@/gm,"{anonymous}()@").split("\n")},ie:function(a){return a.stack.replace(/^\s*at\s+(.*)$/gm,"$1").replace(/^Anonymous function\s+/gm,"{anonymous}() ").replace(/^(.+)\s+\((.+)\)$/gm,"$1@$2").split("\n").slice(1)},firefox:function(a){return a.stack.replace(/(?:\n@:0)?\s+$/m,"").replace(/^(?:\((\S*)\))?@/gm,"{anonymous}($1)@").split("\n")},opera11:function(a){var b= /^.*line (\d+), column (\d+)(?: in (.+))? in (\S+):$/;a=a.stacktrace.split("\n");for(var c=[],d=0,f=a.length;d/,"$1").replace(//,"{anonymous}");c.push(e+"@"+g+" -- "+a[d+1].replace(/^\s+/,""))}}return c},opera10b:function(a){var b=/^(.*)@(.+):(\d+)$/;a=a.stacktrace.split("\n");for(var c=[],d=0,f=a.length;dc.length;){d=b.test(a.toString())?RegExp.$1||"{anonymous}":"{anonymous}";try{f=e.call(a.arguments||[])}catch(g){f=["Cannot access arguments: "+g]}c[c.length]=d+"("+this.stringifyArguments(f)+")";try{a=a.caller}catch(h){c[c.length]="Cannot access caller: "+h;break}}return c},stringifyArguments:function(a){for(var b=[],c=Array.prototype.slice,d=0;df.length?"["+this.stringifyArguments(f)+"]":"["+this.stringifyArguments(c.call(f,0,1))+"..."+this.stringifyArguments(c.call(f,-1))+"]":f.constructor===Object?"#object":f.constructor===Function?"#function":f.constructor===String?'"'+f+'"':f.constructor===Number?f:"?")}return b.join(",")},sourceCache:{},ajax:function(a){var b=this.createXMLHTTPObject();if(b)try{return b.open("GET",a,!1),b.send(null),b.responseText}catch(c){}return""}, createXMLHTTPObject:function(){for(var a,b=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],c=0;cb||dc.length)return b;a.LC.labels?b=a.LC.labels[c[0]][c[1]]:"undefined"!=typeof $A&&(b=$A.get("$Label."+c[0]+"."+c[1]));return a.LC._substituteVariables(b,c.slice(2))},a.LC._substituteVariables=function(a,b){for(var d=0;dthis.inId&&(b.inId=setInterval(n,b.timestep),b.position= "moving_in")};this.fadeOut=function(){0<=b.inId&&(clearInterval(b.inId),b.inId=-1);0>b.outId&&(b.outId=setInterval(p,b.timestep),b.position="moving_out")};this.isMoving=function(){return 0<=this.inId||0<=this.outId};this.getPosition=function(){return b.position}} Fader.prototype.fadeInHelp=function(){var a=this.nextStep(this.currVal,1);this.testMax(this.object,a)?(a=this.finalMax&&this.finalMax(this.object),"number"==typeof a&&(this.currVal=a),clearInterval(this.inId),this.inId=-1,this.position="in"):(this.increment(this.object,a),this.currVal=a)}; Fader.prototype.fadeOutHelp=function(){var a=this.nextStep(this.currVal,-1);this.testMin(this.object,a)?(a=this.finalMin&&this.finalMin(this.object),"number"==typeof a&&(this.currVal=a),clearInterval(this.outId),this.outId=-1,this.position="out"):(this.increment(this.object,a),this.currVal=a)};Fader.prototype.stopFade=function(){0<=this.inId&&(clearInterval(this.inId),this.inId=-1);0<=this.outId&&(clearInterval(this.outId),this.outId=-1);this.position="stopped"}; Fader.prototype.jumpIn=function(){this.startIn&&this.startIn(this.object);var a=null;this.finalMax&&(a=this.finalMax(this.object));null!==a&&(this.currVal=a);this.position="in"};Fader.prototype.jumpOut=function(){var a=null;this.finalMin&&(a=this.finalMin(this.object));null!==a&&(this.currVal=a);this.position="out"}; function iframeShim(a){this.div=a;if(Sfdc.userAgent.isIE6){a=document.createElement("iframe");a.src=IFrameElement.BLANK_SRC;a.frameBorder="0";a.scrolling="no";a.className="iframeShim";a.style.zIndex=this.div.currentStyle.zIndex-1;var b=Sfdc.Dom.getLocalOffsetXY(this.div),c=b.x,d=this.div.currentStyle.left;a.style.left=0==c&&d?d:c;b=b.y;c=this.div.currentStyle.top;d=this.div.currentStyle.bottom;0==b&&(c||d)?(a.style.top=c,a.style.bottom=d):a.style.top=b;a.style.height=this.div.offsetHeight;a.style.position= "absolute";a.style.display=this.div.currentStyle.display;this.iframe=a;this.div.parentNode.insertBefore(this.iframe,this.div);this.setStyle=this.setStyleIE;this.refresh=this.refreshIE}} iframeShim.prototype={getStyle:function(a){return Sfdc.Dom.getStyle(this.div,a)},setStyle:function(a,b){Sfdc.Dom.setStyle(this.div,a,b)},setStyleIE:function(a,b){Sfdc.Dom.setStyle(this.div,a,b);"position"!=a&&Sfdc.Dom.setStyle(this.iframe,a,b);this.refresh()},refresh:function(){},refreshIE:function(){this.iframe.style.width=this.div.offsetWidth+"px";this.iframe.style.height=this.div.offsetHeight+"px";var a=Sfdc.Dom.getLocalOffsetXY(this.div);this.iframe.style.left=a.x+"px";this.iframe.style.top=a.y+ "px"},getOpacity:function(){return Sfdc.Dom.getStyle(this.div,"opacity")},setOpacity:function(a){Sfdc.Dom.setStyle(this.div,"opacity",a)}};var IframeShim=iframeShim; function LoadingScreen(c,b,a){this.div=c;this.text=b;this.id=a} LoadingScreen.prototype={show:function(){this.transparantElement||this.createElements();if(Sfdc.userAgent.isIE6||Sfdc.userAgent.isIE7){var c=this.div.clientHeight+"px";this.transparantElement.style.height=c;this.opaqueElement.style.height=c}this.transparantElement.style.display="block";this.opaqueElement.style.display="block";this.positionLoadingElement(this.loadingDescrElement,this.opaqueElement)},getOpaqueElement:function(){return this.opaqueElement},getTransparentElement:function(){return this.transparantElement}, hide:function(){this.transparantElement&&(this.transparantElement.style.display="none");this.opaqueElement&&(this.opaqueElement.style.display="none")},createElements:function(){"static"==Sfdc.Dom.getStyle(this.div,"position")&&(this.div.style.position="relative");this.transparantElement=this.createLoadingElement(this.div);this.transparantElement.className="waitingSearchDiv waitingSearchDivOpacity";this.opaqueElement=this.createLoadingElement(this.div);this.opaqueElement.className="waitingSearchDiv"; this.id&&(this.opaqueElement.id=this.id);this.loadingDescrElement=this.addLoadingDescription(this.text,this.opaqueElement)},createLoadingElement:function(c){var b=document.createElement("div");b.style.width="100%";b.style.height="100%";if(Sfdc.userAgent.isIE6||Sfdc.userAgent.isIE7)b.style.left=0,b.style.height=this.div.clientHeight+"px";c.appendChild(b);return b},positionLoadingElement:function(c,b){var a=b.offsetHeight/5;100c?(d.setStyle("left","0"),d.setStyle("right","")):d.setStyle("left","")}}else{d.setStyle("left","");var c=getOffsetLeft(a.div),b=c+a.div.offsetWidth,g=getScrollX()+getWindowWidth()-15;0>c?d.setStyle("left","0"):b>=g-7?(d.setStyle("left","-"+(b-(g-7))+"px"),Sfdc.userAgent.isWebkit&&(d.setStyle("display","none"),d.setStyle("display","block"))):d.setStyle("left",a.div.parentNode.offsetWidth+"px")}if(h)a.saveOrigPos&&(a.origBottom?d.setStyle("bottom",a.origBottom):a.origBottom=a.div.style.bottom), c=getObjY(a.div),g=c+a.div.offsetHeight,f=getScrollY()+getWindowHeight()-15,b=a.div.offsetTop+a.div.offsetHeight,0>c?d.setStyle("bottom",b+c-15+"px"):g>f&&d.setStyle("bottom",b-(g-f)-15+"px");else{a.saveOrigPos&&(a.origTop?d.setStyle("top",a.origTop):a.origTop=a.div.style.top);var c=getObjY(a.div),g=c+a.div.offsetHeight,f=getScrollY()+getWindowHeight()-15;0>c?d.setStyle("top","0"):g>f&&d.setStyle("top",a.div.offsetTop-(g-f)-15+"px")}a.positioning=!1}};this.mover=new Fader(this.shim,function(d,a){return 0>= d.getOpacity()},function(a,b){return 0.99<=a.getOpacity()},30,function(a,b){return a+0.2*b},function(a,b){a.setOpacity(b)},0,function(a){a.setOpacity(0);a.setStyle("display","none")},function(a){a.setOpacity(0.99);a.setStyle("display","block")},this.setPosition);this.fadeIn=function(){a.mover.fadeIn()};this.fadeOut=function(){a.mover.fadeOut()}}; var FilterLookupPage=function(){};FilterLookupPage.prototype.checked=[];FilterLookupPage.prototype.checkAll=function(c){for(var b=0;;b++){var a=document.getElementById("chkbox"+b);if(!a)break;a.checked=c;FilterLookupPage.prototype.checked[b]=c?a.value:null}}; FilterLookupPage.prototype.transfer=function(c){var b=opener.document.getElementById(opener.filterLookupValueElem),a=b.value;void 0!==b.isEmptyText&&!0===b.isEmptyText&&(a="");if(c)document.getElementById("chkbox0").checked?a=document.getElementById("chkbox0").value:document.getElementById("chkbox1").checked&&(a=document.getElementById("chkbox1").value);else{for(c=0;cb.maxLength&&(a=a.substring(0,b.maxLength))}b.value=a;0===a.length&&void 0!==b.isEmptyText?b.isEmptyText=!0:0i;i++){var c=document.getElementById("chkbox"+i);c.checked=c.value==opener.document.getElementById(opener.filterLookupValueElem).value}}; Sfdc.provide("Sfdc.Labels",window.LC);Sfdc.provide("Sfdc.UserContext",window.UserContext);Sfdc.provide("Sfdc.Perf",window.Perf);Sfdc.provide("Sfdc.Date",window.DateUtil); (function(c,n){function z(r,k,h,n){var q={};h&&(q.limit=1);return SfdcCmp.find(r,function(r,h){for(var n=0;na&&(this.minExtensionWidth?d-b>=this.minExtensionWidth&&(a=d):a=d))}a!==b?addStyleClass(this.menuDiv,"menuWidthExtended"):delStyleClass(this.menuDiv,"menuWidthExtended");this.shim.setStyle("width",a+"px");a=Sfdc.Dom.getStyle(this.parentDiv,"display");if("inline"==a||"inline-block"== a)this.parentDiv.style.position="relative",this.shim.setStyle("top",this.buttonDiv.offsetHeight+"px")}; function TagMenuButton(a,b){MenuButton.call(this,a,!1);TagMenuButton.fetched=!1;TagMenuButton.requesting=!1;this.loaderURL=b;this.buttonWidth=TagMenuButton.BUTTON_WIDTH}TagMenuButton.prototype=new MenuButton;TagMenuButton.BUTTON_WIDTH=33;TagMenuButton.prototype.show=function(){TagMenuButton.fetched||this.getMRUTags(this.muttonId,this.isCached,this.loaderURL);MenuButton.prototype.show.apply(this)}; TagMenuButton.prototype.getMRUTags=function(){if(!TagMenuButton.requesting){TagMenuButton.requesting=!0;this.menuDiv.innerHTML="";this.addOption(LC.getLabel("Page_SearchResult","dhtmlLoading"),"");var a=this;Sfdc.Ajax.post(this.loaderURL,function(b){a.processMRUdata(b)},"")}}; TagMenuButton.prototype.processMRUdata=function(a){a=Util.evalAjaxServletOutput(a).mruList;TagMenuButton.fetched=!0;TagMenuButton.requesting=!1;this.menuDiv.innerHTML="";if(1===a.length&&a[0].noDataInList)this.menuDiv.innerHTML="\x3cspan\x3e"+a[0].name+"\x3c/span\x3e";else for(var b=0;bFunctionalDialog.MAX_HEIGHT?FunctionalDialog.MAX_HEIGHT:b};FunctionalDialog.prototype.setInnerHeight=function(){var b=this.getContentElement(),a=b.offsetHeight+(Math.min(this.maxHeight,Sfdc.Window.getWindowHeight()-40)-this.dialog.offsetHeight);b.style.height=Math.max(FunctionalDialog.MIN_HEIGHT,a)+"px"}; FunctionalDialog.prototype.createContent=function(){var b=document.getElementById(this.id+"Content"),a=[];a.push("\x3ch2 id\x3d'");a.push(this.id);a.push("Header'\x3e");a.push(this.header);a.push("\x3c/h2\x3e");this.info&&(a.push("\x3cp id\x3d'"),a.push(this.id),a.push("Info'\x3e"),a.push(this.info),a.push("\x3c/p\x3e"));a.push("\x3cdiv class\x3d'");this.hasSummaryElement?a.push("scrollableArea"):a.push("scrollableAreaBottomBorder");a.push("' id\x3d'");a.push(this.id);a.push("Inner'\x3e\x3c/div\x3e"); this.hasSummaryElement&&(a.push("\x3cdiv id\x3d'"),a.push(this.id),a.push("Split' class\x3d'split'\x3e\x3cimg src\x3d'"+UserContext.getUrl("/img/overlaypointer.gif")+"' class\x3d'pointer'\x3e\x3c/div\x3e\x3cdiv class\x3d'summaryArea' id\x3d'"),a.push(this.id),a.push("Summary'\x3e\x3c/div\x3e"));this.createButtons(a);b.innerHTML=a.join("")};FunctionalDialog.prototype.setContentInnerHTML=function(b){this.getContentElement().innerHTML=b}; FunctionalDialog.prototype.importContentNode=function(b){this.setContentInnerHTML("");this.getContentElement().appendChild(b)};FunctionalDialog.prototype.getContentElement=function(){return document.getElementById(this.id+"Inner")};FunctionalDialog.prototype.setSummaryInnerHTML=function(b){this.getSummaryElement().innerHTML=b};FunctionalDialog.prototype.importSummaryNode=function(b){this.setSummaryInnerHTML("");this.getSummaryElement().appendChild(b)}; FunctionalDialog.prototype.getSummaryElement=function(){return document.getElementById(this.id+"Summary")};FunctionalDialog.prototype.hideSummaryElement=function(){if(this.hasSummaryElement){this.hasSummaryElement=!1;var b=this.getSummaryElement(),a=document.getElementById(this.id+"Split"),c=this.getContentElement();b&&(a&&c)&&(b.style.display="none",a.style.display="none",c.className="scrollableAreaBottomBorder")}}; function GoogleDocNameInputDialog(b,c,d,a){this.id=b;this.url=c;this.escapeParams=d;this.parentId=a;this.isModal=!0;this.formId="nameInputForm";this.errorElementId="errorMsg";this.windowName="createDoc";this.width=600;this.addEvents();LC.getLabel("GoogleDocs","DOCUMENT");LC.getLabel("GoogleDocs","SPREADSHEET");LC.getLabel("GoogleDocs","PRESENTATION");LC.getLabel("GoogleDocs","LOWER_DOCUMENT");LC.getLabel("GoogleDocs","LOWER_SPREADSHEET");LC.getLabel("GoogleDocs","LOWER_PRESENTATION")} GoogleDocNameInputDialog.HEIGHT=80;GoogleDocNameInputDialog.prototype=new OverlayDialog;GoogleDocNameInputDialog.prototype.hide=function(){OverlayDialog.prototype.hide.apply(this,[]);this.createContent()};GoogleDocNameInputDialog.prototype.enter=function(){this.dependent=1;var b=this.validate();b?(this.win=b,this.processStep()):this.dependent=0};GoogleDocNameInputDialog.prototype.cancel=function(){if(this.dependent)try{this.win.close()}catch(b){}this.hide()}; GoogleDocNameInputDialog.prototype.setDocTypeAndShow=function(b,c){this.docType=b;this.docTypeStr=c;this.setTitle(LC.getLabel("GoogleDocCreatorPage","nameText",c));this.createContent();this.show();this.focusInOverlay()}; GoogleDocNameInputDialog.prototype.createContent=function(){if(this.docType){var b=document.getElementById(this.getContentId()),c=LC.getLabel("GoogleDocs",this.docType),d=LC.getLabel("GoogleDocs","LOWER_"+this.docType),a=[];a.push('\x3cform enctype\x3d"multipart/form-data" method\x3d"POST" id\x3d"'+GoogleDocCreator.FORM_NAME+'"\x3e');a.push("\x3ctable align\x3dcenter\x3e");a.push("\x3ctbody\x3e");a.push('\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e');a.push('\x3cinput type\x3d"radio" id\x3d"create_method" name\x3d"'+ GoogleDocCreator.METHOD+'" value\x3d"0" checked\x3e');a.push('\x3clabel for\x3d"create_method" onclick\x3d"document.getElementById(\'create_method\').checked\x3dtrue"\x3e'+LC.getLabel("GoogleDocCreator","CreateByNew",d)+"\x3c/label\x3e");a.push("\x3c/td\x3e\x3c/tr\x3e");a.push('\x3ctr\x3e\x3ctd align\x3dright\x3e\x3clabel for\x3d"'+GoogleDocCreator.DOC_NAME+'"\x3e');a.push(LC.getLabel("GoogleDocCreator","EntityName",c));a.push('\x3c/label\x3e: \x3c/td\x3e\x3ctd class\x3d"inlineEditCompoundDiv"\x3e\x3cspan class\x3d"inlineEditRequiredMark"\x3e*\x3c/span\x3e\x3cinput id\x3d"'+ GoogleDocCreator.DOC_NAME+'" type\x3d"text" width\x3d"64" name\x3d"'+GoogleDocCreator.DOC_NAME+'" onchange\x3d"document.getElementById(\'create_method\').checked\x3dtrue" onclick\x3d"document.getElementById(\'create_method\').checked\x3dtrue"/\x3e\x3c/td\x3e\x3c/tr\x3e');a.push('\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e\x3cdiv class\x3d"errorMsg" id\x3d"'+this.errorElementId+'" style\x3d "display:none"\x3e\x3c/div\x3e');a.push("\x3c/td\x3e\x3c/tr\x3e");a.push("\x3c/tbody\x3e");a.push("\x3ctbody\x3e"); a.push('\x3ctr\x3e\x3ctd colspan\x3d"2"\x3e');a.push('\x3cinput type\x3d"radio" id\x3d"upload_method" name\x3d"'+GoogleDocCreator.METHOD+'" value\x3d"1"\x3e');a.push('\x3clabel for\x3d"upload_method" onclick\x3d"document.getElementById(\'upload_method\').checked\x3dtrue"\x3e'+LC.getLabel("GoogleDocCreator","CreateByUpload")+"\x3c/label\x3e");a.push("\x3c/td\x3e\x3c/tr\x3e");a.push('\x3ctr\x3e\x3ctd align\x3dright\x3e\x3clabel for\x3d"'+GoogleDocCreator.DOC_UPLOAD+'"\x3e');a.push(LC.getLabel("GoogleDocCreator", "FileLocation"));a.push('\x3c/label\x3e: \x3c/td\x3e\x3ctd class\x3d"inlineEditCompoundDiv"\x3e\x3cspan class\x3d"inlineEditRequiredMark"\x3e*\x3c/span\x3e\x3cinput id\x3d"'+GoogleDocCreator.DOC_UPLOAD+'" type\x3d"file" width\x3d"64" name\x3d"'+GoogleDocCreator.DOC_UPLOAD+'" onchange\x3d"document.getElementById(\'upload_method\').checked\x3dtrue" onclick\x3d"document.getElementById(\'upload_method\').checked\x3dtrue"/\x3e ');this.help[this.docType]&&a.push(decodeURIComponent(this.help[this.docType])); a.push("\x3c/td\x3e\x3c/tr\x3e");a.push('\x3ctr\x3e\x3ctd align\x3dright\x3e\x3clabel for\x3d"'+GoogleDocCreator.DOC_UPLOAD_NAME+'"\x3e');a.push(LC.getLabel("GoogleDocCreator","NewName",c));a.push('\x3c/label\x3e: \x3c/td\x3e\x3ctd class\x3d"inlineEditCompoundDiv"\x3e\x3cinput id\x3d"'+GoogleDocCreator.DOC_UPLOAD_NAME+'" type\x3d"text" width\x3d"64" name\x3d"'+GoogleDocCreator.DOC_UPLOAD_NAME+'" onchange\x3d"document.getElementById(\'upload_method\').checked\x3dtrue" onclick\x3d"document.getElementById(\'upload_method\').checked\x3dtrue"/\x3e'); a.push(LC.getLabel("GoogleDocCreator","Different"));a.push("\x3c/td\x3e\x3c/tr\x3e");a.push("\x3ctr\x3e\x3ctd\x3e\x26nbsp;\x3c/td\x3e\x3ctd\x3e");a.push('\x3cdiv class\x3d"errorMsg" id\x3d"'+GoogleDocCreator.DOC_UPLOAD+'_error" style\x3d "display:none"\x3e\x3c/div\x3e');a.push("\x3c/td\x3e\x3c/tr\x3e");a.push("\x3c/tbody\x3e");a.push("\x3c/table\x3e");a.push('\x3cinput type\x3d"hidden" id\x3d"'+GoogleDocCreator.PARENT_ID+'" name\x3d"'+GoogleDocCreator.PARENT_ID+'" value\x3d"'+this.parentId+'"/\x3e'); a.push('\x3cinput type\x3d"hidden" id\x3d"'+GoogleDocCreator.DOC_TYPE+'" name\x3d"'+GoogleDocCreator.DOC_TYPE+'" value\x3d"'+this.docType+'"/\x3e');a.push("\x3c/form\x3e");b.innerHTML=a.join("");this.setupDefaultButtons();this.overrideButton(0,LC.getLabel("GoogleDocCreatorPage","pageTitle"),function(a){sfdcPage.getDialogById(a).enter();return!1});this.overrideButton(1,LC.getLabel("Buttons","cancel"),function(a){sfdcPage.getDialogById(a).cancel();return!0});b.appendChild(this.createDomButtons())}}; GoogleDocNameInputDialog.prototype.processStep=function(){for(var b=document.getElementById(this.getContentId()).getElementsByTagName("input"),c=0;cOverlayDialog.MAX_WIDTH&&(a=OverlayDialog.MAX_WIDTH);this.dialog.currentStyle?this.dialog.style.width=a+"px":this.dialog.style.maxWidth=a+"px"};InlineEditDialog.prototype.cancel=function(){sfdcPage.getInlineEditData().resetCurrentField();this.hide()}; function OverlayDialogElement(a){this.windowName=this.id=a;this.setupDefaultButtons();this.addEvents();this.buttonContents=this.contents="";this.hasButtonsBar=!0}OverlayDialogElement.prototype=new OverlayDialog; OverlayDialogElement.prototype.createContent=function(){var a=document.getElementById(this.getContentId()),b=[];b.push(this.contents);this.hasButtonsBar&&(0==this.buttonContents.length?this.createButtons(b):(b.push("\x3cdiv id\x3d'"+this.id+"_buttons' class\x3d'buttons zen'\x3e"),b.push(this.buttonContents),b.push("\x3c/div\x3e")));a.innerHTML=b.join("")};OverlayDialogElement.getDialog=function(a,b){var c=sfdcPage.getDialogById(a);if(c)return c;c=new OverlayDialogElement(a);b&&b(c);c.register();return c}; function FilePreviewOverlayDialogElement(a){OverlayDialogElement.call(this,a);this.oldOverflowY=this.oldOverflowX=null;this.iPadPhoneScrollReg=!1}FilePreviewOverlayDialogElement.prototype=new OverlayDialog;FilePreviewOverlayDialogElement.prototype.createContent=OverlayDialogElement.prototype.createContent; FilePreviewOverlayDialogElement.prototype.show=function(){"undefined"!==typeof chatter&&chatter.getEventBus().fireEvent("UIComponent:OverlayDialog","onBeforeOverlayShow");this.dialog.style.display="block";this.isModal&&(this.background||this.createBackground(),this.background.style.display="block",this.processSelectElems());this.dialog.style.visibility="visible";this.position();if(isIPad||isIPhone){this.resizeBackground();this.reposition();var a=this;!1===this.iPadPhoneScrollReg&&(addEvent(window, "scroll",function(b){a.position();a.reposition()},!1),this.iPadPhoneScrollReg=!0)}var b=Ext.getBody();this.oldOverflowX=b.getStyle("overflow-x");this.oldOverflowY=b.getStyle("overflow-y");b.addClass("bodyForDocViewerPanel");b.setStyle("overflow-x","hidden");b.setStyle("overflow-y","hidden");this.isOpen=!0};FilePreviewOverlayDialogElement.prototype.reposition=function(){this.dialog.style.top=parseInt(this.dialog.style.top)+document.body.scrollTop+"px"}; FilePreviewOverlayDialogElement.prototype.position=function(){OverlayDialog.prototype.position.call(this);if(Sfdc.userAgent.isIE10){var a=this.dialog.style;a.left=this.fixedX+getScrollX()+"px";a.top=this.fixedY+getScrollY()+"px"}}; FilePreviewOverlayDialogElement.prototype.createBackground=function(){this.background=document.createElement("div");this.background.className="docViewerPanel";document.body.appendChild(this.background);var a=this;!Ext.isChrome&&(!Ext.isSafari&&!Sfdc.userAgent.isIE9)&&(addEvent(this.background,"mousedown",function(b){a.smash(b)},!1),addEvent(this.background,"click",function(b){getEventTarget(b)===a.background?a.background.focus():a.smash(b)},!1));document.getElementById("docViewerOverlay").style.visibility= "visible";document.getElementById("docViewerOverlay").style.display="block";Sfdc.userAgent.isIE10||(this.dialog=document.body.removeChild(this.dialog),this.background.appendChild(this.dialog))};FilePreviewOverlayDialogElement.prototype.resizeEvent=function(){this.created&&this.position()}; FilePreviewOverlayDialogElement.prototype.hide=function(){var a=Ext.getBody();a.removeClass("bodyForDocViewerPanel");this.oldOverflowX&&a.setStyle("overflow-x",this.oldOverflowX);this.oldOverflowY&&a.setStyle("overflow-y",this.oldOverflowY);OverlayDialog.prototype.hide.call(this)};FilePreviewOverlayDialogElement.getDialog=function(a,b){var c=sfdcPage.getDialogById(a);if(c)return c;c=new FilePreviewOverlayDialogElement(a);b&&b(c);c.register();return c}; OverlayDialogElement.showFilePreview=function(a,b,c,d,e,k,h,g,l,m,n,f){if(Sfdc.userAgent.isIE11||f)c=UserContext.getUrl("/"+d),window.open(c);else{if(g)FilePreviewOverlayDialogElement.getDialog(a,OverlayDialogElement.initFilePreviewDialog).setTitle(""),document.getElementById("docViewerOverlayX")?(b=new AccessiblePreviewContentDialog(a+"_accessibilityMode",document.getElementById(b).innerHTML),b.content=document.getElementById("docViewerOverlay").innerHTML,b.created=!0,b.register(),b.show(),h=b.popupWindow.document.getElementById(h), b.popupWindow.document.getElementById("docViewerOverlayX").style.visibility="hidden"):(window.resizeTo(730,630),window.opener.OverlayDialogElement.showFilePreview(a,b,c,d,e,k,h,g,l,m,n,f));else{a=FilePreviewOverlayDialogElement.getDialog(a,OverlayDialogElement.initFilePreviewDialog);if(g=Sfdc.select("div.overlayBackground",document.body))for(f=0;fe}catch(k){}return!0}; LightningAdoptionOverlayDialogElement.recordAction=function(a,b,c,d,e){("TryNow"===c||"Close"===c||"NoThanks"===c)&&Sfdc.Cookie.setCookie("campaign-"+b,d,new Date((new Date).getTime()+864E5));"Close"!==c&&(b={method:"POST",escape:encodeURIComponent,data:{campaign:b,action:c,counter:d}},"function"===typeof e&&(b.complete=e),Sfdc.Ajax.request(a,b))};LightningAdoptionOverlayDialogElement.log=function(a,b,c){Sfdc.logServer(a,b||{},c||Sfdc.Logging.LogLevel.INFO);Sfdc.ServerLogging.flush()}; LightningAdoptionOverlayDialogElement.prototype.position=function(){this.isModal&&OverlayDialog.prototype.position.call(this)};LightningAdoptionOverlayDialogElement.isIpadOS=function(){var a=!1;try{document.createEvent("TouchEvent"),a=!0}catch(b){}return a}; function FieldSelectDialog(a,b,d,e,f,g,c){this.id=a;this.isModal=b;this.isMovable=!0;this.buttons=[];this.selectId=e;this.info=f;this.width=OverlayDialog.MAX_WIDTH;null==c&&(c="");this.buttons[0]={id:c+"fieldSelectClose",display:LC.getLabel("Buttons","close"),action:null};this.title=d;this.addEvents();this.manualTab=!1;this.innerHeight=g}FieldSelectDialog.prototype=new OverlayDialog;FieldSelectDialog.prototype.setController=function(a){this.controller=a;this.controller.setScrollDiv(document.getElementById(this.selectId))}; FieldSelectDialog.prototype.setInnerHeight=function(){this.getContentElement().style.height=this.innerHeight+"px"};FieldSelectDialog.prototype.setManualTabControl=function(a){this.manualTab=a};FieldSelectDialog.prototype.handleKeyPress=function(a){if(this.manualTab&&this.isOpen&&(a=getEvent(a),a.keyCode==KEY_TAB))return a.preventDefault?a.preventDefault():a.returnValue=!1,this.tab(a.shiftKey);OverlayDialog.prototype.handleKeyPress.call(this,a)};FieldSelectDialog.prototype.tab=function(a){this.controller.switchFocus(a)}; FieldSelectDialog.prototype.createContent=function(){var a=document.getElementById(this.getContentId()),b=[];this.info&&(b.push("\x3cp id\x3d'"),b.push(this.id),b.push("Info'\x3e"),b.push(this.info),b.push("\x3c/p\x3e"));b.push("\x3cdiv class\x3d'fieldSelectorScrollableArea' id\x3d'");b.push(this.getInnerId());b.push("'\x3e\x3c/div\x3e");this.createButtons(b);a.innerHTML=b.join("");this.getContentElement().appendChild(document.getElementById(this.selectId))}; FieldSelectDialog.prototype.getContentElement=function(){return document.getElementById(this.getInnerId())};FieldSelectDialog.prototype.getInnerId=function(){return this.id+"Inner"};FieldSelectDialog.prototype.show=function(){for(var a=this.getContentElement().firstChild;"TD"!=a.firstChild.nodeName;)a=a.firstChild;for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);this.controller.reset();this.controller.showSelects();OverlayDialog.prototype.show.call(this);this.controller.focusTop();this.controller.scrollRight()}; FieldSelectDialog.prototype.hide=function(){OverlayDialog.prototype.hide.call(this);this.controller.hideSelects();this.controller.reFocusToFieldPickerIcon&&this.controller.reFocusToFieldPickerIcon()}; function ListPaginator(a){this.init(a)}ListPaginator.prototype=new Paginator;ListPaginator.opts=[10,25,50,100,200];ListPaginator.rppId="_rpp";ListPaginator.selectionId="_selection";ListPaginator.target="_target"; ListPaginator.prototype.init=function(a){this.listDomId=a.listDomId;this.id=this.listDomId+"_paginator";Paginator.addPaginator(this);this.containerIds=a.containerIds;this.handler=a.handler;this.ref="Paginator.instances['"+this.id+"']";this.listRef="ListViewport.instances['"+this.listDomId+"']";var b=this;addEvent(document.body,"mousedown",function(a){a=getEventTarget(a);a.id!=b.id+ListPaginator.rppId+ListPaginator.target&&a.parentNode.id!=b.id+ListPaginator.rppId+ListPaginator.target&&ListPaginator.hideSelector(b.id+ ListPaginator.rppId+ListPaginator.target);a.id!=b.id+ListPaginator.selectionId+ListPaginator.target&&a.parentNode.id!=b.id+ListPaginator.selectionId+ListPaginator.target&&ListPaginator.hideSelector(b.id+ListPaginator.selectionId+ListPaginator.target)},!0);this.selectCount=this.selectedOnThisPage=0;this.setState(a)};ListPaginator.prototype.setSelectCount=function(a){this.selectCount=a;this.draw()}; ListPaginator.prototype.setState=function(a){this.currentPage=parseInt(a.currentPage)||this.currentPage||1;this.recordsPerPage=parseInt(a.recordsPerPage)||this.recordsPerPage||50;this.totalRecords=parseInt(a.totalRecords);this.capped=a.capped;this.hasCheckbox=a.hasCheckbox;var b;this.capped?this.totalPages=null:(b=Math.ceil(this.totalRecords/this.recordsPerPage),this.totalPages=this.currentPage>b?this.currentPage:b);this.startingRecord=(this.currentPage-1)*this.recordsPerPage+1;if(!a.nodraw){var c= this;0===this.totalRecords?window.sfdcPage.appendToOnloadQueue(function(){c.draw(!0)}):(this.shorterThenOriginal=this.currentPage>b?!0:!1,window.sfdcPage.appendToOnloadQueue(function(){c.draw()}))}}; ListPaginator.prototype.draw=function(a){var b=[];b.push("\x3cdiv class\x3d'paginator'\x3e");b.push("\x3cspan class\x3d'left'\x3e");a?b.push("\x26nbsp;"):(b.push(this.getRecordCounts()),this.hasCheckbox&&b.push(this.getSelectedCount()));b.push("\x3c/span\x3e");a?b.push("\x26nbsp;"):b.push(this.getPrevNextLinks());b.push("\x3cspan class\x3d'right'\x3e");a?b.push("\x26nbsp;"):b.push(this.getPageXofY());b.push("\x3c/span\x3e");b.push("\x3c/div\x3e");b.push("\x3cdiv class\x3d'clearingBox'/\x3e");for(a= 0;aa?a=1:this.totalPages&&a>this.totalPages&&(a=this.totalPages);this.handler&&this.handler(a)}; ListPaginator.prototype.getRppSelector=function(){var a=[];a.push("\x3ctable cellpadding\x3d'0' cellspacing\x3d'0' class\x3d'selector rpp' id\x3d'");a.push(this.id+ListPaginator.rppId+"'\x3e");for(var b={mouseover:"Sfdc.Dom.addClass(this, 'optHover')",mouseout:"Sfdc.Dom.removeClass(this, 'optHover')",display_label:LC.getLabel("Paginator","display"),rowsperpage_label:LC.getLabel("Paginator","rpp")},c=ListPaginator.opts,e=0;e=this.startingRecord-1&&this.disabledRecords[d]a.className.indexOf(" selectorOpen"))a.className+=" selectorOpen"};ListPaginator.hideSelector=function(a){if(a=document.getElementById(a))a.className=a.className.replace(" selectorOpen","")}; ListPaginator.hoverSelector=function(a){0>a.className.indexOf(" selectorHover")&&(a.className+=" selectorHover")};ListPaginator.unhoverSelector=function(a){a.className=a.className.replace(" selectorHover","")}; function VideoDialog(a,b){SimpleDialog.apply(this,[a,b])}VideoDialog.prototype=new SimpleDialog;VideoDialog.prototype.parent=SimpleDialog.prototype;VideoDialog.prototype.hide=function(){this.parent.hide.call(this);this.parent.setContentInnerHTML.call(this,"")}; SearchOverlayDialogs=function(){};SearchOverlayDialogs.showDialog=function(a,b,c,e,d,g){var f=document.getElementById(a);if(f){if("visible"==f.style.visibility)return;document.body.removeChild(f)}(g?new SearchAccessibleDialog(a,b,c,e,d):new SearchNonaccessibleDialog(a,b,c,e,d)).display()}; SearchOverlayDialogs.showDialogAddSearchString=function(a,b,c,e,d,g,f){var h=QueryString.getURI(c);c=QueryString.createQueryString(c,!0);f=AutoCompleteInputElement.getInstance(f).getSearchString(f);c.add(SearchRelatedList.pSEARCH_STR,f);SearchOverlayDialogs.showDialog(a,b,h+c.toString(),e,d,g)}; function SearchAccessibleDialog(a,b,c,e,d){this.id=a;this.contentId=a+"ContentId";this.height=e;this.url=c;""!=d&&(this.width=parseInt(d));this.register();addEvent(window,"focus",function(){closeDialog()})}SearchAccessibleDialog.prototype=new SimpleDialog; SearchAccessibleDialog.prototype.display=function(){for(dialogId in sfdcPage.dialogs){var a=sfdcPage.dialogs[dialogId];a.isOpen&&a.popupWindow.close()}this.popupWindow=window.open(this.url,this.id,"height\x3d"+this.height+",width\x3d"+this.width+",location\x3d0,status\x3d0");this.popupWindow.focus();this.isOpen=!0};SearchAccessibleDialog.prototype.isDialogOpen=function(){return this.isOpen};SearchAccessibleDialog.prototype.resize=function(a,b){this.popupWindow.resizeTo(b,a+100)}; SearchAccessibleDialog.prototype.close=function(){this.popupWindow.close()};function SearchNonaccessibleDialog(a,b,c,e,d){this.id=a;this.contentId=a+"ContentId";this.displayX=this.isMovable=!0;this.height=e;this.url=c;""!=d&&(this.width=parseInt(d));this.setTitle(b);this.register()}SearchNonaccessibleDialog.prototype=new SimpleDialog; SearchNonaccessibleDialog.prototype.display=function(){var a=[];a.push('\x3ciframe frameborder\x3d"no" id\x3d"'+this.contentId+'" style\x3d"border:0;height:'+this.height+"px;width:"+(Sfdc.userAgent.isIE6?"93%":"100%")+';" src\x3d"'+this.url+'"\x3e\x3c/iframe\x3e');this.setContentInnerHTML(a.join(""));this.show();this.setWidth(this.width)};SearchNonaccessibleDialog.prototype.resize=function(a,b){document.getElementById(this.contentId).style.height=a+"px";this.setWidth(b)}; SearchNonaccessibleDialog.superclass=SimpleDialog.prototype;SearchNonaccessibleDialog.prototype.hide=function(){var a=this.getContentElement().firstChild.contentWindow;a.closePopup&&a.closePopup();SearchNonaccessibleDialog.superclass.hide.call(this)};SearchNonaccessibleDialog.prototype.close=function(){this.hide()}; function closeDialog(a){for(dialogId in sfdcPage.dialogs){var b=sfdcPage.dialogs[dialogId];b.isOpen&&b.close()}a&&(Sfdc.userAgent.isSafari3?window.location.href=window.location.href:window.location.reload())}function resizeDialog(a,b){for(dialogId in sfdcPage.dialogs){var c=sfdcPage.dialogs[dialogId];c.isOpen&&c.resize(a,b)}}; function PrintableViewPage(){}PrintableViewPage.prototype=new DetailPage;PrintableViewPage.prototype.getEntityId=function(){var a=window.location.href.split("?")[0].split("/");return a[a.length-2]}; function PrintableListPage(){}PrintableListPage.prototype=new ListPage; function VFInlineEditData(a){sfdcPage.registerInlineEditData(a);this.showButtons=a[VisualforceConstants.SHOW_BUTTONS];this.hideButtons=a[VisualforceConstants.HIDE_BUTTONS];this.picklistInfo=a[VisualforceConstants.PICKLIST_INFO];this.checkError=!0;InlineEditData.call(this,a)} VFInlineEditData.registerField=function(a){var b=a[InlineEditConstants.VF_ENABLED],c=sfdcPage.getInlineEditData(b);if(c){var d=sfdcPage.getDetailPage(c[InlineEditConstants.VF_ENABLED]);d&&(d.editMode=!1,c.updateShowHideButtons(d));InlineEditField.overlay||(InlineEditField.overlay=new InlineEditDialog,InlineEditField.overlay.register());d=a[InlineEditConstants.FIELD_DATA][0];a=a[VisualforceConstants.PICKLIST_INFO];c.createField(d);a&&c.updatePicklist(b,d[InlineEditConstants.FIELD_ID],a,d.picklistId); c.openErrorField()}else new VFInlineEditData(a)};VFInlineEditData.prototype=new InlineEditData;VFInlineEditData.prototype.evalPicklist=function(a){0==a.indexOf("var")&&(a=a.substr(3,a.length));eval(a)}; VFInlineEditData.prototype.init=function(){InlineEditData.prototype.init.call(this);this.checkError&&this.registerOpenErrorField();var a=sfdcPage.getDetailPage(this[InlineEditConstants.VF_ENABLED]),b=this,c=this.showButtons,d=this.hideButtons;sfdcPage.appendToOnloadQueue(function(){b.initializeButtons(a,c,!0)},"Setup show edit buttons");sfdcPage.appendToOnloadQueue(function(){b.initializeButtons(a,d,!1)},"Setup hide edit buttons")}; VFInlineEditData.prototype.createFields=function(){InlineEditData.prototype.createFields.call(this);var a,b,c;for(c=0;cc.tableCell.offsetTop))a=c;this.currentField=f;sfdcPage.currentFieldForInlineEditDialog=e;a&&a.state==InlineEditState.EDIT&&((b=sfdcPage.getInlineEditData(sfdcPage.currentFieldForInlineEditDialog))&&b.closeCurrentField(),this.openField(a))}}; VFInlineEditData.prototype.updateFieldForError=function(a,b,c){c&&(a.currentValue=b);this.openField(a);c||(a.isMultiEnum?a.updateCurrentValue(b):a.editElement.value=b);a.closeField()}; VFInlineEditData.prototype.updatePicklist=function(a,b,c,d){d="undefined"==typeof pl?null:pl;var e;this.picklistInfo&&!sfdcPage.getRegisteredPickList(a)&&(this.evalPicklist(this.picklistInfo),sfdcPage.registerPickList(a,pl),this.fields[b].waitForLoad=!1);sfdcPage.getRegisteredPickList(a)?(e=sfdcPage.getRegisteredPickList(a),this.evalPicklist(c),e["vals_"+b]=pl["vals_"+b],sfdcPage.registerPickList(a,e),this.fields[b].waitForLoad=!1):this.picklistInfo=c;d&&(pl=d)}; VFInlineEditData.prototype.resetField=function(a){InlineEditData.prototype.resetField.call(this,a);this.removeInputElement(a);if(a.visualforce_resetFunction){var b=a.visualforce_resetFunction;"function"!==typeof b&&(b=new Function(b),a.visualforce_resetFunction=b);b()}};VFInlineEditData.prototype.revert=function(){InlineEditData.prototype.revert.apply(this)};VFInlineEditData.prototype.getField=function(a){return a?this.fields[a]:null}; VFInlineEditData.prototype.closeCurrentField=function(a,b,c){if(this.currentField&&(!this.currentField.shouldClose||this.currentField.shouldClose(c))){var d=this.currentField.group;if(d){var e=[];e.push(d);InlineEditData.prototype.closeGroup.apply(this,e);for(var e=0,f=d.length;ec.editDiv.className.indexOf("disabledPickList")&&(c.editDiv.className+=" disabledPickList"):c.editDiv.className=c.editDiv.className.replace("disabledPickList","")};new picklistForInlineEditing(this.id,this.picklistId,this.fieldEnumOrId, this.controllerId,Util.convertOptionsForPicklistData([this.initialValue]),a,!this.required,!0,this.filterValue,b)};DynamicEnumField.prototype.createDummy=function(){var a=document.createElement("input");a.type="hidden";a.id=this.id;a.value=this.currentValue[1];this.tableCell.appendChild(a);this.created=!0}; DynamicEnumField.prototype.load=function(){picklist.picklists[this.id].onLoad();this.editElement=getElementByIdCS(this.id);this.currentIndex=this.initialIndex=this.editElement.selectedIndex;this.canceled=!1};DynamicEnumField.prototype.getValueFromEdit=function(){this.editElement=getElementByIdCS(this.id);this.currentIndex=this.editElement.selectedIndex;return this.editElement.options[this.currentIndex].value}; DynamicEnumField.prototype.formatValue=function(){this.editElement=getElementByIdCS(this.id);var a=this.editElement.options[this.currentIndex].text;return a==LC.getLabel("SelectElement","Required")?""===this.initialValue[1]?"":this.getDeletedValue():this.cleanValue(a)}; DynamicEnumField.prototype.reset=function(){this.group?(this.currentValue=this.initialValue,delStyleClass(this.readDiv,"inlineEditModified"),this.changed=!1,this.canceled=!0,this.readDiv.innerHTML=this.initialHTML,this.undoButton&&(this.undoButton.style.display="none"),this.clearError(),this.updateEditElement()):InlineEditField.SimpleField.prototype.reset.apply(this,arguments)}; DynamicEnumField.prototype.updateEditElementImpl=function(){this.editElement=getElementByIdCS(this.id);this.currentIndex=this.initialIndex;this.editElement.selectedIndex=this.currentIndex;if(this.editElement.onchange)this.editElement.onchange()};DynamicEnumField.prototype.addSaveData=function(a){var b=this.canceled&&!this.changed;a[this.id]=(!this.created||b)&&this.required&&this.controllerId&&!this.initialValue[1]?picklistNAMarker:"string"==typeof this.currentValue?this.currentValue:this.currentValue[1]}; function EncryptedTextField(a,b,c,e,f,d){this.init(a,b,c,e,f);this.maxLength=d.maxLength;this.masked=d.masked;this.encryptedElement=null}EncryptedTextField.prototype=new InlineEditField.SimpleField; EncryptedTextField.prototype.createEditElements=function(){var a=[];a.push("\x3cinput type\x3d'text' id\x3d'");a.push(this.id);a.push("' value\x3d\"");a.push(this.cleanValue(this.currentValue));a.push("\" size\x3d'20' maxLength\x3d'");this.masked?a.push("255"):a.push(this.maxLength);a.push("'\x3e");this.editDiv.innerHTML=a.join("");this.editElement=getElementByIdCS(this.id);this.masked&&(this.encryptedElement=new EncryptedTextInputElement(this.editElement.id,this.maxLength,this.masked))}; EncryptedTextField.prototype.reset=function(){InlineEditField.SimpleField.prototype.reset.apply(this,arguments);this.masked&&this.encryptedElement&&(this.encryptedElement.wasCleared=!1)}; function HtmlStringPlusClobField(a,b,c,e,f,d){this.init(a,b,c,e,f);this.saveOnEnter=!1;this.maxLength=d.maxLength;this.numCols=d.numCols;this.numRows=d.numRows;this.isHtml=d.isHtml;this.basePath=d.basePath;this.caseSafe18Id=d.caseSafe18Id;this.useCKEditor=d.useCKEditor;this.csrfToken=d.csrfToken;this.instanceName=(this.visualforce=d[InlineEditConstants.VF_ENABLED])?this.visualforce+"_"+this.caseSafe18Id:this.caseSafe18Id;this.visualforce&&(""===VisualforceConstants.RTA_LIBRARY&&(VisualforceConstants.RTA_LIBRARY= d.RTA_LIBRARY),VFRTAEditor.getOrCreateRTAEditor())}HtmlStringPlusClobField.prototype=new InlineEditField.SimpleField;HtmlStringPlusClobField.RICH_TEXT_EDITOR_ROW_MULTIPLIER=17;HtmlStringPlusClobField.prototype.createEditElements=function(){this.visualforce?this.createEditElementsForVF():this.createEditElementsForUI();if(Sfdc.userAgent.isChrome||Sfdc.userAgent.isSafari)this.editDiv.style.width="100%"}; HtmlStringPlusClobField.prototype.createEditElementsForUI=function(){var a=[];a.push("\x3ctextarea id\x3d'");a.push(this.instanceName);a.push("' ");a.push("maxlength\x3d'");a.push(this.maxLength);a.push("' ");a.push("name\x3d'");a.push(this.instanceName);a.push("' ");a.push("cols\x3d'");a.push(this.numCols);a.push("' ");a.push("rows\x3d'");a.push(this.numRows);a.push("' ");a.push("type\x3d'text' wrap\x3d'soft'\x3e");a.push(this.cleanValueNoBR(this.currentValue));a.push("\x3c/textarea\x3e");this.editDiv.innerHTML= a.join("");this.editElement=getElementByIdCS(this.instanceName);this.createRTAEditor();this.elementToFocus=this.editElement}; HtmlStringPlusClobField.prototype.createRTAEditor=function(){var a=CKEDITOR.instances[this.editElement.id];a&&a.destroy(!0);a={name:this.instanceName,height:0/g,"\x3cbr\x3e")}; HtmlStringPlusClobField.prototype.formatValue=function(){return""===this.currentValue&&""!==this.initialValue||"\x3cbr\x3e"==this.currentValue&&""!==this.initialValue?this.getDeletedValue():this.currentValue};HtmlStringPlusClobField.prototype.isDifferentValue=function(a){var b=this.removeWhiteSpace(this.initialValue),c=this.removeWhiteSpace(a);return this.initialValue!=a&&b!=c};HtmlStringPlusClobField.prototype.removeWhiteSpace=function(a){return a.replace(/\s| /g,"")}; HtmlStringPlusClobField.prototype.reset=function(a){InlineEditField.SimpleField.prototype.reset.apply(this,arguments);var b=this.getRTAEditor();b&&(this.visualforce||this.useCKEditor?b.setData(this.initialValue):b.GetHTML(!0))};HtmlStringPlusClobField.prototype.addSaveData=function(a){a[this.caseSafe18Id]=this.currentValue};HtmlStringPlusClobField.prototype.getRTAEditor=function(){return this.visualforce?VFRTAEditor.getOrCreateRTAEditor():this.useCKEditor?CKEDITOR.instances[this.instanceName]:FCKeditorAPI.GetInstance(this.instanceName)}; HtmlStringPlusClobField.prototype.createEditElementsForVF=function(){this.editElement=document.createElement("textarea");this.editElement.id=this.instanceName;this.editElement.name=this.instanceName;this.editElement.resize="none";this.elementToFocus=this.editElement;this.editDiv.appendChild(this.editElement)}; HtmlStringPlusClobField.prototype.showEditForVF=function(){var a=0e&&(p=d,e=g);this.grid.getStore().loadData([h[p]])}else this.grid.getStore().loadData(h);this.hasActions||this.grid.view.setScrollOffset();this.grid.view.sizeColumnToContent(l);k=k.getTotalWidth();l=this.grid.getInnerWidth();kc?0:isNaN(c)?c:Math.round(c)+"px"),void 0!=b&&(a.style.height=!b||0>b?0:isNaN(b)?b:Math.round(b)+"px"))}; ListViewport.prototype.queueResize=function(){this.resizeTimer&&clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){this.resizeTimer&&clearTimeout(this.resizeTimer);var a=Sfdc.Window.getWindowWidth()-this.winWidth,b=Sfdc.Window.getWindowHeight()-this.winHeight;if(!(0===b&&0===a)){if(Sfdc.userAgent.isIE7||Sfdc.userAgent.isIE8){var c=Sfdc.Dom.getScrollBarWidth();if((0===a||a===c)&&(0===b||b===c))return}this.loading.show();this.resizeTimer=setTimeout(this.resize.bind(this),1)}}.bind(this), 50)};ListViewport.prototype.calculateAvailableWidth=function(a){Sfdc.assert(a,"No element specified!");var b=document.documentElement.clientWidth,c=Sfdc.Dom.getElementXY(a).x;return b-c-(b-(c+a.offsetWidth))}; ListViewport.prototype.resize=function(a){function b(a,b){b||a.loading.hide();a.grid&&Sfdc.Dom.show(a.grid.el.dom);a.sizeIfNoData();Sfdc.isFunction(a.afterResize)&&a.afterResize();a.winHeight=Sfdc.Window.getWindowHeight();a.winWidth=Sfdc.Window.getWindowWidth()}function c(a,b,c){isNaN(b)||(b-=a.getBorderOffsetWidth());a.grid.setWidth(b);a.grid.setHeight(c);a.resizeElement(a.listBody,c);a.resizeElement(a.grid.el.dom,c,b);a.constrainHeightToViewport?a.resizeElement(a.loading.transparantElement,c):a.resizeElement(a.wrapper, null,"auto");var d=Sfdc.select(".x-grid3",a.grid.el.dom)[0];if(d){a.resizeElement(d.parentNode,c,b);a.resizeElement(d,c,b);a.constrainHeightToViewport&&!isNaN(c)&&(c-=a.defaultScrollBarWidth,c-=6);var f=b;isNaN(f)||(f-=a.defaultScrollBarWidth);a.resizeElement(Sfdc.select(".x-grid3-header-inner",d)[0],null,f);a.resizeElement(Sfdc.select(".x-grid3-scroller",d)[0],c,b);a.resizeElement(Sfdc.select(".x-grid3-resize-marker",d)[0],"0");a.resizeElement(Sfdc.select(".x-grid3-resize-proxy",d)[0],"0")}}this.grid&& Sfdc.Dom.hideByDisplay(this.grid.el.dom);this.resizeElement(this.wrapper,null,"auto");if(this.shouldSizeToViewport){var d=this.constrainHeightToViewport?Math.max(a||0,this.getResizeHeight()):"auto",f=this.calculateAvailableWidth(this.wrapper);this.resizeElement(this.wrapper,null,f);isNaN(d)||(d-=this.getHOffset());if(!this.initialRenderDone&&this.grid&&(!this.vf||"2.1"!=Ext.version))return this.initialRenderDone=!0,a=this.grid.el.dom.parentNode,a.removeChild(this.grid.el.dom),a.appendChild(this.grid.el.dom), c(this,f,d),b(this);this.shrinkStore();this.resizeElement(this.listBody,d);this.resizeElement(this.exception,"100%",f);this.grid?(this.grid.suspendEvents(),c(this,f,d),this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(function(){var a=this.grid.el.dom.parentNode;a.removeChild(this.grid.el.dom);this.unshrinkStore();a.appendChild(this.grid.el.dom);c(this,f,d);this.grid.resumeEvents();if((a=this.grid.getSelectionModel())&&a.onRefresh)a.onRefresh();b(this,this.waitingForXhr)}.bind(this), 1)):b(this)}else this.shrinkStore(),this.unshrinkStore(),b(this,this.waitingForXhr)};ListViewport.prototype.redefineSidebarPin=function(){Sidebar.prototype.theSidebar&&(Sidebar.prototype.theSidebar.pin=function(){Sidebar.prototype.pin.apply(Sidebar.prototype.theSidebar);this.resize()}.bind(this))};ListViewport.prototype.beforeSave=function(){this.saving.show()}; ListViewport.prototype.afterSave=function(a,b){if(a&&0=this.rowsPerPage||UserContext.userPreferences.getBoolean("HideRPPWarning"))&&!ListViewport.dialog)ListViewport.dialog=new SimpleDialog("RPPWarning"),ListViewport.dialog.displayX=!0,ListViewport.dialog.setWidth(520),ListViewport.dialog.extraClass="RPPDialog",ListViewport.dialog.setTitle(LC.getLabel("RPPDialog","title")),ListViewport.dialog.createContent=function(){var a=document.getElementById(ListViewport.dialog.getContentId()), b=[];b.push("\x3ch2 id\x3d'");b.push(ListViewport.dialog.id);b.push("Header'\x3e");b.push(ListViewport.dialog.header);b.push("\x3c/h2\x3e");b.push("\x3cdiv id\x3d'");b.push(ListViewport.dialog.id);b.push("Inner'\x3e");b.push("\x3cdiv class\x3d'message warningM4'\x3e\x3ctable cellspacing\x3d'0' cellpadding\x3d'0' border\x3d'0' class\x3d'messageTable'\x3e\x3ctr\x3e\x3ctd\x3e");b.push("\x3cimg title\x3d'Warning' class\x3d'msgIcon' src\x3d'/s.gif' alt\x3d'");b.push(LC.getLabel("Icon","WARNING"));b.push("'/\x3e\x3c/td\x3e"); b.push("\x3ctd class\x3d'headerCell'\x3e\x3ch4\x3e");b.push(LC.getLabel("RPPDialog","yourRPP",this.rowsPerPage));b.push("\x3c/h4\x3e\x3c/td\x3e\x3c/tr\x3e");b.push("\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv\x3e");b.push(LC.getLabel("RPPDialog","message"));b.push("\x3c/div\x3e");b.push("\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e");b.push("\x3cdiv class\x3d'radioDiv'\x3e");b.push("\x3cdiv class\x3d'radio'\x3e\x3cinput type\x3d'radio' name\x3d'RPPRadio' id\x3d'RPPChange' checked\x3d'checked'\x3e\x3clabel for\x3d'RPPChange'\x3e"); b.push(LC.getLabel("RPPDialog","change"));b.push("\x3c/label\x3e");b.push("\x3cselect class\x3d'RPPSelect' name\x3d'RPPSelect' id\x3d'RPPSelect'\x3e");for(var c=[10,25,50,100],d=0;db?(this.acBox.setStyle("height",this.getACBoxHeight(b)),this.scrolling=!0):(this.acBox.setStyle("height","auto"),this.scrolling=!1)}; AutoCompleteInputElement.prototype.getACBoxHeight=function(a){return a*AutoCompleteInputElement.ROW_HEIGHT+AutoCompleteInputElement.ROW_HEIGHT_UNITS};AutoCompleteInputElement.prototype.updateWidth=function(){var a=this.getMinimumWidth(),b=-1;this.acBox.div.childNodes&&(b=this.acBox.div.childNodes[0].clientWidth);a>b?this.acBox.setStyle("width",a+"px"):this.acBox.setStyle("width",b+"px")};AutoCompleteInputElement.prototype.getMinimumWidth=function(){return this.element.clientWidth}; AutoCompleteInputElement.prototype.clearACBox=function(){this.isACBoxVisible()&&(this.hideACBox(),this.scrolling=!1,this.acBox.setStyle("height","auto"),this.deselect())};AutoCompleteInputElement.prototype.isACBoxInitialized=function(){return null!=this.acBox};AutoCompleteInputElement.prototype.isACBoxVisible=function(){return this.isACBoxInitialized()&&"none"!=this.acBox.getStyle("display")}; AutoCompleteInputElement.prototype.updateACBox=function(a,b){this.element&&(!a||0==a.length?this.acBox&&this.clearACBox():(this.acBox||this.initACBox(),this.displayACBox(a,b),this.scrollDiv(),this.updateWidth()))};AutoCompleteInputElement.prototype.hook_beforeShowSuggestions=function(a){};AutoCompleteInputElement.prototype.hook_onEmptyServletResult=function(a){};AutoCompleteInputElement.prototype.hook_onFinishRetrievingServletResult=function(){}; AutoCompleteInputElement.prototype.showACBox=function(){this.acBox.setStyle("display","block");this.hook_show()};AutoCompleteInputElement.prototype.hideACBox=function(){this.acBox.setStyle("display","none");this.hook_hide()};AutoCompleteInputElement.prototype.hook_show=function(){};AutoCompleteInputElement.prototype.hook_hide=function(){}; AutoCompleteInputElement.prototype.displayACBox=function(a,b){var c=this.constructACBox(a,b);this.setACBox(c);this.positionACBox();this.setACBoxHeight(!a?0:a.length);this.showACBox()}; AutoCompleteInputElement.prototype.constructACBox=function(a,b){var c=[];c.push("\x3ctable id\x3d'"+this.id+AutoCompleteInputElement.BOX_TABLE_ID+"' width\x3d'100%' cellpadding\x3d'0' cellspacing\x3d'0' border\x3d'0'\x3e");a&&0a?this.deselect():(this.select(a),this.scrollDiv())}}; AutoCompleteInputElement.prototype.selectNext=function(){this.hasValidSelection()?this.selected+1!=this.curSuggestions.length&&(this.select((this.selected+1)%this.curSuggestions.length),this.scrollDiv()):this.isACBoxVisible()&&this.select(0)};AutoCompleteInputElement.prototype.scrollDiv=function(){this.hasValidSelection()&&this.scrolling&&(this.acBox.div.scrollTop=this.acBox.div.scrollHeight*((this.selected+1)/this.curSuggestions.length)-0.5*this.acBox.div.clientHeight)}; AutoCompleteInputElement.prototype.deselect=function(){return this.select(-1)};AutoCompleteInputElement.prototype.hasValidSelection=function(){return this.element&&0<=this.selected&&this.curSuggestions&&this.curSuggestions.length&&this.selected=this.minSuggestLen))return[];var c=this.checkCacheOrRetrieve(a,b);return!c?[]:this.getValidSuggestions(a,c)};AutoCompleteInputElement.prototype.getValidSuggestions=function(a,b){for(var c=[],d=0;db.length?!1:0===b.indexOf(a)};AutoCompleteInputElement.normalize=function(a){return trim(a.toLowerCase())}; AutoCompleteInputElement.isNav=function(a){return!a||!a.keyCode?!1:a.keyCode==KEY_ARROW_D||a.keyCode==KEY_ARROW_U||a.keyCode==KEY_ESC||a.keyCode==KEY_TAB||a.keyCode==KEY_ENTER};AutoCompleteInputElement.blurHandler=function(a){(a=AutoCompleteInputElement.getInstance(a))&&a.isACBoxVisible()&&a.clearSuggestions()};AutoCompleteInputElement.captureKeystroke=function(a){a&&(Sfdc.Event.preventDefault(a),Sfdc.Event.stopPropagation(a))};AutoCompleteInputElement.resizeHandler=function(){for(var a in AutoCompleteInputElement.instanceRefs)AutoCompleteInputElement.instanceRefs[a].positionACBox(!0)}; AutoCompleteInputElement.prototype.isValidSuggestion=function(a,b){var c=this.getRegexForInput(a);return b.name.match(c)};AutoCompleteInputElement.escapeRegex=function(a){return!a||0==a.length?a:a.replace(AutoCompleteInputElement.regexChars,"\\$1")}; AutoCompleteInputElement.prototype.getRegexForInput=function(a){var b=AutoCompleteInputElement.normalize(a);AutoCompleteInputElement.regexCache[b]||(AutoCompleteInputElement.regexCache[b]=this.matchBlanks?RegExp(["(\\b|^|\\W)(",AutoCompleteInputElement.escapeRegex(a),")"].join(""),"gi"):RegExp(["(^)(",AutoCompleteInputElement.escapeRegex(a),")"].join(""),"gi"));return AutoCompleteInputElement.regexCache[b]};AutoCompleteInputElement.regexCache={}; AutoCompleteInputElement.prototype.getSuggestionHtml=function(a){var b=[],c=escapeHTML(this.findInput(this.lastInput));a=escapeHTML(a.name);c&&0a?this.deselect():(this.select(a),this.scrollDiv())}};AccessibleAutoCompleteInputElement.prototype.selectNext=function(){this.hasValidSelection()?this.selected+1==this.curSuggestions.length?this.deselect():(this.select((this.selected+1)%this.curSuggestions.length),this.scrollDiv()):this.isACBoxVisible()&&this.select(0)}; AccessibleAutoCompleteInputElement.prototype.select=function(a){this.isACBoxVisible()&&(AutoCompleteInputElement.prototype.select.call(this,a),a=0<=this.selected?Sfdc.get("."+AutoCompleteInputElement.ROW_CSS_CLASS_SELECTED+" .autoCompleteRowLink",this.acBox.div):null,this.element.setAttribute("aria-activedesendant",a&&a.id?a.id:""))}; AccessibleAutoCompleteInputElement.prototype.innerGetSuggestions=function(a){a=AutoCompleteInputElement.prototype.getSuggestions.call(this,a);return[{title:this.displayHeader?LC.getLabel("Sidebar_Search","result_source"):null,suggestions:a}]}; AccessibleAutoCompleteInputElement.prototype.getSuggestions=function(a){var b=[];if(this.groupedSuggestions=this.innerGetSuggestions(a))for(a=0;ae?1:-1});a=[];for(var c=0;c=b.length?b=[a.name]:b[b.length-1]=" "+a.name;this.element.value=b.join(",")+", "};AutoCompleteInputElement.prototype.additionalDisplayConditionsValid=function(){return!0}; TagAutoComplete.prototype.checkCursorAtEnd=function(){if(!this.element)return!1;var a;if(Sfdc.userAgent.isIE){var b=document.selection.createRange().duplicate();if(b.text&&0b?this.acBox.setStyle("width",a+"px"):this.acBox.setStyle("width",b+"px")}; AutoCompleteInputElement.prototype.compareSuggestions=function(a,b){return a&&b&&a.detailURL&&b.detailURL&&a.detailURL==b.detailURL}; var TagHeader=function(){};TagHeader.MAX_TAG_LIST_CHARS=80;TagHeader.LINE_HEIGHT=1.3;TagHeader.LINE_HEIGHT_UNITS="em";TagHeader.RESIZE_THRESHOLD=3; TagHeader.init=function(a,b,d){this.id=a;this.desktopParam=b;this.csrfToken=d;this.editTagsText=document.getElementById(TagConstants.TAG_EDIT_TEXT_ID);if(null!=this.editTagsText){this.dropDown=document.getElementById(TagConstants.TAG_DROP_DOWN_ID);this.dropDownContents=document.getElementById(TagConstants.TAG_DROP_DOWN_CONTENTS_ID);this.tagEditArea=document.getElementById(TagMode.PERSONAL+TagConstants.EDIT_AREA_ID);this.pubTagEditArea=document.getElementById(TagMode.PUBLIC+TagConstants.EDIT_AREA_ID); this.tagDisplayList=document.getElementById(TagMode.PERSONAL+TagConstants.TAG_DISPLAY_LIST);this.pubTagDisplayList=document.getElementById(TagMode.PUBLIC+TagConstants.TAG_DISPLAY_LIST);this.tagEditList=document.getElementById(TagMode.PERSONAL+TagConstants.TAG_EDIT_LIST);this.pubTagEditList=document.getElementById(TagMode.PUBLIC+TagConstants.TAG_EDIT_LIST);this.hiddenTagList=document.getElementById(TagMode.PERSONAL+TagConstants.HIDDEN_TAG_LIST);this.hiddenTagIdList=document.getElementById(TagMode.PERSONAL+ TagConstants.HIDDEN_TAG_ID_LIST);this.hiddenPubTagList=document.getElementById(TagMode.PUBLIC+TagConstants.HIDDEN_TAG_LIST);this.hiddenPubTagIdList=document.getElementById(TagMode.PUBLIC+TagConstants.HIDDEN_TAG_ID_LIST);this.tags=this.getTags(this.hiddenTagList);this.tagIds=this.getTags(this.hiddenTagIdList);this.pubTags=this.getTags(this.hiddenPubTagList);this.pubTagIds=this.getTags(this.hiddenPubTagIdList);this.display();this.loading=new LoadingScreen(this.dropDown,LC.getLabel("TagHeader","saving")); this.tagEditArea&&(this.tagEditArea.textLines=1);this.pubTagEditArea&&(this.pubTagEditArea.textLines=1);this.editTags=document.getElementById(TagConstants.TAG_EDIT_ID);this.tagSaveBtn=document.getElementById(TagConstants.TAG_SAVE_ID);this.tagCancelBtn=document.getElementById(TagConstants.TAG_CANCEL_ID);var c=this;addEvent(this.editTags,"click",function(){c.openDropDown()},!1);addEvent(this.tagSaveBtn,"click",function(){c.save()},!1);addEvent(this.tagCancelBtn,"click",function(){c.cancel()},!1);null!= this.tagEditArea&&!UserContext.isAccessibleMode&&(this.autoCompleter=new TagAutoComplete(this.tagEditArea,TagMode.PERSONAL,function(a){c.keyPress(a)}),this.autoCompleter.setResizer(function(){return c.checkAndResize(c.tagEditArea)}));null!=this.pubTagEditArea&&!UserContext.isAccessibleMode&&(this.pubAutoCompleter=new TagAutoComplete(this.pubTagEditArea,TagMode.PUBLIC,function(a){c.keyPress(a)}),this.pubAutoCompleter.setResizer(function(){return c.checkAndResize(c.pubTagEditArea)}))}}; TagHeader.setTagHeaderSizeToFitTopics=function(){if(Sfdc.Dom.getParent(this.tagHeader,".topics")){var a=Sfdc.get(".tagHeaderLists");a.style.width="2000px";var b=Sfdc.get("#personaltag_display_container"),b=Sfdc.Dom.getWidth(b)+Sfdc.Dom.getWidth(Sfdc.get(".editTags"))+20;a.style.width=b+"px";b>Sfdc.Dom.getWidth(this.tagHeader)&&(a.style.width=Sfdc.Dom.getWidth(this.tagHeader)+"px");a=Sfdc.Dom.getHeight(this.tagDisplayList)+13;this.tagHeader.style.height=a+"px"}}; TagHeader.display=function(){var a;a=this.setupDisplayList(this.tagDisplayList,this.tags,this.tagIds,TagMode.PERSONAL,0);this.setupDisplayList(this.pubTagDisplayList,this.pubTags,this.pubTagIds,TagMode.PUBLIC,a);0==this.tags.length&&0==this.pubTags.length?(this.editTagsText.innerHTML=LC.getLabel("TagHeader","add_tags"),this.editTagsText.setAttribute("title",LC.getLabel("TagHeader","add_tags"))):(this.editTagsText.innerHTML=LC.getLabel("TagHeader","edit_tags"),this.editTagsText.setAttribute("title", LC.getLabel("TagHeader","edit_tags")));this.tagHeader=document.getElementById(TagConstants.TAG_HEADER);this.tagHeader.style.display="block";this.setTagHeaderSizeToFitTopics()}; TagHeader.setupDisplayList=function(a,b,d,c,f){if(null==a)return f;a.innerHTML="";if(0==b.length)document.getElementById(c+TagConstants.TAG_DISPLAY_CONTAINER).style.display="none";else{document.getElementById(c+TagConstants.TAG_DISPLAY_CONTAINER).style.display="inline";for(var g=b.length,h=0;hTagHeader.MAX_TAG_LIST_CHARS||(gTagHeader.RESIZE_THRESHOLD;)a.textLines++,a.style.height=a.textLines*TagHeader.LINE_HEIGHT+TagHeader.LINE_HEIGHT_UNITS,a.rows=a.textLines,b=!0;return b};TagHeader.setTags=function(){this.updateHiddenTags(this.tags,this.hiddenTagList);this.updateHiddenTags(this.tagIds,this.hiddenTagIdList);this.updateHiddenTags(this.pubTags,this.hiddenPubTagList);this.updateHiddenTags(this.pubTagIds,this.hiddenPubTagIdList)}; TagHeader.remove=function(a,b){a==TagMode.PERSONAL?this.newTags.splice(b,1):a==TagMode.PUBLIC&&this.newPublicTags.splice(b,1);this.updateEditArea(!0)};TagHeader.updateEditArea=function(a){null!=this.tagEditArea&&(this.updateEditAreaItems(this.newTags,TagMode.PERSONAL,this.tagEditList),a||(this.tagEditArea.value=""));null!=this.pubTagEditArea&&(this.updateEditAreaItems(this.newPublicTags,TagMode.PUBLIC,this.pubTagEditList),a||(this.pubTagEditArea.value=""))}; TagHeader.updateEditAreaItems=function(a,b,d){if(0==a.length)d.innerHTML=LC.getLabel("TagHeader","no_tags");else{for(var c="",f=0;fthis.curSuggestions.length-1){var a=this.selected-1;0>a?this.deselect():this.select(a)}else this.parent.selectPrev.call(this)}; UnifiedSearchAutoCompleteElement.prototype.selectNext=function(){if(!this.curSuggestions||this.selected+1>this.curSuggestions.length-1){var a=this.selected+1;this.getRow(a)||(a=0);this.select(a)}else this.parent.selectNext.call(this)}; UnifiedSearchAutoCompleteElement.prototype.hook_decorateHtml=function(a){a.push('\x3cdiv class\x3d"usid-roundedCornerDropdown usid-brDropdown" id\x3d"usid-brDropdown"\x3e\x3c/div\x3e');a.push('\x3cdiv class\x3d"usid-bottomSpacer" id\x3d"usid-spacerDropdown"\x3e\x3c/div\x3e');a.push('\x3cdiv class\x3d"usid-roundedCornerDropdown usid-blDropdown" id\x3d"usid-blDropdown"\x3e\x3c/div\x3e');return a}; UnifiedSearchAutoCompleteElement.prototype.shouldRenderWildcardSearchSuggestion=function(){return this.isSearchStringValid()&&this.element.value.length=this.topicAcLimit&&c<=this.topicAcUpperLimit&&(this.cache[this.getCacheKey(a)]=d)}; UnifiedSearchAutoCompleteElement.prototype.innerGetSuggestions=function(a){var b=[],c=[],d=[],e=0,g=0,h=this.cache[UnifiedSearchAutoCompleteElement.MRU_CACHE_KEY];h?(c=this.getValidSuggestions(a,h),e=c.length):this.includeTopics||AccessibleAutoCompleteInputElement.prototype.innerGetSuggestions.call(this,a);this.includeTopics&&(d=AccessibleAutoCompleteInputElement.prototype.innerGetSuggestions.call(this,a),g=d[0].suggestions.length);0this.topicAcUpperLimit))return this.cache[d]}return a.length<=this.topicAcUpperLimit?(this.retrieveFromServlet(a),this.cache[b]): []};UnifiedSearchAutoCompleteElement.prototype.getCacheKey=function(a){return UnifiedSearchAutoCompleteElement.TOPIC_CACHE_PREFIX+a.toLowerCase()};UnifiedSearchAutoCompleteElement.prototype.addMarkupBeforeGroup=function(a,b){0