//
// The contents of this file are subject to the terms
// of the Common Development and Distribution License
// (the License).  You may not use this file except in
// compliance with the License.
// 
// You can obtain a copy of the license at
// https://woodstock.dev.java.net/public/CDDLv1.0.html.
// See the License for the specific language governing
// permissions and limitations under the License.
// 
// When distributing Covered Code, include this CDDL
// Header Notice in each file and include the License file
// at https://woodstock.dev.java.net/public/CDDLv1.0.html.
// If applicable, add the following below the CDDL Header,
// with the fields enclosed by brackets [] replaced by
// you own identifying information:
// "Portions Copyrighted [year] [name of copyright owner]"
// 
// Copyright 2007 Sun Microsystems, Inc. All rights reserved.
//
dojo.provide("webui.suntheme.browser");webui.suntheme.browser={getAgent:function(){return navigator.userAgent.toLowerCase();},getMajor:function(){return parseInt(navigator.appVersion);},getMinor:function(){return parseFloat(navigator.appVersion);},isLinux:function(){var _1=webui.suntheme.browser.getAgent();return (_1.indexOf("inux")!=-1);},isMac:function(){var _2=webui.suntheme.browser.getAgent();return (_2.indexOf("macintosh")!=-1);},isSun:function(){var _3=webui.suntheme.browser.getAgent();return (_3.indexOf("sunos")!=-1);},isWin:function(){var _4=webui.suntheme.browser.getAgent();return (_4.indexOf("win")!=-1||_4.indexOf("16bit")!=-1);},isFirefox:function(){var _5=webui.suntheme.browser.getAgent();return (_5.indexOf("firefox")!=-1);},isMozilla:function(){var _6=webui.suntheme.browser.getAgent();return (_6.indexOf("gecko")!=-1&&_6.indexOf("firefox")==-1&&_6.indexOf("safari")==-1);},isIe:function(){var _7=webui.suntheme.browser.getAgent();return (_7.indexOf("msie")!=-1&&_7.indexOf("opera")==-1);},isIe3:function(){return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()<4);},isIe4:function(){var _8=webui.suntheme.browser.getAgent();return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()==4&&_8.indexOf("msie 4")!=-1);},isIe4up:function(){return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()>=4);},isIe5:function(){var _9=webui.suntheme.browser.getAgent();return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()==4&&_9.indexOf("msie 5.0")!=-1);},isIe5_5:function(){var _a=webui.suntheme.browser.getAgent();return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()==4&&_a.indexOf("msie 5.5")!=-1);},isIe5up:function(){return (webui.suntheme.browser.isIe()&&!webui.suntheme.browser.isIe3()&&!webui.suntheme.browser.isIe4());},isIe5_5up:function(){return (webui.suntheme.browser.isIe()&&!webui.suntheme.browser.isIe3()&&!webui.suntheme.browser.isIe4()&&!webui.suntheme.browser.isIe5());},isIe6:function(){var _b=webui.suntheme.browser.getAgent();return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()==4&&_b.indexOf("msie 6.")!=-1);},isIe6up:function(){return (webui.suntheme.browser.isIe()&&!webui.suntheme.browser.isIe3()&&!webui.suntheme.browser.isIe4()&&!webui.suntheme.browser.isIe5()&&!webui.suntheme.browser.isIe5_5());},isIe7:function(){var _c=webui.suntheme.browser.getAgent();return (webui.suntheme.browser.isIe()&&webui.suntheme.browser.getMajor()==4&&_c.indexOf("msie 7.")!=-1);},isIe7up:function(){return (webui.suntheme.browser.isIe()&&!webui.suntheme.browser.isIe3()&&!webui.suntheme.browser.isIe4()&&!webui.suntheme.browser.isIe5()&&!webui.suntheme.browser.isIe5_5()&&!webui.suntheme.browser.isIe6());},isNav:function(){var _d=webui.suntheme.browser.getAgent();return (_d.indexOf("mozilla")!=-1&&_d.indexOf("spoofer")==-1&&_d.indexOf("compatible")==-1);},isNavOnly:function(){var _e=webui.suntheme.browser.getAgent();return (webui.suntheme.browser.isNav()&&_e.indexOf(";nav")!=-1||_e.indexOf("; nav")!=-1);},isNav4:function(){return (webui.suntheme.browser.isNav()&&webui.suntheme.browser.getMajor()==4);},isNav4up:function(){return (webui.suntheme.browser.isNav()&&webui.suntheme.browser.getMajor()>=4);},isNav6:function(){return (webui.suntheme.browser.isNav()&&webui.suntheme.browser.getMajor()==5);},isNav6up:function(){return (webui.suntheme.browser.isNav()&&webui.suntheme.browser.getMajor()>=5);},isSafari:function(){var _f=webui.suntheme.browser.getAgent();return (_f.indexOf("safari")!=-1);}};dojo.provide("webui.suntheme.theme.common");dojo.require("dojo.i18n");webui.suntheme.theme.common={init:function(_10){if(_10==null){return false;}webui.suntheme.theme.common.modulePath=null;webui.suntheme.theme.common.prefix=_10.prefix;webui.suntheme.theme.common.module=_10.module;webui.suntheme.theme.common.bundle=_10.bundle;webui.suntheme.theme.common.locale=_10.locale;if(_10.modulePath!=null&&_10.modulePath!=""){webui.suntheme.theme.common.modulePath=_10.prefix;if(_10.modulePath.charAt(0)!="/"){webui.suntheme.theme.common.modulePath=webui.suntheme.theme.common.modulePath+"/";}webui.suntheme.theme.common.modulePath=webui.suntheme.theme.common.modulePath+_10.modulePath;dojo.registerModulePath(_10.module,webui.suntheme.theme.common.modulePath);}webui.suntheme.theme.common.requireLocalization(_10.module,_10.bundle,_10.locale);webui.suntheme.theme.common.baseTheme=dojo.i18n.getLocalization(_10.module,_10.bundle,_10.locale);if(_10.custom instanceof Array){for(var i=0;i<_10.custom.length;++i){webui.suntheme.theme.common.extendBaseTheme(_10.custom[i]);}}else{if(typeof (_10.custom)=="string"){webui.suntheme.theme.common.extendBaseTheme(_10.custom);}}return true;},getPrefix:function(){return webui.suntheme.theme.common.prefix;},getProperty:function(_12,key){try{var p=webui.suntheme.theme.common.baseTheme[_12][key];return p==null||p==""?null:p;}catch(e){return null;}},getProperties:function(_15){try{var p=webui.suntheme.theme.common.baseTheme[_15];return p==null||p==""?null:p;}catch(e){return null;}},getMessage:function(_17,_18){var msg=webui.suntheme.theme.common.getProperty("messages",_17);if(msg==null){return null;}if(_18!=null){return msg.replace(/\$\{(\w+)\}/g,function(_1a,key){if(typeof (_18[key])!="undefined"&&_18[key]!=null){return _18[key];}});}else{return msg;}},_getImageProp:function(_1c,_1d){var _1e=webui.suntheme.theme.common.getProperty("images",_1c);if(_1e==null||_1e.length==0){return null;}if(_1d){var msg=webui.suntheme.theme.common.getMessage(_1e,null);if(msg!=null&&msg.length!=0){_1e=msg;}}return _1e;},getImage:function(_20){if(_20==null||_20.length==0){return null;}var _21=["ALT","TITLE","WIDTH","HEIGHT"];var _22=_20.split("_");if(_22.length>1){for(var i=0;i<_21.length;++i){if(_22[_22.length-1]==_21[i]){return null;}}}var src=webui.suntheme.theme.common._getImageProp(_20,false);if(src==null){return null;}var _25={};_25["src"]=webui.suntheme.theme.common.getPrefix()+src;var _26=webui.suntheme.theme.common._getImageProp(_20+"_WIDTH",false);if(_26!=null){_25["width"]=_26;}_26=webui.suntheme.theme.common._getImageProp(_20+"_HEIGHT",false);if(_26!=null){_25["height"]=_26;}var _26=webui.suntheme.theme.common._getImageProp(_20+"_MAP",false);if(_26!=null){_25["map_key"]=_26;var _26=webui.suntheme.theme.common._getImageProp(_20+"_MAP_WIDTH",false);if(_26!=null){_25["actual_width"]=_26;}_26=webui.suntheme.theme.common._getImageProp(_20+"_MAP_HEIGHT",false);if(_26!=null){_25["actual_height"]=_26;}_26=webui.suntheme.theme.common._getImageProp(_20+"_MAP_TOP",false);if(_26!=null){_25["top"]=_26;}}_26=webui.suntheme.theme.common._getImageProp(_20+"_ALT",true);if(_26!=null){_25["alt"]=_26;}_26=webui.suntheme.theme.common._getImageProp(_20+"_TITLE",true);if(_26!=null){_25["title"]=_26;}return _25;},getClassName:function(_27){return webui.suntheme.theme.common.getProperty("styles",_27);},getTemplate:function(key){return webui.suntheme.theme.common.getProperty("templates",key);},extendBaseTheme:function(_29){if(_29==null||_29==""){return false;}var _2a=_29.split(".");var _2b=_2a[_2a.length-1];var _2c=_2a.slice(0,_2a.length-1).join(".");try{var _2d=webui.suntheme.theme.common.prefix;if(_2c==null||_2c==""){webui.suntheme.theme.common.custom={};_2c="webui.suntheme.theme.common.custom";}else{var re=new RegExp("\\.","g");_2d=_2d+"/"+_2c.replace(re,"/");}dojo.registerModulePath(_2c,_2d);webui.suntheme.theme.common.requireLocalization(_2c,_2b,webui.suntheme.theme.common.locale);}catch(e){return false;}var _2f=null;try{_2f=dojo.i18n.getLocalization(_2c,_2b,webui.suntheme.theme.common.locale);}catch(e){return false;}if(_2f!=null){webui.suntheme.theme.common.extend(webui.suntheme.theme.common.baseTheme,_2f);}return true;},extend:function(_30,_31){if(_30==null||_31==null){return false;}for(var _32 in _31){if(_30[_32]&&typeof _30[_32]=="object"){webui.suntheme.theme.common.extend(_30[_32],_31[_32]);}else{_30[_32]=_31[_32];}}return true;},requireLocalization:function(_33,_34,_35,_36){var _37=dojo.i18n.normalizeLocale(_35);var _38=[_33,"nls",_34].join(".");var _39="";if(_36){var _3a=_36.split(",");for(var i=0;i<_3a.length;i++){if(_37.indexOf(_3a[i])==0){if(_3a[i].length>_39.length){_39=_3a[i];}}}if(!_39){_39="ROOT";}}var _3c=_36?_39:_37;var _3d=dojo._loadedModules[_38];var _3e=null;if(_3d){if(djConfig.localizationComplete&&_3d._built){return false;}var _3f=_3c.replace(/-/g,"_");var _40=_38+"."+_3f;_3e=dojo._loadedModules[_40];}if(!_3e){_3d=dojo["provide"](_38);var _41=dojo._getModuleSymbols(_33);var _42=_41.concat("nls").join("/");var _43;dojo.i18n._searchLocalePath(_3c,_36,function(loc){var _45=loc.replace(/-/g,"_");var _46=_38+"."+_45;var _47=false;if(!dojo._loadedModules[_46]){dojo["provide"](_46);var _48=[_42];if(loc!="ROOT"){_48.push(loc);}_48.push(_34);var _49=_48.join("/")+".js";_47=dojo._loadPath(_49,null,function(_4a){var _4b=function(){};_4b.prototype=_43;_3d[_45]=new _4b();webui.suntheme.theme.common.extend(_3d[_45],_4a);});}else{_47=true;}if(_47&&_3d[_45]){_43=_3d[_45];}else{_3d[_45]=_43;}if(_36){return true;}});}if(_36&&_37!=_39){_3d[_37.replace(/-/g,"_")]=_3d[_39.replace(/-/g,"_")];}return true;}};dojo.provide("webui.suntheme.common");webui.suntheme.common={formToSubmit:null,submissionComponentId:null,escapeString:function(s,_4d,_4e){if(s==null){return null;}if(_4d==null){return s;}if(_4e==null){return null;}var _4f=_4e;if(_4e=="\\"){_4f=_4e+_4e;}var rx=new RegExp(_4f,"g");var s1=s.replace(rx,_4e+_4e);rx=new RegExp(_4d,"g");return s1.replace(rx,_4e+_4d);},unescapeString:function(s,_53,_54){if(s==null){return null;}if(_53==null){return s;}if(_54==null){return null;}var _55=_54;if(_54=="\\"){_55=_54+_54;}var rx=new RegExp(_55+_55,"g");var s1=s.replace(rx,_54);rx=new RegExp(_55+_53,"g");return s1.replace(rx,_53);},unescapeStrings:function(_58,_59,_5a){if(_58==null||_58==""){return null;}if(_59==null||_59==""){return _58;}if(_5a==null||_5a==""){return null;}var _5b=new Array();var _5c=0;var _5d=0;var j=0;for(var i=0;i<_58.length;++i){if(_58.charAt(i)==_59){if(_5d%2==0){_5b[_5c++]=_58.slice(j,i);j=i+1;}}if(_58.charAt(i)==_5a){++_5d;continue;}else{_5d=0;}}_5b[_5c]=_58.slice(j);var _60=new Array();for(i=0;i<_5b.length;++i){_60[i]=webui.suntheme.common.unescapeString(_5b[i],_59,_5a);}return _60;},addStyleClass:function(_61,_62){if(_61==null||_62==null){return false;}if(_61.className==null){_61.className=_62;return true;}var _63=webui.suntheme.common.splitStyleClasses(_61);if(_63==null){return false;}for(var i=0;i<_63.length;i++){if(_63[i]!=null&&_63[i]==_62){return true;}}_61.className=_61.className+" "+_62;return true;},checkStyleClasses:function(_65,_66){if(_65==null||_66==null){return false;}for(var i=0;i<_65.length;i++){if(_65[i]!=null&&_65[i]==_66){return true;}}return false;},splitStyleClasses:function(_68){if(_68!=null&&_68.className!=null){return _68.className.split(" ");}else{return null;}},stripStyleClass:function(_69,_6a){if(_69==null||_6a==null||_69.className==null){return false;}var _6b=webui.suntheme.common.splitStyleClasses(_69);if(_6b==null){return false;}for(var i=0;i<_6b.length;i++){if(_6b[i]!=null&&_6b[i]==_6a){_6b.splice(i,1);}}_69.className=_6b.join(" ");return true;},insertHiddenField:function(_6d,_6e,_6f){var _70=document.getElementById(_6d);if(_70!=null){_70.value=_6e;return true;}var _71=document.createElement("input");_71.type="hidden";_71.id=_6d;_71.value=_6e;_71.name=_6d;_6f.appendChild(_71);return true;},submitForm:function(){if(webui.suntheme.common.formToSubmit==null){return false;}if(webui.suntheme.common.submissionComponentId!=null&&webui.suntheme.common.submissionComponentId.length>0){webui.suntheme.common.insertHiddenField("_submissionComponentId",webui.suntheme.common.submissionComponentId,webui.suntheme.common.formToSubmit);}webui.suntheme.common.formToSubmit.submit();return false;},timeoutSubmitForm:function(_72,_73){webui.suntheme.common.formToSubmit=_72;webui.suntheme.common.submissionComponentId=_73;setTimeout("webui.suntheme.common.submitForm()",0);return true;},leaveSubmitterTrace:function(_74,_75){if(_74!=null&&_75!=null&&_75.length>0){webui.suntheme.common.insertHiddenField("_submissionComponentId",_75,_74);}return true;},deleteSubmittableArray:function(_76,_77){try{var _78=document.getElementById(_76);if(_78!=null){_77.removeChild(_78);}}catch(e){}return true;},createSubmittableArray:function(_79,_7a,_7b,_7c){webui.suntheme.common.deleteSubmittableArray(_79,_7a);if(_7c==null||_7c.length<=0){return;}var _7d=document.createElement("select");_7d.className=webui.suntheme.theme.common.getClassName("HIDDEN");_7d.name=_79;_7d.id=_79;_7d.multiple=true;for(var i=0;i<_7c.length;++i){var opt=document.createElement("option");opt.value=_7c[i];if(_7b!=null){opt.label=_7b[i];}opt.defaultSelected=true;_7d.add(opt,null);}_7a.appendChild(_7d);return _7d;},isVisible:function(_80){if(_80==null){return false;}var _81=document.getElementById(_80);return webui.suntheme.common.isVisibleElement(_81);},isVisibleElement:function(_82){if(_82==null){return false;}var _83=webui.suntheme.common.splitStyleClasses(_82);return !webui.suntheme.common.checkStyleClasses(_83,webui.suntheme.theme.common.getClassName("HIDDEN"));},setVisible:function(_84,_85){if(_84==null||_85==null){return false;}var _86=document.getElementById(_84);return webui.suntheme.common.setVisibleElement(_86,_85);},setVisibleElement:function(_87,_88){if(_87==null||_88==null){return false;}if(_88){return webui.suntheme.common.stripStyleClass(_87,webui.suntheme.theme.common.getClassName("HIDDEN"));}else{return webui.suntheme.common.addStyleClass(_87,webui.suntheme.theme.common.getClassName("HIDDEN"));}}};dojo.provide("webui.suntheme.cookie");webui.suntheme.cookie={get:function(){var _89=document.cookie;var pos=_89.indexOf(this.$cookieName+"=");if(pos==-1){return null;}var _8b=pos+this.$cookieName.length+1;var end=_89.indexOf(";",_8b);if(end==-1){end=_89.length;}return _89.substring(_8b,end);},load:function(){var _8d=this.get();if(_8d==null){return false;}var a=_8d.split("&");for(var i=0;i<a.length;i++){a[i]=a[i].split(":");}for(i=0;i<a.length;i++){this[a[i][0]]=unescape(a[i][1]);}return true;},reset:function(){document.cookie=this.$cookieName+"=";return true;},store:function(){var _90="";for(var _91 in this){if(_91.charAt(0)=="$"||typeof this[_91]=="function"){continue;}if(_90!=""){_90+="&";}_90+=_91+":"+escape(this[_91]);}var _92=this.$cookieName+"="+_90;if(this.$path!=null){_92+=";path="+this.$path;}document.cookie=_92;return true;}};webui.suntheme.scrollCookie=function(_93,_94){this.$cookieName=_93;this.$path=_94;this.left="0";this.top="0";this.restore=function(){this.load();scrollTo(this.left,this.top);return true;};this.set=function(){var _95=window.document.documentElement;if(_95&&_95.scrollTop){this.left=_95.scrollLeft;this.top=_95.scrollTop;}else{this.left=window.document.body.scrollLeft;this.top=window.document.body.scrollTop;}if(this.left==null&&this.top==null){this.left=window.pageXOffset;this.top=window.pageYOffset;}this.store();return true;};return true;};webui.suntheme.scrollCookie.prototype=webui.suntheme.cookie;dojo.provide("webui.suntheme.body");webui.suntheme.body=function(_96,_97,_98,_99,_9a,_9b){this.defaultFocusId=_98;this.focusElementFieldId=_9a;this.focusElementId=_99;this.preserveScroll=(_9b==undefined?true:new Boolean(_9b).valueOf());if(this.preserveScroll==true){this.scrollCookie=new webui.suntheme.scrollCookie(_96,_97);}this.canAcceptFocus=function(_9c){var _9d=false;try{_9d=_9c!=null&&_9c.focus&&!_9c.disabled&&_9c.type!="hidden"&&webui.suntheme.common.isVisible(_9c.id);}catch(err){}return _9d;};this.focusListener=function(_9e){var _9f=null;var _a0=false;if(document.attachEvent){_9f=_9e.srcElement;_a0=(_9f==null?false:_9f.nodeType==1);}else{_9f=_9e.target;_a0=_9f.nodeType==Node.ELEMENT_NODE;}if(_a0){this.updateFocusElementField(_9f);}return true;};this.onLoadListener=function(){if(webui.suntheme.browser.isIe()){dojo.connect(document,"onfocusin",this,"focusListener");}else{dojo.connect(window,"onfocus",this,"focusListener");}this.setInitialFocus();return this.setDefaultScrollPosition();};this.onUnloadListener=function(_a1){return this.storeScrollPosition();};this.setDefaultFocus=function(){if(this.defaultFocusId!=null){var _a2=document.getElementById(this.defaultFocusId);if(_a2==null){var _a3=this;return setTimeout(function(){_a3.setDefaultFocus();},10);}if(this.setFocusById(this.defaultFocusId)){return true;}}return false;};this.setDefaultScrollPosition=function(){if(!this.preserveScroll){return false;}if(window.location.href.indexOf("#")==-1){this.scrollCookie.restore();}else{this.scrollCookie.reset();}return true;};this.setInitialFocus=function(){if(this.focusElementId!=null){var _a4=document.getElementById(this.focusElementId);if(_a4==null){var _a5=this;return setTimeout(function(){_a5.setInitialFocus();},10);}if(this.setFocusById(this.focusElementId)){return true;}}return this.setDefaultFocus();};this.setFocusByElement=function(_a6){if(_a6==null||!this.canAcceptFocus(_a6)){return false;}try{_a6.focus();}catch(err){}return true;};this.setFocusById=function(fid){if(fid==null||fid.length==0){return false;}return this.setFocusByElement(document.getElementById(fid));};this.storeScrollPosition=function(){if(!this.preserveScroll){return false;}try{this.scrollCookie.set();}catch(e){}return true;};this.updateFocusElementField=function(_a8){if(_a8==null){return false;}for(var i=0;i<document.forms.length;++i){var _aa=document.forms[i];var _ab=null;try{_ab=_aa.elements[this.focusElementFieldId];if(_ab!=null){_ab.value=_a8.id;continue;}}catch(e){}_ab=document.createElement("input");_ab.type="hidden";_ab.id=this.focusElementFieldId;_ab.name=this.focusElementFieldId;_ab.value=_a8.id;_aa.appendChild(_ab);}return true;};this.onLoadListener();if(this.preserveScroll==true){dojo.addOnUnload(this,"onUnloadListener");}};dojo.provide("webui.suntheme.widget.common");webui.suntheme.widget.common={addFragment:function(_ac,_ad,_ae,_af){if(_ac==null||_ad==null){return false;}if(_ae==null){webui.suntheme.widget.common.removeChildNodes(_ac);_ae="last";}if(typeof _ad=="string"){if(_af!=null&&new Boolean(_af).valueOf()==false){webui.suntheme.widget.common.appendHTML(_ac,_ad.stripScripts());setTimeout(function(){_ad.evalScripts();webui.suntheme.widget.common.replaceElements(_ac);},10);}else{webui.suntheme.widget.common.appendHTML(_ac,webui.suntheme.widget.common.escapeHTML(_ad));}}else{if(_ad.fragment){webui.suntheme.widget.common.addFragment(_ac,_ad.fragment,_ae,false);}else{webui.suntheme.widget.common.createWidget(_ac,_ad,_ae,false);}}return true;},appendHTML:function(_b0,_b1){if(_b0.innerHTML!=null&&_b0.innerHTML.length>0){var _b2=document.createElement("span");_b2.innerHTML=_b1;_b0.appendChild(_b2);}else{_b0.innerHTML=_b1;}return true;},createWidget:function(_b3,_b4,_b5){var _b6=null;if(_b4==null||_b4.id==null||_b4.widgetType==null){return _b6;}webui.suntheme.widget.common.destroyWidget(_b4.id);dojo.require(_b4.widgetType);try{var obj=dojo.getObject(_b4.widgetType);_b6=new obj(_b4);}catch(err){var _b8="Error: createWidget falied for id="+_b4.id;if(err&&err.description!=null){_b8+=", "+err.description;}console.debug(_b8);return null;}if(_b3){if(_b5=="last"){_b3.appendChild(_b6.domNode);}else{if(_b3.parentNode){_b3.parentNode.replaceChild(_b6.domNode,_b3);}}}_b6.startup();return _b6;},createWidgetOnLoad:function(_b9,_ba){if(_b9==null||_ba==null){return false;}if(webui.suntheme.widget.common._widgetProps==null){webui.suntheme.widget.common._widgetProps=new Object();}webui.suntheme.widget.common._widgetProps[_b9]=_ba;return true;},destroyWidget:function(id){if(id==null){return false;}var _bc=dijit.byId(id);if(_bc){return _bc.destroyRecursive();}return false;},escapeHTML:function(_bd){return _bd.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");},extend:function(obj,_bf){if(obj==null||_bf==null){return false;}for(var _c0 in _bf){if(obj[_c0]&&typeof obj[_c0]=="object"){webui.suntheme.widget.common.extend(obj[_c0],_bf[_c0]);}else{obj[_c0]=_bf[_c0];}}return true;},getClassName:function(key,_c2){var _c3=webui.suntheme.theme.common.getClassName(key);return (_c3!=null)?_c3:(_c2)?_c2:null;},getDropDownProps:function(_c4){if(_c4==null||_c4.options==null){return;}if(_c4.size==null){_c4.size=1;}var _c5=webui.suntheme.widget.common.getWidgetProps("dropDown",_c5);webui.suntheme.widget.common.extend(_c5,_c4);return _c5;},getEvent:function(_c6){return (_c6)?_c6:((window.event)?window.event:null);},getForm:function(_c7){var _c8=null;var obj=_c7;while(obj!=null){if(obj.tagName=="FORM"){_c8=obj;break;}obj=obj.parentNode;}return _c8;},getHyperlinkProps:function(_ca){if(_ca==null||_ca.id==null){return;}var _cb={};_cb=webui.suntheme.widget.common.getWidgetProps("hyperlink",_cb);if(_ca!=null){webui.suntheme.widget.common.extend(_cb,_ca);}return _cb;},getImageHyperlinkProps:function(_cc,_cd,_ce){if(_cc==null||_cc.id==null){return;}var _cf=webui.suntheme.widget.common.getWidgetProps("imageHyperlink",_cf);if(_cd!=null){_cf.enabledImage=webui.suntheme.widget.common.getImageProps(_cd,_cc.enabledImage);}if(_ce!=null){_cf.disabledImage=webui.suntheme.widget.common.getImageProps(_ce,_cc.disabledImage);}webui.suntheme.widget.common.extend(_cf,_cc);return _cf;},getImageProps:function(key,_d1){var _d2=webui.suntheme.theme.common.getImage(key);if(_d2==null){return null;}_d2=webui.suntheme.widget.common.getWidgetProps("image",_d2);var _d3=_d2["map_key"];var _d4=webui.suntheme.widget.common.isHighContrastMode();if(_d3!=null&&!_d4&&!webui.suntheme.browser.isIe6()){var _d5=webui.suntheme.theme.common.getImage("DOT");var _d6=webui.suntheme.theme.common.getImage(_d3);if(_d2["top"]!=null&&(_d2["actual_height"]==_d2["height"]&&_d2["actual_width"]==_d2["width"])){_d1.style="background-image:url("+_d6["src"]+");"+"background-position:"+0+"px"+" "+_d2["top"]+"px"+";"+"height:"+_d2["actual_height"]+"px"+";"+"width:"+_d2["actual_width"]+"px"+"border:0"+";";_d2["src"]=_d5["src"];if(_d1!=null){_d1.src=_d5["src"];}}}if(_d1!=null){webui.suntheme.widget.common.extend(_d2,_d1);}return _d2;},getKeyCode:function(_d7){return (_d7.keyCode)?_d7.keyCode:((_d7.which)?_d7.which:_d7.charCode);},getPosition:function(_d8){var _d9=topPos=0;if(_d8.offsetParent){_d9=_d8.offsetLeft;topPos=_d8.offsetTop;while(_d8=_d8.offsetParent){_d9+=_d8.offsetLeft;topPos+=_d8.offsetTop;}}return [_d9,topPos];},getPageHeight:function(){if(window.innerHeight){return window.innerHeight;}if(document.documentElement.clientHeight>0){return document.documentElement.clientHeight;}if(document.body.clientHeight){return document.body.clientHeight;}return null;},getPageWidth:function(){if(window.innerWidth){return window.innerWidth;}if(document.documentElement.clientWidth>0){return document.documentElement.clientWidth;}if(document.body.clientWidth){return document.body.clientWidth;}return null;},getTemplatePath:function(key){var _db=webui.suntheme.theme.common.getTemplate(key);if(webui.suntheme.widget.common.isTemplatePath(_db)){return webui.suntheme.theme.common.getPrefix()+"/"+_db;}else{return null;}},getTemplateString:function(key){var _dd=webui.suntheme.theme.common.getTemplate(key);if(!webui.suntheme.widget.common.isTemplatePath(_dd)){return _dd;}else{return null;}},getWidgetProps:function(_de,_df){var _e0={};_e0.widgetType="webui.suntheme.widget."+_de;if(_df!=null){webui.suntheme.widget.common.extend(_e0,_df);}return _e0;},isHighContrastMode:function(){if(webui.suntheme.browser.isSafari()){return false;}var _e1=document.getElementById("a11yTestNode");var _e2=null;if(_e1!=null&&window.getComputedStyle){var _e3=getComputedStyle(_e1,"");_e2=_e3.getPropertyValue("background-image");}else{_e2=_e1.currentStyle.backgroundImage;}if(_e2!=null&&(_e2=="none"||_e2=="url(invalid-url:)")){return true;}return false;},isTemplatePath:function(_e4){return (_e4!=null&&_e4.charAt(0)!="<");},removeChildNodes:function(_e5){if(_e5==null){return false;}try{_e5.innerHTML="";}catch(e){while(_e5.hasChildNodes()){var _e6=_e5.childNodes[0];_e5.removeChild(_e6);}}return true;},replaceElement:function(_e7,_e8){if(_e8==null||_e7==null||_e7.parentNode==null){return false;}setTimeout(function(){webui.suntheme.widget.common.createWidget(_e7,_e8);},0);return true;},replaceElements:function(_e9){if(_e9==null){return false;}var _ea=_e9.getElementsByTagName("SCRIPT");var _eb=webui.suntheme.widget.common._widgetProps;var _ec=webui.suntheme.widget.common.replaceElement;if(_eb==null){return false;}if(_ea.length==0){_ea=_e9.getElementsByTagName("SPAN");if(_ea.length==0){return false;}for(var i=0;i<_ea.length;i++){_ec(_ea[i],_eb[_ea[i].id]);}}else{for(var i=0;i<_ea.length;i++){_ec(_ea[i],_eb[_ea[i].parentNode.id]);}}return true;},sleep:function(_ee){var _ef=new Date();var _f0=_ef.getTime()+_ee;while(true){_ef=new Date();if(_ef.getTime()>_f0){return true;}}return false;},updateFragment:function(_f1,_f2,_f3,_f4){if(_f2==null){return false;}var _f5=(typeof _f2!="string")?dijit.byId(_f2.id):null;if(_f5&&typeof _f5.setProps=="function"){_f5.setProps(_f2);}else{webui.suntheme.widget.common.addFragment(_f1,_f2,_f3,_f4);}return true;}};dojo.provide("webui.suntheme.bootstrap");webui.suntheme.bootstrap={init:function(_f6){if(_f6==null){return false;}Object.extend(webui.suntheme.bootstrap,_f6);webui.suntheme.theme.common.init(_f6.theme);dojo.addOnLoad(function(){webui.suntheme.widget.common.replaceElements(dojo.body());});return true;}};dojo.provide("webui.suntheme.formElements");webui.suntheme.button={init:function(_f7){if(_f7==null||_f7.id==null){return false;}var _f8=dijit.byId(_f7.id);if(_f8==null){return false;}_f8.domNode.isSecondary=webui.suntheme.button.isSecondary;_f8.domNode.setSecondary=webui.suntheme.button.setSecondary;_f8.domNode.isPrimary=webui.suntheme.button.isPrimary;_f8.domNode.setPrimary=webui.suntheme.button.setPrimary;_f8.domNode.isMini=webui.suntheme.button.isMini;_f8.domNode.setMini=webui.suntheme.button.setMini;_f8.domNode.getDisabled=webui.suntheme.button.getDisabled;_f8.domNode.setDisabled=webui.suntheme.button.setDisabled;_f8.domNode.getVisible=webui.suntheme.button.getVisible;_f8.domNode.setVisible=webui.suntheme.button.setVisible;_f8.domNode.getText=webui.suntheme.button.getText;_f8.domNode.setText=webui.suntheme.button.setText;_f8.domNode.doClick=webui.suntheme.button.click;return true;},click:function(){return this.click();},getText:function(){return this.getProps().value;},setText:function(_f9){return this.setProps({value:_f9});},setVisible:function(_fa){if(_fa==null){return null;}return this.setProps({visible:_fa});},getVisible:function(){return this.getProps().visible;},isPrimary:function(){return this.getProps().primary;},setPrimary:function(_fb){if(_fb==null){return null;}return this.setProps({primary:_fb});},isSecondary:function(){return !(this.getProps().primary);},setSecondary:function(_fc){if(_fc==null){return null;}return this.setProps({primary:!_fc});},isMini:function(){return this.getProps().mini;},setMini:function(_fd){if(_fd==null){return null;}return this.setProps({mini:_fd});},getDisabled:function(){return this.getProps().disabled;},setDisabled:function(_fe){if(_fe==null){return null;}return this.setProps({disabled:_fe});}};webui.suntheme.checkbox={setDisabled:function(_ff,_100){return webui.suntheme.rbcb.setDisabled(_ff,_100,"checkbox","Cb","CbDis");},setGroupDisabled:function(_101,_102){return webui.suntheme.rbcb.setGroupDisabled(_101,_102,"checkbox","Cb","CbDis");},setChecked:function(_103,_104){return webui.suntheme.rbcb.setChecked(_103,_104,"checkbox");}};webui.suntheme.dropDown={getSelectElement:function(_105){var _106=dijit.byId(_105);if(_106){return _106.getSelectElement();}return null;},changed:function(_107){var _108=dijit.byId(_107);if(_108){return _108.changed();}return false;},setDisabled:function(_109,_10a){var _10b=dijit.byId(_109);if(_10b){return _10b.setProps({disabled:_10a});}return null;},getSelectedValue:function(_10c){var _10d=dijit.byId(_10c);if(_10d){return _10d.getSelectedValue();}return null;},getSelectedLabel:function(_10e){var _10f=dijit.byId(_10e);if(_10f){return _10f.getSelectedLabel();}return null;}};webui.suntheme.field={getInputElement:function(_110){var _111=dijit.byId(_110);if(_111){return _111.getInputElement();}return null;},getValue:function(_112){var _113=dijit.byId(_112);if(_113){return _113.getProps().value;}return null;},setValue:function(_114,_115){var _116=dijit.byId(_114);if(_116){return _116.setProps({value:_115});}return null;},getStyle:function(_117){var _118=dijit.byId(_117);if(_118){return _118.getProps().style;}return null;},setStyle:function(_119,_11a){var _11b=dijit.byId(_119);if(_11b){return _11b.setProps({style:_11a});}return null;},setDisabled:function(_11c,_11d){if(_11d==null){return null;}var _11e=dijit.byId(_11c);if(_11e){return _11e.setProps({disabled:_11d});}return null;}};webui.suntheme.hyperlink={submit:function(_11f,_120,_121){var _122=dijit.byId(_11f.id);if(_122==null){dojo.require("webui.suntheme.widget.hyperlink");_122=new webui.suntheme.widget.hyperlink({id:_11f.id});}return _122.submitFormData(_120,_121);},getImgElement:function(_123){var _124=dijit.byId(_123);var _125=(_124)?_124.getProps():null;if(_125&&_125.enabledImage){var _126=dijit.byId(_125.enabledImage.id);if(_126!=null){return _126.domNode;}}if(_123!=null){var _127=_123;var _128=_123.lastIndexOf(":");if(_128!=-1){_127=_123.substring(_128+1);}return document.getElementById(_123+":"+_127+"_image");}return document.getElementById(_123+"_image");}};webui.suntheme.jumpDropDown={changed:function(_129){var _12a=dijit.byId(_129);if(_12a){return _12a.changed();}return false;}};webui.suntheme.listbox={getSelectElement:function(_12b){var _12c=dijit.byId(_12b);if(_12c){return _12c.getSelectElement();}return null;},changed:function(_12d){var _12e=dijit.byId(_12d);if(_12e){return _12e.changed();}return false;},setDisabled:function(_12f,_130){var _131=dijit.byId(_12f);if(_131){return _131.setProps({disabled:_130});}return null;},getSelectedValue:function(_132){var _133=dijit.byId(_132);if(_133){return _133.getSelectedValue();}return null;},getSelectedLabel:function(_134){var _135=dijit.byId(_134);if(_135){return _135.getSelectedLabel();}return null;}};webui.suntheme.rbcb={setChecked:function(_136,_137,type){var _139=dijit.byId(_136);if(_139){return _139.setProps({checked:_137});}return null;},setDisabled:function(_13a,_13b,type,_13d,_13e){var _13f=dijit.byId(_13a);if(_13f){return _13f.setProps({disabled:_13b});}return null;},setGroupDisabled:function(_140,_141,type,_143,_144){var _145=dijit.byId(elementId);if(_145){return _145.setProps({disabled:_141});}return null;}};webui.suntheme.radiobutton={setDisabled:function(_146,_147){return webui.suntheme.rbcb.setDisabled(_146,_147,"radio","Rb","RbDis");},setGroupDisabled:function(_148,_149){return webui.suntheme.rbcb.setGroupDisabled(_148,_149,"radio","Rb","RbDis");},setChecked:function(_14a,_14b){return webui.suntheme.rbcb.setChecked(_14a,_14b,"radio");}};webui.suntheme.upload={getInputElement:function(_14c){if(_14c==null||_14c==""){return null;}var _14d=document.getElementById(_14c+"_com.sun.webui.jsf.upload");if(_14d&&_14d.tagName=="INPUT"){return _14d;}else{return null;}},setDisabled:function(_14e,_14f){if(_14e==null||_14e==""||_14f==null||_14f==""){return false;}var _150=webui.suntheme.upload.getInputElement(_14e);if(_150==null){return false;}_150.disabled=_14f;return true;},setEncodingType:function(_151){if(_151==null||_151==""){return false;}var _152=webui.suntheme.upload.getInputElement(_151);var form=_152!=null?_152.form:null;if(form!=null){if(webui.suntheme.browser.isSafari()){form.enctype="multipart/form-data";}else{form.encoding="multipart/form-data";}return true;}return false;},preservePath:function(_154,_155){if(_154==null||_154==""||_155==null||_155==""){return false;}var _156=webui.suntheme.upload.getInputElement(_154);if(_156==null){return false;}var _157=_156.form;var _158=function(evt){if(document.attachEvent){node=evt.srcElement;}else{node=evt.target;}var _15a=null;try{_15a=_157.elements[_155];}catch(e){}if(_15a!=null){_15a.value=node.value;}else{webui.suntheme.common.insertHiddenField(_155,node.value,_157);}return true;};if(_156.addEventListener){_156.addEventListener("change",_158,true);}else{_156.attachEvent("onchange",_158);}return true;}};dojo.provide("webui.suntheme.table");webui.suntheme.table={confirmDeleteSelectedRows:function(){return this.confirmSelectedRows(this.deleteSelectionsMsg);},confirmSelectedRows:function(_15b){var _15c=this.getAllSelectedRowsCount();var _15d=this.totalSelectionsMsg.split("{0}");var _15e=_15d[0]+_15c;var _15f=this.getAllHiddenSelectedRowsCount();if(_15f>0){var _160=this.hiddenSelectionsMsg.split("{0}");var _161=_160[0]+_15f;_15e=_161+_15e;}return (_15b!=null)?confirm(_15e+_15b):confirm(_15e);},filterMenuChanged:function(){if(this.panelToggleIds==null||this.panelToggleIds.length==0){return false;}var menu=webui.suntheme.dropDown.getSelectElement(this.panelToggleIds[this.FILTER]);if(menu==null){return true;}if(menu.options[menu.selectedIndex].value==this.customFilterOptionValue){this.toggleFilterPanel();return false;}else{if(menu.options[menu.selectedIndex].value==this.customFilterAppliedOptionValue){menu.selectedIndex=0;for(var i=0;i<menu.options.length;i++){if(menu.options[i].value==this.customFilterOptionValue){menu.options[i].selected=true;break;}}return false;}}return true;},getAllSelectedRowsCount:function(){return this.getAllHiddenSelectedRowsCount()+this.getAllRenderedSelectedRowsCount();},getAllHiddenSelectedRowsCount:function(){var _164=0;if(this.groupIds==null||this.groupIds.length==0){return _164;}for(var i=0;i<this.groupIds.length;i++){_164=_164+this.getGroupHiddenSelectedRowsCount(this.groupIds[i]);}return _164;},getAllRenderedSelectedRowsCount:function(){var _166=0;if(this.groupIds==null||this.groupIds.length==0){return _166;}for(var i=0;i<this.groupIds.length;i++){_166=_166+this.getGroupRenderedSelectedRowsCount(this.groupIds[i]);}return _166;},initAllRows:function(){if(this.groupIds==null||this.groupIds.length==0){return false;}for(var i=0;i<this.groupIds.length;i++){this.initGroupRows(this.groupIds[i]);}return true;},toggleFilterPanel:function(){if(this.panelIds==null||this.panelIds.length==0){return false;}this.togglePanel(this.panelIds[this.FILTER],this.panelFocusIds[this.FILTER],this.panelToggleIds[this.FILTER]);return this.resetFilterMenu(this.panelToggleIds[this.FILTER]);},togglePreferencesPanel:function(){if(this.panelIds==null||this.panelIds.length==0){return false;}this.togglePanel(this.panelIds[this.PREFERENCES],this.panelFocusIds[this.PREFERENCES],this.panelToggleIds[this.PREFERENCES]);return this.resetFilterMenu(this.panelToggleIds[this.FILTER]);},init:function(_169){if(_169==null||_169.id==null){return false;}var _16a=document.getElementById(_169.id);if(_16a==null){return false;}Object.extend(_16a,_169);_16a.SEPARATOR=":";_16a.SORT=0;_16a.PREFERENCES=1;_16a.FILTER=2;_16a.PRIMARY=0;_16a.SECONDARY=1;_16a.TERTIARY=2;_16a.hiddenSelectionsMsg=_169.hiddenSelectionsMsg.replace(/\\n/g,"\n");_16a.totalSelectionsMsg=_169.totalSelectionsMsg.replace(/\\n/g,"\n");_16a.missingSelectionMsg=_169.missingSelectionMsg.replace(/\\n/g,"\n");_16a.duplicateSelectionMsg=_169.duplicateSelectionMsg.replace(/\\n/g,"\n");_16a.deleteSelectionsMsg=_169.deleteSelectionsMsg.replace(/\\n/g,"\n");_16a.initSortOrderMenu=webui.suntheme.table.initSortOrderMenu;_16a.initSortOrderMenuToolTip=webui.suntheme.table.initSortOrderMenuToolTip;_16a.resetFilterMenu=webui.suntheme.table.resetFilterMenu;_16a.togglePanel=webui.suntheme.table.togglePanel;_16a.confirmDeleteSelectedRows=webui.suntheme.table.confirmDeleteSelectedRows;_16a.confirmSelectedRows=webui.suntheme.table.confirmSelectedRows;_16a.filterMenuChanged=webui.suntheme.table.filterMenuChanged;_16a.getAllSelectedRowsCount=webui.suntheme.table.getAllSelectedRowsCount;_16a.getAllHiddenSelectedRowsCount=webui.suntheme.table.getAllHiddenSelectedRowsCount;_16a.getAllRenderedSelectedRowsCount=webui.suntheme.table.getAllRenderedSelectedRowsCount;_16a.getGroupSelectedRowsCount=webui.suntheme.table.getGroupSelectedRowsCount;_16a.getGroupHiddenSelectedRowsCount=webui.suntheme.table.getGroupHiddenSelectedRowsCount;_16a.getGroupRenderedSelectedRowsCount=webui.suntheme.table.getGroupRenderedSelectedRowsCount;_16a.initAllRows=webui.suntheme.table.initAllRows;_16a.initGroupRows=webui.suntheme.table.initGroupRows;_16a.initPrimarySortOrderMenu=webui.suntheme.table.initPrimarySortOrderMenu;_16a.initPrimarySortOrderMenuToolTip=webui.suntheme.table.initPrimarySortOrderMenuToolTip;_16a.initSecondarySortOrderMenu=webui.suntheme.table.initSecondarySortOrderMenu;_16a.initSecondarySortOrderMenuToolTip=webui.suntheme.table.initSecondarySortOrderMenuToolTip;_16a.initSortColumnMenus=webui.suntheme.table.initSortColumnMenus;_16a.initSortOrderMenus=webui.suntheme.table.initSortOrderMenus;_16a.initTertiarySortOrderMenu=webui.suntheme.table.initTertiarySortOrderMenu;_16a.initTertiarySortOrderMenuToolTip=webui.suntheme.table.initTertiarySortOrderMenuToolTip;_16a.selectAllRows=webui.suntheme.table.selectAllRows;_16a.selectGroupRows=webui.suntheme.table.selectGroupRows;_16a.toggleSortPanel=webui.suntheme.table.toggleSortPanel;_16a.toggleFilterPanel=webui.suntheme.table.toggleFilterPanel;_16a.togglePreferencesPanel=webui.suntheme.table.togglePreferencesPanel;_16a.toggleGroupPanel=webui.suntheme.table.toggleGroupPanel;_16a.validateSortPanel=webui.suntheme.table.validateSortPanel;return true;},getGroupSelectedRowsCount:function(_16b){return this.getGroupHiddenSelectedRowsCount(_16b)+this.getGroupRenderedSelectedRowsCount(_16b);},getGroupHiddenSelectedRowsCount:function(_16c){var _16d=0;if(this.groupIds==null||this.groupIds.length==0||_16c==null){return _16d;}for(var i=0;i<this.groupIds.length;i++){if(_16c==this.groupIds[i]){_16d=this.hiddenSelectedRowCounts[i];break;}}return _16d;},getGroupRenderedSelectedRowsCount:function(_16f){var _170=0;if(this.groupIds==null||this.groupIds.length==0||_16f==null){return _170;}var _171=null;var _172=null;for(var i=0;i<this.groupIds.length;i++){if(_16f==this.groupIds[i]){_171=this.selectIds[i];_172=this.rowIds[i];break;}}if(_171==null||_172==null){return false;}for(var k=0;k<_172.length;k++){var _175=document.getElementById(this.groupIds[i]+this.SEPARATOR+_172[k]+this.SEPARATOR+_171);if(_175!=null&&_175.getProps().checked){_170++;}}return _170;},initGroupRows:function(_176){if(this.groupIds==null||this.groupIds.length==0||_176==null){return false;}var _177=null;var _178=null;for(var i=0;i<this.groupIds.length;i++){if(_176==this.groupIds[i]){_177=this.selectIds[i];_178=this.rowIds[i];break;}}if(_177==null||_178==null){return false;}var _17a=true;var _17b=false;for(var k=0;k<_178.length;k++){var _17d=document.getElementById(this.groupIds[i]+this.SEPARATOR+_178[k]+this.SEPARATOR+_177);if(_17d==null){continue;}var row=document.getElementById(this.groupIds[i]+this.SEPARATOR+_178[k]);var _17f=_17d.getProps();if(_17d.getProps().checked==true){webui.suntheme.common.addStyleClass(row,this.selectRowStyleClass);_17b=true;}else{webui.suntheme.common.stripStyleClass(row,this.selectRowStyleClass);_17a=false;}}var _180=document.getElementById(_176+this.SEPARATOR+this.selectMultipleToggleButtonId);if(_180!=null){var _181=(_17a)?this.selectMultipleToggleButtonToolTipSelected:this.selectMultipleToggleButtonToolTip;_180.setProps({"checked":_17a,"title":_181});}var _182=_176+this.SEPARATOR;var _183=!webui.suntheme.common.isVisible(_182+_178[0]);var _184=document.getElementById(_182+this.warningIconId);if(_184!=null){var src=this.warningIconOpen;var _181=this.warningIconToolTipOpen;if(_183&&_17b&&!_17a){src=this.warningIconClose;_181=this.warningIconToolTipClose;}_184.setProps({"src":src,"title":_181});}return true;},initPrimarySortOrderMenu:function(){return this.initSortOrderMenu(this.sortColumnMenuIds[this.PRIMARY],this.sortOrderMenuIds[this.PRIMARY]);},initPrimarySortOrderMenuToolTip:function(){var _186=webui.suntheme.dropDown.getSelectElement(this.sortOrderMenuIds[this.PRIMARY]);if(_186!=null){if(_186.options[_186.selectedIndex].disabled==true){_186.selectedIndex=0;}}return this.initSortOrderMenuToolTip(this.sortColumnMenuIds[this.PRIMARY],this.sortOrderMenuIds[this.PRIMARY]);},initSecondarySortOrderMenu:function(){return this.initSortOrderMenu(this.sortColumnMenuIds[this.SECONDARY],this.sortOrderMenuIds[this.SECONDARY]);},initSecondarySortOrderMenuToolTip:function(){var _187=webui.suntheme.dropDown.getSelectElement(this.sortOrderMenuIds[this.SECONDARY]);if(_187!=null){if(_187.options[_187.selectedIndex].disabled==true){_187.selectedIndex=0;}}return this.initSortOrderMenuToolTip(this.sortColumnMenuIds[this.SECONDARY],this.sortOrderMenuIds[this.SECONDARY]);},initSortColumnMenus:function(){if(this.sortColumnMenuIds==null||this.sortColumnMenuIds.length==0){return false;}for(var i=0;i<this.sortColumnMenuIds.length;i++){var _189=webui.suntheme.dropDown.getSelectElement(this.sortColumnMenuIds[i]);if(_189==null){continue;}_189.selectedIndex=0;for(var k=0;k<_189.options.length;k++){if(_189.options[k].defaultSelected==true){_189.options[k].selected=true;break;}}webui.suntheme.dropDown.changed(this.sortColumnMenuIds[i]);}return true;},initSortOrderMenus:function(){if(this.sortOrderMenuIds==null||this.sortOrderMenuIds.length==0){return false;}for(var i=0;i<this.sortOrderMenuIds.length;i++){var _18c=webui.suntheme.dropDown.getSelectElement(this.sortOrderMenuIds[i]);if(_18c==null){continue;}_18c.selectedIndex=0;var _18d=webui.suntheme.dropDown.getSelectElement(this.sortColumnMenuIds[i]);if(_18d!=null){if(_18d.options[_18d.selectedIndex].value==this.selectSortMenuOptionValue&&!this.hiddenSelectedRows&&this.paginated){_18c.options[1].disabled=true;}else{_18c.options[1].disabled=false;}}for(var k=0;k<_18c.options.length;k++){if(_18c.options[k].defaultSelected==true){_18c.options[k].selected=true;break;}}webui.suntheme.dropDown.changed(this.sortOrderMenuIds[i]);this.initSortOrderMenuToolTip(this.sortColumnMenuIds[i],this.sortOrderMenuIds[i]);}return true;},initSortOrderMenu:function(_18f,_190){if(_18f==null||_190==null){return false;}if(this.sortColumnMenuIds==null||this.sortColumnMenuIds.length==0){return false;}if(this.sortOrderMenuIds==null||this.sortOrderMenuIds.length==0){return false;}var _191=webui.suntheme.dropDown.getSelectElement(_18f);if(_191==null){return false;}var _192=webui.suntheme.dropDown.getSelectElement(_190);if(_192==null){return false;}_192.selectedIndex=0;var _193=(_191.selectedIndex>-1)?_191.selectedIndex:0;if(_191.options[_193].value==this.selectSortMenuOptionValue&&!this.hiddenSelectedRows&&this.paginated){_192.options[1].disabled=true;}else{_192.options[1].disabled=false;}for(var i=0;i<this.sortColumnMenuIds.length;i++){var _195=webui.suntheme.dropDown.getSelectElement(this.sortColumnMenuIds[i]);if(_195==null){continue;}var _196=null;for(var k=0;k<_195.options.length;k++){if(_195.options[k].defaultSelected==true){_196=_195.options[k].value;break;}}if(_196!=null&&_196==_191.options[_193].value){var _198=webui.suntheme.dropDown.getSelectElement(this.sortOrderMenuIds[i]);if(_198==null){continue;}var _199=-1;for(var k=0;k<_198.options.length;k++){if(_198.options[k].defaultSelected==true){_199=k;break;}}if(_199>-1){_192.options[_199].selected=true;}else{_192.options[0].selected=true;}break;}}webui.suntheme.dropDown.changed(_190);return this.initSortOrderMenuToolTip(_18f,_190);},initSortOrderMenuToolTip:function(_19a,_19b){if(_19a==null||_19b==null){return false;}var _19c=webui.suntheme.dropDown.getSelectElement(_19a);if(_19c==null){return false;}var _19d=webui.suntheme.dropDown.getSelectElement(_19b);if(_19d==null){return false;}var _19e="";if(this.sortOrderToolTips!=null&&this.sortOrderToolTips.length!=0&&this.sortOrderMenuIds!=null){for(var i=0;i<this.sortOrderMenuIds.length;i++){if(_19b==this.sortOrderMenuIds[i]){_19e=this.sortOrderToolTips[i].split("{0}")[0];break;}}}var _1a0=(_19c.selectedIndex>-1)?_19c.selectedIndex:0;if(_19d.options[_19d.selectedIndex].value=="true"){_19d.title=_19e+this.sortOrderToolTipsDescending[_1a0];}else{_19d.title=_19e+this.sortOrderToolTipsAscending[_1a0];}return true;},initTertiarySortOrderMenu:function(){return this.initSortOrderMenu(this.sortColumnMenuIds[this.TERTIARY],this.sortOrderMenuIds[this.TERTIARY]);},initTertiarySortOrderMenuToolTip:function(){var _1a1=webui.suntheme.dropDown.getSelectElement(this.sortOrderMenuIds[this.TERTIARY]);if(_1a1!=null){if(_1a1.options[_1a1.selectedIndex].disabled==true){_1a1.selectedIndex=0;}}return this.initSortOrderMenuToolTip(this.sortColumnMenuIds[this.TERTIARY],this.sortOrderMenuIds[this.TERTIARY]);},resetFilterMenu:function(_1a2){if(_1a2==null){return false;}var menu=webui.suntheme.dropDown.getSelectElement(_1a2);if(menu==null){return true;}var div=document.getElementById(this.panelIds[this.FILTER]);if(div==null){return false;}if(webui.suntheme.common.isVisibleElement(div)){webui.suntheme.common.stripStyleClass(menu,this.basicFilterStyleClass);webui.suntheme.common.addStyleClass(menu,this.customFilterStyleClass);}else{menu.selectedIndex=0;for(var i=0;i<menu.options.length;i++){if(menu.options[i].defaultSelected==true){menu.options[i].selected=true;break;}}webui.suntheme.common.stripStyleClass(menu,this.customFilterStyleClass);webui.suntheme.common.addStyleClass(menu,this.basicFilterStyleClass);}return true;},selectAllRows:function(_1a6){if(this.groupIds==null||this.groupIds.length==0){return false;}for(var i=0;i<this.groupIds.length;i++){this.selectGroupRows(this.groupIds[i],_1a6);}return true;},selectGroupRows:function(_1a8,_1a9){if(this.groupIds==null||this.groupIds.length==0||_1a8==null){return false;}var _1aa=null;var _1ab=null;for(var i=0;i<this.groupIds.length;i++){if(_1a8==this.groupIds[i]){_1aa=this.selectIds[i];_1ab=this.rowIds[i];break;}}if(_1aa==null||_1ab==null){return false;}for(var k=0;k<_1ab.length;k++){var _1ae=document.getElementById(this.groupIds[i]+this.SEPARATOR+_1ab[k]+this.SEPARATOR+_1aa);if(_1ae==null){continue;}_1ae.setProps({checked:new Boolean(_1a9).valueOf()});}return this.initGroupRows(_1a8);},toggleGroupPanel:function(_1af){if(this.groupIds==null||this.groupIds.length==0||_1af==null){return false;}var _1b0=null;for(var i=0;i<this.groupIds.length;i++){if(_1af==this.groupIds[i]){_1b0=this.rowIds[i];break;}}if(_1b0==null){return false;}var _1b2=_1af+this.SEPARATOR;var _1b3=!webui.suntheme.common.isVisible(_1b2+_1b0[0]);var _1b4=0;var _1b5=0;for(var i=0;i<this.groupIds.length;i++){var _1b6=this.groupIds[i]+this.SEPARATOR;var _1b7=_1b6+this.columnHeaderId+this.SEPARATOR+"0";var _1b8=_1b6+this.tableColumnFooterId+this.SEPARATOR+"0";if(document.getElementById(_1b7)!=null){_1b4++;}if(document.getElementById(_1b8)!=null){_1b5++;}}var _1b9=0;while(true){var _1ba=_1b2+this.columnFooterId+this.SEPARATOR+_1b9++;if(document.getElementById(_1ba)==null){break;}webui.suntheme.common.setVisible(_1ba,_1b3);}if(_1b4>1){_1b9=0;while(true){var _1b7=_1b2+this.columnHeaderId+this.SEPARATOR+_1b9++;if(document.getElementById(_1b7)==null){break;}webui.suntheme.common.setVisible(_1b7,_1b3);}}if(_1b5>1){_1b9=0;while(true){var _1b8=_1b2+this.tableColumnFooterId+this.SEPARATOR+_1b9++;if(document.getElementById(_1b8)==null){break;}webui.suntheme.common.setVisible(_1b8,_1b3);}}for(var k=0;k<_1b0.length;k++){var _1bc=_1b2+_1b0[k];webui.suntheme.common.setVisible(_1bc,_1b3);}webui.suntheme.common.setVisible(_1b2+this.groupFooterId,_1b3);var _1bd=_1b2+this.groupPanelToggleButtonId;var _1be=document.getElementById(_1bd);var _1bf=webui.suntheme.hyperlink.getImgElement(_1bd);if(_1be!=null&&_1bf!=null){_1bf.style.cssText=null;if(_1b3){_1bf.src=this.groupPanelToggleIconOpen;_1be.setProps({title:this.groupPanelToggleButtonToolTipOpen});}else{_1bf.src=this.groupPanelToggleIconClose;_1be.setProps({title:this.groupPanelToggleButtonToolTipClose});}}var _1c0=document.getElementById(_1b2+this.collapsedHiddenFieldId);if(_1c0!=null){_1c0.value=!_1b3;}return this.initGroupRows(_1af);},togglePanel:function(_1c1,_1c2,_1c3){if(_1c1==null){return false;}for(var i=0;i<this.panelIds.length;i++){var div=document.getElementById(this.panelIds[i]);if(div==null){continue;}if(this.panelIds[i]==_1c1){var _1c6=null;if(webui.suntheme.common.isVisibleElement(div)){webui.suntheme.common.setVisibleElement(div,false);_1c6=document.getElementById(_1c3);}else{webui.suntheme.common.setVisibleElement(div,true);_1c6=document.getElementById(_1c2);}if(_1c6!=null){_1c6.focus();}}else{webui.suntheme.common.setVisibleElement(div,false);}var _1c7=webui.suntheme.hyperlink.getImgElement(this.panelToggleIds[i]);if(_1c7==null){continue;}if(webui.suntheme.common.isVisibleElement(div)){_1c7.src=this.panelToggleIconsOpen[i];}else{_1c7.src=this.panelToggleIconsClose[i];}}return true;},toggleSortPanel:function(){if(this.panelIds==null||this.panelIds.length==0){return false;}this.initSortColumnMenus();this.initSortOrderMenus();this.togglePanel(this.panelIds[this.SORT],this.panelFocusIds[this.SORT],this.panelToggleIds[this.SORT]);return this.resetFilterMenu(this.panelToggleIds[this.FILTER]);},validateSortPanel:function(){if(this.sortColumnMenuIds==null||this.sortColumnMenuIds.length==0){return false;}var _1c8=webui.suntheme.dropDown.getSelectElement(this.sortColumnMenuIds[this.PRIMARY]);var _1c9=webui.suntheme.dropDown.getSelectElement(this.sortColumnMenuIds[this.SECONDARY]);var _1ca=webui.suntheme.dropDown.getSelectElement(this.sortColumnMenuIds[this.TERTIARY]);if(_1c8!=null&&_1c9!=null){if(_1c8.selectedIndex<1&&_1c9.selectedIndex>0){alert(this.missingSelectionMsg);return false;}if(_1c8.selectedIndex>0&&_1c8.selectedIndex==_1c9.selectedIndex){alert(this.duplicateSelectionMsg);return false;}}if(_1c8!=null&&_1ca!=null){if(_1c8.selectedIndex<1&&_1ca.selectedIndex>0){alert(this.missingSelectionMsg);return false;}if(_1c8.selectedIndex>0&&_1c8.selectedIndex==_1ca.selectedIndex){alert(this.duplicateSelectionMsg);return false;}}if(_1c9!=null&&_1ca!=null){if(_1c9.selectedIndex<1&&_1ca.selectedIndex>0){alert(this.missingSelectionMsg);return false;}if(_1c9.selectedIndex>0&&_1c9.selectedIndex==_1ca.selectedIndex){alert(this.duplicateSelectionMsg);return false;}}return true;}};dojo.provide("webui.suntheme.wizard");webui.suntheme.wizard={init:function(_1cb){if(_1cb==null||_1cb.id==null){return false;}var _1cc=document.getElementById(_1cb.id);if(_1cc==null){return false;}Object.extend(_1cc,_1cb);_1cc.nextClicked=webui.suntheme.wizard.nextClicked;_1cc.previousClicked=webui.suntheme.wizard.previousClicked;_1cc.cancelClicked=webui.suntheme.wizard.cancelClicked;_1cc.finishClicked=webui.suntheme.wizard.finishClicked;_1cc.closeClicked=webui.suntheme.wizard.closeClicked;_1cc.gotoStepClicked=webui.suntheme.wizard.gotoStepClicked;_1cc.closePopup=webui.suntheme.wizard.closePopup;_1cc.closeAndForward=webui.suntheme.wizard.closeAndForward;_1cc.wizOnLoad=webui.suntheme.wizard.wizOnLoad;_1cc.resize_hack=webui.suntheme.wizard.resize_hack;return true;},nextClicked:function(){return true;},previousClicked:function(){return true;},cancelClicked:function(){return true;},closeClicked:function(){return true;},finishClicked:function(){return true;},gotoStepClicked:function(){return true;},closePopup:function(){window.close();return true;},closeAndForward:function(_1cd,_1ce,_1cf){var f=window.opener.document.getElementById(_1cd);if(f==null){alert("Can't find form "+_1cd);window.close();}if(_1cf!=null&&_1cf==true){var _1d1=f.elements;var _1d2=null;for(var i=0;i<_1d1.length;++i){if(_1d1[i].name==this.facesViewState){_1d2=_1d1[i];break;}}if(_1d2!=null){f.removeChild(_1d2);}}f.action=_1ce;f.submit();window.close();return true;},wizOnLoad:function(){var _1d4=this.id+"_stepspane";var _1d5=this.id+"_helppane";var _1d6=this.id+"_WizBdy";return this.resize_hack(_1d5,_1d4,_1d6);},resize_hack:function(_1d7,_1d8,_1d9){if(webui.suntheme.browser.isIe5up()){var bdy=document.getElementById(_1d9);if(bdy!=null){bdy.style.height=document.body.clientHeight-145;if(_1d7!=null&&_1d7!=""){var help=document.getElementById(_1d7);if(help!=null){help.style.height=document.body.clientHeight-90;}}if(_1d8!=null&&_1d8!=""){var _1dc=document.getElementById(_1d8);if(_1dc!=null){_1dc.style.height=document.body.clientHeight-90;}}}}return true;}};dojo.provide("webui.suntheme.widget.textArea");dojo.declare("webui.suntheme.widget.textArea",webui.suntheme.widget.textField,{autoSave:0,cols:20,rows:3,widgetName:"textArea"});webui.suntheme.widget.textArea.prototype.createSubmitCallback=function(){var _id=this.id;return function(_1de){var _1df=dijit.byId(_id);if(_1df==null){return false;}if(_1df.lastSaved!=_1df.fieldNode.value){_1df.lastSaved=_1df.fieldNode.value;_1df.submit();}return true;};};webui.suntheme.widget.textArea.event=webui.suntheme.widget.textArea.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_textArea_event_refresh_begin",endTopic:"webui_suntheme_widget_textArea_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_textArea_event_state_begin",endTopic:"webui_suntheme_widget_textArea_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_textArea_event_submit_begin",endTopic:"webui_suntheme_widget_textArea_event_submit_end"}};webui.suntheme.widget.textArea.prototype.getInputClassName=function(){if(this.fieldNode.readOnly){return this.widget.getClassName("TEXT_AREA_READONLY","");}var _1e0=(this.valid==false)?" "+this.widget.getClassName("TEXT_AREA_INVALID",""):" "+this.widget.getClassName("TEXT_AREA_VALID","");return (this.disabled==true)?this.widget.getClassName("TEXT_AREA_DISABLED",""):this.widget.getClassName("TEXT_AREA","")+_1e0;};webui.suntheme.widget.textArea.prototype.getProps=function(){var _1e1=this.inherited("getProps",arguments);if(this.cols>0){_1e1.cols=this.cols;}if(this.rows>0){_1e1.rows=this.rows;}if(this.autoSave>0){_1e1.autoSave=this.autoSave;}return _1e1;};webui.suntheme.widget.textArea.prototype.postCreate=function(){if(this.autoSave>0){this.autoSaveTimerId=setInterval(this.createSubmitCallback(),this.autoSave);}return this.inherited("postCreate",arguments);};webui.suntheme.widget.textArea.prototype.setProps=function(_1e2,_1e3){return this.inherited("setProps",arguments);};webui.suntheme.widget.textArea.prototype._setProps=function(_1e4){if(_1e4==null){return false;}if(_1e4.cols>0){this.fieldNode.cols=_1e4.cols;}if(_1e4.rows>0){this.fieldNode.rows=_1e4.rows;}if(_1e4.autoSave<=0&&this.autoSaveTimerId&&this.autoSaveTimerId!=null){clearTimeout(this.autoSaveTimerId);this.autoSaveTimerId=null;}if(_1e4.label){_1e4.label.className=(_1e4.label.className)?this.widget.getClassName("TEXT_AREA_TOPLABELALIGN","")+" "+_1e4.label.className:this.widget.getClassName("TEXT_AREA_TOPLABELALIGN","");}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.eventBase");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.declare("webui.suntheme.widget.eventBase",[dijit._Widget,dijit._Templated]);webui.suntheme.widget.eventBase.event=webui.suntheme.widget.eventBase.prototype.event={refresh:{beginTopic:null,endTopic:null},state:{beginTopic:null,endTopic:null},submit:{beginTopic:null,endTopic:null}};webui.suntheme.widget.eventBase.prototype.initFunctions=function(){if(this.event==null){return false;}var _id=this.id;if(this.event.refresh!=null){this.domNode.refresh=function(_1e6){return dijit.byId(_id).refresh(_1e6);};}if(this.event.submit!=null){this.domNode.submit=function(_1e7){return dijit.byId(_id).submit(_1e7);};}if(this.event.state!=null){this.stateChanged=null;}return true;};webui.suntheme.widget.eventBase.prototype.refresh=function(_1e8){if(this.event.refresh==null){console.debug("Error: Refresh event topics not implemented for "+this.widgetName);return false;}dojo.publish(this.event.refresh.beginTopic,[{id:this.id,execute:_1e8,endTopic:this.event.refresh.endTopic}]);return true;};webui.suntheme.widget.eventBase.prototype.stateChanged=function(_1e9){if(this.event.state==null){console.debug("Error: State event topics not implemented for "+this.widgetName);return false;}dojo.publish(this.event.state.beginTopic,[{id:this.id,endTopic:this.event.state.endTopic,props:_1e9}]);return true;};webui.suntheme.widget.eventBase.prototype.submit=function(_1ea){if(this.event.submit==null){console.debug("Error: Submit event topics not implemented for "+this.widgetName);return false;}dojo.publish(this.event.submit.beginTopic,[{id:this.id,execute:_1ea,endTopic:this.event.submit.endTopic}]);return true;};dojo.provide("webui.suntheme.widget.widgetBase");dojo.declare("webui.suntheme.widget.widgetBase",webui.suntheme.widget.eventBase,{theme:webui.suntheme.theme.common,widget:webui.suntheme.widget.common});webui.suntheme.widget.widgetBase.prototype.buildRendering=function(){if(this.templatePath==null&&this.templateString==null){this.templatePath=this.widget.getTemplatePath(this.widgetName);this.templateString=this.widget.getTemplateString(this.widgetName);}if(this.templatePath!=null){this.templateString=null;}return this.inherited("buildRendering",arguments);};webui.suntheme.widget.widgetBase.prototype.getClassName=function(){return this.className;};webui.suntheme.widget.widgetBase.prototype.getCommonProps=function(){var _1eb={};if(this.accessKey){_1eb.accessKey=this.accessKey;}if(this.dir){_1eb.dir=this.dir;}if(this.lang){_1eb.lang=this.lang;}if(this.tabIndex){_1eb.tabIndex=this.tabIndex;}if(this.title){_1eb.title=this.title;}return _1eb;};webui.suntheme.widget.widgetBase.prototype.getCoreProps=function(){var _1ec={};if(this.className){_1ec.className=this.className;}if(this.id){_1ec.id=this.id;}if(this.style){_1ec.style=this.style;}if(this.visible!=null){_1ec.visible=this.visible;}return _1ec;};webui.suntheme.widget.widgetBase.prototype.getEventProps=function(){var _1ed={};if(this.onBlur){_1ed.onBlur=this.onBlur;}if(this.onChange){_1ed.onChange=this.onChange;}if(this.onClick){_1ed.onClick=this.onClick;}if(this.onDblClick){_1ed.onDblClick=this.onDblClick;}if(this.onFocus){_1ed.onFocus=this.onFocus;}if(this.onKeyDown){_1ed.onKeyDown=this.onKeyDown;}if(this.onKeyPress){_1ed.onKeyPress=this.onKeyPress;}if(this.onKeyUp){_1ed.onKeyUp=this.onKeyUp;}if(this.onMouseDown){_1ed.onMouseDown=this.onMouseDown;}if(this.onMouseOut){_1ed.onMouseOut=this.onMouseOut;}if(this.onMouseOver){_1ed.onMouseOver=this.onMouseOver;}if(this.onMouseUp){_1ed.onMouseUp=this.onMouseUp;}if(this.onMouseMove){_1ed.onMouseMove=this.onMouseMove;}if(this.onSelect){_1ed.onSelect=this.onSelect;}return _1ed;};webui.suntheme.widget.widgetBase.prototype.getProps=function(){var _1ee={};Object.extend(_1ee,this.getCommonProps());Object.extend(_1ee,this.getCoreProps());Object.extend(_1ee,this.getEventProps());return _1ee;};webui.suntheme.widget.widgetBase.prototype.isInitialized=function(){if(this.initialized==true){return true;}return false;};webui.suntheme.widget.widgetBase.prototype.postCreate=function(){this.inherited("postCreate",arguments);this.domNode.id=this.id;var _id=this.id;this.domNode.getProps=function(){return dijit.byId(_id).getProps();};this.domNode.setProps=function(_1f0,_1f1){return dijit.byId(_id).setProps(_1f0,_1f1);};this.initFunctions();this._setProps(this.getProps());return this.initialized=true;};webui.suntheme.widget.widgetBase.prototype.setCommonProps=function(_1f2,_1f3){if(_1f2==null||_1f3==null){return false;}if(_1f3.accessKey){_1f2.accessKey=_1f3.accessKey;}if(_1f3.dir){_1f2.dir=_1f3.dir;}if(_1f3.lang){_1f2.lang=_1f3.lang;}if(_1f3.tabIndex>-1&&_1f3.tabIndex<32767){_1f2.tabIndex=_1f3.tabIndex;}if(_1f3.title){_1f2.title=_1f3.title;}return true;};webui.suntheme.widget.widgetBase.prototype.setCoreProps=function(_1f4,_1f5){if(_1f4==null||_1f5==null){return false;}if(_1f5.className){_1f4.className=_1f5.className;}if(_1f5.id){_1f4.id=_1f5.id;}if(_1f5.style){_1f4.style.cssText=_1f5.style;}if(_1f5.visible!=null){webui.suntheme.common.setVisibleElement(_1f4,new Boolean(_1f5.visible).valueOf());}return true;};webui.suntheme.widget.widgetBase.prototype.setEventProps=function(_1f6,_1f7){if(_1f6==null||_1f7==null){return false;}if(_1f7.onBlur){_1f6.onblur=(typeof _1f7.onBlur=="string")?new Function("event",_1f7.onBlur):_1f7.onBlur;}if(_1f7.onClick){_1f6.onclick=(typeof _1f7.onClick=="string")?new Function("event",_1f7.onClick):_1f7.onClick;}if(_1f7.onChange){_1f6.onchange=(typeof _1f7.onChange=="string")?new Function("event",_1f7.onChange):_1f7.onChange;}if(_1f7.onDblClick){_1f6.ondblclick=(typeof _1f7.onDblClick=="string")?new Function("event",_1f7.onDblClick):_1f7.onDblClick;}if(_1f7.onFocus){_1f6.onfocus=(typeof _1f7.onFocus=="string")?new Function("event",_1f7.onFocus):_1f7.onFocus;}if(_1f7.onKeyDown){_1f6.onkeydown=(typeof _1f7.onKeyDown=="string")?new Function("event",_1f7.onKeyDown):_1f7.onKeyDown;}if(_1f7.onKeyPress){_1f6.onkeypress=(typeof _1f7.onKeyPress=="string")?new Function("event",_1f7.onKeyPress):_1f7.onKeyPress;}if(_1f7.onKeyUp){_1f6.onkeyup=(typeof _1f7.onKeyUp=="string")?new Function("event",_1f7.onKeyUp):_1f7.onKeyUp;}if(_1f7.onMouseDown){_1f6.onmousedown=(typeof _1f7.onMouseDown=="string")?new Function("event",_1f7.onMouseDown):_1f7.onMouseDown;}if(_1f7.onMouseOut){_1f6.onmouseout=(typeof _1f7.onMouseOut=="string")?new Function("event",_1f7.onMouseOut):_1f7.onMouseOut;}if(_1f7.onMouseOver){_1f6.onmouseover=(typeof _1f7.onMouseOver=="string")?new Function("event",_1f7.onMouseOver):_1f7.onMouseOver;}if(_1f7.onMouseUp){_1f6.onmouseup=(typeof _1f7.onMouseUp=="string")?new Function("event",_1f7.onMouseUp):_1f7.onMouseUp;}if(_1f7.onMouseMove){_1f6.onmousemove=(typeof _1f7.onMouseMove=="string")?new Function("event",_1f7.onMouseMove):_1f7.onMouseMove;}if(_1f7.onSelect){_1f6.onselect=(typeof _1f7.onSelect=="string")?new Function("event",_1f7.onSelect):_1f7.onSelect;}return true;};webui.suntheme.widget.widgetBase.prototype.setProps=function(_1f8,_1f9){if(_1f8==null){return false;}this.widget.extend(this,_1f8);this._setProps(_1f8);if(new Boolean(_1f9).valueOf()==true&&typeof this.stateChanged=="function"){this.stateChanged(_1f8);}return true;};webui.suntheme.widget.widgetBase.prototype._setProps=function(_1fa){if(_1fa==null){return false;}_1fa.className=this.getClassName();return this.setCoreProps(this.domNode,_1fa);};webui.suntheme.widget.widgetBase.prototype.startup=function(){if(this._started){return false;}this.inherited("startup",arguments);return this._started=true;};dojo.provide("webui.suntheme.widget.accordionTab");dojo.declare("webui.suntheme.widget.accordionTab",webui.suntheme.widget.widgetBase,{isContainer:true,selected:false,widgetName:"accordionTab"});webui.suntheme.widget.accordionTab.event=webui.suntheme.widget.accordionTab.prototype.event={load:{beginTopic:"webui_suntheme_widget_accordionTab_event_load_begin",endTopic:"webui_suntheme_widget_accordionTab_event_load_end"},refresh:{beginTopic:"webui_suntheme_widget_accordionTab_event_refresh_begin",endTopic:"webui_suntheme_widget_accordionTab_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_accordionTab_event_state_begin",endTopic:"webui_suntheme_widget_accordionTab_event_state_end"},title:{selectedTopic:"webui_suntheme_widget_accordionTab_event_tab_selected"}};webui.suntheme.widget.accordionTab.prototype.loadContent=function(_1fb){dojo.publish(webui.suntheme.widget.accordionTab.event.load.beginTopic,[{id:this.id}]);return true;};webui.suntheme.widget.accordionTab.prototype.getProps=function(){var _1fc=this.inherited("getProps",arguments);if(this.selected){_1fc.selected=this.selected;}if(this.title){_1fc.title=this.title;}if(this.tabContent){_1fc.tabContent=this.tabContent;}if(this.visible!=null){_1fc.visible=this.visible;}if(this.actions!=null){_1fc.actions=this.actions;}if(this.className!=null){_1fc.className=this.className;}if(this.style!=null){_1fc.style=this.style;}if(this.contentHeight!=null){_1fc.contentHeight=this.contentHeight;}if(this.id){_1fc.id=this.id;}if(this.type){_1fc.type=this.type;}return _1fc;};webui.suntheme.widget.accordionTab.prototype.getTitleHeight=function(){return dojo._getMarginBox(this.titleContainer).height;};webui.suntheme.widget.accordionTab.prototype.onMenuClickCallback=function(_1fd){dojo.stopEvent(_1fd);return true;};webui.suntheme.widget.accordionTab.prototype.onTitleClickCallback=function(_1fe){dojo.publish(webui.suntheme.widget.accordionTab.event.title.selectedTopic,[{id:this.id}]);return true;};webui.suntheme.widget.accordionTab.prototype.onTitleMouseOutCallback=function(_1ff){if(this.selected){this.titleContainer.className=this.theme.getClassName("ACCORDION_TABEXPANDED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_DOWNTURNER");return false;}this.titleContainer.className=this.theme.getClassName("ACCORDION_TABCOLLAPSED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_RIGHTTURNER");return true;};webui.suntheme.widget.accordionTab.prototype.onTitleMouseOverCallback=function(_200){if(this.selected){this.turnerContainer.className=this.theme.getClassName("ACCORDION_DOWNTURNER");}else{this.turnerContainer.className=this.theme.getClassName("ACCORDION_RIGHTTURNER");}return true;};webui.suntheme.widget.accordionTab.prototype.postCreate=function(){if(this.id){this.domNode.id=this.id;this.titleNode.id=this.id+"_tabTitle";this.turnerContainer.id=this.id+"_tabTitleTurner";this.menuContainer.id=this.id+"_tabMenu";this.hiddenFieldNode.id=this.id+":selectedState";this.hiddenFieldNode.name=this.hiddenFieldNode.id;}this.titleContainer.className=this.theme.getClassName("ACCORDION_TABCOLLAPSED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_RIGHTTURNER");this.menuContainer.className=this.theme.getClassName("HIDDEN");this.titleNode.className=this.theme.getClassName("ACCORDION_TABTITLE");this.contentNode.className=this.theme.getClassName("ACCORDION_TABCONTENT");dojo.connect(this.titleContainer,"onclick",this,"onTitleClickCallback");dojo.connect(this.titleContainer,"onmouseover",this,"onTitleMouseOverCallback");dojo.connect(this.turnerContainer,"onmouseover",this,"onTitleMouseOverCallback");dojo.connect(this.turnerContainer,"onclick",this,"onTitleClickCallback");dojo.connect(this.menuContainer,"onmouseover",this,"onTitleMouseOverCallback");dojo.connect(this.menuContainer,"onclick",this,"onMenuClickCallback");dojo.connect(this.titleContainer,"onmouseout",this,"onTitleMouseOutCallback");dojo.connect(this.turnerContainer,"onmouseout",this,"onTitleMouseOutCallback");dojo.connect(this.menuContainer,"onmouseout",this,"onTitleMouseOutCallback");return this.inherited("postCreate",arguments);};webui.suntheme.widget.accordionTab.prototype.setProps=function(_201,_202){if(_201==null){return false;}if(_201.tabContent){this.tabContent=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.accordionTab.prototype._setProps=function(_203){if(_203==null){return false;}if(_203.contentHeight){this.contentNode.style.height=_203.contentHeight;}if(_203.title){this.setTitle(_203.title);}if(_203.tabContent){this.setTabContent(_203.tabContent);if(this.selected){this.hiddenFieldNode.value="true";this.titleContainer.className=this.theme.getClassName("ACCORDION_TABEXPANDED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_DOWNTURNER");this.contentNode.style.display="block";}else{this.hiddenFieldNode.value="false";this.titleContainer.className=this.theme.getClassName("ACCORDION_TABCOLLAPSED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_RIGHTTURNER");this.contentNode.style.display="none";}}this.setCommonProps(this.domNode,_203);this.setEventProps(this.domNode,_203);return this.inherited("_setProps",arguments);};webui.suntheme.widget.accordionTab.prototype.setSelected=function(_204){if(this.selected){this.selected=false;}else{this.selected=_204;}if(this.selected){this.hiddenFieldNode.value="true";this.titleContainer.className=this.theme.getClassName("ACCORDION_TABEXPANDED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_DOWNTURNER");this.contentNode.style.display="block";if(!this.tabContent){if(this.parent.loadOnSelect){this.loadContent();}}}else{this.hiddenFieldNode.value="false";this.titleContainer.className=this.theme.getClassName("ACCORDION_TABCOLLAPSED");this.turnerContainer.className=this.theme.getClassName("ACCORDION_RIGHTTURNER");this.contentNode.style.display="none";}return true;};webui.suntheme.widget.accordionTab.prototype.setTabContent=function(_205){if(_205){for(var i=0;i<_205.length;i++){this.widget.addFragment(this.contentNode,_205[i],"last");}}return true;};webui.suntheme.widget.accordionTab.prototype.setTitle=function(_207){if(_207){this.widget.addFragment(this.titleHref,_207);}return true;};dojo.provide("webui.suntheme.widget.accordion");dojo.declare("webui.suntheme.widget.accordion",webui.suntheme.widget.widgetBase,{duration:250,isContainer:true,loadOnSelect:false,multipleSelect:false,widgetName:"accordion"});webui.suntheme.widget.accordion.prototype.addControls=function(_208){if(_208.toggleControls&&_208.multipleSelect){if(_208.expandAllImage){this.widget.updateFragment(this.expandAllImgContainer,_208.expandAllImage);}if(_208.collapseAllImage){this.widget.updateFragment(this.collapseAllImgContainer,_208.collapseAllImage);}this.dividerNodeContainer.className=this.theme.getClassName("ACCORDION_HDR_DIVIDER");}if(_208.isRefreshIcon&&_208.refreshImage){this.widget.updateFragment(this.refreshImgContainer,_208.refreshImage);}return true;};webui.suntheme.widget.accordion.prototype.collapseAllTabs=function(_209){for(var i=0;i<this.tabs.length;i++){var _20b=dijit.byId(this.tabs[i].id);if(_20b&&_20b.selected){_20b.setSelected(false);}}return true;};webui.suntheme.widget.accordion.event=webui.suntheme.widget.accordion.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_accordion_event_refresh_begin",endTopic:"webui_suntheme_widget_accordion_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_accordion_event_state_begin",endTopic:"webui_suntheme_widget_accordion_event_state_end"}};webui.suntheme.widget.accordion.prototype.expandAllTabs=function(_20c){for(var i=0;i<this.tabs.length;i++){var _20e=dijit.byId(this.tabs[i].id);if(_20e&&!_20e.selected){_20e.setSelected(true);}}return true;};webui.suntheme.widget.accordion.prototype.getProps=function(){var _20f=this.inherited("getProps",arguments);if(this.collapseAllImage!=null){_20f.collapseAllImage=this.collapseAllImage;}if(this.expandAllImage!=null){_20f.expandAllImage=this.expandAllImage;}if(this.isRefreshIcon!=null){_20f.isRefreshIcon=this.isRefreshIcon;}if(this.loadOnSelect){_20f.loadOnSelect=this.loadOnSelect;}if(this.multipleSelect){_20f.multipleSelect=this.multipleSelect;}if(this.refreshImage!=null){_20f.refreshImage=this.refreshImage;}if(this.style!=null){_20f.style=this.style;}if(this.tabs!=null){_20f.tabs=this.tabs;}if(this.toggleControls){_20f.toggleControls=this.toggleControls;}if(this.type){_20f.type=this.type;}return _20f;};webui.suntheme.widget.accordion.prototype.getClassName=function(){var _210=this.theme.getClassName("ACCORDION_DIV","");return (this.className)?_210+" "+this.className:_210;};webui.suntheme.widget.accordion.prototype.postCreate=function(){with(this.domNode.style){if(position!="absolute"){position="relative";}overflow="hidden";}if(this.id){this.domNode.id=this.id;this.headerContainer.id=this.id+"_accHeader";this.expandAllContainer.id=this.id+"_expandAllNode";this.expandAllImgContainer.id=this.expandAllContainer.id+"_expandAllImage";this.collapseAllContainer.id=this.id+"_collapseAllNode";this.collapseAllImgContainer.id=this.collapseAllImgContainer.id+"_collapseAllImage";this.dividerNodeContainer.id=this.id+"_dividerNode";this.refreshNodeContainer.id=this.id+"_refreshNode";}this.headerContainer.className=this.theme.getClassName("ACCORDION_HDR");this.collapseAllContainer.className=this.theme.getClassName("ACCORDION_HDR_CLOSEALL");this.expandAllContainer.className=this.theme.getClassName("ACCORDION_HDR_OPENALL");this.dividerNodeContainer.className=this.theme.getClassName("HIDDEN");this.refreshNodeContainer.className=this.theme.getClassName("ACCORDION_HDR_REFRESH");var _id=this.id;dojo.connect(this.collapseAllContainer,"onclick",this,"collapseAllTabs");dojo.connect(this.expandAllContainer,"onclick",this,"expandAllTabs");dojo.connect(this.refreshNodeContainer,"onclick",function(_212){var _213=dijit.byId(_id);_213.refresh(_id);});dojo.subscribe(webui.suntheme.widget.accordionTab.event.title.selectedTopic,this,"tabSelected");if(this.toggleControls&&this.multipleSelect){if(this.expandAllImage==null){var _214=this.theme.getMessage("Accordion.expandAll");this.expandAllImage=this.widget.getImageProps("ACCORDION_EXPAND_ALL",{id:this.id+"_expandAll",title:_214,alt:_214});}if(this.collapseAllImage==null){var _214=this.theme.getMessage("Accordion.collapseAll");this.collapseAllImage=this.widget.getImageProps("ACCORDION_COLLAPSE_ALL",{id:this.id+"_collapseAll",title:_214,alt:_214});}}if(this.isRefreshIcon){if(this.refreshImage==null){var _214=this.theme.getMessage("Accordion.refresh");this.refreshImage=this.widget.getImageProps("ACCORDION_REFRESH",{id:this.id+"_refresh",title:_214,alt:_214});}}return this.inherited("postCreate",arguments);};webui.suntheme.widget.accordion.prototype.setProps=function(_215,_216){if(_215==null){return false;}if(_215.tabs){this.tabs=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.accordion.prototype._setProps=function(_217){if(_217==null){return false;}this.addControls(_217);if(_217.tabs){this.widget.removeChildNodes(this.tabsContainer);for(var i=0;i<_217.tabs.length;i++){this.widget.addFragment(this.tabsContainer,_217.tabs[i],"last");}}this.setCommonProps(this.domNode,_217);this.setEventProps(this.domNode,_217);return this.inherited("_setProps",arguments);};webui.suntheme.widget.accordion.prototype.tabSelected=function(_219){var _21a=null;for(var i=0;i<this.tabs.length;i++){if(_219.id==this.tabs[i].id){_21a=dijit.byId(this.tabs[i].id);break;}}if(_21a==null){return false;}if(this.multipleSelect){_21a.setSelected(true);}else{for(var i=0;i<this.tabs.length;i++){_21a=dijit.byId(this.tabs[i].id);if(_21a){_21a.setSelected(_219.id==this.tabs[i].id);}}}return true;};dojo.provide("webui.suntheme.widget.alarm");dojo.declare("webui.suntheme.widget.alarm",webui.suntheme.widget.widgetBase,{widgetName:"alarm"});webui.suntheme.widget.alarm.event=webui.suntheme.widget.alarm.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_alarm_event_refresh_begin",endTopic:"webui_suntheme_widget_alarm_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_alarm_event_state_begin",endTopic:"webui_suntheme_widget_alarm_event_state_end"}};webui.suntheme.widget.alarm.prototype.getProps=function(){var _21c=this.inherited("getProps",arguments);if(this.text!=null){_21c.text=this.text;}if(this.indicators!=null){_21c.indicators=this.indicators;}if(this.textPosition!=null){_21c.textPosition=this.textPosition;}if(this.type!=null){_21c.type=this.type;}return _21c;};webui.suntheme.widget.alarm.prototype.postCreate=function(){if(this.id){this.rightText.id=this.id+"_rightText";this.leftText.id=this.id+"_leftText";this.imageContainer.id=this.id+"_imageContainer";}return this.inherited("postCreate",arguments);};webui.suntheme.widget.alarm.prototype.setProps=function(_21d,_21e){return this.inherited("setProps",arguments);};webui.suntheme.widget.alarm.prototype._setProps=function(_21f){if(_21f==null){return false;}if(_21f.dir){this.domNode.dir=_21f.dir;}if(_21f.lang){this.domNode.lang=_21f.lang;}if(_21f.textPosition=="right"||_21f.textPosition==null&&_21f.text!=null){webui.suntheme.common.setVisibleElement(this.leftText,false);this.widget.addFragment(this.rightText,_21f.text);}if(_21f.textPosition=="left"&&_21f.text!=null){webui.suntheme.common.setVisibleElement(this.rightText,false);this.widget.addFragment(this.leftText,_21f.text);}if(_21f.indicators||_21f.type!=null&&this.indicators){for(var i=0;i<this.indicators.length;i++){var _221=this.indicators[i];if(_221==null){_221={};}_221.image.visible=(_221.type==this.type)?true:false;this.widget.updateFragment(this.imageContainer,_221.image,"last");}}this.setEventProps(this.domNode,_21f);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.alert");dojo.declare("webui.suntheme.widget.alert",webui.suntheme.widget.widgetBase,{widgetName:"alert"});webui.suntheme.widget.alert.event=webui.suntheme.widget.alert.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_alert_event_refresh_begin",endTopic:"webui_suntheme_widget_alert_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_alert_event_state_begin",endTopic:"webui_suntheme_widget_alert_event_state_end"}};webui.suntheme.widget.alert.prototype.getProps=function(){var _222=this.inherited("getProps",arguments);if(this.detail!=null){_222.detail=this.detail;}if(this.indicators!=null){_222.indicators=this.indicators;}if(this.summary!=null){_222.summary=this.summary;}if(this.type!=null){_222.type=this.type;}if(this.moreInfo!=null){_222.moreInfo=this.moreInfo;}if(this.spacerImage!=null){_222.spacerImage=this.spacerImage;}return _222;};webui.suntheme.widget.alert.prototype.notify=function(_223){if(_223==null){return false;}return this.setProps({summary:_223.summary,detail:_223.detail,type:"error",visible:!_223.valid});};webui.suntheme.widget.alert.prototype.postCreate=function(){if(this.id){this.bottomLeftContainer.id=this.id+"_bottomLeftContainer";this.bottomMiddleContainer.id=this.id+"_bottomMiddleContainer";this.bottomRightContainer.id=this.id+"_bottomRightContainer";this.detailContainer.id=this.id+"_detailContainer";this.imageContainer.id=this.id+"_imageContainer";this.leftMiddleContainer.id=this.id+"_leftMiddleContainer";this.rightMiddleContainer.id=this.id+"_rightMiddleContainer";this.summaryContainer.id=this.id+"_summaryContainer";this.topLeftContainer.id=this.id+"_topLeftContainer";this.topMiddleContainer.id=this.id+"_topMiddleContainer";this.topRightContainer.id=this.id+"_topRightContainer";this.detailContainerLink.id=this.id+"_detailContainerLink";}return this.inherited("postCreate",arguments);};webui.suntheme.widget.alert.prototype.setProps=function(_224,_225){return this.inherited("setProps",arguments);};webui.suntheme.widget.alert.prototype._setProps=function(_226){if(_226==null){return false;}if(_226.dir){this.domNode.dir=_226.dir;}if(_226.lang){this.domNode.lang=_226.lang;}if(_226.summary){this.widget.addFragment(this.summaryContainer,_226.summary);}if(_226.detail){this.widget.addFragment(this.detailContainer,_226.detail);}if(_226.moreInfo){this.widget.addFragment(this.detailContainerLink,_226.moreInfo);}if(_226.spacerImage){var _227=[this.bottomLeftContainer,this.bottomMiddleContainer,this.bottomRightContainer,this.leftMiddleContainer,this.rightMiddleContainer,this.topLeftContainer,this.topMiddleContainer,this.topRightContainer];for(var i=0;i<_227.length;i++){if(typeof _226!="string"){_226.spacerImage.id=this.id+"_spacerImage"+i;}if(!dijit.byId(_226.spacerImage.id)){this.widget.addFragment(_227[i],_226.spacerImage);}}}if(_226.indicators||_226.type!=null&&this.indicators){for(var i=0;i<this.indicators.length;i++){var _229=this.indicators[i];if(_229==null){_229={};}_229.image.visible=(_229.type==this.type)?true:false;_229.image.tabIndex=this.tabIndex;this.widget.updateFragment(this.imageContainer,_229.image,"last");}}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.anchorBase");dojo.declare("webui.suntheme.widget.anchorBase",webui.suntheme.widget.widgetBase);webui.suntheme.widget.anchorBase.prototype.addContents=function(_22a){if(_22a.contents==null){return false;}this.widget.removeChildNodes(this.domNode);for(i=0;i<_22a.contents.length;i++){this.widget.addFragment(this.domNode,_22a.contents[i],"last");}return true;};webui.suntheme.widget.anchorBase.prototype.getProps=function(){var _22b=this.inherited("getProps",arguments);if(this.hrefLang){_22b.hrefLang=this.hrefLang;}if(this.target){_22b.target=this.target;}if(this.type){_22b.type=this.type;}if(this.rev){_22b.rev=this.rev;}if(this.rel){_22b.rel=this.rel;}if(this.shape){_22b.shape=this.shape;}if(this.coords){_22b.coords=this.coords;}if(this.charset){_22b.charset=this.charset;}if(this.accessKey){_22b.accesskey=this.accessKey;}if(this.href){_22b.href=this.href;}if(this.name){_22b.name=this.name;}if(this.contents){_22b.contents=this.contents;}if(this.disabled!=null){_22b.disabled=this.disabled;}return _22b;};webui.suntheme.widget.anchorBase.prototype.onClickCallback=function(_22c){if(this.disabled==true){_22c.preventDefault();return false;}var _22d=(this.domNode._onclick)?this.domNode._onclick(_22c):true;if(_22d==false){_22c.preventDefault();return false;}return true;};webui.suntheme.widget.anchorBase.prototype.setProps=function(_22e,_22f){if(_22e==null){return false;}if(_22e.contents){this.contents=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.anchorBase.prototype._setProps=function(_230){if(_230==null){return false;}this.addContents(_230);if(_230.accessKey){this.domNode.accesskey=_230.accessKey;}if(_230.charset){this.domNode.charset=_230.charset;}if(_230.coords){this.domNode.coords=_230.coords;}if(_230.href){this.domNode.href=_230.href;}if(_230.hrefLang){this.domNode.hrefLang=_230.hrefLang;}if(_230.name){this.domNode.name=_230.name;}if(_230.rev){this.domNode.rev=_230.rev;}if(_230.rel){this.domNode.rel=_230.rel;}if(_230.shape){this.domNode.shape=_230.shape;}if(_230.target){this.domNode.target=_230.target;}if(_230.type){this.domNode.type=_230.type;}if(_230.name){_230.id=_230.name;}if(_230.onClick){this.domNode._onclick=(typeof _230.onClick=="string")?new Function("event",_230.onClick):_230.onClick;_230.onClick=null;}this.setCommonProps(this.domNode,_230);this.setEventProps(this.domNode,_230);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.anchor");dojo.declare("webui.suntheme.widget.anchor",webui.suntheme.widget.anchorBase,{widgetName:"anchor"});webui.suntheme.widget.anchor.event=webui.suntheme.widget.anchor.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_anchor_event_refresh_begin",endTopic:"webui_suntheme_widget_anchor_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_anchor_event_state_begin",endTopic:"webui_suntheme_widget_anchor_event_state_end"}};webui.suntheme.widget.anchor.prototype.getClassName=function(){var _231=(this.href&&this.disabled==false)?this.widget.getClassName("ANCHOR",""):this.widget.getClassName("ANCHOR_DISABLED","");return (this.className)?_231+" "+this.className:_231;};webui.suntheme.widget.anchor.prototype.postCreate=function(){dojo.connect(this.domNode,"onclick",this,"onClickCallback");return this.inherited("postCreate",arguments);};dojo.provide("webui.suntheme.widget.bubble");dojo.declare("webui.suntheme.widget.bubble",webui.suntheme.widget.widgetBase,{defaultTime:2000,openDelayTime:500,bubbleLeftConst:5,topConst:2,widgetName:"bubble"});webui.suntheme.widget.bubble.prototype.close=function(){if(this.openTimerId!=null){clearTimeout(this.openTimerId);}if(this.getProps().visible==false){return false;}var _id=this.id;this.timerId=setTimeout(function(){dijit.byId(_id).setProps({visible:false});},this.defaultTime);return true;};webui.suntheme.widget.bubble.event=webui.suntheme.widget.bubble.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_bubble_event_refresh_begin",endTopic:"webui_suntheme_widget_bubble_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_bubble_event_state_begin",endTopic:"webui_suntheme_widget_bubble_event_state_end"}};webui.suntheme.widget.bubble.prototype.getProps=function(){var _233=this.inherited("getProps",arguments);if(this.title!=null){_233.title=this.title;}if(this.contents!=null){_233.contents=this.contents;}if(this.height!=null){_233.height=this.height;}if(this.width!=null){_233.width=this.width;}if(this.autoClose!=null){_233.autoClose=this.autoClose;}if(this.duration!=null){_233.duration=this.duration;}if(this.closeButton!=null){_233.closeButton=this.closeButton;}if(this.openDelay!=null){_233.openDelay=this.openDelay;}return _233;};webui.suntheme.widget.bubble.prototype.onClickCallback=function(_234){_234=this.widget.getEvent(_234);var _235=(_234.target)?_234.target:((_234.srcElement)?_234.srcElement:null);if(webui.suntheme.browser.isIe5up()){if(window.event!=null){window.event.cancelBubble=true;}}else{_234.stopPropagation();}if(this.closeBtn==_235){clearTimeout(this.timerId);this.setProps({visible:false});}return true;};webui.suntheme.widget.bubble.prototype.onCloseCallback=function(_236){if(_236==null){return false;}if((_236.type=="keydown"&&_236.keyCode==27)||_236.type=="click"){clearTimeout(this.timerId);this.setProps({visible:false});}return true;};webui.suntheme.widget.bubble.prototype.onMouseOverCallback=function(_237){clearTimeout(this.timerId);return true;};webui.suntheme.widget.bubble.prototype.onMouseOutCallback=function(_238){if(this.autoClose==true){clearTimeout(this.timerId);this.close();}return true;};webui.suntheme.widget.bubble.prototype.open=function(_239){var evt=this.widget.getEvent(_239);this.target=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);var _23b=this.widget.getPosition(this.target);this.target.targetLeft=_23b[0];this.target.targetTop=_23b[1];if(this.timerId!=null){clearTimeout(this.timerId);this.timerId=null;}if(this.openDelay!=null&&this.openDelay>=0){this.openDelayTime=this.openDelay;}var id=this.id;this.openTimerId=setTimeout(function(){if(webui.suntheme.widget.bubble.activeBubbleId&&webui.suntheme.widget.bubble.activeBubbleId!=id){clearTimeout(dijit.byId(webui.suntheme.widget.bubble.activeBubbleId).timerId);dijit.byId(webui.suntheme.widget.bubble.activeBubbleId).setProps({visible:false});webui.suntheme.widget.bubble.activeBubbleId=null;}webui.suntheme.widget.bubble.activeBubbleId=id;dijit.byId(id).setProps({visible:true});dijit.byId(id).setPosition();},this.openDelayTime);if(this.duration!=null&&this.duration>=0){this.defaultTime=duration;}return true;};webui.suntheme.widget.bubble.prototype.postCreate=function(){if(this.id){this.bottomLeftArrow.id=this.id+"_bottomLeftArrow";this.bottomRightArrow.id=this.id+"_bottomRightArrow";this.topLeftArrow.id=this.id+"_topLeftArrow";this.topRightArrow.id=this.id+"_topRightArrow";}this.domNode.close=function(){return dijit.byId(this.id).close();};this.domNode.open=function(_23d){return dijit.byId(this.id).open(_23d);};dojo.connect(document,"onclick",this,"onCloseCallback");dojo.connect(document,"onkeydown",this,"onCloseCallback");dojo.connect(this.domNode,"onclick",this,"onClickCallback");dojo.connect(this.domNode,"onmouseover",this,"onMouseOverCallback");dojo.connect(this.domNode,"onmouseout",this,"onMouseOutCallback");if(this.bubbleTitle!=null){this.bubbleTitle.style.width=this.theme.getProperty("styles","BUBBLE_TITLEWIDTH")+"%";}return this.inherited("postCreate",arguments);};webui.suntheme.widget.bubble.prototype.setPosition=function(){var _23e=this.theme.getProperty("styles","BUBBLE_TITLEWIDTH");var _23f=this.theme.getProperty("styles","BUBBLE_NONTITLEWIDTH");var _240=this.bubbleHeader.offsetWidth;var _241=this.bubbleTitle.offsetWidth;if(_240>_23f){while((_23e>5)&&(_241>(_240-_23f))){_23e-=5;this.bubbleTitle.style.width=_23e+"%";_241=this.bubbleTitle.offsetWidth;}}var _242=this.domNode;if(this.domNode!=null&&this.style!=null){if(_242.style.length!=null){for(var i=0;i<_242.style.length;i++){if(_242.style[i]=="top"){this.top=_242.style.top;}if(_242.style[i]=="left"){this.left=_242.style.left;}}}else{if(_242.style.top!=""){this.top=_242.style.top;}if(_242.style.left!=""){this.left=_242.style.left;}}}if((this.top!=null)&&(this.left!=null)){_242.style.left=this.left;_242.style.top=this.top;}else{var _244=document.getElementById(this.topLeftArrow.id);var _245=document.getElementById(this.topRightArrow.id);var _246=document.getElementById(this.bottomLeftArrow.id);var _247=document.getElementById(this.bottomRightArrow.id);webui.suntheme.common.setVisible(_246,false);webui.suntheme.common.setVisible(_247,false);webui.suntheme.common.setVisible(_244,false);webui.suntheme.common.setVisible(_245,false);_246.style.display="none";_247.style.display="none";_244.style.display="none";_245.style.display="none";var _248=false;this.arrow=_246;var _249=this.target.targetLeft+this.target.offsetWidth+this.bubbleLeftConst;var _24a=_249+_242.offsetWidth;if(_24a>this.widget.getPageWidth()){_249=this.target.targetLeft-_242.offsetWidth;this.arrow=_247;_248=true;if(_249<=0){_249=this.target.targetLeft+this.target.offsetWidth+this.bubbleLeftConst;this.arrow=_246;_248=false;}}var _24b=this.target.targetTop-_242.offsetHeight;if(_24b<=0){_24b=this.target.targetTop+this.target.offsetHeight+this.bubbleLeftConst;if(_248==true){this.arrow=_245;}else{this.arrow=_244;}}_242.style.left=_249+"px";_242.style.top=_24b+"px";if(this.arrow!=null){this.arrow.style.display="block";webui.suntheme.common.setVisible(this.arrow,true);if(this.arrow==_244){this.arrow.style.top=-(_242.offsetHeight-this.topConst)+"px";}if(this.arrow==_245){this.arrow.style.top=-(_242.offsetHeight-this.topConst)+"px";}}}return true;};webui.suntheme.widget.bubble.prototype.setProps=function(_24c,_24d){if(_24c==null){return false;}if(_24c.contents){this.contents=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.bubble.prototype._setProps=function(_24e){if(_24e==null){return false;}if(_24e.title){this.widget.addFragment(this.titleNode,_24e.title);}if(_24e.closeButton!=null){var _24f=this.closeBtn.className.split(" ");var _250=this.theme.getClassName("BUBBLE_CLOSEBTN");var _251=this.theme.getClassName("BUBBLE_NOCLOSEBTN");if(_24e.closeButton==false){webui.suntheme.common.stripStyleClass(this.closeBtn,_250);if(!webui.suntheme.common.checkStyleClasses(_24f,_251)){webui.suntheme.common.addStyleClass(this.closeBtn,_251);}}else{if(!webui.suntheme.common.checkStyleClasses(_24f,_250)){webui.suntheme.common.addStyleClass(this.closeBtn,_250);}}}if(_24e.width>0){this.domNode.style.width=_24e.width;}if(_24e.contents){this.widget.removeChildNodes(this.childNode);for(var i=0;i<_24e.contents.length;i++){this.widget.addFragment(this.childNode,_24e.contents[i],"last");}}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.button");dojo.declare("webui.suntheme.widget.button",webui.suntheme.widget.widgetBase,{disabled:false,escape:true,mini:false,primary:true,widgetName:"button"});webui.suntheme.widget.button.event=webui.suntheme.widget.button.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_button_event_refresh_begin",endTopic:"webui_suntheme_widget_button_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_button_event_state_begin",endTopic:"webui_suntheme_widget_button_event_state_end"}};webui.suntheme.widget.button.prototype.getClassName=function(){var key=null;if(this.mini==true&&this.primary==true){key=(this.disabled==true)?"BUTTON1_MINI_DISABLED":"BUTTON1_MINI";}else{if(this.mini==true){key=(this.disabled==true)?"BUTTON2_MINI_DISABLED":"BUTTON2_MINI";}else{if(this.primary==true){key=(this.disabled==true)?"BUTTON1_DISABLED":"BUTTON1";}else{key=(this.disabled==true)?"BUTTON2_DISABLED":"BUTTON2";}}}var _254=this.widget.getClassName(key,"");return (this.className)?_254+" "+this.className:_254;};webui.suntheme.widget.button.prototype.getHoverClassName=function(){var key=null;if(this.mini==true&&this.primary==true){key="BUTTON1_MINI_HOVER";}else{if(this.mini==true){key="BUTTON2_MINI_HOVER";}else{if(this.primary==true){key="BUTTON1_HOVER";}else{key="BUTTON2_HOVER";}}}var _256=this.widget.getClassName(key,"");return (this.className)?_256+" "+this.className:_256;};webui.suntheme.widget.button.prototype.getProps=function(){var _257=this.inherited("getProps",arguments);if(this.alt){_257.alt=this.alt;}if(this.align){_257.align=this.align;}if(this.disabled!=null){_257.disabled=this.disabled;}if(this.escape!=null){_257.escape=this.escape;}if(this.mini!=null){_257.mini=this.mini;}if(this.primary!=null){_257.primary=this.primary;}if(this.value){_257.value=this.value;}return _257;};webui.suntheme.widget.button.prototype.onBlurCallback=function(_258){if(this.disabled==true){return true;}try{this.domNode.className=this.getClassName();}catch(err){}return true;};webui.suntheme.widget.button.prototype.onFocusCallback=function(_259){if(this.disabled==true){return true;}try{this.domNode.className=this.getHoverClassName();}catch(err){}return true;};webui.suntheme.widget.button.prototype.postCreate=function(){if(this.id){this.domNode.name=this.id;}webui.suntheme.button.init({id:this.id});dojo.connect(this.domNode,"onblur",this,"onBlurCallback");dojo.connect(this.domNode,"onfocus",this,"onFocusCallback");dojo.connect(this.domNode,"onmouseout",this,"onBlurCallback");dojo.connect(this.domNode,"onmouseover",this,"onFocusCallback");return this.inherited("postCreate",arguments);};webui.suntheme.widget.button.prototype.setProps=function(_25a,_25b){return this.inherited("setProps",arguments);};webui.suntheme.widget.button.prototype._setProps=function(_25c){if(_25c==null){return false;}if(_25c.alt){this.domNode.alt=_25c.alt;}if(_25c.align){this.domNode.align=_25c.align;}if(_25c.disabled!=null){this.domNode.disabled=new Boolean(_25c.disabled).valueOf();}if(_25c.value){this.domNode.value=(new Boolean(this.escape).valueOf()==false)?_25c.value.unescapeHTML():_25c.value;}this.setCommonProps(this.domNode,_25c);this.setEventProps(this.domNode,_25c);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.calendar");dojo.declare("webui.suntheme.widget.calendar",webui.suntheme.widget.widgetBase,{widgetName:"calendar"});webui.suntheme.widget.calendar.prototype.addDayLink=function(_25d,day,id,_260,_261){var _262=this.dayColumnContainer.cloneNode(false);_25d.appendChild(_262);var _263=this.dayLinkContainer.cloneNode(false);_262.appendChild(_263);var _264=this.formatDate(day.getMonth()+1,day.getDate(),day.getFullYear());_263.title=_264;_263.id=id;_263.href="#";_263.className=_260;this.widget.addFragment(_263,""+day.getDate());var _265=this.id;_263.onclick=function(){dijit.byId(_265).daySelected(_264);return false;};if(_261){var node=dijit.byId(_263.id);_263.onkeydown=function(_267){var _268=dijit.byId(_265);var evt=(_267)?_267:((window.event)?window.event:null);if(evt.keyCode==9){var elem=document.getElementById(_268.closeButtonLink.id);if(elem!=null){if(elem.focus){elem.focus();}if(evt.preventDefault){evt.preventDefault();}else{evt.returnValue=false;}return false;}}return true;};}return true;};webui.suntheme.widget.calendar.prototype.addDaysInMonth=function(_26b,_26c){var day;var _26e=0;var _26f=0;var _270=0;var _271=0;var _272=0;var id=this.id+"_link:";var _274;var _275=86400000;var _276=new Date();var _277=_276.getFullYear();var _278=_276.getMonth()+1;var _279=_276.getDate();var _27a=null;var _27b=null;var _27c=null;if(_26b!=null){_27a=_26b.getFullYear();_27b=_26b.getMonth()+1;_27c=_26b.getDate();}var _27d=dijit.byId(this.monthMenu.id);var _27e=dijit.byId(this.yearMenu.id);if(_27d==null||_27e==null){return;}if(_26c){var _27f=_278;var _280=_277;if(_26b!=null){_27f=_27b;_280=_27a;}this.setLimitedSelectedValue(_27d.getSelectElement(),_27f);this.setLimitedSelectedValue(_27e.getSelectElement(),_280);}var _281=parseInt(_27d.getSelectedValue());var year=parseInt(_27e.getSelectedValue());if(_26b!=null&&_27a==year&&_27b==_281){_271=_27c;}if(_277==year&&_278==_281){_270=_279;}var _283=this.weekRowContainer.cloneNode(false);this.tbodyContainer.appendChild(_283);_283.id=this.id+":row"+_26f;_281--;var _284=new Date(year,_281,1);var _285=_284.getDay();var _286=this.theme.getClassName("DATE_TIME_OTHER_LINK");if(_285==this.firstDayOfWeek-1){day=_284;}else{var _287=(_285-(this.firstDayOfWeek-1)+7)%7;day=new Date(_284.getTime()-_287*_275);while(day.getMonth()!=_284.getMonth()){_274=id+_272;this.addDayLink(_283,day,_274,_286);day=new Date(day.getTime()+_275);_26e++;_272++;}}while(_26e<7){if(day.getDate()==_271){_286=this.theme.getClassName("DATE_TIME_BOLD_LINK");}else{if(day.getDate()==_270){_286=this.theme.getClassName("DATE_TIME_TODAY_LINK");}else{_286=this.theme.getClassName("DATE_TIME_LINK");}}_274=id+_272;this.addDayLink(_283,day,_274,_286);day=new Date(day.getTime()+_275);_26e++;_272++;}var _288=false;while(day.getDate()!=1){_26f++;_283=this.weekRowContainer.cloneNode(false);this.tbodyContainer.appendChild(_283);_283.id=this.id+":row"+_26f;_26e=0;while(_26e<7&&day.getDate()!=1){if(day.getDate()==_271){_286=this.theme.getClassName("DATE_TIME_BOLD_LINK");}else{if(day.getDate()==_270){_286=this.theme.getClassName("DATE_TIME_TODAY_LINK");}else{_286=this.theme.getClassName("DATE_TIME_LINK");}}_274=id+_272;var _289=new Date(day.getTime()+_275);if(_289.getDate()==day.getDate()){_289=new Date(_289.getTime()+_275);}if(_289.getDate()==1&&_26e==6){_288=true;}else{_288=false;}this.addDayLink(_283,day,_274,_286,_288);day=_289;_26e++;_272++;}}while(_26e<7){var _286=this.theme.getClassName("DATE_TIME_OTHER_LINK");_274=id+_272;if(_26e==6){_288=true;}else{_288=false;}this.addDayLink(_283,day,_274,_286,_288);day=new Date(day.getTime()+_275);_26e++;_272++;}return true;};webui.suntheme.widget.calendar.prototype.addWeekDays=function(){var _28a;var _28b;var _28c=this.firstDayOfWeek-1;var _28d=this.weekDayRow.cloneNode(false);this.tbodyContainer.appendChild(_28d);for(var i=0;i<7;i++){_28a=this.weekDayColumn.cloneNode(false);_28d.appendChild(_28a);_28b=this.weekDayContainer.cloneNode(false);_28a.appendChild(_28b);this.widget.addFragment(_28b,this.weekDays[_28c]);_28c++;if(_28c==7){_28c=0;}}return true;};webui.suntheme.widget.calendar.prototype.closeCalendar=function(_28f){var evt=(_28f)?_28f:((window.event)?window.event:null);if((evt.type=="keydown")&&(evt.keyCode==13)){this.toggleCalendar();document.getElementById(this.toggleLink.id).focus();return false;}this.setInitialFocus();return true;};webui.suntheme.widget.calendar.prototype.daySelected=function(_291){this.toggleCalendar();dojo.publish(webui.suntheme.widget.calendar.event.day.selectedTopic,[{id:this.id,date:_291}]);return false;};webui.suntheme.widget.calendar.prototype.decreaseMonth=function(){var _292=dijit.byId(this.monthMenu.id).getSelectElement();if(_292.value==null){_292.value=_292.options[0].value;}var _293=parseInt(_292.value);if(_293==1){var _294=dijit.byId(this.yearMenu.id).getSelectElement();if(_294.value==null){_294.value=_294.options[0].value;}else{if(_294.value==_294.options[0].value){return;}else{var year=parseInt(_294.value);year--;_294.value=year;_293=12;}}}else{_293--;}_292.value=_293;return this.updateMonth(false);};webui.suntheme.widget.calendar.event=webui.suntheme.widget.calendar.prototype.event={day:{selectedTopic:"webui_suntheme_widget_calendar_event_selected"},refresh:{beginTopic:"webui_suntheme_widget_calendar_event_refresh_begin",endTopic:"webui_suntheme_widget_calendar_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_calendar_event_state_begin",endTopic:"webui_suntheme_widget_calendar_event_state_end"},toggle:{openTopic:"webui_suntheme_widget_calendar_event_toggle_open",closeTopic:"webui_suntheme_widget_calendar_event_toggle_close"}};webui.suntheme.widget.calendar.prototype.formatDate=function(_296,day,year){var date=new String(this.dateFormat);date=date.replace("yyyy",new String(year));if(_296<10){date=date.replace("MM","0"+new String(_296));}else{date=date.replace("MM",new String(_296));}if(day<10){date=date.replace("dd","0"+new String(day));}else{date=date.replace("dd",new String(day));}return date;};webui.suntheme.widget.calendar.prototype.getProps=function(){var _29a=this.inherited("getProps",arguments);if(this.todayDateMsg){_29a.todayDateMsg=this.todayDateMsg;}if(this.spacerImage){_29a.spacerImage=this.spacerImage;}if(this.topLeftImage){_29a.topLeftImage=this.topLeftImage;}if(this.topRightImage){_29a.topRightImage=this.topRightImage;}if(this.closeButtonLink){_29a.closeButtonLink=this.closeButtonLink;}if(this.increaseLink){_29a.increaseLink=this.increaseLink;}if(this.decreaseLink){_29a.decreaseLink=this.decreaseLink;}if(this.monthMenu){_29a.monthMenu=this.monthMenu;}if(this.yearMenu){_29a.yearMenu=this.yearMenu;}if(this.firstDayOfWeek){_29a.firstDayOfWeek=this.firstDayOfWeek;}if(this.toggleLink){_29a.toggleLink=this.toggleLink;}if(this.weekDays){_29a.weekDays=this.weekDays;}if(this.maxDate){_29a.maxDate=this.maxDate;}if(this.minDate){_29a.minDate=this.minDate;}return _29a;};webui.suntheme.widget.calendar.prototype.ieStackingContextFix=function(){var div=this.calendarContainer;if(div.style.display=="block"){var _29c=div.currentStyle.zIndex;var tag=div.offsetParent;while(tag!=null){var _29e=tag.currentStyle.position;if(_29e=="relative"||_29e=="absolute"){tag.raveOldZIndex=tag.style.zIndex;tag.style.zIndex=_29c;}tag=tag.offsetParent;}this.ieShowShim();}else{var tag=div.offsetParent;while(tag!=null){var _29e=tag.currentStyle.position;if(_29e=="relative"||_29e=="absolute"){if(tag.raveOldZIndex!=null){tag.style.zIndex=tag.raveOldZIndex;}}tag=tag.offsetParent;}this.ieHideShim();}return true;};webui.suntheme.widget.calendar.prototype.ieShowShim=function(){var _29f=this.calendarContainer;var shim=this.shimContainer;shim.style.position="absolute";shim.style.left=_29f.style.left;shim.style.top=_29f.style.top;shim.style.width=_29f.offsetWidth;shim.style.height=_29f.offsetHeight;shim.style.zIndex=_29f.currentStyle.zIndex-1;shim.style.display="block";return true;};webui.suntheme.widget.calendar.prototype.ieHideShim=function(){var shim=this.shimContainer;shim.style.display="none";return true;};webui.suntheme.widget.calendar.prototype.increaseMonth=function(){var _2a2=dijit.byId(this.monthMenu.id).getSelectElement();if(_2a2.value==null){_2a2.value=_2a2.options[0].value;}var _2a3=parseInt(_2a2.value);if(_2a3==12){var _2a4=dijit.byId(this.yearMenu.id).getSelectElement();var _2a5=_2a4.options.length;if(_2a4.value==null){_2a4.value=_2a4.options[0].value;}else{if(_2a4.value==_2a4.options[_2a5-1].value){return;}else{var year=parseInt(_2a4.value);year++;_2a4.value=year;_2a3=1;}}}else{_2a3++;}_2a2.value=_2a3;return this.updateMonth(false);};webui.suntheme.widget.calendar.prototype.getMonthOptions=function(){var _2a7=new Array();var _2a8=parseInt(this.theme.getMessage("calendar.numOfMonths"));for(var i=0;i<_2a8;i++){_2a7[i]={};_2a7[i].value=i+1;_2a7[i].disabled=false;_2a7[i].separator=false;_2a7[i].escape=true;_2a7[i].group=false;_2a7[i].label=this.theme.getMessage("calendar."+i);}return _2a7;};webui.suntheme.widget.calendar.prototype.getYearOptions=function(_2aa,_2ab){var _2ac=new Array();var diff=_2ab-_2aa;for(var i=0;i<=diff;i++){_2ac[i]={};_2ac[i].value=_2aa;_2ac[i].disabled=false;_2ac[i].separator=false;_2ac[i].escape=true;_2ac[i].group=false;_2ac[i].label=_2aa;_2aa++;}return _2ac;};webui.suntheme.widget.calendar.prototype.postCreate=function(){if(this.id){this.calendarMenuContainer.id=this.id+"_calendarMenuContainer";this.linkNode.id=this.id+"_linkNodeContainer";this.todayDateContainer.id=this.id+"_todayDateContainer";this.closeButtonContainer.id=this.id+"_closeButtonContainer";this.previousLinkContainer.id=this.id+"_previousLinkContainer";this.monthMenuContainer.id=this.id+"_monthMenuContainer";this.nextLinkContainer.id=this.id+"_nextLinkContainer";this.yearMenuContainer.id=this.id+"_yearMenuContainer";this.shimContainer.id=this.id+"_shim";}if(this.toggleLink==null){this.toggleLink=this.widget.getImageHyperlinkProps({id:this.id+"_datePickerLink",contents:[],imagePosition:"left",title:this.theme.getMessage("calendar.popupImageAlt"),enabledImage:{id:this.id+"_datePickerLink_image",border:0},disabledImage:{id:this.id+"_datePickerLink_image_disabled",border:0},align:"middle"},"CALENDAR_BUTTON","CALENDAR_BUTTON_DISABLED");}if(this.spacerImage==null){this.spacerImage=this.widget.getImageProps("DOT",{id:this.id+":DOT"});}if(this.topLeftImage==null){this.topLeftImage=this.widget.getImageProps("SCHEDULER_TOP_LEFT",{id:this.id+":topLeft"});}if(this.topRightImage==null){this.topRightImage=this.widget.getImageProps("SCHEDULER_TOP_RIGHT",{id:this.id+":topRight"});}if(this.increaseLink==null){this.increaseLink=this.widget.getImageHyperlinkProps({id:this.id+":nextMonthLink",enabledImage:{border:0,id:this.id+":nextMonthLink_image"},title:this.theme.getMessage("CalendarMonth.goForward")},"SCHEDULER_FORWARD");}if(this.decreaseLink==null){this.decreaseLink=this.widget.getImageHyperlinkProps({"id":this.id+":previousMonthLink",enabledImage:{border:0,id:this.id+":previousMonthLink_image"},title:this.theme.getMessage("CalendarMonth.goBack")},"SCHEDULER_BACKWARD");}if(this.closeButtonLink==null){this.closeButtonLink=this.widget.getImageHyperlinkProps({id:this.id+":closeButtonLink",enabledImage:{border:0,id:this.id+"closeButtonLink_close"},title:this.theme.getMessage("CalendarMonth.close"),className:this.theme.getClassName("CALENDAR_CLOSE_BUTTON")},"CALENDAR_CLOSE_BUTTON");}if(this.dateFormat==null){this.dateFormat=this.theme.getMessage("calendar.dateFormat");}var _2af=new Date();var _2b0=new Date();if(this.minDate==null){_2af.setFullYear(_2af.getFullYear()-100);this.minDate=this.formatDate(_2af.getMonth(),_2af.getDate(),_2af.getFullYear());}else{_2af=this.convertStringToDate(this.minDate);}if(this.maxDate==null){_2b0.setFullYear(_2af.getFullYear()+200);this.maxDate=this.formatDate(_2b0.getMonth(),_2b0.getDate(),_2b0.getFullYear());}else{_2b0=this.convertStringToDate(this.maxDate);}if(this.weekDays==null){this.weekDays=new Array();this.weekDays[0]=this.theme.getMessage("CalendarMonth.weekdaySun");this.weekDays[1]=this.theme.getMessage("CalendarMonth.weekdayMon");this.weekDays[2]=this.theme.getMessage("CalendarMonth.weekdayTue");this.weekDays[3]=this.theme.getMessage("CalendarMonth.weekdayWed");this.weekDays[4]=this.theme.getMessage("CalendarMonth.weekdayThu");this.weekDays[5]=this.theme.getMessage("CalendarMonth.weekdayFri");this.weekDays[6]=this.theme.getMessage("CalendarMonth.weekdaySat");}if(this.firstDayOfWeek==null){this.firstDayOfWeek=parseInt(this.theme.getMessage("calendar.firstDayOfWeek"));}if(this.todayDateMsg==null){var d=new Date();var _2b2=this.theme.getMessage("CalendarMonth.todayIs");var _2b3=_2b2.indexOf(":");this.todayDateMsg=_2b2.substr(0,_2b3+1);var _2b4=this.theme.getMessage("calendar."+(d.getMonth()));_2b4=_2b4.substr(0,3);if(this.dateFormat.indexOf("MM")==0){this.todayDateMsg+=" "+_2b4+" "+d.getDay();}else{this.todayDateMsg+=" "+d.getDay()+" "+_2b4;}this.todayDateMsg+=", "+d.getFullYear();}if(this.monthMenu==null){this.monthMenu=this.widget.getDropDownProps({id:this.id+":monthMenu",options:this.getMonthOptions(),title:this.theme.getMessage("CalendarMonth.selectMonth")});}if(this.yearMenu==null){this.yearMenu=this.widget.getDropDownProps({id:this.id+":yearMenu",options:this.getYearOptions(_2af.getYear(),_2b0.getYear()),title:this.theme.getMessage("CalendarMonth.selectYear")});}return this.inherited("postCreate",arguments);};webui.suntheme.widget.calendar.prototype.convertStringToDate=function(_2b5,_2b6){if(_2b5==""){property=null;return false;}var _2b7=this.dateFormat;var _2b8=_2b7.indexOf("yyyy");var _2b9=_2b7.indexOf("MM");var _2ba=_2b7.indexOf("dd");if(_2b8<0||_2b9<0||_2ba<0){return null;}var _2bb=0;var _2bc;var _2bd=new Date();var _2be=0;var _2bf;while(_2bb<_2b5.length){if(_2bb==_2b8){try{_2bc=parseInt(_2b5.substr(_2bb,4));if(isNaN(_2bc)){property=null;return false;}if(_2b6==true){var _2c0=0;var _2c1=false;yearMenu=dijit.byId(this.yearMenu.id).getSelectElement();while(_2c0<yearMenu.length){if(_2bc==yearMenu.options[_2c0].value){_2bd.setFullYear(_2bc);++_2be;_2c1=true;break;}_2c0++;}if(!_2c1){break;}}else{_2bd.setFullYear(_2bc);++_2be;}}catch(e){}}else{if(_2bb==_2b9){try{_2bf=_2b5.substr(_2bb,2);if(_2bf.charAt(0)=="0"){_2bf=_2bf.substr(1,1);}_2bc=parseInt(_2bf);if(isNaN(_2bc)){property=null;return false;}_2bd.setMonth(_2bc-1);++_2be;}catch(e){}}else{if(_2bb==_2ba){try{_2bf=_2b5.substr(_2bb,2);if(_2bf.charAt(0)=="0"){_2bf=_2bf.substr(1,1);}_2bc=parseInt(_2bf);if(isNaN(_2bc)){return null;}_2bd.setDate(_2bc);++_2be;}catch(e){}}}}++_2bb;}if(_2be==3){return _2bd;}else{return null;}return true;};webui.suntheme.widget.calendar.prototype.setInitialFocus=function(){var _2c2=new String(this.dateFormat);var _2c3=_2c2.indexOf("yyyy");var _2c4=_2c2.indexOf("MM");var _2c5=dijit.byId(this.monthMenu.id).getSelectElement();_2c5.focus();return true;};webui.suntheme.widget.calendar.prototype.setLimitedSelectedValue=function(_2c6,_2c7){var min=_2c6.options[0].value;var max=_2c6.options[_2c6.length-1].value;if(_2c7<min){_2c6.value=min;}else{if(_2c7>max){_2c6.value=max;}else{this.setSelectedValue(_2c6,_2c7);}}return true;};webui.suntheme.widget.calendar.prototype.setProps=function(_2ca,_2cb){return this.inherited("setProps",arguments);};webui.suntheme.widget.calendar.prototype._setProps=function(_2cc){if(_2cc==null){return false;}if(_2cc.todayDateMsg){this.widget.addFragment(this.todayDateContainer,_2cc.todayDateMsg);}if(_2cc.spacerImage){if(!dijit.byId(this.spacerImage.id)){this.widget.addFragment(this.spacerImageContainer,_2cc.spacerImage);}}if(_2cc.topLeftImage){if(!dijit.byId(this.topLeftImage.id)){this.widget.addFragment(this.topLeftImageContainer,_2cc.topLeftImage);}}if(_2cc.topRightImage){if(!dijit.byId(this.topRightImage.id)){this.widget.addFragment(this.topRightImageContainer,_2cc.topRightImage);}}if(_2cc.date){var _2cd=this.convertStringToDate(_2cc.date,true);if(_2cd!=null){this.currentValue=_2cd;}}if(_2cc.closeButtonLink){_2cc.closeButtonLink.id=this.closeButtonLink.id;_2cc.closeButtonLink.onClick="dijit.byId('"+this.id+"').toggleCalendar();return false;";_2cc.closeButtonLink.onKeyDown="dijit.byId('"+this.id+"').closeCalendar(event);return false;";this.widget.updateFragment(this.closeButtonContainer,_2cc.closeButtonLink);}if(_2cc.decreaseLink){_2cc.decreaseLink.id=this.decreaseLink.id;_2cc.decreaseLink.onClick="dijit.byId('"+this.id+"').decreaseMonth();return false;";this.widget.updateFragment(this.previousLinkContainer,_2cc.decreaseLink);}if(_2cc.increaseLink){_2cc.increaseLink.id=this.increaseLink.id;_2cc.increaseLink.onClick="dijit.byId('"+this.id+"').increaseMonth();return false;";this.widget.updateFragment(this.nextLinkContainer,_2cc.increaseLink);}var _2ce=null;var _2cf=null;if(_2cc.minDate||_2cc.maxDate){if(_2cc.minDate){_2ce=this.convertStringToDate(_2cc.minDate);if(_2ce!=null){this.minDate=this.formatDate(_2ce.getMonth(),_2ce.getDate(),_2ce.getFullYear());}}if(_2cc.maxDate){_2cf=this.convertStringToDate(_2cc.maxDate);if(_2cf!=null){this.maxDate=this.formatDate(_2cf.getMonth(),_2cf.getDate(),_2cf.getFullYear());}}_2cc.yearMenu=this.widget.getDropDownProps({id:this.id+":yearMenu",options:this.getYearOptions(_2ce.getFullYear(),_2cf.getFullYear()),title:this.theme.getMessage("CalendarMonth.selectYear")});this.yearMenu=_2cc.yearMenu;}if(_2cc.monthMenu){_2cc.monthMenu.id=this.monthMenu.id;_2cc.monthMenu.onChange="dijit.byId('"+this.id+"').updateMonth(false);return false;";this.widget.updateFragment(this.monthMenuContainer,_2cc.monthMenu);}if(_2cc.yearMenu){_2cc.yearMenu.id=this.yearMenu.id;_2cc.yearMenu.onChange="dijit.byId('"+this.id+"').updateMonth(false);return false;";this.widget.updateFragment(this.yearMenuContainer,_2cc.yearMenu);}if(_2cc.disabled!=null){this.disabled=new Boolean(_2cc.disabled).valueOf();}if(_2cc.toggleLink||(_2cc.disabled!=null&&this.calendarContainer.style.display!="block")){if(_2cc.toggleLink==null){_2cc.toggleLink={};}_2cc.toggleLink.id=this.toggleLink.id;_2cc.toggleLink.disabled=this.disabled;_2cc.toggleLink.onClick="dijit.byId('"+this.id+"').toggleCalendar();return false;";this.widget.updateFragment(this.linkNode,_2cc.toggleLink);}this.setCommonProps(this.domNode,_2cc);return this.inherited("_setProps",arguments);};webui.suntheme.widget.calendar.prototype.setSelectedValue=function(_2d0,_2d1){for(var i=0;i<_2d0.length;i++){if(_2d0.options[i].value==_2d1){_2d0.selectedIndex=i;return true;}}_2d0.selectedIndex=-1;return true;};webui.suntheme.widget.calendar.prototype.toggleCalendar=function(){var _2d3=(this.calendarContainer.style.display!="block")?webui.suntheme.widget.calendar.event.toggle.openTopic:webui.suntheme.widget.calendar.event.toggle.closeTopic;dojo.publish(webui.suntheme.widget.calendar.event.toggle.openTopic,[{id:this.id}]);if(this.calendarContainer.style.display!="block"){if(webui.suntheme.widget.calendar.activeCalendarId!=null){var cal=dijit.byId(webui.suntheme.widget.calendar.activeCalendarId);cal.toggleCalendar();}webui.suntheme.widget.calendar.activeCalendarId=this.id;this.calendarContainer.style.display="block";this.setInitialFocus();this.updateMonth(true);}else{this.calendarContainer.style.display="none";webui.suntheme.widget.calendar.activeCalendarId=null;}if(webui.suntheme.browser.isIe5up()){this.ieStackingContextFix();}return false;};webui.suntheme.widget.calendar.prototype.updateMonth=function(_2d5){this.widget.removeChildNodes(this.tbodyContainer);this.addWeekDays();this.addDaysInMonth(this.currentValue,_2d5);return true;};dojo.provide("webui.suntheme.widget.fieldBase");dojo.declare("webui.suntheme.widget.fieldBase",webui.suntheme.widget.widgetBase,{disabled:false,required:false,size:20,valid:true});webui.suntheme.widget.fieldBase.prototype.getInputClassName=function(){return null;};webui.suntheme.widget.fieldBase.prototype.getInputElement=function(){return this.fieldNode;};webui.suntheme.widget.fieldBase.prototype.getProps=function(){var _2d6=this.inherited("getProps",arguments);if(this.alt){_2d6.alt=this.alt;}if(this.disabled!=null){_2d6.disabled=this.disabled;}if(this.label){_2d6.label=this.label;}if(this.maxLength>0){_2d6.maxLength=this.maxLength;}if(this.notify){_2d6.notify=this.notify;}if(this.submitForm!=null){_2d6.submitForm=this.submitForm;}if(this.text!=null){_2d6.text=this.text;}if(this.title!=null){_2d6.title=this.title;}if(this.type){_2d6.type=this.type;}if(this.readOnly!=null){_2d6.readOnly=this.readOnly;}if(this.required!=null){_2d6.required=this.required;}if(this.size>0){_2d6.size=this.size;}if(this.style!=null){_2d6.style=this.style;}if(this.valid!=null){_2d6.valid=this.valid;}if(this.isInitialized()==true&&this.fieldNode.value!=null){_2d6.value=this.fieldNode.value;}else{if(this.value!=null){_2d6.value=this.value;}}return _2d6;};webui.suntheme.widget.fieldBase.prototype.postCreate=function(){if(this.id){this.fieldNode.id=this.id+"_field";this.fieldNode.name=this.id+"_field";this.labelContainer.id=this.id+"_label";}this.domNode.getInputElement=function(){return dijit.byId(this.id).getInputElement();};return this.inherited("postCreate",arguments);};webui.suntheme.widget.fieldBase.prototype._setProps=function(_2d7){if(_2d7==null){return false;}if(_2d7.submitForm==false||_2d7.submitForm==true){dojo.connect(this.fieldNode,"onkeypress",this,"submitFormData");}if(_2d7.maxLength>0){this.fieldNode.maxLength=_2d7.maxLength;}if(_2d7.size>0){this.fieldNode.size=_2d7.size;}if(_2d7.value!=null){this.fieldNode.value=_2d7.value;}if(_2d7.title!=null){this.fieldNode.title=_2d7.title;}if(_2d7.disabled!=null){this.fieldNode.disabled=new Boolean(_2d7.disabled).valueOf();}if(_2d7.readOnly!=null){this.fieldNode.readOnly=new Boolean(_2d7.readOnly).valueOf();}if(_2d7.label||(_2d7.valid!=null||_2d7.required!=null)&&this.label){if(_2d7.label==null){_2d7.label={};}_2d7.label.id=this.label.id;_2d7.label.required=this.required;_2d7.label.valid=this.valid;this.widget.updateFragment(this.labelContainer,_2d7.label);}this.fieldNode.className=this.getInputClassName();this.setCommonProps(this.fieldNode,_2d7);this.setEventProps(this.fieldNode,_2d7);return this.inherited("_setProps",arguments);};webui.suntheme.widget.fieldBase.prototype.submitFormData=function(_2d8){if(_2d8==null){return false;}if(_2d8.keyCode==_2d8.KEY_ENTER){if(this.submitForm==false){if(window.event){_2d8.cancelBubble=true;_2d8.returnValue=false;}else{_2d8.preventDefault();_2d8.stopPropagation();}return false;}else{if(_2d8.currentTarget.form){_2d8.currentTarget.form.submit();}}}return true;};dojo.provide("webui.suntheme.widget.textField");dojo.declare("webui.suntheme.widget.textField",webui.suntheme.widget.fieldBase,{widgetName:"textField"});webui.suntheme.widget.textField.event=webui.suntheme.widget.textField.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_textField_event_refresh_begin",endTopic:"webui_suntheme_widget_textField_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_textField_event_state_begin",endTopic:"webui_suntheme_widget_textField_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_textField_event_submit_begin",endTopic:"webui_suntheme_widget_textField_event_submit_end"},validation:{beginTopic:"webui_suntheme_widget_textField_event_validation_begin",endTopic:"webui_suntheme_widget_textField_event_validation_end"}};webui.suntheme.widget.textField.prototype.getInputClassName=function(){if(this.fieldNode.readOnly){return this.widget.getClassName("TEXT_FIELD_READONLY","");}var _2d9=(this.valid==false)?" "+this.widget.getClassName("TEXT_FIELD_INVALID",""):" "+this.widget.getClassName("TEXT_FIELD_VALID","");return (this.disabled==true)?this.widget.getClassName("TEXT_FIELD_DISABLED",""):this.widget.getClassName("TEXT_FIELD","")+_2d9;};webui.suntheme.widget.textField.prototype.getProps=function(){var _2da=this.inherited("getProps",arguments);if(this.autoValidate!=null){_2da.autoValidate=this.autoValidate;}return _2da;};webui.suntheme.widget.textField.prototype.postCreate=function(){if(this.autoValidate==true){dojo.connect(this.fieldNode,"onblur",this,"validate");}return this.inherited("postCreate",arguments);};webui.suntheme.widget.textField.prototype.setProps=function(_2db,_2dc){return this.inherited("setProps",arguments);};webui.suntheme.widget.textField.prototype.validate=function(_2dd){if(_2dd==null){return false;}dojo.publish(webui.suntheme.widget.textField.event.validation.beginTopic,[{id:this.id}]);return true;};dojo.provide("webui.suntheme.widget.calendarField");dojo.declare("webui.suntheme.widget.calendarField",webui.suntheme.widget.textField,{widgetName:"calendarField"});webui.suntheme.widget.calendarField.prototype.dayClicked=function(_2de){if(_2de.date!=null&&_2de.id==this.calendar.id){this.domNode.setProps({value:_2de.date});}return false;};webui.suntheme.widget.calendarField.event=webui.suntheme.widget.calendarField.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_calendarField_event_refresh_begin",endTopic:"webui_suntheme_widget_calendarField_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_calendarField_event_state_begin",endTopic:"webui_suntheme_widget_calendarField_event_state_end"}};webui.suntheme.widget.calendarField.prototype.getClassName=function(){var _2df=this.widget.getClassName("CALENDAR_ROOT_TABLE","");return (this.className)?_2df+" "+this.className:_2df;};webui.suntheme.widget.calendarField.prototype.getProps=function(){var _2e0=this.inherited("getProps",arguments);if(this.align){_2e0.align=this.align;}if(this.calendar){_2e0.calendar=this.calendar;}if(this.patternHelp){_2e0.patternHelp=this.patternHelp;}return _2e0;};webui.suntheme.widget.calendarField.prototype.postCreate=function(){if(this.id){this.inlineHelpNode.id=this.id+"_pattern";this.linkContainer.id=this.id+"_linkContainer";this.calendarContainer.id=this.id+"_calendarContainer";}if(this.patternHelp==null){var _2e1=this.theme.getMessage("calendar.dateFormat");var help=this.theme.getMessage("calendar."+_2e1);if(help!=null){this.patternHelp=help;}else{this.patternHelp=_2e1;}}dojo.subscribe(webui.suntheme.widget.calendar.event.day.selectedTopic,this,"dayClicked");dojo.subscribe(webui.suntheme.widget.calendar.event.toggle.openTopic,this,"toggleCalendar");return this.inherited("postCreate",arguments);};webui.suntheme.widget.calendarField.prototype.setProps=function(_2e3,_2e4){if(_2e3==null){return false;}if(_2e3.disabled!=null){var _2e5=dijit.byId(this.calendar.id);if(_2e5!=null&&!(_2e5.calendarContainer.style.display!="block")){_2e3.disabled=this.disabled;}}return this.inherited("setProps",arguments);};webui.suntheme.widget.calendarField.prototype._setProps=function(_2e6){if(_2e6==null){return false;}if(_2e6.disabled!=null){this.disabled=new Boolean(_2e6.disabled).valueOf();}if(_2e6.calendar||_2e6.disabled!=null){if(_2e6.calendar==null){_2e6.calendar={};}_2e6.calendar.id=this.calendar.id;_2e6.calendar.disabled=this.disabled;this.widget.updateFragment(this.calendarContainer,_2e6.calendar);}if(_2e6.patternHelp){this.widget.addFragment(this.inlineHelpNode,_2e6.patternHelp);}return this.inherited("_setProps",arguments);};webui.suntheme.widget.calendarField.prototype.toggleCalendar=function(_2e7){if(_2e7.id!=null&&_2e7.id==this.calendar.id){var _2e8=dijit.byId(_2e7.id);_2e8.setProps({date:this.getProps().value});}return true;};dojo.provide("webui.suntheme.widget.checkedBase");dojo.declare("webui.suntheme.widget.checkedBase",webui.suntheme.widget.widgetBase,{idSuffix:""});webui.suntheme.widget.checkedBase.prototype.getImageClassName=function(){return null;};webui.suntheme.widget.checkedBase.prototype.getInputClassName=function(){return null;};webui.suntheme.widget.checkedBase.prototype.getInputElement=function(){return this.inputNode;};webui.suntheme.widget.checkedBase.prototype.getLabelClassName=function(){return null;};webui.suntheme.widget.checkedBase.prototype.getProps=function(){var _2e9=this.inherited("getProps",arguments);if(this.align){_2e9.align=this.align;}if(this.disabled!=null){_2e9.disabled=this.disabled;}if(this.image){_2e9.image=this.image;}if(this.label){_2e9.label=this.label;}if(this.name){_2e9.name=this.name;}if(this.readOnly!=null){_2e9.readOnly=this.readOnly;}if(this.value){_2e9.value=this.value;}if(this.isInitialized()==true&&this.inputNode.checked!=null){_2e9.checked=this.inputNode.checked;}else{if(this.checked!=null){_2e9.checked=this.checked;}}return _2e9;};webui.suntheme.widget.checkedBase.prototype.onClickCallback=function(_2ea){if(this.readOnly==true){_2ea.preventDefault();return false;}var _2eb=(this.domNode._onclick)?this.domNode._onclick(_2ea):true;if(_2eb==false){_2ea.preventDefault();return false;}return true;};webui.suntheme.widget.checkedBase.prototype.postCreate=function(){if(this.id){this.inputNode.id=this.id+this.idSuffix;this.imageContainer.id=this.id+"_imageContainer";this.labelContainer.id=this.id+"_labelContainer";if(this.name==null){this.name=this.inputNode.id;}}this.domNode.getInputElement=function(){return dijit.byId(this.id).getInputElement();};dojo.connect(this.domNode,"onclick",this,"onClickCallback");return this.inherited("postCreate",arguments);};webui.suntheme.widget.checkedBase.prototype._setProps=function(_2ec){if(_2ec==null){return false;}if(_2ec.value){this.inputNode.value=_2ec.value;}if(_2ec.readOnly!=null){this.inputNode.readOnly=new Boolean(_2ec.readOnly).valueOf();}if(_2ec.disabled!=null){this.inputNode.disabled=new Boolean(_2ec.disabled).valueOf();}this.inputNode.className=this.getInputClassName();if(_2ec.name){this.inputNode.name=_2ec.name;}if(_2ec.checked!=null){var _2ed=new Boolean(_2ec.checked).valueOf();if(this.isInitialized()!=true&&webui.suntheme.browser.isIe()){var _id=this.id;setTimeout(function(){var _2ef=dijit.byId(_id);_2ef.inputNode.checked=_2ed;},0);}else{this.inputNode.checked=_2ed;}}if(_2ec.image||_2ec.disabled!=null&&this.image){if(_2ec.image==null){_2ec.image={};}_2ec.image.id=this.image.id;_2ec.image.className=this.getImageClassName();this.widget.updateFragment(this.imageContainer,_2ec.image);}if(_2ec.label||_2ec.disabled!=null&&this.label){if(_2ec.label==null){_2ec.label={};}_2ec.label.id=this.label.id;_2ec.label.className=this.getLabelClassName();this.widget.updateFragment(this.labelContainer,_2ec.label);}this.setCommonProps(this.inputNode,_2ec);this.setEventProps(this.inputNode,_2ec);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.checkbox");dojo.declare("webui.suntheme.widget.checkbox",webui.suntheme.widget.checkedBase,{idSuffix:"_cb",widgetName:"checkbox"});webui.suntheme.widget.checkbox.event=webui.suntheme.widget.checkbox.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_checkbox_event_refresh_begin",endTopic:"webui_suntheme_widget_checkbox_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_checkbox_event_state_begin",endTopic:"webui_suntheme_widget_checkbox_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_checkbox_event_submit_begin",endTopic:"webui_suntheme_widget_checkbox_event_submit_end"}};webui.suntheme.widget.checkbox.prototype.getClassName=function(){var _2f0=(this.disabled==true)?this.widget.getClassName("CHECKBOX_SPAN_DISABLED",""):this.widget.getClassName("CHECKBOX_SPAN","");return (this.className)?_2f0+" "+this.className:_2f0;};webui.suntheme.widget.checkbox.prototype.getImageClassName=function(){return (this.disabled==true)?this.widget.getClassName("CHECKBOX_IMAGE_DISABLED",""):this.widget.getClassName("CHECKBOX_IMAGE","");};webui.suntheme.widget.checkbox.prototype.getInputClassName=function(){if(this.readOnly==true){return this.widget.getClassName("CHECKBOX_READONLY","");}return (this.disabled==true)?this.widget.getClassName("CHECKBOX_DISABLED",""):this.widget.getClassName("CHECKBOX","");};webui.suntheme.widget.checkbox.prototype.getLabelClassName=function(){return (this.disabled==true)?this.widget.getClassName("CHECKBOX_LABEL_DISABLED",""):this.widget.getClassName("CHECKBOX_LABEL","");};webui.suntheme.widget.checkbox.prototype.setProps=function(_2f1,_2f2){return this.inherited("setProps",arguments);};dojo.provide("webui.suntheme.widget.checkedGroupBase");dojo.declare("webui.suntheme.widget.checkedGroupBase",webui.suntheme.widget.widgetBase);webui.suntheme.widget.checkedGroupBase.prototype.addContents=function(_2f3){if(_2f3==null){return false;}if(_2f3.contents){this.widget.removeChildNodes(this.tbodyContainer);var _2f4=this.rowContainer.cloneNode(false);this.tbodyContainer.appendChild(_2f4);if(_2f3.label){var _2f5=this.rowNode.cloneNode(false);_2f4.appendChild(_2f5);var _2f6=this.labelContainer.cloneNode(false);_2f5.appendChild(_2f6);this.widget.addFragment(_2f6,_2f3.label,"last");}var _2f7=0;var _2f8=_2f3.contents.length;var _2f9=(_2f3.columns<=0)?1:_2f3.columns;var rows=(_2f8+(_2f9-1))/_2f9;var _2fb=_2f3.disabled==null?false:_2f3.disabled;for(var row=0;row<=rows;row++){for(var _2fd=0;_2fd<_2f9;_2fd++){if(_2f7<_2f8){var _2fe=this.contentsRowNode.cloneNode(false);_2f4.appendChild(_2fe);_2f3.contents[_2f7].disabled=_2fb;this.widget.addFragment(_2fe,_2f3.contents[_2f7],"last");_2f7++;}}if(row+1<=rows){_2f4=this.rowContainer.cloneNode(false);this.tbodyContainer.appendChild(_2f4);if(_2f3.label!=null){var _2fe=this.contentsRowNode.cloneNode(false);_2f4.appendChild(_2fe);}}}}else{if(_2f3.disabled!=null&&this.contents){for(var i=0;i<this.contents.length;i++){var _300=dijit.byId(this.contents[i].id);if(_300){_300.setProps({disabled:_2f3.disabled});}}}}return true;};webui.suntheme.widget.checkedGroupBase.prototype.getProps=function(){var _301=this.inherited("getProps",arguments);if(this.columns){_301.columns=this.columns;}if(this.contents){_301.contents=this.contents;}if(this.disabled!=null){_301.disabled=this.disabled;}if(this.id){_301.id=this.id;}if(this.label){_301.label=this.label;}if(this.name){_301.name=this.name;}if(this.readOnly!=null){_301.readOnly=this.readOnly;}return _301;};webui.suntheme.widget.checkedGroupBase.prototype.postCreate=function(){if(this.id){this.contentsRowNode.id=this.id+"_contentsRowNode";this.divContainer.id=this.id+"_divContainer";this.labelContainer.id=this.id+"_labelContainer";this.rowContainer.id=this.id+"_rowContainer";this.rowNode.id=this.id+"_rowNode";this.tableContainer.id=this.id+"_tableContainer";this.tbodyContainer.id=this.id+"_tbodyContainer";}if(this.label){webui.suntheme.common.setVisibleElement(this.rowNode,true);}return this.inherited("postCreate",arguments);};webui.suntheme.widget.checkedGroupBase.prototype.setProps=function(_302,_303){if(_302==null){return false;}if(_302.contents){this.contents=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.checkedGroupBase.prototype._setProps=function(_304){if(_304==null){return false;}if(_304.label){_304.label.id=this.label.id;this.widget.updateFragment(this.labelContainer,_304.label);}if(_304.contents||_304.disabled!=null){this.addContents(_304);}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.checkboxGroup");dojo.declare("webui.suntheme.widget.checkboxGroup",webui.suntheme.widget.checkedGroupBase,{widgetName:"checkboxGroup"});webui.suntheme.widget.checkboxGroup.event=webui.suntheme.widget.checkboxGroup.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_checkboxGroup_event_refresh_begin",endTopic:"webui_suntheme_widget_checkboxGroup_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_checkboxGroup_event_state_begin",endTopic:"webui_suntheme_widget_checkboxGroup_event_state_end"}};webui.suntheme.widget.checkboxGroup.prototype.getClassName=function(){var _305=(this.columns>1)?this.widget.getClassName("CBGRP_HORIZ",""):this.widget.getClassName("CBGRP_VERT","");return (this.className)?_305+" "+this.className:_305;};dojo.provide("webui.suntheme.widget.selectBase");dojo.declare("webui.suntheme.widget.selectBase",webui.suntheme.widget.widgetBase,{labelOnTop:false,titleOptionLabel:""});webui.suntheme.widget.selectBase.prototype.addOptions=function(_306){var _307=this.listContainer.options.length;if(!this.alreadyRemoved){this.listContainer.removeChild(this.optionNode);this.optionGroupContainer.removeChild(this.memberOptionNode);this.listContainer.removeChild(this.optionGroupContainer);this.alreadyRemoved=true;}while(this.listContainer.firstChild){this.listContainer.removeChild(this.listContainer.firstChild);}var _308;for(var i=0;i<_306.options.length;i++){var _30a=_306.options[i];if(_30a.group==false){if(webui.suntheme.browser.isIe()){_308=new Option();}else{_308=this.optionNode.cloneNode(true);}this.setOptionProps(_308,_30a);if(webui.suntheme.browser.isIe()){var idx=this.listContainer.options.length;var _30c=_308.selected;this.listContainer.options[idx]=_308;this.listContainer.options[idx].selected=_30c;}else{this.listContainer.appendChild(_308);}}else{_308=this.optionGroupContainer.cloneNode(true);this.setGroupOptionProps(_308,_30a);this.listContainer.appendChild(_308);var _30d;for(var ix=0;ix<_30a.options.length;ix++){_30d=this.memberOptionNode.cloneNode(true);this.setOptionProps(_30d,_30a.options[ix]);_308.appendChild(_30d);}}}return true;};webui.suntheme.widget.selectBase.prototype.changed=function(){var _30f=this.listContainer.options;if(webui.suntheme.browser.isIe()){for(var i=0;i<_30f.length;++i){if(_30f[i].disabled==true&&_30f[i].selected==true){if(this.listContainer.multiple==true){_30f[i].selected=false;}else{this.listContainer.selectedIndex=-1;}}}}for(var i=0;i<_30f.length;++i){_30f[i].className=this.getOptionClassName(_30f[i]);}return true;};webui.suntheme.widget.selectBase.prototype.getOptionClassName=function(_311){if(_311.separator&&_311.separator==true){return this.optionSeparatorClassName;}else{if(_311.group&&_311.group==true){return this.optionGroupClassName;}else{if(_311.disabled&&_311.disabled==true){return this.optionDisabledClassName;}else{if(_311.selected&&_311.selected==true){return this.optionSelectedClassName;}else{return this.optionClassName;}}}}};webui.suntheme.widget.selectBase.prototype.getProps=function(){var _312=this.inherited("getProps",arguments);if(this.labelOnTop!=null){_312.labelOnTop=this.labelOnTop;}if(this.disabled!=null){_312.disabled=this.disabled;}if(this.label){_312.label=this.label;}if(this.options){_312.options=this.options;}return _312;};webui.suntheme.widget.selectBase.prototype.getSelectClassName=function(_313){return (_313.disabled==true)?this.selectDisabledClassName:this.selectClassName;};webui.suntheme.widget.selectBase.prototype.getSelectElement=function(){return this.listContainer;};webui.suntheme.widget.selectBase.prototype.getSelectedLabel=function(){var _314=this.listContainer.selectedIndex;if(_314==-1){return null;}else{return this.options[_314].label;}};webui.suntheme.widget.selectBase.prototype.getSelectedValue=function(){var _315=this.listContainer.selectedIndex;if(_315==-1){return null;}else{return this.listContainer.options[_315].value;}};webui.suntheme.widget.selectBase.prototype.onChangeCallback=function(_316){if(this.disabled==true){return false;}var _317=(this.listContainer._onchange)?this.listContainer._onchange(_316):true;if(_317==false){return false;}return this.changed();};webui.suntheme.widget.selectBase.prototype.postCreate=function(){if(this.id){this.labelContainer.id=this.id+"_label";this.listContainer.id=this.id+"_list";}this.domNode.getSelectedValue=function(){return dijit.byId(this.id).getSelectedValue();};this.domNode.getSelectedLabel=function(){return dijit.byId(this.id).getSelectedLabel();};this.domNode.getSelectElement=function(){return dijit.byId(this.id).getSelectElement();};dojo.connect(this.listContainer,"onchange",this,"onChangeCallback");return this.inherited("postCreate",arguments);};webui.suntheme.widget.selectBase.prototype.setGroupOptionProps=function(_318,_319){_318.className=this.getOptionClassName(_319);_318.label=_319.label;if(_319.disabled!=null){_318.disabled=new Boolean(_319.disabled).valueOf();}return true;};webui.suntheme.widget.selectBase.prototype.setOptionProps=function(_31a,_31b){_31a.value=_31b.value;_31a.className=this.getOptionClassName(_31b);var _31c=null;if(_31b.isTitle==true){_31c=this.theme.getMessage(this.titleOptionLabel,[_31b.label]).unescapeHTML();}else{_31c=_31b.label;}if(new Boolean(_31b.escape).valueOf()==false){_31a.text=_31c.unescapeHTML();}else{_31a.text=_31c;}if(_31b.selected!=null){_31a.selected=new Boolean(_31b.selected).valueOf();if(_31a.selected==true){_31a.defaultSelected=true;}}if(_31b.disabled!=null){_31a.disabled=new Boolean(_31b.disabled).valueOf();}return true;};webui.suntheme.widget.selectBase.prototype._setProps=function(_31d){if(_31d==null){return false;}if(_31d.onChange){this.listContainer._onchange=(typeof _31d.onChange=="string")?new Function("event",_31d.onChange):_31d.onChange;_31d.onChange=null;}this.setSelectProps(this.listContainer,_31d);if(_31d.options){this.addOptions(_31d);}if(_31d.label){_31d.label.id=this.label.id;this.widget.updateFragment(this.labelContainer,_31d.label);if(new Boolean(this.labelOnTop).valueOf()==true){webui.suntheme.common.setVisibleElement(this.brContainer,true);}}this.setCommonProps(this.listContainer,_31d);this.setEventProps(this.listContainer,_31d);return this.inherited("_setProps",arguments);};webui.suntheme.widget.selectBase.prototype.setSelectProps=function(_31e,_31f){_31e.name=_31e.id;if(_31f.disabled!=null){_31e.disabled=new Boolean(_31f.disabled).valueOf();_31e.className=this.getSelectClassName(_31f);}return true;};dojo.provide("webui.suntheme.widget.dropDown");dojo.declare("webui.suntheme.widget.dropDown",webui.suntheme.widget.selectBase,{submitForm:false,titleOptionLabel:"DropDown.titleOptionLabel",widgetName:"dropDown"});webui.suntheme.widget.dropDown.prototype.changed=function(){if(this.submitForm!=true){return this.inherited("changed",arguments);}else{var _320=this.listContainer;var form=_320.form;if(typeof form!="undefined"&&form!=null){this.submitterHiddenNode.value="true";var _322=_320.options;for(var i=0;i<_322.length;i++){_322[i].className=this.getOptionClassName(_322[i]);}form.submit();}}return true;};webui.suntheme.widget.dropDown.event=webui.suntheme.widget.dropDown.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_dropDown_event_refresh_begin",endTopic:"webui_suntheme_widget_dropDown_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_dropDown_event_state_begin",endTopic:"webui_suntheme_widget_dropDown_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_dropDown_event_submit_begin",endTopic:"webui_suntheme_widget_dropDown_event_submit_end"}};webui.suntheme.widget.dropDown.prototype.getProps=function(){var _324=this.inherited("getProps",arguments);if(this.submitForm!=null){_324.submitForm=this.submitForm;}return _324;};webui.suntheme.widget.dropDown.prototype.postCreate=function(){if(this.id){this.submitterHiddenNode.id=this.id+"_submitter";}if(this.submitForm){if(new Boolean(this.submitForm).valueOf()==true){this.selectClassName=this.widget.getClassName("MENU_JUMP");this.selectDisabledClassName=this.widget.getClassName("MENU_JUMP_DISABLED");this.optionClassName=this.widget.getClassName("MENU_JUMP_OPTION");this.optionDisabledClassName=this.widget.getClassName("MENU_JUMPOPTION_DISABLED");this.optionGroupClassName=this.widget.getClassName("MENU_JUMP_OPTION_GROUP");this.optionSelectedClassName=this.widget.getClassName("MENU_JUMP_OPTION_SELECTED");this.optionSeparatorClassName=this.widget.getClassName("MENU_JUMP_OPTION_SEPARATOR");}else{this.selectClassName=this.widget.getClassName("MENU_STANDARD");this.selectDisabledClassName=this.widget.getClassName("MENU_STANDARD_DISABLED");this.optionClassName=this.widget.getClassName("MENU_STANDARD_OPTION");this.optionDisabledClassName=this.widget.getClassName("MENU_STANDARD_DISABLED");this.optionGroupClassName=this.widget.getClassName("MENU_STANDARD_OPTION_GROUP");this.optionSelectedClassName=this.widget.getClassName("MENU_STANDARD_OPTION_SELECTED");this.optionSeparatorClassName=this.widget.getClassName("MENU_STANDARD_OPTION_SEPARATOR");}}return this.inherited("postCreate",arguments);};webui.suntheme.widget.dropDown.prototype.setProps=function(_325,_326){return this.inherited("setProps",arguments);};webui.suntheme.widget.dropDown.prototype._setProps=function(_327){if(_327==null){return false;}if(_327.submitForm!=null&&_327.submitForm==true){this.submitterHiddenNode.name=this.submitterHiddenNode.id;this.submitterHiddenNode.value="false";}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.editableField");dojo.declare("webui.suntheme.widget.editableField",webui.suntheme.widget.textField,{edit:false,widgetName:"editableField"});webui.suntheme.widget.editableField.prototype.disableEdit=function(_328){if(_328==true){if(this.autoSave==true&&this.savedValue&&this.savedValue!=this.fieldNode.value){this.submit();}}else{if(_328==false){if(this.savedValue){this.fieldNode.value=this.savedValue;}}}this.edit=false;this.savedValue=null;this.fieldNode.className=this.getInputClassName();this.fieldNode.readOnly=true;return true;};webui.suntheme.widget.editableField.prototype.enableEdit=function(){this.savedValue=this.fieldNode.value;this.edit=true;this.fieldNode.className=this.getInputClassName();this.fieldNode.readOnly=false;this.fieldNode.focus();this.fieldNode.select();return true;};webui.suntheme.widget.editableField.event=webui.suntheme.widget.editableField.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_editableField_event_refresh_begin",endTopic:"webui_suntheme_widget_editableField_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_editableField_event_state_begin",endTopic:"webui_suntheme_widget_editableField_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_editableField_event_submit_begin",endTopic:"webui_suntheme_widget_editableField_event_submit_end"}};webui.suntheme.widget.editableField.prototype.getInputClassName=function(){if(this.disabled==true){return this.widget.getClassName("EDITABLE_FIELD_DISABLED","");}var _329=(this.valid==false)?" "+this.widget.getClassName("EDITABLE_FIELD_INVALID",""):"";return (this.edit==true)?this.widget.getClassName("EDITABLE_FIELD_EDIT","")+_329:this.widget.getClassName("EDITABLE_FIELD_DEFAULT","")+_329;};webui.suntheme.widget.editableField.prototype.getProps=function(){var _32a=this.inherited("getProps",arguments);if(this.autoSave!=null){_32a.autoSave=this.autoSave;}return _32a;};webui.suntheme.widget.editableField.prototype.onEditCallback=function(_32b){if(_32b==null){return false;}if(_32b.type=="dblclick"){this.enableEdit();return true;}if(_32b.type=="blur"){this.disableEdit(true);return true;}if(_32b.type=="keyup"){if(this.edit==false){if(_32b.keyCode==32){this.enableEdit();}}else{if(_32b.keyCode==27){this.disableEdit(false);}}return true;}return true;};webui.suntheme.widget.editableField.prototype.postCreate=function(){this.fieldNode.readOnly=true;dojo.connect(this.fieldNode,"ondblclick",this,"onEditCallback");dojo.connect(this.fieldNode,"onblur",this,"onEditCallback");dojo.connect(this.fieldNode,"onkeyup",this,"onEditCallback");return this.inherited("postCreate",arguments);};webui.suntheme.widget.editableField.prototype.setProps=function(_32c,_32d){return this.inherited("setProps",arguments);};webui.suntheme.widget.editableField.prototype._setProps=function(_32e){if(_32e==null){return false;}_32e.readOnly=null;if(_32e.autoSave!=null){this.autoSave=_32e.autoSave;}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.hiddenField");dojo.declare("webui.suntheme.widget.hiddenField",webui.suntheme.widget.widgetBase,{disabled:false,widgetName:"hiddenField"});webui.suntheme.widget.hiddenField.event=webui.suntheme.widget.hiddenField.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_hiddenField_event_refresh_begin",endTopic:"webui_suntheme_widget_hiddenField_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_hiddenField_event_state_begin",endTopic:"webui_suntheme_widget_hiddenField_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_hiddenField_event_submit_begin",endTopic:"webui_suntheme_widget_hiddenField_event_submit_end"}};webui.suntheme.widget.hiddenField.prototype.getProps=function(){var _32f=this.inherited("getProps",arguments);if(this.disabled!=null){_32f.disabled=this.disabled;}if(this.name){_32f.name=this.name;}if(this.value){_32f.value=this.value;}return _32f;};webui.suntheme.widget.hiddenField.prototype.setProps=function(_330,_331){return this.inherited("setProps",arguments);};webui.suntheme.widget.hiddenField.prototype._setProps=function(_332){if(_332==null){return false;}if(_332.name){this.domNode.name=_332.name;}if(_332.value){this.domNode.value=_332.value;}if(_332.disabled!=null){this.domNode.disabled=new Boolean(_332.disabled).valueOf();}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.hyperlink");dojo.declare("webui.suntheme.widget.hyperlink",webui.suntheme.widget.anchorBase,{widgetName:"hyperlink"});webui.suntheme.widget.hyperlink.event=webui.suntheme.widget.hyperlink.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_hyperlink_event_refresh_begin",endTopic:"webui_suntheme_widget_hyperlink_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_hyperlink_event_state_begin",endTopic:"webui_suntheme_widget_hyperlink_event_state_end"}};webui.suntheme.widget.hyperlink.prototype.getClassName=function(){var _333=(this.disabled==true)?this.widget.getClassName("HYPERLINK_DISABLED",""):this.widget.getClassName("HYPERLINK","");return (this.className)?_333+" "+this.className:_333;};webui.suntheme.widget.hyperlink.prototype.onClickCallback=function(_334){if(this.disabled==true){_334.preventDefault();return false;}var _335=(this.domNode._onclick)?this.domNode._onclick(_334):true;if(_335==false){_334.preventDefault();return false;}if(this.href){return false;}_334.preventDefault();if(this.formId==null){var form=this.widget.getForm(this.domNode);this.formId=(form)?form.id:null;}return this.submitFormData(this.formId,this.params);};webui.suntheme.widget.hyperlink.prototype.postCreate=function(){this.domNode.href="#";dojo.connect(this.domNode,"onclick",this,"onClickCallback");return this.inherited("postCreate",arguments);};webui.suntheme.widget.hyperlink.prototype.setProps=function(_337,_338){return this.inherited("setProps",arguments);};webui.suntheme.widget.hyperlink.prototype.submitFormData=function(_339,_33a){var _33b=document.getElementById(_339);var _33c=_33b.target;var _33d=_33b.action;var link=document.getElementById(this.id);if(link==null){link=this.domNode;}_33b.action+="?"+link.id+"_submittedLink="+link.id;if(link.target&&link.target.length>0){_33b.target=link.target;}else{_33b.target="_self";}if(_33a!=null){var x;for(var i=0;i<_33a.length;i++){x=_33a[i];_33b.action+="&"+_33a[i]+"="+_33a[i+1];i++;}}_33b.submit();if(link.target!=null){_33b.target=_33c;_33b.action=_33d;}return false;};dojo.provide("webui.suntheme.widget.image");dojo.declare("webui.suntheme.widget.image",webui.suntheme.widget.widgetBase,{border:0,widgetName:"image"});webui.suntheme.widget.image.event=webui.suntheme.widget.image.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_image_event_refresh_begin",endTopic:"webui_suntheme_widget_image_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_image_event_state_begin",endTopic:"webui_suntheme_widget_image_event_state_end"}};webui.suntheme.widget.image.prototype.getProps=function(){var _341=this.inherited("getProps",arguments);if(this.alt){_341.alt=this.alt;}if(this.icon){_341.icon=this.icon;}if(this.align){_341.align=this.align;}if(this.border!=null){_341.border=this.border;}if(this.height){_341.height=this.height;}if(this.hspace){_341.hspace=this.hspace;}if(this.longDesc){_341.longDesc=this.longDesc;}if(this.src){_341.src=this.src;}if(this.vspace){_341.vspace=this.vspace;}if(this.width){_341.width=this.width;}return _341;};webui.suntheme.widget.image.prototype.setProps=function(_342,_343){return this.inherited("setProps",arguments);};webui.suntheme.widget.image.prototype._setProps=function(_344){if(_344==null){return false;}if(_344.icon!=null){_344=this.widget.getImageProps(_344.icon,_344);}if(_344.alt){this.domNode.alt=_344.alt;}if(_344.align){this.domNode.align=_344.align;}if(_344.border!=null){this.domNode.border=_344.border;}if(_344.height){this.domNode.height=_344.height;}if(_344.hspace){this.domNode.hspace=_344.hspace;}if(_344.longDesc){this.domNode.longDesc=_344.longDesc;}if(_344.src){this.domNode.src=_344.src;}if(_344.vspace){this.domNode.vspace=_344.vspace;}if(_344.width){this.domNode.width=_344.width;}this.setCommonProps(this.domNode,_344);this.setEventProps(this.domNode,_344);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.imageButton");dojo.declare("webui.suntheme.widget.imageButton",webui.suntheme.widget.button,{widgetName:"imageButton"});webui.suntheme.widget.imageButton.event=webui.suntheme.widget.imageButton.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_imageButton_event_refresh_begin",endTopic:"webui_suntheme_widget_imageButton_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_imageButton_event_state_begin",endTopic:"webui_suntheme_widget_imageButton_event_state_end"}};webui.suntheme.widget.imageButton.prototype.getClassName=function(){var key=(this.disabled==true)?"BUTTON3_DISABLED":"BUTTON3";var _346=this.widget.getClassName(key,"");return (this.className)?_346+" "+this.className:_346;};webui.suntheme.widget.imageButton.prototype.getHoverClassName=function(){var key="BUTTON3_HOVER";var _348=this.widget.getClassName(key,"");return (this.className)?_348+" "+this.className:_348;};webui.suntheme.widget.imageButton.prototype.getProps=function(){var _349=this.inherited("getProps",arguments);if(this.src){_349.src=this.src;}return _349;};webui.suntheme.widget.imageButton.prototype.setProps=function(_34a,_34b){return this.inherited("setProps",arguments);};webui.suntheme.widget.imageButton.prototype._setProps=function(_34c){if(_34c==null){return false;}if(_34c.src){this.domNode.src=_34c.src;}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.imageHyperlink");dojo.declare("webui.suntheme.widget.imageHyperlink",webui.suntheme.widget.hyperlink,{widgetName:"imageHyperlink"});webui.suntheme.widget.imageHyperlink.prototype.addContents=function(_34d){if(_34d.contents==null){return false;}this.widget.removeChildNodes(this.leftContentsContainer);this.widget.removeChildNodes(this.rightContentsContainer);for(i=0;i<_34d.contents.length;i++){this.widget.addFragment(this.leftContentsContainer,_34d.contents[i],"last");this.widget.addFragment(this.rightContentsContainer,_34d.contents[i],"last");}return true;};webui.suntheme.widget.imageHyperlink.event=webui.suntheme.widget.imageHyperlink.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_imageHyperlink_event_refresh_begin",endTopic:"webui_suntheme_widget_imageHyperlink_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_imageHyperlink_event_state_begin",endTopic:"webui_suntheme_widget_imageHyperlink_event_state_end"}};webui.suntheme.widget.imageHyperlink.prototype.getProps=function(){var _34e=this.inherited("getProps",arguments);if(this.enabledImage){_34e.enabledImage=this.enabledImage;}if(this.disabledImage){_34e.disabledImage=this.disabledImage;}if(this.imagePosition){_34e.imagePosition=this.imagePosition;}return _34e;};webui.suntheme.widget.imageHyperlink.prototype.postCreate=function(){if(this.id){this.enabledImageContainer.id=this.id+"_enabled";this.disabledImageContainer.id=this.id+"_disabled";this.leftContentsContainer.id=this.id+"_leftContents";this.rightContentsContainer.id=this.id+"_rightContents";}return this.inherited("postCreate",arguments);};webui.suntheme.widget.imageHyperlink.prototype.setProps=function(_34f,_350){return this.inherited("setProps",arguments);};webui.suntheme.widget.imageHyperlink.prototype._setProps=function(_351){if(_351==null){return false;}if(_351.disabled!=null){var _352=new Boolean(_351.disabled).valueOf();if(this.disabledImage){webui.suntheme.common.setVisibleElement(this.enabledImageContainer,!_352);webui.suntheme.common.setVisibleElement(this.disabledImageContainer,_352);}}if(_351.enabledImage){this.widget.addFragment(this.enabledImageContainer,_351.enabledImage);}if(_351.disabledImage){this.widget.addFragment(this.disabledImageContainer,_351.disabledImage);}if(_351.imagePosition){var left=(_351.imagePosition=="left");webui.suntheme.common.setVisibleElement(this.leftContentsContainer,!left);webui.suntheme.common.setVisibleElement(this.rightContentsContainer,left);}this.addContents(_351);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.common");webui.suntheme.widget.jsfx.common={processRefreshEvent:function(_354){if(_354==null){return false;}var _355=document.getElementById(_354.id);DynaFaces.fireAjaxTransaction((_355)?_355:document.forms[0],{execute:(_354.execute)?_354.execute:"none",render:_354.id,replaceElement:webui.suntheme.widget.jsfx.common.refreshCallback,xjson:{id:_354.id,endTopic:_354.endTopic,event:"refresh"}});return true;},processStateEvent:function(_356){if(_356==null){return false;}var _357=document.getElementById(_356.id);DynaFaces.fireAjaxTransaction((_357)?_357:document.forms[0],{render:_356.id,replaceElement:webui.suntheme.widget.jsfx.common.stateCallback,xjson:{id:_356.id,endTopic:_356.endTopic,event:"state",props:_356.props}});return true;},processSubmitEvent:function(_358){if(_358==null){return false;}var _359=document.getElementById(_358.id);DynaFaces.fireAjaxTransaction((_359)?_359:document.forms[0],{execute:(_358.execute)?_358.execute:_358.id,render:_358.id,replaceElement:webui.suntheme.widget.jsfx.common.submitCallback,xjson:{id:_358.id,endTopic:_358.endTopic,event:"submit"}});return true;},refreshCallback:function(id,_35b,_35c,_35d){if(id==null||_35b==null){return false;}var _35e=JSON.parse(_35b);var _35f=dijit.byId(id);_35f.setProps(_35e);if(_35d.endTopic){dojo.publish(_35d.endTopic,[_35e]);}return true;},stateCallback:function(id,_361,_362,_363){if(id==null||_361==null){return false;}var _364=JSON.parse(_361);if(_363.endTopic){dojo.publish(_363.endTopic,[_364]);}return true;},submitCallback:function(id,_366,_367,_368){if(id==null||_366==null){return false;}var _369=JSON.parse(_366);if(_368.endTopic){dojo.publish(_368.endTopic,[_369]);}return true;}};dojo.provide("webui.suntheme.widget.jsfx.accordion");dojo.subscribe(webui.suntheme.widget.accordion.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.accordionTab");webui.suntheme.widget.jsfx.accordionTab={processLoadContentEvent:function(_36a){if(_36a==null){return false;}var _36b=document.getElementById(_36a.id);new DynaFaces.fireAjaxTransaction((_36b)?_36b:document.forms[0],{execute:_36a.id,render:_36a.id,replaceElement:webui.suntheme.widget.jsfx.progressBar.loadContentCallback,xjson:{id:_36a.id,event:"loadContent"}});return true;},loadContentCallback:function(id,_36d,_36e,_36f){if(id==null||_36d==null){return false;}var json=JSON.parse(_36d);var _371=dijit.byId(id);_371.setProps(json);dojo.publish(webui.suntheme.widget.accordionTab.event.load.endTopic,[json]);return true;}};dojo.subscribe(webui.suntheme.widget.accordionTab.event.load.beginTopic,webui.suntheme.widget.jsfx.accordionTab,"processLoadContentEvent");dojo.subscribe(webui.suntheme.widget.accordionTab.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.alarm");dojo.subscribe(webui.suntheme.widget.alarm.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.alert");dojo.subscribe(webui.suntheme.widget.alert.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.anchor");dojo.subscribe(webui.suntheme.widget.anchor.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.bubble");dojo.subscribe(webui.suntheme.widget.bubble.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.button");dojo.subscribe(webui.suntheme.widget.button.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.calendar");dojo.subscribe(webui.suntheme.widget.calendar.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.calendarField");dojo.subscribe(webui.suntheme.widget.calendarField.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.checkbox");dojo.subscribe(webui.suntheme.widget.checkbox.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.checkbox.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.jsfx.checkboxGroup");dojo.subscribe(webui.suntheme.widget.checkboxGroup.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.dropDown");dojo.subscribe(webui.suntheme.widget.dropDown.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.dropDown.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.jsfx.editableField");dojo.subscribe(webui.suntheme.widget.editableField.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.editableField.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.jsfx.hiddenField");dojo.subscribe(webui.suntheme.widget.hiddenField.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.hiddenField.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.jsfx.hyperlink");dojo.subscribe(webui.suntheme.widget.hyperlink.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.image");dojo.subscribe(webui.suntheme.widget.image.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.imageButton");dojo.subscribe(webui.suntheme.widget.imageButton.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.jsfx.imageHyperlink");dojo.subscribe(webui.suntheme.widget.imageHyperlink.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.label");dojo.declare("webui.suntheme.widget.label",webui.suntheme.widget.widgetBase,{level:2,required:false,valid:true,widgetName:"label"});webui.suntheme.widget.label.event=webui.suntheme.widget.label.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_label_event_refresh_begin",endTopic:"webui_suntheme_widget_label_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_label_event_state_begin",endTopic:"webui_suntheme_widget_label_event_state_end"}};webui.suntheme.widget.label.prototype.getClassName=function(){var key="LABEL_LEVEL_TWO_TEXT";if(this.valid==false){key="CONTENT_ERROR_LABEL_TEXT";}else{if(this.level==1){key="LABEL_LEVEL_ONE_TEXT";}else{if(this.level==3){key="LABEL_LEVEL_THREE_TEXT";}}}var _373=this.theme.getClassName(key);if(_373==null||_373.length==0){return this.className;}return (this.className)?_373+" "+this.className:_373;};webui.suntheme.widget.label.prototype.notify=function(_374){if(_374==null){return false;}return this.setProps({valid:_374.valid,errorImage:{title:_374.detail}});};webui.suntheme.widget.label.prototype.getProps=function(){var _375=this.inherited("getProps",arguments);if(this.contents){_375.contents=this.contents;}if(this.errorImage){_375.errorImage=this.errorImage;}if(this.htmlFor){_375.htmlFor=this.htmlFor;}if(this.level!=null){_375.level=this.level;}if(this.required!=null){_375.required=this.required;}if(this.requiredImage){_375.requiredImage=this.requiredImage;}if(this.valid!=null){_375.valid=this.valid;}if(this.value){_375.value=this.value;}return _375;};webui.suntheme.widget.label.prototype.postCreate=function(){if(this.id){this.contentsContainer.id=this.id+"_contentsContainer";this.errorImageContainer.id=this.id+"_errorImageContainer";this.requiredImageContainer.id=this.id+"_requiredImageContainer";this.valueContainer.id=this.id+"_valueContainer";}if(this.errorImage==null){this.errorImage=this.widget.getImageProps("LABEL_INVALID_ICON",{id:this.id+"_error"});}if(this.requiredImage==null){this.requiredImage=this.widget.getImageProps("LABEL_REQUIRED_ICON",{id:this.id+"_required"});}return this.inherited("postCreate",arguments);};webui.suntheme.widget.label.prototype.setProps=function(_376,_377){if(_376==null){return false;}if(_376.contents){this.contents=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.label.prototype._setProps=function(_378){if(_378==null){return false;}if(_378.htmlFor){this.domNode.htmlFor=_378.htmlFor;}if(_378.valid!=null){this.valid=new Boolean(_378.valid).valueOf();}if(_378.required!=null){this.required=new Boolean(_378.required).valueOf();}if(_378.value){this.widget.addFragment(this.valueContainer,_378.value);}if(_378.errorImage||_378.valid!=null){if(_378.errorImage==null){_378.errorImage={};}_378.errorImage.id=this.errorImage.id;_378.errorImage.visible=!this.valid;this.widget.updateFragment(this.errorImageContainer,_378.errorImage);}if(_378.requiredImage||_378.required!=null){if(_378.requiredImage==null){_378.requiredImage={};}_378.requiredImage.id=this.requiredImage.id;_378.requiredImage.visible=this.required;this.widget.updateFragment(this.requiredImageContainer,_378.requiredImage);}if(_378.contents){this.widget.removeChildNodes(this.contentsContainer);for(var i=0;i<_378.contents.length;i++){this.widget.addFragment(this.contentsContainer,_378.contents[i],"last");}}this.setCommonProps(this.domNode,_378);this.setEventProps(this.domNode,_378);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.label");dojo.subscribe(webui.suntheme.widget.label.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.listbox");dojo.declare("webui.suntheme.widget.listbox",webui.suntheme.widget.selectBase,{monospace:false,multiple:false,size:12,titleOptionLabel:"ListSelector.titleOptionLabel",widgetName:"listbox"});webui.suntheme.widget.listbox.event=webui.suntheme.widget.listbox.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_listbox_event_refresh_begin",endTopic:"webui_suntheme_widget_listbox_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_listbox_event_state_begin",endTopic:"webui_suntheme_widget_listbox_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_listbox_event_submit_begin",endTopic:"webui_suntheme_widget_listbox_event_submit_end"}};webui.suntheme.widget.listbox.prototype.getProps=function(){var _37a=this.inherited("getProps",arguments);if(this.size!=null){_37a.size=this.size;}if(this.multiple!=null){_37a.multiple=this.multiple;}if(this.monospace!=null){_37a.monospace=this.monospace;}return _37a;};webui.suntheme.widget.listbox.prototype.getSelectClassName=function(_37b){if(_37b.monospace==true){return (_37b.disabled==true)?this.selectMonospaceDisabledClassName:this.selectMonospaceClassName;}return this.inherited("getSelectClassName",arguments);};webui.suntheme.widget.listbox.prototype.postCreate=function(){this.selectClassName=this.widget.getClassName("LIST");this.selectDisabledClassName=this.widget.getClassName("LIST_DISABLED");this.selectMonospaceClassName=this.widget.getClassName("LIST_MONOSPACE");this.selectMonospaceDisabledClassName=this.widget.getClassName("LIST_MONOSPACE_DISABLED");this.optionClassName=this.widget.getClassName("LIST_OPTION");this.optionDisabledClassName=this.widget.getClassName("LIST_OPTION_DISABLED");this.optionGroupClassName=this.widget.getClassName("LIST_OPTION_GROUP");this.optionSelectedClassName=this.widget.getClassName("LIST_OPTION_SELECTED");this.optionSeparatorClassName=this.widget.getClassName("LIST_OPTION_SEPARATOR");return this.inherited("postCreate",arguments);};webui.suntheme.widget.listbox.prototype.setProps=function(_37c,_37d){return this.inherited("setProps",arguments);};webui.suntheme.widget.listbox.prototype.setSelectProps=function(_37e,_37f){if(_37f.size!=null){_37e.size=(_37f.size<1)?12:_37f.size;}if(_37f.multiple!=null){_37e.multiple=new Boolean(_37f.multiple).valueOf();}return this.inherited("setSelectProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.listbox");dojo.subscribe(webui.suntheme.widget.listbox.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.listbox.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.menuBase");dojo.declare("webui.suntheme.widget.menuBase",webui.suntheme.widget.widgetBase);webui.suntheme.widget.menuBase.prototype.addOptions=function(_380,_381){var _382,_383,_384,_385;for(var i=0;i<_381.options.length;i++){_383=this.optionContainer.cloneNode(false);_383.id=this.id+"_"+_381.options[i].label+"_container";this.setOptionNodeProps(_383,_381.options[i],i);_380.appendChild(_383);if(_381.options[i].group==true){_383.group=true;_382=this.groupOptionContainer.cloneNode(false);_380.appendChild(_382);this.addOptions(_382,_381.options[i]);}if(_381.options[i].separator==true){_384=this.menuSeparatorContainer.cloneNode(true);if(webui.suntheme.browser.isIe5up()){var sep=this.menuSeparator.cloneNode(true);_384.appendChild(sep);}webui.suntheme.common.setVisibleElement(_384,true);_380.appendChild(_384);}}return true;};webui.suntheme.widget.menuBase.prototype.createOnClickCallback=function(_388){var _id=this.id;return function(_38a){var elem=document.getElementById(_388);if(elem==null){return;}var _38c=dijit.byId(_id);var val=elem.selectValue;var dis=elem.disabled;var _38f=elem.group;if(!dis&&!_38f){_38c.processOnClickEvent(val);}};};webui.suntheme.widget.menuBase.prototype.createOnKeyDownCallBack=function(_390){if(_390==null){return;}var id=this.id;var _392=this.widget;return function(_393){var elem=document.getElementById(_390);if(elem==null){return;}var _395=dijit.byId(id);if(!webui.suntheme.common.isVisibleElement(_395.domNode)){return;}_393=_392.getEvent(_393);var _396=_392.getKeyCode(_393);var _397=true;if(this._onkeypress){_397=(this._onkeypress)?this._onkeypress():true;}if(_397!=false){_395.traverseMenu(_396,_393,_390);}return true;};};webui.suntheme.widget.menuBase.prototype.createOnMouseOutCallBack=function(_398){if(_398==null){return null;}var _id=this.id;return function(_39a){var _39b=dijit.byId(_id);_398.className=_39b.theme.getClassName("MENU_GROUP_CONTAINER");};};webui.suntheme.widget.menuBase.prototype.createOnMouseOverCallBack=function(_39c){if(_39c==null){return null;}var _id=this.id;return function(_39e){var _39f=dijit.byId(_id);_39c.className=_39c.className+" "+_39f.theme.getClassName("MENU_ITEM_HOVER");if(_39f!=null){if(document.getElementById(_39f.menuId[_39f.focusPosition]).blur){document.getElementById(_39f.menuId[_39f.focusPosition]).blur();}if(!(_39c.id==_39f.menuId[_39f.focusPosition])){document.getElementById(_39f.menuId[_39f.focusPosition]).className=_39f.theme.getClassName("MENU_GROUP_CONTAINER");}}if(webui.suntheme.browser.isIe5up()){_39c.className=_39c.className+" "+_39f.theme.getClassName("MENU_ITEM_HOVER");}};};webui.suntheme.widget.menuBase.prototype.getMaxWidth=function(_3a0){var _3a1=0;var _3a2=0;for(var i=0;i<_3a0.length;i++){_3a1=_3a0[i].label.length;if(_3a1>_3a2){_3a2=_3a1;}if(_3a0[i].image!=null){this.hasImage=true;}if(_3a0[i].group){this.containsGroup=true;_3a2=this.getMaxWidth(_3a0[i].options);}}return _3a2;};webui.suntheme.widget.menuBase.prototype.getProps=function(){var _3a4=this.inherited("getProps",arguments);if(this.options){_3a4.options=this.options;}if(this.formId){_3a4.formId=this.formId;}if(this.submitForm){_3a4.submitForm=this.submitForm;}return _3a4;};webui.suntheme.widget.menuBase.prototype.getSelectedValue=function(){if(this.clickedItem){return this.clickedItem;}else{return null;}};webui.suntheme.widget.menuBase.prototype.getStyle=function(){var _3a5="width:"+this.maxWidth+"em;";if(!this.widthSet){var st=this.style;var reg=";?[\\t]*width[\\t]*:";if(st!=null){var res=st.match(reg);if(this.style&&res!=null){return this.style;}}}this.widthSet=true;return (this.style)?_3a5+this.style:_3a5;};webui.suntheme.widget.menuBase.prototype.postCreate=function(){this.domNode.getSelectedValue=function(_3a9,_3aa){return dijit.byId(this.id).getSelectedValue();};this.focusPosition=0;return this.inherited("postCreate",arguments);};webui.suntheme.widget.menuBase.prototype.processEnterKeyPressEvent=function(_3ab){var _3ac=true;var bool=(_3ab==this.getSelectedValue());this.setSelectedValue(_3ab);if(this._onchange&&!bool){_3ac=(this._onchange)?this._onchange():true;}if(_3ac!=false){if(this.submitForm){this.submitFormData();}}return true;};webui.suntheme.widget.menuBase.prototype.processOnClickEvent=function(_3ae){var _3af=true;var _3b0=true;var bool=(_3ae==this.getSelectedValue());this.setSelectedValue(_3ae);if(this._onclick){_3af=(this._onclick)?this._onclick():true;}if(this._onchange&&!bool){_3b0=(this._onchange)?this._onchange():true;}if(_3af!=false&&_3b0!=false){if(this.submitForm){this.submitFormData();}}return true;};webui.suntheme.widget.menuBase.prototype.setMenuNodeClassName=function(_3b2,_3b3){if(new Boolean(_3b3.group).valueOf()==true){_3b2.className=this.theme.getClassName("MENU_GROUP_HEADER");}else{if(new Boolean(_3b3.disabled).valueOf()==true){_3b2.className=this.theme.getClassName("MENU_ITEM_DISABLED");}else{_3b2.className=this.theme.getClassName("MENU_GROUP_CONTAINER");dojo.connect(_3b2,"onmouseover",this.createOnMouseOverCallBack(_3b2));dojo.connect(_3b2,"onmouseout",this.createOnMouseOutCallBack(_3b2));}}return true;};webui.suntheme.widget.menuBase.prototype.setOptionNodeProps=function(_3b4,_3b5,_3b6){_3b4.id=this.id+"_"+_3b5.value+"_container";var _3b7=this.menuItemContainer.cloneNode(false);_3b7.id=_3b4.id+"_label";this.setMenuNodeClassName(_3b7,_3b5);_3b4.appendChild(_3b7);var _3b8=this.menuItemNode.cloneNode(false);_3b8.id=this.id+"_"+_3b5.value;if(!(new Boolean(_3b5.group).valueOf()==true)&&!(new Boolean(_3b5.disabled).valueOf()==true)){this.menuId[this.menuItemCount++]=_3b7.id;}_3b7.tabIndex=-1;_3b8.tabIndex=-1;_3b7.selectValue=_3b5.value;_3b7.disabled=_3b5.disabled;_3b7.group=_3b5.group;_3b7.title=_3b5.label;_3b8.title=_3b5.label;if(_3b8.setAttributeNS){_3b8.setAttributeNS("http://www.w3.org/2005/07/aaa","posinset",_3b6);}if(_3b8.setAttributeNS){_3b8.setAttributeNS("http://www.w3.org/2005/07/aaa","disabled",_3b5.disabled);}dojo.connect(_3b7,"onkeydown",this.createOnKeyDownCallBack(_3b7.id));dojo.connect(_3b7,"onclick",this.createOnClickCallback(_3b7.id));if(_3b5.label){this.widget.addFragment(_3b8,_3b5.label,"last",_3b5.escape);}if(_3b5.title){_3b4.title=_3b5.title;}if(new Boolean(this.hasImage).valueOf()==true){var _3b9=this.menuItemNoImageContainer.cloneNode(false);if(_3b5.image!=null){_3b9=this.menuItemImageContainer.cloneNode(false);_3b5.image.className=this.theme.getClassName("MENU_ITEM_IMAGE");this.widget.addFragment(_3b9,_3b5.image);}_3b7.appendChild(_3b9);}_3b7.appendChild(this.menuItemSubMenu.cloneNode(false));_3b7.appendChild(_3b8);return true;};webui.suntheme.widget.menuBase.prototype.setProps=function(_3ba,_3bb){if(_3ba==null){return false;}if(_3ba.options){this.options=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.menuBase.prototype._setProps=function(_3bc){if(_3bc==null){return false;}if(_3bc.onChange){this._onchange=(typeof _3bc.onChange=="string")?new Function(_3bc.onChange):_3bc.onChange;_3bc.onChange=null;}if(_3bc.onClick){this._onclick=(typeof _3bc.onClick=="string")?new Function(_3bc.onClick):_3bc.onClick;_3bc.onClick=null;}if(_3bc.options){this.maxWidth=this.getMaxWidth(_3bc.options);if(this.hasImage){var _3bd=parseFloat(this.theme.getMessage("Menu.placeHolderImageWidth"));this.maxWidth+=_3bd;}if(this.containsGroup){this.maxWidth+=1;}this.widget.removeChildNodes(this.outerMenuContainer);this.menuId=[];this.menuItemCount=0;var _3be=this.groupOptionContainer.cloneNode(false);_3be.className=this.theme.getClassName("MENU_CONTAINER");this.outerMenuContainer.appendChild(_3be);this.addOptions(_3be,_3bc);}if(_3bc.style||_3bc.options){_3bc.style=this.getStyle();}this.setCommonProps(this.domNode,_3bc);this.setEventProps(this.domNode,_3bc);return this.inherited("_setProps",arguments);};webui.suntheme.widget.menuBase.prototype.setSelectedValue=function(item){this.clickedItem=item;return true;};webui.suntheme.widget.menuBase.prototype.submitFormData=function(){var _3c0=document.getElementById(this.formId);var _3c1=_3c0.action;var _3c2=_3c0.target;_3c0.action+="?"+this.id+"_submittedValue="+this.getSelectedValue();_3c0.target="_self";_3c0.submit();_3c0.action=_3c1;_3c0.target=_3c2;return false;};webui.suntheme.widget.menuBase.prototype.traverseMenu=function(_3c3,_3c4,_3c5){var arr=this.menuId;var elem=document.getElementById(_3c5);var _3c8=document.getElementById(arr[this.focusPosition]);if(_3c8.blur){_3c8.blur();}if(_3c3>=37&&_3c3<=40){if(_3c3==38){_3c8.className=this.theme.getClassName("MENU_GROUP_CONTAINER");this.focusPosition--;if(this.focusPosition<0){this.focusPosition=arr.length-1;}_3c8=document.getElementById(arr[this.focusPosition]);}else{if(_3c3==40){_3c8.className=this.theme.getClassName("MENU_GROUP_CONTAINER");this.focusPosition++;if(this.focusPosition==arr.length){this.focusPosition=0;}_3c8=document.getElementById(arr[this.focusPosition]);}}if(_3c8.focus){_3c8.focus();}_3c8.className=_3c8.className+" "+this.theme.getClassName("MENU_FOCUS");}else{if(_3c3==13){_3c8.className=this.theme.getClassName("MENU_GROUP_CONTAINER");var val=elem.selectValue;this.processEnterKeyPressEvent(val);}}if(webui.suntheme.browser.isIe5up()){window.event.cancelBubble=true;window.event.returnValue=false;}else{_3c4.stopPropagation();_3c4.preventDefault();}return true;};dojo.provide("webui.suntheme.widget.popupMenu");dojo.declare("webui.suntheme.widget.popupMenu",webui.suntheme.widget.menuBase,{widgetName:"popupMenu"});webui.suntheme.widget.popupMenu.prototype.close=function(){if(webui.suntheme.common.isVisibleElement(this.domNode)){if(webui.suntheme.widget.popupMenu.activeMenuId){webui.suntheme.widget.popupMenu.activeMenuId=null;}if(this.target!=null){if(this.target.focus){this.target.focus();}}return this.setProps({visible:false});}return false;};webui.suntheme.widget.popupMenu.event=webui.suntheme.widget.popupMenu.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_popupMenu_event_refresh_begin",endTopic:"webui_suntheme_widget_popupMenu_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_popupMenu_event_state_begin",endTopic:"webui_suntheme_widget_popupMenu_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_popupMenu_event_submit_begin",endTopic:"webui_suntheme_widget_popupMenu_event_submit_end"}};webui.suntheme.widget.popupMenu.prototype.onCloseMenuCallBack=function(_3ca){var evt=(_3ca)?_3ca:((window.event)?window.event:null);var _3cc=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);if((evt.type=="keydown")&&(evt.keyCode!=27)){return false;}while(_3cc!=null){if(_3cc.className=="Menu_sun4"){return false;}_3cc=_3cc.parentNode;}var _3cd=this.domNode.offsetLeft;var _3ce=this.domNode.offsetTop;var tmp;var _3d0=_3cd+this.domNode.offsetWidth-this.rightShadow;var _3d1=_3ce+this.domNode.offsetHeight-this.bottomShadow;if(window.pageXOffset||window.pageYOffset){var _3d2=evt.clientX+window.pageXOffset;var _3d3=evt.clientY+window.pageYOffset;}else{if(document.documentElement.scrollLeft||document.documentElement.scrollTop){var _3d2=evt.clientX+document.documentElement.scrollLeft;var _3d3=evt.clientY+document.documentElement.scrollTop;}else{var _3d2=evt.clientX+document.body.scrollLeft;var _3d3=evt.clientY+document.body.scrollTop;}}if((_3d2>=_3cd)&&(_3d2<=_3d0)&&(_3d3>=_3ce)&&(_3d3<=_3d1)){return;}if((evt.type=="keydown"&&evt.keyCode==27)||evt.type=="click"){this.close();}return true;};webui.suntheme.widget.popupMenu.prototype.open=function(_3d4){var evt=this.widget.getEvent(_3d4);var _3d6=this.widget.getKeyCode(evt);if(evt.type=="keydown"||evt.type=="keypress"){if(!(evt.shiftKey&&_3d6==121)){return false;}if(webui.suntheme.browser.isIe5up()){window.event.cancelBubble=true;window.event.returnValue=false;}else{evt.stopPropagation();evt.preventDefault();}}var _3d7=dijit.byId(webui.suntheme.widget.popupMenu.activeMenuId);if(_3d7){_3d7.close();}webui.suntheme.widget.popupMenu.activeMenuId=this.id;var evt=(_3d4)?_3d4:((window.event)?window.event:null);if(evt){evt.cancelBubble=true;}if(webui.suntheme.common.isVisibleElement(this.domNode)){return false;}if(this.style!=null){if(this.domNode.style.length!=null){for(var i=0;i<this.domNode.style.length;i++){var x=this.domNode.style[i];if(this.domNode.style[i]=="top"){this.top=this.domNode.style.top;}if(this.domNode.style[i]=="left"){this.left=this.domNode.style.left;}}}else{if(this.style.top!=""){this.top=this.domNode.style.top;}if(this.domNode.style.left!=""){this.left=this.domNode.style.left;}}}this.setProps({visible:true});if((this.top!=null)&&(this.left!=null)){this.domNode.style.left=this.left;this.domNode.style.top=this.top;}else{if(evt==null){return false;}var _3da=(evt.target)?evt.target:((evt.srcElement)?evt.srcElement:null);var _3db=this.widget.getPosition(_3da);var _3dc=_3db[0];var _3dd=_3db[1];var _3de=_3dc+this.rightShadow;var _3df=_3de+this.domNode.offsetWidth;var _3e0=this.widget.getPageWidth();if(_3df>_3e0){_3de-=(_3df-_3e0);}if((window.pageXOffset!=null)&&(window.pageXOffset>0)){_3de+=window.pageXOffset;}if((document.body.scrollLeft!=null)&&(document.body.scrollLeft>0)){_3de+=document.body.scrollLeft;}if((document.documentElement.scrollLeft!=null)&&(document.documentElement.scrollLeft>0)){_3de+=document.documentElement.scrollLeft;}if(_3de<0){_3de=0;}var _3e1=_3dd+_3da.offsetHeight+this.bottomShadow;if((window.pageYOffset!=null)&&(window.pageYOffset>0)){_3e1+=window.pageYOffset;}if((document.body.scrollTop!=null)&&(document.body.scrollTop>0)){_3e1+=document.body.scrollTop;}if((document.documentElement.scrollTop!=null)&&(document.documentElement.scrollTop>0)){_3e1+=document.documentElement.scrollTop;}var _3e2=_3e1+this.domNode.offsetHeight-this.bottomShadow;if(_3e2>this.widget.getPageHeight()){_3e1=_3dd-this.domNode.offsetHeight;if(_3e1<=0){_3e1=_3dd+_3da.offsetHeight-this.bottomShadow;}}this.domNode.style.left=_3de+"px";this.domNode.style.top=_3e1+"px";}if(evt.target){this.target=evt.target;}else{if(evt.srcElement){this.target=evt.srcElement;}}if(this.target.blur){this.target.blur();}if(this.focusPosition>0){var _3e3=document.getElementById(this.menuId[this.focusPosition]);if(_3e3){_3e3.className=this.theme.getClassName("MENU_GROUP_CONTAINER");}}this.focusPosition=0;_3e3=document.getElementById(this.menuId[0]);_3e3.className=_3e3.className+" "+this.theme.getClassName("MENU_FOCUS");if(_3e3.focus){_3e3.focus();}return true;};webui.suntheme.widget.popupMenu.prototype.postCreate=function(){this.domNode.open=function(_3e4){return dijit.byId(this.id).open(_3e4);};this.domNode.close=function(){return dijit.byId(this.id).close();};dojo.connect(document,"onclick",this,"onCloseMenuCallBack");dojo.connect(document,"onkeydown",this,"onCloseMenuCallBack");this.rightShadow=parseFloat(this.theme.getMessage("Menu.rightShadow"));this.bottomShadow=parseFloat(this.theme.getMessage("Menu.bottomShadow"));this.shadowContainer.className=this.theme.getClassName("MENU_SHADOW_CONTAINER");return this.inherited("postCreate",arguments);};webui.suntheme.widget.popupMenu.prototype.processEnterKeyPressEvent=function(_3e5){this.inherited("processEnterKeyPressEvent",arguments);this.close();return true;};webui.suntheme.widget.popupMenu.prototype.processOnClickEvent=function(_3e6){this.inherited("processOnClickEvent",arguments);this.close();return true;};webui.suntheme.widget.popupMenu.prototype.traverseMenu=function(_3e7,_3e8,_3e9){if(_3e7==27||_3e7==9){var _3ea=document.getElementById(this.menuId[this.focusPosition]);_3ea.className=this.theme.getClassName("MENU_GROUP_CONTAINER");this.close();return true;}else{if(_3e7>=33&&_3e7<=36){_3ea=document.getElementById(this.menuId[this.focusPosition]);_3ea.className=this.theme.getClassName("MENU_GROUP_CONTAINER");if(_3e7==33||_3e7==36){this.focusPosition=0;_3ea=document.getElementById(this.menuId[this.focusPosition]);}if(_3e7==34||_3e7==35){this.focusPosition=this.menuId.length-1;_3ea=document.getElementById(this.menuId[this.focusPosition]);}if(_3ea.focus){_3ea.focus();}_3ea.className=_3ea.className+" "+this.theme.getClassName("MENU_FOCUS");if(webui.suntheme.browser.isIe5up()){window.event.cancelBubble=true;window.event.returnValue=false;}else{_3e8.stopPropagation();_3e8.preventDefault();}return true;}}this.inherited("traverseMenu",arguments);return true;};webui.suntheme.widget.popupMenu.prototype.submit=function(_3eb){dojo.publish(webui.suntheme.widget.popupMenu.event.submit.beginTopic,[{id:this.id,execute:_3eb,value:this.getSelectedValue(),endTopic:webui.suntheme.widget.popupMenu.event.submit.endTopic}]);return true;};dojo.provide("webui.suntheme.widget.jsfx.popupMenu");webui.suntheme.widget.jsfx.popupMenu={processSubmitEvent:function(_3ec){if(_3ec==null){return false;}var _3ed=document.getElementById(_3ec.id);DynaFaces.fireAjaxTransaction((_3ed)?_3ed:document.forms[0],{execute:(_3ec.execute)?_3ec.execute:_3ec.id,render:_3ec.id,replaceElement:webui.suntheme.widget.jsfx.common.submitCallback,xjson:{id:_3ec.id,endTopic:_3ec.endTopic,value:_3ec.value,event:"submit"}});return true;}};dojo.subscribe(webui.suntheme.widget.popupMenu.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.popupMenu.event.submit.beginTopic,webui.suntheme.widget.jsfx.popupMenu,"processSubmitEvent");dojo.provide("webui.suntheme.widget.progressBar");dojo.declare("webui.suntheme.widget.progressBar",webui.suntheme.widget.widgetBase,{percentChar:"%",progress:0,type:"DETERMINATE",busy:"BUSY",canceled:"canceled",completed:"completed",determinate:"DETERMINATE",failed:"failed",indeterminate:"INDETERMINATE",notstarted:"not_started",paused:"paused",resumed:"resumed",stopped:"stopped",widgetName:"progressBar"});webui.suntheme.widget.progressBar.prototype.cancel=function(){clearTimeout(this.timeoutId);this.hiddenFieldNode.value=this.canceled;if(this.type==this.determinate){this.innerBarContainer.style.width="0%";}return this.updateProgress();};webui.suntheme.widget.progressBar.event=webui.suntheme.widget.progressBar.prototype.event={progress:{beginTopic:"webui_suntheme_widget_progressBar_event_progress_begin",endTopic:"webui_suntheme_widget_progressBar_event_progress_end"},refresh:{beginTopic:"webui_suntheme_widget_progressBar_event_refresh_begin",endTopic:"webui_suntheme_widget_progressBar_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_progressBar_event_state_begin",endTopic:"webui_suntheme_widget_progressBar_event_state_end"}};webui.suntheme.widget.progressBar.prototype.getProps=function(){var _3ee=this.inherited("getProps",arguments);if(this.height){_3ee.height=this.height;}if(this.width){_3ee.width=this.width;}if(this.bottomText){_3ee.bottomText=this.bottomText;}if(this.busyImage!=null){_3ee.busyImage=this.busyImage;}if(this.failedStateText!=null){_3ee.failedStateText=this.failedStateText;}if(this.id){_3ee.id=this.id;}if(this.log!=null){_3ee.log=this.log;}if(this.logId){_3ee.logId=this.logId;}if(this.logMessage){_3ee.logMessage=this.logMessage;}if(this.overlayAnimation!=null){_3ee.overlayAnimation=this.overlayAnimation;}if(this.percentChar){_3ee.percentChar=this.percentChar;}if(this.progress!=null){_3ee.progress=this.progress;}if(this.progressImageUrl){_3ee.progressImageUrl=this.progressImageUrl;}if(this.progressControlBottom!=null){_3ee.progressControlBottom=this.progressControlBottom;}if(this.progressControlRight!=null){_3ee.progressControlRight=this.progressControlRight;}if(this.refreshRate){_3ee.refreshRate=this.refreshRate;}if(this.taskState!=null){_3ee.taskState=this.taskState;}if(this.toolTip){_3ee.toolTip=this.toolTip;}if(this.topText){_3ee.topText=this.topText;}if(this.type){_3ee.type=this.type;}return _3ee;};webui.suntheme.widget.progressBar.prototype.isBottomControlVisible=function(){return webui.suntheme.common.isVisibleElement(this.bottomControlsContainer);};webui.suntheme.widget.progressBar.prototype.isFailedStateMessageVisible=function(){return webui.suntheme.common.isVisibleElement(this.failedStateContainer);};webui.suntheme.widget.progressBar.prototype.isLogMsgVisible=function(){return webui.suntheme.common.isVisibleElement(this.logContainer);};webui.suntheme.widget.progressBar.prototype.isOperationTextVisible=function(){return webui.suntheme.common.isVisibleElement(this.topTextContainer);};webui.suntheme.widget.progressBar.prototype.isProgressBarContainerVisible=function(){return webui.suntheme.common.isVisibleElement(this.barContainer);};webui.suntheme.widget.progressBar.prototype.isProgressBarVisible=function(){return webui.suntheme.common.isVisibleElement(this);};webui.suntheme.widget.progressBar.prototype.isRightControlVisible=function(){return webui.suntheme.common.isVisibleElement(this.rightControlsContainer);};webui.suntheme.widget.progressBar.prototype.isStatusTextVisible=function(){return webui.suntheme.common.isVisibleElement(this.bottomTextContainer);};webui.suntheme.widget.progressBar.prototype.pause=function(){clearTimeout(this.timeoutId);this.hiddenFieldNode.value=this.paused;if(this.type==this.indeterminate){this.innerBarContainer.className=this.theme.getClassName("PROGRESSBAR_INDETERMINATE_PAUSED");}return this.updateProgress();};webui.suntheme.widget.progressBar.prototype.postCreate=function(){if(this.id){this.barContainer.id=this.id+"_barContainer";this.bottomControlsContainer.id=this.id+"_bottomControlsContainer";this.bottomTextContainer.id=this.id+"_bottomTextContainer";this.failedStateContainer.id=this.id+"_failedStateContainer";this.failedLabelContainer.id=this.id+"_failedLabelContainer";this.hiddenFieldNode.id=this.id+"_"+"controlType";this.hiddenFieldNode.name=this.hiddenFieldNode.id;this.innerBarContainer.id=this.id+"_innerBarContainer";this.innerBarOverlayContainer.id=this.id+"_innerBarOverlayContainer";this.logContainer.id=this.id+"_logContainer";this.rightControlsContainer.id=this.id+"_rightControlsContainer";this.topTextContainer.id=this.id+"_topTextContainer";}this.domNode.cancel=function(){return dijit.byId(this.id).cancel();};this.domNode.isBottomControlVisible=function(){return dijit.byId(this.id).isBottomControlVisible();};this.domNode.isFailedStateMessageVisible=function(){return dijit.byId(this.id).isFailedStateMessageVisible();};this.domNode.isLogMsgVisible=function(){return dijit.byId(this.id).isLogMsgVisible();};this.domNode.isOperationTextVisible=function(){return dijit.byId(this.id).isOperationTextVisible();};this.domNode.isProgressBarContainerVisible=function(){return dijit.byId(this.id).isProgressBarContainerVisible();};this.domNode.isProgressBarVisible=function(){return dijit.byId(this.id).isProgressBarVisible();};this.domNode.isRightControlVisible=function(){return dijit.byId(this.id).isRightControlVisible();};this.domNode.isStatusTextVisible=function(){return dijit.byId(this.id).isStatusTextVisible();};this.domNode.pause=function(){return dijit.byId(this.id).pause();};this.domNode.resume=function(){return dijit.byId(this.id).resume();};this.domNode.stop=function(){return dijit.byId(this.id).stop();};this.domNode.setOnCancel=function(func){return dijit.byId(this.id).setOnCancel(func);};this.domNode.setOnComplete=function(func){return dijit.byId(this.id).setOnComplete(func);};this.domNode.setOnFail=function(func){return dijit.byId(this.id).setOnFail(func);};this.domNode.setBottomControlVisible=function(show){return dijit.byId(this.id).setBottomControlVisible(show);};this.domNode.setFailedStateMessageVisible=function(show){return dijit.byId(this.id).setFailedStateMessageVisible(show);};this.domNode.setLogMsgVisible=function(show){return dijit.byId(this.id).setLogMsgVisible(show);};this.domNode.setOperationTextVisible=function(show){return dijit.byId(this.id).setOperationTextVisible(show);};this.domNode.setProgressBarContainerVisible=function(show){return dijit.byId(this.id).setProgressBarContainerVisible(show);};this.domNode.setProgressBarVisible=function(show){return dijit.byId(this.id).setProgressBarVisible(show);};this.domNode.setRightControlVisible=function(show){return dijit.byId(this.id).setRightControlVisible(show);};this.domNode.setStatusTextVisible=function(show){return dijit.byId(this.id).setStatusTextVisible(show);};if(this.busyImage==null){this.busyImage=this.widget.getImageProps("PROGRESS_BUSY",{id:this.id+"_busy"});}return this.inherited("postCreate",arguments);};webui.suntheme.widget.progressBar.prototype.resume=function(){clearTimeout(this.timeoutId);this.hiddenFieldNode.value=this.resumed;if(this.type==this.indeterminate){this.innerBarContainer.className=this.theme.getClassName("PROGRESSBAR_INDETERMINATE");}return this.updateProgress();};webui.suntheme.widget.progressBar.prototype.setBottomControlVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this.bottomControlsContainer,show);return true;};webui.suntheme.widget.progressBar.prototype.setFailedStateMessageVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this.failedStateContainer,show);return true;};webui.suntheme.widget.progressBar.prototype.setLogMsgVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this.logContainer,show);return true;};webui.suntheme.widget.progressBar.prototype.setOnCancel=function(func){if(func){this.funcCanceled=func;}return true;};webui.suntheme.widget.progressBar.prototype.setOnComplete=function(func){if(func){this.funcComplete=func;}return true;};webui.suntheme.widget.progressBar.prototype.setOnFail=function(func){if(func){this.funcFailed=func;}return true;};webui.suntheme.widget.progressBar.prototype.setOperationTextVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this.topTextContainer,show);return true;};webui.suntheme.widget.progressBar.prototype.setProgress=function(_401){if(_401==null){return false;}if(_401.progress>99||_401.taskState==this.completed){_401.progress=100;}this.widget.extend(this,_401);if(_401.status){this.widget.addFragment(this.bottomTextContainer,_401.status);}if(_401.topText){if(_401.topText!=this.topText){this.widget.addFragment(this.topTextContainer,_401.topText);}}if(this.type==this.determinate){if(_401.progress!=null&&_401.progress>=0){this.innerBarContainer.style.width=_401.progress+"%";}if(_401.logMessage){var _402=dijit.byId(this.logId).getInputElement();if(_402!=null){_402.value=(_402.value)?_402.value+_401.logMessage+"\n":_401.logMessage+"\n";}}if(this.overlayAnimation==true){this.widget.addFragment(this.innerBarOverlayContainer,_401.progress+"%");}}if(_401.taskState==this.failed){clearTimeout(this.timeoutId);this.widget.sleep(1000);this.setProgressBarContainerVisible(false);this.setBottomControlVisible(false);this.setRightControlVisible(false);this.setLogMsgVisible(false);if(_401.failedStateText!=null){this.widget.addFragment(this.failedLabelContainer,_401.failedStateText+" "+_401.progress+this.percentChar);webui.suntheme.common.setVisibleElement(this.failedLabelContainer,true);webui.suntheme.common.setVisibleElement(this.failedStateContainer,true);}if(this.funcFailed!=null){(this.funcFailed)();}return true;}if(_401.taskState==this.canceled){clearTimeout(this.timeoutId);this.widget.sleep(1000);this.setOperationTextVisible(false);this.setStatusTextVisible(false);this.setProgressBarContainerVisible(false);this.setBottomControlVisible(false);this.setRightControlVisible(false);this.setLogMsgVisible(false);if(this.type==this.determinate){this.innerBarContainer.style.width="0%";}if(this.funcCanceled!=null){(this.funcCanceled)();}return true;}if(_401.taskState==this.paused){clearTimeout(this.timeoutId);return true;}if(_401.taskState==this.stopped){clearTimeout(this.timeoutId);return true;}if(_401.progress>99||_401.taskState==this.completed){clearTimeout(this.timeoutId);if(this.type==this.indeterminate){this.innerBarContainer.className=this.theme.getClassName("PROGRESSBAR_INDETERMINATE_PAUSED");}if(this.type==this.busy){this.setProgressBarContainerVisible(false);}if(this.funcComplete!=null){(this.funcComplete)();}}if(_401.progress){if(this.bottomTextContainer.setAttributeNS){this.bottomTextContainer.setAttributeNS("http://www.w3.org/2005/07/aaa","valuenow",_401.progress);}}return true;};webui.suntheme.widget.progressBar.prototype.setProgressBarContainerVisible=function(show){if(show==null){return false;}if(show==false){this.barContainer.style.display="none";}else{this.barContainer.style.display="";}return true;};webui.suntheme.widget.progressBar.prototype.setProgressBarVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this,show);return true;};webui.suntheme.widget.progressBar.prototype.setProps=function(_405,_406){return this.inherited("setProps",arguments);};webui.suntheme.widget.progressBar.prototype._setProps=function(_407){if(_407==null){return false;}if(_407.toolTip){this.barContainer.title=_407.toolTip;}if(_407.topText){this.widget.addFragment(this.topTextContainer,_407.topText);webui.suntheme.common.setVisibleElement(this.topTextContainer,true);}if(_407.bottomText){this.widget.addFragment(this.bottomTextContainer,_407.bottomText);webui.suntheme.common.setVisibleElement(this.bottomTextContainer,true);}if(_407.type==this.determinate||_407.type==this.indeterminate){this.barContainer.className=this.theme.getClassName("PROGRESSBAR_CONTAINER");if(_407.height!=null&&_407.height>0){this.barContainer.style.height=_407.height+"px;";this.innerBarContainer.style.height=_407.height+"px;";}if(_407.width!=null&&_407.width>0){this.barContainer.style.width=_407.width+"px;";}if(_407.progressControlRight!=null){this.widget.addFragment(this.rightControlsContainer,_407.progressControlRight);webui.suntheme.common.setVisibleElement(this.rightControlsContainer,true);}if(_407.progressControlBottom!=null){this.widget.addFragment(this.bottomControlsContainer,_407.progressControlBottom);webui.suntheme.common.setVisibleElement(this.bottomControlsContainer,true);}}if(_407.type==this.determinate){this.innerBarContainer.className=this.theme.getClassName("PROGRESSBAR_DETERMINATE");if(this.progress!=null&&this.progress>=0){this.innerBarContainer.style.width=this.progress+"%";}if(_407.overlayAnimation==true){this.widget.addFragment(this.innerBarOverlayContainer,this.progress+"%");webui.suntheme.common.setVisibleElement(this.innerBarOverlayContainer,true);}if(_407.log!=null&&_407.overlayAnimation==false){this.widget.addFragment(this.logContainer,_407.log);webui.suntheme.common.setVisibleElement(this.logContainer,true);}}else{if(_407.type==this.indeterminate){this.barContainer.className=this.theme.getClassName("PROGRESSBAR_CONTAINER");this.innerBarContainer.className=this.theme.getClassName("PROGRESSBAR_INDETERMINATE");}else{if(_407.type==this.busy){if(_407.busyImage){if(_407.width>0){_407.busyImage.width=_407.width;}if(_407.height>0){_407.busyImage.height=_407.height;}this.widget.addFragment(this.busyImageContainer,_407.busyImage);webui.suntheme.common.setVisibleElement(this.busyImageContainer,true);}}}}if(_407.progressImageUrl!=null){this.innerBarContainer.style.backgroundImage="url("+_407.progressImageUrl+")";}if(_407.progress!=null){if(this.bottomTextContainer.setAttributeNS){this.bottomTextContainer.setAttributeNS("http://www.w3.org/2005/07/aaa","valuenow",this.progress);}}this.setCommonProps(this.domNode,_407);return this.inherited("_setProps",arguments);};webui.suntheme.widget.progressBar.prototype.setRightControlVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this.rightControlsContainer,show);return true;};webui.suntheme.widget.progressBar.prototype.setStatusTextVisible=function(show){if(show==null){return false;}webui.suntheme.common.setVisibleElement(this.bottomTextContainer,show);return true;};webui.suntheme.widget.progressBar.prototype.startup=function(){if(this._started){return false;}this.updateProgress();return this.inherited("startup",arguments);};webui.suntheme.widget.progressBar.prototype.stop=function(){clearTimeout(this.timeoutId);this.hiddenFieldNode.value=this.stopped;if(this.type==this.indeterminate){this.innerBarIdContainer.className=this.theme.getClassName("PROGRESSBAR_INDETERMINATE_PAUSED");}return this.updateProgress();};webui.suntheme.widget.progressBar.prototype.updateProgress=function(){if(this.refreshRate>0){dojo.publish(webui.suntheme.widget.progressBar.event.progress.beginTopic,[{id:this.id}]);}var _id=this.id;this.timeoutId=setTimeout(function(){dijit.byId(_id).updateProgress();},this.refreshRate);return true;};dojo.provide("webui.suntheme.widget.jsfx.progressBar");webui.suntheme.widget.jsfx.progressBar={processProgressEvent:function(_40b){if(_40b==null){return false;}var _40c=document.getElementById(_40b.id);DynaFaces.fireAjaxTransaction((_40c)?_40c:document.forms[0],{execute:_40b.id,render:_40b.id,replaceElement:webui.suntheme.widget.jsfx.progressBar.progressCallback,xjson:{id:_40b.id,event:"progress"}});return true;},progressCallback:function(id,_40e,_40f,_410){if(id==null||_40e==null){return false;}var _411=JSON.parse(_40e);var _412=dijit.byId(id);_412.setProgress({failedStateText:_411.failedStateText,logMessage:_411.logMessage,progress:_411.progress,status:_411.status,taskState:_411.taskState,topText:_411.topText});dojo.publish(webui.suntheme.widget.progressBar.event.progress.endTopic,[_411]);return true;}};dojo.subscribe(webui.suntheme.widget.progressBar.event.progress.beginTopic,webui.suntheme.widget.jsfx.progressBar,"processProgressEvent");dojo.subscribe(webui.suntheme.widget.progressBar.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.radioButton");dojo.declare("webui.suntheme.widget.radioButton",webui.suntheme.widget.checkedBase,{idSuffix:"_rb",widgetName:"radioButton"});webui.suntheme.widget.radioButton.event=webui.suntheme.widget.radioButton.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_radioButton_event_refresh_begin",endTopic:"webui_suntheme_widget_radioButton_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_radioButton_event_state_begin",endTopic:"webui_suntheme_widget_radioButton_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_radioButton_event_submit_begin",endTopic:"webui_suntheme_widget_radioButton_event_submit_end"}};webui.suntheme.widget.radioButton.prototype.getClassName=function(){var _413=(this.disabled==true)?this.widget.getClassName("RADIOBUTTON_SPAN_DISABLED",""):this.widget.getClassName("RADIOBUTTON_SPAN","");return (this.className)?_413+" "+this.className:_413;};webui.suntheme.widget.radioButton.prototype.getImageClassName=function(){return (this.disabled==true)?this.widget.getClassName("RADIOBUTTON_IMAGE_DISABLED",""):this.widget.getClassName("RADIOBUTTON_IMAGE","");};webui.suntheme.widget.radioButton.prototype.getInputClassName=function(){if(this.readOnly==true){return this.widget.getClassName("RADIOBUTTON_READONLY","");}return (this.disabled==true)?this.widget.getClassName("RADIOBUTTON_DISABLED",""):this.widget.getClassName("RADIOBUTTON","");};webui.suntheme.widget.radioButton.prototype.getLabelClassName=function(){return (this.disabled==true)?this.widget.getClassName("RADIOBUTTON_LABEL_DISABLED",""):this.widget.getClassName("RADIOBUTTON_LABEL","");};webui.suntheme.widget.radioButton.prototype.setProps=function(_414,_415){return this.inherited("setProps",arguments);};webui.suntheme.widget.radioButton.prototype._setProps=function(_416){if(_416==null){return false;}if(_416.name){this.inputNode.name=_416.name;}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.radioButton");dojo.subscribe(webui.suntheme.widget.radioButton.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.radioButton.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.radioButtonGroup");dojo.declare("webui.suntheme.widget.radioButtonGroup",webui.suntheme.widget.checkedGroupBase,{widgetName:"radioButtonGroup"});webui.suntheme.widget.radioButtonGroup.event=webui.suntheme.widget.radioButtonGroup.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_radioButtonGroup_event_refresh_begin",endTopic:"webui_suntheme_widget_radioButtonGroup_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_radioButtonGroup_event_state_begin",endTopic:"webui_suntheme_widget_radioButtonGroup_event_state_end"}};webui.suntheme.widget.radioButtonGroup.prototype.getClassName=function(){var _417=(this.columns>1)?this.widget.getClassName("RBGRP_HORIZ",""):this.widget.getClassName("RBGRP_VERT","");return (this.className)?_417+" "+this.className:_417;};dojo.provide("webui.suntheme.widget.jsfx.radioButtonGroup");dojo.subscribe(webui.suntheme.widget.radioButtonGroup.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.resetButton");dojo.declare("webui.suntheme.widget.resetButton",webui.suntheme.widget.button,{widgetName:"resetButton"});webui.suntheme.widget.resetButton.event=webui.suntheme.widget.resetButton.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_resetButton_event_refresh_begin",endTopic:"webui_suntheme_widget_resetButton_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_resetButton_event_state_begin",endTopic:"webui_suntheme_widget_resetButton_event_state_end"}};dojo.provide("webui.suntheme.widget.jsfx.resetButton");dojo.subscribe(webui.suntheme.widget.resetButton.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.staticText");dojo.declare("webui.suntheme.widget.staticText",webui.suntheme.widget.widgetBase,{escape:true,widgetName:"staticText"});webui.suntheme.widget.staticText.event=webui.suntheme.widget.staticText.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_staticText_event_refresh_begin",endTopic:"webui_suntheme_widget_staticText_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_staticText_event_state_begin",endTopic:"webui_suntheme_widget_staticText_event_state_end"}};webui.suntheme.widget.staticText.prototype.getProps=function(){var _418=this.inherited("getProps",arguments);if(this.escape){_418.escape=this.escape;}if(this.value){_418.value=this.value;}return _418;};webui.suntheme.widget.staticText.prototype.setProps=function(_419,_41a){return this.inherited("setProps",arguments);};webui.suntheme.widget.staticText.prototype._setProps=function(_41b){if(_41b==null){return false;}if(_41b.value){this.widget.addFragment(this.domNode,_41b.value,null,this.escape);}this.setCommonProps(this.domNode,_41b);this.setEventProps(this.domNode,_41b);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.staticText");dojo.subscribe(webui.suntheme.widget.staticText.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.table2");dojo.declare("webui.suntheme.widget.table2",webui.suntheme.widget.widgetBase,{widgetName:"table2"});webui.suntheme.widget.table2.event=webui.suntheme.widget.table2.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_table2_event_refresh_begin",endTopic:"webui_suntheme_widget_table2_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_table2_event_state_begin",endTopic:"webui_suntheme_widget_table2_event_state_end"}};webui.suntheme.widget.table2.prototype.getProps=function(){var _41c=this.inherited("getProps",arguments);if(this.actions){_41c.actions=this.actions;}if(this.align){_41c.align=this.align;}if(this.bgColor){_41c.bgColor=this.bgColor;}if(this.border){_41c.border=this.border;}if(this.caption){_41c.caption=this.caption;}if(this.cellpadding){_41c.cellpadding=this.cellpadding;}if(this.cellspacing){_41c.cellspacing=this.cellspacing;}if(this.filterText){_41c.filterText=this.filterText;}if(this.frame){_41c.frame=this.frame;}if(this.rowGroups){_41c.rowGroups=this.rowGroups;}if(this.rules){_41c.rules=this.rules;}if(this.summary){_41c.summary=this.summary;}if(this.width){_41c.width=this.width;}return _41c;};webui.suntheme.widget.table2.prototype.postCreate=function(){if(this.id){this.actionsContainer.id=this.id+"_actionsContainer";this.actionsNode.id=this.id+"_actionsNode";this.controlsNode.id=this.id+"_controlsNode";this.filterPanelContainer.id=this.id+"_filterPanelContainer";this.preferencesPanelContainer.id=this.id+"_preferencesPanelContainer";this.sortPanelContainer.id=this.id+"_sortPanelContainer";this.rowGroupsContainer.id=this.id+"_rowGroupsContainer";this.captionContainer.id=this.id+"_captionContainer";}return this.inherited("postCreate",arguments);};webui.suntheme.widget.table2.prototype.setProps=function(_41d,_41e){if(_41d==null){return false;}if(_41d.actions){this.actions=null;}if(_41d.rowGroups){this.rowGroups=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.table2.prototype._setProps=function(_41f){if(_41f==null){return false;}_41f.tabIndex=null;if(_41f.align){this.domNode.align=_41f.align;}if(_41f.width){this.domNode.style.width=_41f.width;}if(_41f.actions){this.widget.addFragment(this.actionsNode,_41f.actions);webui.suntheme.common.setVisibleElement(this.actionsContainer,true);}if(_41f.caption||_41f.filterText&&this.caption){var _420=null;if(_41f.filterText){_420=this.theme.getMessage("table.title.filterApplied",[_41f.filterText]);}this.widget.addFragment(this.captionContainer,(_420)?_41f.caption+_420:_41f.caption);webui.suntheme.common.setVisibleElement(this.captionContainer,true);}if(_41f.rowGroups){this.widget.removeChildNodes(this.rowGroupsContainer);for(var i=0;i<_41f.rowGroups.length;i++){_41f.rowGroups[i]._table={bgColor:_41f.bgColor,border:_41f.border,cellpadding:_41f.cellpadding,cellspacing:_41f.cellspacing,frame:_41f.frame,summary:_41f.summary};this.widget.addFragment(this.rowGroupsContainer,_41f.rowGroups[i],"last");}}this.setCommonProps(this.domNode,_41f);this.setEventProps(this.domNode,_41f);return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.table2");dojo.subscribe(webui.suntheme.widget.table2.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.provide("webui.suntheme.widget.table2RowGroup");dojo.declare("webui.suntheme.widget.table2RowGroup",webui.suntheme.widget.widgetBase,{currentRow:0,first:0,widgetName:"table2RowGroup"});webui.suntheme.widget.table2RowGroup.prototype.addColumns=function(){this.widget.removeChildNodes(this.thead);this.widget.removeChildNodes(this.tfoot);var _422=this.colHeaderRow.cloneNode(false);var _423=this.colFooterRow.cloneNode(false);this.thead.appendChild(_422);this.tfoot.appendChild(_423);for(var i=0;i<this.columns.length;i++){var col=this.columns[i];var _426=this.colHeaderCell.cloneNode(true);var _427=this.colFooterCell.cloneNode(true);_426.id=col.id+"_colHeader";_427.id=col.id+"_colFooter";if(col.width){_426.style.width=col.width;_427.style.width=col.width;}if(col.headerText){this.widget.addFragment(_426,this.widget.getWidgetProps("staticText",{id:_426.id+"Text",value:col.headerText}));headerVisible=true;}if(col.footerText){this.widget.addFragment(_427,this.widget.getWidgetProps("staticText",{id:_427.id+"Text",value:col.footerText}));footerVisible=true;}_422.appendChild(_426);_423.appendChild(_427);this.groupHeaderCell.colSpan=this.columns.length;}return true;};webui.suntheme.widget.table2RowGroup.prototype.addRows=function(rows){if(rows==null){return false;}var _429=this.getProps();var _42a=(this.className)?this.className.split(","):null;for(var i=0;i<rows.length;i++){var cols=rows[i];var _42d=this.id+":"+(this.first+i);var _42e=this.tableDataRow.cloneNode(false);this.tbody.appendChild(_42e);_429.id=_42d;if(_42a){_429.className=_42a[i%_42a.length];}this.setCommonProps(_42e,_429);this.setEventProps(_42e,_429);this.setCoreProps(_42e,_429);for(var k=0;k<cols.length;k++){var col=this.columns[k];var _431=col.id.replace(this.id,_42d);var _432=this.tableDataCell.cloneNode(true);_42e.appendChild(_432);this.setColumnProps(_432,col);_432.id=_431;this.widget.addFragment(_432,cols[k],"last");}if(this.first>0){this.rows[this.rows.length]=rows[i];}}this.first+=rows.length;var _id=this.id;setTimeout(function(){dijit.byId(_id).resize();},0);return true;};webui.suntheme.widget.table2RowGroup.event=webui.suntheme.widget.table2RowGroup.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_table2RowGroup_event_refresh_begin",endTopic:"webui_suntheme_widget_table2RowGroup_event_refresh_end"},scroll:{beginTopic:"webui_suntheme_widget_table2RowGroup_event_scroll_begin",endTopic:"webui_suntheme_widget_table2RowGroup_event_scroll_end"},state:{beginTopic:"webui_suntheme_widget_table2RowGroup_event_state_begin",endTopic:"webui_suntheme_widget_table2RowGroup_event_state_end"}};webui.suntheme.widget.table2RowGroup.prototype.getProps=function(){var _434=this.inherited("getProps",arguments);if(this.align){_434.align=this.align;}if(this.bgColor){_434.bgColor=this.bgColor;}if(this.charOff){_434.charOff=this.charOff;}if(this.columns){_434.columns=this.columns;}if(this.first){_434.first=this.first;}if(this.headerText){_434.headerText=this.headerText;}if(this.height){_434.height=this.height;}if(this.maxRows){_434.maxRows=this.maxRows;}if(this.rows){_434.rows=this.rows;}if(this.totalRows){_434.totalRows=this.totalRows;}if(this.valign){_434.valign=this.valign;}return _434;};webui.suntheme.widget.table2RowGroup.prototype.postCreate=function(){if(this.id){this.colFooterRow.id=this.id+"_colFooterRow";this.colFooterCell.id=this.id+"_colFooterCell";this.colHeaderRow.id=this.id+"_colHeaderRow";this.colHeaderCell.id=this.id+"_colHeaderCell";this.groupHeaderControls.id=this.id+"_groupHeaderControls";this.groupHeaderText.id=this.id+"_groupHeaderText";this.paginationControls.id=this.id+"_paginationControls";this.rowsText.id=this.id+"_rowsText";this.table.id=this.id+"_table";this.tableContainer.id=this.id+"_tableContainer";this.tableDataRow.id=this.id+"_tableDataRow";this.tableDataCell.id=this.id+"_tableDataCell";this.tbody.id=this.id+"_tbody";this.tfoot.id=this.id+"_tfoot";this.thead.id=this.id+"_thead";}dojo.connect(this.tableContainer,"onscroll",this,"scroll");if(webui.suntheme.browser.isNav()){dojo.connect(window,"onresize",this,"resize");}return this.inherited("postCreate",arguments);};webui.suntheme.widget.table2RowGroup.prototype.resize=function(){this.updateRowsText();var _435=0;for(var i=this.currentRow;i<this.currentRow+this.maxRows;i++){var _437=document.getElementById(this.id+":"+i);if(_437!=null){_435+=_437.offsetHeight;}else{break;}}if(_435>0){this.tableContainer.style.height=_435+"px";}var _438=this.id+":0";for(var i=0;i<this.columns.length;i++){var col=this.columns[i];var _43a=col.id.replace(this.id,_438);var _43b=document.getElementById(_43a);if(_43b==null){continue;}var _43c=document.getElementById(col.id+"_colHeader");var _43d=document.getElementById(col.id+"_colFooter");if(_43c){_43c.style.width=(_43b.offsetWidth-1)+"px";}if(_43d){_43d.style.width=(_43b.offsetWidth-1)+"px";}}var _43e=document.getElementById(this.id+"_colHeaderRow");var _43f=document.getElementById(this.id+"_colFooterRow");var _440=(_43e)?_43e.offsetHeight:0;var _441=(_43f)?_43f.offsetHeight:0;this.tableContainer.style.marginTop=(_440-1)+"px";this.tableContainer.style.marginBottom=_441+"px";if(_43e){if(webui.suntheme.browser.isIe7()){_43e.style.top=(this.tableContainer.offsetTop+2)+"px";}else{_43e.style.top=(this.tableContainer.offsetTop-_440+1)+"px";}}if(_43f){if(webui.suntheme.browser.isIe7()){_43f.style.top=(this.tableContainer.offsetTop+this.tableContainer.offsetHeight+_440+2)+"px";}else{_43f.style.top=(this.tableContainer.offsetTop+this.tableContainer.offsetHeight-1)+"px";}}return true;};webui.suntheme.widget.table2RowGroup.prototype.setColumnProps=function(_442,_443){if(this.abbr){_442.abbr=this.abbr;}if(this.axis){_442.axis=this.axis;}if(this.bgColor){_442.bgColor=this.bgColor;}if(this.charOff){_442.charoff=this.charOff;}if(this.thisspan){_442.colspan=this.colspan;}if(this.headers){_442.headers=this.headers;}if(this.height){_442.height=this.height;}if(this.noWrap){_442.nowrap="nowrap";}if(this.rowSpan){_442.rowspan=this.rowSpan;}if(this.scope){_442.scope=this.scope;}if(this.valign){_442.valign=this.valign;}if(this.width){_442.width=this.width;}this.setCommonProps(_442,_443);this.setEventProps(_442,_443);this.setCoreProps(_442,_443);return true;};webui.suntheme.widget.table2RowGroup.prototype.setProps=function(_444,_445){if(_444==null){return false;}if(_444.columns){this.columns=null;}if(_444.rows){this.rows=null;}return this.inherited("setProps",arguments);};webui.suntheme.widget.table2RowGroup.prototype._setProps=function(_446){if(_446==null){return false;}if(_446.id){this.domNode.id=_446.id;}if(_446._table){if(_446._table.bgColor){this.table.bgColor=_446._table.bgColor;}if(_446._table.border){this.table.border=_446._table.border;}if(_446._table.cellpadding){this.table.cellpadding=_446._table.cellpadding;}if(_446._table.cellspacing){this.table.cellspacing=_446._table.cellspacing;}if(_446._table.frame){this.table.frame=_446._table.frame;}if(_446._table.rules){this.table.rules=_446._table.rules;}if(_446._table.summary){this.table.summary=_446._table.summary;}}if(_446.headerText){this.widget.addFragment(this.groupHeaderText,_446.headerText);webui.suntheme.common.setVisibleElement(this.groupHeaderContainer,true);}if(_446.columns&&this.refreshCols!=false){this.addColumns();this.refreshCols=false;}if(_446.rows){this.first=0;this.currentRow=0;this.widget.removeChildNodes(this.tbody);this.addRows(_446.rows);}return true;};webui.suntheme.widget.table2RowGroup.prototype.scroll=function(_447){if(this.first<this.totalRows&&this.currentRow%this.maxRows==0){dojo.publish(webui.suntheme.widget.table2RowGroup.event.scroll.beginTopic,[{id:this.id,first:this.first}]);}var _448=0;var last=Math.min(this.totalRows,this.first+this.maxRows)-1;var _44a=this.tableContainer.scrollTop+1;while(_448<last){var mid=Math.floor((_448+last)/2);var _44c=document.getElementById(this.id+":"+mid);if(_44c==null){break;}if(_44a<_44c.offsetTop){last=mid;}else{if(_44a>=_44c.offsetTop){_448=mid+1;}}}this.currentRow=Math.max(0,_448-1);return this.updateRowsText();};webui.suntheme.widget.table2RowGroup.prototype.updateRowsText=function(){var _44d=this.currentRow+1;var _44e=Math.min(this.totalRows,this.currentRow+this.maxRows);var msg=this.theme.getMessage("table.title.paginated",["",_44d,_44e,this.totalRows,""]);if(msg){this.widget.addFragment(this.rowsText,msg);}return true;};dojo.provide("webui.suntheme.widget.jsfx.table2RowGroup");webui.suntheme.widget.jsfx.table2RowGroup={processScrollEvent:function(_450){if(_450==null){return false;}var _451=document.getElementById(_450.id);DynaFaces.fireAjaxTransaction((_451)?_451:document.forms[0],{execute:"none",render:_450.id,replaceElement:webui.suntheme.widget.jsfx.table2RowGroup.scrollCallback,xjson:{id:_450.id,event:"scroll",first:_450.first}});return true;},scrollCallback:function(id,_453,_454,_455){if(id==null||_453==null){return false;}var _456=JSON.parse(_453);var _457=dijit.byId(id);if(_457.first!=_455.first){return;}_457.addRows(_456.rows);dojo.publish(webui.suntheme.widget.table2RowGroup.event.scroll.endTopic,[_456]);return true;}};dojo.subscribe(webui.suntheme.widget.table2RowGroup.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.table2RowGroup.event.scroll.beginTopic,webui.suntheme.widget.jsfx.table2RowGroup,"processScrollEvent");dojo.provide("webui.suntheme.widget.textArea");dojo.declare("webui.suntheme.widget.textArea",webui.suntheme.widget.textField,{autoSave:0,cols:20,rows:3,widgetName:"textArea"});webui.suntheme.widget.textArea.prototype.createSubmitCallback=function(){var _id=this.id;return function(_459){var _45a=dijit.byId(_id);if(_45a==null){return false;}if(_45a.lastSaved!=_45a.fieldNode.value){_45a.lastSaved=_45a.fieldNode.value;_45a.submit();}return true;};};webui.suntheme.widget.textArea.event=webui.suntheme.widget.textArea.prototype.event={refresh:{beginTopic:"webui_suntheme_widget_textArea_event_refresh_begin",endTopic:"webui_suntheme_widget_textArea_event_refresh_end"},state:{beginTopic:"webui_suntheme_widget_textArea_event_state_begin",endTopic:"webui_suntheme_widget_textArea_event_state_end"},submit:{beginTopic:"webui_suntheme_widget_textArea_event_submit_begin",endTopic:"webui_suntheme_widget_textArea_event_submit_end"}};webui.suntheme.widget.textArea.prototype.getInputClassName=function(){if(this.fieldNode.readOnly){return this.widget.getClassName("TEXT_AREA_READONLY","");}var _45b=(this.valid==false)?" "+this.widget.getClassName("TEXT_AREA_INVALID",""):" "+this.widget.getClassName("TEXT_AREA_VALID","");return (this.disabled==true)?this.widget.getClassName("TEXT_AREA_DISABLED",""):this.widget.getClassName("TEXT_AREA","")+_45b;};webui.suntheme.widget.textArea.prototype.getProps=function(){var _45c=this.inherited("getProps",arguments);if(this.cols>0){_45c.cols=this.cols;}if(this.rows>0){_45c.rows=this.rows;}if(this.autoSave>0){_45c.autoSave=this.autoSave;}return _45c;};webui.suntheme.widget.textArea.prototype.postCreate=function(){if(this.autoSave>0){this.autoSaveTimerId=setInterval(this.createSubmitCallback(),this.autoSave);}return this.inherited("postCreate",arguments);};webui.suntheme.widget.textArea.prototype.setProps=function(_45d,_45e){return this.inherited("setProps",arguments);};webui.suntheme.widget.textArea.prototype._setProps=function(_45f){if(_45f==null){return false;}if(_45f.cols>0){this.fieldNode.cols=_45f.cols;}if(_45f.rows>0){this.fieldNode.rows=_45f.rows;}if(_45f.autoSave<=0&&this.autoSaveTimerId&&this.autoSaveTimerId!=null){clearTimeout(this.autoSaveTimerId);this.autoSaveTimerId=null;}if(_45f.label){_45f.label.className=(_45f.label.className)?this.widget.getClassName("TEXT_AREA_TOPLABELALIGN","")+" "+_45f.label.className:this.widget.getClassName("TEXT_AREA_TOPLABELALIGN","");}return this.inherited("_setProps",arguments);};dojo.provide("webui.suntheme.widget.jsfx.textArea");dojo.subscribe(webui.suntheme.widget.textArea.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.textArea.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.provide("webui.suntheme.widget.jsfx.textField");webui.suntheme.widget.jsfx.textField={processValidationEvent:function(_460){if(_460==null){return false;}var _461=document.getElementById(_460.id);DynaFaces.fireAjaxTransaction((_461)?_461:document.forms[0],{execute:_460.id,render:_460.id,replaceElement:webui.suntheme.widget.jsfx.textField.validationCallback,xjson:{id:_460.id,event:"validate"}});return true;},validationCallback:function(_462,_463,_464,_465){if(_462==null||_463==null){return false;}var _466=JSON.parse(_463);var _467=dijit.byId(_462);_467.setProps({valid:_466.valid,errorImage:{title:_466.detail}});if(_467.notify){for(var i=0;i<_467.notify.length;i++){var _469=dijit.byId(_467.notify[i]);if(_469&&typeof _469.notify=="function"){_469.notify(_466);}}}dojo.publish(webui.suntheme.widget.textField.event.validation.endTopic,[_466]);return true;}};dojo.subscribe(webui.suntheme.widget.textField.event.refresh.beginTopic,webui.suntheme.widget.jsfx.common,"processRefreshEvent");dojo.subscribe(webui.suntheme.widget.textField.event.state.beginTopic,webui.suntheme.widget.jsfx.common,"processStateEvent");dojo.subscribe(webui.suntheme.widget.textField.event.submit.beginTopic,webui.suntheme.widget.jsfx.common,"processSubmitEvent");dojo.subscribe(webui.suntheme.widget.textField.event.validation.beginTopic,webui.suntheme.widget.jsfx.textField,"processValidationEvent");dojo.provide("webui.suntheme.widget.passwordField");dojo.declare("webui.suntheme.widget.passwordField",webui.suntheme.widget.fieldBase,{widgetName:"passwordField"});webui.suntheme.widget.passwordField.prototype.getInputClassName=function(){if(this.fieldNode.readOnly){return this.widget.getClassName("PASSWORD_FIELD_READONLY","");}var _46a=(this.valid==false)?" "+this.widget.getClassName("PASSWORD_FIELD_INVALID",""):" "+this.widget.getClassName("PASSWORD_FIELD_VALID","");return (this.disabled==true)?this.widget.getClassName("PASSWORD_FIELD_DISABLED",""):this.widget.getClassName("PASSWORD_FIELD","")+_46a;};webui.suntheme.widget.passwordField.prototype.setProps=function(_46b){return this.inherited("setProps",arguments);};