
try{(function(){
    i$.merge({
	"ICON_STOP":"msgError",
	"ICON_SUCCESS":"msgSuccess",
	"BUTTON_RETRY":"Retry",
	"BUTTON_YES":"Yes",
	"BUTTON_NO":"No",
	"BUTTON_IGNORE":"Ignore",
	"LINK_LEARN_MORE":"Learn More",
	"ICON_WARNING":"msgWarning",
	"ICON_INFORMATION":"msgInfo",
	"LOADING_IMAGE_0":"loading image",
	"BUTTON_ABORT":"Abort",
	"ICON_EXCLAMATION":"msgWarning",
	"BUTTON_CANCEL":"Cancel",
	"BUTTON_CONTINUE":"Continue",
	"BUTTON_OK":"Ok",
	"BUTTON_TRY":"Try Again",
	"LOADING_0":"Loading...",
	"ICON_ASTERISK":"msgInfo",
	"ICON_ERROR":"msgError",
	"CLOSE_IMAGE_0":"close image",
	"CLOSE_0":"Close"
},i$.fromPath("wpModules.dialog.nls",true));
})();
}catch(e){console.log("Module 'wp_dialog_main': ",e);}
try{(function(){
    i$.merge({
	"Rating_Distribution":"Rating Distribution",
	"text_info_changes_lost":"All changes made in a different tab will be lost.",
	"text_error_tags_too_long":"Addition of tags failed either due to insufficient permissions or tags being too long.",
	"title_taggingError_message":"Error - check console",
	"title_hide_tags":"Hide tags",
	"star":"Star",
	"text_invalid_tag_name":"Invalid tag name",
	"title_community_rating_distribution":"Distribution of the public rating",
	"text_error_tags_rejected":"Your actions failed: ${0} tags were rejected by the server, either because of a filter rule, due to insufficient permissions or invalid characters.",
	"title_locale_picker":"The language your entries will be saved in:",
	"title_switch_to_pub_view":"Switch to public view",
	"text_success_changes_stored_successfully":"Your actions were successful:",
	"button_public":"Public",
	"title_open_ratings_widget":"Click to add ratings",
	"text_info_length_of_tag_invalid":"The length of one of the entered tags is either too long or too short.",
	"title_switch_to_priv_view":"Switch to private view",
	"title_submit_tags":"Submit tags",
	"title_delete":"Delete \"${0}\"",
	"title_view_tags":"View tags",
	"ratingDescription_rating":"rating",
	"text_add_tags":"Add the following tag(s):",
	"title_click_to_add_ratings":"Click to add ratings.",
	"text_error_ratings_renderMode_wsrp":"Please note that rating is not fully supported in WSRP scenarios. Please contact your administrator for help.",
	"text_community_tags_for_this_resource":"Public tags for this resource:",
	"deleteRating":"Delete",
	"title_ratingError_message":"Error - check console",
	"title_community_tags":"Tags: ",
	"text_error_tags_renderMode_wsrp":"Please note that tagging is not fully supported in WSRP scenarios. Please contact your administrator for help.",
	"text_no_tags":"No tags",
	"title_rating_distribution":"Rated ${0} time(s) with ${1} star(s)",
	"text_rating_saved":"Rating saved.",
	"title_all_rating":"All ratings",
	"title_delete_all_tags_of_name":"Delete all tags assigned to this resource with the name \"${0}\"",
	"Menu_public_tagging":"My public tags",
	"text_all_ratings_deleted":"All ratings have been successfully deleted.",
	"title_not_set":"No rating has been set, yet.",
	"rating_menu":"Rating Menu",
	"title_info":"Information",
	"title_hide_ratings":"Hide ratings",
	"text_loading":"Loading...",
	"title_your_rating":"My public rating:",
	"text_all_tags_deleted":"The selected public tags have been successfully deleted.",
	"add_tagging":"Add tag",
	"text_rating_deleted":"Rating deleted.",
	"text_tags_deleted":"you have deleted ${0} tag(s) ",
	"link_done":"Close",
	"title_done_with_tagging":"Done with tagging (unsaved changes will be lost)",
	"text_your_rating_for_this_resource":"Your rating for this resource:",
	"text_no_tags_on_this_resource":"There are no tags assigned to this resource.",
	"text_tag":"Tag \"${0}\"",
	"Menu_privateRating":"My private rating",
	"tagging_menu":"Tagging Menu",
	"title_delete_ratings_for_this_resource":"Delete all public ratings assigned to this resource",
	"Ratings":"ratings",
	"title_open_tags_widget":"Add tags",
	"ratingDescription_ratings":"ratings",
	"text_stars_count":"${0} star(s)",
	"link_delete":"Delete",
	"title_done_with_rating":"Done with rating (unsaved changes will be lost)",
	"title_confirmation":"Confirmation",
	"title_pub_tags":"My public tags: ",
	"title_error_message":"Error message",
	"title_priv_rating":"My private rating:",
	"text_community_rating_for_this_resource":"Public rating for this resource:",
	"title_view_ratings":"View ratings",
	"title_priv_tags":"My private tags: ",
	"title_more_tags":"More...",
	"Menu_tagging":"Tags",
	"text_tags_saved":"you have created ${0} tag(s) ",
	"title_delete_rating":"Delete rating",
	"title_your_tags":"Your tags",
	"button_save":"Save",
	"title_pub_rating":"Rating:",
	"title_input_tag_names":"Input field for tag names",
	"button_private":"Private",
	"Rating":"rating",
	"title_close_widget":"Close widget",
	"title_all_tags":"All tags",
	"text_you_have_no_tags_on_this_resource":"You have no tags assigned to this resource.",
	"text_error_tags_invalid":"Addition of tags failed due to invalid characters",
	"title_switch_to_community_view":"Switch to public view",
	"title_rating_percentage":"Rating: ${0} out of ${1}.",
	"text_rate":"Rate \"${0}\"",
	"Menu_rating":"Rating",
	"text_info_max_number_of_private_tags_reached":"You have reached the maximum number of private tags allowed for one user (${0} tags).",
	"title_submit_rating":"Submit rating",
	"text_your_tags_for_this_resource":"Your tags for this resource:",
	"ratingDescription_from":"from",
	"title_community_rating":"Public rating",
	"text_info_max_number_of_community_tags_reached":"The maximum number of allowed tags (set by your administrator) has been reached.",
	"Menu_private_tagging":"My private tags",
	"Menu_myRating":"My public rating\t",
	"text_error_tag_already_assigned":"You have already assigned one or more of the entered tags to this resource.",
	"text_info_max_number_of_public_tags_reached":"You have reached the maximum number of public tags allowed for one user (${0} tags)."
},i$.fromPath("dojoless_resource_AddTag",true));
})();
}catch(e){console.log("Module 'wp_tagging_rating_light': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-U69, (C) Copyright IBM Corp. 2009, 2010 - All Rights reserved.  **/
var com_ibm_widgets_resolver=(function(){var _1="tagginglighterrorDiv_";var _2="tagginglighterrordivider_";var _3="tagginglighterrorlabel_";var _4="ratinglighterrorDiv_";var _5="ratinglighterrordivider_";var _6="ratinglighterrorlabel_";var _7="ratinglightmenulink_";var _8="tagginglightmenulink_";var _9="tagginglightAddTaglink_";var _a="tagginglightinputField_";var _b="errorMessagedividerShow";var _c="errorMessageStyleShow";var _d="errorMessagedivider";var _e="errorMessageStyle";var _f=function(_10,_11){if(typeof ibmCfg!="undefined"&&typeof ibmCfg.enablerConfig!="undefined"&&typeof ibmCfg.enablerConfig.isDebug!="undefined"&&typeof ibmCfg.enablerConfig.traceConfig!="undefined"){var _12=ibmCfg.enablerConfig.traceConfig;var _13=new RegExp(i$.isArray(_12)?_12.join("|"):_12);if(_13&&_13.test("com.ibm.widgets.TaggingAndRatingLight")){var msg="";var _14="";if(_11||(_11===0)||(_11===null)||(_11==="")){if(!i$.isArray(_11)){_14=_11;}else{if(_11&&_11.length>0){for(var arg in _11){if(_14===""){_14=_14+_11[arg];}else{_14=_14+", "+_11[arg];}}}}msg=msg+"Params [ "+_14+" ]";}console.log("com.ibm.widgets.TaggingAndRatingLight"+" "+_10+" "+msg);}}};var _15=function(_16,_17){var _18=i$.byId(_4+_16);var _19=i$.byId(_5+_16);var _1a=i$.byId(_6+_16);if(_1a!=null){_1a.innerHTML=_17.data.message;}if(_18!=null){_18.setAttribute("class",_c);}if(_19!=null){_19.setAttribute("class",_b);}};var _1b=function(_1c){var _1d=i$.byId(_4+_1c);var _1e=i$.byId(_5+_1c);if(_1d!=null){_1d.setAttribute("class",_e);}if(_1e!=null){_1e.setAttribute("class",_d);}};var _1f=function(_20){var _21=i$.byId(_4+_20);if(_21!=null&&_21.getElementsByTagName("img")!=null){var _22=_21.getElementsByTagName("img")[0];if(_22!=null){_22.setAttribute("alt",dojoless_resource_AddTag.title_ratingError_message);_22.setAttribute("title",dojoless_resource_AddTag.title_ratingError_message);}}var _23=i$.byId(_7+_20);if(_23!=null&&_23.getElementsByTagName("img")!=null){var _24=_23.getElementsByTagName("img")[0];if(_24!=null){_24.setAttribute("alt",dojoless_resource_AddTag.rating_menu);_24.setAttribute("title",dojoless_resource_AddTag.rating_menu);}}};var _25=function(_26){var _27=i$.byId(_1+_26);if(_27!=null&&_27.getElementsByTagName("img")!=null){var _28=_27.getElementsByTagName("img")[0];if(_28!=null){_28.setAttribute("alt",dojoless_resource_AddTag.title_title_taggingError_message);_28.setAttribute("title",dojoless_resource_AddTag.title_title_taggingError_message);}}var _29=i$.byId(_8+_26);if(_29!=null&&_29.getElementsByTagName("img")!=null){var _2a=_29.getElementsByTagName("img")[0];if(_2a!=null){_2a.setAttribute("alt",dojoless_resource_AddTag.tagging_menu);_2a.setAttribute("title",dojoless_resource_AddTag.tagging_menu);}}var _2b=i$.byId(_9+_26);if(_2b!=null&&_2b.getElementsByTagName("img")!=null){var _2c=_2b.getElementsByTagName("img")[0];if(_2c!=null){_2c.setAttribute("alt",dojoless_resource_AddTag.add_tagging);_2c.setAttribute("title",dojoless_resource_AddTag.add_tagging);}}var _2d=i$.byId(_a+_26);if(_2d!=null){_2d.setAttribute("alt",dojoless_resource_AddTag.add_tagging);_2d.setAttribute("title",dojoless_resource_AddTag.add_tagging);}};var _2e=function(_2f,_30){var _31={uri:"tm:ts:empty",rmparam:"rm:"+_2f.oid,"mime-type":"application/json"};if(_2f.query==null){_2f.query={scope:"ALL","max-results":"5","start-index":"0",orderMetric:"TAG_SPACE_COUNT_REVERSE_NAME",order:"DESC"};}_32(_31,_2f,_30);};var _33=function(_34,_35){var _36={uri:"rtm:rs:empty",rmparam:"rm:"+_34.oid,"mime-type":"application/json"};if(_34.query==null){_34.query={scope:"ALL"};}_32(_36,_34,_35);};var _32=function(_37,_38,_39){var _3a=ibmPortalConfig.contentHandlerURI;if(_3a!=null){if(_3a.indexOf("?")>0){_3a+="&";}else{_3a+="?";}}_3a+=i$.toQuery(_37)+"&"+i$.toQuery(_38.query)+"&"+Math.random();i$.xhrGet({url:_3a,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_3b){if(_3b.data===""){}else{var _3c=i$.fromJson(_3b.data);var _3d=_3c["entry"];}var _3e;if(_37.uri=="tm:ts:empty"){var _3f=0;if(_3d!==undefined){_3f=_3d.length;}var _3e=new Array(_3f);for(var i=0;i<_3f;i++){_3e[i]={name:_3d[i]["title"]["$t"],count:_3d[i]["link"][0]["count"],id:_3d[i]["id"]};}}else{if(_3d===undefined){_3e=null;}else{numberOfRatings=_3d.length;var _3e=new Array(numberOfRatings);for(var i=0;i<numberOfRatings;i++){_3e[i]={name:_3d[i]["title"]["$t"],count:_3d[i]["link"][0]["count"]};}}}_39(_3e,_38);},function(_40){console.error("Error case: ",_40);if(_40!=null&&_40.xhr!=null&&_40.xhr.status!=null&&_40.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{if(_37.uri=="tm:ts:empty"){_41(_38.oid,_40);}if(_37.uri=="rtm:rs:empty"){_15(_38.oid,_40);}}});};var _41=function(_42,_43){var _44=i$.byId(_1+_42);var _45=i$.byId(_2+_42);var _46=i$.byId(_3+_42);if(_46!=null){_46.innerHTML=_43.data.message;}if(_44!=null){_44.setAttribute("class",_c);}if(_45!=null){_45.style.display="inline-block";}};var _47=function(_48,_49){var _4a=i$.byId(_1+_48);var _4b=i$.byId(_2+_48);var _4c=i$.byId(_3+_48);if(_4c!=null){_4c.innerHTML=_49;}if(_4a!=null){_4a.setAttribute("class",_c);}if(_4b!=null){_4b.style.display="inline-block";}};var _4d=function(_4e){var _4f=i$.byId(_1+_4e);var _50=i$.byId(_2+_4e);if(_4f!=null){_4f.setAttribute("class",_e);}if(_50!=null){_50.style.display="none";}};var _51=function(){this.template="";this.template+="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";this.template+="<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xmlns:ext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model\" xmlns:creationcontext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">\n";this.template+="<atom:author>\n";this.template+="<atom:name>IBM WebSphere Portal/8.0</atom:name>\n";this.template+="</atom:author>\n";this.template+="<atom:title>WebSphere Portal Server TagSpace Feed</atom:title>\n";this.template+="<atom:link href=\".\" rel=\"self\" type=\"application/atom+xml\"/>\n";this.template+="<atom:entry creationcontext:private=\"${isPrivate}\">\n";this.template+="<atom:title xml:lang=\"${locale}\">${tagname}</atom:title>\n";this.template+="<atom:id>tm:cid:${id}</atom:id>\n";this.template+="<atom:link ext:uri=\"rm:${resourceURI}\" rel=\"replies\" href=\"example.org\"/>\n";this.template+="${category}";this.template+="</atom:entry>\n";this.template+="</atom:feed>\n";this.getRequest=function(tag){if(tag.isPrivate==null){var _52=false;}else{var _52=tag.isPrivate;}if(tag.locale==null){var _53="en";}else{var _53=tag.locale;}if(tag.id==null){var id="0";}else{var id=tag.id;}if(tag.category==null){var _54="";}else{var _54="<atom:category term=\""+tag.category+"\"/>\n";}var _55=this.template;_55=_55.replace("${tagname}",tag.name);_55=_55.replace("${resourceURI}",tag.oid);_55=_55.replace("${isPrivate}",_52);_55=_55.replace("${locale}",_53);_55=_55.replace("${id}",id);_55=_55.replace("${category}",_54);return _55;};};var _56=new _51();var Tag=function(_57,oid){this.name=_57;this.oid=oid;this.isPrivate=false;this.locale="en";this.id=115;this.category="books";this.display=function(){return "URL: "+this.oid+", tag: "+this.name;};};var _58=function(tag){request=_56.getRequest(tag);var _59=tag.oid;_5a(request,_59,_5b);};var _5a=function(_5c,_5d,_5e){var _5f=ibmPortalConfig.contentHandlerURI;if(_5f!=null){if(_5f.indexOf("?")>0){_5f+="&";}else{_5f+="?";}}var _60="uri=";var _61="tm:ts:all";var _62="&mime-type=application/json";var _63=_5f+_60+_61;i$.xhrPost({url:_63,postData:_5c,headers:{"content-type":"application/xml"}}).then(function(_64){var _65=com_ibm_widgets_tagging.getCurrentDisplayedCount(_5d);var _66=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_5d);com_ibm_widgets_tagging.setPlusClicked(_5d,false);_5e(_5d,_66,_65,com_ibm_widgets_tagging.displayTagsLight);},function(_67){console.error("Error case: ",_67);if(_67!=null&&_67.xhr!=null&&_67.xhr.status!=null&&_67.xhr.status==400){_67.data.message=dojoless_resource_AddTag.text_error_tags_invalid;}else{if(_67!=null&&_67.xhr!=null&&_67.xhr.status!=null&&_67.xhr.status==403){_67.data.message=dojoless_resource_AddTag.text_error_tags_too_long;}else{if(_67!=null&&_67.xhr!=null&&_67.xhr.status!=null&&_67.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}}}_41(_5d,_67);});};var _5b=function(_68,_69,_6a,_6b){var _6c=i$.byId(com_ibm_widgets_tagging.TAGGING_WIDGET_TAGS_ID_PREFIX+_68);if(_6c.getAttribute("customLabel")==null||_6c.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.tagging.inline.customLabel!==null&&typeof ibmPortalCPConfig.tagging.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.tagging.inline.customLabel;}else{customLabel=null;}}else{customLabel=_6c.getAttribute("customLabel");}var _6d=com_ibm_widgets_tagging.TAGGING_WIDGET_ID_PREFIX+_6a;var _6e=null;switch(_69){case ("PERSONAL_PRIVATE"):_6e=["personal_private"];break;case ("PERSONAL_PUBLIC"):_6e=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_6e=["community","personal_public"];break;default:_6e=["community","personal_public"];break;}var _6f={"oid":_68,"tagListParentId":_6d,"tagsClickable":_6c.getAttribute("tagsClickable")||ibmPortalCPConfig.tagging.inline.tagsClickable,"tagClickActionMode":_6c.getAttribute("tagClickActionMode")||ibmPortalCPConfig.tagging.inline.tagClickActionMode,"showDialogLauncher":_6c.getAttribute("showDialogLauncher")||ibmPortalCPConfig.tagging.inline.showDialogLauncher,"maxResults":_6c.getAttribute("maxResults")||ibmPortalCPConfig.tagging.inline.maxResults,"customMessageNoTags":_6c.getAttribute("customMessageNoTags")||dojoless_resource_AddTag.text_no_tags,"countsEnabled":_6c.getAttribute("countsEnabled")||ibmPortalCPConfig.tagging.inline.countsEnabled,"customLabel":_6c.getAttribute("customLabel")||ibmPortalCPConfig.tagging.inline.customLabel,"tagClickTransmitScopes":_6c.getAttribute("tagClickTransmitScopes")||ibmPortalCPConfig.tagging.inline.tagClickTransmitScopes,"privateTaggingEnabled":_6c.getAttribute("privateTaggingEnabled")||ibmPortalCPConfig.tagging.inline.privateTaggingEnabled,"resourceType":_6c.getAttribute("resourceType")||ibmPortalCPConfig.tagging.inline.resourceType,"customLabelCommunityTags":_6c.getAttribute("customLabelCommunityTags")||ibmPortalCPConfig.tagging.inline.customLabelCommunityTags,"customLabelPersonalPublicTags":_6c.getAttribute("customLabelPersonalPublicTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPublicTags,"customLabelPersonalPrivateTags":_6c.getAttribute("customLabelPersonalPrivateTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPrivateTags,"showAllTags":false};_6f.query={"order":_6c.getAttribute("order")||ibmPortalCPConfig.tagging.inline.order,"orderMetric":_6c.getAttribute("orderMetric")||ibmPortalCPConfig.tagging.inline.orderMetric,"scope":_6e,"resourceCategories":_6c.getAttribute("resourceCategories")||ibmPortalCPConfig.tagging.inline.resourceCategories};_2e(_6f,_6b);};var _70=function(_71,_72,_73){var _74=null;switch(_72){case ("PERSONAL_PRIVATE"):_74=["personal_private"];break;case ("PERSONAL_PUBLIC"):_74=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_74=["community","personal_public"];break;default:_74=["community","personal_public"];break;}var _75=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_STARS_DIV_PREFIX+_71);if(_75.getAttribute("ratingDescription")==null||_75.getAttribute("ratingDescription")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingDescription!==null&&typeof ibmPortalCPConfig.rating.inline.ratingDescription!=="undefined"){ratingDescription=ibmPortalCPConfig.rating.inline.ratingDescription.toUpperCase();}else{ratingDescription="ALL";}}else{ratingDescription=_75.getAttribute("ratingDescription");}if(_75.getAttribute("numStars")==null||_75.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){numStars=ibmPortalCPConfig.rating.inline.numStars;}else{numStars=5;}}else{numStars=_75.getAttribute("numStars");}if(_75.getAttribute("customLabel")==null||_75.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_75.getAttribute("customLabel");}var _76;var _77;var _78;if(_75.getAttribute("customLabelCommunityRatings")==null||_75.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_76=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_76=null;}}else{_76=_75.getAttribute("customLabelCommunityRatings");}if(_75.getAttribute("customLabelPersonalPublicRatings")==null||_75.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_77=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_77=null;}}else{_77=_75.getAttribute("customLabelPersonalPublicRatings");}if(_75.getAttribute("customLabelPersonalPrivateRatings")==null||_75.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_78=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_78=null;}}else{_78=_75.getAttribute("customLabelPersonalPrivateRatings");}var _79={"oid":_71,"customLabel":customLabel,"customLabelCommunityRatings":_76,"customLabelPersonalPublicRatings":_77,"customLabelPersonalPrivateRatings":_78,"scope":_74,"ratingDescription":ratingDescription,"numStars":numStars};_79.query={"oid":_71,"customLabel":customLabel,"customLabelCommunityRatings":_76,"customLabelPersonalPublicRatings":_77,"customLabelPersonalPrivateRatings":_78,"scope":_74,"ratingDescription":ratingDescription,"numStars":numStars};_33(_79,_73);};var _7a=function(_7b,_7c,_7d,_7e){var _7f=null;_7f=["personal_public"];var _80=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_STARS_DIV_PREFIX+_7b);if(_80.getAttribute("numStars")==null||_80.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){numStars=ibmPortalCPConfig.rating.inline.numStars;}else{numStars=5;}}else{numStars=_80.getAttribute("numStars");}if(_80.getAttribute("customLabel")==null||_80.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_80.getAttribute("customLabel");}var _81;var _82;var _83;if(_80.getAttribute("customLabelCommunityRatings")==null||_80.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_81=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_81=null;}}else{_81=_80.getAttribute("customLabelCommunityRatings");}if(_80.getAttribute("customLabelPersonalPublicRatings")==null||_80.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_82=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_82=null;}}else{_82=_80.getAttribute("customLabelPersonalPublicRatings");}if(_80.getAttribute("customLabelPersonalPrivateRatings")==null||_80.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_83=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_83=null;}}else{_83=_80.getAttribute("customLabelPersonalPrivateRatings");}var _84={"oid":_7b,"customLabel":customLabel,"customLabelCommunityRatings":_81,"customLabelPersonalPublicRatings":_82,"customLabelPersonalPrivateRatings":_83,"scope":_7f,"numStars":numStars,"ratingValue":_7d};_84.query={"oid":_7b,"customLabel":customLabel,"customLabelCommunityRatings":_81,"customLabelPersonalPublicRatings":_82,"customLabelPersonalPrivateRatings":_83,"scope":_7f,"numStars":numStars,"ratingValue":_7d};_33(_84,_7e);};var _85=function(_86,_87,_88,_89){var _8a=null;switch(_87){case ("PERSONAL_PRIVATE"):_8a=["personal_private"];break;case ("PERSONAL_PUBLIC"):_8a=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_8a=["community","personal_public"];break;default:_8a=["community","personal_public"];break;}var _8b=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_STARS_DIV_PREFIX+_86);if(_8b.getAttribute("ratingDescription")==null||_8b.getAttribute("ratingDescription")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingDescription!==null&&typeof ibmPortalCPConfig.rating.inline.ratingDescription!=="undefined"){ratingDescription=ibmPortalCPConfig.rating.inline.ratingDescription.toUpperCase();}else{ratingDescription="ALL";}}else{ratingDescription=_8b.getAttribute("ratingDescription");}if(_8b.getAttribute("numStars")==null||_8b.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){numStars=ibmPortalCPConfig.rating.inline.numStars;}else{numStars=5;}}else{numStars=_8b.getAttribute("numStars");}if(_8b.getAttribute("customLabel")==null||_8b.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_8b.getAttribute("customLabel");}var _8c;var _8d;var _8e;if(_8b.getAttribute("customLabelCommunityRatings")==null||_8b.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_8c=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_8c=null;}}else{_8c=_8b.getAttribute("customLabelCommunityRatings");}if(_8b.getAttribute("customLabelPersonalPublicRatings")==null||_8b.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_8d=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_8d=null;}}else{_8d=_8b.getAttribute("customLabelPersonalPublicRatings");}if(_8b.getAttribute("customLabelPersonalPrivateRatings")==null||_8b.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_8e=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_8e=null;}}else{_8e=_8b.getAttribute("customLabelPersonalPrivateRatings");}var _8f={"oid":_86,"customLabel":customLabel,"customLabelCommunityRatings":_8c,"customLabelPersonalPublicRatings":_8d,"customLabelPersonalPrivateRatings":_8e,"scope":_8a,"ratingDescription":ratingDescription,"numStars":numStars};_8f.query={"oid":_86,"customLabel":customLabel,"customLabelCommunityRatings":_8c,"customLabelPersonalPublicRatings":_8d,"customLabelPersonalPrivateRatings":_8e,"scope":_8a,"ratingDescription":ratingDescription,"numStars":numStars};var _90=new Array(1);_90[0]={name:_88,count:"1"};var _91=!ibmPortalConfig.isUserLoggedIn;if(_91&&_87=="PERSONAL_PUBLIC"){_89(_90,_8f);}else{_33(_8f,_89);}};var _92=function(_93,_94){var _95=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_PREFIX+_93);var _96=_94;if(_94=="COMMUNITY_PERSONAL_PUBLIC"){_96=["community","personal_public"];}var _97={"oid":_93,"scope":_96};_97.query={"oid":_93,"scope":_96};var _98={uri:"rtm:empty",rmparam:"rm:"+_97.oid,"mime-type":"application/json"};var _99={"scope":_96};_99.query={"scope":_96};var _9a=ibmPortalConfig.contentHandlerURI;if(_9a!=null){if(_9a.indexOf("?")>0){_9a+="&";}else{_9a+="?";}}_9a+=i$.toQuery(_98)+"&"+i$.toQuery(_99.query)+"&"+Math.random();i$.xhrGet({url:_9a,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_9b){if(_9b.data===""){}else{var _9c=i$.fromJson(_9b.data);var _9d=_9c["entry"];}var _9e;if(_98.uri=="tm:ts:empty"){}else{if(_9d===undefined){_9e=null;}else{numberOfRatings=_9d.length;if(numberOfRatings==1){var _9e=null;_9e={id:_9d[0].id};_a0(_9e.id,_98,_97,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{var i=0;for(i=0;i<numberOfRatings;i++){var _9e=null;_9e={id:_9d[i].id};_a0(_9e.id,_98,_97,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}}}},function(_9f){console.error("Error case: ",_9f);if(_9f!=null&&_9f.xhr!=null&&_9f.xhr.status!=null&&_9f.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_97.oid,_9f);}});};var _a0=function(_a1,_a2,_a3,_a4){var _a2={uri:_a1,"mime-type":"application/json"};var _a5={"scope":_a3.scope};_a5.query={"scope":_a3.scope};var _a6=ibmPortalConfig.contentHandlerURI;if(_a6!=null){if(_a6.indexOf("?")>0){_a6+="&";}else{_a6+="?";}}_a6+=i$.toQuery(_a2)+"&"+i$.toQuery(_a5.query)+"&"+Math.random();i$.xhrDelete({url:_a6,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_a7){_a4(_a3.oid,_a3.scope,com_ibm_widgets_rating.displayDojolessRatings);},function(_a8){console.error("Error case: ",_a8);if(_a8!=null&&_a8.xhr!=null&&_a8.xhr.status!=null&&_a8.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_a3.oid,_a8);}});};var _a9=function(_aa,_ab){var _ac=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_PREFIX+_aa);var _ad=_ab;if(_ab=="COMMUNITY_PERSONAL_PUBLIC"){_ad=["community","personal_public"];}var _ae={"oid":_aa,"scope":_ad};_ae.query={"oid":_aa,"scope":_ad};var _af={uri:"rtm:rs:empty",rmparam:"rm:"+_ae.oid,"mime-type":"application/json"};var _b0=ibmPortalConfig.contentHandlerURI;if(_b0!=null){if(_b0.indexOf("?")>0){_b0+="&";}else{_b0+="?";}}_b0+=i$.toQuery(_af)+"&"+Math.random();i$.xhrGet({url:_b0,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_b1){if(_b1.data!=null&&_b1.data!=""){var _b2=i$.fromJson(_b1.data);var _b3=_b2["entry"];}var _b4;if(_af.uri=="rtm:rs:empty"){if(_b3===undefined){_b4=null;}else{numberOfRatings=_b3.length;var _b4=null;var _b5=_b3[0];if(_b5!=null){var _b6=_b5.link;}if(_b6!=null){var _b7=_b6[2].href;}if(_b7!=null){_b4={id:_b7};_b9(_b4.id,_af,_ae,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}}},function(_b8){console.error("Error case: ",_b8);if(_b8!=null&&_b8.xhr!=null&&_b8.xhr.status!=null&&_b8.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_ae.oid,_b8);}});};var _b9=function(_ba,_bb,_bc,_bd){var _bb={uri:_ba,"mime-type":"application/json"};var _be;if(_bc.scope=="COMMUNITY_PERSONAL_PUBLIC"){_be=["community","personal_public"];}var _bf={"scope":_be};_bf.query={"scope":_be};var _c0=ibmPortalConfig.contentHandlerURI;if(_c0!=null){if(_c0.indexOf("?")>0){_c0+="&";}else{_c0+="?";}}_c0+=i$.toQuery(_bb)+"&"+i$.toQuery(_bf.query)+"&"+Math.random();_c0=_ba;i$.xhrDelete({url:_c0,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_c1){_bd(_bc.oid,_bc.scope,com_ibm_widgets_rating.displayDojolessRatings);},function(_c2){console.error("Error case: ",_c2);if(_c2!=null&&_c2.xhr!=null&&_c2.xhr.status!=null&&_c2.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_bc.oid,_c2);}});};var _c3=function(){this.template="";this.template+="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";this.template+="<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xmlns:ext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model\" xmlns:creationcontext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">\n";this.template+="<atom:author>\n";this.template+="<atom:name>IBM WebSphere Portal/8.0</atom:name>\n";this.template+="</atom:author>\n";this.template+="<atom:title>WebSphere Portal Server RatingSpace Feed</atom:title>\n";this.template+="<atom:link href=\".\" rel=\"self\" type=\"application/atom+xml\"/>\n";this.template+="<atom:entry creationcontext:private=\"${isPrivate}\">\n";this.template+="<atom:title >${tagname}</atom:title>\n";this.template+="<atom:id>rm:cid:${id}</atom:id>\n";this.template+="<atom:link ext:uri=\"rm:${resourceURI}\" rel=\"replies\" href=\"example.org\"/>\n";this.template+="${category}";this.template+="</atom:entry>\n";this.template+="</atom:feed>\n";this.getRequest=function(_c4){var _c5=this.template;_c5=_c5.replace("${tagname}",_c4.name);_c5=_c5.replace("${resourceURI}",_c4.oid);_c5=_c5.replace("${isPrivate}",_c4.isPrivate);_c5=_c5.replace("${id}",_c4.id);return _c5;};};var _c6=new _c3();var _c7=function(_c8,_c9,_ca,_cb){var _cc;if(_c9=="PERSONAL_PUBLIC"){scopeIsPrivate="false";}else{scopeIsPrivate="true";}var _cd={name:_ca,oid:_c8,isPrivate:scopeIsPrivate};request=_c6.getRequest(_cd);var _ce=!ibmPortalConfig.isUserLoggedIn;if(!_ce){_cf(request,_c8,_cb);}else{_d0(request,_c8,_ca,_cb);}};var _cf=function(_d1,oid,_d2){var _d3=ibmPortalConfig.contentHandlerURI;if(_d3!=null){if(_d3.indexOf("?")>0){_d3+="&";}else{_d3+="?";}}var _d4="uri=";var _d5="rtm:rs:"+"all";var _d6="&mime-type=application/json";var _d7=_d3+_d4+_d5+"&"+Math.random();i$.xhrPost({url:_d7,postData:_d1,headers:{"content-type":"application/xml","X-IBM-XHR":"true"}}).then(function(_d8){_d2(oid,com_ibm_widgets_rating.getCurrentDisplayedScope(oid),com_ibm_widgets_rating.displayDojolessRatings);},function(_d9){console.error("Error case: ",_d9);if(_d9!=null&&_d9.xhr!=null&&_d9.xhr.status!=null&&_d9.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(oid,_d9);}});};var _d0=function(_da,oid,_db,_dc){var _dd=ibmPortalConfig.contentHandlerURI;if(_dd!=null){if(_dd.indexOf("?")>0){_dd+="&";}else{_dd+="?";}}var _de="uri=";var _df="rtm:rs:"+"all";var _e0="&mime-type=application/json";var _e1=_dd+_de+_df+"&"+Math.random();i$.xhrPost({url:_e1,postData:_da,headers:{"content-type":"application/xml","X-IBM-XHR":"true"}}).then(function(_e2){var _e3=new Array(1);_e3[0]={name:"0",count:"0"};var _e4=!ibmPortalConfig.isUserLoggedIn;_dc(oid,com_ibm_widgets_rating.getCurrentDisplayedScope(oid),_db,com_ibm_widgets_rating.displayDojolessRatings);},function(_e5){console.error("Error case: ",_e5);if(_e5!=null&&_e5.xhr!=null&&_e5.xhr.status!=null&&_e5.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(oid,_e5);}});};var _e6=function(){this.editRatingtemplate="";this.editRatingtemplate+="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";this.editRatingtemplate+="<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xmlns:ext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model\" xmlns:creationcontext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">\n";this.editRatingtemplate+="<atom:author>\n";this.editRatingtemplate+="<atom:name>IBM WebSphere Portal/8.0</atom:name>\n";this.editRatingtemplate+="</atom:author>\n";this.editRatingtemplate+="<atom:title>WebSphere Portal Server RatingSpace Feed</atom:title>\n";this.editRatingtemplate+="<atom:id>rtm:rs:empty</atom:id>\n";this.editRatingtemplate+="<atom:link href=\".\" rel=\"self\" type=\"application/atom+xml\"/>\n";this.editRatingtemplate+="<atom:entry xmlns:atom=\"http://www.w3.org/2005/Atom\">\n";this.editRatingtemplate+="<atom:title >${tagname}</atom:title>\n";this.editRatingtemplate+="<atom:author>\n";this.editRatingtemplate+="<atom:name>wpsadmin</atom:name>\n";this.editRatingtemplate+="<atom:uri>um:oid:Z9eAeI9D8MQCCNHC8JM472JPCMMG613DEJM4CH9PGJM06O1D03Q47I1EA3H9CN1</atom:uri>\n";this.editRatingtemplate+="</atom:author>\n";this.editRatingtemplate+="<atom:id>rtm:oid:${id}</atom:id>\n";this.editRatingtemplate+="</atom:entry>\n";this.editRatingtemplate+="</atom:feed>\n";this.getEditRatingRequest=function(_e7){var _e8=this.editRatingtemplate;_e8=_e8.replace("${tagname}",_e7.name);_e8=_e8.replace("${resourceURI}",_e7.resourceID);_e8=_e8.replace("${isPrivate}",false);_e8=_e8.replace("${id}",_e7.id);return _e8;};};var _e9=new _e6();var _ea=function(_eb,_ec,_ed,_ee){var _ef={uri:"rtm:empty",rmparam:"rm:"+_eb,"mime-type":"application/json"};var _f0={"oid":_eb,"scope":_ec};_f0.query={"oid":_eb,"scope":_ec};var _f1=ibmPortalConfig.contentHandlerURI;if(_f1!=null){if(_f1.indexOf("?")>0){_f1+="&";}else{_f1+="?";}}_f1+=i$.toQuery(_ef)+"&"+i$.toQuery(_f0.query)+"&"+Math.random();i$.xhrGet({url:_f1,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_f2){if(_f2.data===""){}else{var _f3=i$.fromJson(_f2.data);var _f4=_f3["entry"];}var _f5;if(_ef.uri=="tm:ts:empty"){}else{if(_f4===undefined){_f5=null;}else{numberOfRatings=_f4.length;var _f5=null;_f5={id:_f4[0]["id"],name:_f4[0]["title"]["$t"],count:_f4[0]["link"][0]["count"]};var _f6={name:_ed,oid:_f5.id,resourceID:_f0.oid};editRatingrequest=_e9.getEditRatingRequest(_f6);_f8(editRatingrequest,_eb,_f5.id,_ee);}}},function(_f7){console.error("Error case: ",_f7);if(_f7!=null&&_f7.xhr!=null&&_f7.xhr.status!=null&&_f7.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_f0.oid,_f7);}});};var _f8=function(_f9,oid,id,_fa){var _fb=ibmPortalConfig.contentHandlerURI;var _fc={uri:id,rep:"empty",mode:"merge",};if(_fb!=null){if(_fb.indexOf("?")>0){_fb+="&";}else{_fb+="?";}}var _fd=_fb+i$.toQuery(_fc);i$.xhrPut({url:_fd,postData:_f9,headers:{"content-type":"application/xml","X-IBM-XHR":"true"}}).then(function(_fe){_fa(oid,com_ibm_widgets_rating.getCurrentDisplayedScope(oid),com_ibm_widgets_rating.displayDojolessRatings);},function(_ff){console.error("Error case: ",_ff);if(_ff!=null&&_ff.xhr!=null&&_ff.xhr.status!=null&&_ff.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(oid,_ff);}});};var _100=function(_101,_102,_103){var _104={uri:"tm:name:"+_103,rmparam:"rm:"+_101.oid,"mime-type":"application/json"};var _105=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_101.oid);var _106={"scope":_105};_106.query={"scope":_105};var _107=ibmPortalConfig.contentHandlerURI;if(_107!=null){if(_107.indexOf("?")>0){_107+="&";}else{_107+="?";}}_107+=i$.toQuery(_104)+"&"+i$.toQuery(_106.query)+"&"+Math.random();i$.xhrGet({url:_107,scope:_105,responseType:"text",}).then(function(_108){if(_108.data===""){}else{var _109=i$.fromJson(_108.data);var _10a=_109["entry"];}var torR;var _10b=0;if(_10a!==undefined){_10b=_10a.length;}var torR=new Array(_10b);for(var i=0;i<_10b;i++){torR[i]={name:_10a[i]["title"]["$t"],id:_10a[i].id};_10d(torR[i].id,_104,_101,_102);}},function(_10c){console.error("Error case: ",_10c);if(_10c!=null&&_10c.xhr!=null&&_10c.xhr.status!=null&&_10c.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_101.oid,_10c);}});};var _10d=function(_10e,_10f,_110,_111){var _10f={uri:_10e,"mime-type":"application/json"};var _112=ibmPortalConfig.contentHandlerURI;if(_112!=null){if(_112.indexOf("?")>0){_112+="&";}else{_112+="?";}}_112+=i$.toQuery(_10f)+"&"+i$.toQuery(_110.query)+"&"+Math.random();i$.xhrDelete({url:_112,responseType:"text"}).then(function(_113){var _114=com_ibm_widgets_tagging.getCurrentDisplayedCount(_110.oid);var _115=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_110.oid);_111(_110.oid,_115,_114,com_ibm_widgets_tagging.displayTagsLight);},function(_116){console.error("Error case: ",_116);if(_116!=null&&_116.xhr!=null&&_116.xhr.status!=null&&_116.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_110.oid,_116);}});};var _117=function(_118,_119,_11a){var _11b={uri:"tm:name:"+_11a,rmparam:"rm:"+_118,"mime-type":"application/json"};var _11c=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_118);var _11d={"scope":_11c};_11d.query={"scope":_11c};var _11e=ibmPortalConfig.contentHandlerURI;if(_11e.indexOf("?")>0){_11e+="&";}else{_11e+="?";}_11e+=i$.toQuery(_11b)+"&"+i$.toQuery(_11d.query)+"&"+Math.random();i$.xhrGet({url:_11e,scope:_11c,responseType:"text",}).then(function(_11f){if(_11f.data===""){console.log("Data is empty string.");}else{var _120=i$.fromJson(_11f.data);var _121=_120["entry"];}var torR;var _122=0;if(_121!==undefined){_122=_121.length;}var torR=new Array(_122);for(var i=0;i<_122;i++){torR[i]={name:_121[i]["title"]["$t"],id:_121[i].id};_124(torR[i].id,_11b,_118,_119);}},function(_123){console.error("Error case: ",_123);if(_123!=null&&_123.xhr!=null&&_123.xhr.status!=null&&_123.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_118,_123);}});};var _124=function(_125,_126,_127,_128){var _126={uri:_125,"mime-type":"application/json"};var _129=ibmPortalConfig.contentHandlerURI;if(_129!=null){if(_129.indexOf("?")>0){_129+="&";}else{_129+="?";}}_129+=i$.toQuery(_126)+"&"+i$.toQuery(_127)+"&"+Math.random();i$.xhrDelete({url:_129,responseType:"text"}).then(function(_12a){var _12b=com_ibm_widgets_tagging.getCurrentDisplayedCount(_127);var _12c=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_127);_5b(_127,_12c,_12b,com_ibm_widgets_tagging.displayMoreTags);},function(_12d){console.error("Error case: ",_12d);if(_12d!=null&&_12d.xhr!=null&&_12d.xhr.status!=null&&_12d.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_127,_12d);}});};return {fetchTagsLight:_2e,fetchSpecificScopeTags:_5b,showTaggingErrorMessage:_41,showTaggingValidationError:_47,deleteTag:_100,deleteMoreTag:_117,insertTag:_58,clearTaggingErrorMessage:_4d,setALTtextforAllElementsInTagging:_25,trace:_f,setALTtextforAllElementsInRating:_1f,deleteRating:_92,deleteAllRating:_a9,insertRating:_c7,editRating:_ea,clearRatingErrorMessage:_1b,fetchDojolessRatings:_33,fetchSpecificScopeRatings:_70,fetchSpecificScopeRatings_defaultView:_7a,fetchSpecificScopeRatings_anonymousUser:_85};})();var com_ibm_widgets_tagging=(function(){var _12e=".tags";var _12f="Twisty_";var _130="TagWidget_";var _131="tagginglighttagslist_";var _132="_Content";var _133="lotusHidden lotusTagCloud lotusui";var _134="lotusTagCloud lotusui";var _135="tagginglight_privateTaggingEnabled";var _136="tagginglight_deleteTaggingEnabled";var _137="tagginglight_plusClicked";var _138="_Image";var _139="_MoreTags";var _13a="TaggingMenu_";var _13b="tagginglight_";TAGGING_INLINE_EDITING_TYPEAHEAD_SUFFIX="_SuggestionList";var _13c="taggingMenuOptionDiv";var _13d="TaggingMenuDiv_";var _13e="tagginglight_CurrentScope";var _13f="tagginglight_CurrentCount";var _140="tagginglightmenulink_";var _141="tagginglightAddTaglink_";var _142="taggingDropDownMenuDialog_";var _143,_144,_145,_146;var _147="tagginglightinput_";var _148="tagginglightinputField_";var _149=new Array();var _14a="deleteIcon";var _14b="wpTaggingLight";var _14c="ltr";var _14d=i$.addOnLoad;if(typeof wp_wcm_async!="undefined"){_14d=i$.scope(wp_wcm_async,wp_wcm_async.addOnPageLoad);}_14d(function(){var _14e=ibmPortalConfig.projectUUID;if(_14e==null||_14e==""){i$.forEach(i$.query(_12e),function(_14f,_150,_151){var _152=_130+_150;var _153=ibmPortalCPConfig?ibmPortalCPConfig.operations.canViewTags&&ibmPortalCPConfig.isTaggingEnabled:null;if(_153==null||(!_153)){return;}var _154={"count":_150,"oid":_14f.getAttribute("resourceId"),"tagListParentId":_152,"tagsClickable":_14f.getAttribute("tagsClickable")||ibmPortalCPConfig.tagging.inline.tagsClickable,"tagClickActionMode":_14f.getAttribute("tagClickActionMode")||ibmPortalCPConfig.tagging.inline.tagClickActionMode,"showDialogLauncher":_14f.getAttribute("showDialogLauncher")||ibmPortalCPConfig.tagging.inline.showDialogLauncher,"maxResults":_14f.getAttribute("maxResults")||ibmPortalCPConfig.tagging.inline.maxResults,"customLabel":_14f.getAttribute("customLabel")||ibmPortalCPConfig.tagging.inline.customLabel,"customMessageNoTags":_14f.getAttribute("customMessageNoTags")||dojoless_resource_AddTag.text_no_tags,"countsEnabled":_14f.getAttribute("countsEnabled")||ibmPortalCPConfig.tagging.inline.countsEnabled,"deletingEnabled":_14f.getAttribute("deletingEnabled")||ibmPortalCPConfig.tagging.inline.deletingEnabled,"tagClickTransmitScopes":_14f.getAttribute("tagClickTransmitScopes")||ibmPortalCPConfig.tagging.inline.tagClickTransmitScopes,"resourceType":_14f.getAttribute("resourceType")||ibmPortalCPConfig.tagging.inline.resourceType,"privateTaggingEnabled":_14f.getAttribute("privateTaggingEnabled")||ibmPortalCPConfig.tagging.inline.privateTaggingEnabled,"customLabelCommunityTags":_14f.getAttribute("customLabelCommunityTags")||ibmPortalCPConfig.tagging.inline.customLabelCommunityTags,"customLabelPersonalPublicTags":_14f.getAttribute("customLabelPersonalPublicTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPublicTags,"customLabelPersonalPrivateTags":_14f.getAttribute("customLabelPersonalPrivateTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPrivateTags,"showAllTags":false};_154.query={"order":_14f.getAttribute("order")||ibmPortalCPConfig.tagging.inline.order,"orderMetric":_14f.getAttribute("orderMetric")||ibmPortalCPConfig.tagging.inline.orderMetric,"scope":_14f.getAttribute("tagScope")||ibmPortalCPConfig.tagging.inline.tagScope,"resourceCategories":_14f.getAttribute("resourceCategories")||ibmPortalCPConfig.tagging.inline.resourceCategories};var _155="true";if(_14f.getAttribute("deletingEnabled")==null||_14f.getAttribute("deletingEnabled")=="undefined"){if(ibmPortalCPConfig.tagging.inline.deletingEnabled!==null&&typeof ibmPortalCPConfig.tagging.inline.deletingEnabled!=="undefined"){_155=ibmPortalCPConfig.tagging.inline.deletingEnabled;}else{_155="true";}}else{_155=_14f.getAttribute("deletingEnabled");}_156(_14f.getAttribute("resourceId"),_155);_149[_150]=_14f.getAttribute("resourceId");var _157=_134;var _158=null;if(_14f.getAttribute("tagScope")!=null){_158=_14f.getAttribute("tagScope");}else{_158=ibmPortalCPConfig.tagging.inline.tagScope;}if(_158){_158=_158.toUpperCase();}var _159=_15a(_158);var _15b=null;if(_14f.getAttribute("customLabel")!=null){_15b=_14f.getAttribute("customLabel");}else{_15b=ibmPortalCPConfig.tagging.inline.customLabel;}if(!_15b){switch(_159[0]){case ("COMMUNITY"):if(_154.customLabelCommunityTags==null){_15b=dojoless_resource_AddTag.title_community_tags;}else{_15b=_154.customLabelCommunityTags;}break;case ("PERSONAL_PRIVATE"):if(_154.customLabelPersonalPrivateTags==null){_15b=dojoless_resource_AddTag.title_priv_tags;}else{_15b=_154.customLabelPersonalPrivateTags;}break;case ("PERSONAL_PUBLIC"):if(_154.customLabelPersonalPublicTags==null){_15b=dojoless_resource_AddTag.title_pub_tags;}else{_15b=_154.customLabelPersonalPublicTags;}break;default:_15b=dojoless_resource_AddTag.title_community_tags;break;}}else{_15b=dojoless_resource_AddTag.title_community_tags;}var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _15c=i$.isRTL(loc);if(_15c!=null){if(_15c){_14c="rtl";}else{_14c="ltr";}}}var _15d=i$.byId("tagginglightlabeltext_"+_14f.getAttribute("resourceId"));if(_15d!=null){_15d.innerHTML=_15b;}_154.query.scope=_159;var _15e=i$.createDom("span",{"class":"trcText","title":_15b,"dir":_14c},_14f);var _15f=i$.createDom("span",{"id":_152,"class":_157,"dir":_14c},_14f);if(_14f.getAttribute("privateTaggingEnabled")==null||_14f.getAttribute("privateTaggingEnabled")=="undefined"){if(ibmPortalCPConfig.tagging.inline.privateTaggingEnabled!==null&&typeof ibmPortalCPConfig.tagging.inline.privateTaggingEnabled!=="undefined"){_145=ibmPortalCPConfig.tagging.inline.privateTaggingEnabled;}else{_145="false";}}else{_145=_14f.getAttribute("privateTaggingEnabled");}var _160=!ibmPortalConfig.isUserLoggedIn;if(_160){_159=["community","personal_public"];_145="false";}_161(_14f.getAttribute("resourceId"),_145);com_ibm_widgets_resolver.setALTtextforAllElementsInTagging(_14f.getAttribute("resourceId"));com_ibm_widgets_resolver.fetchTagsLight(_154,_162);});}},i$.global);var _163=",";var _164=", ";var _165=" , ";var _166=" ; ";var _167="...";var _168=" ";var _162=function(tags,_169){var _16a=tags.length;var _16b=(_169.maxResults<_16a&&_169.showAllTags==false)?_169.maxResults:_16a;var _16c=_169.tagListParentId;var _16d=_16c+_132;var _16e=i$.byId(_16c);_16e.innerHTML="";com_ibm_widgets_resolver.clearTaggingErrorMessage(_169.oid);var _16f=i$.byId("tagginglightmenuDIV_"+_169.oid);var _170=i$.byId("tagginglightAddTagDIV_"+_169.oid);if(ibmPortalCPConfig.operations.canCreatePublicTags||ibmPortalCPConfig.operations.canCreatePrivateTags){if(_16f!=null){_16f.setAttribute("class","menuShow");}if(_170!=null){_170.setAttribute("class","addtagShow");}}var _171=i$.byId("tagginglightinput_"+_169.oid);if(_171!=null){_171.setAttribute("class","addtagShow");}var _172=i$.byId("tagginglightdivider1_"+_169.oid);if(_172!=null){_172.setAttribute("class","divider1Show");}var _173=i$.createDom("span",{"id":_16d,"dir":_14c},_16e);var _174=i$.byId("tagginglightmoretagslink_"+_169.oid);if(_174!=null){_174.innerHTML=dojoless_resource_AddTag.title_more_tags;_174.setAttribute("onclick","com_ibm_widgets_tagging.getMoreTags('"+_169.oid+"')");i$.bindDomEvt(_174,"onkeypress",function(evt){var _175=evt.keyCode;if(_175==0&&evt.charCode==32){_175=32;}if(_175==13||_175==32){com_ibm_widgets_tagging.getMoreTags(_169.oid);}});_174.setAttribute("style","display:inline");}var _176=i$.byId(_142+_169.oid);var _177=null;var _178=_169.query.scope;var _179=_178[0];_179=_179.toUpperCase();switch(_179){case ("COMMUNITY"):if(_169.customLabelCommunityTags==null){_177=dojoless_resource_AddTag.title_community_tags;}else{_177=_169.customLabelCommunityTags;}break;case ("PERSONAL_PRIVATE"):if(_169.customLabelPersonalPrivateTags==null){_177=dojoless_resource_AddTag.title_priv_tags;}else{_177=_169.customLabelPersonalPrivateTags;}break;case ("PERSONAL_PUBLIC"):if(_169.customLabelPersonalPublicTags==null){_177=dojoless_resource_AddTag.title_pub_tags;}else{_177=_169.customLabelPersonalPublicTags;}break;default:_177=dojoless_resource_AddTag.title_community_tags;break;}if(_169.customLabel!=null){_177=_169.customLabel;}var _17a=i$.byId("tagginglightlabeltext_"+_169.oid);if(_17a!=null){_17a.innerHTML=_177;}_227(_169.oid,_178[0].toUpperCase());if(_169.count!=null){_22d(_169.oid,_169.count);}var _17b=i$.byId("tagginglightdivider3_"+_169.oid);var _17c=i$.byId("tagginglightdivider2_"+_169.oid);if(tags.length<1){var _17d=i$.createDom("span",{"title":_169.customMessageNoTags,"dir":_14c},_173);var _17e=document.createTextNode(_169.customMessageNoTags);_17d.appendChild(_17e);_174.setAttribute("style","display:none");if(_17b!=null){_17b.setAttribute("class","none");_17b.setAttribute("style","display:inline-block");}if(_17c!=null){_17c.setAttribute("class","divider1Show");}}else{if(_174!=null){_174.innerHTML=dojoless_resource_AddTag.title_more_tags;_174.setAttribute("style","display:inline");}if(_17b!=null){_17b.setAttribute("class","divider1Show");}if(_17c!=null){_17c.setAttribute("class","divider1Show");}}i$.forEach(tags,function(_17f,_180,_181){if(_180<_16b){var _182=_17f.name;var _183=_17f.id;_183=_183.substring(8);var _184;var _185=i$.createDom("a",{"lang":ibmPortalConfig.locale,"href":"javascript:;","alt":_182,"dir":_14c},_173);if(_169.tagsClickable==="false"){_184=i$.createDom("span",{"title":_182,"dir":_14c},_185);}else{_184=i$.createDom("span",{"title":_182,"href":"javascript:;","dir":_14c},_185);}var _186=_24e(_169.oid);_185.setAttribute("onclick","com_ibm_widgets_tagging.selectTagRedirectFunction('"+_182+"' , '"+_186+"','"+_169.tagClickActionMode+"')");var _187=i$.bindDomEvt(_185,"onkeypress",function(evt){var _188=evt.keyCode;if(_188==0&&evt.charCode==32){_188=32;}if(_188==13||_188==32){_1c9(_182,_186,_169.tagClickActionMode);}});var _189=document.createTextNode(_182);_184.appendChild(_189);if(_169.countsEnabled&&_17f.count){_189=document.createTextNode(" ("+_17f.count+") ");_184.appendChild(_189);}var _18a=_169.query.scope[0];_18a=_18a.toUpperCase();var _18b=!ibmPortalConfig.isUserLoggedIn;var _18c=_23b(_169.oid);if(_18a=="PERSONAL_PUBLIC"||_18a=="PERSONAL_PRIVATE"||ibmPortalCPConfig.operations.canDeleteOtherUsersTags){if(!_18b&&_18c=="true"){var _18d=i$.createDom("span",{"dir":_14c},_173);var _18e=i$.createDom("a",{"title":dojoless_resource_AddTag.link_delete,"role":"button","href":"javascript:;"},_18d);var _18f=i$.createDom("div",{"style":"width: 10px; height: 10px;"},_18e);_18f.setAttribute("class",_14a);_18f.setAttribute("alt",dojoless_resource_AddTag.link_delete);var _190;try{_190=document.defaultView.getComputedStyle(_18f);}catch(e){_190=_18f.currentStyle;}if(_190.backgroundImage=="none"){var _191=i$.createDom("div",{"style":"width: 10px; height: 10px;display:inline-block;"},_18e);var _192=document.createTextNode("x");_191.appendChild(_192);}i$.bindDomEvt(_18e,"onclick",function(evt){com_ibm_widgets_resolver.deleteTag(_169,com_ibm_widgets_resolver.fetchSpecificScopeTags,_183);});i$.bindDomEvt(_18e,"onkeypress",function(evt){var _193=evt.keyCode;if(_193==0&&evt.charCode==32){_193=32;}if(_193==13||_193==32){com_ibm_widgets_resolver.deleteTag(_169,com_ibm_widgets_resolver.fetchSpecificScopeTags,_183);}});}}if(_180<(_16b-1)){_189=document.createTextNode(_164);_173.appendChild(_189);}}});var _194=i$.byId(_140+_169.oid);if(_194!=null){_194.setAttribute("onclick","com_ibm_widgets_tagging.tagMenu('"+_169.oid+"')");var _195=i$.bindDomEvt(_194,"onkeypress",i$.scope(this,function(_196){var _197=_196.keyCode;if(_196.keyCode==0&&_196.charCode==32){_197=32;}switch(_197){case 40:case 32:case 38:case 13:var _198=i$.byId(_142+_169.oid);if(_198==null){com_ibm_widgets_tagging.tagMenu(_169.oid);var _199=_13d+_169.oid;var _19a=i$.byId(_199);var _19b=_19a.firstChild;window.setTimeout(function(){_19b.focus();},200);if(_196.preventDefault){_196.preventDefault();}if(_196.returnValue){_196.returnValue=false;}}return false;break;case 39:case 40:var _198=i$.byId(_142+_169.oid);if(_198!=null&&this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}break;}}));}if(_16b==_16a){_174.setAttribute("style","display:none");var _17b=i$.byId("tagginglightdivider3_"+_169.oid);if(_17b!=null){_17b.setAttribute("class","none");_17b.setAttribute("style","display:inline-block");}if(_17c!=null){_17c.setAttribute("class","divider1Show");}}var _19c=i$.byId(_141+_169.oid);_19c.style.backgroundColor="white";var _19d;try{_19d=document.defaultView.getComputedStyle(_19c);}catch(e){_19d=_19c.currentStyle;}var _194=i$.byId(_140+_169.oid);var _17b=i$.byId("tagginglightdivider2_"+_169.oid);if(_19d.backgroundColor=="rgb(0, 0, 0)"){var _19e=i$.byId("InputImageDiv");if(_19e==null){var _19f=i$.createDom("div",{"id":"InputImageDiv","dir":_14c},_19c);var _1a0=document.createTextNode("+");_19f.appendChild(_1a0);}}_19c.style.visibility="visible";if(_169.showDialogLauncher!="false"){var _1a1=_17d||_16e;var _19c=i$.byId(_141+_169.oid);var item=i$.byId(_148+_169.oid);var _171=i$.byId("tagginglightinput_"+_169.oid);if(_171){var _1a2=_243(_169.oid);if(_1a2!=null&&_1a2=="true"){_171.setAttribute("class","addtagShow");}else{_171.setAttribute("class","addtag");}}var _1a3=i$.bindDomEvt(_19c,"onclick",function(evt){var item=i$.byId(_148+_169.oid);var _1a4=i$.byId("tagginglightinput_"+_169.oid);var _1a5=_1b2(_169.oid);_1a5=_15a(_1a5);var _1a6=_1a5[0].toUpperCase();if(_1a4){var _1a7=_243(_169.oid);if(_1a7=="true"||_1a6!=="COMMUNITY"){_1a4.setAttribute("class","addtagShow");item.value="";}if(_1a6=="COMMUNITY"){if(_169.count!=null){com_ibm_widgets_resolver.fetchSpecificScopeTags(_169.oid,"PERSONAL_PUBLIC",_169.count,com_ibm_widgets_tagging.displayTagsLight);}_246(_169.oid,true);}else{_246(_169.oid,false);}if(_1a4.getAttribute("class").indexOf("addtag"<0)){item=i$.byId(_148+_169.oid);item.focus();}}});var _1a3=i$.bindDomEvt(_19c,"onkeypress",function(evt){var _1a8=evt.keyCode;if(_1a8==0&&evt.charCode==32){_1a8=32;}if(_1a8!=9&&(_1a8==13||_1a8==32)){var item=i$.byId(_148+_169.oid);var _1a9=i$.byId("tagginglightinput_"+_169.oid);var _1aa=_1b2(_169.oid);_1aa=_15a(_1aa);var _1ab=_1aa[0].toUpperCase();if(_1a9){var _1ac=_243(_169.oid);if(_1ac=="true"||_1ab!=="COMMUNITY"){_1a9.setAttribute("class","addtagShow");item.value="";}if(_1ab=="COMMUNITY"){if(_169.count!=null){com_ibm_widgets_resolver.fetchSpecificScopeTags(_169.oid,"PERSONAL_PUBLIC",_169.count,com_ibm_widgets_tagging.displayTagsLight);}_246(_169.oid,true);}else{_246(_169.oid,false);}if(_1a9.getAttribute("class").indexOf("addtag"<0)){item=i$.byId(_148+_169.oid);item.focus();}}}});var _1ad=i$.byId(_148+_169.oid);var _1ae=i$.byId(_147+_169.oid);var _1af=i$.bindDomEvt(_1ad,"onkeydown",function(e){var _1b0=false;var _1b1=_1b2(_169.oid);var _1b3=_1b1.toUpperCase();if(_1b3=="PERSONAL_PRIVATE"){_1b0=true;}_169.query.scope=_1b1;keyDownHandler(e,_1ad,_169,_1b0);});}var _1b4=i$.createDom("form",{"method":"GET","action":".","name":"hiddenFormLight"},_1ae);var _1b5=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTag"},_1b4);var _1b6=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameTagCloudRedirectView"},_1b4);var _1b7=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTagMode"},_1b4);var _1b8=i$.createDom("input",{"type":"hidden","name":"hiddenFormUri"},_1b4);if(_169.tagClickTransmitScopes=="true"){var _1b9=_169.query.resourceCategories;if(_1b9&&_1b9!==""){var _1ba="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}sc";var _1bb=_1b9.split(_163);for(var i=0;i<_1bb.length;i++){var _1bc=i$.createDom("input",{type:"hidden",name:_1ba,value:_1bb[i]},_1b4);}}}var _176=i$.byId(_142+_169.oid);if(_176!=null&&this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}};var _1bd=function(item){var _1be=item.parentNode;var _1bf=_1be.childNodes;var _1c0=_1bf.length;var i=0;var _1c1=0;for(i=0;i<_1c0;i++){if(_1bf.item(i)==item){_1c1=i;break;}}if(_1c1==_1c0-1){_1c1=0;}else{_1c1=_1c1+1;var j=_1c1;for(j;j<_1c0;j++){if(!(_1bf.item(j).innerHTML==null||_1bf.item(j).innerHTML=="")){break;}}if(j==_1c0){_1c1=0;}else{_1c1=j;}}var _1c2=_1bf.item(_1c1).id;var temp=_1bf.item(_1c1);temp.focus();return i$.byId(_1bf.item(_1c1).id);};var _1c3=function(item){var _1c4=item.parentNode;var _1c5=_1c4.childNodes;var _1c6=_1c5.length;var i=0;var _1c7=0;for(i=0;i<_1c6;i++){if(_1c5.item(i)==item){_1c7=i;break;}}if(_1c7==0){_1c7=_1c6-1;if(_1c5.item(_1c7).innerHTML==""==null||_1c5.item(_1c7).innerHTML==""){_1c7=_1c7-1;}}else{_1c7=_1c7-1;var j=_1c7;for(j;j>0;j--){if(!(_1c5.item(j).innerHTML==""==null||_1c5.item(j).innerHTML=="")){break;}}_1c7=j;}var _1c8=_1c5.item(_1c7).id;var temp=_1c5.item(_1c7);temp.focus();return i$.byId(_1c5.item(_1c7).id);};var _1c9=function(_1ca,_1cb,_1cc){var _1cd="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stv_all";var _1ce="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stv_suggestedlinks";var _1cf="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stv_analytics";var _1d0="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}tcrv";var _1d1="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stm";var _1d2="tm:tc";var _1d3="tm:prp";var _1d4="all";var _1d5="community";var _1d6=["personal_public","community"];var _1d7="COMMUNITY_PERSONAL_PUBLIC";var _1d8="personal";var _1d9="personal_public";var _1da="personal_private";var _1db=true;var _1dc="PRIVATE";var _1dd="PUBLIC";var _1de="all";var _1df="suggested_links";var _1e0="analytics";var _1e1="TAG_CENTER";var _1e2="PUBLIC_RENDER_PARAMETER";var _1e3=false;if(!this.prefix||this.prefix===""){if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.name=_1cd;}else{document.hiddenFormLight.hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight.hiddenFormQNameSelectedTag.name=_1cd;}if(document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.value=_1de;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.name=_1d0;}if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.value=_1de;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.name=_1d1;}else{document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.value=_1de;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.value=_1de;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.name=_1d1;}}else{if(this.prefix===_prefixSuggestedLinks){if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.name=_1ce;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.value=_1df;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.value=_1df;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.name=_1d1;}else{document.hiddenFormLight.hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight.hiddenFormQNameSelectedTag.name=_1ce;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.value=_1df;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.value=_1df;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.name=_1d1;}}else{if(this.prefix===_prefixAnalytics){if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.name=_1cf;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.value=_1e0;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.value=_1e0;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.name=_1d1;}else{document.hiddenFormLight.hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight.hiddenFormQNameSelectedTag.name=_1cf;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.value=_1e0;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.value=_1e0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.name=_1d1;}}}}if(ibmPortalCPConfig.isTagCenterAvailable){var _1e4=ibmPortalCPConfig.tagging.inline.tagClickActionMode;if(_1e4==_1e1){if(document.hiddenFormLight[_1cb].hiddenFormUri!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormUri.value=_1d2;document.hiddenFormLight[_1cb].hiddenFormUri.name="uri";}else{document.hiddenFormLight.hiddenFormUri.value=_1d2;document.hiddenFormLight.hiddenFormUri.name="uri";}}else{if(document.hiddenFormLight[_1cb].hiddenFormUri!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormUri.value=_1d3;}else{document.hiddenFormLight.hiddenFormUri.value=_1d3;}}}if(_1e3){document.hiddenFormLight[_1cb].submit();}else{document.hiddenFormLight.submit();}};function _1e5(aID,rsID,max){var _1e6=i$.byId("handleMoreTagsDialog"+rsID);if(_1e6==null){if(i$.isIE<9){_146=new wpModules.dialog.Dialog({id:"handleMoreTagsDialog"+rsID,markup:aID,autoPosition:_1e7(rsID),posHandler:"horizontallyCenteredBelow",autoResize:true,metrics:{width:max},autoClose:true});}else{_146=new wpModules.dialog.Dialog({id:"handleMoreTagsDialog"+rsID,markup:aID,autoPosition:_1e7(rsID),posHandler:"horizontallyCenteredBelow",autoResize:true,autoClose:true});}_146.open();}};function _1e8(id,lang,dir,_1e9,_1ea,_1eb,_1ec){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"tabIndex":"0","href":"javascript:;","role":"menuitem","class":_13c,"onclick":"com_ibm_widgets_resolver.fetchSpecificScopeTags('"+_1e9+"','"+_1ec+"','"+_1ea+"', com_ibm_widgets_tagging.displayTagsLight);",},_1eb);};function _1e7(rsID){return i$.byId("moretagslink_"+rsID);};function _15a(_1ed){_1ed=_1ed.toUpperCase();switch(_1ed){case ("PERSONAL_PRIVATE"):_1ed=["personal_private"];break;case ("PERSONAL_PUBLIC"):_1ed=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_1ed=["community","personal_public"];break;default:_1ed=["community","personal_public"];break;}return _1ed;};function _1ee(_1ef){i$.forEach(i$.query(_12e),function(_1f0,_1f1,_1f2){var _1f3="TaggingExtraWidget_"+_1f1;var _1f4=_1b2(_1ef);_1f4=_15a(_1f4);var _1f5={"count":_1f1,"oid":_1f0.getAttribute("resourceId"),"tagListParentId":_1f3,"tagsClickable":_1f0.getAttribute("tagsClickable")||ibmPortalCPConfig.tagging.inline.tagsClickable,"showDialogLauncher":_1f0.getAttribute("showDialogLauncher")||ibmPortalCPConfig.tagging.inline.showDialogLauncher,"maxResults":_1f0.getAttribute("maxResults")||ibmPortalCPConfig.tagging.inline.maxResults,"customMessageNoTags":_1f0.getAttribute("customMessageNoTags")||dojoless_resource_AddTag.text_no_tags,"countsEnabled":_1f0.getAttribute("countsEnabled")||ibmPortalCPConfig.tagging.inline.countsEnabled,"deletingEnabled":_1f0.getAttribute("deletingEnabled")||ibmPortalCPConfig.tagging.inline.deletingEnabled,"tagClickTransmitScopes":_1f0.getAttribute("tagClickTransmitScopes")||ibmPortalCPConfig.tagging.inline.tagClickTransmitScopes,"privateTaggingEnabled":_1f0.getAttribute("privateTaggingEnabled")||ibmPortalCPConfig.tagging.inline.privateTaggingEnabled,"showAllTags":false};_1f5.query={"order":_1f0.getAttribute("order")||ibmPortalCPConfig.tagging.inline.order,"orderMetric":_1f0.getAttribute("orderMetric")||ibmPortalCPConfig.tagging.inline.orderMetric,"resourceType":_1f0.getAttribute("resourceType")||ibmPortalCPConfig.tagging.inline.resourceType,"scope":_1f4,"resourceCategories":_1f0.getAttribute("resourceCategories")||ibmPortalCPConfig.tagging.inline.resourceCategories};if(_1f0.getAttribute("deletingEnabled")==null||_1f0.getAttribute("deletingEnabled")=="undefined"){if(ibmPortalCPConfig.tagging.inline.deletingEnabled!==null&&typeof ibmPortalCPConfig.tagging.inline.deletingEnabled!=="undefined"){_1f5.deletingEnabled=ibmPortalCPConfig.tagging.inline.deletingEnabled;}else{_1f5.deletingEnabled="true";}}else{_1f5.deletingEnabled=_1f0.getAttribute("deletingEnabled");}_149[_1f1]=_1f0.getAttribute("resourceId");if(_1ef==_149[_1f1]){var _1f6=_134;if(i$.byId(_1f3)!=null){var _1f7=i$.createDom("span",{"id":_1f3,"class":_1f6,"dir":_14c},_1f0);}com_ibm_widgets_resolver.fetchTagsLight(_1f5,_1f8);}});};var _1f8=function(tags,_1f9){var _1fa=tags.length;var _1fb=(_1f9.maxResults<_1fa&&_1f9.showAllTags==false)?_1f9.maxResults:_1fa;var _1fc="TagsExtra_"+_1f9.oid;var _1fd=_1fc+_132+_1f9.oid;var _1fe=i$.createDom("div",{"id":"TagsExtraDiv","dir":_14c});var _1ff=null;_1ff=i$.byId(_1fc);if(_1ff==null){_1ff=i$.createDom("span",{"id":_1fc,"class":_14b,"dir":_14c},_1fe);}var _200=null;_200=i$.byId(_1fd);if(_200==null){_200=i$.createDom("span",{"id":_1fd,"dir":_14c},_1ff);}else{while(_200.hasChildNodes()){_200.removeChild(_200.lastChild);}}if(tags.length<1){var _201=i$.createDom("div",{"title":_1f9.customMessageNoTags,"class":"lotusTagCloud lotusui","dir":_14c},_200);var _202=document.createTextNode(_1f9.customMessageNoTags);_201.appendChild(_202);}var max=0;i$.forEach(tags,function(_203,_204,_205){if(_204<_1fa&&_204>=_1fb){var _206=_203.name;var _207=_203.id;_207=_207.substring(8);var _208;var _209=i$.createDom("a",{"lang":ibmPortalConfig.locale,"href":"javascript:;","dir":_14c},_200);if(_1f9.tagsClickable==="false"){_208=i$.createDom("span",{"title":_206,"dir":_14c},_209);}else{_208=i$.createDom("span",{"title":_206,"href":"javascript:;","dir":_14c},_209);}var _20a=document.createTextNode(_206);_208.appendChild(_20a);var _20b=_1f9.count;var _20c=_1f9.tagClickActionMode;_209.setAttribute("onclick","com_ibm_widgets_tagging.selectTagRedirectFunction('"+_206+"' , '"+_20b+"','"+_20c+"')");var _20d=i$.bindDomEvt(_209,"onkeypress",function(evt){var _20e=evt.keyCode;if(_20e==0&&evt.charCode==32){_20e=32;}if(_20e==13||_20e==32){_1c9(_206,_20b,_20c);}});var _20f=_206;if(_1f9.countsEnabled&&_203.count){_20a=document.createTextNode(" ("+_203.count+") ");_208.appendChild(_20a);_20f=_20f+"("+_203.count+")";}var _210=_1f9.query.scope;_210=_210[0];_210=_210.toUpperCase();var _211=_23b(_1f9.oid);if(_210=="PERSONAL_PUBLIC"||_210=="PERSONAL_PRIVATE"||ibmPortalCPConfig.operations.canDeleteOtherUsersTags){if(_211=="true"){var _212=i$.createDom("span",{"id":"Delete_"+_1f9.oid+"_"+_206,"dir":_14c},_200);var _213=i$.createDom("a",{"title":dojoless_resource_AddTag.link_delete,"role":"button","href":"javascript:;","dir":_14c},_212);var _214=i$.createDom("img",{"style":"width: 10px; height: 10px;","dir":_14c,"src":"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},_213);_214.setAttribute("class",_14a);_214.setAttribute("alt",dojoless_resource_AddTag.link_delete);_213.setAttribute("onclick","com_ibm_widgets_resolver.deleteMoreTag('"+_1f9.oid+"' , '"+"displayMoreTags"+"','"+_207+"')");i$.bindDomEvt(_213,"onkeypress",function(evt){var _215=evt.keyCode;if(_215==0&&evt.charCode==32){_215=32;}if(_215==13||_215==32){com_ibm_widgets_resolver.deleteMoreTag(_1f9.oid,_1f8,_207);}});}}if(_204<(_1fa-1)){_20a=document.createTextNode(", ");_200.appendChild(_20a);if(i$.isIE<9){var _216=i$.createDom("br",{});}else{var _217=i$.createDom("br",{});_200.appendChild(_217);}_20f=_20f+",";}var lDiv=document.createElement("lDiv");document.body.appendChild(lDiv);lDiv.style.position="absolute";lDiv.style.left=-1000;lDiv.style.top=-1000;lDiv.innerHTML=_20f;var _218={width:lDiv.clientWidth,height:lDiv.clientHeight};document.body.removeChild(lDiv);lDiv=null;var _219=_218.width+45;max=_219>max?_219:max;}});var _21a=i$.createDom("form",{"method":"GET","action":".","name":"hiddenFormLight"},_1ff);var _21b=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTag"},_21a);var _21c=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameTagCloudRedirectView"},_21a);var _21d=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTagMode"},_21a);var _21e=i$.createDom("input",{"type":"hidden","name":"hiddenFormUri"},_21a);if(_1f9.tagClickTransmitScopes=="true"){var _21f=_1f9.query.resourceCategories;if(_21f&&_21f!==""){var _220="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}sc";var _221=_21f.split(_163);for(var i=0;i<_221.length;i++){var _222=i$.createDom("input",{type:"hidden",name:_220,value:_221[i]},_21a);}}}var _223=_1f9.query.scope;_223=_223[0];_223=_223.toUpperCase();if(_223=="PERSONAL_PUBLIC"||_223=="PERSONAL_PRIVATE"){max=max+10;}if(_1fa==_1fb){var _224=i$.byId("handleMoreTagsDialog"+_1f9.oid);if(_224!=null&&_146!=null){_146.close();}var _225=i$.byId("tagginglightmoretagslink_"+_1f9.oid);_225.setAttribute("style","display:none");var _226=i$.byId("tagginglightdivider3_"+_1f9.oid);if(_226!=null){_226.setAttribute("class","none");_226.setAttribute("style","display:inline-block");}if(divider2!=null){divider2.setAttribute("class","divider1Show");}}else{_1e5(_1fe.innerHTML,_1f9.oid,max);}};var _227=function(_228,_229){var _22a=i$.byId(_13e+_228);if(_229=="COMMUNITY"){_229="COMMUNITY_PERSONAL_PUBLIC";}if(_22a==null){var _22b=document.createElement("input");_22b.setAttribute("id",_13e+_228);_22b.setAttribute("type","hidden");_22b.setAttribute("name","currentScope");_22b.setAttribute("value",_229);var _22c=i$.byId(_13b+_228);_22c.appendChild(_22b);}else{_22a.setAttribute("value",_229);}};var _22d=function(_22e,_22f){var _230=i$.byId(_13f+_22e);if(_230==null){var _231=document.createElement("input");_231.setAttribute("id",_13f+_22e);_231.setAttribute("type","hidden");_231.setAttribute("name","currentCount");_231.setAttribute("value",_22f);var _232=i$.byId(_13b+_22e);_232.appendChild(_231);}else{_230.setAttribute("value",_22f);}};var _233=function(_234){var _235=i$.byId(_135+_234);if(_235!=null){return _235.value;}};var _161=function(_236,_237){var _238=i$.byId(_135+_236);if(_238==null){var _239=i$.createDom("input",{},_23a);_239.setAttribute("id",_135+_236);_239.setAttribute("type","hidden");_239.setAttribute("name","privateTaggingEnabled");_239.setAttribute("value",_237);var _23a=i$.byId(_13b+_236);_23a.appendChild(_239);}else{_238.setAttribute("value",_237);}};var _23b=function(_23c){var _23d=i$.byId(_136+_23c);if(_23d!=null){return _23d.value;}};var _156=function(_23e,_23f){var _240=i$.byId(_136+_23e);if(_240==null){var _241=i$.byId(_13b+_23e);var _242=document.createElement("input");_242.setAttribute("id",_136+_23e);_242.setAttribute("type","hidden");_242.setAttribute("name","deleteTaggingEnabled");_242.setAttribute("value",_23f);_241.appendChild(_242);}else{_240.setAttribute("value",_23f);}};var _243=function(_244){var _245=i$.byId(_137+_244);if(_245!=null){return _245.value;}};var _246=function(_247,_248){var _249=i$.byId(_137+_247);if(_249==null){var _24a=i$.createDom("input",{},_24b);_24a.setAttribute("id",_137+_247);_24a.setAttribute("type","hidden");_24a.setAttribute("name","plusClicked");_24a.setAttribute("value",_248);var _24b=i$.byId(_13b+_247);_24b.appendChild(_24a);}else{_249.setAttribute("value",_248);}};var _1b2=function(_24c){var _24d=i$.byId(_13e+_24c);if(_24d!=null){return _24d.value;}};var _24e=function(_24f){var _250=i$.byId(_13f+_24f);if(_250!=null){return _250.value;}};var _251=function(_252){var _253={"oid":_252};var _254=_13a+_252;var _255=i$.byId(_13b+_252);var item=i$.byId(_148+_253.oid);var _256=i$.byId("tagginglightinput_"+_253.oid);if(_256){_256.setAttribute("class","addtag");_246(_252,false);}var _257=i$.createDom("div",{"id":_254,"tabIndex":"0","class":_13c,"dir":_14c});var _258=_13d+_252;var _259=i$.createDom("div",{"id":_258,"aria-label":dojoless_resource_AddTag.tagging_menu,"role":"menu","dir":_14c},_257);var _258=_13d+_252;var _25a=null;var _25b=null;var _25c=null;var _25d=_1b2(_252);var _25e=_24e(_252);var _25f=_233(_252);com_ibm_widgets_resolver.clearTaggingErrorMessage(_252);switch(_25d){case ("PERSONAL_PRIVATE"):var _260=dojoless_resource_AddTag.Menu_tagging;var _25e=_24e(_252);var _261=_260+"_"+"Link"+"_"+_252;_25b=_1e8(_261,ibmPortalConfig.locale,_14c,_252,_25e,_259,"COMMUNITY_PERSONAL_PUBLIC");var _262=document.createTextNode(_260);_25b.appendChild(_262);var _263=dojoless_resource_AddTag.Menu_public_tagging;var _264=_263+"_"+"Link"+"_"+_252;_25a=_1e8(_264,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PUBLIC");var _265=document.createTextNode(_263);_25a.appendChild(_265);break;case ("PERSONAL_PUBLIC"):var _260=dojoless_resource_AddTag.Menu_tagging;var _261=_260+"_"+"Link"+"_"+_252;_25b=_1e8(_261,ibmPortalConfig.locale,_14c,_252,_25e,_259,"COMMUNITY_PERSONAL_PUBLIC");var _262=document.createTextNode(_260);_25b.appendChild(_262);if(_25f=="true"){var _266=dojoless_resource_AddTag.Menu_private_tagging;var _267=_266+"_"+"Link"+"_"+_252;_25c=_1e8(_267,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PRIVATE");var _265=document.createTextNode(_266);_25c.appendChild(_265);}break;case ("COMMUNITY_PERSONAL_PUBLIC"):var _263=dojoless_resource_AddTag.Menu_public_tagging;var _264=_263+"_"+"Link"+"_"+_252;_25a=_1e8(_264,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PUBLIC");var _265=document.createTextNode(_263);_25a.appendChild(_265);if(_25f=="true"){var _266=dojoless_resource_AddTag.Menu_private_tagging;var _267=_266+"_"+"Link"+"_"+_252;_25c=_1e8(_267,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PRIVATE");var _265=document.createTextNode(_266);_25c.appendChild(_265);}break;default:allTagsLabel=dojoless_resource_AddTag.title_community_tags;}if(_25d!="COMMUNITY_PERSONAL_PUBLIC"){_259.appendChild(_25b);_259.appendChild(i$.createDom("br",{},_25b));}if(_25d!="PERSONAL_PUBLIC"){_259.appendChild(_25a);_259.appendChild(i$.createDom("br",{},_25a));}if(_25d!="PERSONAL_PRIVATE"&&_25c!=null){_259.appendChild(_25c);_259.appendChild(i$.createDom("br",{},_25c));}_268(_257.innerHTML,_253.oid);};var _269=function(_26a,item,_26b){var _26c=item.parentNode;var _26d=_26c.childNodes;var _26e=item;var _26f=String.fromCharCode(_26a),_270=_26f.toLowerCase(),_271=_272(_26b),_273=_26b.innerHTML.charAt(_271),_274=_26d,_275;if(_270==_273.toLowerCase()){var _276=0;var i=0;_274=_26e.childNodes;var len=_274.length;for(i;i<len;i++){if(_274.item(i)==_26b){break;}}_276=i;var _277=_278(_274,_276,_273,_26f);if((_277!=item)){_279(_277);}}else{_274=_26e.childNodes;for(var k=0,nal=_274.length;k<nal;k++){_271=_272(_274[k]);_275=_274[k].innerHTML;if((_270==_275.charAt(_271).toLowerCase())){_279(_274[k]);break;}}}};function _279(item){item.focus();};function _278(_27a,_27b,_27c,_27d){var _27e,_27f=false,_280,_281=_27a.length,_282=(_27b==_281-1)?-1:_27b;for(var i=_282+1;i<_281;i++){_27e=_272(_27a[i]);_280=_27a[i].innerHTML.charAt(_27e).toLowerCase();if(_280==_27d.toLowerCase()){_27b=i;break;}if(i==_27a.length-1){if(_27f){break;}i=-1;_281=_27b;_27f=true;}}return _27a[_27b];};function _272(item){var ltr=null;var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _283=i$.isRTL(loc);if(_283!=null){if(_283){ltr=false;}else{ltr=true;}}}if((item.text)&&(!ltr)){return item.text.length-1;}return 0;};function _284(rsID){return i$.byId(_140+rsID);};var _268=function(aID,rsID){this.taggingDropDownMenu=null;this.taggingDropDownMenu=new wpModules.dialog.Dialog({id:_142+rsID,markup:aID,posHandler:"horizontallyCenteredBelow",autoPosition:_284(rsID),autoResize:true,displayCloseOverlay:true,autoClose:true,callbackFn:function(arg){var _285=i$.byId(_140+rsID);if(_285!=null){window.setTimeout(function(){_285.focus();},200);}}});this.taggingDropDownMenu.open();var _286=dojoless_resource_AddTag.Menu_private_tagging;var _287=_286+"_"+"Link"+"_"+rsID;var _288=dojoless_resource_AddTag.Menu_public_tagging;var _289=_288+"_"+"Link"+"_"+rsID;var _28a=dojoless_resource_AddTag.Menu_tagging;var _28b=_28a+"_"+"Link"+"_"+rsID;var _28c=i$.byId(_13d+rsID);if(_28c!=null){var _28d=i$.bindDomEvt(_28c,"onkeydown",i$.scope(this,function(_28e){switch(_28e.keyCode){case 32:var _28f=document.activeElement;if(_28f.id==_289){com_ibm_widgets_resolver.fetchSpecificScopeTags(rsID,"PERSONAL_PUBLIC",0,com_ibm_widgets_tagging.displayTagsLight);}else{if(_28f.id==_28b){com_ibm_widgets_resolver.fetchSpecificScopeTags(rsID,"COMMUNITY_PERSONAL_PUBLIC",0,com_ibm_widgets_tagging.displayTagsLight);}else{com_ibm_widgets_resolver.fetchSpecificScopeTags(rsID,"PERSONAL_PRIVATE",0,com_ibm_widgets_tagging.displayTagsLight);}}break;case 9:if(this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}break;case 27:if(this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}break;case 38:var _28f=document.activeElement;var _290=_1c3(_28f);if(_290!=null){_290.focus();}if(_28e.preventDefault){_28e.preventDefault();}return false;break;case 39:break;case 40:var _28f=document.activeElement;var _290=_1bd(_28f);if(_290!=null){_290.focus();}if(_28e.preventDefault){_28e.preventDefault();}return false;break;default:var item=document.activeElement;_269(_28e.keyCode,_28c,item);break;}}));}};return {TAGGING_WIDGET_TAGS_ID_PREFIX:"tagginglighttagslist_",TAGGING_WIDGET_ID_PREFIX:"TagWidget_",tagMenu:_251,displayTagsLight:_162,displayMoreTags:_1f8,selectTagRedirectFunction:_1c9,getMoreTags:_1ee,tagIdsArray:_149,getCurrentDisplayedCount:_24e,getCurrentDisplayedTagScope:_1b2,setPlusClicked:_246,};})();"use strict";var com_ibm_widgets_rating=(function(){var _291=".stars";var _292="RatingWidget_";var _293;var _294;var _295;var _296;var _297;var _298=ibmPortalCPConfig.rating.dialog.numStars;var _299="ratinglight_";var _29a="ratinglightstars_";var _29b="ratinglight_CurrentScope";var _29c="ratinglight_privateRatingEnabled";var _29d="ratinglight_deleteRatingEnabled";var _29e="ratinglightlabeltext_";var _29f="ratinglightstarsfull_";var _2a0="ratinglightstarsempty_";var _2a1="ratinglightdescriptionlabel_";var _2a2="ratinglightmenulink_";var _2a3="ratinglightdivider1_";var _2a4="ratinglightdivider2_";var _2a5=14;var _2a6="px";var _2a7="(";var _2a8=")";var _2a9="/";var _2aa="RatingMenuDiv_";var _2ab="RatingMenu_";var _2ac="RatingDistribution_";var _2ad="RatingDistributionDiv_";var _2ae="ratingDistributionEmptyBar";var _2af="ratingDistributionFullBar";var _2b0="ratingDistributionEmptyBarIE8";var _2b1="ratingDistributionFullBarIE8";var _2b2="ratingDistributionText";var _2b3="totalRatingText";var _2b4="horizontalDivider";var _2b5="horizontalDivider2";var _2b6="horizontalDivider3";var _2b7=14;var _2b8="ratingDistributionDiv";var _2b9="ratingDistributionDiv";var _2ba="textDiv";var _2bb="textDivID";var _2bc;var _2bd="ratingsDropDownMenuDialog_";var _2be="wpRatingLightMenuDialogCSS ";var _2bf="ltr";var _2c0="ratingDistributionFullBar_RTL";var _2c1="ratingDistributionFullBarIE8_RTL";var _2c2="PERSONAL_PRIVATE";var _2c3="PERSONAL_PUBLIC";var _2c4="COMMUNITY_PERSONAL_PUBLIC";var _2c5="COMMUNITY";var _2c6="DojolessRating.addOnLoad";var _2c7=" DojolessRating.displayDojolessRatings ";var _2c8=" DojolessRating.getRatings";var _2c9="DojolessRating.getRatingMenu";var _2ca="ratinglightmenuDIV_";var _2cb="ratinglightdivider1_";var _2cc="menuShow";var _2cd="divider1Show";var _2ce="divider1";var _2cf="divider2Show";var _2d0="divider2";var _2d1="o";var _2d2="*";var _2d3="starElements";var _2d4="starElement";var _2d5="_span";var _2d6=i$.addOnLoad;if(typeof wp_wcm_async!="undefined"){_2d6=i$.scope(wp_wcm_async,wp_wcm_async.addOnPageLoad);}_2d6(function(){if(ibmPortalCPConfig!=null&&ibmPortalCPConfig.operations!=null&&ibmPortalCPConfig.operations.canViewRatings!=null&&ibmPortalCPConfig.isRatingEnabled!=null){var _2d7=ibmPortalCPConfig?ibmPortalCPConfig.operations.canViewRatings&&ibmPortalCPConfig.isRatingEnabled:null;var _2d8=i$.query(_291);var _2d9=ibmPortalConfig.projectUUID;if(_2d9==null||_2d9==""){i$.forEach(_2d8,function(_2da,_2db,_2dc){if(_2d7==null||(!_2d7)){return;}var _2dd=_292+_2db;var _2de;var _2df;var _2e0,_2e1;var _2e2="true";var _2e3;var _2e4;var _2e5;if(_2da.getAttribute("ratingDescription")==null||_2da.getAttribute("ratingDescription")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingDescription!==null&&typeof ibmPortalCPConfig.rating.inline.ratingDescription!=="undefined"){_2de=ibmPortalCPConfig.rating.inline.ratingDescription.toUpperCase();}else{_2de="ALL";}}else{_2de=_2da.getAttribute("ratingDescription");}if(_2da.getAttribute("ratingScope")==null||_2da.getAttribute("ratingScope")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingScope!==null&&typeof ibmPortalCPConfig.rating.inline.ratingScope!=="undefined"){_2df=ibmPortalCPConfig.rating.inline.ratingScope.toUpperCase();}else{_2df=_2c4;}}else{_2df=_2da.getAttribute("ratingScope");}switch(_2df){case (_2c2):_2df=["personal_private"];break;case (_2c3):_2df=["personal_public"];break;case (_2c4):_2df=["community","personal_public"];break;default:_2df=["community","personal_public"];break;}if(_2da.getAttribute("numStars")==null||_2da.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){_2e0=ibmPortalCPConfig.rating.inline.numStars;}else{_2e0=5;}}else{_2e0=_2da.getAttribute("numStars");}if(_2da.getAttribute("customLabel")==null||_2da.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_2da.getAttribute("customLabel");}var _2e6="false";if(_2da.getAttribute("nonCSSuiEnabled")==null||_2da.getAttribute("nonCSSuiEnabled")=="undefined"){_2e6="false";}else{_2e6=_2da.getAttribute("nonCSSuiEnabled");}if(_2da.getAttribute("privateRatingEnabled")==null||_2da.getAttribute("privateRatingEnabled")=="undefined"){if(ibmPortalCPConfig.rating.inline.privateRatingEnabled!==null&&typeof ibmPortalCPConfig.rating.inline.privateRatingEnabled!=="undefined"){_2e1=ibmPortalCPConfig.rating.inline.privateRatingEnabled;}else{_2e1="false";}}else{_2e1=_2da.getAttribute("privateRatingEnabled");}var _2e7=_2da.getAttribute("resourceId");_39e(_2e7,_2e1);var _2e8=!ibmPortalConfig.isUserLoggedIn;if(_2e8){_2df=["community","personal_public"];_2e1="false";}if(_2da.getAttribute("deletingEnabled")==null||_2da.getAttribute("deletingEnabled")=="undefined"){if(ibmPortalCPConfig.rating.inline.deletingEnabled!==null&&typeof ibmPortalCPConfig.rating.inline.deletingEnabled!=="undefined"){_2e2=ibmPortalCPConfig.rating.inline.deletingEnabled;}else{_2e2="true";}}else{_2e2=_2da.getAttribute("deletingEnabled");}var _2e7=_2da.getAttribute("resourceId");_3a6(_2e7,_2e2);if(_2da.getAttribute("customLabelCommunityRatings")==null||_2da.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_2e3=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_2e3=null;}}else{_2e3=_2da.getAttribute("customLabelCommunityRatings");}if(_2da.getAttribute("customLabelPersonalPublicRatings")==null||_2da.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_2e4=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_2e4=null;}}else{_2e4=_2da.getAttribute("customLabelPersonalPublicRatings");}if(_2da.getAttribute("customLabelPersonalPrivateRatings")==null||_2da.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_2e5=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_2e5=null;}}else{_2e5=_2da.getAttribute("customLabelPersonalPrivateRatings");}var _2e9={"count":_2db,"oid":_2da.getAttribute("resourceId"),"ratingListParentId":_2dd,"customLabel":customLabel,"customLabelCommunityRatings":_2e3,"customLabelPersonalPublicRatings":_2e4,"customLabelPersonalPrivateRatings":_2e5,"scope":_2df,"ratingDescription":_2de,"numStars":_2e0};_2e9.query={"count":_2db,"oid":_2da.getAttribute("resourceId"),"ratingListParentId":_2dd,"customLabel":customLabel,"customLabelCommunityRatings":_2e3,"customLabelPersonalPublicRatings":_2e4,"customLabelPersonalPrivateRatings":_2e5,"scope":_2df,"ratingDescription":_2de,"numStars":_2e0};var _2ea=i$.byId(_2a0+_2e9.oid);var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _2eb=i$.isRTL(loc);if(_2eb!=null){if(_2eb){_2bf="rtl";}else{_2bf="ltr";}}}var _2ec=i$.bindDomEvt(_2ea,"onclick",function(evt){var _2ed=_30d(_2e9.oid);var _2ee=evt.target||evt.srcElement;var _2ef=_2ea;var _2f0=_2ef.offsetLeft;var t=_2ef.offsetTop;while(_2ef=_2ef.offsetParent){_2f0+=_2ef.offsetLeft;}_2ef=i$.byId(_2ee.id);while(_2ef=_2ef.offsetParent){t+=_2ef.offsetTop;}var x;if(i$.isIE<9){x=evt.clientX-_2f0;}else{x=evt.pageX-_2f0;}var _2f1=Math.ceil(x/_2a5);if(_2bf!=null&&_2bf=="rtl"){_2f1=(_2e9.numStars+1)-_2f1;}var _2f2=i$.byId(_29f+_2e9.oid);var _2f3=!ibmPortalConfig.isUserLoggedIn;if(_2ed==_2c4){_314(_2e9.oid,_2c3);if(!_2f3){com_ibm_widgets_resolver.fetchSpecificScopeRatings_defaultView(_2e9.oid,_2c3,_2f1,com_ibm_widgets_rating.updateRatingInDefaultView);}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}else{var _2f3=!ibmPortalConfig.isUserLoggedIn;if(!_2f3){if(_2f2.style.width=="0px"&&_2f1>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}});var _2f4=i$.bindDomEvt(_2ea,"onkeypress",function(_2f5){var _2f6=_30d(_2e9.oid);var _2f7=i$.byId(_29f+_2e9.oid);var _2f8=0;if(_2f7!=null){var _2f9=_2f7.style.width;_2f9=_2f9.replace("px","");if(_2f7.style.width!=null&&_2f9!=null){_2f8=Math.ceil(_2f9/_2a5);}if(_2f5.keyCode!=9){switch(_2f5.keyCode){case 38:case 39:_2f8+=1;_2f8=Math.min(_2f8,_2e0);break;case 40:case 37:_2f8-=1;_2f8=Math.max(_2f8,1);break;case 36:_2f8=1;break;case 35:_2f8=_2e0;break;default:break;}var _2fa=_2f8;var _2fb=!ibmPortalConfig.isUserLoggedIn;if(_2f6==_2c4){_314(_2e9.oid,_2c3);if(!_2fb){com_ibm_widgets_resolver.fetchSpecificScopeRatings_defaultView(_2e9.oid,_2c3,_2fa,com_ibm_widgets_rating.updateRatingInDefaultView);}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}else{if(!_2fb){if(_2f7.style.width=="0px"&&_2fa>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{if(_2fa>0){com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}}else{if(_2fa>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}}}}});var _2fc;try{_2fc=document.defaultView.getComputedStyle(_2ea,"");}catch(e){_2fc=_2ea.currentStyle;}if(_2fc!=null&&((_2fc.backgroundImage=="none")||(_2e6=="true"))){var _2fd=i$.byId(_29a+_2e9.oid);var _2fe=i$.byId(_2d3+_2e9.oid);if(_2fd!=null&&_2fe==null){var _2ff=i$.createDom("ul",{"id":_2d3+_2e9.oid,"style":"list-style: none;","tabindex":"0","role":"navigation"},_2fd);var k;for(k=1;k<=_2e9.numStars;k++){var _300=null;var _301=null;_300=i$.createDom("li",{"id":_2d4+k+_2e9.oid,"style":"list-style: none;display: inline-block;padding:5px; ","tabindex":"0","role":"link","aria-label":k+dojoless_resource_AddTag.title_pub_rating,"value":k},_2ff);_301=i$.createDom("span",{"id":_2d4+k+_2d5+_2e9.oid,"value":k,"tabindex":"0","aria-label":k+dojoless_resource_AddTag.title_pub_rating},_300);}var _302=i$.bindDomEvt(i$.byId(_2d3+_2e9.oid),"onclick",function(evt){var _303=_30d(_2e9.oid);var _304=evt.target;var _305=_304.getAttribute("value");var _306=_305;var _307=0;if(_2fd!=null){var i;for(i=1;i<=_2e9.numStars;i++){var _308=i$.byId(_2d4+i+_2d5+_2e9.oid).innerHTML;if(_308==_2d2){_307=_307+1;}}}if(_303==_2c4){_314(_2e9.oid,_2c3);var _309=!ibmPortalConfig.isUserLoggedIn;if(!_309){com_ibm_widgets_resolver.fetchSpecificScopeRatings_defaultView(_2e9.oid,_2c3,_306,com_ibm_widgets_rating.updateRatingInDefaultView);}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}else{if(!_309){if(_307==0&&_306>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}});var _30a=i$.bindDomEvt(i$.byId(_2d3+_2e9.oid),"onkeypress",function(_30b){if(_30b.keyCode==13){var _30c=_30d(_2e9.oid);var _30e=i$.byId(_2d3+_2e9.oid);var _30f=0;if(_30e!=null){var i;for(i=1;i<=_2e9.numStars;i++){var _310=i$.byId(_2d4+i+_2d5+_2e9.oid).innerHTML;if(_310==_2d2){_30f=_30f+1;}}var _311=_30b.target||_30b.srcElement;var _312=_311.getAttribute("value");var _313=_312;if(_30c==_2c4&&!_315&&(ibmPortalCPConfig!=null&&ibmPortalCPConfig.operations!=null&&ibmPortalCPConfig.operations.canCreatePublicRatings)){_314(_2e9.oid,_2c3);}var _315=!ibmPortalConfig.isUserLoggedIn;if(_313!=null){if(!_315){if(_30f==0&&_313>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_313,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_313,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_313,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}}}});}}com_ibm_widgets_resolver.setALTtextforAllElementsInRating(_2e9.oid);com_ibm_widgets_resolver.fetchDojolessRatings(_2e9,com_ibm_widgets_rating.displayDojolessRatings);});}}},i$.global);var _316=function(_317,_318){var _319="true";if(_317!=null){_31a(_317);}else{_317=new Array();_31b();_319="false";}_314(_318.oid,_318.scope[0].toUpperCase());if(_318.customLabel==null&&_318.scope[0]!=null){switch(_318.scope[0].toUpperCase()){case (_2c2):if(_318.customLabelPersonalPrivateRatings==null){allRatingLabel=dojoless_resource_AddTag.title_priv_rating;}else{allRatingLabel=_318.customLabelPersonalPrivateRatings;}break;case (_2c3):if(_318.customLabelPersonalPublicRatings==null){allRatingLabel=dojoless_resource_AddTag.title_your_rating;}else{allRatingLabel=_318.customLabelPersonalPublicRatings;}break;case (_2c5):if(_318.customLabelCommunityRatings==null){allRatingLabel=dojoless_resource_AddTag.title_pub_rating;}else{allRatingLabel=_318.customLabelCommunityRatings;}break;default:allRatingLabel=dojoless_resource_AddTag.title_pub_rating;break;}}else{allRatingLabel=_318.customLabel;}var _31c=i$.byId(_29e+_318.oid);if(_31c!=null){_31c.innerHTML="";if(_318.scope[0].toUpperCase()!=_2c5){_31c.innerHTML=allRatingLabel;_31c.setAttribute("alt",allRatingLabel);_31c.setAttribute("title",allRatingLabel);}if(_318.scope[0].toUpperCase()==_2c5&&_318.customLabelCommunityRatings!=null){_31c.innerHTML=_318.customLabelCommunityRatings;_31c.setAttribute("alt",allRatingLabel);_31c.setAttribute("title",allRatingLabel);}}var _31d=i$.byId(_29f+_318.oid);var _31e=i$.byId(_2a0+_318.oid);var _31f=i$.byId(_2a1+_318.oid);var _320=0;if(_297){_320=_296+0.5;}else{_320=_296;}var _321=0;_321=(_318.numStars*_2a5)+_2a6;_31e.style.width=_321;if(_319=="true"){var _322=0;_322=(_320*_2a5)+_2a6;_31d.style.width=_322;_31e.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+_320);_31e.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+_320);_31d.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+_320);_31d.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+_320);}else{_31d.style.width=0+_2a6;_31d.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+"0");_31d.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+"0");_31e.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+"0");_31e.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+"0");}var _323=i$.byId(_2d3+_318.oid);if(_323!=null){_31e.setAttribute("style","display:none");_31d.setAttribute("style","display:none");var _324;if(_297){_324=_296+1;}else{_324=_296;}var i;var j;for(i=1;i<=_324;i++){i$.byId(_2d4+i+_2d5+_318.oid).innerHTML=_2d2;}for(j=_324+1;j<=_318.numStars;j++){i$.byId(_2d4+j+_2d5+_318.oid).innerHTML=_2d1;}_323.setAttribute("aria-label",_324+dojoless_resource_AddTag.title_pub_rating);}var _325;_325=i$.byId(_2a4+_318.oid);if(_325!=null){_325.setAttribute("class",_2cf);}if(_31f!=null){_31f.innerHTML=" ";_298=_318.numStars;if(_318.scope[0].toUpperCase()==_2c5){switch(_318.ratingDescription.toUpperCase()){case ("NONE"):_325=i$.byId(_2a4+_318.oid);if(_325!=null){_325.setAttribute("class",_2d0);}break;case ("RATING_VALUE"):if(_320>0){if(_294==1){_31f.innerHTML=_2a7+_320+_2a9+_298+_2a8;}else{_31f.innerHTML=_2a7+_320+_2a9+_298+_2a8;}}break;case ("TOTAL_NO_RATING"):if(_320>0){if(_294==1){_31f.innerHTML=_2a7+_294+" "+dojoless_resource_AddTag.ratingDescription_rating+_2a8;}else{_31f.innerHTML=_2a7+_294+" "+dojoless_resource_AddTag.ratingDescription_ratings+_2a8;}}break;default:if(_294>0&&_320>0){if(_294==1){_31f.innerHTML=_2a7+_320+_2a9+_298+" "+dojoless_resource_AddTag.ratingDescription_from+" "+_294+" "+dojoless_resource_AddTag.ratingDescription_rating+_2a8;}else{_31f.innerHTML=_2a7+_320+_2a9+_298+" "+dojoless_resource_AddTag.ratingDescription_from+" "+_294+" "+dojoless_resource_AddTag.ratingDescription_ratings+_2a8;}}}}if(_325!=null){_325.setAttribute("class",_2cf);}}else{if(_325!=null){_325.setAttribute("class",_2d0);}}var _326=i$.byId(_2a2+_318.oid);if(_326!=null){_326.setAttribute("onclick","com_ibm_widgets_rating.getRatingMenu('"+_318.oid+"')");var _327=i$.bindDomEvt(_326,"onkeypress",i$.scope(this,function(_328){var _329=_328.keyCode;if(_328.keyCode==0&&_328.charCode==32){_329=32;}switch(_329){case 38:case 32:case 40:case 13:var _32a=i$.byId(_2bd+_318.oid);if(_32a==null){com_ibm_widgets_rating.getRatingMenu(_318.oid);var _32b=_2aa+_318.oid;var _32c=i$.byId(_32b);if(_32c!=null){var _32d=_32c.firstChild;window.setTimeout(function(){_32d.focus();},200);}if(_328.preventDefault){_328.preventDefault();}if(_328.returnValue){_328.returnValue=false;}}break;case 39:case 40:if(this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}break;}}));}var _32e=i$.byId(_2bd+_318.oid);if(_32e!=null&&this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}com_ibm_widgets_resolver.clearRatingErrorMessage(_318.oid);var _32f=i$.byId(_2ca+_318.oid);if(_32f!=null){_32f.setAttribute("class",_2cc);}var _330=i$.byId(_2cb+_318.oid);if(_330!=null){_330.setAttribute("class",_2cd);}};var _331=function(avg){avg*=10;avg=Math.round(avg);return avg/10;};var _332=function(_333){var _334=0;var _335=0;var _336=[];i$.each(_333,function(obj,key){_335+=parseInt(obj.count);_336[parseInt(obj.name)-1]=parseInt(obj.count);_334+=parseInt(obj.name)*parseInt(obj.count);});_334/=_335;return [_334,_335,_336];};var _337=function(avg){var dec=avg-Math.floor(avg);return dec>=0.25&&dec<=0.75;};var _338=function(avg){var _339=Math.floor(avg);return (avg-_339)>0.75?_339+1:_339;};var _31a=function(_33a){var _33b=_332(_33a);_293=_33b[0];_294=_33b[1];_295=_33b[2];_296=_338(_293);_297=_337(_293);};var _31b=function(){_293=0;_294=0;_295=0;_296=0;_297=false;};var _314=function(_33c,_33d){var _33e=i$.byId(_29b+_33c);if(_33d==_2c5){_33d=_2c4;}if(_33e==null){var _33f=document.createElement("input");_33f.setAttribute("id",_29b+_33c);_33f.setAttribute("type","hidden");_33f.setAttribute("name","currentScope");_33f.setAttribute("value",_33d);var _340=i$.byId(_299+_33c);_340.appendChild(_33f);}else{_33e.setAttribute("value",_33d);}};var _30d=function(_341){var _342=i$.byId(_29b+_341);if(_342!=null){return _342.value;}};var _343=function(_344){var _345={"oid":_344};var _346=_2ab+_344;var _347=i$.byId(_299+_344);var _348=i$.createDom("div",{"id":_346,"tabindex":"0","class":_2be+_2b8,"dir":_2bf});var _349=_2aa+_344;var _34a=i$.createDom("div",{"id":_349,"tabindex":"0","role":"menu","class":_2be+_2b8,"aria-label":dojoless_resource_AddTag.rating_menu,"dir":_2bf},_348);var _34b=null;var _34c=null;var _34d=null;var _34e=null;var _34f=null;var _350=null;var _351=i$.byId(_29f+_344);if(_351.style.width=="0px"){deleteEnabled="false";}else{deleteEnabled="true";}var _352=_353(_344);var _354=_355(_344);var _356=_30d(_344);com_ibm_widgets_resolver.clearRatingErrorMessage(_344);var _357=!ibmPortalConfig.isUserLoggedIn;if(_357){_352="false";deleteEnabled="false";}if(_354=="false"){deleteEnabled="false";}switch(_356){case (_2c2):var _358=dojoless_resource_AddTag.Menu_rating;var _359=_358+"_"+"Link"+"_"+_344;_34c=_35a(_359,ibmPortalConfig.locale,_2bf,_344,_34a,_2c5);var _35b=document.createTextNode(_358);_34c.appendChild(_35b);var _35c=dojoless_resource_AddTag.Menu_myRating;var _35d=_35c+"_"+"Link"+"_"+_344;_34b=_35a(_35d,ibmPortalConfig.locale,_2bf,_344,_34a,_2c3);var _35e=document.createTextNode(_35c);_34b.appendChild(_35e);_34b.setAttribute("alt",_35c);_34b.setAttribute("title",_35c);if(deleteEnabled=="true"){var _35f=dojoless_resource_AddTag.deleteRating;var _360=_35f+"_"+"Link"+"_"+_344;_34e=_361(_360,ibmPortalConfig.locale,_2bf,_344,_34a,_2c2);var _362=document.createTextNode(_35f);_34e.appendChild(_362);_34e.setAttribute("alt",_35f);_34e.setAttribute("title",_35f);}break;case (_2c3):var _358=dojoless_resource_AddTag.Menu_rating;var _359=_358+"_"+"Link"+"_"+_344;_34c=_35a(_359,ibmPortalConfig.locale,_2bf,_344,_34a,"COMMUNITY_RATING");var _35b=document.createTextNode(_358);_34c.appendChild(_35b);if(_352=="true"){var _363=dojoless_resource_AddTag.Menu_privateRating;var _364=_363+"_"+"Link"+"_"+_344;_34d=_35a(_364,ibmPortalConfig.locale,_2bf,_344,_34a,_2c2);var _35e=document.createTextNode(_363);_34d.appendChild(_35e);_34d.setAttribute("alt",_363);_34d.setAttribute("title",_363);}if(deleteEnabled=="true"){var _35f=dojoless_resource_AddTag.deleteRating;var _360=_35f+"_"+"Link"+"_"+_344;_34f=_361(_360,ibmPortalConfig.locale,_2bf,_344,_34a,_2c3);var _362=document.createTextNode(_35f);_34f.appendChild(_362);_34f.setAttribute("alt",_35f);_34f.setAttribute("title",_35f);}break;case (_2c4):if(ibmPortalCPConfig!=null&&ibmPortalCPConfig.operations!=null&&ibmPortalCPConfig.operations.canCreatePublicRatings){var _35c=dojoless_resource_AddTag.Menu_myRating;var _35d=_35c+"_"+"Link"+"_"+_344;_34b=_35a(_35d,ibmPortalConfig.locale,_2bf,_344,_34a,_2c3);var _35e=document.createTextNode(_35c);_34b.appendChild(_35e);_34b.setAttribute("alt",_35c);_34b.setAttribute("title",_35c);}if(_352=="true"){var _363=dojoless_resource_AddTag.Menu_privateRating;var _364=_363+"_"+"Link"+"_"+_344;_34d=_35a(_364,ibmPortalConfig.locale,_2bf,_344,_34a,_2c2);var _35e=document.createTextNode(_363);_34d.appendChild(_35e);_34d.setAttribute("alt",_363);_34d.setAttribute("title",_363);}if(ibmPortalCPConfig.operations.canResetRatingPerResource&&deleteEnabled=="true"){var _35f=dojoless_resource_AddTag.deleteRating+" "+dojoless_resource_AddTag.ratingDescription_ratings;var _360=_35f+"_"+"Link"+"_"+_344;_350=_365(_360,ibmPortalConfig.locale,_2bf,_344,_34a,_2c4);var _362=document.createTextNode(_35f);_350.appendChild(_362);_350.setAttribute("alt",_35f);_350.setAttribute("title",_35f);}break;default:allRatingLabel=dojoless_resource_AddTag.title_pub_rating;}if(_356==_2c4){var _366=dojoless_resource_AddTag.Rating_Distribution;var _367=i$.createDom("div",{"id":_2b9+_344,"dir":_2bf},_34a);var _368=i$.createDom("a",{"id":_2ac+_344,"lang":ibmPortalConfig.locale,"dir":_2bf,"href":"javascript:;","tabindex":"0","onclick":"com_ibm_widgets_resolver.fetchSpecificScopeRatings('"+_344+"',\""+_2c4+"\",com_ibm_widgets_rating.displayRatingDistribution);","class":_2be+_2b8},_367);var _369=document.createTextNode(_366);if(_369!=null){_368.appendChild(_369);}}if(_356!=_2c4){_34a.appendChild(_34c);_34a.appendChild(i$.createDom("br",{},_34c));}if(_356!=_2c3){if(_34b!=null){_34a.appendChild(_34b);_34a.appendChild(i$.createDom("br",{},_34b));}}if(_356!=_2c2&&_34d!=null){if(_34d){_34a.appendChild(_34d);_34a.appendChild(i$.createDom("br",{},_34d));}}if(_356==_2c3&&deleteEnabled=="true"){if(_34d!=null){_34a.appendChild(i$.createDom("hr",{"class":_2be+_2b5,"dir":_2bf},_34d));}else{_34a.appendChild(i$.createDom("hr",{"class":_2be+_2b6,"dir":_2bf},_34c));}_34a.appendChild(_34f);}if(_356==_2c2&&deleteEnabled=="true"){_34a.appendChild(i$.createDom("hr",{"class":_2be+_2b5,"dir":_2bf},_34b));_34a.appendChild(_34e);}var _36a=null;if(_356==_2c4){if(_350!=null){if(_34d!=null){var _36b=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34d);}else{var _36b=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34b);}_34a.appendChild(_36b);_34a.appendChild(_350);}if(_34c!=null){_36a=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34c);}else{if(_34b!=null){_36a=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34b);}}if(_36a!=null){_34a.appendChild(_36a);}if(_356==_2c4){_34a.appendChild(_367);}}_36c(_348.innerHTML,_345.oid);};function _36d(rsID){return i$.byId(_2a2+rsID);};var _36c=function(aID,rsID){var _36e=dojoless_resource_AddTag.Menu_rating;var _36f=_36e+"_"+"Link"+"_"+rsID;var _370=dojoless_resource_AddTag.Menu_privateRating;var _371=_370+"_"+"Link"+"_"+rsID;var _372=dojoless_resource_AddTag.deleteRating;var _373=_372+"_"+"Link"+"_"+rsID;var _374=dojoless_resource_AddTag.Menu_myRating;var _375=_374+"_"+"Link"+"_"+rsID;var _376=dojoless_resource_AddTag.Rating_Distribution;this.ratingsDropDownMenu=null;this.ratingsDropDownMenu=new wpModules.dialog.Dialog({id:_2bd+rsID,markup:aID,autoPosition:_36d(rsID),autoResize:true,displayCloseOverlay:true,autoClose:true,posHandler:"horizontallyCenteredBelow",callbackFn:function(arg){var _377=i$.byId(_2a2+rsID);if(_377!=null){window.setTimeout(function(){_377.focus();},200);}}});this.ratingsDropDownMenu.open();var _378=i$.byId(_2aa+rsID);if(_378!=null){var _379=i$.bindDomEvt(_378,"onkeydown",i$.scope(this,function(_37a){var _37b=_37a.keyCode;if(_37a.keyCode==0&&_37a.charCode==32){_37b=32;}switch(_37b){case 9:if(this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}break;case 27:if(this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}break;case 82:if(i$.byId(_2ac+rsID)!=null){i$.byId(_2ac+rsID).focus();}if(i$.byId(_36f)!=null){i$.byId(_36f).focus();}if(i$.byId(_2ad+rsID)!=null){i$.byId(_2ad+rsID).focus();}break;case 32:var _37c=document.activeElement;var text=_37c.innerHTML;if(this.ratingsDropDownMenu!=null&&!(text.match(_376))){this.ratingsDropDownMenu.close();}if(text==_374){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c3,com_ibm_widgets_rating.displayDojolessRatings);}else{if(text==_370){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c2,com_ibm_widgets_rating.displayDojolessRatings);}else{if(text==_36e){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c5,com_ibm_widgets_rating.displayDojolessRatings);}else{if(text==_372){com_ibm_widgets_resolver.deleteRating(rsID,_30d(rsID));}else{if(text==_376){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c4,com_ibm_widgets_rating.displayRatingDistribution);if(i$.byId(_2ad+rsID)!=null){i$.byId(_2ad+rsID).focus();}}}}}}break;case 37:break;case 38:var _37c=document.activeElement;var _37d=_37e(_37c);if(_37d!=null){_37d.focus();}if(_37a.preventDefault){_37a.preventDefault();}return false;break;case 18:case 40:var _37c=document.activeElement;var _37d=_37f(_37c);if(_37d!=null){_37d.focus();}if(_37a.preventDefault){_37a.preventDefault();}return false;break;default:var _380=document.activeElement;_381(_37a.keyCode,_378,_380);break;}}));}};var _382=function(_383,_384){if(_383!=null){_294=_383.length;_31a(_383);}else{_31b();}var i=_384.numStars-1;var _385=_2aa+_384.oid;var _386=_2ab+_384.oid;var _387=i$.byId(_2b9+_384.oid);var _388=_2ac+_384.oid;var _389=i$.byId(_388);var _38a=_2ad+_384.oid;while(_387.hasChildNodes()){_387.removeChild(_387.lastChild);}var _38b=i$.createDom("div",{"id":"ratingDistributionText"+_384.oid,"tabindex":"0","class":_2be+_2b8,"dir":_2bf},_387);var _38c=document.createTextNode(dojoless_resource_AddTag.Rating_Distribution);if(_38b!=null){_38b.appendChild(_38c);}if(i$.byId(_38a)==null){var _38d=dojoless_resource_AddTag.Rating_Distribution;var _38e=i$.createDom("div",{"id":_38a,"tabindex":"0","class":_2be+_2b8,"dir":_2bf},_387);for(i;i>=0;i--){var _38f=_295[i]||0;var part=0;if(_38f>0){part=Math.round(_38f/_294*100);part=part/100*(_2b7*_384.numStars);}var _390=_384.numStars*_2b7;var _391=i$.createDom("div",{"id":"mainDiv_"+i+"_"+_384.oid,"tabindex":"0","padding":"10px","class":_2be+_2b2,"dir":_2bf},_38e);var _392=i$.createDom("span",{"id":_2bb+i+"_"+_384.oid,"padding":"10px","class":_2be+_2ba,"dir":_2bf},_391);var _393=document.createTextNode(i+1+"  "+dojoless_resource_AddTag.star);_392.appendChild(_393);var j=i+1;_392.setAttribute("alt",j+"  "+dojoless_resource_AddTag.star);_392.setAttribute("title",j+"  "+dojoless_resource_AddTag.star);_38d=_38d+j+"  "+dojoless_resource_AddTag.star;var _394=i$.createDom("div",{"id":"innerDiv_"+i+"_"+_384.oid,"class":"wpRatingLight menu","dir":_2bf},_391);var _395,_396;if(i$.isIE<9){if(_2bf=="ltr"){_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2b0,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2b1,"dir":_2bf,},_395);}else{_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2b0,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2c1,"dir":_2bf,},_395);}}else{if(_2bf=="ltr"){_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2ae,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2af,"dir":_2bf,},_395);}else{_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2ae,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2c0,"dir":_2bf},_395);}}_395.style.width=_390+_2a6;_396.style.width=part+_2a6;var _397=i$.createDom("span",{"id":"countDiv"+i+"_"+_384.oid,"class":_2be+_2ba,"dir":_2bf},_391);var _398=document.createTextNode(_38f);if(_398!=null){_397.appendChild(_398);_397.setAttribute("alt",_38f);_397.setAttribute("title",_38f);_38d=_38d+_38f;}var _399=i$.createDom("div",{"id":"countExtraDiv"+i+"_"+_384.oid,"class":_2be+_2ba,"dir":_2bf},_391);}var _39a=i$.createDom("div",{"id":"totalRatingDiv"+_384.oid,"class":_2be+_2b3,"dir":_2bf},_38e);var _39b;if(_294<=1){_39b=document.createTextNode(_294+" "+dojoless_resource_AddTag.Rating);_39a.setAttribute("alt",_294+" "+dojoless_resource_AddTag.Rating);_39a.setAttribute("title",_294+" "+dojoless_resource_AddTag.Rating);_38d=_38d+_294+" "+dojoless_resource_AddTag.Rating;}else{_39b=document.createTextNode(_294+" "+dojoless_resource_AddTag.Ratings);_39a.setAttribute("alt",_294+" "+dojoless_resource_AddTag.Ratings);_39a.setAttribute("title",_294+" "+dojoless_resource_AddTag.Ratings);_38d=_38d+_294+" "+dojoless_resource_AddTag.Ratings;}_39a.appendChild(_39b);var _387=i$.byId(_2ad+_384.oid);if(_387!=null){_387.setAttribute("alt",_38d);_387.setAttribute("title",_38d);}}};var _353=function(_39c){var _39d=i$.byId(_29c+_39c);if(_39d!=null){return _39d.value;}};var _39e=function(_39f,_3a0){var _3a1=i$.byId(_29c+_39f);if(_3a1==null){var _3a2=i$.byId(_299+_39f);var _3a3=document.createElement("input");_3a3.setAttribute("id",_29c+_39f);_3a3.setAttribute("type","hidden");_3a3.setAttribute("name","privateRatingEnabled");_3a3.setAttribute("value",_3a0);_3a2.appendChild(_3a3);}else{_3a1.setAttribute("value",_3a0);}};var _355=function(_3a4){var _3a5=i$.byId(_29d+_3a4);if(_3a5!=null){return _3a5.value;}};var _3a6=function(_3a7,_3a8){var _3a9=i$.byId(_29d+_3a7);if(_3a9==null){var _3aa=i$.byId(_299+_3a7);var _3ab=document.createElement("input");_3ab.setAttribute("id",_29d+_3a7);_3ab.setAttribute("type","hidden");_3ab.setAttribute("name","deleteRatingEnabled");_3ab.setAttribute("value",_3a8);_3aa.appendChild(_3ab);}else{_3a9.setAttribute("value",_3a8);}};var _35a=function(id,lang,dir,_3ac,_3ad,_3ae){var _3af=!ibmPortalConfig.isUserLoggedIn;if(!_3af){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","class":_2be+_2b8,"tabindex":"0","role":"menuitem","aria-label":_3ae,"onclick":"com_ibm_widgets_resolver.fetchSpecificScopeRatings('"+_3ac+"',\""+_3ae+"\",com_ibm_widgets_rating.displayDojolessRatings);"},_3ad);}else{return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","class":_2be+_2b8,"tabindex":"0","role":"menuitem","aria-label":_3ae,"onclick":"com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser('"+_3ac+"',\""+_3ae+"\",\"0\",com_ibm_widgets_rating.displayDojolessRatings);"},_3ad);}};var _361=function(id,lang,dir,_3b0,_3b1,_3b2){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","tabindex":"0","class":_2be+_2b8,"onclick":"com_ibm_widgets_resolver.deleteRating('"+_3b0+"',\""+_3b2+"\");"},_3b1);};var _365=function(id,lang,dir,_3b3,_3b4,_3b5){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","tabindex":"0","class":_2be+_2b8,"onclick":"com_ibm_widgets_resolver.deleteAllRating('"+_3b3+"',\""+_3b5+"\");"},_3b4);};var _3b6=function(_3b7,_3b8){if(_3b7!=null){_294=_3b7.length;_31a(_3b7);}else{_31b();}if(_297){numericalRatingValue=_296+0.5;}else{numericalRatingValue=_296;}var _3b9=!ibmPortalConfig.isUserLoggedIn;if(numericalRatingValue==0||(_3b9&&numericalRatingValue>0)){com_ibm_widgets_resolver.insertRating(_3b8.oid,_30d(_3b8.oid),_3b8.ratingValue,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_3b8.oid,_30d(_3b8.oid),_3b8.ratingValue,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}};var _37f=function(item){if(item!=null&&item.id!=null&&(item.id.match("ratingDistr")||item.id.match("RatingDistr"))){item=item.parentNode;}var _3ba=item.parentNode;var _3bb=_3ba.childNodes;var _3bc=_3bb.length;var i=0;var _3bd=0;for(i=0;i<_3bc;i++){if(_3bb.item(i)==item){_3bd=i;break;}}if(_3bd==_3bc-1){_3bd=0;}else{_3bd=_3bd+1;var j=_3bd;for(j;j<_3bc;j++){if(!(_3bb.item(j).innerHTML==null||_3bb.item(j).innerHTML=="")){break;}}if(j==_3bc){_3bd=0;}else{_3bd=j;}}var _3be=_3bb.item(_3bd).id;var temp=_3bb.item(_3bd);if(_3be.match("ratingDistr")){temp=temp.firstChild;}temp.focus();return i$.byId(_3bb.item(_3bd).id);};var _37e=function(item){if(item!=null&&item.id!=null&&(item.id.match("ratingDistr")||item.id.match("RatingDistr"))){item=item.parentNode;}var _3bf=item.parentNode;var _3c0=_3bf.childNodes;var _3c1=_3c0.length;var i=0;var _3c2=0;for(i=0;i<_3c1;i++){if(_3c0.item(i)==item){_3c2=i;break;}}if(_3c2==0){_3c2=_3c1-1;if(_3c0.item(_3c2).innerHTML==""==null||_3c0.item(_3c2).innerHTML==""){_3c2=_3c2-1;}}else{_3c2=_3c2-1;var j=_3c2;for(j;j>0;j--){if(!(_3c0.item(j).innerHTML==""==null||_3c0.item(j).innerHTML=="")){break;}}_3c2=j;}var _3c3=_3c0.item(_3c2).id;var temp=_3c0.item(_3c2);if(_3c3.match("ratingDistr")){temp=temp.firstChild;}temp.focus();return i$.byId(_3c0.item(_3c2).id);};var _381=function(_3c4,item,_3c5){var _3c6=item.parentNode;var _3c7=_3c6.childNodes;var _3c8=item;var _3c9=String.fromCharCode(_3c4),_3ca=_3c9.toLowerCase(),_3cb=_3cc(_3c5),_3cd=_3c5.innerHTML.charAt(_3cb),_3ce=_3c7,_3cf;if(_3ca==_3cd.toLowerCase()){var _3d0=0;var i=0;_3ce=_3c8.childNodes;var len=_3ce.length;for(i;i<len;i++){if(_3ce.item(i)==_3c5){break;}}_3d0=i;var _3d1=_3d2(_3ce,_3d0,_3cd,_3c9);if((_3d1!=item)){_3d3(_3d1);}}else{_3ce=_3c8.childNodes;for(var k=0,nal=_3ce.length;k<nal;k++){_3cb=_3cc(_3ce[k]);_3cf=_3ce[k].innerHTML;if((_3ca==_3cf.charAt(_3cb).toLowerCase())){_3d3(_3ce[k]);break;}}}};function _3d3(item){item.focus();};function _3d2(_3d4,_3d5,_3d6,_3d7){var _3d8,_3d9=false,_3da,_3db=_3d4.length,_3dc=(_3d5==_3db-1)?-1:_3d5;for(var i=_3dc+1;i<_3db;i++){_3d8=_3cc(_3d4[i]);_3da=_3d4[i].innerHTML.charAt(_3d8).toLowerCase();if(_3da==_3d7.toLowerCase()){_3d5=i;break;}if(i==_3d4.length-1){if(_3d9){break;}i=-1;_3db=_3d5;_3d9=true;}}return _3d4[_3d5];};function _3cc(item){var ltr=null;var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _3dd=i$.isRTL(loc);if(_3dd!=null){if(_3dd){ltr=false;}else{ltr=true;}}}if((item.text)&&(!ltr)){return item.text.length-1;}return 0;};return {getRatingMenu:_343,displayDojolessRatings:_316,displayRatingDistribution:_382,getCurrentDisplayedScope:_30d,openRatingsActionDropDownMenu:_36c,displayDojolessRatings:_316,updateRatingInDefaultView:_3b6,RATINGWIDGET_STARS_DIV_PREFIX:"ratinglightstars_",RATINGWIDGET_PREFIX:"ratinglight_"};})();if(typeof (UTILS)==="undefined"){var UTILS={};UTILS.trim=function(str){if(str.trim){return str.trim();}else{var _3de=/^\s+|\s+$/g;return str.replace(_3de,"");}};UTILS.getCaretPosition=function(el){if(typeof (el.selectionStart)!=="undefined"){return el.selectionStart;}else{if(document.selection){var _3df=document.selection.createRange();_3df.moveStart("character",-el.value.length);return _3df.text.length;}}};UTILS.setCaretPosition=function(el,pos){if(typeof (el.selectionStart)!=="undefined"){el.selectionStart=el.selectionEnd=pos;}else{if(document.selection){var _3e0=el.createTextRange();_3e0.moveStart("character",pos);_3e0.collapse(true);_3e0.select();}}};UTILS.filter=function(arr,func){if(arr.filter){return arr.filter(func);}else{var ret=[];for(var i=0;i<arr.length;i++){if(func(arr[i])){ret.push(arr[i]);}}return ret;}};UTILS.removeClass=function(el,cls){var s=el.className;var _3e1=new RegExp("(^|\\s+)"+cls+"(\\s+|$)","g");s=s.replace(_3e1," ").replace(/\s+/g," ").replace(/^\s|\s$/g,"");el.className=s;};}var suggestionTags=[];var suggestionItems=[];var currentSuggestion=-1;var oldSuggestText="";var DEMO_SUGGESTIONS=["Hans","Horst","Hubert","Hannelore","Herbert","Peter","Petra","Peer","Paula","Paul"];var checkInput=function(_3e2){var text=_3e2.value;var _3e3=UTILS.getCaretPosition(_3e2);var b=getSourroundingTextBoundaries(text,_3e3);var text=UTILS.trim(text.slice(b.from,b.to));if(text===oldSuggestText){return;}oldSuggestText=text;if(text.length===0){hideSuggestionList(_3e2);}else{updateSuggestions(_3e2,text);}};var keyDownHandler=function(e,_3e4,_3e5,_3e6){var _3e7=_3e5.count;var c=e.keyCode;var _3e8=true;if(c===27){if(currentSuggestion>-1){removeSuggestionSelection();}else{}}else{if(c===13){if(currentSuggestion>-1){updateInputWithSuggestion(_3e4,currentSuggestion);}else{addTags(_3e4.value,com_ibm_widgets_tagging.tagIdsArray[_3e7],_3e6);}}else{if(c===40){changeSuggestionSelection(currentSuggestion+1);}else{if(c===38){changeSuggestionSelection(currentSuggestion-1);}else{_3e8=false;}}}}if(_3e8){if(e.preventDefault){e.preventDefault();}if(e.returnValue){e.returnValue=false;}}};var blurTimerId;var updateTimerId;var blurHandler=function(){if(updateTimerId){window.clearInterval(updateTimerId);updateTimerId=null;}};var getSourroundingTextBoundaries=function(text,pos){var from=text.lastIndexOf(TAG_INPUT_SEPARATOR,pos);var to=text.indexOf(TAG_INPUT_SEPARATOR,pos);if(text[pos]===TAG_INPUT_SEPARATOR){from=text.lastIndexOf(TAG_INPUT_SEPARATOR,pos-1);}if(from<0){from=-1;}if(to<0){to=text.length;}return {from:from+1,to:to};};var addTags=function(_3e9,oid,_3ea,_3eb){var _3ec=_3e9;if(typeof (_3ec)!=="string"||_3ec.length===0){return;}if(_3ec.length>50){com_ibm_widgets_resolver.showTaggingValidationError(oid,dojoless_resource_AddTag.text_error_tags_too_long);return;}var str=_3ec.split(/[ ,]+/);var tags=[];for(var i=0;i<str.length;i++){if(tags.indexOf(str[i])==-1){tags.push(str[i]);}}for(var i=0;i<tags.length;i++){var _3ed=UTILS.trim(tags[i]);if(_3ed.length===0){continue;}var tag={name:_3ed,oid:oid,isPrivate:_3ea};if(oid!=null){com_ibm_widgets_resolver.insertTag(tag);}}};var hideSuggestionList=function(_3ee){_3ee.innerHTML="";suggestionTags=[];currentSuggestion=-1;};var updateSuggestions=function(_3ef,text){var _3f0=text.toLowerCase();var len=text.length;var _3f1=UTILS.filter(suggestionTags,function(tag){return (tag.slice(0,len).toLowerCase()===_3f0&&tag.length!==len);});_3f1=_3f1.slice(0,3);updateSuggestionList(_3ef,text,_3f1);window.setTimeout(function(){getSuggestionsFromServer(_3ef,text);},500);};var getSuggestionsFromServer=function(_3f2,text){if(text!==oldSuggestText){return;}var _3f3=text.toLowerCase();var len=text.length;var _3f4=UTILS.filter(DEMO_SUGGESTIONS,function(tag){return (tag.slice(0,len).toLowerCase()===_3f3&&tag.length!==len);});_3f4.sort();_3f4=_3f4.slice(0,3);updateSuggestionList(_3f2,text,_3f4);};var updateSuggestionList=function(_3f5,_3f6,_3f7){if(!_3f7||_3f7.length===0){hideSuggestionList(_3f5);return;}suggestionTags=_3f7;suggestionItems=[];currentSuggestion=-1;inputLen=_3f6.length;var _3f8=i$.byId("TagWidget_0_SuggestionList");_3f8.innerHTML="";for(var i=0;i<_3f7.length;i++){var tag=_3f7[i];var _3f9=tag.slice(0,inputLen);var _3fa=tag.slice(inputLen);var _3fb=i$.createDom("li",{},_3f8);var _3fc=document.createTextNode(_3f9+"<strong>"+_3fa+"</strong>");_3fb.appendChild(_3fc);suggestionItems.push(_3fb);}};var suggestionItemMouseOver=function(e){var _3fd=UTILS.getTarget(e);var i=UTILS.indexOf(suggestionItems,_3fd);if(i===-1){i=UTILS.indexOf(suggestionItems,_3fd.parentNode);}changeSuggestionSelection(i);};var suggestionItemMouseOut=function(e){removeSuggestionSelection();};var suggestionItemClick=function(_3fe,e){var _3ff=UTILS.getTarget(e);var i=UTILS.indexOf(suggestionItems,_3ff);if(i===-1){i=UTILS.indexOf(suggestionItems,_3ff.parentNode);}updateInputWithSuggestion(_3fe,i);};var changeSuggestionSelection=function(_400){if(currentSuggestion>-1){UTILS.removeClass(suggestionItems[currentSuggestion],"highlight");}if(_400>=suggestionItems.length){_400=-1;}if(_400<-1){_400=suggestionItems.length-1;}if(_400<0){currentSuggestion=-1;}else{suggestionItems[_400].className+=" highlight";currentSuggestion=_400;}};var removeSuggestionSelection=function(){changeSuggestionSelection(-1);};var updateInputWithSuggestion=function(_401,_402){var pos=UTILS.getCaretPosition(_401);var _403=_401.value;var b=getSourroundingTextBoundaries(_403,pos);var _404=suggestionTags[_402];if(b.from>0&&_403[b.from-1]===TAG_INPUT_SEPARATOR){_404=" "+_404;}var _405=_403.slice(0,b.from)+_404+_403.slice(b.to);if(b.to===_403.length){_405+=TAG_INPUT_SEPARATOR+" ";}_401.value=_405;_401.focus();if(b.to===_403.length){UTILS.setCaretPosition(_401,_405.length);}else{UTILS.setCaretPosition(_401,b.from+_404.length);}};

}catch(e){console.log("Module 'wp_tagging_rating_light': ",e);}
try{(function(){
if(!i$.isIE){
i$.addOnLoad(function(){
var _1=document.createElement("div");
_1.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\");";
document.body.appendChild(_1);
var _2=null;
try{
_2=document.defaultView.getComputedStyle(_1,"");
}
catch(e){
_2=_1.currentStyle;
}
if(_2){
var _3=_2.backgroundImage;
if((_2.borderTopColor==_2.borderRightColor)||(_3!=null&&(_3=="none"||_3=="url(invalid-url:)"))){
document.getElementsByTagName("body")[0].className+=" a11yHighContrast";
}
document.body.removeChild(_1);
}
});
}
})();


}catch(e){console.log("Module 'wp_high_contrast': ",e);}
try{(function(_1){
var _1=_1,_2=_1.document,_3=i$.hasClass,_4=i$.toQuery,_5=i$.fromPath,_6=i$.forEach,_7="edit",_8="info",_9="toolbar:open",_a="toolbar:close",_b="ibm.portal.toolbar.",_c=function(_d){
var _d=_e(_d),_f=_10(_d),uri=_f.uri,_11=_f.params||{},_12=_13(_d);
if(uri){
if(_14()&&!_15(_12)){
if(_d.editMode===true){
_16(uri,_11);
}else{
_17(uri,_11);
}
}else{
_18(uri,_11,_12);
}
}else{
if(_14()){
if(_15(_12)){
_19(_12);
}
}else{
_18(uri,_11,_12);
}
}
},_1a=function(_1b){
_1b.primaryTab=_1b.tab;
_1b.tab=null;
return _c(_1b);
},_1c=function(_1d){
_1d.secondaryTab=_1d.tab;
_1d.tab=null;
return _c(_1d);
},_1e=function(_1f){
var _20=_21();
if(_20){
_20.close(_1f);
}else{
_1f();
}
},_22=function(_23){
_1e(function(){
_24(_23);
});
},_24=function(_25){
var _26=_10(_25),uri=_26.uri,_27=_26.params||{};
if(_14()){
if(uri){
if(!_27.uri){
_27.uri=[];
}
_27.uri.push(_a);
}else{
uri=_a;
}
}
if(uri){
_28(_29(),uri,_27,function(url){
_2a().location.href=url;
});
}
},_14=function(){
var r=_21();
return r;
},_2b=function(_2c,_2d){
var uri=_2e(_2c,_2d);
if(_2c==_7&&_2d&&_14()){
_16(uri);
}else{
_17(uri);
}
},_2e=function(_2f,_30){
var uri=["pagemode:"];
uri.push(_2f);
uri.push(":");
_30?uri.push("on"):uri.push("off");
var r=uri.join("");
return r;
},_31=function(_32){
_2b(_7,_32);
},_33=function(){
var r=_34(_7);
return r;
},_35=function(_36){
_2b(_8,_36);
},_37=function(){
var r=_34(_8);
return r;
},_34=function(_38){
var win=_29(),_39=win.document.body,r=_3(_39,_38+"-mode");
return r;
},_3a=function(_3b,_3c){
var r=false;
if(_3c!==undefined){
r=_3c!==_34(_3b);
}
return r;
},_17=function(uri,_3d){
var win=_29();
_28(win,uri,_3d,function(url){
win.location.href=url;
});
},_16=function(uri,_3e){
if(_14()){
var _3f=_21();
_3f.load(_40(uri,_3e),"view",{"onload":function(){
_3f.restore();
}});
}else{
var win=_29();
_28(win,uri,_3e,function(url){
win.location.href=url;
});
}
},_41=function(_42){
_29().location.reload(_42);
},_10=function(_43){
var r={};
if(_43){
var uri=null,_44={},_45=_43.editMode,_46=_43.infoMode;
if(_3a(_7,_45)){
uri=_2e(_7,_45);
}
if(_3a(_8,_46)){
var _47=_2e(_8,_46);
if(uri){
_44.uri=[_47];
}else{
uri=_47;
}
}
if(uri){
r.uri=uri;
r.params=_44;
}
}
return r;
},_40=function(uri,_48){
var _49={"uri":uri};
if(_48){
_49.params=_48;
}
return _49;
},_e=function(_4a){
if(_14()){
_4a.autoOpenDefaultTabs=false;
}
return _4a;
},_19=function(_4b){
if(_4b&&_15(_4b)){
var _4c=_21();
if(_4c){
var p=_4b.primaryURI,_4d={},_4e=_4b.onCloseDialog;
if(_4e&&_4e.id){
_4d.onCloseDialog=function(_4f){
_50(_4f,_4e.id,_4e.key);
};
}
if(p){
_4c.load(_40(p),"primary",_4d);
}
var s=_4b.secondaryURI;
if(s){
_4c.load(_40(s),"secondary",_4d);
}
}
}
},_50=function(_51,id,key){
var _52=_51,id=id,key=key||"onCloseDialog";
_53(function(w){
try{
var d=w.document;
if(d){
var n=d.getElementById(id);
if(n){
var f=n[key];
if(f){
f.call(n,_51);
}
}
}
}
catch(e){
}
});
},_18=function(uri,_54,_55){
if(uri){
if(!_54){
_54={};
}
if(!_54.uri){
_54.uri=[];
}
_54.uri.push(_9);
}else{
uri=_9;
}
if(_55&&_15(_55)){
if(!_54){
_54={};
}
var p=_55.primaryURI;
if(p){
_54.primaryTabURI=[p];
}
var s=_55.secondaryURI;
if(s){
_54.secondaryTabURI=[s];
}
}
_28(_29(),uri,_54,function(url){
_2a().location.href=url;
});
},_13=function(_56){
var r={};
if(_56){
if(_56.tab||_56.primaryTab||_56.secondaryTab){
var _57=_56.secondaryTab||_56.tab;
if(_57){
r.secondaryURI=_58(_57);
}
var _59=_56.primaryTab;
if(_59){
r.primaryURI=_58(_59);
}
}
r.onCloseDialog=_56.onCloseDialog;
var _5a=_56.autoOpenDefaultTabs;
if(_5a){
if(!r.primaryURI){
r.primaryURI="default";
}
if(!r.secondaryURI){
r.secondaryURI="default";
}
}
}
return r;
},_58=function(t){
if(t.indexOf(_b)==0||t.indexOf("Z6_")==0){
return "nm:oid:"+t;
}else{
return t;
}
},_15=function(_5b){
var r=_5b&&(_5b.primaryURI||_5b.secondaryURI);
return r;
},_28=function(win,uri,_5c,cb){
_5d(win).then(function(url){
var _5e=url,buf=[];
buf.push(_5e);
if(_5e.indexOf("?")<0){
buf.push("?");
}else{
buf.push("&");
}
buf.push("uri=");
buf.push(uri);
if(_5c){
buf.push("&");
buf.push(_4(_5c));
}
var r=buf.join("");
cb(r);
});
},_5d=function(win){
var r=wpModules.theme.WindowUtils.findBaseURL(win);
return r;
},_5f=function(win){
var r=wpModules.theme.WindowUtils.getBaseURL(win);
return r;
},_29=function(){
var wu=wpModules.theme.WindowUtils,r=(wu&&wu.getWindow(wu.VIEW_AREA))||_1;
return r;
},_53=function(cb){
var _60=_2a(),_61=_60.frames;
cb.call(this,_60);
if(_61&&_61.length>0){
_6(_61,function(f){
cb.call(this,f.window);
});
}
},_2a=function(){
var win=_29(),r=(win.parent||win);
return r;
},_21=function(){
var r=_5("wpModules.toolbar.NavigationController",false,_2a());
return r;
},_62=_5("wpModules.toolbar",true);
_62.openToolbar=_c;
_62.openPrimaryTab=_1a;
_62.openSecondaryTab=_1c;
_62.closeTab=_1e;
_62.closeToolbar=_22;
_62.isToolbarOpened=_14;
_62.setEditModeActive=_31;
_62.isEditModeActive=_33;
_62.setInfoModeActive=_35;
_62.isInfoModeActive=_37;
_62.loadViewArea=_17;
_62.reloadViewArea=_41;
_62.getViewAreaWindow=_29;
_62.getToolbarMasterWindow=_2a;
_62.getBaseURL=_5f;
})(window);


}catch(e){console.log("Module 'wp_toolbar_utils': ",e);}
try{(function(){
var _1=i$.addClass,_2=i$.hasClass,_3=i$.removeClass,_4=i$.fromPath,ln=function(o){
return o.length;
},_5="edit-mode",_6="edit-mode-disabled",_7="help-mode",_8="info-mode",_9="toolbar-opened",_a="toolbar-closed",_b=_4("wpModules.state.page");
if(_b){
var _c=_b.getStateManager();
_c&&_c.getState().then(function(_d){
var _e=_d.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"pageMode"}),_f=_d.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"showTools"}),_10=document.body;
_3(_10,_5);
_3(_10,_6);
_3(_10,_8);
_3(_10,_7);
if(_e&&ln(_e)>0&&_e[0].value&&ln(_e[0].value)>0){
var _11=_e[0].value;
for(var i=0;i<ln(_11);++i){
var _12=_11[i];
if("EDIT"==_12){
if(wpModules.state.page.supportsEditMode){
_1(_10,_5);
}else{
_1(_10,_6);
}
}else{
if("INFO"==_12){
_1(_10,_8);
}else{
if("HELP"==_12){
_1(_10,_7);
}
}
}
}
}
if(_f&&ln(_f)>0&&_f[0].value&&ln(_f[0].value)>0){
var _13=_f[0].value[0];
if("true"==_13){
_1(_10,_9);
}else{
_1(_10,_a);
}
}else{
_1(_10,_a);
}
});
}
})();


}catch(e){console.log("Module 'wp_state_page_modes': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(){
function _1(_2){
var _3=window,_4=_2.metadata;
if(_4&&_4._contributionWindow){
return _4._contributionWindow;
}
if(_4&&_4.contributor){
var _5=_4.contributor,_6=_5.lastIndexOf(":"),_7=_5.substr(_6+1),_8=i$.fromPath("wpModules.theme.WindowUtils");
if(_8){
_3=_8.getWindow(_7);
}
}
if(!_4){
_4=_2.metadata={};
}
_4._contributionWindow=_3;
return _3;
};
var _9={getWindow:function(_a){
var _b=(_a.metadata&&_a.metadata.actionUrlTarget)||"same",_c,wu=wpModules.theme.WindowUtils;
_c=_1(_a);
if(_b=="view"){
_c=wu&&wu.getWindow(wu.VIEW_AREA);
}else{
if(_b=="master"){
_c=wu&&wu.getWindow(wu.MASTER);
}
}
return _c||window;
}};
var _d={getWindow:function(_e){
return _1(_e);
}};
i$.toPath("wptheme.contextMenu.extension.actionUrlTarget",_9);
i$.toPath("wptheme.contextMenu.extension.menuItemScope",_d);
var _f={templates:{anchor:"<span class=\"wpthemeMenuBadgeAnchor\"></span>",loading:"<span class=\"wpthemeMenuLoading wpthemeTemplateLoading\"></span>",badge_info:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeInfo\" aria-live=\"polite\">${count}</span>",badge_warn:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeWarn\" aria-live=\"polite\">${count}</span>",badge_error:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeError\" aria-live=\"polite\">${count}</span>"},getAnchor:function(_10){
var md=(_10)?_10.metadata:null;
return (md&&(md.badgeUrl||md.badgeData))?_f.templates.anchor:"";
},injectBadge:function(_11,_12){
var _13=(_12)?_12:_11._menuitem,md=(_13)?_13.metadata:null;
if(md&&(md.badgeUrl||md.badgeData)){
var _14=_f._findNode(_11,"wpthemeMenuBadgeAnchor");
if(_14){
if(md.badgeUrl){
var _15,_16=md.badgeUrl,_17=ibmCfg.portalConfig.contentHandlerURI;
if(_16.indexOf("?")==0){
_15=_17+((_17.indexOf("?")<0)?"?":"&")+_16.substring(1);
}else{
_15=_16;
}
var tmp=i$.createDom("div");
tmp.innerHTML=_f.templates.loading;
_14.appendChild(tmp.firstChild);
i$.xhrGet({url:_15,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_18){
_f._insertBadge(_18.data,md.badgeTitle,_14);
},function(_19){
while(_14.firstChild){
_14.removeChild(_14.firstChild);
}
});
}else{
_f._insertBadge(md.badgeData,md.badgeTitle,_14);
}
}
}
},_insertBadge:function(_1a,_1b,_1c){
while(_1c.firstChild){
_1c.removeChild(_1c.firstChild);
}
if(_1a&&_1a.count>0){
var tmp=i$.createDom("div");
if(_1a.level=="error"){
tmp.innerHTML=_f.templates.badge_error.replace(/\$\{count\}/g,_1a.count);
}else{
if(_1a.level=="warn"){
tmp.innerHTML=_f.templates.badge_warn.replace(/\$\{count\}/g,_1a.count);
}else{
tmp.innerHTML=_f.templates.badge_info.replace(/\$\{count\}/g,_1a.count);
}
}
if(_1b){
tmp.firstChild.setAttribute("title",_1b);
tmp.firstChild.setAttribute("aria-label",_1b);
}
_1c.appendChild(tmp.firstChild);
}
},_findNode:function(_1d,_1e){
var _1f,i,_20;
var _21=function(_22,_23){
for(i=_22.childNodes.length-1;i>=0;i--){
_20=_22.childNodes[i];
if(i$.hasClass(_20,_1e)){
_1f=_20;
continue;
}
if(_20.childNodes){
i=_21(_20,i);
}
}
return _23;
};
_21(_1d);
return _1f;
}};
i$.toPath("wptheme.contextMenu.extension.badge",_f);
})();


}catch(e){console.log("Module 'wp_simple_contextmenu_ext': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(){
var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}",_2=false,_3="Separator",_4="Header",_5=function(){
var _6=i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode");
return _6;
},_7=i$.fromPath("wptheme",true),_8=i$.fromPath("wptheme.contextMenu",true),_9=i$.fromPath("wptheme.contextMenu.extension",true);
i$.mash(_7,{getWindowIDFromSkin:function(_a){
while((_a=_a.parentNode)!=null){
if(i$.hasClass(_a,"component-control")){
var m=_a&&(_a.className||"").match(/id-([\S]+)/);
var _b=m&&m[1];
return _b;
}
}
return null;
},getPortletState:function(_c){
var _d=i$.byId("portletState");
var _e={};
if(_d){
if(!_d._cache){
_d._cache=i$.fromJson(_d.innerHTML);
_d._cache._defaults={"windowState":"normal","portletMode":"view"};
}
if(_d._cache[_c]){
_e=_d._cache[_c];
}else{
_e=_d._cache._defaults;
}
}
return _e;
},isValidOp:function(_f){
if(_f.visibility===false){
return false;
}
var _10=_f.metadata||{};
switch(_f.id){
case "ibm.portal.operations.changePortletMode":
var _11=_7.getPortletState(_10.wid).portletMode!=_10.portletMode;
return _11;
case "ibm.portal.operations.changeWindowState":
var _11=_7.getPortletState(_10.wid).windowState!=_10.windowState;
return _11;
default:
}
return true;
},operation:{changeToHelpMode:function(_12){
var _13=window.location.href;
if(_12.actionUrl){
if(_12.actionUrl.indexOf("?")==0){
var _14=_13.indexOf("#");
if(_14!=-1){
var _15=_13.substring(0,_14);
var _16=_13.substring(_14);
_13=_15+(_15.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1);
_13+=_16;
}else{
_13+=(_13.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1);
}
}else{
_13=_12.actionUrl;
}
}
window.open(_13,"","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,width=800,height=600,screenX=10,screenY=10,top=10,left=10");
}},canImpersonate:function(){
return ibmCfg.portalConfig.canImpersonate;
}});
i$.mash(_8,{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading",complementaryContent:"wpthemeComplementaryContent",menuOverlay:"wpthemeMenuOverlay",alignLeft:"wpthemeMenuLeft",alignRight:"wpthemeMenuRight",noTouch:"wpthemeNoTouch"},init:function(){
var _17;
if(arguments.length==1){
_17=arguments[0];
}else{
_17={node:arguments[0],menuId:arguments[1],jsonQuery:(arguments.length>2)?arguments[2]:null};
}
this.init2(_17);
},init2:function(_18){
var _19=_18.node;
_18.params=_18.params||{};
var _1a=_18.params.autoScroll!==false;
_19._contextMenu=_19._contextMenu||{};
var _1b=_19._contextMenu;
_1b.id=_19._contextMenu.id||_19.getAttribute("id")||Math.round(Math.random()*1000000000);
_19.setAttribute("id",_1b.id);
_1b.menuId=_18.menuId;
_1b.jsonQuery=_18.jsonQuery;
_1b.templateId=_18.params.templateId||null;
_1b.alignLeft=(_18.params.alignment=="left")||false;
_1b.alignRight=(_18.params.alignment=="right")||false;
_1b.touchDevice=(com_ibm_device_class.indexOf("tablet")!=-1)||(com_ibm_device_class.indexOf("smartphone")!=-1);
_1b.closeFn=function(_1c,evt){
var fn=_18.onClose;
if(fn){
if(i$.isFunction(fn)){
try{
fn();
}
catch(exc){
console.log("error executing function "+fn+" - "+exc);
}
}
}
_7.contextMenu.close(_1b,_1c,evt);
};
if(_1b.touchDevice){
var _1d=i$.bindDomEvt(document.body,"touchmove",function(evt){
var _1e=(evt)?evt.target||evt.srcElement:null;
var _1f=i$.byId(_1b.id);
if(i$.hasClass((_1b.shadowNode)?_1b.shadowNode:_1f,_24.show)&&!i$.isDescendant(_1e,_1b.shadowNode)){
i$.unbindDomEvt(_1d);
if(_1b._inProgress){
_displayMenu=false;
}
_1b.closeFn(false);
}
});
}
var _20=function(_21){
if(_21.displayMenu){
_1b.activeAction=false;
i$.fireEvent("wptheme/contextMenu/close/all");
var _22=i$.byId(_1b.id);
if(!_1b._submenu){
i$.fireEvent("wptheme/contextMenu/close/all");
_7.contextMenu._updateAbsolutePosition(_22);
}
var _23=_7.contextMenu._adjustScreenPositionStart();
i$.addClass((_1b.shadowNode)?_1b.shadowNode:_22,_24.show);
if(_1a){
_7.contextMenu._adjustScreenPositionEnd(_23);
}
var _25=_22._firstSelectable;
if(_25){
_25.focus();
_22._currentSelected=_25;
}
i$.addClass((_1b.shadowNode)?_1b.shadowNode:_22,("ontouchstart" in document)?"":_24.noTouch);
}
};
_7.contextMenu._initialize(_19).then(_20,_20);
_19=null;
},initSubmenu:function(_26,_27,_28){
_26._contextMenu=_26._contextMenu||{};
var _29=_26._contextMenu;
_29._submenu=true;
_29._menuitemTemplate=_28._menuitemTemplate;
_29._subMenuTemplate=_28._subMenuTemplate;
_29._loadingTemplate=_28._loadingTemplate;
_7.contextMenu.init(_26,_27,_28.jsonQuery);
},_findFocusNode:function(_2a){
var _2b,i,_2c;
var _2d=function(_2e,_2f){
var l=_2e.childNodes.length;
for(i=0;i<l;i++){
if(_2b){
break;
}
_2c=_2e.childNodes[i];
if(i$.hasClass(_2c,_24.focus)){
_2b=_2c;
break;
}
if(_2c.childNodes){
i=_2d(_2c,i);
}
}
return _2f;
};
if(i$.hasClass(_2a,_24.focus)){
return _2a;
}
_2d(_2a);
return _2b;
},_findNodes:function(_30,_31){
var _32,_33,_34,_35,i,_36;
var _37=function(_38,_39){
for(i=_38.childNodes.length-1;i>=0;i--){
_36=_38.childNodes[i];
if(i$.hasClass(_36,_24.menuTemplate)){
_33=_36;
continue;
}
if(i$.hasClass(_36,_24.submenuTemplate)){
_34=_36;
continue;
}
if(i$.hasClass(_36,_24.loadingTemplate)){
_35=_36;
continue;
}
if(_36.childNodes){
i=_37(_36,i);
}
}
return _39;
};
if(_31&&!_30._contextMenu.menuNode){
_32=document.getElementById(_31);
if(_32){
_32=_32.cloneNode(true);
_30.appendChild(_32);
}
}
_37(_30);
if(!_33){
_32=document.getElementById("simpleMenuTemplate");
if(_32){
_32=_32.cloneNode(true);
_30.appendChild(_32);
_37(_30);
}
}
var _3a={"root":_32,"menu":_33,"submenu":_34,"loading":_35};
return _3a;
},_findNextNodeByKeyCode:function(_3b,_3c){
var _3d=_3b.parentNode;
var _3e,_3f,_40,i,j;
var l=_3d.childNodes.length;
for(i=0;i<l;i++){
if(_3d.childNodes[i]==_3b){
break;
}
}
for(j=i+1;j<l;j++){
_3e=_3d.childNodes[j];
_3f=_3e.textContent||_3e.innerText;
if(_3e._menuitem&&_3e._menuitem.type!=_4&&_3e._menuitem.type!=_3&&_3f&&_3f.charAt(0).toUpperCase().charCodeAt(0)==_3c){
_40=_3d.childNodes[j];
return _40;
}
}
for(j=0;j<i;j++){
_3e=_3d.childNodes[j];
_3f=_3e.textContent||_3e.innerText;
if(_3e._menuitem&&_3e._menuitem.type!=_4&&_3e._menuitem.type!=_3&&_3f&&_3f.charAt(0).toUpperCase().charCodeAt(0)==_3c){
_40=_3d.childNodes[j];
return _40;
}
}
return null;
},_invalidateCallback:function(){
_7.contextMenu.cache={};
},_initialize:function(_41){
var _42=true;
var _43=_41._contextMenu;
if(_7.contextMenu.cache[_43.id]||_43._inProgress){
return i$.promise.resolved({displayMenu:_42});
}
_43._inProgress=true;
i$.addListener("wptheme/contextMenu/invalidate/all",_7.contextMenu._invalidateCallback);
var _44,_45,tmp=i$.createDom("div"),_46;
if(_43._submenu){
tmp.innerHTML=_43._subMenuTemplate.replace(/\$\{submenu-id\}/g,_43.id+"_menu");
_41.appendChild(tmp.firstChild);
_44=i$.byId(_43.id+"_menu");
_45=i$.createDom("div");
_45.innerHTML=_43._loadingTemplate;
}else{
var _47=_7.contextMenu._findNodes((_43.shadowNode)?_43.shadowNode:_41,_41._contextMenu.templateId);
_44=_47.menu;
_46=_47.root;
if(_46){
if(_43.alignLeft||_43.alignRight){
i$.removeClass(_46,_24.alignLeft);
i$.removeClass(_46,_24.alignRight);
if(_43.alignLeft){
i$.addClass(_46,_24.alignLeft);
}else{
i$.addClass(_46,_24.alignRight);
}
}
_46.removeAttribute("id");
}
if(!_43._menuitemTemplate){
_43._menuitemTemplate=i$.trim(_44.innerHTML);
}
if(!_43._loadingTemplate){
_45=i$.createDom("div");
_45.appendChild(_47.loading);
_43._loadingTemplate=i$.trim(_45.innerHTML);
_43._loadingTemplate=_43._loadingTemplate.replace(/\$\{loading\}/g,_7.contextMenu.nls.LOADING_0);
_45=null;
}
_45=i$.createDom("div");
_45.innerHTML=_43._loadingTemplate;
if(_47.submenu){
tmp.appendChild(_47.submenu.cloneNode(true));
if(!_43._subMenuTemplate){
_43._subMenuTemplate=i$.trim(tmp.innerHTML);
}
}
}
while(_44.firstChild){
_44.removeChild(_44.firstChild);
}
_44.appendChild(_45);
var _48;
if(_43._submenu){
_48=_43.shadowNode;
}else{
if(_43.shadowNode){
_48=_43.shadowNode;
}else{
_48=_7.contextMenu._transformIntoAbsolutePosition(_41);
}
}
i$.addClass((_48)?_48:_41,_24.show);
i$.bindDomEvt((_48)?_48:_41,"onmouseleave",function(){
if(_43._inProgress){
_42=false;
}
_43.closeFn(false);
});
var _49=_7.contextMenu._load(_43).then(function(_4a){
var _4b=_7.contextMenu._parseData(_4a).then(function(_4c){
_4c=_7.contextMenu._filterMenu(_4c);
if(!_4c||_4c.length==0){
_4c=[{type:"Menuitem",_enabled:true,itemClass:_24.error,title:{value:_7.contextMenu.nls.NO_ITEMS_0,lang:"en"}}];
}
_7.contextMenu._buildMenu(_43,_44,_4c);
_43._inProgress=false;
_7.contextMenu.cache[_43.id]=true;
return {displayMenu:_42};
});
return _4b;
},function(){
var tmp=i$.createDom("div");
tmp.innerHTML=_7.contextMenu._fromTemplate(_43._menuitemTemplate,_24.error,_7.contextMenu.nls.ERROR_LOADING_0);
while(_44.firstChild){
_44.removeChild(_44.firstChild);
}
_44.appendChild(tmp);
_43._inProgress=false;
_7.contextMenu.cache[_43.id]=true;
return {displayMenu:_42};
});
return _49;
},close:function(_4d,_4e,evt){
var _4f=(evt)?evt.target||evt.srcElement:null;
var _50=i$.byId(_4d.id);
i$.removeClass((_4d.shadowNode)?_4d.shadowNode:_50,_24.show);
if(!_4d.activeAction){
var _51=_50._currentSelected;
if(_51){
_51.blur();
}
var _52=_7.contextMenu._findFocusNode(_50);
window.setTimeout(function(){
((_52)?_52:_50).focus();
if(_4e){
window.setTimeout(function(){
_7.contextMenu._applyAction(_4f);
},0);
}
},0);
}
},_load:function(_53){
var _54=_1.replace(/\$\{id\}/g,_53.menuId);
if(_53.jsonQuery){
_54+=(_54.indexOf("?")==-1?"?":"&")+i$.toQuery(_53.jsonQuery);
}
var _55=i$.xhrGet({url:_54,headers:{"X-IBM-XHR":"true","Cache-Control":"No-Cache"},responseType:"json"}).then(function(_56){
var _57=_53.jsonQuery.secondaryRootNode;
if(_57!=null){
_53.jsonQuery.rootNode=_57;
var _58=_1.replace(/\$\{id\}/g,_53.menuId);
_58+=(_54.indexOf("?")==-1?"?":"&")+i$.toQuery(_53.jsonQuery);
var _59=i$.xhrGet({url:_58,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_5a){
return _56.data.concat(_5a.data);
});
return _59;
}
return _56.data;
},function(_5b){
var _5c=_5b.xhr.getResponseHeader("Content-Type")||"";
if((_5c.indexOf("text/html")==0)||(_5b.xhr.status==401)){
window.setTimeout(function(){
document.location.reload();
},0);
}
console.log("Error trying to load the context menu feed for '"+_53.menuId+"': "+_5b);
return null;
});
return _55;
},_parseData:function(_5d){
var _5e=[];
i$.each(_5d,function(_5f){
var _60=i$.fromPath("moduleInfo.deferred",false,_5f)?i$.modules.loadDeferred():i$.promise.resolved(true);
_5e.push(_60.then(function(){
var _61=_7.contextMenu._checkFunction(_5f,_5f.visibilityFn,_5f,(typeof _5f.visibility!="undefined")?_5f.visibility:true);
var _62=_7.contextMenu._checkFunction(_5f,_5f.enableFn,_5f,(typeof _5f.enabled!="undefined")?_5f.enabled:true);
return i$.whenAll(_61,_62).then(function(_63){
_5f._visible=_63[0];
_5f._enabled=_63[1];
return _5f;
});
}));
});
var _64=i$.whenAll.apply(i$,_5e);
return _64;
},_filterMenu:function(_65){
var _66=[],_67,_68={"type":_3};
for(var i=_65.length-1;i>=0;i--){
_67=_65[i];
if(!_67._visible){
continue;
}
if(_67.type==_3){
if(_68.type==_3){
continue;
}
}else{
if(_67.type==_4){
if((_68.type==_3)||(_68.type==_4)){
continue;
}
}
}
_68=_67;
_66.unshift(_67);
}
while(_66.length>0&&_66[0].type==_3){
_66=_66.slice(1);
}
return _66;
},_buildMenu:function(_69,_6a,_6b){
var _6c=document.createDocumentFragment(),tmp=i$.createDom("div"),_6d,_6e,_6f,_70,_71,_72,_73=i$.fromPath("wptheme.contextMenu.extension.badge");
for(var i=0,l=_6b.length;i<l;i++){
_6d=_6b[i];
tmp.innerHTML=_7.contextMenu._fromTemplate(_69._menuitemTemplate,_6d,_73);
while(_6e=tmp.firstChild){
if(_6e.nodeType==1){
if(_6d.type=="Submenu"){
_6e._menuitem=_6d;
_6e._jsonData=_69;
i$.bindDomEvt(_6e,"onmouseover",_7.contextMenu._applySubmenu);
}else{
if(_6d._enabled){
if(!_71){
_71=_6e;
}
_72=_6e;
_6e.links={previous:_6f,next:null,sub:null};
if(_6f){
_6f.links.next=_6e;
}
if(!_70&&_6d.type!=_4){
_70=_6e;
}
_6e._menuitem=_6d;
_6f=_6e;
i$.bindDomEvt(_6e,"onclick",function(evt){
_7.contextMenu._stopEventPropagation(evt);
_69.closeFn(true,evt);
});
i$.bindDomEvt(_6e,"onkeydown",function(evt){
return _7.contextMenu._applyKeyAction(evt);
});
i$.bindDomEvt(_6e,"onmouseover",function(evt){
return _7.contextMenu._applyFocusAction(evt);
});
}
}
if((_6d.title)&&(i$.isRTL(_6d.title.lang))){
i$.addClass(_6e,"rtl");
_6e.setAttribute("dir","RTL");
}
if(_6d.markupId){
_6e.setAttribute("id",_6d.markupId);
}
if(_73){
_73.injectBadge(_6e);
}
}
_6c.appendChild(_6e);
}
}
_71.links.previous=_72;
_72.links.next=_71;
while(_6a.firstChild){
_6a.removeChild(_6a.firstChild);
}
_6a.appendChild(_6c);
i$.byId(_69.id)._firstSelectable=_70;
i$.byId(_69.id)._currentSelected=null;
},_fromTemplate:function(_74,_75,_76){
var _77,_78,_79,_7a="";
if(typeof (_75)=="string"){
_77=_75;
_78=_76;
_79="";
}else{
_77="type"+_75.type;
if(_75.itemClass){
_77+=" "+_75.itemClass;
}
if(!_75._enabled){
_77+=" "+_24.disabled;
}
_78=(_75.title)?_75.title.value:"";
_79=((_75.description)?_75.description.value:"");
if(_76){
_7a=_76.getAnchor(_75);
}
}
var _7b=_74.replace(/\$\{title\}/g,_78).replace(/\$\{badge\}/g,_7a).replace(/"\$\{css-class\}"/g,"\""+(_77)+"\"").replace(/\$\{css-class\}/g,"\""+(_77)+"\"").replace(/"\$\{description\}"/g,"\""+_79+"\"").replace(/\$\{description\}/g,"\""+_79+"\"");
return _7b;
},_checkFunction:function(_7c,fn,arg,_7d){
if(fn){
if(!_7c.fromPath){
_7c.fromPath={};
}
var _7e=i$.fromPath("wptheme.contextMenu.extension.menuItemScope"),_7f=_7e?_7e.getWindow(_7c):null,_80=_7c.fromPath[fn]||i$.fromPath(fn,false,_7f);
_7c.fromPath[fn]=_80;
if(i$.isFunction(_80)){
try{
return _80(arg);
}
catch(exc){
console.log("error executing function "+fn+" - "+exc);
}
}
}
return i$.promise.resolved(_7d);
},_stopEventPropagation:function(evt){
if(evt){
if(evt.stopPropagation){
evt.stopPropagation();
}else{
evt.cancelBubble=true;
}
}
},_applyKeyAction:function(evt){
var _81=evt.target||evt.srcElement;
var _82=_81;
var _83=null;
while(!_83){
_82=_82.parentNode;
if(_82._contextMenu){
_83=_82;
}
}
var _84=_83._contextMenu;
switch(evt.keyCode){
case 32:
if(evt.preventDefault){
evt.preventDefault();
}
case 13:
_7.contextMenu._stopEventPropagation(evt);
_84.closeFn(true,evt);
return false;
case 9:
case 27:
_84.closeFn(false);
break;
case 40:
_7.contextMenu._moveFocus(evt,_84,_81,"next");
return false;
case 38:
_7.contextMenu._moveFocus(evt,_84,_81,"previous");
return false;
}
var _85=_7.contextMenu._findNextNodeByKeyCode(_81,evt.keyCode);
if(_85){
_85.focus();
return false;
}
return true;
},_moveFocus:function(evt,_86,_87,_88){
var _89=_87.links[_88];
if(_89&&(_89._menuitem.type==_4||_89._menuitem.type==_3)){
var _8a=false;
var _8b=null;
while(!_8b&&!_8a){
_89=_89.links[_88];
if(!_89){
_8a=true;
}else{
if(_89._menuitem.type!=_4&&_89._menuitem.type!=_3){
_8b=_89;
}
}
}
_89=_8b;
}
if(_89){
var _8c=i$.byId(_86.id)._currentSelected;
if(_8c){
_8c.blur();
}
i$.byId(_86.id)._currentSelected=_89;
_89.focus();
}
if(evt.preventDefault){
evt.preventDefault();
}
},_applyFocusAction:function(evt){
var _8d=evt.target||evt.srcElement;
var _8e=_8d;
var _8f=null;
var _90=_8d._menuitem;
while(!_8f){
_8e=_8e.parentNode;
if(_8e._contextMenu){
_8f=_8e;
}
if(!_90){
_8d=_8d.parentNode;
_90=_8d._menuitem;
}
}
var _91=_8f._contextMenu;
var _92=i$.byId(_91.id)._currentSelected;
if(_92!=_8d){
if(_92){
_92.blur();
i$.byId(_91.id)._currentSelected=null;
}
if(_90.type!=_4&&_90.type!=_3){
i$.byId(_91.id)._currentSelected=_8d;
_8d.focus();
}
}
return false;
},_applyAction:function(_93){
var _94=_93;
var _95=null;
var _96=_93._menuitem;
while(!_95){
_94=_94.parentNode;
if(_94._contextMenu){
_95=_94;
}
if(!_96){
_93=_93.parentNode;
_96=_93._menuitem;
}
}
var _97=_95._contextMenu;
_97.activeAction=true;
var p=_7.contextMenu._checkFunction(_96,_96.actionFn,_96,_96.actionUrl);
if(p){
p.then(function(_98){
if(_98&&i$.isString(_98)){
var _99=i$.fromPath("wptheme.contextMenu.extension.actionUrlTarget");
var _9a=(_99)?_99.getWindow(_96):window;
var _9b=_96.actionHttpMethod||"GET";
if(_9b!="GET"){
var _9c=_9a.i$.createDom("form");
_9c.setAttribute("action",_98);
_9b=_9b.toLowerCase();
switch(_9b){
case "get":
_9c.setAttribute("method","GET");
break;
case "delete":
case "put":
var _9d=_9a.i$.createDom("input",{"type":"hidden","name":"x-method-override","value":_9b.toUpperCase()});
_9c.appendChild(_9d);
case "post":
_9c.setAttribute("method","POST");
_9c.setAttribute("enctype","multipart/form-data");
break;
default:
}
_9a.i$.byId(_24.complementaryContent).appendChild(_9c);
_9c.submit();
}else{
var _9e=_9a.i$.createDom("a");
_9e.setAttribute("style","display:none");
_9e.setAttribute("href",_98);
_9a.i$.byId(_24.complementaryContent).appendChild(_9e);
_9e.click();
}
}
});
}
},_applySubmenu:function(evt){
var _9f=evt.target||evt.srcElement;
if(!_9f._jsonData){
_9f=_9f.parentNode;
}
if(_9f._jsonData){
_9f.setAttribute("id",_9f._jsonData.id+"_"+_9f._menuitem.id);
_7.contextMenu.initSubmenu(_9f,_9f._menuitem.id,_9f._jsonData);
}
},_transformIntoAbsolutePosition:function(_a0){
var _a1=_a0.childNodes,_a2,i=0,_a3=false;
while(_a2=_a1[i++]){
if(i$.hasClass(_a2,_24.alignRight)){
_a3=true;
break;
}else{
if(i$.hasClass(_a2,_24.alignLeft)){
break;
}
}
}
var _a4=i$.createDom("div");
_a4.className=_a0.className;
_a4.appendChild(_a2);
i$.byId(_24.complementaryContent).appendChild(_a4);
_a4._contextMenu=_a0._contextMenu;
_a0._contextMenu.shadowNode=_a4;
_a0._contextMenu._menuIsRight=_a3;
var _a5=i$.createDom("span");
_a4.appendChild(_a5);
i$.addClass(_a5,_24.menuOverlay);
_a0._contextMenu.overlayNode=_a5;
_a0._contextMenu.menuNode=_a2;
_7.contextMenu._updateAbsolutePosition(_a0);
return _a4;
},_updateAbsolutePosition:function(_a6){
var _a7=_a6._contextMenu._menuIsRight;
var _a8=_a6._contextMenu.menuNode;
var _a9=_a6._contextMenu.overlayNode;
var _aa=_7.contextMenu._findPos(_a6);
var _ab=2;
_a9.style.left=(_aa[0]-_ab)+"px";
_a9.style.top=(_aa[1]-_ab)+"px";
_a9.style.width=(_a6.offsetWidth+(2*_ab))+"px";
_a9.style.height=(_a6.offsetHeight+(2*_ab))+"px";
var dir=document.getElementsByTagName("html")[0].getAttribute("dir");
if(dir!=null){
dir=dir.toLowerCase();
}else{
dir="";
}
if(!(dir=="rtl")){
_a8.style.left=((_a7)?_aa[0]+_a6.offsetWidth:_aa[0])+"px";
}else{
_a8.style.left=((_a7)?_aa[0]+_a6.offsetWidth-_a6.scrollWidth:_aa[0]+_a6.scrollWidth)+"px";
}
_a8.style.top=_aa[1]+"px";
},_adjustScreenPositionStart:function(){
return document.documentElement.scrollHeight;
},_adjustScreenPositionEnd:function(_ac){
var _ad=document.documentElement.scrollHeight;
if(_ac!=_ad){
document.documentElement.scrollTop=document.documentElement.scrollHeight;
}
},_findPos:function(obj){
var _ae=curtop=0;
if(obj.offsetParent){
do{
_ae+=obj.offsetLeft;
curtop+=obj.offsetTop;
}while(obj=obj.offsetParent);
var _af=[_ae,curtop];
return _af;
}
},});
var _24=_7.contextMenu.css;
})();


}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
try{(function(){
    i$.merge({
	"NO_ITEMS_0":"No items to display",
	"ERROR_LOADING_0":"Error happened while loading the menu.",
	"LOADING_0":"Loading..."
},i$.fromPath("wptheme.contextMenu.nls",true));
})();
}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
try{(function(_1){
var _2="aria-labelledby",_3="aria-describedby",_4="aria-pressed",_5="title",_6="true",_7="false",_8="selected",_9="disabled",_a="show-text",_b="hide-text",_c="disableClick",_d="remove",_e="off-label",_f="on-label",_10="wpToolbarHighContrast",_11="http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",_12="wpPageModeToggleIdContainer",_13="wpInfoModeToggle",_14="wpInfoModeToggleLink",_15="wpPageModeToggle",_16="wptoogleInput",_17="wpPageModeToggleLink",_18="wpPageIsPractitioner",_19="wpPageModeToggleIdContainer",_1a="wpToolbarToggle",_1b="ibm.portal.home.createpage",_1c="wpEditTooltip",_1d="ibm.portal.toolbar.NewPage",_1e="wps.content.root",_1f="wps.Administration",_20="ibm.portal.page.Applications",_21="hcl.portal.practitionerstudio",_22="hcl.portal.helplinks",_23="wpHelpContainerID",_24="wpHelpCenterDialogContent-root",_25="wpHelpCenterDialog",_26=[13,32,38,40],_27=[13,32],T=true,F=false,_28=i$.byId,_29=i$.hasClass,_2a=i$.addClass,_2b=i$.removeClass,_2c=i$.forEach,_2d=i$.toQuery,_2e=i$.fromPath,_2f=i$.bindDomEvt;
function _30(_31,_32){
var _33=_31||_28(_15),_34="valueoff",_35="valueon",_36=_28(_16),_37=_28(_e),_38=_28(_f),_39=document.getElementById("wpViewModeDesc").textContent,_3a=document.getElementById("wpEditModeDesc").textContent,_3b=document.getElementById(_1c);
if(_32){
if(!_29(_33,_35)){
_2b(_33,_34);
_2a(_33,_35);
_2b(_37,_a);
_2b(_38,_b);
_2a(_37,_b);
_2a(_38,_a);
_3b.innerHTML=_3a;
_3c(_33,_4,_6);
_36.setAttribute("checked",true);
}
}else{
if(_29(_33,_35)){
_2b(_33,_35);
_2a(_33,_34);
_2b(_37,_b);
_2b(_38,_a);
_2a(_37,_a);
_2a(_38,_b);
_3b.innerHTML=_39;
_3c(_33,_4,_7);
_36.removeAttribute("checked");
}
}
};
function _3d(_3e,_3f){
var _40=_3e||_28(_13),_41=_28(_14);
if(_3f){
if(!_29(_40,_8)){
_2a(_40,_8);
_3c(_41,_2,"wpInfoModeOnLabel");
_3c(_41,_3,"wpInfoModeOnDesc");
_3c(_41,_4,_6);
_3c(_40,_5,_42(_43(_28("wpInfoModeOnDesc"))));
}
}else{
if(_29(_40,_8)){
_2b(_40,_8);
_3c(_41,_2,"wpInfoModeOffLabel");
_3c(_41,_3,"wpInfoModeOffDesc");
_3c(_41,_4,_7);
_3c(_40,_5,_42(_43(_28("wpInfoModeOffDesc"))));
}
}
};
function _44(_45,e){
if(!_46(e,_27)){
return F;
}
_2a(_45,_8);
var _47=wpModules.toolbar;
if(_47.isToolbarOpened()){
_47.closeToolbar();
}else{
_47.openToolbar({"autoOpenDefaultTabs":true});
}
return T;
};
function _48(_49,_4a,e){
var _4b=_28(_16),_4c=_28(_e),_4d=_28(_f);
if(!_46(e,_27)){
return F;
}
top.document.getElementById("wpToolbarActionBarBackground").style.pointerEvents="none";
if(!_29(_49,_9)){
var t=wpModules.toolbar,_4e=t.isEditModeActive();
if(_4e){
_2b(_4c,_a);
_2b(_4d,_b);
_2a(_4c,_b);
_2a(_4d,_a);
_4b.setAttribute("checked",true);
t.setEditModeActive(F);
}else{
_2b(_4c,_b);
_2b(_4d,_a);
_2a(_4c,_a);
_2a(_4d,_b);
_4b.removeAttribute("checked");
if(_4a&&_4f()){
var _50={"editMode":T};
if(!t.isToolbarOpened()){
_50.autoOpenDefaultTabs=true;
}
t.openToolbar(_50);
}else{
t.setEditModeActive(T);
}
}
_30(_49,!_4e);
}
return T;
};
function _51(_52,e){
if(!_46(e,_27)){
return F;
}
var t=wpModules.toolbar,_53=t.isInfoModeActive();
_3d(_52,!_53);
t.setInfoModeActive(!_53);
return T;
};
function _54(){
return _55().then(function(_56){
var _57=_56;
if(_57.length!=0&&wpModules.toolbar.isInfoModeActive()){
return T;
}else{
return F;
}
});
};
function _58(){
return _55().then(function(_59){
var _5a=_59;
if(_5a.length!=0&&!wpModules.toolbar.isInfoModeActive()){
return T;
}else{
return F;
}
});
};
function _55(){
return new Promise(function(_5b){
var _5c=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:navigationMenu";
var _5d={navID:_7f(),rootNode:_21};
if(_5d){
_5c+=(_5c.indexOf("?")==-1?"?":"&")+i$.toQuery(_5d);
}
i$.xhrGet({url:_5c,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_5e){
_5b(_5e.data);
});
});
};
function _5f(){
var t=wpModules.toolbar;
t.setInfoModeActive(F);
};
function _60(){
var t=wpModules.toolbar;
t.setInfoModeActive(T);
};
function _61(_62,e){
var _63=_28(_23);
var _64=document.getElementById(_24);
var k=e.keyCode;
if(k&&k!==13&&k!==32&&k!==38&&k!==40&&k!==27){
return F;
}
_3c(_63,"style","display: none");
_64.innerHTML="";
};
function _65(_66,e,_67){
var _68=_28(_23);
var _69=document.getElementById(_24);
var _6a=document.getElementById(_25);
var k=e.keyCode;
if(k&&k!==13&&k!==32&&k!==38&&k!==40){
return F;
}
window.open(_67,"_blank");
return T;
};
function _6b(_6c,e){
var _6d=F;
if(_6e()){
_6d=_6f(_6c,_1e,e);
}else{
_70(_1e);
_6d=T;
}
return _6d;
};
function _71(_72,e){
var _73=F;
if(_6e()){
_73=_6f(_72,_20,e);
}else{
_70(_20);
_73=T;
}
return _73;
};
function _74(_75,e){
var _76=F;
if(_6e()){
_76=_77(_75,_21,_22,e);
}else{
_70(_21);
_76=T;
}
return _76;
};
function _78(_79,e){
var _7a=T;
_70(_1f);
return _7a;
};
function _6e(){
var _7b=(typeof wptheme!="undefined"&&wptheme.contextMenu);
return _7b;
};
function _6f(_7c,_7d,e){
if(!_46(e,_26)){
return F;
}
var _7e={"navID":_7f(),"rootNode":_7d};
var _80=wpModules.toolbar;
if(_80&&_80.isToolbarOpened()){
_7e.contribURI="nm:oid:ibm.portal.Toolbar";
}
_81(_7c,"navigationMenu",_7e);
return T;
};
function _77(_82,_83,_84,e){
if(!_46(e,_26)){
return F;
}
var _85={"navID":_7f(),"rootNode":_83,"secondaryRootNode":_84};
var _86=wpModules.toolbar;
if(_86&&_86.isToolbarOpened()){
_85.contribURI="nm:oid:ibm.portal.Toolbar";
}
_81(_82,"navigationMenu",_85);
return T;
};
function _81(_87,_88,_89){
_2a(_87.parentNode,_8);
_3c(_87,_4,_6);
args={"node":_87.parentNode,"menuId":_88,"jsonQuery":_89,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){
_2b(_87.parentNode,_8);
_3c(_87,_4,_7);
}};
wptheme.contextMenu.init(args);
};
function _8a(){
return _28(_18).value;
};
function _3c(_8b,_8c,_8d){
_8b.setAttribute(_8c,_8d);
};
function _43(_8e){
return _8e.firstChild;
};
function _42(_8f){
return _8f.nodeValue;
};
function _90(_91){
var fc=_91.firstChild;
while(fc&&fc.nodeType!==1){
fc=fc.nextSibling;
}
return fc;
};
function _92(_93,_94,_95){
if(_95&&_93&&_94&&_94.length>0){
_2c(_94,function(p){
if(_93.name==p.name&&_93.nsuri==p.nsuri){
_95(p.value);
return F;
}
});
}
};
function _46(e,_96){
var k=e?e.keyCode:null;
if(k){
if(_96){
var r=_96.indexOf(k)>=0;
return r;
}else{
return F;
}
}
return T;
};
function _97(){
return wpModules.toolbar.getViewAreaWindow();
};
function _7f(){
var r=_97().ibmCfg.portalConfig.currentPageOID;
return r;
};
function _98(){
return _2e("ibmCfg.portalConfig.isCurrentPageEditable",false,_97());
};
function _4f(){
return _2e("wpModules.state.page.supportsToolbar",false,_97());
};
function _70(id){
wpModules.toolbar.loadViewArea("nm:oid:"+id);
};
function _99(_9a){
if(_9a&&_9a.pageId){
var id=_9a.pageId;
if(id&&id.value&&id.value.length>0){
_70(id.value[0]);
}
}
};
i$.addOnLoad(function(){
var _9b=i$.fromPath("wpModules.state.page",false);
if(_9b){
var _9c=_9b.getStateManager();
_9c.addListener(function(_9d){
var _9e=_9d.renderParams().getModified();
_92({"nsuri":_11,"name":"editMode"},_9e,function(_9f){
var res=(_9f&&_9f[0]=="true"),_a0=_28(_15);
if(_a0){
_30(_a0,res);
}
});
_92({"nsuri":_11,"name":"infoMode"},_9e,function(_a1){
var res=(_a1&&_a1[0]=="true"),_a2=_28(_13);
if(_a2){
_3d(_a2,res);
}
});
});
}
var _a3=wpModules.toolbar.getViewAreaWindow();
if(self===_a3){
var w=_a3.parent||_a3,_a4=w.document.getElementById(_15),_a5=_28(_19),_a6=w.document.getElementById(_1a),_a7=wpModules.toolbar.isEditModeActive(),_a8=w.document.getElementById(_1c),_a9=w.document.getElementById("wpEditModeDesc"),_aa=w.document.getElementById("wpViewModeDesc"),_ab=w.document.getElementById("wpEditModeDisable");
if(_a4){
if(_98()&&_ab){
_2b(_a4,_9);
_2b(_a4,_c);
_2b(_a5,_d);
if(_a7&&_a9){
_a8.innerHTML=_a9.textContent;
}else{
_a8.innerHTML=_aa.textContent;
}
}else{
_2a(_a4,_c);
_2a(_a4,_9);
_2a(_a5,_d);
_a8.innerHTML=_ab.innerText;
}
}
if(_a6){
if(_4f()){
_2b(_a6,_9);
}else{
_2a(_a6,_9);
}
}
}
var _ac=_28(_1b);
if(_ac){
var _ad=wpModules.toolbar;
_ac.onClose=_99;
if(_ad.isToolbarOpened()||_28(_15)){
var _ae={};
_ae.id=_1b;
_ae.key="onClose";
_2f(_ac,"click",function(e){
_ad.openToolbar({"primaryTab":"siteManagerTreeTab:context:oid:"+_7f()+":default:action:CREATE_CHILD_PAGE","onCloseDialog":_ae});
e.preventDefault?e.preventDefault():e.returnValue=F;
return F;
});
}
}
});
wpModules.a11y.highContrastMode.then(function(_af){
if(_af){
_2a(_28(_13),_10);
}
});
_1.toggleToolbar=_44;
_1.toggleEditMode=_48;
_1.toggleInfoMode=_51;
_1.openSitesMenu=_6b;
_1.openApplicationsMenu=_71;
_1.openAdministration=_78;
_1.openHelpArticle=_65;
_1.closeHelpArticle=_61;
_1.toggleInfoModeOff=_5f;
_1.toggleInfoModeOn=_60;
_1.isInfoModeActive=_54;
_1.isInfoModeInactive=_58;
_1.openPractitionersMenu=_74;
})(i$.fromPath("wpModules.theme.ActionBar",true));


}catch(e){console.log("Module 'wp_toolbar_actionbar': ",e);}
try{if(typeof (wpModules.toolbar)=="undefined"){
wpModules.toolbar={};
}
if(typeof (wpModules.toolbar.menuActions)=="undefined"){
wpModules.toolbar.menuActions={};
}


}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);}
try{(function(){
    i$.merge({
	"move_page_dialog_title":"Move the page '{0}' to...",
	"edit_wiring_dialog_title":"Manage Communication Endpoints for '{0}'",
	"confirm_delete_page_anonymous":"Are you sure you want to delete this page and all of its children?",
	"delete_control_dialog_title":"Delete Portlet",
	"confirm_delete_page":"Are you sure you want to delete the page '{0}' and all of its children?",
	"confirm_delete_control_anonymous":"Are you sure you want to remove this portlet from the page?",
	"page_properties_dialog_title":"Manage Page Properties",
	"delete_page_dialog_title":"Delete Page",
	"edit_wiring_dialog_title_anonymous":"Manage Communication Endpoints",
	"preview_as_user_dialog_title":"Preview as User",
	"confirm_delete_control":"Are you sure you want to remove the portlet '{0}' from the page?"
},i$.fromPath("wpModules.toolbar.menuActions.nls",true));
})();
}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);}
try{(function(_1,_2){
var _3="?uri=pagemode:edit:off&uri=op:ibm.portal.operations.showPreviewScreen()&returnURI=dialog:CloseModalDialog",_4={"then":function(){
}},_5=i$.fromPath,_1=_1,_6=_1.document,_7=wpModules.toolbar,_8=_2,_9=function(_a){
var _b=_3,_c=_d("preview_as_user_dialog_title")||"Preview as User",_e={"url":_b,"title":_c,"modal":true,"autoResize":true,"window":_1.parent||_1,"callbackFn":function(_f){
if(_f){
var _10=get(_f,"action");
if(_10=="ok"){
var _11=get(_f,"userID"),_12=get(_f,"path");
_13(_11,_12);
}
}
}},_14=new wpModules.dialog.Dialog(_e);
_14.open();
var r=_4;
return r;
},_13=function(_15,_16){
var url=_7.getBaseURL(_17());
url=url.replace(_16,_16+_15);
url+=url.indexOf("?")<0?"?":"&";
url+="uri=toolbar:close&uri=pagemode:edit:off";
top.location.href=url;
},_18=function(_19){
var r=_19.visibility!==false;
return r;
},_1a=function(_1b){
var r=_1c();
return r;
},_1c=function(){
var r=_5("ibmCfg.portalConfig.canAnonymousUserViewCurrentPage",false,_17());
return r;
},_17=function(){
var r=_7.getViewAreaWindow();
return r;
},_1d=function(_1e){
return {"then":function(cb){
cb(_1e);
}};
},_d=function(key){
var r=_8.nls[key];
return r;
},get=function(obj,key){
var o=obj[key],r=null;
if(o){
var v=o.value;
if(v&&v.length>0){
r=v[0];
}
}
return r;
};
_8.openPreviewAsUserDialog=_9;
_8.isPreviewAsUnauthenticatedUserVisible=_18;
_8.isPreviewAsUnauthenticatedUserEnabled=_1a;
})(window,i$.fromPath("wpModules.toolbar.menuActions",true));


}catch(e){console.log("Module 'wp_toolbar_sitepreview_menuactions': ",e);}
try{(function(){
if(!i$.isIE){
i$.addOnLoad(function(){
var _1=new Array();
var _2=document.getElementsByTagName("SECTION");
var _3=null;
for(var i=0;i<_2.length;i++){
if(i$.hasClass(_2[i],"a11yRegionTarget")){
var _4=_2[i];
var _5=null;
var _6=_4.getElementsByTagName("SPAN");
var _7=document.getElementsByTagName("HEADER");
var _8=null;
for(var j=0;j<_6.length;j++){
if(i$.hasClass(_6[j],"a11yRegionLabel")){
_5=_6[j];
}
}
if(_5){
var _9=_5;
var _a=_4;
while((_a=_a.parentNode)!=null){
if(i$.hasClass(_a,"component-control")){
var m=_a&&(_a.className||"").match(/id-([\S]+)/);
_3=m&&m[1];
break;
}
}
if(_3){
var _b="skinHeader"+_3;
var _c=_9.innerHTML;
if(_1.indexOf(_c)>-1){
for(var j=0;j<_1.length;j++){
var _d=_c.concat(" ").concat(j+1);
if(_1.indexOf(_d)==-1){
_c=_d;
_1.push(_c);
break;
}
}
}else{
_1.push(_c);
}
_4.setAttribute("aria-label",_c);
for(var k=0;k<_7.length;k++){
if(i$.hasClass(_7[k],"wpthemeControlHeader")){
_8=_7[k];
if(_8.parentNode==_4){
_8.setAttribute("aria-label",_b);
}
}
}
}
}
}
}
});
}
})();


}catch(e){console.log("Module 'wp_theme_skin_region': ",e);}
try{(function(){
    i$.merge({
	"WARNING_0":"Warning",
	"DELETE_0":"Delete",
	"INFO_0":"Information",
	"MESSAGES_AVAILABLE_1":"${0} messages are available for review",
	"SHOW_DETAILS_0":"Show Details",
	"ERROR_0":"Error",
	"HIDE_DETAILS_0":"Hide Details"
},i$.fromPath("wptheme.statusBar.nls",true));
})();
}catch(e){console.log("Module 'wp_status_bar': ",e);}
try{(function(){
if(typeof com==="undefined"||!com){
com={};
}
if(typeof com.ibm==="undefined"||!com.ibm){
com.ibm={};
}
if(typeof com.ibm.widgets==="undefined"||!com.ibm.widgets){
com.ibm.widgets={};
}
if(typeof com.ibm.widgets.StatusType==="undefined"||!com.ibm.widgets.StatusType){
com.ibm.widgets.StatusType=function(id,_1,_2,_3){
this._id=id;
this._styleClass=_1;
this._iconPath=_2;
this._iconAlt=_3;
};
}
if(typeof com.ibm.widgets.StatusMessage==="undefined"||!com.ibm.widgets.StatusMessage){
com.ibm.widgets.StatusMessage=function(_4,_5,_6){
this._type=_4;
this._message=_5;
if(!i$.isString(_5)&&_5.message&&i$.isString(_5.message)){
this._message=_5.message;
}
this._details=_6;
};
}
if(typeof com.ibm.widgets.StatusBarV2==="undefined"||!com.ibm.widgets.StatusBarV2){
com.ibm.widgets.StatusBarV2=function(_7){
this.uid=_7;
this.showDetails=false;
this._messages=[];
this._connections=[];
this._numMessages=0;
this._baseURL=window.location.protocol+"//"+window.location.host;
this.blankGifIcon="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
this._statusTypesMap={"error":new com.ibm.widgets.StatusType(0,"wpthemeError",this.blankGifIcon,wptheme.statusBar.nls.ERROR_0),"warning":new com.ibm.widgets.StatusType(1,"wpthemeWarning",this.blankGifIcon,wptheme.statusBar.nls.WARNING_0),"info":new com.ibm.widgets.StatusType(2,"wpthemeInfo",this.blankGifIcon,wptheme.statusBar.nls.INFO_0)};
i$.addListener("/portal/status",i$.scope(this,this.addMessage));
i$.addListener("/message/status",i$.scope(this,this.addMessage));
i$.addListener("/portal/status/clear",i$.scope(this,this.clearMessage));
i$.addListener("/message/status/clear",i$.scope(this,this.clearMessage));
if(typeof (ibmCfg)!="undefined"&&ibmCfg.portalConfig){
this.isBidi=ibmCfg.portalConfig.isRTL;
}else{
if(typeof (ibmPortalConfig)!="undefined"){
this.isBidi=ibmPortalConfig.isRTL;
}else{
if(typeof (ibmConfig)!="undefined"){
this.isBidi=ibmConfig.isBidi;
}
}
}
i$.addOnUnload(i$.scope(this,this._onWindowUnload));
this.containerNode=i$.byId("wpthemeStatusBarContainer");
};
}
i$.augment(com.ibm.widgets.StatusBarV2,{_onWindowUnload:function(){
i$.forEach(this._connections,function(_8){
i$.unbindDomEvt(_8);
});
this._connections=null;
this.clear();
this._messages=null;
},_getStatusContainer:function(){
return this.containerNode;
},_escapeHTML:function(_9){
if(_9.replace){
return _9.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");
}
return _9;
},setShowDetails:function(_a){
this.showDetails=_a;
},toggleShowDetails:function(){
this.setShowDetails(!this.showDetails);
this.render();
},clear:function(){
var _b=this._getStatusContainer();
if(!!_b){
_b.innerHTML="";
_b.setAttribute("role","");
_b.setAttribute("wairole","");
}
this._messages.length=0;
},clearMessage:function(_c){
if(_c.uid&&_c.uid!=this.uid){
return;
}
var _d=_c.message;
if(typeof _d==="undefined"||_d===null){
this.clear();
}else{
for(var i=this._messages.length-1;i>=0;i--){
if(this._messages[i]._type==_d._type&&this._messages[i]._message==_d._message&&this._messages[i]._details==_d._details){
this._messages.splice(i,1);
}
}
if(this._messages.length==0){
this.clear();
}else{
if(this._messages.length<100){
this.render(this._getStatusContainer());
}
}
}
},addMessage:function(_e){
if(_e.uid&&_e.uid!=this.uid){
return;
}
var _f=_e.message;
this._messages.push(_f);
if(this._messages.length<100){
this.render(this._getStatusContainer());
}
},render:function(_10){
if(_10==null){
_10=this._getStatusContainer();
}
_10.innerHTML="";
if(this._messages.length>1){
this.renderHeader(_10);
}else{
if(this._messages.length==1){
this.renderMessage(_10,this._messages[0],this.showDetails,0);
}
}
if(this.showDetails&&this._messages.length>1){
for(x in this._messages){
this.renderMessage(_10,this._messages[x],this.showDetails,x);
}
}
},renderHeader:function(_11){
if(this._messages.length>1){
var _12=2;
for(var i=0;i<this._messages.length;i++){
_12=Math.min(_12,this._statusTypesMap[this._messages[i]._type]._id);
}
var _13="info";
for(x in this._statusTypesMap){
if(this._statusTypesMap[x]._id==_12){
_13=x;
break;
}
}
var _14=new com.ibm.widgets.StatusMessage(_13,wptheme.statusBar.nls.MESSAGES_AVAILABLE_1.replace("${0}",this._messages.length),"");
this.renderMessage(_11,_14,this.showDetails,-1);
}
},renderMessage:function(_15,_16,_17,_18){
var _19=this._statusTypesMap[_16._type];
var _1a=document.createElement("div");
_1a.className="wpthemeMessage "+_19._styleClass;
if(this._messages.length>1&&_18>=0){
_1a.className+=" wpthemeMoreMsg";
}
var _1b=document.createElement("img");
_1b.className="wpthemeMsgIcon "+(_19._styleClass=="wpthemeError"?"wpthemeMsgIconError":_19._styleClass=="wpthemeWarning"?"wpthemeMsgIconWarning":"wpthemeMsgIconInfo");
_1b.src=_19._iconPath;
_1b.alt=_1b.title=_19._iconAlt;
_1a.appendChild(_1b);
var _1c=document.createElement("span");
_1c.className="wpthemeAltText";
_1c.innerHTML=this._escapeHTML(_19._iconAlt+":");
_1a.appendChild(_1c);
var _1d=document.createElement("div");
_1d.className="wpthemeMessageBody";
_1d.innerHTML=this._escapeHTML(_16._message);
_1a.appendChild(_1d);
if((this._messages.length>1&&_18<0)||(this._messages.length==1)){
if(_16._details&&_16._details.length>0||_18<0){
var _1e=document.createElement("a");
_1e.href="javascript:void(0)";
_1e.className="wpthemeHideShow";
_1e.role="button";
this._connections.push(i$.bindDomEvt(_1e,"onclick",i$.scope(this,this.toggleShowDetails)));
var _1f=document.createElement("img");
_1f.className="wpthemeMsgIcon16";
_1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
_1e.appendChild(_1f);
var _20=document.createElement("span");
_20.className="wpthemeAltText";
_1e.appendChild(_20);
}else{
_17=false;
}
var _21=document.createElement("a");
_21.href="javascript:void(0);";
_21.className="wpthemeDelete";
_21.role="button";
_21.title=wptheme.statusBar.nls.DELETE_0;
this._connections.push(i$.bindDomEvt(_21,"onclick",i$.scope(this,this.clear)));
var _22=document.createElement("img");
_22.alt=wptheme.statusBar.nls.DELETE_0;
_22.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
_21.appendChild(_22);
var _23=document.createElement("span");
_23.className="wpthemeAltText";
_23.innerHTML=this._escapeHTML(wptheme.statusBar.nls.DELETE_0);
_21.appendChild(_23);
if(_16._details&&_16._details.length>0||_18<0){
if(_17){
_1e.title=wptheme.statusBar.nls.HIDE_DETAILS_0;
_1f.className+=" wpthemeMsgIconHide";
_1f.alt=wptheme.statusBar.nls.HIDE_DETAILS_0;
_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.HIDE_DETAILS_0);
}else{
_1e.title=wptheme.statusBar.nls.SHOW_DETAILS_0;
_1f.className+=" wpthemeMsgIconShow";
_1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0;
_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0);
}
_1a.appendChild(_1e);
}
_1a.appendChild(_21);
}
var _24=document.createElement("div");
_24.className="wpthemeClear";
_1a.appendChild(_24);
if(_16._details&&_16._details.length>0&&_17&&_18>=0){
var _25=document.createElement("div");
_25.className="wpthemeDetails";
_25.appendChild(document.createTextNode(_16._details));
_1a.appendChild(_25);
}
_15.appendChild(_1a);
_15.setAttribute("role","alert");
_15.setAttribute("wairole","alert");
}});
if(typeof wpstatusbar==="undefined"||!wpstatusbar){
wpstatusbar=new com.ibm.widgets.StatusBarV2("ibmStatusBox");
}
var _26=i$.getCookie("ibm.portal.operations.error");
if(_26){
var _27=i$.fromJson(decodeURIComponent(_26));
var _28="error";
if(_27.errorType){
_28=_27.errorType;
}else{
if(_27.errorCode){
if(_27.errorCode=="400"){
_28="error";
}
}
}
i$.fireEvent("/portal/status",[{message:new com.ibm.widgets.StatusMessage(_28,_27.errorMessage?_27.errorMessage:"",_27.errorDetails?_27.errorDetails:""),uid:"ibmStatusBox"}]);
i$.deleteCookie("ibm.portal.operations.error");
}
i$.addOnLoad(function(){
if("localStorage" in window&&window["localStorage"]!==null){
if(localStorage["com.ibm.wp.toolbar.msg.msg"]!=null){
i$.fireEvent("/message/status",[{message:new com.ibm.widgets.StatusMessage(localStorage["com.ibm.wp.toolbar.msg.type"],localStorage["com.ibm.wp.toolbar.msg.msg"],""),uid:"ibmStatusBox"}]);
localStorage.removeItem("com.ibm.wp.toolbar.msg.type");
localStorage.removeItem("com.ibm.wp.toolbar.msg.msg");
}
}
});
})();


}catch(e){console.log("Module 'wp_status_bar': ",e);}
try{(function(_1){
var _2="wpToolbarProjectMenuLink",_3="wpToolbarProjectInfoBox",_4="<edit-mode>",_5="<page-id>",_6="?uri=toolbar:projectTab:projectMenu:returnURI:dialog:CloseModalDialog@oid:"+_5+"&uri=pagemode:edit:"+_4,_7="project:oid:",_8="project:null",_9="title",_a="titleLang",_b="titleDir",_c="editMode",_d="action",_e="resultURI",_f="selectProject",_10="openDialog",_11="openToolbar",_12="closeToolbar",_13={"uri":"pagemode:edit:on"},_14={"uri":"pagemode:edit:off"},_15={"uri":"toolbar:open","params":{"primaryTabURI":"default","secondaryTabURI":"default"}},_16={"uri":"toolbar:open"},_1=_1,_17=_1.document,_18=i$.byId,_19=i$.bindDomEvt,_1a=i$.fromPath,_1b=i$.forEach,_1c=i$.toQuery,_1d=wpModules.toolbar,_1e=function(_1f,e){
var k=e.keyCode;
if(k&&k!==13&&k!==32&&k!==38&&k!==40){
return false;
}
var url=_6.replace(_5,_20()).replace(_4,(_21()?"on":"off")),_22={"url":url,"autoResize":true,"posHandler":"horizontallyBelow","autoPosition":_1f.parentNode,"modal":false,"padding":0,"callbackFn":function(_23){
_1f.focus();
if(_23){
var _24=get(_23,_d);
if(_f==_24){
_25(_23);
}else{
if(_10==_24){
_26(_23);
}else{
if(_11==_24){
_27(_23);
}
}
}
}
}};
_28(_22);
return true;
},_25=function(_29){
var uri=get(_29,_e),_2a=get(_29,_c)=="true";
if(uri){
var _2b=[],_2c=_1d.isToolbarOpened(),_2d=_2e(uri),_2f=_30(_29),_31=_32();
if(_2c&&!_2d){
if(_2f){
_1d.closeToolbar({"editMode":_2a});
}else{
_1d.setEditModeActive(_2a);
}
}else{
if(_2a!=_21()){
if(_2a){
_2b.push(_13);
if(!_2c&&_31){
_2b.push(_15);
}
}else{
_2b.push(_14);
}
}
if(_2c){
if(_2f){
_1d.closeTab();
}else{
if(_31){
if(_2a){
_2b.push(_15);
}else{
_2b.push(_16);
}
}
}
}
_2b.push(_33(uri));
var win=_34(),url=_35(_2b,win),_36=win.parent||win;
_36.location.href=url;
}
}
},_26=function(_37){
var _38=_39(_3a(_37,_e));
if(_38){
var _3b=get(_37,_9)||"Dialog",url=_3c(_38),_3d={"url":url,"title":_3b,"modal":true,"autoResize":true,"metrics":{"width":900},"padding":0,"callbackFn":function(_3e){
if(_3e&&_3e.result=="project_published"){
_1d.closeToolbar({"editMode":false});
}else{
_1d.reloadViewArea(true);
}
}};
_28(_3d);
}
},_27=function(_3f){
var uri=get(_3f,_e);
_1d.openToolbar({tab:uri});
},_28=function(_40){
var _41=new wpModules.dialog.Dialog(_40);
_41.open();
},_35=function(_42,_43){
var _44=_43?_45(_43):"",url=[_44];
_44.indexOf("?")<0?url.push("?"):url.push("&");
_1b(_42,function(_46){
var uri=_46.uri,_47=_46.params;
url.push("uri=");
url.push(uri);
url.push("&");
if(_47){
url.push(_1c(_47));
url.push("&");
}
});
var r=url.join("");
return r;
},_3c=function(_48,_49){
var _4a=_49?_45(_49):"",url=[_4a],uri=_48.uri,_4b=_48.params;
_4a.indexOf("?")<0?url.push("?"):url.push("&");
url.push("uri=");
url.push(uri);
if(_4b){
url.push("&");
url.push(_1c(_4b));
}
var r=url.join("");
return r;
},_33=function(uri,_4c){
var a={};
a.uri=uri;
if(_4c){
a.params=_4c;
}
return a;
},_39=function(_4d){
if(_4d&&_4d.length>0){
var o={};
o.uri=_4d[0];
o.params={};
for(var i=1,l=_4d.length;i<l;i+=2){
var key=_4d[i],val=_4d[i+1];
if(val){
o.params[key]=[val];
}
}
return o;
}
return null;
},get=function(obj,key){
var o=obj[key];
if(o){
var v=o.value;
if(v&&v.length>0){
var r=v[0];
return r;
}
}
return null;
},_3a=function(obj,key){
var o=obj[key];
if(o){
var r=o.value;
return r;
}
return null;
},_20=function(){
var r=_34().ibmCfg.portalConfig.currentPageOID;
return r;
},_21=function(){
var r=_1d.isEditModeActive();
return r;
},_34=function(){
var r=_1d.getViewAreaWindow();
return r;
},_32=function(){
var r=_1a("wpModules.state.page.supportsToolbar",false,_34());
return r;
},_45=function(win){
var r=_1d.getBaseURL(win);
return r;
},_2e=function(uri){
var _4e=_4f(),r=true;
if(_4e){
r=uri.substring(_7.length)!=_4e;
}else{
r=uri!=_8;
}
return r;
},_30=function(_50){
var _51=_3a(_50,_d),r=(_51&&_51.length>1&&_51[1]==_12);
return r;
},_4f=function(){
return _34().ibmCfg.portalConfig.projectUUID;
};
i$.addOnLoad(function(){
var _52=_18(_2);
if(_52){
var _53=function(e){
if(_1e(_52,e)){
e.preventDefault?e.preventDefault():e.returnValue=false;
return false;
}
};
_19(_52,"click",_53);
_19(_52,"keydown",_53);
}
});
})(window);


}catch(e){console.log("Module 'wp_toolbar_projectmenu': ",e);}
try{(function(_1,_2){
var _3="aria-pressed",_4="selected",_5="true",_6="false",_7=_1.document,_8=i$.addClass,_9=i$.removeClass,_a=wpModules.theme.WindowUtils,_b=_2,_c=function(_d,_e,e){
if(e){
var k=e.keyCode;
if(k&&k!==13&&k!==32&&k!==38&&k!==40){
return false;
}
}
if(typeof wptheme!="undefined"&&wptheme.contextMenu){
var _f=_10(),_11=[];
for(var i=0,l=_f.length;i<l;i++){
_11.push("nm:oid:"+_f[i]);
}
var _12={resURI:"nm:oid:"+_13(_14()),contribURI:_11},_15={"node":_d.parentNode,"menuId":_e,"jsonQuery":_12,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){
_16(_d);
}};
_17(_d);
wptheme.contextMenu.init(_15);
return true;
}else{
return false;
}
},_17=function(_18){
_8(_18.parentNode,_4);
_19(_18,_3,_5);
},_16=function(_1a){
_9(_1a.parentNode,_4);
_19(_1a,_3,_6);
},_19=function(_1b,_1c,_1d){
_1b.setAttribute(_1c,_1d);
},_14=function(){
var r=_a.getWindow(_a.VIEW_AREA);
return r;
},_13=function(win){
var r=win.ibmCfg.portalConfig.currentPageOID;
return r;
},_10=function(){
var r=_a.getPageIDs();
return r;
};
_b.open=_c;
})(window,i$.fromPath("wpModules.toolbar.ContextMenu",true));


}catch(e){console.log("Module 'wp_toolbar_contextmenu': ",e);}
try{(function(_1){
var _2=_1,_3=_1.document,_4=i$.addClass,_5=i$.removeClass,_6=i$.byId,_7=i$.bindDomEvt,_8="minimized",_9="utb-end-preview-btn",_a=3500,_b=500,_c=function(_d,_e){
var _f=function(){
_4(_d,_8);
};
return setTimeout(_f,_e);
},_10=function(_11,_12){
var _13=function(){
_5(_11,_8);
};
return setTimeout(_13,_12);
};
i$.addOnLoad(function(){
var _14=_6(_9);
if(_14){
var _15=_14.parentNode,_16=_c(_15,_a);
_7(_15,"mouseenter",function(){
if(_16){
clearTimeout(_16);
}
_16=_10(_15,_b);
});
_7(_15,"mouseleave",function(){
if(_16){
clearTimeout(_16);
}
_16=_c(_15,_a);
});
}
});
})(window);


}catch(e){console.log("Module 'wp_toolbar_sitepreview': ",e);}